#include<bits/stdc++.h> using namespace std; int main() { string st; getline(cin,st);//输入时包含空格 cout<<st.size();//.size()是长度 }