#include<iostream> using namespace std; int NC(int n) { if ( n <= 9 ) return 1; else return NC(n/10)+1; } int main() { cout << NC(2405); system("pause"); return 0; }