class X{static void Main(){for(int i=257;--i>-257;)for(int j=65,x=i;j-->0;x=x+(x&1)*(x-~x)>>1)System.Console.Write(j>0?" #"[x&1]+"":"|\n");}}