n = input()
if(n=="ham"):
    print("ham")
else:
    print(n+"ham")