p=print a=int(input()) c=a-3 b=1 a-=2 while a+1: p(" "*a+"*"*b) a-=1 b+=2 p(" "*c+"G*F")