a=['']*15 s=input() while s:x,y,*s=s;y=ord(y)-97;a[y]="%-*s#"%(ord(x)-97,a[y]) *_,=map(print,a)