import java.util.*;
public class Main
{
public static void main(String[] args)
{
int number;
int digit = 0;
System.out.print("Number? ");
number = Integer.parseInt(new Scanner(System.in).nextLine());
if (number < 0)
{
System.out.println("(Warning: it is a negative number)");
number = -number;
}
while (number > 0)
{
number = number / 10;
digit++;
}
if (digit == 0)
{
digit = 1;
}
System.out.printf( digit + " digits" + "\r\n");
}
}