z=input() if z != 'ham': print(z+'ham') else: print(z)