package project;
import java.util.Scanner;
public class sum {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in=new Scanner(System.in);
int a=in.nextInt();
int sum=0;
while(a>0) {
sum=sum+a%10;
a=a/10;
}System.out.println("各位数之和为:"+sum);
}
}