val n=readInt-3 print(((0 to n+1):\" "*n+"G*F")((i,z)=>" "*(n-i+1)+"**"*i+"*\n"+z))