import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;

class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> inputString = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String operator : inputString) {
                numbers.add(Integer.parseInt(operator + "1"));
            }

            int sum = 0;

            for (int number : numbers) {
                sum += number;
            }

            System.out.println(sum);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> inputString = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String operator : inputString) {
                numbers.add(Integer.parseInt(operator + "1"));
            }

            int sum = 0;

            for (int number : numbers) {
                sum += number;
            }

            System.out.println(sum);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
} Main public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> inputString = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String operator : inputString) {
                numbers.add(Integer.parseInt(operator + "1"));
            }

            int sum = 0;

            for (int number : numbers) {
                sum += number;
            }

            System.out.println(sum);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } main {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> inputString = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String operator : inputString) {
                numbers.add(Integer.parseInt(operator + "1"));
            }

            int sum = 0;

            for (int number : numbers) {
                sum += number;
            }

            System.out.println(sum);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> inputString = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String operator : inputString) {
                numbers.add(Integer.parseInt(operator + "1"));
            }

            int sum = 0;

            for (int number : numbers) {
                sum += number;
            }

            System.out.println(sum);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } IOException | NumberFormatException e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } final Exception e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> inputString = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String operator : inputString) {
                numbers.add(Integer.parseInt(operator + "1"));
            }

            int sum = 0;

            for (int number : numbers) {
                sum += number;
            }

            System.out.println(sum);
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<String> inputString = Arrays.asList(br.readLine().split("")); inputString Arrays.asList(br.readLine().split("")) Arrays.asList Arrays br.readLine().split("") br.readLine().split br.readLine() br.readLine br "" List<Integer> numbers = new ArrayList<>(); numbers new ArrayList<>() for (String operator : inputString) {
                numbers.add(Integer.parseInt(operator + "1"));
            } String operator inputString {
                numbers.add(Integer.parseInt(operator + "1"));
            } {
                numbers.add(Integer.parseInt(operator + "1"));
            } numbers.add(Integer.parseInt(operator + "1")) numbers.add numbers Integer.parseInt(operator + "1") Integer.parseInt Integer operator + "1" operator "1" int sum = 0; sum 0 for (int number : numbers) {
                sum += number;
            } int number numbers {
                sum += number;
            } {
                sum += number;
            } sum += number sum number System.out.println(sum) System.out.println System.out System System.out sum String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;

class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> inputString = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String operator : inputString) {
                numbers.add(Integer.parseInt(operator + "1"));
            }

            int sum = 0;

            for (int number : numbers) {
                sum += number;
            }

            System.out.println(sum);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
}