a=[' ']*999 n=input() while n:a[int(n[:2],36)-370]='#';n=n[2:] for i in range(15):print(''.join(a[i::36]).rstrip())