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