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