s=open(0).read() t=('~'*42+s)*2 for c in s:t=t[1:print([c,(t[:122]*3)[::41].count('*')or'.'][c>'*'],end='')]