#include int main() { int c; int any = 0; while ((c = getchar()) != EOF) { if (c < ' ') { continue; } putchar(c); any++; } if (any) { printf("ham\n"); } }