E.cpp 201 B

12345678910111213141516
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. int n;
  5. cin >> n;
  6. int len = 0;
  7. while (n > 0) {
  8. n /= 10;
  9. len++;
  10. }
  11. cout << len << endl;
  12. return 0;
  13. }