a=b=int(input())-2 c='*' while-~a:print(' '*a+c);c+='**';a-=1 print(' '*~-b+'G*F')