#include using namespace std; int main() { string s; cin >> s; cout << s.length() << endl; // 或者:cout << s.size() << endl; return 0; }