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