s=iter('Easterhegg'*999) n=input() i=n*5 while i:i-=1;print''.join(((i/n==2)&(1