while 1:print''.join(t[' 'in t]for t in zip('##..'*99,raw_input()))