a:=File standardInput readLine asNumber for(i,0,2**a-1,for(j,a,1,-1,write(if((i%2**j/2**(j-1)|0)<1,".","#")));writeln)