#KKT020502. 三位数的数字和

三位数的数字和

题目描述

给定一个三位正整数,求各位数字之和。

输入格式

一行一个整数 nn。

输出格式

输出各位数字之和。

样例

897
24

数据范围

100≤n≤999100\le n\le999。