i=int(input());y=i-1 while y>0:print' '*(y-1)+'*'*(2*(i-y)-1);y-=1 print" "*(i-3)+"G*F"