var n,i,j:word;begin read(n);repeat for j:=1to n do write((".#")[i shr(n-j)and 1+1]);writeln;inc(i)until i=2**n end.