import java.util.Scanner;

/**
 * @author HelloWorld
 * @create 2021-04-06-10:46
 * @email 154803771@qq.com
 */
public class Test_1 {
    // 判断一个数是几位数
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();
        int i = 0;
        do{
            i++;
            number /= 10;
        } while (number != 0);
        System.out.println(i);
    }
}