c=input() r=range X=list(999*'ggehretsaE') f=''.join print f([f([(abs(x/2/c-2)+abs(y/c-2)<2)*' ' or X.pop() for x in r(10*c)])+'\n' for y in r(5*c)])