#include <iostream>
using namespace std;

int main() {
	int number=1234;
	int i=0;
	int j=1; 
	while (number/j != 0)
	{
		i++;
		j*=10;
	}
	cout << i;
	// your code goes here
	return 0;
}