package com.company; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int num1, temp; int digits = 1; num1 = input.nextInt(); temp = num1; if (temp / 10 == 0) { digits = 1; } else if (temp / 100 == 0) { digits = 2; } else if (temp / 1000 == 0) { digits = 3; } else digits =4; } System.out.println("the number have" + digits + "digits") }