n=int(raw_input(),16) s='' while n:s=' .#\n'[n%4]+s;n/=4 print s