#include <stdio.h>
#include <stdlib.h>
#include <string.h>



int count_words(char *s) {
    // TODO: implement this function
    return 0;
}


int main(void) {
    char line[1000];
    if (fgets(line, sizeof(line), stdin) == NULL) {
        line[0] = '\0';
    }
    // strip the trailing newline left by fgets, if any
    for (int i = 0; line[i] != '\0'; i++) {
        if (line[i] == '\n') { line[i] = '\0'; break; }
    }
    printf("%d\n", count_words(line));
    return 0;
}
