Problem2048--求一个5位数的各个位之和

2048: 求一个5位数的各个位之和

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 16 MiB

Description

从键盘读入一个5位的正整数,请求出这个5位数的各个位之和;

Input

一个5位的正整数n

Output

这个5位数的各个位之和

Sample Input Copy

12345

Sample Output Copy

15

Source/Category