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