def main(): from sys import stdin input=stdin.readline # n = int(input()) s = input()[:-1] # n, m = map(int, input().split()) # A = list(map(int, input().split())) print(s + 'ham') main()