#include <iostream>
int main(){std::string S;std::cin >> S,std::cout <<S<<"ham"<<std::endl;return 0;}