import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    int data = Integer.parseInt(dataScanner.nextLine());
    int count = 0;
    if (data % 2 == 1) count ++;
    if (data / 100 == 1) count ++;
    if ((data % 100) / 10 == 1) count ++;
    System.out.println(count);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    int data = Integer.parseInt(dataScanner.nextLine());
    int count = 0;
    if (data % 2 == 1) count ++;
    if (data / 100 == 1) count ++;
    if ((data % 100) / 10 == 1) count ++;
    System.out.println(count);
  }
} Main public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    int data = Integer.parseInt(dataScanner.nextLine());
    int count = 0;
    if (data % 2 == 1) count ++;
    if (data / 100 == 1) count ++;
    if ((data % 100) / 10 == 1) count ++;
    System.out.println(count);
  } main {
    Scanner dataScanner = new Scanner(System.in);
    int data = Integer.parseInt(dataScanner.nextLine());
    int count = 0;
    if (data % 2 == 1) count ++;
    if (data / 100 == 1) count ++;
    if ((data % 100) / 10 == 1) count ++;
    System.out.println(count);
  } Scanner dataScanner = new Scanner(System.in); dataScanner new Scanner(System.in) int data = Integer.parseInt(dataScanner.nextLine()); data Integer.parseInt(dataScanner.nextLine()) Integer.parseInt Integer dataScanner.nextLine() dataScanner.nextLine dataScanner int count = 0; count 0 if (data % 2 == 1) count ++; data % 2 == 1 data % 2 data 2 1 count ++ count if (data / 100 == 1) count ++; data / 100 == 1 data / 100 data 100 1 count ++ count if ((data % 100) / 10 == 1) count ++; (data % 100) / 10 == 1 (data % 100) / 10 (data % 100) data 100 10 1 count ++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    int data = Integer.parseInt(dataScanner.nextLine());
    int count = 0;
    if (data % 2 == 1) count ++;
    if (data / 100 == 1) count ++;
    if ((data % 100) / 10 == 1) count ++;
    System.out.println(count);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    int data = Integer.parseInt(dataScanner.nextLine());
    int count = 0;
    if (data % 2 == 1) count ++;
    if (data / 100 == 1) count ++;
    if ((data % 100) / 10 == 1) count ++;
    System.out.println(count);
  }
} Main
import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
    Scanner dataScanner = new Scanner(System.in);
    int data = Integer.parseInt(dataScanner.nextLine());
    int count = 0;
    if (data % 2 == 1) count ++;
    if (data / 100 == 1) count ++;
    if ((data % 100) / 10 == 1) count ++;
    System.out.println(count);
  }
}
