#include <iostream>
#include <string>
#include <sstream>
#include <iterator>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
string s = "Bob Accountant 65 retired";
vector<string> vs;
istringstream iss(s);
copy(istream_iterator<string>(iss), istream_iterator<string>(), back_inserter(vs));
cout << vs.size() << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPGl0ZXJhdG9yPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglzdHJpbmcgcyA9ICJCb2IgQWNjb3VudGFudCA2NSByZXRpcmVkIjsKCXZlY3RvcjxzdHJpbmc+IHZzOwoJaXN0cmluZ3N0cmVhbSBpc3Mocyk7Cgljb3B5KGlzdHJlYW1faXRlcmF0b3I8c3RyaW5nPihpc3MpLCBpc3RyZWFtX2l0ZXJhdG9yPHN0cmluZz4oKSwgYmFja19pbnNlcnRlcih2cykpOwoJY291dCA8PCB2cy5zaXplKCkgPDwgZW5kbDsKCXJldHVybiAwOwp9