pepcoding/Ratndeep/Basics/count digits.java
import java.util.*;

public class Main {

    public static void main(String[] args) {
        // write your code here  
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int count = 0;
        while (n > 0) {
            count += 1;
            n = n / 10;
        }
        System.out.println(count);
    }
}