for x=(n=input(0)):-1:1;if(mod(x,n)<2)disp([(1:n>0)*90,""])else printf("%*c\n",x,90);end;end