n=input() for i in range(n-1):print" "*(n-2-i)+"*"*(1+i*2) print" "*(n-4),"G*F"