import re;i=1;R=re.sub while 1:print(R('(?=[abi]\W)',-i*'$',R('^int','my',R(' |\S*',i*'#',input(),i%5))));i=-1