#include <iostream>
#include <string>
using namespace std;
// 输入一行字符串,输出字符串长度
int Solution(string a){
    while (cin >> a);
    return a.size();
}
int main() {
    string a;
    int res;
    res = Solution(a);
    cout << res << endl;
}