Scanner sc = new Scanner(System.in);
int inter = sc.nextInt();
int lenth = (inter+"").length();
System.out.println(lenth);
Scanner sc = new Scanner(System.in);
int inter = sc.nextInt();
int lenth = (inter+"").length();
System.out.println(lenth);