//字符串长度
#include <iostream>
#include <string>

using namespace std;
int main()
{
    string str;
    getline(cin, str);
    int len = str.length();
    cout << len << endl;
}