#include <iostream>
using namespace std;
int main() {
char *word = new char[251];
int count = 0;
while(cin >> word) count++;
cout << count;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgljaGFyICp3b3JkID0gbmV3IGNoYXJbMjUxXTsKCWludCBjb3VudCA9IDA7Cgl3aGlsZShjaW4gPj4gd29yZCkgY291bnQrKzsKCWNvdXQgPDwgY291bnQ7CglyZXR1cm4gMDsKfQ==