var i,j,n:byte;begin read(n);for i:=0to 1shl n-1do for j:=1to n do write((".#")[i shr(n-j)and 1+1],^j:j div n)end.