/*程序员:杨月*/
import java.util.Scanner;
public class Asum
{
public static void main(String[] args)
{
int a,b,c,sum=0;
Scanner input=new Scanner(System.in);
System.out.print("Enter a number between 0 and 1000:");
int number=input.nextInt();
a=number/100;
b=(number%100)/10;
c=(number%100)%10;
sum=a+b+c;
System.out.println("各位数之和"+""+sum);
}
}