while ((c = getchar()) != '\n') {