i=n=input()-1 j=1 while i:i-=1;print' '*i+'*'*j;j+=2 print' '*(n-2)+'G*F'