#1002. 求一个整数的位数

求一个整数的位数

Description

输入一个整数,求它的位数。

Input Format

-1234

Output Format

4

520
3

Hint

考虑输入的正整数为0的情况。

Source

二学阶