n=input() s="Easterhegg"*999 for k in 5,4,2,4,5:k*=n;exec"print s[:k]+' '*(n*5-k)+s[k:k*2];s=s[k*2:];"*n