# yukicoder No.423 ハムスター語初級(数詞) 2020/01/30 s=input() print(s+'ham' if s!='ham' else s)