#include int main(){ char str[50]; scanf("%s",str); if(str == "ham"){ printf("%s",str); }else{ printf("%sham",str); } }