#include <iostream> #include <string> #include <iomanip> #include <cmath> using namespace std; int main() { int a; cin >> a; int sum = 0; while (a>0) { sum += 1; a = a / 10; } cout << sum; }