package net.ipipip0129.yukicoder.no656; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String line = scan.nextLine(); scan.close(); int score = 0; for (int i = 0; i < line.length(); i++) { int point = Integer.parseInt(line.substring(i, i + 1)); if (point == 0) { score += 10; }else { score += point; } } System.out.println(score); } }