while ((ch = getchar()) != '|' && ch != '\n') { printf("lll\n"); }
while ((ch = getchar()) != '|') { printf("lll\n"); while (getchar() == '\n') continue; }