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