题目描述
import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
char[] day = sc.nextLine().toCharArray();
int count = 0;
for(int i = 1;i<day.length;i++) {
if('1'== day[i]) {
count++;
}
}
System.out.println(count);
}
}