s=input() print(s) if s=="ham" else print(s+"ham")