c={" ",".","#","\n"}while""do s="0x"..io.read(1)io.write(c[(s-s%4)/4+1],c[s%4+1])end