for each(c in readline(s=" .#\n"))c="0x"+c,putstr(s[c>>2]+s[c&3])