# -*- coding: utf-8 -*- n = input() print("{}ham".format(n) if n != 'ham' else "ham")