import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        for (int i = 0; i < 200; i++) {
            int x1 =input.nextInt();
        int x2 =input.nextInt();
        int x3 = input.nextInt();
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        }
    }
}