Problem Description

Read one integer n. Count number of digits in |n| without converting to string. For n=0 answer is 1.

Input Format

One integer n.

Output Format

One integer digitCount.

Sample Test Case

Input:
-1000
Output:
4

Constraints

-10^18

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next