2948: 统计数字位数并求和

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:9 Solved:5

Description

输入一个整数 n(n ≠ 0),统计该数的位数,并计算各位数字之和。例如输入 - 123,位数为 3,各位和为 1+2+3=6。

Input

整数 n(-100000 ≤ n ≤ 100000,n ≠ 0)

Output

两个整数,分别为位数和各位数字之和(空格分隔)

Sample Input Copy

12345

Sample Output Copy

5 15

HINT

-100000 ≤ n ≤ 100000(n ≠ 0)