function Main(input) {
  const number = input.split("");
  for (var i = 0; i<number.length; i++ ) {
    var count = 0;
    if (number[i] === 1) {
        count++;
    }
  }
  console.log(count);
}

Main(require("fs").readFileSync("/dev/stdin","utf8"));
