Under construction

Still being built. Things may change

Digit

Time limit2sMemory limit1024 MB

Summary
Given two integers A and B, the task is to count the decimal digits of their sum.
Level

Easy1 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

Two integers A and B are given.

Find the number of digits of the sum of A and B when written in decimal.

Input

A
B

Output

Print the number of digits of the sum of A and B in decimal, without the unit (digits).

Print only the answer. Do not print anything else, including prompts for input.

Constraints

  • 1≤A≤4991 \le A \le 499.
  • 1≤B≤4991 \le B \le 499.
  • All input values are integers.

Examples4

  1. Example 1

    Input
    3
    9
    
    Expected output
    2
    
  2. Example 2

    Input
    499
    499
    
    Expected output
    3
    
  3. Example 3

    Input
    3
    2
    
    Expected output
    1
    
  4. Example 4

    Input
    1
    99
    
    Expected output
    3