for(;m=readline(s='');print(s))for(i in m)s+="# . "[m[i]+1|i&2]