a=input() c=range(a*45) print''.join([' '*a*2*(1<<(i/5/a*5+i%5)&145536>0)or(a*'Easterhegg')[a*2*(-(c.pop()+1)%5):][:a*2]+'\n'*(i%5>3)for i in c])