i=32 while i:print''.join('# '[-i&j>0]for j in range(i));i-=1