1702: 【CSP基础】求一个5位数的各个位之和▃

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:14 Solved:11

Description

从键盘读入一个 lns="http://www.w3.org/1998/Math/MathML">5 位的正整数,请求出这个 lns="http://www.w3.org/1998/Math/MathML">5 位数的各个位之和。

Input

一个 lns="http://www.w3.org/1998/Math/MathML">5 位的正整数 lns="http://www.w3.org/1998/Math/MathML">n 

Output

这个 lns="http://www.w3.org/1998/Math/MathML">5 位数的各个位之和。

Sample Input Copy

12345

Sample Output Copy

15