while 1:r=input().split('`');print(*("%-*s"%j for j in zip(b"#\r"[6%len(r[-1])%5*3:],r)))