#include <iostream> using namespace std; int main(){ string n; int cnt = 0; getline(cin, n); for (int i = 0; i<n.length(); i++){ if (!(n[i] == ' ' || n[i] == '\n')) cnt ++; } cout << cnt; return 0; }