#include #include int main() { char n[51]; scanf("%s", n); if (strcmp(n, "ham") != 0) printf("%sham\n", n); else printf("%s\n", n); return 0; }