#include <iostream>
#include <string>
int main() {
int counter = 0;
std::string input;
std::cin >> input;
for (int i = 0; i < input.size(); i++) {
if (input[i] == ' ')
counter += 1;
}
counter += 1;
std::cout << counter << std::endl;
}
simple string
1