node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 41, 13, 4, 18, 13, 0, 13, 20, 4, 18, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 18, 13, 13, 14, 2, 13, 17, 30, 3, 4, 18, 18, 13, 13, 13, 0, 13, 20, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 88, 5 ], [ 88, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 27, 28 ], [ 28, 29 ], [ 18, 30 ], [ 30, 31 ], [ 30, 32 ], [ 18, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 33, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 47, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 18, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 18, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 18, 79 ], [ 79, 80 ], [ 79, 81 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 6, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString [] s;\n\t\tint sum;\n\t\t\n\t\twhile(true){\n\t\t\tString s1 = sc.next();\n\t\t\ts = new String[s1.length()];\n\t sum = 0;\n\t \n\t for (int i = 0; i < s1.length(); i++) {\n\t s[i] = String.valueOf(s1.charAt(i));\n\t sum += Integer.valueOf(s[i]);\n\t }\n\t if(sum == 0){\n\t \tbreak;\n\t }\n\t System.out.println(sum);\n\t s1 = new String();\n\t\t}\n sc.close();\n\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString [] s;\n\t\tint sum;\n\t\t\n\t\twhile(true){\n\t\t\tString s1 = sc.next();\n\t\t\ts = new String[s1.length()];\n\t sum = 0;\n\t \n\t for (int i = 0; i < s1.length(); i++) {\n\t s[i] = String.valueOf(s1.charAt(i));\n\t sum += Integer.valueOf(s[i]);\n\t }\n\t if(sum == 0){\n\t \tbreak;\n\t }\n\t System.out.println(sum);\n\t s1 = new String();\n\t\t}\n sc.close();\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString [] s;\n\t\tint sum;\n\t\t\n\t\twhile(true){\n\t\t\tString s1 = sc.next();\n\t\t\ts = new String[s1.length()];\n\t sum = 0;\n\t \n\t for (int i = 0; i < s1.length(); i++) {\n\t s[i] = String.valueOf(s1.charAt(i));\n\t sum += Integer.valueOf(s[i]);\n\t }\n\t if(sum == 0){\n\t \tbreak;\n\t }\n\t System.out.println(sum);\n\t s1 = new String();\n\t\t}\n sc.close();\n\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString [] s;\n\t\tint sum;\n\t\t\n\t\twhile(true){\n\t\t\tString s1 = sc.next();\n\t\t\ts = new String[s1.length()];\n\t sum = 0;\n\t \n\t for (int i = 0; i < s1.length(); i++) {\n\t s[i] = String.valueOf(s1.charAt(i));\n\t sum += Integer.valueOf(s[i]);\n\t }\n\t if(sum == 0){\n\t \tbreak;\n\t }\n\t System.out.println(sum);\n\t s1 = new String();\n\t\t}\n sc.close();\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String [] s;", "s", "int sum;", "sum", "while(true){\n\t\t\tString s1 = sc.next();\n\t\t\ts = new String[s1.length()];\n\t sum = 0;\n\t \n\t for (int i = 0; i < s1.length(); i++) {\n\t s[i] = String.valueOf(s1.charAt(i));\n\t sum += Integer.valueOf(s[i]);\n\t }\n\t if(sum == 0){\n\t \tbreak;\n\t }\n\t System.out.println(sum);\n\t s1 = new String();\n\t\t}", "true", "{\n\t\t\tString s1 = sc.next();\n\t\t\ts = new String[s1.length()];\n\t sum = 0;\n\t \n\t for (int i = 0; i < s1.length(); i++) {\n\t s[i] = String.valueOf(s1.charAt(i));\n\t sum += Integer.valueOf(s[i]);\n\t }\n\t if(sum == 0){\n\t \tbreak;\n\t }\n\t System.out.println(sum);\n\t s1 = new String();\n\t\t}", "String s1 = sc.next();", "s1", "sc.next()", "sc.next", "sc", "s = new String[s1.length()]", "s", "new String[s1.length()]", "s1.length()", "s1.length", "s1", "sum = 0", "sum", "0", "for (int i = 0; i < s1.length(); i++) {\n\t s[i] = String.valueOf(s1.charAt(i));\n\t sum += Integer.valueOf(s[i]);\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < s1.length()", "i", "s1.length()", "s1.length", "s1", "i++", "i++", "i", "{\n\t s[i] = String.valueOf(s1.charAt(i));\n\t sum += Integer.valueOf(s[i]);\n\t }", "{\n\t s[i] = String.valueOf(s1.charAt(i));\n\t sum += Integer.valueOf(s[i]);\n\t }", "s[i] = String.valueOf(s1.charAt(i))", "s[i]", "s", "i", "String.valueOf(s1.charAt(i))", "String.valueOf", "String", "s1.charAt(i)", "s1.charAt", "s1", "i", "sum += Integer.valueOf(s[i])", "sum", "Integer.valueOf(s[i])", "Integer.valueOf", "Integer", "s[i]", "s", "i", "if(sum == 0){\n\t \tbreak;\n\t }", "sum == 0", "sum", "0", "{\n\t \tbreak;\n\t }", "break;", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "s1 = new String()", "s1", "new String()", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString [] s;\n\t\tint sum;\n\t\t\n\t\twhile(true){\n\t\t\tString s1 = sc.next();\n\t\t\ts = new String[s1.length()];\n\t sum = 0;\n\t \n\t for (int i = 0; i < s1.length(); i++) {\n\t s[i] = String.valueOf(s1.charAt(i));\n\t sum += Integer.valueOf(s[i]);\n\t }\n\t if(sum == 0){\n\t \tbreak;\n\t }\n\t System.out.println(sum);\n\t s1 = new String();\n\t\t}\n sc.close();\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString [] s;\n\t\tint sum;\n\t\t\n\t\twhile(true){\n\t\t\tString s1 = sc.next();\n\t\t\ts = new String[s1.length()];\n\t sum = 0;\n\t \n\t for (int i = 0; i < s1.length(); i++) {\n\t s[i] = String.valueOf(s1.charAt(i));\n\t sum += Integer.valueOf(s[i]);\n\t }\n\t if(sum == 0){\n\t \tbreak;\n\t }\n\t System.out.println(sum);\n\t s1 = new String();\n\t\t}\n sc.close();\n\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); String [] s; int sum; while(true){ String s1 = sc.next(); s = new String[s1.length()]; sum = 0; for (int i = 0; i < s1.length(); i++) { s[i] = String.valueOf(s1.charAt(i)); sum += Integer.valueOf(s[i]); } if(sum == 0){ break; } System.out.println(sum); s1 = new String(); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 3, 41, 13, 17, 28, 13, 4, 18, 13, 17, 30, 30, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 52, 5 ], [ 52, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 29, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 14, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 6, 49 ], [ 49, 50 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n String x = sc.next();\n\n if (\"0\".equals(x)) break;\n\n int sum = 0;\n for (String s : x.split(\"\")) {\n sum += Integer.parseInt(s);\n }\n System.out.println(sum);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n String x = sc.next();\n\n if (\"0\".equals(x)) break;\n\n int sum = 0;\n for (String s : x.split(\"\")) {\n sum += Integer.parseInt(s);\n }\n System.out.println(sum);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n String x = sc.next();\n\n if (\"0\".equals(x)) break;\n\n int sum = 0;\n for (String s : x.split(\"\")) {\n sum += Integer.parseInt(s);\n }\n System.out.println(sum);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n String x = sc.next();\n\n if (\"0\".equals(x)) break;\n\n int sum = 0;\n for (String s : x.split(\"\")) {\n sum += Integer.parseInt(s);\n }\n System.out.println(sum);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n String x = sc.next();\n\n if (\"0\".equals(x)) break;\n\n int sum = 0;\n for (String s : x.split(\"\")) {\n sum += Integer.parseInt(s);\n }\n System.out.println(sum);\n }", "true", "{\n String x = sc.next();\n\n if (\"0\".equals(x)) break;\n\n int sum = 0;\n for (String s : x.split(\"\")) {\n sum += Integer.parseInt(s);\n }\n System.out.println(sum);\n }", "String x = sc.next();", "x", "sc.next()", "sc.next", "sc", "if (\"0\".equals(x)) break;", "\"0\".equals(x)", "\"0\".equals", "\"0\"", "x", "break;", "int sum = 0;", "sum", "0", "for (String s : x.split(\"\")) {\n sum += Integer.parseInt(s);\n }", "String s", "x.split(\"\")", "x.split", "x", "\"\"", "{\n sum += Integer.parseInt(s);\n }", "{\n sum += Integer.parseInt(s);\n }", "sum += Integer.parseInt(s)", "sum", "Integer.parseInt(s)", "Integer.parseInt", "Integer", "s", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n String x = sc.next();\n\n if (\"0\".equals(x)) break;\n\n int sum = 0;\n for (String s : x.split(\"\")) {\n sum += Integer.parseInt(s);\n }\n System.out.println(sum);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n String x = sc.next();\n\n if (\"0\".equals(x)) break;\n\n int sum = 0;\n for (String s : x.split(\"\")) {\n sum += Integer.parseInt(s);\n }\n System.out.println(sum);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { String x = sc.next(); if ("0".equals(x)) break; int sum = 0; for (String s : x.split("")) { sum += Integer.parseInt(s); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 17, 30, 0, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 14, 2, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 16, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 16, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 35, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 16, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 16, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 6, 66 ], [ 66, 67 ], [ 4, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 74, 75 ], [ 74, 76 ], [ 70, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 77, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 99, 101 ], [ 70, 102 ], [ 102, 103 ], [ 68, 104 ], [ 104, 105 ] ]
[ "import java.io.*;\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint sum;\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString str = br.readLine();\n\t\t\tchar[] cr = str.toCharArray();\n\t\t\tint[] in = parseInts(cr);\n\t\t\tfor(int i=0;i<in.length;i++){\n\t\t\t\tsum += in[i];\n\t\t\t}\n\t\t\tif(sum==0) break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\tstatic int[] parseInts(char[] c){\n\t\tint[] x = new int[c.length];\n\t\tfor(int i=0;i<c.length;i++){\n\t\t\tx[i] = Character.getNumericValue(c[i]);\n\t\t}\n\t\treturn x;\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint sum;\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString str = br.readLine();\n\t\t\tchar[] cr = str.toCharArray();\n\t\t\tint[] in = parseInts(cr);\n\t\t\tfor(int i=0;i<in.length;i++){\n\t\t\t\tsum += in[i];\n\t\t\t}\n\t\t\tif(sum==0) break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n\tstatic int[] parseInts(char[] c){\n\t\tint[] x = new int[c.length];\n\t\tfor(int i=0;i<c.length;i++){\n\t\t\tx[i] = Character.getNumericValue(c[i]);\n\t\t}\n\t\treturn x;\n\t}\n}", "Main", "public static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint sum;\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString str = br.readLine();\n\t\t\tchar[] cr = str.toCharArray();\n\t\t\tint[] in = parseInts(cr);\n\t\t\tfor(int i=0;i<in.length;i++){\n\t\t\t\tsum += in[i];\n\t\t\t}\n\t\t\tif(sum==0) break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint sum;\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString str = br.readLine();\n\t\t\tchar[] cr = str.toCharArray();\n\t\t\tint[] in = parseInts(cr);\n\t\t\tfor(int i=0;i<in.length;i++){\n\t\t\t\tsum += in[i];\n\t\t\t}\n\t\t\tif(sum==0) break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int sum;", "sum", "while(true){\n\t\t\tsum=0;\n\t\t\tString str = br.readLine();\n\t\t\tchar[] cr = str.toCharArray();\n\t\t\tint[] in = parseInts(cr);\n\t\t\tfor(int i=0;i<in.length;i++){\n\t\t\t\tsum += in[i];\n\t\t\t}\n\t\t\tif(sum==0) break;\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tsum=0;\n\t\t\tString str = br.readLine();\n\t\t\tchar[] cr = str.toCharArray();\n\t\t\tint[] in = parseInts(cr);\n\t\t\tfor(int i=0;i<in.length;i++){\n\t\t\t\tsum += in[i];\n\t\t\t}\n\t\t\tif(sum==0) break;\n\t\t\tSystem.out.println(sum);\n\t\t}", "sum=0", "sum", "0", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "char[] cr = str.toCharArray();", "cr", "str.toCharArray()", "str.toCharArray", "str", "int[] in = parseInts(cr);", "in", "parseInts(cr)", "parseInts", "cr", "for(int i=0;i<in.length;i++){\n\t\t\t\tsum += in[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<in.length", "i", "in.length", "in", "in.length", "i++", "i++", "i", "{\n\t\t\t\tsum += in[i];\n\t\t\t}", "{\n\t\t\t\tsum += in[i];\n\t\t\t}", "sum += in[i]", "sum", "in[i]", "in", "i", "if(sum==0) break;", "sum==0", "sum", "0", "break;", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "static int[] parseInts(char[] c){\n\t\tint[] x = new int[c.length];\n\t\tfor(int i=0;i<c.length;i++){\n\t\t\tx[i] = Character.getNumericValue(c[i]);\n\t\t}\n\t\treturn x;\n\t}", "parseInts", "{\n\t\tint[] x = new int[c.length];\n\t\tfor(int i=0;i<c.length;i++){\n\t\t\tx[i] = Character.getNumericValue(c[i]);\n\t\t}\n\t\treturn x;\n\t}", "int[] x = new int[c.length];", "x", "new int[c.length]", "c.length", "c", "c.length", "for(int i=0;i<c.length;i++){\n\t\t\tx[i] = Character.getNumericValue(c[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<c.length", "i", "c.length", "c", "c.length", "i++", "i++", "i", "{\n\t\t\tx[i] = Character.getNumericValue(c[i]);\n\t\t}", "{\n\t\t\tx[i] = Character.getNumericValue(c[i]);\n\t\t}", "x[i] = Character.getNumericValue(c[i])", "x[i]", "x", "i", "Character.getNumericValue(c[i])", "Character.getNumericValue", "Character", "c[i]", "c", "i", "return x;", "x", "char[] c", "c" ]
import java.io.*; class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int sum; while(true){ sum=0; String str = br.readLine(); char[] cr = str.toCharArray(); int[] in = parseInts(cr); for(int i=0;i<in.length;i++){ sum += in[i]; } if(sum==0) break; System.out.println(sum); } } static int[] parseInts(char[] c){ int[] x = new int[c.length]; for(int i=0;i<c.length;i++){ x[i] = Character.getNumericValue(c[i]); } return x; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 15, 5 ], [ 15, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 6, 12 ], [ 12, 13 ], [ 0, 14 ], [ 14, 15 ], [ 14, 16 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n over:\n while(true){\n String line = sc.next();\n int a = line.length();\n int b = 0;\n char x;\n for(int i= 0; i < a; i++){\n x = line.charAt(i);\n if(a == 1 && x == 48) {\n break over;\n }\n b = b + (x - 48);\n }\n System.out.println(b);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n over:\n while(true){\n String line = sc.next();\n int a = line.length();\n int b = 0;\n char x;\n for(int i= 0; i < a; i++){\n x = line.charAt(i);\n if(a == 1 && x == 48) {\n break over;\n }\n b = b + (x - 48);\n }\n System.out.println(b);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n over:\n while(true){\n String line = sc.next();\n int a = line.length();\n int b = 0;\n char x;\n for(int i= 0; i < a; i++){\n x = line.charAt(i);\n if(a == 1 && x == 48) {\n break over;\n }\n b = b + (x - 48);\n }\n System.out.println(b);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n over:\n while(true){\n String line = sc.next();\n int a = line.length();\n int b = 0;\n char x;\n for(int i= 0; i < a; i++){\n x = line.charAt(i);\n if(a == 1 && x == 48) {\n break over;\n }\n b = b + (x - 48);\n }\n System.out.println(b);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n over:\n while(true){\n String line = sc.next();\n int a = line.length();\n int b = 0;\n char x;\n for(int i= 0; i < a; i++){\n x = line.charAt(i);\n if(a == 1 && x == 48) {\n break over;\n }\n b = b + (x - 48);\n }\n System.out.println(b);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n over:\n while(true){\n String line = sc.next();\n int a = line.length();\n int b = 0;\n char x;\n for(int i= 0; i < a; i++){\n x = line.charAt(i);\n if(a == 1 && x == 48) {\n break over;\n }\n b = b + (x - 48);\n }\n System.out.println(b);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); over: while(true){ String line = sc.next(); int a = line.length(); int b = 0; char x; for(int i= 0; i < a; i++){ x = line.charAt(i); if(a == 1 && x == 48) { break over; } b = b + (x - 48); } System.out.println(b); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 20, 41, 13, 42, 17, 30, 0, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 3, 0, 13, 17, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 13, 4, 18, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 74, 11 ], [ 74, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 30, 35 ], [ 27, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 36, 43 ], [ 27, 44 ], [ 44, 45 ], [ 44, 46 ], [ 27, 47 ], [ 47, 48 ], [ 47, 49 ], [ 47, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 27, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 58, 64 ], [ 14, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 12, 71 ], [ 71, 72 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[];\n StringBuilder sb = new StringBuilder();\n int result;\n while(true){\n str = br.readLine().split(\"\");\n if(str[0].equals(\"0\")) break;\n result = 0;\n for(String str1 : str){\n result += Integer.parseInt(str1);\n }\n sb.append(result).append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[];\n StringBuilder sb = new StringBuilder();\n int result;\n while(true){\n str = br.readLine().split(\"\");\n if(str[0].equals(\"0\")) break;\n result = 0;\n for(String str1 : str){\n result += Integer.parseInt(str1);\n }\n sb.append(result).append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[];\n StringBuilder sb = new StringBuilder();\n int result;\n while(true){\n str = br.readLine().split(\"\");\n if(str[0].equals(\"0\")) break;\n result = 0;\n for(String str1 : str){\n result += Integer.parseInt(str1);\n }\n sb.append(result).append(\"\\n\");\n }\n System.out.print(sb);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[];\n StringBuilder sb = new StringBuilder();\n int result;\n while(true){\n str = br.readLine().split(\"\");\n if(str[0].equals(\"0\")) break;\n result = 0;\n for(String str1 : str){\n result += Integer.parseInt(str1);\n }\n sb.append(result).append(\"\\n\");\n }\n System.out.print(sb);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str[];", "str", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int result;", "result", "while(true){\n str = br.readLine().split(\"\");\n if(str[0].equals(\"0\")) break;\n result = 0;\n for(String str1 : str){\n result += Integer.parseInt(str1);\n }\n sb.append(result).append(\"\\n\");\n }", "true", "{\n str = br.readLine().split(\"\");\n if(str[0].equals(\"0\")) break;\n result = 0;\n for(String str1 : str){\n result += Integer.parseInt(str1);\n }\n sb.append(result).append(\"\\n\");\n }", "str = br.readLine().split(\"\")", "str", "br.readLine().split(\"\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"\"", "if(str[0].equals(\"0\")) break;", "str[0].equals(\"0\")", "str[0].equals", "str[0]", "str", "0", "\"0\"", "break;", "result = 0", "result", "0", "for(String str1 : str){\n result += Integer.parseInt(str1);\n }", "String str1", "str", "{\n result += Integer.parseInt(str1);\n }", "{\n result += Integer.parseInt(str1);\n }", "result += Integer.parseInt(str1)", "result", "Integer.parseInt(str1)", "Integer.parseInt", "Integer", "str1", "sb.append(result).append(\"\\n\")", "sb.append(result).append", "sb.append(result)", "sb.append", "sb", "result", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[];\n StringBuilder sb = new StringBuilder();\n int result;\n while(true){\n str = br.readLine().split(\"\");\n if(str[0].equals(\"0\")) break;\n result = 0;\n for(String str1 : str){\n result += Integer.parseInt(str1);\n }\n sb.append(result).append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str[];\n StringBuilder sb = new StringBuilder();\n int result;\n while(true){\n str = br.readLine().split(\"\");\n if(str[0].equals(\"0\")) break;\n result = 0;\n for(String str1 : str){\n result += Integer.parseInt(str1);\n }\n sb.append(result).append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str[]; StringBuilder sb = new StringBuilder(); int result; while(true){ str = br.readLine().split(""); if(str[0].equals("0")) break; result = 0; for(String str1 : str){ result += Integer.parseInt(str1); } sb.append(result).append("\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 4, 18, 13, 17, 17, 3, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 65, 5 ], [ 65, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 24, 29 ], [ 23, 30 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 31, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 48, 55 ], [ 14, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 6, 62 ], [ 62, 63 ], [ 0, 64 ], [ 64, 65 ], [ 64, 66 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n String line = sc.nextLine();\n int sum = 0;\n \n if(line.charAt(0) == '0')break;\n \n for(int i = 0; i < line.length(); i++){\n sum += Character.digit(line.charAt(i), 10);\n }\n System.out.println(sum);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n String line = sc.nextLine();\n int sum = 0;\n \n if(line.charAt(0) == '0')break;\n \n for(int i = 0; i < line.length(); i++){\n sum += Character.digit(line.charAt(i), 10);\n }\n System.out.println(sum);\n }\n }\n}", "Main", "public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n String line = sc.nextLine();\n int sum = 0;\n \n if(line.charAt(0) == '0')break;\n \n for(int i = 0; i < line.length(); i++){\n sum += Character.digit(line.charAt(i), 10);\n }\n System.out.println(sum);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n while(true){\n String line = sc.nextLine();\n int sum = 0;\n \n if(line.charAt(0) == '0')break;\n \n for(int i = 0; i < line.length(); i++){\n sum += Character.digit(line.charAt(i), 10);\n }\n System.out.println(sum);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n String line = sc.nextLine();\n int sum = 0;\n \n if(line.charAt(0) == '0')break;\n \n for(int i = 0; i < line.length(); i++){\n sum += Character.digit(line.charAt(i), 10);\n }\n System.out.println(sum);\n }", "true", "{\n String line = sc.nextLine();\n int sum = 0;\n \n if(line.charAt(0) == '0')break;\n \n for(int i = 0; i < line.length(); i++){\n sum += Character.digit(line.charAt(i), 10);\n }\n System.out.println(sum);\n }", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "int sum = 0;", "sum", "0", "if(line.charAt(0) == '0')break;", "line.charAt(0) == '0'", "line.charAt(0)", "line.charAt", "line", "0", "'0'", "break;", "for(int i = 0; i < line.length(); i++){\n sum += Character.digit(line.charAt(i), 10);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < line.length()", "i", "line.length()", "line.length", "line", "i++", "i++", "i", "{\n sum += Character.digit(line.charAt(i), 10);\n }", "{\n sum += Character.digit(line.charAt(i), 10);\n }", "sum += Character.digit(line.charAt(i), 10)", "sum", "Character.digit(line.charAt(i), 10)", "Character.digit", "Character", "line.charAt(i)", "line.charAt", "line", "i", "10", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String [] args", "args", "public class Main {\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n String line = sc.nextLine();\n int sum = 0;\n \n if(line.charAt(0) == '0')break;\n \n for(int i = 0; i < line.length(); i++){\n sum += Character.digit(line.charAt(i), 10);\n }\n System.out.println(sum);\n }\n }\n}", "public class Main {\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n String line = sc.nextLine();\n int sum = 0;\n \n if(line.charAt(0) == '0')break;\n \n for(int i = 0; i < line.length(); i++){\n sum += Character.digit(line.charAt(i), 10);\n }\n System.out.println(sum);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String [] args){ Scanner sc = new Scanner(System.in); while(true){ String line = sc.nextLine(); int sum = 0; if(line.charAt(0) == '0')break; for(int i = 0; i < line.length(); i++){ sum += Character.digit(line.charAt(i), 10); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 0, 13, 13, 14, 2, 13, 17, 3, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 36, 37 ], [ 36, 38 ], [ 25, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 51, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 51, 64 ], [ 64, 65 ], [ 64, 66 ], [ 25, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 25, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 25, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 12, 83 ], [ 83, 84 ] ]
[ "import java.io.*;\nimport java.util.Scanner;\nimport java.lang.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\ttry{\n\t\t\tScanner stdIn = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tString s = stdIn.nextLine();\n\t\t\t\t\n\t\t\t\tint l = s.length();\n\t\t\t\tint k = 0;\n\t\t\t\tfor(int i = 0;i < l;i++){\n\t\t\t\t\tchar a = s.charAt(i);\n\t\t\t\t\tint a2 = Character.getNumericValue(a);\n\t\t\t\t\tk += a2;\n\t\t\t\t}\n\t\t\t\tif(k == 0) break;\n\t\t\t\tSystem.out.print(k);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}\n}\t\t\t", "import java.io.*;", "io.*", "java", "import java.util.Scanner;", "Scanner", "java.util", "import java.lang.*;", "lang.*", "java", "class Main{\n\tpublic static void main(String[] args){\n\t\ttry{\n\t\t\tScanner stdIn = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tString s = stdIn.nextLine();\n\t\t\t\t\n\t\t\t\tint l = s.length();\n\t\t\t\tint k = 0;\n\t\t\t\tfor(int i = 0;i < l;i++){\n\t\t\t\t\tchar a = s.charAt(i);\n\t\t\t\t\tint a2 = Character.getNumericValue(a);\n\t\t\t\t\tk += a2;\n\t\t\t\t}\n\t\t\t\tif(k == 0) break;\n\t\t\t\tSystem.out.print(k);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\ttry{\n\t\t\tScanner stdIn = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tString s = stdIn.nextLine();\n\t\t\t\t\n\t\t\t\tint l = s.length();\n\t\t\t\tint k = 0;\n\t\t\t\tfor(int i = 0;i < l;i++){\n\t\t\t\t\tchar a = s.charAt(i);\n\t\t\t\t\tint a2 = Character.getNumericValue(a);\n\t\t\t\t\tk += a2;\n\t\t\t\t}\n\t\t\t\tif(k == 0) break;\n\t\t\t\tSystem.out.print(k);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}", "main", "{\n\t\ttry{\n\t\t\tScanner stdIn = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tString s = stdIn.nextLine();\n\t\t\t\t\n\t\t\t\tint l = s.length();\n\t\t\t\tint k = 0;\n\t\t\t\tfor(int i = 0;i < l;i++){\n\t\t\t\t\tchar a = s.charAt(i);\n\t\t\t\t\tint a2 = Character.getNumericValue(a);\n\t\t\t\t\tk += a2;\n\t\t\t\t}\n\t\t\t\tif(k == 0) break;\n\t\t\t\tSystem.out.print(k);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}\n\t}", "try{\n\t\t\tScanner stdIn = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tString s = stdIn.nextLine();\n\t\t\t\t\n\t\t\t\tint l = s.length();\n\t\t\t\tint k = 0;\n\t\t\t\tfor(int i = 0;i < l;i++){\n\t\t\t\t\tchar a = s.charAt(i);\n\t\t\t\t\tint a2 = Character.getNumericValue(a);\n\t\t\t\t\tk += a2;\n\t\t\t\t}\n\t\t\t\tif(k == 0) break;\n\t\t\t\tSystem.out.print(k);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t}", "catch(Exception e){\n\t\t}", "Exception e", "{\n\t\t}", "{\n\t\t\tScanner stdIn = new Scanner(System.in);\n\t\t\twhile(true){\n\t\t\t\tString s = stdIn.nextLine();\n\t\t\t\t\n\t\t\t\tint l = s.length();\n\t\t\t\tint k = 0;\n\t\t\t\tfor(int i = 0;i < l;i++){\n\t\t\t\t\tchar a = s.charAt(i);\n\t\t\t\t\tint a2 = Character.getNumericValue(a);\n\t\t\t\t\tk += a2;\n\t\t\t\t}\n\t\t\t\tif(k == 0) break;\n\t\t\t\tSystem.out.print(k);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "while(true){\n\t\t\t\tString s = stdIn.nextLine();\n\t\t\t\t\n\t\t\t\tint l = s.length();\n\t\t\t\tint k = 0;\n\t\t\t\tfor(int i = 0;i < l;i++){\n\t\t\t\t\tchar a = s.charAt(i);\n\t\t\t\t\tint a2 = Character.getNumericValue(a);\n\t\t\t\t\tk += a2;\n\t\t\t\t}\n\t\t\t\tif(k == 0) break;\n\t\t\t\tSystem.out.print(k);\n\t\t\t\tSystem.out.println();\n\t\t\t}", "true", "{\n\t\t\t\tString s = stdIn.nextLine();\n\t\t\t\t\n\t\t\t\tint l = s.length();\n\t\t\t\tint k = 0;\n\t\t\t\tfor(int i = 0;i < l;i++){\n\t\t\t\t\tchar a = s.charAt(i);\n\t\t\t\t\tint a2 = Character.getNumericValue(a);\n\t\t\t\t\tk += a2;\n\t\t\t\t}\n\t\t\t\tif(k == 0) break;\n\t\t\t\tSystem.out.print(k);\n\t\t\t\tSystem.out.println();\n\t\t\t}", "String s = stdIn.nextLine();", "s", "stdIn.nextLine()", "stdIn.nextLine", "stdIn", "int l = s.length();", "l", "s.length()", "s.length", "s", "int k = 0;", "k", "0", "for(int i = 0;i < l;i++){\n\t\t\t\t\tchar a = s.charAt(i);\n\t\t\t\t\tint a2 = Character.getNumericValue(a);\n\t\t\t\t\tk += a2;\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < l", "i", "l", "i++", "i++", "i", "{\n\t\t\t\t\tchar a = s.charAt(i);\n\t\t\t\t\tint a2 = Character.getNumericValue(a);\n\t\t\t\t\tk += a2;\n\t\t\t\t}", "{\n\t\t\t\t\tchar a = s.charAt(i);\n\t\t\t\t\tint a2 = Character.getNumericValue(a);\n\t\t\t\t\tk += a2;\n\t\t\t\t}", "char a = s.charAt(i);", "a", "s.charAt(i)", "s.charAt", "s", "i", "int a2 = Character.getNumericValue(a);", "a2", "Character.getNumericValue(a)", "Character.getNumericValue", "Character", "a", "k += a2", "k", "a2", "if(k == 0) break;", "k == 0", "k", "0", "break;", "System.out.print(k)", "System.out.print", "System.out", "System", "System.out", "k", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args" ]
import java.io.*; import java.util.Scanner; import java.lang.*; class Main{ public static void main(String[] args){ try{ Scanner stdIn = new Scanner(System.in); while(true){ String s = stdIn.nextLine(); int l = s.length(); int k = 0; for(int i = 0;i < l;i++){ char a = s.charAt(i); int a2 = Character.getNumericValue(a); k += a2; } if(k == 0) break; System.out.print(k); System.out.println(); } } catch(Exception e){ } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 11, 1, 0, 13, 4, 18, 13, 40, 4, 18, 13, 17, 1, 0, 13, 4, 18, 13, 30, 30, 41, 13, 17, 28, 13, 4, 18, 13, 30, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 37, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 33, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 6, 55 ], [ 55, 56 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String s;\n\n for (s = input.next(); !s.equals(\"0\"); s = input.next()){\n int sum = 0;\n for (char c : s.toCharArray()){\n sum += c - '0';\n }\n System.out.println(sum);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String s;\n\n for (s = input.next(); !s.equals(\"0\"); s = input.next()){\n int sum = 0;\n for (char c : s.toCharArray()){\n sum += c - '0';\n }\n System.out.println(sum);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String s;\n\n for (s = input.next(); !s.equals(\"0\"); s = input.next()){\n int sum = 0;\n for (char c : s.toCharArray()){\n sum += c - '0';\n }\n System.out.println(sum);\n }\n }", "main", "{\n Scanner input = new Scanner(System.in);\n String s;\n\n for (s = input.next(); !s.equals(\"0\"); s = input.next()){\n int sum = 0;\n for (char c : s.toCharArray()){\n sum += c - '0';\n }\n System.out.println(sum);\n }\n }", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "String s;", "s", "for (s = input.next(); !s.equals(\"0\"); s = input.next()){\n int sum = 0;\n for (char c : s.toCharArray()){\n sum += c - '0';\n }\n System.out.println(sum);\n }", "s = input.next();", "s = input.next()", "s", "input.next()", "input.next", "input", "!s.equals(\"0\")", "s.equals(\"0\")", "s.equals", "s", "\"0\"", "s = input.next()", "s = input.next()", "s", "input.next()", "input.next", "input", "{\n int sum = 0;\n for (char c : s.toCharArray()){\n sum += c - '0';\n }\n System.out.println(sum);\n }", "{\n int sum = 0;\n for (char c : s.toCharArray()){\n sum += c - '0';\n }\n System.out.println(sum);\n }", "int sum = 0;", "sum", "0", "for (char c : s.toCharArray()){\n sum += c - '0';\n }", "char c", "s.toCharArray()", "s.toCharArray", "s", "{\n sum += c - '0';\n }", "{\n sum += c - '0';\n }", "sum += c - '0'", "sum", "c - '0'", "c", "'0'", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s; for (s = input.next(); !s.equals("0"); s = input.next()){ int sum = 0; for (char c : s.toCharArray()){ sum += c - '0'; } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 40, 4, 18, 13, 17, 30, 41, 13, 17, 41, 13, 17, 11, 1, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 2, 13, 17, 41, 13, 4, 18, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 74, 5 ], [ 74, 6 ], [ 6, 7 ], [ 6, 8 ], [ 74, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 28, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 35, 42 ], [ 42, 43 ], [ 43, 44 ], [ 35, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 46, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 46, 62 ], [ 62, 63 ], [ 62, 64 ], [ 28, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 9, 71 ], [ 71, 72 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "import java.util.*;\npublic class Main {\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args) {\n \n while(kbd.hasNext()){\n String n = kbd.next();\n if(!(n.equals(\"0\"))){\n int sum = 0;\n int i=0;\n for(; i<n.length(); i++){\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }\n System.out.println(sum);\n }\n }\n }\n} ", "import java.util.*;", "util.*", "java", "public class Main {\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args) {\n \n while(kbd.hasNext()){\n String n = kbd.next();\n if(!(n.equals(\"0\"))){\n int sum = 0;\n int i=0;\n for(; i<n.length(); i++){\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }\n System.out.println(sum);\n }\n }\n }\n}", "Main", "static Scanner kbd = new Scanner(System.in);", "kbd", "new Scanner(System.in)", "public static void main(String[] args) {\n \n while(kbd.hasNext()){\n String n = kbd.next();\n if(!(n.equals(\"0\"))){\n int sum = 0;\n int i=0;\n for(; i<n.length(); i++){\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }\n System.out.println(sum);\n }\n }\n }", "main", "{\n \n while(kbd.hasNext()){\n String n = kbd.next();\n if(!(n.equals(\"0\"))){\n int sum = 0;\n int i=0;\n for(; i<n.length(); i++){\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }\n System.out.println(sum);\n }\n }\n }", "while(kbd.hasNext()){\n String n = kbd.next();\n if(!(n.equals(\"0\"))){\n int sum = 0;\n int i=0;\n for(; i<n.length(); i++){\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }\n System.out.println(sum);\n }\n }", "kbd.hasNext()", "kbd.hasNext", "kbd", "{\n String n = kbd.next();\n if(!(n.equals(\"0\"))){\n int sum = 0;\n int i=0;\n for(; i<n.length(); i++){\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }\n System.out.println(sum);\n }\n }", "String n = kbd.next();", "n", "kbd.next()", "kbd.next", "kbd", "if(!(n.equals(\"0\"))){\n int sum = 0;\n int i=0;\n for(; i<n.length(); i++){\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }\n System.out.println(sum);\n }", "!(n.equals(\"0\"))", "(n.equals(\"0\"))", "n.equals", "n", "\"0\"", "{\n int sum = 0;\n int i=0;\n for(; i<n.length(); i++){\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }\n System.out.println(sum);\n }", "int sum = 0;", "sum", "0", "int i=0;", "i", "0", "for(; i<n.length(); i++){\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }", ";", "i<n.length()", "i", "n.length()", "n.length", "n", "i++", "i++", "i", "{\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }", "{\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }", "String a = n.substring(i,i+1);", "a", "n.substring(i,i+1)", "n.substring", "n", "i", "i+1", "i", "1", "int b = Integer.parseInt(a);", "b", "Integer.parseInt(a)", "Integer.parseInt", "Integer", "a", "sum += b", "sum", "b", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args) {\n \n while(kbd.hasNext()){\n String n = kbd.next();\n if(!(n.equals(\"0\"))){\n int sum = 0;\n int i=0;\n for(; i<n.length(); i++){\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }\n System.out.println(sum);\n }\n }\n }\n}", "public class Main {\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args) {\n \n while(kbd.hasNext()){\n String n = kbd.next();\n if(!(n.equals(\"0\"))){\n int sum = 0;\n int i=0;\n for(; i<n.length(); i++){\n String a = n.substring(i,i+1);\n //System.out.println(a);\n int b = Integer.parseInt(a);\n //System.out.println(sum+\"+\"+b);\n sum += b;\n }\n System.out.println(sum);\n }\n }\n }\n}", "Main" ]
import java.util.*; public class Main { static Scanner kbd = new Scanner(System.in); public static void main(String[] args) { while(kbd.hasNext()){ String n = kbd.next(); if(!(n.equals("0"))){ int sum = 0; int i=0; for(; i<n.length(); i++){ String a = n.substring(i,i+1); //System.out.println(a); int b = Integer.parseInt(a); //System.out.println(sum+"+"+b); sum += b; } System.out.println(sum); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 13, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 70, 5 ], [ 70, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 28, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 38, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 14, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 6, 67 ], [ 67, 68 ], [ 0, 69 ], [ 69, 70 ], [ 69, 71 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = scan.next();\n\t\t\tif(num.equals(\"0\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar subnum[] = num.toCharArray();\n\t\t\tfor(int i = 0; i < subnum.length; i++){\n\t\t\t\tsum += Character.getNumericValue(subnum[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = scan.next();\n\t\t\tif(num.equals(\"0\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar subnum[] = num.toCharArray();\n\t\t\tfor(int i = 0; i < subnum.length; i++){\n\t\t\t\tsum += Character.getNumericValue(subnum[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = scan.next();\n\t\t\tif(num.equals(\"0\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar subnum[] = num.toCharArray();\n\t\t\tfor(int i = 0; i < subnum.length; i++){\n\t\t\t\tsum += Character.getNumericValue(subnum[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = scan.next();\n\t\t\tif(num.equals(\"0\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar subnum[] = num.toCharArray();\n\t\t\tfor(int i = 0; i < subnum.length; i++){\n\t\t\t\tsum += Character.getNumericValue(subnum[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\t\t\tint sum = 0;\n\t\t\tString num = scan.next();\n\t\t\tif(num.equals(\"0\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar subnum[] = num.toCharArray();\n\t\t\tfor(int i = 0; i < subnum.length; i++){\n\t\t\t\tsum += Character.getNumericValue(subnum[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tint sum = 0;\n\t\t\tString num = scan.next();\n\t\t\tif(num.equals(\"0\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar subnum[] = num.toCharArray();\n\t\t\tfor(int i = 0; i < subnum.length; i++){\n\t\t\t\tsum += Character.getNumericValue(subnum[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "int sum = 0;", "sum", "0", "String num = scan.next();", "num", "scan.next()", "scan.next", "scan", "if(num.equals(\"0\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}", "num.equals(\"0\")", "num.equals", "num", "\"0\"", "{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}", "scan.close()", "scan.close", "scan", "break;", "char subnum[] = num.toCharArray();", "subnum", "num.toCharArray()", "num.toCharArray", "num", "for(int i = 0; i < subnum.length; i++){\n\t\t\t\tsum += Character.getNumericValue(subnum[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < subnum.length", "i", "subnum.length", "subnum", "subnum.length", "i++", "i++", "i", "{\n\t\t\t\tsum += Character.getNumericValue(subnum[i]);\n\t\t\t}", "{\n\t\t\t\tsum += Character.getNumericValue(subnum[i]);\n\t\t\t}", "sum += Character.getNumericValue(subnum[i])", "sum", "Character.getNumericValue(subnum[i])", "Character.getNumericValue", "Character", "subnum[i]", "subnum", "i", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = scan.next();\n\t\t\tif(num.equals(\"0\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar subnum[] = num.toCharArray();\n\t\t\tfor(int i = 0; i < subnum.length; i++){\n\t\t\t\tsum += Character.getNumericValue(subnum[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = scan.next();\n\t\t\tif(num.equals(\"0\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar subnum[] = num.toCharArray();\n\t\t\tfor(int i = 0; i < subnum.length; i++){\n\t\t\t\tsum += Character.getNumericValue(subnum[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(true){ int sum = 0; String num = scan.next(); if(num.equals("0")){ scan.close(); break; } char subnum[] = num.toCharArray(); for(int i = 0; i < subnum.length; i++){ sum += Character.getNumericValue(subnum[i]); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 18, 13, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 81, 11 ], [ 81, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 22, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 22, 45 ], [ 45, 46 ], [ 45, 47 ], [ 22, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 66, 68 ], [ 60, 69 ], [ 69, 70 ], [ 69, 71 ], [ 22, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 12, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????\\???????????????????????°??????????¨??????????????????????\n\t\tint digits_sum;\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString num = input.readLine();\n\n\t\t\t// ????????????????????????\n\t\t\tif (num.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// int???????????????????????\\????????????String????????°?????§????´?\n\t\t\tchar[] digits_number_array = num.toCharArray();\n\n\t\t\t// ?????????????????°?????????????????????\n\t\t\tint d_line_num = digits_number_array.length;\n\n\t\t\t// ?????????sum????¶????????????????\n\t\t\tdigits_sum = 0;\n\n\t\t\t// ??\\??????????????°?????????????????????????¶???????????????????\n\t\t\tfor (int digits_number_spot = 0; digits_number_spot < d_line_num; digits_number_spot++) {\n\n\t\t\t\t// char???int??????????????¨??§????¶??????????????????????\n\t\t\t\tint digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);\n\n\n\t\t\t\t// ???????????°???????¶???????????????????\n\t\t\t\tdigits_sum += digits_num;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(digits_sum);\n\n\t\t}\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????\\???????????????????????°??????????¨??????????????????????\n\t\tint digits_sum;\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString num = input.readLine();\n\n\t\t\t// ????????????????????????\n\t\t\tif (num.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// int???????????????????????\\????????????String????????°?????§????´?\n\t\t\tchar[] digits_number_array = num.toCharArray();\n\n\t\t\t// ?????????????????°?????????????????????\n\t\t\tint d_line_num = digits_number_array.length;\n\n\t\t\t// ?????????sum????¶????????????????\n\t\t\tdigits_sum = 0;\n\n\t\t\t// ??\\??????????????°?????????????????????????¶???????????????????\n\t\t\tfor (int digits_number_spot = 0; digits_number_spot < d_line_num; digits_number_spot++) {\n\n\t\t\t\t// char???int??????????????¨??§????¶??????????????????????\n\t\t\t\tint digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);\n\n\n\t\t\t\t// ???????????°???????¶???????????????????\n\t\t\t\tdigits_sum += digits_num;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(digits_sum);\n\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????\\???????????????????????°??????????¨??????????????????????\n\t\tint digits_sum;\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString num = input.readLine();\n\n\t\t\t// ????????????????????????\n\t\t\tif (num.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// int???????????????????????\\????????????String????????°?????§????´?\n\t\t\tchar[] digits_number_array = num.toCharArray();\n\n\t\t\t// ?????????????????°?????????????????????\n\t\t\tint d_line_num = digits_number_array.length;\n\n\t\t\t// ?????????sum????¶????????????????\n\t\t\tdigits_sum = 0;\n\n\t\t\t// ??\\??????????????°?????????????????????????¶???????????????????\n\t\t\tfor (int digits_number_spot = 0; digits_number_spot < d_line_num; digits_number_spot++) {\n\n\t\t\t\t// char???int??????????????¨??§????¶??????????????????????\n\t\t\t\tint digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);\n\n\n\t\t\t\t// ???????????°???????¶???????????????????\n\t\t\t\tdigits_sum += digits_num;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(digits_sum);\n\n\t\t}\n\n\t}", "main", "{\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????\\???????????????????????°??????????¨??????????????????????\n\t\tint digits_sum;\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString num = input.readLine();\n\n\t\t\t// ????????????????????????\n\t\t\tif (num.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// int???????????????????????\\????????????String????????°?????§????´?\n\t\t\tchar[] digits_number_array = num.toCharArray();\n\n\t\t\t// ?????????????????°?????????????????????\n\t\t\tint d_line_num = digits_number_array.length;\n\n\t\t\t// ?????????sum????¶????????????????\n\t\t\tdigits_sum = 0;\n\n\t\t\t// ??\\??????????????°?????????????????????????¶???????????????????\n\t\t\tfor (int digits_number_spot = 0; digits_number_spot < d_line_num; digits_number_spot++) {\n\n\t\t\t\t// char???int??????????????¨??§????¶??????????????????????\n\t\t\t\tint digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);\n\n\n\t\t\t\t// ???????????°???????¶???????????????????\n\t\t\t\tdigits_sum += digits_num;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(digits_sum);\n\n\t\t}\n\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "int digits_sum;", "digits_sum", "while (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString num = input.readLine();\n\n\t\t\t// ????????????????????????\n\t\t\tif (num.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// int???????????????????????\\????????????String????????°?????§????´?\n\t\t\tchar[] digits_number_array = num.toCharArray();\n\n\t\t\t// ?????????????????°?????????????????????\n\t\t\tint d_line_num = digits_number_array.length;\n\n\t\t\t// ?????????sum????¶????????????????\n\t\t\tdigits_sum = 0;\n\n\t\t\t// ??\\??????????????°?????????????????????????¶???????????????????\n\t\t\tfor (int digits_number_spot = 0; digits_number_spot < d_line_num; digits_number_spot++) {\n\n\t\t\t\t// char???int??????????????¨??§????¶??????????????????????\n\t\t\t\tint digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);\n\n\n\t\t\t\t// ???????????°???????¶???????????????????\n\t\t\t\tdigits_sum += digits_num;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(digits_sum);\n\n\t\t}", "true", "{\n\n\t\t\t// ???????????\\???\n\t\t\tString num = input.readLine();\n\n\t\t\t// ????????????????????????\n\t\t\tif (num.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// int???????????????????????\\????????????String????????°?????§????´?\n\t\t\tchar[] digits_number_array = num.toCharArray();\n\n\t\t\t// ?????????????????°?????????????????????\n\t\t\tint d_line_num = digits_number_array.length;\n\n\t\t\t// ?????????sum????¶????????????????\n\t\t\tdigits_sum = 0;\n\n\t\t\t// ??\\??????????????°?????????????????????????¶???????????????????\n\t\t\tfor (int digits_number_spot = 0; digits_number_spot < d_line_num; digits_number_spot++) {\n\n\t\t\t\t// char???int??????????????¨??§????¶??????????????????????\n\t\t\t\tint digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);\n\n\n\t\t\t\t// ???????????°???????¶???????????????????\n\t\t\t\tdigits_sum += digits_num;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(digits_sum);\n\n\t\t}", "String num = input.readLine();", "num", "input.readLine()", "input.readLine", "input", "if (num.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}", "num.equals(\"0\")", "num.equals", "num", "\"0\"", "{\n\n\t\t\t\tbreak;\n\n\t\t\t}", "break;", "char[] digits_number_array = num.toCharArray();", "digits_number_array", "num.toCharArray()", "num.toCharArray", "num", "int d_line_num = digits_number_array.length;", "d_line_num", "digits_number_array.length", "digits_number_array", "digits_number_array.length", "digits_sum = 0", "digits_sum", "0", "for (int digits_number_spot = 0; digits_number_spot < d_line_num; digits_number_spot++) {\n\n\t\t\t\t// char???int??????????????¨??§????¶??????????????????????\n\t\t\t\tint digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);\n\n\n\t\t\t\t// ???????????°???????¶???????????????????\n\t\t\t\tdigits_sum += digits_num;\n\n\t\t\t}", "int digits_number_spot = 0;", "int digits_number_spot = 0;", "digits_number_spot", "0", "digits_number_spot < d_line_num", "digits_number_spot", "d_line_num", "digits_number_spot++", "digits_number_spot++", "digits_number_spot", "{\n\n\t\t\t\t// char???int??????????????¨??§????¶??????????????????????\n\t\t\t\tint digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);\n\n\n\t\t\t\t// ???????????°???????¶???????????????????\n\t\t\t\tdigits_sum += digits_num;\n\n\t\t\t}", "{\n\n\t\t\t\t// char???int??????????????¨??§????¶??????????????????????\n\t\t\t\tint digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);\n\n\n\t\t\t\t// ???????????°???????¶???????????????????\n\t\t\t\tdigits_sum += digits_num;\n\n\t\t\t}", "int digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);", "digits_num", "Character.getNumericValue(digits_number_array[digits_number_spot])", "Character.getNumericValue", "Character", "digits_number_array[digits_number_spot]", "digits_number_array", "digits_number_spot", "digits_sum += digits_num", "digits_sum", "digits_num", "System.out.println(digits_sum)", "System.out.println", "System.out", "System", "System.out", "digits_sum", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????\\???????????????????????°??????????¨??????????????????????\n\t\tint digits_sum;\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString num = input.readLine();\n\n\t\t\t// ????????????????????????\n\t\t\tif (num.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// int???????????????????????\\????????????String????????°?????§????´?\n\t\t\tchar[] digits_number_array = num.toCharArray();\n\n\t\t\t// ?????????????????°?????????????????????\n\t\t\tint d_line_num = digits_number_array.length;\n\n\t\t\t// ?????????sum????¶????????????????\n\t\t\tdigits_sum = 0;\n\n\t\t\t// ??\\??????????????°?????????????????????????¶???????????????????\n\t\t\tfor (int digits_number_spot = 0; digits_number_spot < d_line_num; digits_number_spot++) {\n\n\t\t\t\t// char???int??????????????¨??§????¶??????????????????????\n\t\t\t\tint digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);\n\n\n\t\t\t\t// ???????????°???????¶???????????????????\n\t\t\t\tdigits_sum += digits_num;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(digits_sum);\n\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????\\???????????????????????°??????????¨??????????????????????\n\t\tint digits_sum;\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString num = input.readLine();\n\n\t\t\t// ????????????????????????\n\t\t\tif (num.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t// int???????????????????????\\????????????String????????°?????§????´?\n\t\t\tchar[] digits_number_array = num.toCharArray();\n\n\t\t\t// ?????????????????°?????????????????????\n\t\t\tint d_line_num = digits_number_array.length;\n\n\t\t\t// ?????????sum????¶????????????????\n\t\t\tdigits_sum = 0;\n\n\t\t\t// ??\\??????????????°?????????????????????????¶???????????????????\n\t\t\tfor (int digits_number_spot = 0; digits_number_spot < d_line_num; digits_number_spot++) {\n\n\t\t\t\t// char???int??????????????¨??§????¶??????????????????????\n\t\t\t\tint digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]);\n\n\n\t\t\t\t// ???????????°???????¶???????????????????\n\t\t\t\tdigits_sum += digits_num;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(digits_sum);\n\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); // ???????????\???????????????????????°??????????¨?????????????????????? int digits_sum; while (true) { // ???????????\??? String num = input.readLine(); // ???????????????????????? if (num.equals("0")) { break; } // int???????????????????????\????????????String????????°?????§????´? char[] digits_number_array = num.toCharArray(); // ?????????????????°????????????????????? int d_line_num = digits_number_array.length; // ?????????sum????¶???????????????? digits_sum = 0; // ??\??????????????°?????????????????????????¶??????????????????? for (int digits_number_spot = 0; digits_number_spot < d_line_num; digits_number_spot++) { // char???int??????????????¨??§????¶?????????????????????? int digits_num = Character.getNumericValue(digits_number_array[digits_number_spot]); // ???????????°???????¶??????????????????? digits_sum += digits_num; } System.out.println(digits_sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 0, 13, 17, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 13, 17, 14, 2, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 64, 5 ], [ 64, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 18, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 18, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 27, 37 ], [ 37, 38 ], [ 38, 39 ], [ 27, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 18, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 18, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 6, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "import java.util.Scanner;\n \npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum=0;\n str = sc.next();\n for(int i=0;i<str.length();i++){\n sum += str.charAt(i)-'0';\n }\n if(sum==0) break;\n System.out.println(sum);\n } \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum=0;\n str = sc.next();\n for(int i=0;i<str.length();i++){\n sum += str.charAt(i)-'0';\n }\n if(sum==0) break;\n System.out.println(sum);\n } \n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum=0;\n str = sc.next();\n for(int i=0;i<str.length();i++){\n sum += str.charAt(i)-'0';\n }\n if(sum==0) break;\n System.out.println(sum);\n } \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum=0;\n str = sc.next();\n for(int i=0;i<str.length();i++){\n sum += str.charAt(i)-'0';\n }\n if(sum==0) break;\n System.out.println(sum);\n } \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str;", "str", "int sum;", "sum", "while(true){\n sum=0;\n str = sc.next();\n for(int i=0;i<str.length();i++){\n sum += str.charAt(i)-'0';\n }\n if(sum==0) break;\n System.out.println(sum);\n }", "true", "{\n sum=0;\n str = sc.next();\n for(int i=0;i<str.length();i++){\n sum += str.charAt(i)-'0';\n }\n if(sum==0) break;\n System.out.println(sum);\n }", "sum=0", "sum", "0", "str = sc.next()", "str", "sc.next()", "sc.next", "sc", "for(int i=0;i<str.length();i++){\n sum += str.charAt(i)-'0';\n }", "int i=0;", "int i=0;", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n sum += str.charAt(i)-'0';\n }", "{\n sum += str.charAt(i)-'0';\n }", "sum += str.charAt(i)-'0'", "sum", "str.charAt(i)-'0'", "str.charAt(i)", "str.charAt", "str", "i", "'0'", "if(sum==0) break;", "sum==0", "sum", "0", "break;", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum=0;\n str = sc.next();\n for(int i=0;i<str.length();i++){\n sum += str.charAt(i)-'0';\n }\n if(sum==0) break;\n System.out.println(sum);\n } \n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum=0;\n str = sc.next();\n for(int i=0;i<str.length();i++){\n sum += str.charAt(i)-'0';\n }\n if(sum==0) break;\n System.out.println(sum);\n } \n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str; int sum; while(true){ sum=0; str = sc.next(); for(int i=0;i<str.length();i++){ sum += str.charAt(i)-'0'; } if(sum==0) break; System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 17, 41, 13, 4, 18, 13, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 55, 5 ], [ 55, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 35, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 14, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\t//データの読み取りの準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\t//データの読み取り\n\t\t\tString temp = sc.next();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif(temp.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint result = 0;\n\t\t\t\n\t\t\t//tempをchar型の配列に変換\n\t\t\tchar temp_2[] = temp.toCharArray();\n\t\t\t\n\t\t\tfor(char c:temp_2){\n\t\t\t\tresult += Character.getNumericValue(c);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\t\t//データの読み取りの準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\t//データの読み取り\n\t\t\tString temp = sc.next();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif(temp.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint result = 0;\n\t\t\t\n\t\t\t//tempをchar型の配列に変換\n\t\t\tchar temp_2[] = temp.toCharArray();\n\t\t\t\n\t\t\tfor(char c:temp_2){\n\t\t\t\tresult += Character.getNumericValue(c);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\t//データの読み取りの準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\t//データの読み取り\n\t\t\tString temp = sc.next();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif(temp.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint result = 0;\n\t\t\t\n\t\t\t//tempをchar型の配列に変換\n\t\t\tchar temp_2[] = temp.toCharArray();\n\t\t\t\n\t\t\tfor(char c:temp_2){\n\t\t\t\tresult += Character.getNumericValue(c);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}", "main", "{\n\t\t//データの読み取りの準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\t//データの読み取り\n\t\t\tString temp = sc.next();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif(temp.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint result = 0;\n\t\t\t\n\t\t\t//tempをchar型の配列に変換\n\t\t\tchar temp_2[] = temp.toCharArray();\n\t\t\t\n\t\t\tfor(char c:temp_2){\n\t\t\t\tresult += Character.getNumericValue(c);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\t\t//データの読み取り\n\t\t\tString temp = sc.next();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif(temp.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint result = 0;\n\t\t\t\n\t\t\t//tempをchar型の配列に変換\n\t\t\tchar temp_2[] = temp.toCharArray();\n\t\t\t\n\t\t\tfor(char c:temp_2){\n\t\t\t\tresult += Character.getNumericValue(c);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(result);\n\t\t}", "true", "{\n\t\t\t//データの読み取り\n\t\t\tString temp = sc.next();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif(temp.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint result = 0;\n\t\t\t\n\t\t\t//tempをchar型の配列に変換\n\t\t\tchar temp_2[] = temp.toCharArray();\n\t\t\t\n\t\t\tfor(char c:temp_2){\n\t\t\t\tresult += Character.getNumericValue(c);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(result);\n\t\t}", "String temp = sc.next();", "temp", "sc.next()", "sc.next", "sc", "if(temp.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}", "temp.equals(\"0\")", "temp.equals", "temp", "\"0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int result = 0;", "result", "0", "char temp_2[] = temp.toCharArray();", "temp_2", "temp.toCharArray()", "temp.toCharArray", "temp", "for(char c:temp_2){\n\t\t\t\tresult += Character.getNumericValue(c);\n\t\t\t}", "char c", "temp_2", "{\n\t\t\t\tresult += Character.getNumericValue(c);\n\t\t\t}", "{\n\t\t\t\tresult += Character.getNumericValue(c);\n\t\t\t}", "result += Character.getNumericValue(c)", "result", "Character.getNumericValue(c)", "Character.getNumericValue", "Character", "c", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\t//データの読み取りの準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\t//データの読み取り\n\t\t\tString temp = sc.next();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif(temp.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint result = 0;\n\t\t\t\n\t\t\t//tempをchar型の配列に変換\n\t\t\tchar temp_2[] = temp.toCharArray();\n\t\t\t\n\t\t\tfor(char c:temp_2){\n\t\t\t\tresult += Character.getNumericValue(c);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\t//データの読み取りの準備\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\t//データの読み取り\n\t\t\tString temp = sc.next();\n\t\t\t\n\t\t\t//終了条件の判定\n\t\t\tif(temp.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint result = 0;\n\t\t\t\n\t\t\t//tempをchar型の配列に変換\n\t\t\tchar temp_2[] = temp.toCharArray();\n\t\t\t\n\t\t\tfor(char c:temp_2){\n\t\t\t\tresult += Character.getNumericValue(c);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ //データの読み取りの準備 Scanner sc = new Scanner(System.in); while(true){ //データの読み取り String temp = sc.next(); //終了条件の判定 if(temp.equals("0")){ break; } int result = 0; //tempをchar型の配列に変換 char temp_2[] = temp.toCharArray(); for(char c:temp_2){ result += Character.getNumericValue(c); } System.out.println(result); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 0, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 30, 14, 2, 4, 18, 13, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 17, 0, 13, 17, 4, 18, 13, 2, 4, 18, 13, 17, 4, 18, 18, 13, 13, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 109, 8 ], [ 109, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 42, 49 ], [ 49, 50 ], [ 29, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 51, 61 ], [ 61, 62 ], [ 62, 63 ], [ 51, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 65, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 29, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 29, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 29, 89 ], [ 89, 90 ], [ 89, 91 ], [ 11, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 95, 99 ], [ 11, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 9, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "\n\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n\tpublic static void main(String args[])throws IOException,NumberFormatException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\tint sum;//????¨????????¨????????????¨\n\t\tchar c;\n\t\tsum = 0;\n\t\t\n\t\twhile(true){\n\t\t\tstr=br.readLine();\n\t\t\t\n\t\t\t//String??????long????????????\n\t\t\tif(str.length() == 1){\n\t\t\t\tif(Integer.parseInt(str) == 0){\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//?????????????????????\n\t\t\tfor(int count = 0;count<str.length();count++){\n\t\t\t\t//????????????????????????????????????????¶?????????????\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t//Char??????String??????Long??????????????????????¨?????¶?????????????\n\t\t\t\tsum += Integer.parseInt(String.valueOf(c));\n\t\t\t}\n\t\tsb.append(sum);\n\t\tsb.append(\"\\n\");\n\t\tsum = 0;//?????????\n\t\t}\n\t\t\n\t\t//????????????????????????????????????(\"\\n\")?????¨???\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tSystem.out.println(new String(sb));\n\t\t\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String args[])throws IOException,NumberFormatException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\tint sum;//????¨????????¨????????????¨\n\t\tchar c;\n\t\tsum = 0;\n\t\t\n\t\twhile(true){\n\t\t\tstr=br.readLine();\n\t\t\t\n\t\t\t//String??????long????????????\n\t\t\tif(str.length() == 1){\n\t\t\t\tif(Integer.parseInt(str) == 0){\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//?????????????????????\n\t\t\tfor(int count = 0;count<str.length();count++){\n\t\t\t\t//????????????????????????????????????????¶?????????????\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t//Char??????String??????Long??????????????????????¨?????¶?????????????\n\t\t\t\tsum += Integer.parseInt(String.valueOf(c));\n\t\t\t}\n\t\tsb.append(sum);\n\t\tsb.append(\"\\n\");\n\t\tsum = 0;//?????????\n\t\t}\n\t\t\n\t\t//????????????????????????????????????(\"\\n\")?????¨???\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tSystem.out.println(new String(sb));\n\t\t\n\t}\n}", "Main", "public static void main(String args[])throws IOException,NumberFormatException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\tint sum;//????¨????????¨????????????¨\n\t\tchar c;\n\t\tsum = 0;\n\t\t\n\t\twhile(true){\n\t\t\tstr=br.readLine();\n\t\t\t\n\t\t\t//String??????long????????????\n\t\t\tif(str.length() == 1){\n\t\t\t\tif(Integer.parseInt(str) == 0){\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//?????????????????????\n\t\t\tfor(int count = 0;count<str.length();count++){\n\t\t\t\t//????????????????????????????????????????¶?????????????\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t//Char??????String??????Long??????????????????????¨?????¶?????????????\n\t\t\t\tsum += Integer.parseInt(String.valueOf(c));\n\t\t\t}\n\t\tsb.append(sum);\n\t\tsb.append(\"\\n\");\n\t\tsum = 0;//?????????\n\t\t}\n\t\t\n\t\t//????????????????????????????????????(\"\\n\")?????¨???\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tSystem.out.println(new String(sb));\n\t\t\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\tint sum;//????¨????????¨????????????¨\n\t\tchar c;\n\t\tsum = 0;\n\t\t\n\t\twhile(true){\n\t\t\tstr=br.readLine();\n\t\t\t\n\t\t\t//String??????long????????????\n\t\t\tif(str.length() == 1){\n\t\t\t\tif(Integer.parseInt(str) == 0){\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//?????????????????????\n\t\t\tfor(int count = 0;count<str.length();count++){\n\t\t\t\t//????????????????????????????????????????¶?????????????\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t//Char??????String??????Long??????????????????????¨?????¶?????????????\n\t\t\t\tsum += Integer.parseInt(String.valueOf(c));\n\t\t\t}\n\t\tsb.append(sum);\n\t\tsb.append(\"\\n\");\n\t\tsum = 0;//?????????\n\t\t}\n\t\t\n\t\t//????????????????????????????????????(\"\\n\")?????¨???\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tSystem.out.println(new String(sb));\n\t\t\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String str;", "str", "int sum;", "sum", "char c;", "c", "sum = 0", "sum", "0", "while(true){\n\t\t\tstr=br.readLine();\n\t\t\t\n\t\t\t//String??????long????????????\n\t\t\tif(str.length() == 1){\n\t\t\t\tif(Integer.parseInt(str) == 0){\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//?????????????????????\n\t\t\tfor(int count = 0;count<str.length();count++){\n\t\t\t\t//????????????????????????????????????????¶?????????????\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t//Char??????String??????Long??????????????????????¨?????¶?????????????\n\t\t\t\tsum += Integer.parseInt(String.valueOf(c));\n\t\t\t}\n\t\tsb.append(sum);\n\t\tsb.append(\"\\n\");\n\t\tsum = 0;//?????????\n\t\t}", "true", "{\n\t\t\tstr=br.readLine();\n\t\t\t\n\t\t\t//String??????long????????????\n\t\t\tif(str.length() == 1){\n\t\t\t\tif(Integer.parseInt(str) == 0){\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//?????????????????????\n\t\t\tfor(int count = 0;count<str.length();count++){\n\t\t\t\t//????????????????????????????????????????¶?????????????\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t//Char??????String??????Long??????????????????????¨?????¶?????????????\n\t\t\t\tsum += Integer.parseInt(String.valueOf(c));\n\t\t\t}\n\t\tsb.append(sum);\n\t\tsb.append(\"\\n\");\n\t\tsum = 0;//?????????\n\t\t}", "str=br.readLine()", "str", "br.readLine()", "br.readLine", "br", "if(str.length() == 1){\n\t\t\t\tif(Integer.parseInt(str) == 0){\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "str.length() == 1", "str.length()", "str.length", "str", "1", "{\n\t\t\t\tif(Integer.parseInt(str) == 0){\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "if(Integer.parseInt(str) == 0){\n\t\t\t\tbreak;\n\t\t\t\t}", "Integer.parseInt(str) == 0", "Integer.parseInt(str)", "Integer.parseInt", "Integer", "str", "0", "{\n\t\t\t\tbreak;\n\t\t\t\t}", "break;", "for(int count = 0;count<str.length();count++){\n\t\t\t\t//????????????????????????????????????????¶?????????????\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t//Char??????String??????Long??????????????????????¨?????¶?????????????\n\t\t\t\tsum += Integer.parseInt(String.valueOf(c));\n\t\t\t}", "int count = 0;", "int count = 0;", "count", "0", "count<str.length()", "count", "str.length()", "str.length", "str", "count++", "count++", "count", "{\n\t\t\t\t//????????????????????????????????????????¶?????????????\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t//Char??????String??????Long??????????????????????¨?????¶?????????????\n\t\t\t\tsum += Integer.parseInt(String.valueOf(c));\n\t\t\t}", "{\n\t\t\t\t//????????????????????????????????????????¶?????????????\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t//Char??????String??????Long??????????????????????¨?????¶?????????????\n\t\t\t\tsum += Integer.parseInt(String.valueOf(c));\n\t\t\t}", "c = str.charAt(count)", "c", "str.charAt(count)", "str.charAt", "str", "count", "sum += Integer.parseInt(String.valueOf(c))", "sum", "Integer.parseInt(String.valueOf(c))", "Integer.parseInt", "Integer", "String.valueOf(c)", "String.valueOf", "String", "c", "sb.append(sum)", "sb.append", "sb", "sum", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "sum = 0", "sum", "0", "sb.deleteCharAt(sb.length()-1)", "sb.deleteCharAt", "sb", "sb.length()-1", "sb.length()", "sb.length", "sb", "1", "System.out.println(new String(sb))", "System.out.println", "System.out", "System", "System.out", "new String(sb)", "String args[]", "args", "public class Main {\n\tpublic static void main(String args[])throws IOException,NumberFormatException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\tint sum;//????¨????????¨????????????¨\n\t\tchar c;\n\t\tsum = 0;\n\t\t\n\t\twhile(true){\n\t\t\tstr=br.readLine();\n\t\t\t\n\t\t\t//String??????long????????????\n\t\t\tif(str.length() == 1){\n\t\t\t\tif(Integer.parseInt(str) == 0){\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//?????????????????????\n\t\t\tfor(int count = 0;count<str.length();count++){\n\t\t\t\t//????????????????????????????????????????¶?????????????\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t//Char??????String??????Long??????????????????????¨?????¶?????????????\n\t\t\t\tsum += Integer.parseInt(String.valueOf(c));\n\t\t\t}\n\t\tsb.append(sum);\n\t\tsb.append(\"\\n\");\n\t\tsum = 0;//?????????\n\t\t}\n\t\t\n\t\t//????????????????????????????????????(\"\\n\")?????¨???\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tSystem.out.println(new String(sb));\n\t\t\n\t}\n}", "public class Main {\n\tpublic static void main(String args[])throws IOException,NumberFormatException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\tint sum;//????¨????????¨????????????¨\n\t\tchar c;\n\t\tsum = 0;\n\t\t\n\t\twhile(true){\n\t\t\tstr=br.readLine();\n\t\t\t\n\t\t\t//String??????long????????????\n\t\t\tif(str.length() == 1){\n\t\t\t\tif(Integer.parseInt(str) == 0){\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//?????????????????????\n\t\t\tfor(int count = 0;count<str.length();count++){\n\t\t\t\t//????????????????????????????????????????¶?????????????\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t//Char??????String??????Long??????????????????????¨?????¶?????????????\n\t\t\t\tsum += Integer.parseInt(String.valueOf(c));\n\t\t\t}\n\t\tsb.append(sum);\n\t\tsb.append(\"\\n\");\n\t\tsum = 0;//?????????\n\t\t}\n\t\t\n\t\t//????????????????????????????????????(\"\\n\")?????¨???\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tSystem.out.println(new String(sb));\n\t\t\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String args[])throws IOException,NumberFormatException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); String str; int sum;//????¨????????¨????????????¨ char c; sum = 0; while(true){ str=br.readLine(); //String??????long???????????? if(str.length() == 1){ if(Integer.parseInt(str) == 0){ break; } } //????????????????????? for(int count = 0;count<str.length();count++){ //????????????????????????????????????????¶????????????? c = str.charAt(count); //Char??????String??????Long??????????????????????¨?????¶????????????? sum += Integer.parseInt(String.valueOf(c)); } sb.append(sum); sb.append("\n"); sum = 0;//????????? } //????????????????????????????????????("\n")?????¨??? sb.deleteCharAt(sb.length()-1); System.out.println(new String(sb)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 66, 5 ], [ 66, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 34, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString str = sc.nextLine();\n\n\t\t\tif (str.equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tchar[] sen = str.toCharArray();\n\t\t\tint sum = 0;\n\n\t\t\tfor (int i = 0; i<sen.length; i++) {\n\t\t\t\tsum += Character.getNumericValue(sen[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString str = sc.nextLine();\n\n\t\t\tif (str.equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tchar[] sen = str.toCharArray();\n\t\t\tint sum = 0;\n\n\t\t\tfor (int i = 0; i<sen.length; i++) {\n\t\t\t\tsum += Character.getNumericValue(sen[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString str = sc.nextLine();\n\n\t\t\tif (str.equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tchar[] sen = str.toCharArray();\n\t\t\tint sum = 0;\n\n\t\t\tfor (int i = 0; i<sen.length; i++) {\n\t\t\t\tsum += Character.getNumericValue(sen[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString str = sc.nextLine();\n\n\t\t\tif (str.equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tchar[] sen = str.toCharArray();\n\t\t\tint sum = 0;\n\n\t\t\tfor (int i = 0; i<sen.length; i++) {\n\t\t\t\tsum += Character.getNumericValue(sen[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\t\t\tString str = sc.nextLine();\n\n\t\t\tif (str.equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tchar[] sen = str.toCharArray();\n\t\t\tint sum = 0;\n\n\t\t\tfor (int i = 0; i<sen.length; i++) {\n\t\t\t\tsum += Character.getNumericValue(sen[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tString str = sc.nextLine();\n\n\t\t\tif (str.equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tchar[] sen = str.toCharArray();\n\t\t\tint sum = 0;\n\n\t\t\tfor (int i = 0; i<sen.length; i++) {\n\t\t\t\tsum += Character.getNumericValue(sen[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "String str = sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "if (str.equals(\"0\"))\n\t\t\t\tbreak;", "str.equals(\"0\")", "str.equals", "str", "\"0\"", "break;", "char[] sen = str.toCharArray();", "sen", "str.toCharArray()", "str.toCharArray", "str", "int sum = 0;", "sum", "0", "for (int i = 0; i<sen.length; i++) {\n\t\t\t\tsum += Character.getNumericValue(sen[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<sen.length", "i", "sen.length", "sen", "sen.length", "i++", "i++", "i", "{\n\t\t\t\tsum += Character.getNumericValue(sen[i]);\n\t\t\t}", "{\n\t\t\t\tsum += Character.getNumericValue(sen[i]);\n\t\t\t}", "sum += Character.getNumericValue(sen[i])", "sum", "Character.getNumericValue(sen[i])", "Character.getNumericValue", "Character", "sen[i]", "sen", "i", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString str = sc.nextLine();\n\n\t\t\tif (str.equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tchar[] sen = str.toCharArray();\n\t\t\tint sum = 0;\n\n\t\t\tfor (int i = 0; i<sen.length; i++) {\n\t\t\t\tsum += Character.getNumericValue(sen[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString str = sc.nextLine();\n\n\t\t\tif (str.equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tchar[] sen = str.toCharArray();\n\t\t\tint sum = 0;\n\n\t\t\tfor (int i = 0; i<sen.length; i++) {\n\t\t\t\tsum += Character.getNumericValue(sen[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { String str = sc.nextLine(); if (str.equals("0")) break; char[] sen = str.toCharArray(); int sum = 0; for (int i = 0; i<sen.length; i++) { sum += Character.getNumericValue(sen[i]); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 14, 2, 4, 18, 13, 18, 13, 17, 17, 30, 3, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 69, 5 ], [ 69, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 17, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 28, 30 ], [ 24, 31 ], [ 23, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 37, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 6, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n String[] str = sc.nextLine().split(\"\");\n if(Integer.parseInt(str[0]) == 0){\n break;\n }\n int ans = 0;\n for(int i = 0; i < str.length; i++){\n ans += Integer.parseInt(str[i]);\n }\n System.out.println(ans);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n String[] str = sc.nextLine().split(\"\");\n if(Integer.parseInt(str[0]) == 0){\n break;\n }\n int ans = 0;\n for(int i = 0; i < str.length; i++){\n ans += Integer.parseInt(str[i]);\n }\n System.out.println(ans);\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n String[] str = sc.nextLine().split(\"\");\n if(Integer.parseInt(str[0]) == 0){\n break;\n }\n int ans = 0;\n for(int i = 0; i < str.length; i++){\n ans += Integer.parseInt(str[i]);\n }\n System.out.println(ans);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n String[] str = sc.nextLine().split(\"\");\n if(Integer.parseInt(str[0]) == 0){\n break;\n }\n int ans = 0;\n for(int i = 0; i < str.length; i++){\n ans += Integer.parseInt(str[i]);\n }\n System.out.println(ans);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n String[] str = sc.nextLine().split(\"\");\n if(Integer.parseInt(str[0]) == 0){\n break;\n }\n int ans = 0;\n for(int i = 0; i < str.length; i++){\n ans += Integer.parseInt(str[i]);\n }\n System.out.println(ans);\n }", "true", "{\n String[] str = sc.nextLine().split(\"\");\n if(Integer.parseInt(str[0]) == 0){\n break;\n }\n int ans = 0;\n for(int i = 0; i < str.length; i++){\n ans += Integer.parseInt(str[i]);\n }\n System.out.println(ans);\n }", "String[] str = sc.nextLine().split(\"\");", "str", "sc.nextLine().split(\"\")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\"\"", "if(Integer.parseInt(str[0]) == 0){\n break;\n }", "Integer.parseInt(str[0]) == 0", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "0", "{\n break;\n }", "break;", "int ans = 0;", "ans", "0", "for(int i = 0; i < str.length; i++){\n ans += Integer.parseInt(str[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n ans += Integer.parseInt(str[i]);\n }", "{\n ans += Integer.parseInt(str[i]);\n }", "ans += Integer.parseInt(str[i])", "ans", "Integer.parseInt(str[i])", "Integer.parseInt", "Integer", "str[i]", "str", "i", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n String[] str = sc.nextLine().split(\"\");\n if(Integer.parseInt(str[0]) == 0){\n break;\n }\n int ans = 0;\n for(int i = 0; i < str.length; i++){\n ans += Integer.parseInt(str[i]);\n }\n System.out.println(ans);\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n String[] str = sc.nextLine().split(\"\");\n if(Integer.parseInt(str[0]) == 0){\n break;\n }\n int ans = 0;\n for(int i = 0; i < str.length; i++){\n ans += Integer.parseInt(str[i]);\n }\n System.out.println(ans);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); while(true){ String[] str = sc.nextLine().split(""); if(Integer.parseInt(str[0]) == 0){ break; } int ans = 0; for(int i = 0; i < str.length; i++){ ans += Integer.parseInt(str[i]); } System.out.println(ans); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 17, 42, 40, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 2, 13, 17, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 14, 2, 18, 13, 17, 17, 30, 0, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 67, 68 ], [ 67, 69 ], [ 56, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 56, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 96, 97 ], [ 97, 98 ], [ 88, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 100, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 119, 120 ], [ 119, 121 ], [ 56, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 122, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 56, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 138, 140 ], [ 133, 141 ], [ 141, 142 ], [ 142, 143 ], [ 133, 144 ], [ 145, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 56, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 8, 157 ], [ 157, 158 ], [ 158, 159 ], [ 6, 160 ], [ 160, 161 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n\t \tScanner scanner = new Scanner(System.in);\n\t \tString str;\n\t \tString con[] = new String[1000];\n\t \tint sumbox[] = new int[1000];\n\t \tint num = 0;\n\t \tint sum;\n\t \tint dig;\n\t\tboolean end = false;\n\t\tint count = 0;\n\t\t\n\t\t//初期化\n\t\tfor(int i = 0; i < 1000 ;i ++) {\n\t \t\tcon[i] = \"\";\n\t\t}\n\t\t\n\t\twhile( !end ){\n\t\t\tstr = scanner.nextLine();\n\t\t\tcount = str.length();\t\t//文字数取得\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0; i < 1000 ;i ++) {\n\t\t \t\tsumbox[i] = 0;\n\t\t\t}\n\t\t\t\n\t\t\t//文字列を1文字ずつの数字に\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tcon[i] = str.substring(i,i + 1);\n\t\t \t\t\tsumbox[i] = Short.parseShort(con[i]);\n\t\t\t}\n\t\t\t\n\t\t\t//終了判定したい場所\n\t\t\tif( sumbox[0] == 0 ){\n\t\t\t\tend = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//各桁を足す処理\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tsum += sumbox[i];\n\t\t\t}\n\t\t\t//出力\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\tscanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String args[]) {\n\t \tScanner scanner = new Scanner(System.in);\n\t \tString str;\n\t \tString con[] = new String[1000];\n\t \tint sumbox[] = new int[1000];\n\t \tint num = 0;\n\t \tint sum;\n\t \tint dig;\n\t\tboolean end = false;\n\t\tint count = 0;\n\t\t\n\t\t//初期化\n\t\tfor(int i = 0; i < 1000 ;i ++) {\n\t \t\tcon[i] = \"\";\n\t\t}\n\t\t\n\t\twhile( !end ){\n\t\t\tstr = scanner.nextLine();\n\t\t\tcount = str.length();\t\t//文字数取得\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0; i < 1000 ;i ++) {\n\t\t \t\tsumbox[i] = 0;\n\t\t\t}\n\t\t\t\n\t\t\t//文字列を1文字ずつの数字に\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tcon[i] = str.substring(i,i + 1);\n\t\t \t\t\tsumbox[i] = Short.parseShort(con[i]);\n\t\t\t}\n\t\t\t\n\t\t\t//終了判定したい場所\n\t\t\tif( sumbox[0] == 0 ){\n\t\t\t\tend = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//各桁を足す処理\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tsum += sumbox[i];\n\t\t\t}\n\t\t\t//出力\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\tscanner.close();\n }\n}", "Main", "public static void main(String args[]) {\n\t \tScanner scanner = new Scanner(System.in);\n\t \tString str;\n\t \tString con[] = new String[1000];\n\t \tint sumbox[] = new int[1000];\n\t \tint num = 0;\n\t \tint sum;\n\t \tint dig;\n\t\tboolean end = false;\n\t\tint count = 0;\n\t\t\n\t\t//初期化\n\t\tfor(int i = 0; i < 1000 ;i ++) {\n\t \t\tcon[i] = \"\";\n\t\t}\n\t\t\n\t\twhile( !end ){\n\t\t\tstr = scanner.nextLine();\n\t\t\tcount = str.length();\t\t//文字数取得\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0; i < 1000 ;i ++) {\n\t\t \t\tsumbox[i] = 0;\n\t\t\t}\n\t\t\t\n\t\t\t//文字列を1文字ずつの数字に\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tcon[i] = str.substring(i,i + 1);\n\t\t \t\t\tsumbox[i] = Short.parseShort(con[i]);\n\t\t\t}\n\t\t\t\n\t\t\t//終了判定したい場所\n\t\t\tif( sumbox[0] == 0 ){\n\t\t\t\tend = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//各桁を足す処理\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tsum += sumbox[i];\n\t\t\t}\n\t\t\t//出力\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\tscanner.close();\n }", "main", "{\n\t \tScanner scanner = new Scanner(System.in);\n\t \tString str;\n\t \tString con[] = new String[1000];\n\t \tint sumbox[] = new int[1000];\n\t \tint num = 0;\n\t \tint sum;\n\t \tint dig;\n\t\tboolean end = false;\n\t\tint count = 0;\n\t\t\n\t\t//初期化\n\t\tfor(int i = 0; i < 1000 ;i ++) {\n\t \t\tcon[i] = \"\";\n\t\t}\n\t\t\n\t\twhile( !end ){\n\t\t\tstr = scanner.nextLine();\n\t\t\tcount = str.length();\t\t//文字数取得\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0; i < 1000 ;i ++) {\n\t\t \t\tsumbox[i] = 0;\n\t\t\t}\n\t\t\t\n\t\t\t//文字列を1文字ずつの数字に\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tcon[i] = str.substring(i,i + 1);\n\t\t \t\t\tsumbox[i] = Short.parseShort(con[i]);\n\t\t\t}\n\t\t\t\n\t\t\t//終了判定したい場所\n\t\t\tif( sumbox[0] == 0 ){\n\t\t\t\tend = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//各桁を足す処理\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tsum += sumbox[i];\n\t\t\t}\n\t\t\t//出力\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t\tscanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String str;", "str", "String con[] = new String[1000];", "con", "new String[1000]", "1000", "int sumbox[] = new int[1000];", "sumbox", "new int[1000]", "1000", "int num = 0;", "num", "0", "int sum;", "sum", "int dig;", "dig", "boolean end = false;", "end", "false", "int count = 0;", "count", "0", "for(int i = 0; i < 1000 ;i ++) {\n\t \t\tcon[i] = \"\";\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 1000", "i", "1000", "i ++", "i ++", "i", "{\n\t \t\tcon[i] = \"\";\n\t\t}", "{\n\t \t\tcon[i] = \"\";\n\t\t}", "con[i] = \"\"", "con[i]", "con", "i", "\"\"", "while( !end ){\n\t\t\tstr = scanner.nextLine();\n\t\t\tcount = str.length();\t\t//文字数取得\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0; i < 1000 ;i ++) {\n\t\t \t\tsumbox[i] = 0;\n\t\t\t}\n\t\t\t\n\t\t\t//文字列を1文字ずつの数字に\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tcon[i] = str.substring(i,i + 1);\n\t\t \t\t\tsumbox[i] = Short.parseShort(con[i]);\n\t\t\t}\n\t\t\t\n\t\t\t//終了判定したい場所\n\t\t\tif( sumbox[0] == 0 ){\n\t\t\t\tend = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//各桁を足す処理\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tsum += sumbox[i];\n\t\t\t}\n\t\t\t//出力\n\t\t\tSystem.out.println(sum);\n\t\t}", "!end", "end", "{\n\t\t\tstr = scanner.nextLine();\n\t\t\tcount = str.length();\t\t//文字数取得\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0; i < 1000 ;i ++) {\n\t\t \t\tsumbox[i] = 0;\n\t\t\t}\n\t\t\t\n\t\t\t//文字列を1文字ずつの数字に\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tcon[i] = str.substring(i,i + 1);\n\t\t \t\t\tsumbox[i] = Short.parseShort(con[i]);\n\t\t\t}\n\t\t\t\n\t\t\t//終了判定したい場所\n\t\t\tif( sumbox[0] == 0 ){\n\t\t\t\tend = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//各桁を足す処理\n\t\t\tfor(int i = 0; i < count ;i ++) {\n\t\t \t\t\tsum += sumbox[i];\n\t\t\t}\n\t\t\t//出力\n\t\t\tSystem.out.println(sum);\n\t\t}", "str = scanner.nextLine()", "str", "scanner.nextLine()", "scanner.nextLine", "scanner", "count = str.length()", "count", "str.length()", "str.length", "str", "sum = 0", "sum", "0", "for(int i = 0; i < 1000 ;i ++) {\n\t\t \t\tsumbox[i] = 0;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 1000", "i", "1000", "i ++", "i ++", "i", "{\n\t\t \t\tsumbox[i] = 0;\n\t\t\t}", "{\n\t\t \t\tsumbox[i] = 0;\n\t\t\t}", "sumbox[i] = 0", "sumbox[i]", "sumbox", "i", "0", "for(int i = 0; i < count ;i ++) {\n\t\t \t\t\tcon[i] = str.substring(i,i + 1);\n\t\t \t\t\tsumbox[i] = Short.parseShort(con[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i ++", "i ++", "i", "{\n\t\t \t\t\tcon[i] = str.substring(i,i + 1);\n\t\t \t\t\tsumbox[i] = Short.parseShort(con[i]);\n\t\t\t}", "{\n\t\t \t\t\tcon[i] = str.substring(i,i + 1);\n\t\t \t\t\tsumbox[i] = Short.parseShort(con[i]);\n\t\t\t}", "con[i] = str.substring(i,i + 1)", "con[i]", "con", "i", "str.substring(i,i + 1)", "str.substring", "str", "i", "i + 1", "i", "1", "sumbox[i] = Short.parseShort(con[i])", "sumbox[i]", "sumbox", "i", "Short.parseShort(con[i])", "Short.parseShort", "Short", "con[i]", "con", "i", "if( sumbox[0] == 0 ){\n\t\t\t\tend = true;\n\t\t\t\tbreak;\n\t\t\t}", "sumbox[0] == 0", "sumbox[0]", "sumbox", "0", "0", "{\n\t\t\t\tend = true;\n\t\t\t\tbreak;\n\t\t\t}", "end = true", "end", "true", "break;", "for(int i = 0; i < count ;i ++) {\n\t\t \t\t\tsum += sumbox[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i ++", "i ++", "i", "{\n\t\t \t\t\tsum += sumbox[i];\n\t\t\t}", "{\n\t\t \t\t\tsum += sumbox[i];\n\t\t\t}", "sum += sumbox[i]", "sum", "sumbox[i]", "sumbox", "i", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "scanner.close()", "scanner.close", "scanner", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); String str; String con[] = new String[1000]; int sumbox[] = new int[1000]; int num = 0; int sum; int dig; boolean end = false; int count = 0; //初期化 for(int i = 0; i < 1000 ;i ++) { con[i] = ""; } while( !end ){ str = scanner.nextLine(); count = str.length(); //文字数取得 sum = 0; for(int i = 0; i < 1000 ;i ++) { sumbox[i] = 0; } //文字列を1文字ずつの数字に for(int i = 0; i < count ;i ++) { con[i] = str.substring(i,i + 1); sumbox[i] = Short.parseShort(con[i]); } //終了判定したい場所 if( sumbox[0] == 0 ){ end = true; break; } //各桁を足す処理 for(int i = 0; i < count ;i ++) { sum += sumbox[i]; } //出力 System.out.println(sum); } scanner.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 84, 8 ], [ 84, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 29, 41 ], [ 41, 42 ], [ 41, 43 ], [ 29, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 44, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 58, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 58, 72 ], [ 72, 73 ], [ 72, 74 ], [ 29, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 9, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\tCharacter objChar1;\n\tString str;\n\tchar c;\n\tint i,num,sum;\n\tScanner scan = new Scanner(System.in);\n\twhile(true) {\n\tstr=scan.next();\n\tif(str.equals(\"0\"))\n\t\tbreak;\n\tsum=0;\n\n\tfor (i=0;i<str.length();i++){\n\t\tc=str.charAt(i);\n\t\tnum=Character.digit(c,10);\n\t\tsum+=num;\n\t}\n\tSystem.out.println(sum);\n\t}\n}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\tCharacter objChar1;\n\tString str;\n\tchar c;\n\tint i,num,sum;\n\tScanner scan = new Scanner(System.in);\n\twhile(true) {\n\tstr=scan.next();\n\tif(str.equals(\"0\"))\n\t\tbreak;\n\tsum=0;\n\n\tfor (i=0;i<str.length();i++){\n\t\tc=str.charAt(i);\n\t\tnum=Character.digit(c,10);\n\t\tsum+=num;\n\t}\n\tSystem.out.println(sum);\n\t}\n}\n}", "Main", "public static void main(String[] args) throws IOException {\n\tCharacter objChar1;\n\tString str;\n\tchar c;\n\tint i,num,sum;\n\tScanner scan = new Scanner(System.in);\n\twhile(true) {\n\tstr=scan.next();\n\tif(str.equals(\"0\"))\n\t\tbreak;\n\tsum=0;\n\n\tfor (i=0;i<str.length();i++){\n\t\tc=str.charAt(i);\n\t\tnum=Character.digit(c,10);\n\t\tsum+=num;\n\t}\n\tSystem.out.println(sum);\n\t}\n}", "main", "{\n\tCharacter objChar1;\n\tString str;\n\tchar c;\n\tint i,num,sum;\n\tScanner scan = new Scanner(System.in);\n\twhile(true) {\n\tstr=scan.next();\n\tif(str.equals(\"0\"))\n\t\tbreak;\n\tsum=0;\n\n\tfor (i=0;i<str.length();i++){\n\t\tc=str.charAt(i);\n\t\tnum=Character.digit(c,10);\n\t\tsum+=num;\n\t}\n\tSystem.out.println(sum);\n\t}\n}", "Character objChar1;", "objChar1", "String str;", "str", "char c;", "c", "int i", "i", "num", "num", "sum;", "sum", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true) {\n\tstr=scan.next();\n\tif(str.equals(\"0\"))\n\t\tbreak;\n\tsum=0;\n\n\tfor (i=0;i<str.length();i++){\n\t\tc=str.charAt(i);\n\t\tnum=Character.digit(c,10);\n\t\tsum+=num;\n\t}\n\tSystem.out.println(sum);\n\t}", "true", "{\n\tstr=scan.next();\n\tif(str.equals(\"0\"))\n\t\tbreak;\n\tsum=0;\n\n\tfor (i=0;i<str.length();i++){\n\t\tc=str.charAt(i);\n\t\tnum=Character.digit(c,10);\n\t\tsum+=num;\n\t}\n\tSystem.out.println(sum);\n\t}", "str=scan.next()", "str", "scan.next()", "scan.next", "scan", "if(str.equals(\"0\"))\n\t\tbreak;", "str.equals(\"0\")", "str.equals", "str", "\"0\"", "break;", "sum=0", "sum", "0", "for (i=0;i<str.length();i++){\n\t\tc=str.charAt(i);\n\t\tnum=Character.digit(c,10);\n\t\tsum+=num;\n\t}", "i=0;", "i=0", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n\t\tc=str.charAt(i);\n\t\tnum=Character.digit(c,10);\n\t\tsum+=num;\n\t}", "{\n\t\tc=str.charAt(i);\n\t\tnum=Character.digit(c,10);\n\t\tsum+=num;\n\t}", "c=str.charAt(i)", "c", "str.charAt(i)", "str.charAt", "str", "i", "num=Character.digit(c,10)", "num", "Character.digit(c,10)", "Character.digit", "Character", "c", "10", "sum+=num", "sum", "num", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\tCharacter objChar1;\n\tString str;\n\tchar c;\n\tint i,num,sum;\n\tScanner scan = new Scanner(System.in);\n\twhile(true) {\n\tstr=scan.next();\n\tif(str.equals(\"0\"))\n\t\tbreak;\n\tsum=0;\n\n\tfor (i=0;i<str.length();i++){\n\t\tc=str.charAt(i);\n\t\tnum=Character.digit(c,10);\n\t\tsum+=num;\n\t}\n\tSystem.out.println(sum);\n\t}\n}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\tCharacter objChar1;\n\tString str;\n\tchar c;\n\tint i,num,sum;\n\tScanner scan = new Scanner(System.in);\n\twhile(true) {\n\tstr=scan.next();\n\tif(str.equals(\"0\"))\n\t\tbreak;\n\tsum=0;\n\n\tfor (i=0;i<str.length();i++){\n\t\tc=str.charAt(i);\n\t\tnum=Character.digit(c,10);\n\t\tsum+=num;\n\t}\n\tSystem.out.println(sum);\n\t}\n}\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Character objChar1; String str; char c; int i,num,sum; Scanner scan = new Scanner(System.in); while(true) { str=scan.next(); if(str.equals("0")) break; sum=0; for (i=0;i<str.length();i++){ c=str.charAt(i); num=Character.digit(c,10); sum+=num; } System.out.println(sum); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 2, 13, 17, 29, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 13, 4, 18, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 13, 17, 30, 0, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 17, 3, 4, 18, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 215, 14 ], [ 215, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 23, 27 ], [ 17, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 28, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 15, 54 ], [ 54, 55 ], [ 215, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 62, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 58, 89 ], [ 89, 90 ], [ 56, 91 ], [ 91, 92 ], [ 0, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 101, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 116, 117 ], [ 117, 118 ], [ 97, 119 ], [ 119, 120 ], [ 95, 121 ], [ 121, 122 ], [ 95, 123 ], [ 123, 124 ], [ 93, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 127, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 137, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 144, 149 ], [ 143, 150 ], [ 137, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 127, 155 ], [ 155, 156 ], [ 125, 157 ], [ 157, 158 ], [ 125, 159 ], [ 159, 160 ], [ 93, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 161, 168 ], [ 168, 169 ], [ 93, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 172, 179 ], [ 179, 180 ], [ 179, 181 ], [ 182, 183 ], [ 182, 184 ], [ 172, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 185, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 192, 194 ], [ 185, 195 ], [ 195, 196 ], [ 196, 197 ], [ 185, 198 ], [ 199, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 200, 204 ], [ 204, 205 ], [ 205, 206 ], [ 204, 207 ], [ 207, 208 ], [ 207, 209 ], [ 172, 210 ], [ 210, 211 ], [ 170, 212 ], [ 212, 213 ], [ 0, 214 ], [ 214, 215 ], [ 214, 216 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.util.ArrayList;\n\npublic class Main {\n\n\tpublic static void main(String[] args) \n\tthrows IOException{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tArrayList<String> al = TempReaderCall.getStdInReadlines(br, \"0\");\n\t\t\n\t\tfor (int i=0; i < al.size(); i++){\n\t\t\tSystem.out.println(sumFromString(al.get(i)));\n\t\t}\n\t}\n\t\n\tstatic int sumFromString(String data){\n\t\tint sum = 0;\n\t\tfor(int i=0; i<data.length(); i++){\n\t\t\tsum += Integer.parseInt(data.substring(i, i+1));\n\t\t}\n\t\t\n\t\treturn sum;\t\t\t\n\t}\n\n}\nclass TempReaderCall{\n\t\n\tstatic ArrayList<String> getStdInReadlines(BufferedReader br, int line) throws IOException {\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0; i < line; i++)\n\t\t\tlist.add(br.readLine());\n\t\treturn list;\n\t}\n\t\n\tstatic ArrayList<String> getStdInReadlines(BufferedReader br, String end) throws IOException {\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tString newdata;\n\t\tdo{\n\t\t\tnewdata =br.readLine();\n\t\t\tif (end.compareTo(newdata)==0)\n\t\t\t\tbreak;\n\t\t\tlist.add(newdata);\n\t\t}while(newdata!=null);\n\t\t\n\t\treturn list;\n\t}\n\t\n\tstatic String getStdInRead(BufferedReader br) throws IOException {\n\t\treturn (br.readLine());\n\t}\n\t\n\t\n\tstatic int[] splitIntArrayFromString(String st) {\n\t\tString[] sts = st.split(\" \");\n\t\tint[] data = new int[sts.length];\n\t\t\n\t\tfor (int i=0;i<sts.length;i++){\n\t\t\tdata[i] = Integer.parseInt(sts[i]);\n\t\t}\n\t\t\n\t\treturn data;\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) \n\tthrows IOException{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tArrayList<String> al = TempReaderCall.getStdInReadlines(br, \"0\");\n\t\t\n\t\tfor (int i=0; i < al.size(); i++){\n\t\t\tSystem.out.println(sumFromString(al.get(i)));\n\t\t}\n\t}\n\t\n\tstatic int sumFromString(String data){\n\t\tint sum = 0;\n\t\tfor(int i=0; i<data.length(); i++){\n\t\t\tsum += Integer.parseInt(data.substring(i, i+1));\n\t\t}\n\t\t\n\t\treturn sum;\t\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) \n\tthrows IOException{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tArrayList<String> al = TempReaderCall.getStdInReadlines(br, \"0\");\n\t\t\n\t\tfor (int i=0; i < al.size(); i++){\n\t\t\tSystem.out.println(sumFromString(al.get(i)));\n\t\t}\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tArrayList<String> al = TempReaderCall.getStdInReadlines(br, \"0\");\n\t\t\n\t\tfor (int i=0; i < al.size(); i++){\n\t\t\tSystem.out.println(sumFromString(al.get(i)));\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );", "br", "new BufferedReader(new InputStreamReader(System.in) )", "ArrayList<String> al = TempReaderCall.getStdInReadlines(br, \"0\");", "al", "TempReaderCall.getStdInReadlines(br, \"0\")", "TempReaderCall.getStdInReadlines", "TempReaderCall", "br", "\"0\"", "for (int i=0; i < al.size(); i++){\n\t\t\tSystem.out.println(sumFromString(al.get(i)));\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i < al.size()", "i", "al.size()", "al.size", "al", "i++", "i++", "i", "{\n\t\t\tSystem.out.println(sumFromString(al.get(i)));\n\t\t}", "{\n\t\t\tSystem.out.println(sumFromString(al.get(i)));\n\t\t}", "System.out.println(sumFromString(al.get(i)))", "System.out.println", "System.out", "System", "System.out", "sumFromString(al.get(i))", "sumFromString", "al.get(i)", "al.get", "al", "i", "String[] args", "args", "static int sumFromString(String data){\n\t\tint sum = 0;\n\t\tfor(int i=0; i<data.length(); i++){\n\t\t\tsum += Integer.parseInt(data.substring(i, i+1));\n\t\t}\n\t\t\n\t\treturn sum;\t\t\t\n\t}", "sumFromString", "{\n\t\tint sum = 0;\n\t\tfor(int i=0; i<data.length(); i++){\n\t\t\tsum += Integer.parseInt(data.substring(i, i+1));\n\t\t}\n\t\t\n\t\treturn sum;\t\t\t\n\t}", "int sum = 0;", "sum", "0", "for(int i=0; i<data.length(); i++){\n\t\t\tsum += Integer.parseInt(data.substring(i, i+1));\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<data.length()", "i", "data.length()", "data.length", "data", "i++", "i++", "i", "{\n\t\t\tsum += Integer.parseInt(data.substring(i, i+1));\n\t\t}", "{\n\t\t\tsum += Integer.parseInt(data.substring(i, i+1));\n\t\t}", "sum += Integer.parseInt(data.substring(i, i+1))", "sum", "Integer.parseInt(data.substring(i, i+1))", "Integer.parseInt", "Integer", "data.substring(i, i+1)", "data.substring", "data", "i", "i+1", "i", "1", "return sum;", "sum", "String data", "data", "class TempReaderCall{\n\t\n\tstatic ArrayList<String> getStdInReadlines(BufferedReader br, int line) throws IOException {\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0; i < line; i++)\n\t\t\tlist.add(br.readLine());\n\t\treturn list;\n\t}\n\t\n\tstatic ArrayList<String> getStdInReadlines(BufferedReader br, String end) throws IOException {\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tString newdata;\n\t\tdo{\n\t\t\tnewdata =br.readLine();\n\t\t\tif (end.compareTo(newdata)==0)\n\t\t\t\tbreak;\n\t\t\tlist.add(newdata);\n\t\t}while(newdata!=null);\n\t\t\n\t\treturn list;\n\t}\n\t\n\tstatic String getStdInRead(BufferedReader br) throws IOException {\n\t\treturn (br.readLine());\n\t}\n\t\n\t\n\tstatic int[] splitIntArrayFromString(String st) {\n\t\tString[] sts = st.split(\" \");\n\t\tint[] data = new int[sts.length];\n\t\t\n\t\tfor (int i=0;i<sts.length;i++){\n\t\t\tdata[i] = Integer.parseInt(sts[i]);\n\t\t}\n\t\t\n\t\treturn data;\n\t}\n}", "TempReaderCall", "static ArrayList<String> getStdInReadlines(BufferedReader br, int line) throws IOException {\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0; i < line; i++)\n\t\t\tlist.add(br.readLine());\n\t\treturn list;\n\t}", "getStdInReadlines", "{\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (int i = 0; i < line; i++)\n\t\t\tlist.add(br.readLine());\n\t\treturn list;\n\t}", "ArrayList<String> list = new ArrayList<String>();", "list", "new ArrayList<String>()", "for (int i = 0; i < line; i++)\n\t\t\tlist.add(br.readLine());", "int i = 0;", "int i = 0;", "i", "0", "i < line", "i", "line", "i++", "i++", "i", "list.add(br.readLine());", "list.add(br.readLine())", "list.add", "list", "br.readLine()", "br.readLine", "br", "return list;", "list", "BufferedReader br", "br", "int line", "line", "static ArrayList<String> getStdInReadlines(BufferedReader br, String end) throws IOException {\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tString newdata;\n\t\tdo{\n\t\t\tnewdata =br.readLine();\n\t\t\tif (end.compareTo(newdata)==0)\n\t\t\t\tbreak;\n\t\t\tlist.add(newdata);\n\t\t}while(newdata!=null);\n\t\t\n\t\treturn list;\n\t}", "getStdInReadlines", "{\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tString newdata;\n\t\tdo{\n\t\t\tnewdata =br.readLine();\n\t\t\tif (end.compareTo(newdata)==0)\n\t\t\t\tbreak;\n\t\t\tlist.add(newdata);\n\t\t}while(newdata!=null);\n\t\t\n\t\treturn list;\n\t}", "ArrayList<String> list = new ArrayList<String>();", "list", "new ArrayList<String>()", "String newdata;", "newdata", "do{\n\t\t\tnewdata =br.readLine();\n\t\t\tif (end.compareTo(newdata)==0)\n\t\t\t\tbreak;\n\t\t\tlist.add(newdata);\n\t\t}while(newdata!=null);", "newdata!=null", "newdata", "null", "{\n\t\t\tnewdata =br.readLine();\n\t\t\tif (end.compareTo(newdata)==0)\n\t\t\t\tbreak;\n\t\t\tlist.add(newdata);\n\t\t}", "newdata =br.readLine()", "newdata", "br.readLine()", "br.readLine", "br", "if (end.compareTo(newdata)==0)\n\t\t\t\tbreak;", "end.compareTo(newdata)==0", "end.compareTo(newdata)", "end.compareTo", "end", "newdata", "0", "break;", "list.add(newdata)", "list.add", "list", "newdata", "return list;", "list", "BufferedReader br", "br", "String end", "end", "static String getStdInRead(BufferedReader br) throws IOException {\n\t\treturn (br.readLine());\n\t}", "getStdInRead", "{\n\t\treturn (br.readLine());\n\t}", "return (br.readLine());", "(br.readLine())", "br.readLine", "br", "BufferedReader br", "br", "static int[] splitIntArrayFromString(String st) {\n\t\tString[] sts = st.split(\" \");\n\t\tint[] data = new int[sts.length];\n\t\t\n\t\tfor (int i=0;i<sts.length;i++){\n\t\t\tdata[i] = Integer.parseInt(sts[i]);\n\t\t}\n\t\t\n\t\treturn data;\n\t}", "splitIntArrayFromString", "{\n\t\tString[] sts = st.split(\" \");\n\t\tint[] data = new int[sts.length];\n\t\t\n\t\tfor (int i=0;i<sts.length;i++){\n\t\t\tdata[i] = Integer.parseInt(sts[i]);\n\t\t}\n\t\t\n\t\treturn data;\n\t}", "String[] sts = st.split(\" \");", "sts", "st.split(\" \")", "st.split", "st", "\" \"", "int[] data = new int[sts.length];", "data", "new int[sts.length]", "sts.length", "sts", "sts.length", "for (int i=0;i<sts.length;i++){\n\t\t\tdata[i] = Integer.parseInt(sts[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<sts.length", "i", "sts.length", "sts", "sts.length", "i++", "i++", "i", "{\n\t\t\tdata[i] = Integer.parseInt(sts[i]);\n\t\t}", "{\n\t\t\tdata[i] = Integer.parseInt(sts[i]);\n\t\t}", "data[i] = Integer.parseInt(sts[i])", "data[i]", "data", "i", "Integer.parseInt(sts[i])", "Integer.parseInt", "Integer", "sts[i]", "sts", "i", "return data;", "data", "String st", "st", "public class Main {\n\n\tpublic static void main(String[] args) \n\tthrows IOException{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tArrayList<String> al = TempReaderCall.getStdInReadlines(br, \"0\");\n\t\t\n\t\tfor (int i=0; i < al.size(); i++){\n\t\t\tSystem.out.println(sumFromString(al.get(i)));\n\t\t}\n\t}\n\t\n\tstatic int sumFromString(String data){\n\t\tint sum = 0;\n\t\tfor(int i=0; i<data.length(); i++){\n\t\t\tsum += Integer.parseInt(data.substring(i, i+1));\n\t\t}\n\t\t\n\t\treturn sum;\t\t\t\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) \n\tthrows IOException{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\tArrayList<String> al = TempReaderCall.getStdInReadlines(br, \"0\");\n\t\t\n\t\tfor (int i=0; i < al.size(); i++){\n\t\t\tSystem.out.println(sumFromString(al.get(i)));\n\t\t}\n\t}\n\t\n\tstatic int sumFromString(String data){\n\t\tint sum = 0;\n\t\tfor(int i=0; i<data.length(); i++){\n\t\t\tsum += Integer.parseInt(data.substring(i, i+1));\n\t\t}\n\t\t\n\t\treturn sum;\t\t\t\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.ArrayList; public class Main { public static void main(String[] args) throws IOException{ // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in) ); ArrayList<String> al = TempReaderCall.getStdInReadlines(br, "0"); for (int i=0; i < al.size(); i++){ System.out.println(sumFromString(al.get(i))); } } static int sumFromString(String data){ int sum = 0; for(int i=0; i<data.length(); i++){ sum += Integer.parseInt(data.substring(i, i+1)); } return sum; } } class TempReaderCall{ static ArrayList<String> getStdInReadlines(BufferedReader br, int line) throws IOException { ArrayList<String> list = new ArrayList<String>(); for (int i = 0; i < line; i++) list.add(br.readLine()); return list; } static ArrayList<String> getStdInReadlines(BufferedReader br, String end) throws IOException { ArrayList<String> list = new ArrayList<String>(); String newdata; do{ newdata =br.readLine(); if (end.compareTo(newdata)==0) break; list.add(newdata); }while(newdata!=null); return list; } static String getStdInRead(BufferedReader br) throws IOException { return (br.readLine()); } static int[] splitIntArrayFromString(String st) { String[] sts = st.split(" "); int[] data = new int[sts.length]; for (int i=0;i<sts.length;i++){ data[i] = Integer.parseInt(sts[i]); } return data; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 76, 5 ], [ 76, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 39, 49 ], [ 49, 50 ], [ 50, 51 ], [ 39, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 53, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 14, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 6, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\tString str = scan.next();\n\n\t\t\tif (str.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// strArry????????????????????????????´?\n\t\t\tString[] strArry = str.split(\"\");\n\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < strArry.length; i++) {\n\t\t\t\t//??´??°???????????????x?????£??\\\n\t\t\t\tx = Integer.parseInt(strArry[i]);\n\t\t\t\tsum = sum + x;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\tString str = scan.next();\n\n\t\t\tif (str.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// strArry????????????????????????????´?\n\t\t\tString[] strArry = str.split(\"\");\n\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < strArry.length; i++) {\n\t\t\t\t//??´??°???????????????x?????£??\\\n\t\t\t\tx = Integer.parseInt(strArry[i]);\n\t\t\t\tsum = sum + x;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\tString str = scan.next();\n\n\t\t\tif (str.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// strArry????????????????????????????´?\n\t\t\tString[] strArry = str.split(\"\");\n\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < strArry.length; i++) {\n\t\t\t\t//??´??°???????????????x?????£??\\\n\t\t\t\tx = Integer.parseInt(strArry[i]);\n\t\t\t\tsum = sum + x;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\tString str = scan.next();\n\n\t\t\tif (str.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// strArry????????????????????????????´?\n\t\t\tString[] strArry = str.split(\"\");\n\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < strArry.length; i++) {\n\t\t\t\t//??´??°???????????????x?????£??\\\n\t\t\t\tx = Integer.parseInt(strArry[i]);\n\t\t\t\tsum = sum + x;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (true) {\n\n\t\t\tString str = scan.next();\n\n\t\t\tif (str.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// strArry????????????????????????????´?\n\t\t\tString[] strArry = str.split(\"\");\n\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < strArry.length; i++) {\n\t\t\t\t//??´??°???????????????x?????£??\\\n\t\t\t\tx = Integer.parseInt(strArry[i]);\n\t\t\t\tsum = sum + x;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\n\t\t\tString str = scan.next();\n\n\t\t\tif (str.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// strArry????????????????????????????´?\n\t\t\tString[] strArry = str.split(\"\");\n\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < strArry.length; i++) {\n\t\t\t\t//??´??°???????????????x?????£??\\\n\t\t\t\tx = Integer.parseInt(strArry[i]);\n\t\t\t\tsum = sum + x;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}", "String str = scan.next();", "str", "scan.next()", "scan.next", "scan", "if (str.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}", "str.equals(\"0\")", "str.equals", "str", "\"0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] strArry = str.split(\"\");", "strArry", "str.split(\"\")", "str.split", "str", "\"\"", "int x = 0;", "x", "0", "int sum = 0;", "sum", "0", "for (int i = 0; i < strArry.length; i++) {\n\t\t\t\t//??´??°???????????????x?????£??\\\n\t\t\t\tx = Integer.parseInt(strArry[i]);\n\t\t\t\tsum = sum + x;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < strArry.length", "i", "strArry.length", "strArry", "strArry.length", "i++", "i++", "i", "{\n\t\t\t\t//??´??°???????????????x?????£??\\\n\t\t\t\tx = Integer.parseInt(strArry[i]);\n\t\t\t\tsum = sum + x;\n\t\t\t}", "{\n\t\t\t\t//??´??°???????????????x?????£??\\\n\t\t\t\tx = Integer.parseInt(strArry[i]);\n\t\t\t\tsum = sum + x;\n\t\t\t}", "x = Integer.parseInt(strArry[i])", "x", "Integer.parseInt(strArry[i])", "Integer.parseInt", "Integer", "strArry[i]", "strArry", "i", "sum = sum + x", "sum", "sum + x", "sum", "x", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\tString str = scan.next();\n\n\t\t\tif (str.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// strArry????????????????????????????´?\n\t\t\tString[] strArry = str.split(\"\");\n\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < strArry.length; i++) {\n\t\t\t\t//??´??°???????????????x?????£??\\\n\t\t\t\tx = Integer.parseInt(strArry[i]);\n\t\t\t\tsum = sum + x;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\tString str = scan.next();\n\n\t\t\tif (str.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// strArry????????????????????????????´?\n\t\t\tString[] strArry = str.split(\"\");\n\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < strArry.length; i++) {\n\t\t\t\t//??´??°???????????????x?????£??\\\n\t\t\t\tx = Integer.parseInt(strArry[i]);\n\t\t\t\tsum = sum + x;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (true) { String str = scan.next(); if (str.equals("0")) { break; } // strArry????????????????????????????´? String[] strArry = str.split(""); int x = 0; int sum = 0; for (int i = 0; i < strArry.length; i++) { //??´??°???????????????x?????£??\ x = Integer.parseInt(strArry[i]); sum = sum + x; } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 17, 30, 3, 4, 18, 18, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 21, 26 ], [ 20, 27 ], [ 27, 28 ], [ 14, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 6, 37 ], [ 37, 38 ], [ 77, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 41, 72 ], [ 72, 73 ], [ 39, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.Scanner;\n\n/**\n * @author SS-1029\n *\n */\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//??\\??????????????????????????????Scanner???????????§???????????????\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\twhile(true){\n\t\t\t//??????????????????\n\t\t\tString x = scan.nextLine();\n\t\t\t//???????????¶\n\t\t\tif(x.charAt(0) == '0'){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//???????????¨???\n\t\t\tSystem.out.println(getSum(x));\n\t\t}\n\t}\n\n\t/*\n\t * ?¨??????????????????????\n\t * @param String x\n\t * @param return int sum\n\t */\n\tpublic static int getSum(String x) {\n\n\t\t//??????????????£?¨?\n\t\tint sum = 0;\n\t\t//char?????????????????°?????????\n\t\tfor(int i = 0; i < x.length(); i++){\n\t\t\t//String?????????????????°?????????\n\t\t\tsum += Integer.parseInt(String.valueOf(x.charAt(i)));\n\t\t}\n\t\treturn sum;\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//??\\??????????????????????????????Scanner???????????§???????????????\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\twhile(true){\n\t\t\t//??????????????????\n\t\t\tString x = scan.nextLine();\n\t\t\t//???????????¶\n\t\t\tif(x.charAt(0) == '0'){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//???????????¨???\n\t\t\tSystem.out.println(getSum(x));\n\t\t}\n\t}\n\n\t/*\n\t * ?¨??????????????????????\n\t * @param String x\n\t * @param return int sum\n\t */\n\tpublic static int getSum(String x) {\n\n\t\t//??????????????£?¨?\n\t\tint sum = 0;\n\t\t//char?????????????????°?????????\n\t\tfor(int i = 0; i < x.length(); i++){\n\t\t\t//String?????????????????°?????????\n\t\t\tsum += Integer.parseInt(String.valueOf(x.charAt(i)));\n\t\t}\n\t\treturn sum;\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\t//??\\??????????????????????????????Scanner???????????§???????????????\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\twhile(true){\n\t\t\t//??????????????????\n\t\t\tString x = scan.nextLine();\n\t\t\t//???????????¶\n\t\t\tif(x.charAt(0) == '0'){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//???????????¨???\n\t\t\tSystem.out.println(getSum(x));\n\t\t}\n\t}", "main", "{\n\n\t\t//??\\??????????????????????????????Scanner???????????§???????????????\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\twhile(true){\n\t\t\t//??????????????????\n\t\t\tString x = scan.nextLine();\n\t\t\t//???????????¶\n\t\t\tif(x.charAt(0) == '0'){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//???????????¨???\n\t\t\tSystem.out.println(getSum(x));\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\t\t\t//??????????????????\n\t\t\tString x = scan.nextLine();\n\t\t\t//???????????¶\n\t\t\tif(x.charAt(0) == '0'){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//???????????¨???\n\t\t\tSystem.out.println(getSum(x));\n\t\t}", "true", "{\n\t\t\t//??????????????????\n\t\t\tString x = scan.nextLine();\n\t\t\t//???????????¶\n\t\t\tif(x.charAt(0) == '0'){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//???????????¨???\n\t\t\tSystem.out.println(getSum(x));\n\t\t}", "String x = scan.nextLine();", "x", "scan.nextLine()", "scan.nextLine", "scan", "if(x.charAt(0) == '0'){\n\t\t\t\tbreak;\n\t\t\t}", "x.charAt(0) == '0'", "x.charAt(0)", "x.charAt", "x", "0", "'0'", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "System.out.println(getSum(x))", "System.out.println", "System.out", "System", "System.out", "getSum(x)", "getSum", "x", "String[] args", "args", "/*\n\t * ?¨??????????????????????\n\t * @param String x\n\t * @param return int sum\n\t */\n\tpublic static int getSum(String x) {\n\n\t\t//??????????????£?¨?\n\t\tint sum = 0;\n\t\t//char?????????????????°?????????\n\t\tfor(int i = 0; i < x.length(); i++){\n\t\t\t//String?????????????????°?????????\n\t\t\tsum += Integer.parseInt(String.valueOf(x.charAt(i)));\n\t\t}\n\t\treturn sum;\n\t}", "getSum", "{\n\n\t\t//??????????????£?¨?\n\t\tint sum = 0;\n\t\t//char?????????????????°?????????\n\t\tfor(int i = 0; i < x.length(); i++){\n\t\t\t//String?????????????????°?????????\n\t\t\tsum += Integer.parseInt(String.valueOf(x.charAt(i)));\n\t\t}\n\t\treturn sum;\n\t}", "int sum = 0;", "sum", "0", "for(int i = 0; i < x.length(); i++){\n\t\t\t//String?????????????????°?????????\n\t\t\tsum += Integer.parseInt(String.valueOf(x.charAt(i)));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < x.length()", "i", "x.length()", "x.length", "x", "i++", "i++", "i", "{\n\t\t\t//String?????????????????°?????????\n\t\t\tsum += Integer.parseInt(String.valueOf(x.charAt(i)));\n\t\t}", "{\n\t\t\t//String?????????????????°?????????\n\t\t\tsum += Integer.parseInt(String.valueOf(x.charAt(i)));\n\t\t}", "sum += Integer.parseInt(String.valueOf(x.charAt(i)))", "sum", "Integer.parseInt(String.valueOf(x.charAt(i)))", "Integer.parseInt", "Integer", "String.valueOf(x.charAt(i))", "String.valueOf", "String", "x.charAt(i)", "x.charAt", "x", "i", "return sum;", "sum", "String x", "x", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//??\\??????????????????????????????Scanner???????????§???????????????\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\twhile(true){\n\t\t\t//??????????????????\n\t\t\tString x = scan.nextLine();\n\t\t\t//???????????¶\n\t\t\tif(x.charAt(0) == '0'){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//???????????¨???\n\t\t\tSystem.out.println(getSum(x));\n\t\t}\n\t}\n\n\t/*\n\t * ?¨??????????????????????\n\t * @param String x\n\t * @param return int sum\n\t */\n\tpublic static int getSum(String x) {\n\n\t\t//??????????????£?¨?\n\t\tint sum = 0;\n\t\t//char?????????????????°?????????\n\t\tfor(int i = 0; i < x.length(); i++){\n\t\t\t//String?????????????????°?????????\n\t\t\tsum += Integer.parseInt(String.valueOf(x.charAt(i)));\n\t\t}\n\t\treturn sum;\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//??\\??????????????????????????????Scanner???????????§???????????????\n\t\tScanner scan = new Scanner(System.in);\n\n\n\t\twhile(true){\n\t\t\t//??????????????????\n\t\t\tString x = scan.nextLine();\n\t\t\t//???????????¶\n\t\t\tif(x.charAt(0) == '0'){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//???????????¨???\n\t\t\tSystem.out.println(getSum(x));\n\t\t}\n\t}\n\n\t/*\n\t * ?¨??????????????????????\n\t * @param String x\n\t * @param return int sum\n\t */\n\tpublic static int getSum(String x) {\n\n\t\t//??????????????£?¨?\n\t\tint sum = 0;\n\t\t//char?????????????????°?????????\n\t\tfor(int i = 0; i < x.length(); i++){\n\t\t\t//String?????????????????°?????????\n\t\t\tsum += Integer.parseInt(String.valueOf(x.charAt(i)));\n\t\t}\n\t\treturn sum;\n\t}\n\n}", "Main" ]
import java.util.Scanner; /** * @author SS-1029 * */ public class Main { public static void main(String[] args) { //??\??????????????????????????????Scanner???????????§??????????????? Scanner scan = new Scanner(System.in); while(true){ //?????????????????? String x = scan.nextLine(); //???????????¶ if(x.charAt(0) == '0'){ break; } //???????????¨??? System.out.println(getSum(x)); } } /* * ?¨?????????????????????? * @param String x * @param return int sum */ public static int getSum(String x) { //??????????????£?¨? int sum = 0; //char?????????????????°????????? for(int i = 0; i < x.length(); i++){ //String?????????????????°????????? sum += Integer.parseInt(String.valueOf(x.charAt(i))); } return sum; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 42, 40, 4, 18, 18, 13, 17, 17, 30, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 0, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 38, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 37, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 37, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 37, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 37, 64 ], [ 64, 65 ], [ 64, 66 ], [ 9, 67 ], [ 67, 68 ] ]
[ "import static java.lang.System.out;\nimport java.util.Scanner;\n\nclass Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.next();\n String[] numbers = num.split(\"\");\n int ans = 0;\n while (!numbers[0].equals(\"0\")) {\n for (String n : numbers) {\n ans += Integer.parseInt(n);\n }\n out.println(ans);\n num = scan.next();\n numbers = num.split(\"\");\n ans = 0;\n }\n } \n} ", "import static java.lang.System.out;", "import static java.lang.System.out;", "import static java.lang.System.out;", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.next();\n String[] numbers = num.split(\"\");\n int ans = 0;\n while (!numbers[0].equals(\"0\")) {\n for (String n : numbers) {\n ans += Integer.parseInt(n);\n }\n out.println(ans);\n num = scan.next();\n numbers = num.split(\"\");\n ans = 0;\n }\n } \n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.next();\n String[] numbers = num.split(\"\");\n int ans = 0;\n while (!numbers[0].equals(\"0\")) {\n for (String n : numbers) {\n ans += Integer.parseInt(n);\n }\n out.println(ans);\n num = scan.next();\n numbers = num.split(\"\");\n ans = 0;\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String num = scan.next();\n String[] numbers = num.split(\"\");\n int ans = 0;\n while (!numbers[0].equals(\"0\")) {\n for (String n : numbers) {\n ans += Integer.parseInt(n);\n }\n out.println(ans);\n num = scan.next();\n numbers = num.split(\"\");\n ans = 0;\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String num = scan.next();", "num", "scan.next()", "scan.next", "scan", "String[] numbers = num.split(\"\");", "numbers", "num.split(\"\")", "num.split", "num", "\"\"", "int ans = 0;", "ans", "0", "while (!numbers[0].equals(\"0\")) {\n for (String n : numbers) {\n ans += Integer.parseInt(n);\n }\n out.println(ans);\n num = scan.next();\n numbers = num.split(\"\");\n ans = 0;\n }", "!numbers[0].equals(\"0\")", "numbers[0].equals(\"0\")", "numbers[0].equals", "numbers[0]", "numbers", "0", "\"0\"", "{\n for (String n : numbers) {\n ans += Integer.parseInt(n);\n }\n out.println(ans);\n num = scan.next();\n numbers = num.split(\"\");\n ans = 0;\n }", "for (String n : numbers) {\n ans += Integer.parseInt(n);\n }", "String n", "numbers", "{\n ans += Integer.parseInt(n);\n }", "{\n ans += Integer.parseInt(n);\n }", "ans += Integer.parseInt(n)", "ans", "Integer.parseInt(n)", "Integer.parseInt", "Integer", "n", "out.println(ans)", "out.println", "out", "ans", "num = scan.next()", "num", "scan.next()", "scan.next", "scan", "numbers = num.split(\"\")", "numbers", "num.split(\"\")", "num.split", "num", "\"\"", "ans = 0", "ans", "0", "String[] args", "args" ]
import static java.lang.System.out; import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); String num = scan.next(); String[] numbers = num.split(""); int ans = 0; while (!numbers[0].equals("0")) { for (String n : numbers) { ans += Integer.parseInt(n); } out.println(ans); num = scan.next(); numbers = num.split(""); ans = 0; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 4, 18, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 17, 28, 13, 4, 18, 13, 30, 30, 0, 13, 13, 4, 18, 13, 2, 13, 2, 17, 4, 18, 13, 4, 18, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 79, 14 ], [ 79, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 79, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 23, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 32, 44 ], [ 44, 45 ], [ 44, 46 ], [ 32, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 47, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 32, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 23, 67 ], [ 67, 68 ], [ 68, 69 ], [ 79, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 70, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n\npublic class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \twhile (true){\n \tString l = br.readLine();\n \t\tif(l.equals(\"0\"))\n \t\t\tbreak;\n \t\tint sum = 0;\n \t\tfor(char c : l.toCharArray()) {\n \t\t\tsum += c;\n \t\t}\n \t\tout.println(sum - ('0'*l.length()));\n \t}\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "public class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \twhile (true){\n \tString l = br.readLine();\n \t\tif(l.equals(\"0\"))\n \t\t\tbreak;\n \t\tint sum = 0;\n \t\tfor(char c : l.toCharArray()) {\n \t\t\tsum += c;\n \t\t}\n \t\tout.println(sum - ('0'*l.length()));\n \t}\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "Main", "public static final String EOL = System.getProperty(\"line.separator\");", "EOL", "System.getProperty(\"line.separator\")", "System.getProperty", "System", "\"line.separator\"", "public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \twhile (true){\n \tString l = br.readLine();\n \t\tif(l.equals(\"0\"))\n \t\t\tbreak;\n \t\tint sum = 0;\n \t\tfor(char c : l.toCharArray()) {\n \t\t\tsum += c;\n \t\t}\n \t\tout.println(sum - ('0'*l.length()));\n \t}\n out.flush();\n }", "exec", "{\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \twhile (true){\n \tString l = br.readLine();\n \t\tif(l.equals(\"0\"))\n \t\t\tbreak;\n \t\tint sum = 0;\n \t\tfor(char c : l.toCharArray()) {\n \t\t\tsum += c;\n \t\t}\n \t\tout.println(sum - ('0'*l.length()));\n \t}\n out.flush();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "while (true){\n \tString l = br.readLine();\n \t\tif(l.equals(\"0\"))\n \t\t\tbreak;\n \t\tint sum = 0;\n \t\tfor(char c : l.toCharArray()) {\n \t\t\tsum += c;\n \t\t}\n \t\tout.println(sum - ('0'*l.length()));\n \t}", "true", "{\n \tString l = br.readLine();\n \t\tif(l.equals(\"0\"))\n \t\t\tbreak;\n \t\tint sum = 0;\n \t\tfor(char c : l.toCharArray()) {\n \t\t\tsum += c;\n \t\t}\n \t\tout.println(sum - ('0'*l.length()));\n \t}", "String l = br.readLine();", "l", "br.readLine()", "br.readLine", "br", "if(l.equals(\"0\"))\n \t\t\tbreak;", "l.equals(\"0\")", "l.equals", "l", "\"0\"", "break;", "int sum = 0;", "sum", "0", "for(char c : l.toCharArray()) {\n \t\t\tsum += c;\n \t\t}", "char c", "l.toCharArray()", "l.toCharArray", "l", "{\n \t\t\tsum += c;\n \t\t}", "{\n \t\t\tsum += c;\n \t\t}", "sum += c", "sum", "c", "out.println(sum - ('0'*l.length()))", "out.println", "out", "sum - ('0'*l.length())", "sum", "('0'*l.length())", "'0'", "l.length()", "l.length", "l", "out.flush()", "out.flush", "out", "public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }", "main", "{\n \tnew Main().exec();\n }", "new Main().exec()", "new Main().exec", "new Main()", "String[] args", "args", "public class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \twhile (true){\n \tString l = br.readLine();\n \t\tif(l.equals(\"0\"))\n \t\t\tbreak;\n \t\tint sum = 0;\n \t\tfor(char c : l.toCharArray()) {\n \t\t\tsum += c;\n \t\t}\n \t\tout.println(sum - ('0'*l.length()));\n \t}\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "public class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \twhile (true){\n \tString l = br.readLine();\n \t\tif(l.equals(\"0\"))\n \t\t\tbreak;\n \t\tint sum = 0;\n \t\tfor(char c : l.toCharArray()) {\n \t\t\tsum += c;\n \t\t}\n \t\tout.println(sum - ('0'*l.length()));\n \t}\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; public class Main { public static final String EOL = System.getProperty("line.separator"); public void exec() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); while (true){ String l = br.readLine(); if(l.equals("0")) break; int sum = 0; for(char c : l.toCharArray()) { sum += c; } out.println(sum - ('0'*l.length())); } out.flush(); } public static void main(String[] args) throws IOException { new Main().exec(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 18, 13, 13, 30, 3, 41, 13, 17, 11, 1, 40, 4, 18, 13, 18, 13, 13, 1, 0, 13, 4, 18, 13, 18, 13, 13, 17, 18, 13, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 17, 18, 13, 13, 0, 13, 4, 18, 13, 18, 13, 13, 0, 13, 4, 18, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 96, 8 ], [ 96, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 27, 28 ], [ 27, 29 ], [ 23, 30 ], [ 30, 31 ], [ 17, 32 ], [ 32, 33 ], [ 32, 34 ], [ 17, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 41, 43 ], [ 35, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 47, 53 ], [ 47, 54 ], [ 54, 55 ], [ 54, 56 ], [ 35, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 61, 67 ], [ 61, 68 ], [ 68, 69 ], [ 68, 70 ], [ 58, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 58, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 17, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 9, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.math.BigDecimal;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws NumberFormatException {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tBigDecimal x = scan.nextBigDecimal();\n\t\t\tif(x.equals(BigDecimal.ZERO)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor(; !x.equals(BigDecimal.ZERO); x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)){\n\t\t\t\tBigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);\n\t\t\t\tamari = amari.multiply(BigDecimal.TEN);\n\t\t\t\tsum += x.subtract(amari).intValue();\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "import java.math.BigDecimal;", "BigDecimal", "java.math", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tBigDecimal x = scan.nextBigDecimal();\n\t\t\tif(x.equals(BigDecimal.ZERO)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor(; !x.equals(BigDecimal.ZERO); x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)){\n\t\t\t\tBigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);\n\t\t\t\tamari = amari.multiply(BigDecimal.TEN);\n\t\t\t\tsum += x.subtract(amari).intValue();\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws NumberFormatException {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tBigDecimal x = scan.nextBigDecimal();\n\t\t\tif(x.equals(BigDecimal.ZERO)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor(; !x.equals(BigDecimal.ZERO); x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)){\n\t\t\t\tBigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);\n\t\t\t\tamari = amari.multiply(BigDecimal.TEN);\n\t\t\t\tsum += x.subtract(amari).intValue();\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tBigDecimal x = scan.nextBigDecimal();\n\t\t\tif(x.equals(BigDecimal.ZERO)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor(; !x.equals(BigDecimal.ZERO); x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)){\n\t\t\t\tBigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);\n\t\t\t\tamari = amari.multiply(BigDecimal.TEN);\n\t\t\t\tsum += x.subtract(amari).intValue();\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\t\t\tBigDecimal x = scan.nextBigDecimal();\n\t\t\tif(x.equals(BigDecimal.ZERO)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor(; !x.equals(BigDecimal.ZERO); x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)){\n\t\t\t\tBigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);\n\t\t\t\tamari = amari.multiply(BigDecimal.TEN);\n\t\t\t\tsum += x.subtract(amari).intValue();\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tBigDecimal x = scan.nextBigDecimal();\n\t\t\tif(x.equals(BigDecimal.ZERO)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor(; !x.equals(BigDecimal.ZERO); x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)){\n\t\t\t\tBigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);\n\t\t\t\tamari = amari.multiply(BigDecimal.TEN);\n\t\t\t\tsum += x.subtract(amari).intValue();\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "BigDecimal x = scan.nextBigDecimal();", "x", "scan.nextBigDecimal()", "scan.nextBigDecimal", "scan", "if(x.equals(BigDecimal.ZERO)){\n\t\t\t\tbreak;\n\t\t\t}", "x.equals(BigDecimal.ZERO)", "x.equals", "x", "BigDecimal.ZERO", "BigDecimal", "BigDecimal.ZERO", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int sum = 0;", "sum", "0", "for(; !x.equals(BigDecimal.ZERO); x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)){\n\t\t\t\tBigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);\n\t\t\t\tamari = amari.multiply(BigDecimal.TEN);\n\t\t\t\tsum += x.subtract(amari).intValue();\n\t\t\t}", ";", "!x.equals(BigDecimal.ZERO)", "x.equals(BigDecimal.ZERO)", "x.equals", "x", "BigDecimal.ZERO", "BigDecimal", "BigDecimal.ZERO", "x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)", "x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)", "x", "x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)", "x.divide", "x", "BigDecimal.TEN", "BigDecimal", "BigDecimal.TEN", "0", "BigDecimal.ROUND_DOWN", "BigDecimal", "BigDecimal.ROUND_DOWN", "{\n\t\t\t\tBigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);\n\t\t\t\tamari = amari.multiply(BigDecimal.TEN);\n\t\t\t\tsum += x.subtract(amari).intValue();\n\t\t\t}", "{\n\t\t\t\tBigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);\n\t\t\t\tamari = amari.multiply(BigDecimal.TEN);\n\t\t\t\tsum += x.subtract(amari).intValue();\n\t\t\t}", "BigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);", "amari", "x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)", "x.divide", "x", "BigDecimal.TEN", "BigDecimal", "BigDecimal.TEN", "0", "BigDecimal.ROUND_DOWN", "BigDecimal", "BigDecimal.ROUND_DOWN", "amari = amari.multiply(BigDecimal.TEN)", "amari", "amari.multiply(BigDecimal.TEN)", "amari.multiply", "amari", "BigDecimal.TEN", "BigDecimal", "BigDecimal.TEN", "sum += x.subtract(amari).intValue()", "sum", "x.subtract(amari).intValue()", "x.subtract(amari).intValue", "x.subtract(amari)", "x.subtract", "x", "amari", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tBigDecimal x = scan.nextBigDecimal();\n\t\t\tif(x.equals(BigDecimal.ZERO)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor(; !x.equals(BigDecimal.ZERO); x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)){\n\t\t\t\tBigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);\n\t\t\t\tamari = amari.multiply(BigDecimal.TEN);\n\t\t\t\tsum += x.subtract(amari).intValue();\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tBigDecimal x = scan.nextBigDecimal();\n\t\t\tif(x.equals(BigDecimal.ZERO)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor(; !x.equals(BigDecimal.ZERO); x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)){\n\t\t\t\tBigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN);\n\t\t\t\tamari = amari.multiply(BigDecimal.TEN);\n\t\t\t\tsum += x.subtract(amari).intValue();\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main" ]
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] args) throws NumberFormatException { Scanner scan = new Scanner(System.in); while(true){ BigDecimal x = scan.nextBigDecimal(); if(x.equals(BigDecimal.ZERO)){ break; } int sum = 0; for(; !x.equals(BigDecimal.ZERO); x = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN)){ BigDecimal amari = x.divide(BigDecimal.TEN, 0, BigDecimal.ROUND_DOWN); amari = amari.multiply(BigDecimal.TEN); sum += x.subtract(amari).intValue(); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 41, 13, 42, 17, 30, 41, 13, 2, 13, 17, 0, 13, 13, 14, 2, 13, 17, 3, 30, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 22, 37 ], [ 37, 38 ], [ 22, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 41, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 50, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 56, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 73, 78 ], [ 55, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 41, 85 ], [ 85, 86 ], [ 85, 87 ], [ 41, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 41, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 6, 99 ], [ 99, 100 ] ]
[ "import java.io.*;\n\nclass Main{\n public static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n String line = reader.readLine();\n char tmp = line.charAt(0);\n int sum=0,i;\n\n while(true){\n int x = tmp - '0';\n sum += x;\n if(sum==0) break;\n else{\n for(i=1;i<line.length();i++){\n sum += line.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n sum = 0;\n line = reader.readLine();\n tmp = line.charAt(0);\n }\n\n }catch(IOException e){\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main{\n public static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n String line = reader.readLine();\n char tmp = line.charAt(0);\n int sum=0,i;\n\n while(true){\n int x = tmp - '0';\n sum += x;\n if(sum==0) break;\n else{\n for(i=1;i<line.length();i++){\n sum += line.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n sum = 0;\n line = reader.readLine();\n tmp = line.charAt(0);\n }\n\n }catch(IOException e){\n System.out.println(e);\n }\n }\n}", "Main", "public static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n String line = reader.readLine();\n char tmp = line.charAt(0);\n int sum=0,i;\n\n while(true){\n int x = tmp - '0';\n sum += x;\n if(sum==0) break;\n else{\n for(i=1;i<line.length();i++){\n sum += line.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n sum = 0;\n line = reader.readLine();\n tmp = line.charAt(0);\n }\n\n }catch(IOException e){\n System.out.println(e);\n }\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n String line = reader.readLine();\n char tmp = line.charAt(0);\n int sum=0,i;\n\n while(true){\n int x = tmp - '0';\n sum += x;\n if(sum==0) break;\n else{\n for(i=1;i<line.length();i++){\n sum += line.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n sum = 0;\n line = reader.readLine();\n tmp = line.charAt(0);\n }\n\n }catch(IOException e){\n System.out.println(e);\n }\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "try{\n String line = reader.readLine();\n char tmp = line.charAt(0);\n int sum=0,i;\n\n while(true){\n int x = tmp - '0';\n sum += x;\n if(sum==0) break;\n else{\n for(i=1;i<line.length();i++){\n sum += line.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n sum = 0;\n line = reader.readLine();\n tmp = line.charAt(0);\n }\n\n }catch(IOException e){\n System.out.println(e);\n }", "catch(IOException e){\n System.out.println(e);\n }", "IOException e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n String line = reader.readLine();\n char tmp = line.charAt(0);\n int sum=0,i;\n\n while(true){\n int x = tmp - '0';\n sum += x;\n if(sum==0) break;\n else{\n for(i=1;i<line.length();i++){\n sum += line.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n sum = 0;\n line = reader.readLine();\n tmp = line.charAt(0);\n }\n\n }", "String line = reader.readLine();", "line", "reader.readLine()", "reader.readLine", "reader", "char tmp = line.charAt(0);", "tmp", "line.charAt(0)", "line.charAt", "line", "0", "int sum=0", "sum", "0", "i;", "i", "while(true){\n int x = tmp - '0';\n sum += x;\n if(sum==0) break;\n else{\n for(i=1;i<line.length();i++){\n sum += line.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n sum = 0;\n line = reader.readLine();\n tmp = line.charAt(0);\n }", "true", "{\n int x = tmp - '0';\n sum += x;\n if(sum==0) break;\n else{\n for(i=1;i<line.length();i++){\n sum += line.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n sum = 0;\n line = reader.readLine();\n tmp = line.charAt(0);\n }", "int x = tmp - '0';", "x", "tmp - '0'", "tmp", "'0'", "sum += x", "sum", "x", "if(sum==0) break;\n else{\n for(i=1;i<line.length();i++){\n sum += line.charAt(i) - '0';\n }\n System.out.println(sum);\n }", "sum==0", "sum", "0", "break;", "{\n for(i=1;i<line.length();i++){\n sum += line.charAt(i) - '0';\n }\n System.out.println(sum);\n }", "for(i=1;i<line.length();i++){\n sum += line.charAt(i) - '0';\n }", "i=1;", "i=1", "i", "1", "i<line.length()", "i", "line.length()", "line.length", "line", "i++", "i++", "i", "{\n sum += line.charAt(i) - '0';\n }", "{\n sum += line.charAt(i) - '0';\n }", "sum += line.charAt(i) - '0'", "sum", "line.charAt(i) - '0'", "line.charAt(i)", "line.charAt", "line", "i", "'0'", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "sum = 0", "sum", "0", "line = reader.readLine()", "line", "reader.readLine()", "reader.readLine", "reader", "tmp = line.charAt(0)", "tmp", "line.charAt(0)", "line.charAt", "line", "0", "String[] args", "args" ]
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try{ String line = reader.readLine(); char tmp = line.charAt(0); int sum=0,i; while(true){ int x = tmp - '0'; sum += x; if(sum==0) break; else{ for(i=1;i<line.length();i++){ sum += line.charAt(i) - '0'; } System.out.println(sum); } sum = 0; line = reader.readLine(); tmp = line.charAt(0); } }catch(IOException e){ System.out.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 2, 13, 17, 41, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 76, 5 ], [ 76, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 46, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 46, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 14, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 6, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString x = scan.next();\n\t\t\tif(x.equals (\"0\")) break;\n\t\t\t\n\t\t\tint sl = x.length();\n\t\t\tint total = 0;\n\t\t\tfor(int i=0; i<sl; i++){\n\t\t\t\tString s = x.substring(i, i+1);\n\t\t\t\tint X = Integer.parseInt(s);\n\t\t\t\ttotal = total + X;\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString x = scan.next();\n\t\t\tif(x.equals (\"0\")) break;\n\t\t\t\n\t\t\tint sl = x.length();\n\t\t\tint total = 0;\n\t\t\tfor(int i=0; i<sl; i++){\n\t\t\t\tString s = x.substring(i, i+1);\n\t\t\t\tint X = Integer.parseInt(s);\n\t\t\t\ttotal = total + X;\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString x = scan.next();\n\t\t\tif(x.equals (\"0\")) break;\n\t\t\t\n\t\t\tint sl = x.length();\n\t\t\tint total = 0;\n\t\t\tfor(int i=0; i<sl; i++){\n\t\t\t\tString s = x.substring(i, i+1);\n\t\t\t\tint X = Integer.parseInt(s);\n\t\t\t\ttotal = total + X;\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString x = scan.next();\n\t\t\tif(x.equals (\"0\")) break;\n\t\t\t\n\t\t\tint sl = x.length();\n\t\t\tint total = 0;\n\t\t\tfor(int i=0; i<sl; i++){\n\t\t\t\tString s = x.substring(i, i+1);\n\t\t\t\tint X = Integer.parseInt(s);\n\t\t\t\ttotal = total + X;\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\t\t\tString x = scan.next();\n\t\t\tif(x.equals (\"0\")) break;\n\t\t\t\n\t\t\tint sl = x.length();\n\t\t\tint total = 0;\n\t\t\tfor(int i=0; i<sl; i++){\n\t\t\t\tString s = x.substring(i, i+1);\n\t\t\t\tint X = Integer.parseInt(s);\n\t\t\t\ttotal = total + X;\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}", "true", "{\n\t\t\tString x = scan.next();\n\t\t\tif(x.equals (\"0\")) break;\n\t\t\t\n\t\t\tint sl = x.length();\n\t\t\tint total = 0;\n\t\t\tfor(int i=0; i<sl; i++){\n\t\t\t\tString s = x.substring(i, i+1);\n\t\t\t\tint X = Integer.parseInt(s);\n\t\t\t\ttotal = total + X;\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}", "String x = scan.next();", "x", "scan.next()", "scan.next", "scan", "if(x.equals (\"0\")) break;", "x.equals (\"0\")", "x.equals", "x", "\"0\"", "break;", "int sl = x.length();", "sl", "x.length()", "x.length", "x", "int total = 0;", "total", "0", "for(int i=0; i<sl; i++){\n\t\t\t\tString s = x.substring(i, i+1);\n\t\t\t\tint X = Integer.parseInt(s);\n\t\t\t\ttotal = total + X;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<sl", "i", "sl", "i++", "i++", "i", "{\n\t\t\t\tString s = x.substring(i, i+1);\n\t\t\t\tint X = Integer.parseInt(s);\n\t\t\t\ttotal = total + X;\n\t\t\t}", "{\n\t\t\t\tString s = x.substring(i, i+1);\n\t\t\t\tint X = Integer.parseInt(s);\n\t\t\t\ttotal = total + X;\n\t\t\t}", "String s = x.substring(i, i+1);", "s", "x.substring(i, i+1)", "x.substring", "x", "i", "i+1", "i", "1", "int X = Integer.parseInt(s);", "X", "Integer.parseInt(s)", "Integer.parseInt", "Integer", "s", "total = total + X", "total", "total + X", "total", "X", "System.out.println(total)", "System.out.println", "System.out", "System", "System.out", "total", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString x = scan.next();\n\t\t\tif(x.equals (\"0\")) break;\n\t\t\t\n\t\t\tint sl = x.length();\n\t\t\tint total = 0;\n\t\t\tfor(int i=0; i<sl; i++){\n\t\t\t\tString s = x.substring(i, i+1);\n\t\t\t\tint X = Integer.parseInt(s);\n\t\t\t\ttotal = total + X;\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString x = scan.next();\n\t\t\tif(x.equals (\"0\")) break;\n\t\t\t\n\t\t\tint sl = x.length();\n\t\t\tint total = 0;\n\t\t\tfor(int i=0; i<sl; i++){\n\t\t\t\tString s = x.substring(i, i+1);\n\t\t\t\tint X = Integer.parseInt(s);\n\t\t\t\ttotal = total + X;\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}\n\t\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner scan = new Scanner(System.in); while(true){ String x = scan.next(); if(x.equals ("0")) break; int sl = x.length(); int total = 0; for(int i=0; i<sl; i++){ String s = x.substring(i, i+1); int X = Integer.parseInt(s); total = total + X; } System.out.println(total); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 44, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 6, 63 ], [ 63, 64 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n while (true) {\n String number = scan.nextLine();\n int num = 0;\n if (number.equals(\"0\")) {\n break;\n }\n for(int i = 0; i < number.length(); i++) {\n char ch = number.charAt(i);\n num += Character.getNumericValue(ch);\n }\n System.out.println(num);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n while (true) {\n String number = scan.nextLine();\n int num = 0;\n if (number.equals(\"0\")) {\n break;\n }\n for(int i = 0; i < number.length(); i++) {\n char ch = number.charAt(i);\n num += Character.getNumericValue(ch);\n }\n System.out.println(num);\n }\n }\n}", "Main", "public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n while (true) {\n String number = scan.nextLine();\n int num = 0;\n if (number.equals(\"0\")) {\n break;\n }\n for(int i = 0; i < number.length(); i++) {\n char ch = number.charAt(i);\n num += Character.getNumericValue(ch);\n }\n System.out.println(num);\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n while (true) {\n String number = scan.nextLine();\n int num = 0;\n if (number.equals(\"0\")) {\n break;\n }\n for(int i = 0; i < number.length(); i++) {\n char ch = number.charAt(i);\n num += Character.getNumericValue(ch);\n }\n System.out.println(num);\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (true) {\n String number = scan.nextLine();\n int num = 0;\n if (number.equals(\"0\")) {\n break;\n }\n for(int i = 0; i < number.length(); i++) {\n char ch = number.charAt(i);\n num += Character.getNumericValue(ch);\n }\n System.out.println(num);\n }", "true", "{\n String number = scan.nextLine();\n int num = 0;\n if (number.equals(\"0\")) {\n break;\n }\n for(int i = 0; i < number.length(); i++) {\n char ch = number.charAt(i);\n num += Character.getNumericValue(ch);\n }\n System.out.println(num);\n }", "String number = scan.nextLine();", "number", "scan.nextLine()", "scan.nextLine", "scan", "int num = 0;", "num", "0", "if (number.equals(\"0\")) {\n break;\n }", "number.equals(\"0\")", "number.equals", "number", "\"0\"", "{\n break;\n }", "break;", "for(int i = 0; i < number.length(); i++) {\n char ch = number.charAt(i);\n num += Character.getNumericValue(ch);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < number.length()", "i", "number.length()", "number.length", "number", "i++", "i++", "i", "{\n char ch = number.charAt(i);\n num += Character.getNumericValue(ch);\n }", "{\n char ch = number.charAt(i);\n num += Character.getNumericValue(ch);\n }", "char ch = number.charAt(i);", "ch", "number.charAt(i)", "number.charAt", "number", "i", "num += Character.getNumericValue(ch)", "num", "Character.getNumericValue(ch)", "Character.getNumericValue", "Character", "ch", "System.out.println(num)", "System.out.println", "System.out", "System", "System.out", "num", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); while (true) { String number = scan.nextLine(); int num = 0; if (number.equals("0")) { break; } for(int i = 0; i < number.length(); i++) { char ch = number.charAt(i); num += Character.getNumericValue(ch); } System.out.println(num); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 42, 2, 0, 13, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 17, 4, 18, 13, 13, 0, 13, 13, 14, 2, 13, 17, 3, 4, 18, 4, 18, 13, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 98, 11 ], [ 98, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 28, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 59, 71 ], [ 71, 72 ], [ 71, 73 ], [ 44, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 44, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 79, 85 ], [ 44, 86 ], [ 86, 87 ], [ 86, 88 ], [ 35, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 12, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\t\tString line;\n\t\tint c;\n\t\tint sum = 0;\n\t\ttry {\n\t\t\twhile((line = buf.readLine()) != null) {\n\t\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}\n\t\t\t\tif (sum == 0) break;\n\t\t\t\toutput.append(sum).append('\\n');\n\t\t\t\tsum = 0;\n\t\t\t}\n\t\t\tSystem.out.print(output);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\t\tString line;\n\t\tint c;\n\t\tint sum = 0;\n\t\ttry {\n\t\t\twhile((line = buf.readLine()) != null) {\n\t\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}\n\t\t\t\tif (sum == 0) break;\n\t\t\t\toutput.append(sum).append('\\n');\n\t\t\t\tsum = 0;\n\t\t\t}\n\t\t\tSystem.out.print(output);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\t\tString line;\n\t\tint c;\n\t\tint sum = 0;\n\t\ttry {\n\t\t\twhile((line = buf.readLine()) != null) {\n\t\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}\n\t\t\t\tif (sum == 0) break;\n\t\t\t\toutput.append(sum).append('\\n');\n\t\t\t\tsum = 0;\n\t\t\t}\n\t\t\tSystem.out.print(output);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\t\tString line;\n\t\tint c;\n\t\tint sum = 0;\n\t\ttry {\n\t\t\twhile((line = buf.readLine()) != null) {\n\t\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}\n\t\t\t\tif (sum == 0) break;\n\t\t\t\toutput.append(sum).append('\\n');\n\t\t\t\tsum = 0;\n\t\t\t}\n\t\t\tSystem.out.print(output);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));", "buf", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder output = new StringBuilder();", "output", "new StringBuilder()", "String line;", "line", "int c;", "c", "int sum = 0;", "sum", "0", "try {\n\t\t\twhile((line = buf.readLine()) != null) {\n\t\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}\n\t\t\t\tif (sum == 0) break;\n\t\t\t\toutput.append(sum).append('\\n');\n\t\t\t\tsum = 0;\n\t\t\t}\n\t\t\tSystem.out.print(output);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\twhile((line = buf.readLine()) != null) {\n\t\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}\n\t\t\t\tif (sum == 0) break;\n\t\t\t\toutput.append(sum).append('\\n');\n\t\t\t\tsum = 0;\n\t\t\t}\n\t\t\tSystem.out.print(output);\n\t\t}", "while((line = buf.readLine()) != null) {\n\t\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}\n\t\t\t\tif (sum == 0) break;\n\t\t\t\toutput.append(sum).append('\\n');\n\t\t\t\tsum = 0;\n\t\t\t}", "(line = buf.readLine()) != null", "(line = buf.readLine())", "line", "buf.readLine()", "buf.readLine", "buf", "null", "{\n\t\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}\n\t\t\t\tif (sum == 0) break;\n\t\t\t\toutput.append(sum).append('\\n');\n\t\t\t\tsum = 0;\n\t\t\t}", "for (int i = 0; i < line.length(); i++) {\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < line.length()", "i", "line.length()", "line.length", "line", "i++", "i++", "i", "{\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}", "{\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}", "c = Integer.parseInt(\"\" + line.charAt(i))", "c", "Integer.parseInt(\"\" + line.charAt(i))", "Integer.parseInt", "Integer", "\"\" + line.charAt(i)", "\"\"", "line.charAt(i)", "line.charAt", "line", "i", "sum += c", "sum", "c", "if (sum == 0) break;", "sum == 0", "sum", "0", "break;", "output.append(sum).append('\\n')", "output.append(sum).append", "output.append(sum)", "output.append", "output", "sum", "'\\n'", "sum = 0", "sum", "0", "System.out.print(output)", "System.out.print", "System.out", "System", "System.out", "output", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\t\tString line;\n\t\tint c;\n\t\tint sum = 0;\n\t\ttry {\n\t\t\twhile((line = buf.readLine()) != null) {\n\t\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}\n\t\t\t\tif (sum == 0) break;\n\t\t\t\toutput.append(sum).append('\\n');\n\t\t\t\tsum = 0;\n\t\t\t}\n\t\t\tSystem.out.print(output);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\t\tString line;\n\t\tint c;\n\t\tint sum = 0;\n\t\ttry {\n\t\t\twhile((line = buf.readLine()) != null) {\n\t\t\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\t\t\tc = Integer.parseInt(\"\" + line.charAt(i));\n\t\t\t\t\tsum += c;\n\t\t\t\t}\n\t\t\t\tif (sum == 0) break;\n\t\t\t\toutput.append(sum).append('\\n');\n\t\t\t\tsum = 0;\n\t\t\t}\n\t\t\tSystem.out.print(output);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { public static void main(String[] args) { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); StringBuilder output = new StringBuilder(); String line; int c; int sum = 0; try { while((line = buf.readLine()) != null) { for (int i = 0; i < line.length(); i++) { c = Integer.parseInt("" + line.charAt(i)); sum += c; } if (sum == 0) break; output.append(sum).append('\n'); sum = 0; } System.out.print(output); } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 41, 13, 2, 4, 18, 13, 13, 17, 0, 13, 13, 14, 2, 13, 17, 3, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 32, 36 ], [ 25, 37 ], [ 37, 38 ], [ 38, 39 ], [ 25, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 14, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 14, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 58, 64 ], [ 6, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true) {\n String num = sc.next();\n int i;\n int Sum = 0;\n for (i = 0; i <= (num.length() - 1); i++) {\n int x = ((num.charAt(i)) - '0');\n Sum += x;\n }\n if(Sum == 0) break;\n System.out.printf(\"%d\\n\", Sum);\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true) {\n String num = sc.next();\n int i;\n int Sum = 0;\n for (i = 0; i <= (num.length() - 1); i++) {\n int x = ((num.charAt(i)) - '0');\n Sum += x;\n }\n if(Sum == 0) break;\n System.out.printf(\"%d\\n\", Sum);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true) {\n String num = sc.next();\n int i;\n int Sum = 0;\n for (i = 0; i <= (num.length() - 1); i++) {\n int x = ((num.charAt(i)) - '0');\n Sum += x;\n }\n if(Sum == 0) break;\n System.out.printf(\"%d\\n\", Sum);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true) {\n String num = sc.next();\n int i;\n int Sum = 0;\n for (i = 0; i <= (num.length() - 1); i++) {\n int x = ((num.charAt(i)) - '0');\n Sum += x;\n }\n if(Sum == 0) break;\n System.out.printf(\"%d\\n\", Sum);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true) {\n String num = sc.next();\n int i;\n int Sum = 0;\n for (i = 0; i <= (num.length() - 1); i++) {\n int x = ((num.charAt(i)) - '0');\n Sum += x;\n }\n if(Sum == 0) break;\n System.out.printf(\"%d\\n\", Sum);\n }", "true", "{\n String num = sc.next();\n int i;\n int Sum = 0;\n for (i = 0; i <= (num.length() - 1); i++) {\n int x = ((num.charAt(i)) - '0');\n Sum += x;\n }\n if(Sum == 0) break;\n System.out.printf(\"%d\\n\", Sum);\n }", "String num = sc.next();", "num", "sc.next()", "sc.next", "sc", "int i;", "i", "int Sum = 0;", "Sum", "0", "for (i = 0; i <= (num.length() - 1); i++) {\n int x = ((num.charAt(i)) - '0');\n Sum += x;\n }", "i = 0;", "i = 0", "i", "0", "i <= (num.length() - 1)", "i", "(num.length() - 1)", "num.length()", "num.length", "num", "1", "i++", "i++", "i", "{\n int x = ((num.charAt(i)) - '0');\n Sum += x;\n }", "{\n int x = ((num.charAt(i)) - '0');\n Sum += x;\n }", "int x = ((num.charAt(i)) - '0');", "x", "((num.charAt(i)) - '0')", "(num.charAt(i))", "num.charAt", "num", "i", "'0'", "Sum += x", "Sum", "x", "if(Sum == 0) break;", "Sum == 0", "Sum", "0", "break;", "System.out.printf(\"%d\\n\", Sum)", "System.out.printf", "System.out", "System", "System.out", "\"%d\\n\"", "Sum", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true) {\n String num = sc.next();\n int i;\n int Sum = 0;\n for (i = 0; i <= (num.length() - 1); i++) {\n int x = ((num.charAt(i)) - '0');\n Sum += x;\n }\n if(Sum == 0) break;\n System.out.printf(\"%d\\n\", Sum);\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true) {\n String num = sc.next();\n int i;\n int Sum = 0;\n for (i = 0; i <= (num.length() - 1); i++) {\n int x = ((num.charAt(i)) - '0');\n Sum += x;\n }\n if(Sum == 0) break;\n System.out.printf(\"%d\\n\", Sum);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true) { String num = sc.next(); int i; int Sum = 0; for (i = 0; i <= (num.length() - 1); i++) { int x = ((num.charAt(i)) - '0'); Sum += x; } if(Sum == 0) break; System.out.printf("%d\n", Sum); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 83, 11 ], [ 83, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 23, 36 ], [ 36, 37 ], [ 36, 38 ], [ 23, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 39, 49 ], [ 49, 50 ], [ 50, 51 ], [ 39, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 23, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 14, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 78, 79 ], [ 12, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile (true) {\n\t\t\tString input = br.readLine();\n\t\t\tif (\"0\".equals(input)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int i =0; i < input.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(input.substring(i, i+1));\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile (true) {\n\t\t\tString input = br.readLine();\n\t\t\tif (\"0\".equals(input)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int i =0; i < input.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(input.substring(i, i+1));\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile (true) {\n\t\t\tString input = br.readLine();\n\t\t\tif (\"0\".equals(input)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int i =0; i < input.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(input.substring(i, i+1));\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile (true) {\n\t\t\tString input = br.readLine();\n\t\t\tif (\"0\".equals(input)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int i =0; i < input.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(input.substring(i, i+1));\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuffer sb = new StringBuffer();", "sb", "new StringBuffer()", "while (true) {\n\t\t\tString input = br.readLine();\n\t\t\tif (\"0\".equals(input)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int i =0; i < input.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(input.substring(i, i+1));\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}", "true", "{\n\t\t\tString input = br.readLine();\n\t\t\tif (\"0\".equals(input)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int i =0; i < input.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(input.substring(i, i+1));\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}", "String input = br.readLine();", "input", "br.readLine()", "br.readLine", "br", "if (\"0\".equals(input)) {\n\t\t\t\tbreak;\n\t\t\t}", "\"0\".equals(input)", "\"0\".equals", "\"0\"", "input", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int sum = 0;", "sum", "0", "for (int i =0; i < input.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(input.substring(i, i+1));\n\t\t\t}", "int i =0;", "int i =0;", "i", "0", "i < input.length()", "i", "input.length()", "input.length", "input", "i++", "i++", "i", "{\n\t\t\t\tsum += Integer.parseInt(input.substring(i, i+1));\n\t\t\t}", "{\n\t\t\t\tsum += Integer.parseInt(input.substring(i, i+1));\n\t\t\t}", "sum += Integer.parseInt(input.substring(i, i+1))", "sum", "Integer.parseInt(input.substring(i, i+1))", "Integer.parseInt", "Integer", "input.substring(i, i+1)", "input.substring", "input", "i", "i+1", "i", "1", "sb.append(sum + \"\\n\")", "sb.append", "sb", "sum + \"\\n\"", "sum", "\"\\n\"", "System.out.print(sb.toString())", "System.out.print", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile (true) {\n\t\t\tString input = br.readLine();\n\t\t\tif (\"0\".equals(input)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int i =0; i < input.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(input.substring(i, i+1));\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\twhile (true) {\n\t\t\tString input = br.readLine();\n\t\t\tif (\"0\".equals(input)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum = 0;\n\t\t\tfor (int i =0; i < input.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(input.substring(i, i+1));\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuffer sb = new StringBuffer(); while (true) { String input = br.readLine(); if ("0".equals(input)) { break; } int sum = 0; for (int i =0; i < input.length(); i++) { sum += Integer.parseInt(input.substring(i, i+1)); } sb.append(sum + "\n"); } System.out.print(sb.toString()); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 17, 41, 13, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 66, 5 ], [ 66, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 31, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 48, 55 ], [ 14, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 56, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String x = sc.next();\n\n if(x.equals(\"0\"))break;\n\n int sum = 0 ,i;\n\n for(i = 0;i < x.length();i++){\n sum = sum + x.charAt(i) - 48;\n }\n \n System.out.printf(\"%d\\n\",sum);\n \n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String x = sc.next();\n\n if(x.equals(\"0\"))break;\n\n int sum = 0 ,i;\n\n for(i = 0;i < x.length();i++){\n sum = sum + x.charAt(i) - 48;\n }\n \n System.out.printf(\"%d\\n\",sum);\n \n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String x = sc.next();\n\n if(x.equals(\"0\"))break;\n\n int sum = 0 ,i;\n\n for(i = 0;i < x.length();i++){\n sum = sum + x.charAt(i) - 48;\n }\n \n System.out.printf(\"%d\\n\",sum);\n \n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String x = sc.next();\n\n if(x.equals(\"0\"))break;\n\n int sum = 0 ,i;\n\n for(i = 0;i < x.length();i++){\n sum = sum + x.charAt(i) - 48;\n }\n \n System.out.printf(\"%d\\n\",sum);\n \n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n String x = sc.next();\n\n if(x.equals(\"0\"))break;\n\n int sum = 0 ,i;\n\n for(i = 0;i < x.length();i++){\n sum = sum + x.charAt(i) - 48;\n }\n \n System.out.printf(\"%d\\n\",sum);\n \n }", "true", "{\n String x = sc.next();\n\n if(x.equals(\"0\"))break;\n\n int sum = 0 ,i;\n\n for(i = 0;i < x.length();i++){\n sum = sum + x.charAt(i) - 48;\n }\n \n System.out.printf(\"%d\\n\",sum);\n \n }", "String x = sc.next();", "x", "sc.next()", "sc.next", "sc", "if(x.equals(\"0\"))break;", "x.equals(\"0\")", "x.equals", "x", "\"0\"", "break;", "int sum = 0", "sum", "0", "i;", "i", "for(i = 0;i < x.length();i++){\n sum = sum + x.charAt(i) - 48;\n }", "i = 0;", "i = 0", "i", "0", "i < x.length()", "i", "x.length()", "x.length", "x", "i++", "i++", "i", "{\n sum = sum + x.charAt(i) - 48;\n }", "{\n sum = sum + x.charAt(i) - 48;\n }", "sum = sum + x.charAt(i) - 48", "sum", "sum + x.charAt(i) - 48", "sum + x.charAt(i)", "sum", "x.charAt(i)", "x.charAt", "x", "i", "48", "System.out.printf(\"%d\\n\",sum)", "System.out.printf", "System.out", "System", "System.out", "\"%d\\n\"", "sum", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String x = sc.next();\n\n if(x.equals(\"0\"))break;\n\n int sum = 0 ,i;\n\n for(i = 0;i < x.length();i++){\n sum = sum + x.charAt(i) - 48;\n }\n \n System.out.printf(\"%d\\n\",sum);\n \n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String x = sc.next();\n\n if(x.equals(\"0\"))break;\n\n int sum = 0 ,i;\n\n for(i = 0;i < x.length();i++){\n sum = sum + x.charAt(i) - 48;\n }\n \n System.out.printf(\"%d\\n\",sum);\n \n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ String x = sc.next(); if(x.equals("0"))break; int sum = 0 ,i; for(i = 0;i < x.length();i++){ sum = sum + x.charAt(i) - 48; } System.out.printf("%d\n",sum); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 30, 41, 13, 17, 41, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 74, 11 ], [ 74, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 21, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 27, 32 ], [ 21, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 33, 40 ], [ 40, 41 ], [ 21, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 42, 52 ], [ 52, 53 ], [ 53, 54 ], [ 42, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 21, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 12, 71 ], [ 71, 72 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tfor(;;){\n\n\t\t\tint sum =0;\n\n\t\t\tString[] input = br.readLine().split(\"\");\n\n\t\t\tif(input[0].equals(\"0\")){break;}\n\n\t\t\tfor(int i=0;i<input.length;i++){\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}System.out.println(sum);\n\n\n\n\t\t}\n\n\n\n\t\t//??????\n\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tfor(;;){\n\n\t\t\tint sum =0;\n\n\t\t\tString[] input = br.readLine().split(\"\");\n\n\t\t\tif(input[0].equals(\"0\")){break;}\n\n\t\t\tfor(int i=0;i<input.length;i++){\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}System.out.println(sum);\n\n\n\n\t\t}\n\n\n\n\t\t//??????\n\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tfor(;;){\n\n\t\t\tint sum =0;\n\n\t\t\tString[] input = br.readLine().split(\"\");\n\n\t\t\tif(input[0].equals(\"0\")){break;}\n\n\t\t\tfor(int i=0;i<input.length;i++){\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}System.out.println(sum);\n\n\n\n\t\t}\n\n\n\n\t\t//??????\n\n\t}", "main", "{\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tfor(;;){\n\n\t\t\tint sum =0;\n\n\t\t\tString[] input = br.readLine().split(\"\");\n\n\t\t\tif(input[0].equals(\"0\")){break;}\n\n\t\t\tfor(int i=0;i<input.length;i++){\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}System.out.println(sum);\n\n\n\n\t\t}\n\n\n\n\t\t//??????\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "for(;;){\n\n\t\t\tint sum =0;\n\n\t\t\tString[] input = br.readLine().split(\"\");\n\n\t\t\tif(input[0].equals(\"0\")){break;}\n\n\t\t\tfor(int i=0;i<input.length;i++){\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}System.out.println(sum);\n\n\n\n\t\t}", ";", "{\n\n\t\t\tint sum =0;\n\n\t\t\tString[] input = br.readLine().split(\"\");\n\n\t\t\tif(input[0].equals(\"0\")){break;}\n\n\t\t\tfor(int i=0;i<input.length;i++){\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}System.out.println(sum);\n\n\n\n\t\t}", "{\n\n\t\t\tint sum =0;\n\n\t\t\tString[] input = br.readLine().split(\"\");\n\n\t\t\tif(input[0].equals(\"0\")){break;}\n\n\t\t\tfor(int i=0;i<input.length;i++){\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}System.out.println(sum);\n\n\n\n\t\t}", "int sum =0;", "sum", "0", "String[] input = br.readLine().split(\"\");", "input", "br.readLine().split(\"\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"\"", "if(input[0].equals(\"0\")){break;}", "input[0].equals(\"0\")", "input[0].equals", "input[0]", "input", "0", "\"0\"", "{break;}", "break;", "for(int i=0;i<input.length;i++){\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<input.length", "i", "input.length", "input", "input.length", "i++", "i++", "i", "{\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}", "{\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}", "sum += Integer.parseInt(input[i])", "sum", "Integer.parseInt(input[i])", "Integer.parseInt", "Integer", "input[i]", "input", "i", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tfor(;;){\n\n\t\t\tint sum =0;\n\n\t\t\tString[] input = br.readLine().split(\"\");\n\n\t\t\tif(input[0].equals(\"0\")){break;}\n\n\t\t\tfor(int i=0;i<input.length;i++){\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}System.out.println(sum);\n\n\n\n\t\t}\n\n\n\n\t\t//??????\n\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tfor(;;){\n\n\t\t\tint sum =0;\n\n\t\t\tString[] input = br.readLine().split(\"\");\n\n\t\t\tif(input[0].equals(\"0\")){break;}\n\n\t\t\tfor(int i=0;i<input.length;i++){\n\n\t\t\t\tsum += Integer.parseInt(input[i]);\n\n\n\t\t\t}System.out.println(sum);\n\n\n\n\t\t}\n\n\n\n\t\t//??????\n\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); for(;;){ int sum =0; String[] input = br.readLine().split(""); if(input[0].equals("0")){break;} for(int i=0;i<input.length;i++){ sum += Integer.parseInt(input[i]); }System.out.println(sum); } //?????? } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 13, 42, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 13, 0, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 113, 8 ], [ 113, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 11, 33 ], [ 33, 34 ], [ 33, 35 ], [ 11, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 11, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 64, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 64, 77 ], [ 77, 78 ], [ 77, 79 ], [ 51, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 51, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 51, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 51, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 51, 107 ], [ 107, 108 ], [ 107, 109 ], [ 9, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tint b = a.length();\n\t\t\tchar c ;\n\t\t\tint g = 0;\n\t\t\tint e = 0 ;\n\t\t\tint f = 1;\n\t\t\tif (b==1){\n\t\t\t\tf = Integer.parseInt(a);\n\t\t\t}\n\t\t\twhile(f != 0){\n\t\t\t\tfor(int d=0 ; d<b ; d++){\n\t\t\t\t\tc = a.charAt(d);\n\t\t\t\t\tg = Character.getNumericValue(c);\n\t\t\t\t\te += g;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(e);\n\t\t\t\ta = sc.next();\n\t\t\t\tb = a.length();\n\t\t\t\tif (b==1){\n\t\t\t\t\tf = Integer.parseInt(a);\n\t\t\t\t}\n\t\t\t\te = 0;\n\t\t\t}\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tint b = a.length();\n\t\t\tchar c ;\n\t\t\tint g = 0;\n\t\t\tint e = 0 ;\n\t\t\tint f = 1;\n\t\t\tif (b==1){\n\t\t\t\tf = Integer.parseInt(a);\n\t\t\t}\n\t\t\twhile(f != 0){\n\t\t\t\tfor(int d=0 ; d<b ; d++){\n\t\t\t\t\tc = a.charAt(d);\n\t\t\t\t\tg = Character.getNumericValue(c);\n\t\t\t\t\te += g;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(e);\n\t\t\t\ta = sc.next();\n\t\t\t\tb = a.length();\n\t\t\t\tif (b==1){\n\t\t\t\t\tf = Integer.parseInt(a);\n\t\t\t\t}\n\t\t\t\te = 0;\n\t\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tint b = a.length();\n\t\t\tchar c ;\n\t\t\tint g = 0;\n\t\t\tint e = 0 ;\n\t\t\tint f = 1;\n\t\t\tif (b==1){\n\t\t\t\tf = Integer.parseInt(a);\n\t\t\t}\n\t\t\twhile(f != 0){\n\t\t\t\tfor(int d=0 ; d<b ; d++){\n\t\t\t\t\tc = a.charAt(d);\n\t\t\t\t\tg = Character.getNumericValue(c);\n\t\t\t\t\te += g;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(e);\n\t\t\t\ta = sc.next();\n\t\t\t\tb = a.length();\n\t\t\t\tif (b==1){\n\t\t\t\t\tf = Integer.parseInt(a);\n\t\t\t\t}\n\t\t\t\te = 0;\n\t\t\t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tint b = a.length();\n\t\t\tchar c ;\n\t\t\tint g = 0;\n\t\t\tint e = 0 ;\n\t\t\tint f = 1;\n\t\t\tif (b==1){\n\t\t\t\tf = Integer.parseInt(a);\n\t\t\t}\n\t\t\twhile(f != 0){\n\t\t\t\tfor(int d=0 ; d<b ; d++){\n\t\t\t\t\tc = a.charAt(d);\n\t\t\t\t\tg = Character.getNumericValue(c);\n\t\t\t\t\te += g;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(e);\n\t\t\t\ta = sc.next();\n\t\t\t\tb = a.length();\n\t\t\t\tif (b==1){\n\t\t\t\t\tf = Integer.parseInt(a);\n\t\t\t\t}\n\t\t\t\te = 0;\n\t\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "int b = a.length();", "b", "a.length()", "a.length", "a", "char c ;", "c", "int g = 0;", "g", "0", "int e = 0 ;", "e", "0", "int f = 1;", "f", "1", "if (b==1){\n\t\t\t\tf = Integer.parseInt(a);\n\t\t\t}", "b==1", "b", "1", "{\n\t\t\t\tf = Integer.parseInt(a);\n\t\t\t}", "f = Integer.parseInt(a)", "f", "Integer.parseInt(a)", "Integer.parseInt", "Integer", "a", "while(f != 0){\n\t\t\t\tfor(int d=0 ; d<b ; d++){\n\t\t\t\t\tc = a.charAt(d);\n\t\t\t\t\tg = Character.getNumericValue(c);\n\t\t\t\t\te += g;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(e);\n\t\t\t\ta = sc.next();\n\t\t\t\tb = a.length();\n\t\t\t\tif (b==1){\n\t\t\t\t\tf = Integer.parseInt(a);\n\t\t\t\t}\n\t\t\t\te = 0;\n\t\t\t}", "f != 0", "f", "0", "{\n\t\t\t\tfor(int d=0 ; d<b ; d++){\n\t\t\t\t\tc = a.charAt(d);\n\t\t\t\t\tg = Character.getNumericValue(c);\n\t\t\t\t\te += g;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(e);\n\t\t\t\ta = sc.next();\n\t\t\t\tb = a.length();\n\t\t\t\tif (b==1){\n\t\t\t\t\tf = Integer.parseInt(a);\n\t\t\t\t}\n\t\t\t\te = 0;\n\t\t\t}", "for(int d=0 ; d<b ; d++){\n\t\t\t\t\tc = a.charAt(d);\n\t\t\t\t\tg = Character.getNumericValue(c);\n\t\t\t\t\te += g;\n\t\t\t\t}", "int d=0 ;", "int d=0 ;", "d", "0", "d<b", "d", "b", "d++", "d++", "d", "{\n\t\t\t\t\tc = a.charAt(d);\n\t\t\t\t\tg = Character.getNumericValue(c);\n\t\t\t\t\te += g;\n\t\t\t\t}", "{\n\t\t\t\t\tc = a.charAt(d);\n\t\t\t\t\tg = Character.getNumericValue(c);\n\t\t\t\t\te += g;\n\t\t\t\t}", "c = a.charAt(d)", "c", "a.charAt(d)", "a.charAt", "a", "d", "g = Character.getNumericValue(c)", "g", "Character.getNumericValue(c)", "Character.getNumericValue", "Character", "c", "e += g", "e", "g", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "a = sc.next()", "a", "sc.next()", "sc.next", "sc", "b = a.length()", "b", "a.length()", "a.length", "a", "if (b==1){\n\t\t\t\t\tf = Integer.parseInt(a);\n\t\t\t\t}", "b==1", "b", "1", "{\n\t\t\t\t\tf = Integer.parseInt(a);\n\t\t\t\t}", "f = Integer.parseInt(a)", "f", "Integer.parseInt(a)", "Integer.parseInt", "Integer", "a", "e = 0", "e", "0", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tint b = a.length();\n\t\t\tchar c ;\n\t\t\tint g = 0;\n\t\t\tint e = 0 ;\n\t\t\tint f = 1;\n\t\t\tif (b==1){\n\t\t\t\tf = Integer.parseInt(a);\n\t\t\t}\n\t\t\twhile(f != 0){\n\t\t\t\tfor(int d=0 ; d<b ; d++){\n\t\t\t\t\tc = a.charAt(d);\n\t\t\t\t\tg = Character.getNumericValue(c);\n\t\t\t\t\te += g;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(e);\n\t\t\t\ta = sc.next();\n\t\t\t\tb = a.length();\n\t\t\t\tif (b==1){\n\t\t\t\t\tf = Integer.parseInt(a);\n\t\t\t\t}\n\t\t\t\te = 0;\n\t\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tint b = a.length();\n\t\t\tchar c ;\n\t\t\tint g = 0;\n\t\t\tint e = 0 ;\n\t\t\tint f = 1;\n\t\t\tif (b==1){\n\t\t\t\tf = Integer.parseInt(a);\n\t\t\t}\n\t\t\twhile(f != 0){\n\t\t\t\tfor(int d=0 ; d<b ; d++){\n\t\t\t\t\tc = a.charAt(d);\n\t\t\t\t\tg = Character.getNumericValue(c);\n\t\t\t\t\te += g;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(e);\n\t\t\t\ta = sc.next();\n\t\t\t\tb = a.length();\n\t\t\t\tif (b==1){\n\t\t\t\t\tf = Integer.parseInt(a);\n\t\t\t\t}\n\t\t\t\te = 0;\n\t\t\t}\n\t}\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); String a = sc.next(); int b = a.length(); char c ; int g = 0; int e = 0 ; int f = 1; if (b==1){ f = Integer.parseInt(a); } while(f != 0){ for(int d=0 ; d<b ; d++){ c = a.charAt(d); g = Character.getNumericValue(c); e += g; } System.out.println(e); a = sc.next(); b = a.length(); if (b==1){ f = Integer.parseInt(a); } e = 0; } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 70, 5 ], [ 70, 6 ], [ 6, 7 ], [ 6, 8 ], [ 70, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 31, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 45, 58 ], [ 58, 59 ], [ 58, 60 ], [ 27, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 9, 67 ], [ 67, 68 ], [ 0, 69 ], [ 69, 70 ], [ 69, 71 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile (true) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"0\")) {break;}\n\t\t\telse {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile (true) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"0\")) {break;}\n\t\t\telse {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n\t\twhile (true) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"0\")) {break;}\n\t\t\telse {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\twhile (true) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"0\")) {break;}\n\t\t\telse {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}", "while (true) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"0\")) {break;}\n\t\t\telse {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"0\")) {break;}\n\t\t\telse {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if (s.equals(\"0\")) {break;}\n\t\t\telse {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}", "s.equals(\"0\")", "s.equals", "s", "\"0\"", "{break;}", "break;", "{\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}", "int sum = 0;", "sum", "0", "for (int i=0; i<s.length(); i++) {\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}", "{\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}", "int n = Integer.parseInt(String.valueOf(s.charAt(i)));", "n", "Integer.parseInt(String.valueOf(s.charAt(i)))", "Integer.parseInt", "Integer", "String.valueOf(s.charAt(i))", "String.valueOf", "String", "s.charAt(i)", "s.charAt", "s", "i", "sum += n", "sum", "n", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile (true) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"0\")) {break;}\n\t\t\telse {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile (true) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"0\")) {break;}\n\t\t\telse {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\t\tint n = Integer.parseInt(String.valueOf(s.charAt(i)));\n\t\t\t\t\tsum += n;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { while (true) { String s = sc.next(); if (s.equals("0")) {break;} else { int sum = 0; for (int i=0; i<s.length(); i++) { int n = Integer.parseInt(String.valueOf(s.charAt(i))); sum += n; } System.out.println(sum); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 0, 18, 13, 13, 17, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 87, 5 ], [ 87, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 22, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 6, 31 ], [ 31, 32 ], [ 87, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 39, 40 ], [ 40, 41 ], [ 35, 42 ], [ 42, 43 ], [ 42, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 59, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 59, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 35, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 33, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString numStr;\n\t\twhile (true) {\n\t\t\tnumStr = sc.next();\n\t\t\tif (numStr.equals(\"0\"))\n\t\t\t\tbreak;\n\n\t\t\toutSumOfNumbers(numStr);\n\n\t\t}\n\n\t}\n\n\tpublic static void outSumOfNumbers(String numStr) {\n\t\tbyte[] sbyte = new byte[numStr.length()];\n\t\tint sum = 0;\n\n\t\tfor (int i = 0; i < numStr.length(); i++) {\n\t\t\tsbyte[i] = (byte) numStr.charAt(i);\n\t\t\tsbyte[i] -= 48;\n\t\t\tsum += sbyte[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString numStr;\n\t\twhile (true) {\n\t\t\tnumStr = sc.next();\n\t\t\tif (numStr.equals(\"0\"))\n\t\t\t\tbreak;\n\n\t\t\toutSumOfNumbers(numStr);\n\n\t\t}\n\n\t}\n\n\tpublic static void outSumOfNumbers(String numStr) {\n\t\tbyte[] sbyte = new byte[numStr.length()];\n\t\tint sum = 0;\n\n\t\tfor (int i = 0; i < numStr.length(); i++) {\n\t\t\tsbyte[i] = (byte) numStr.charAt(i);\n\t\t\tsbyte[i] -= 48;\n\t\t\tsum += sbyte[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString numStr;\n\t\twhile (true) {\n\t\t\tnumStr = sc.next();\n\t\t\tif (numStr.equals(\"0\"))\n\t\t\t\tbreak;\n\n\t\t\toutSumOfNumbers(numStr);\n\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString numStr;\n\t\twhile (true) {\n\t\t\tnumStr = sc.next();\n\t\t\tif (numStr.equals(\"0\"))\n\t\t\t\tbreak;\n\n\t\t\toutSumOfNumbers(numStr);\n\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String numStr;", "numStr", "while (true) {\n\t\t\tnumStr = sc.next();\n\t\t\tif (numStr.equals(\"0\"))\n\t\t\t\tbreak;\n\n\t\t\toutSumOfNumbers(numStr);\n\n\t\t}", "true", "{\n\t\t\tnumStr = sc.next();\n\t\t\tif (numStr.equals(\"0\"))\n\t\t\t\tbreak;\n\n\t\t\toutSumOfNumbers(numStr);\n\n\t\t}", "numStr = sc.next()", "numStr", "sc.next()", "sc.next", "sc", "if (numStr.equals(\"0\"))\n\t\t\t\tbreak;", "numStr.equals(\"0\")", "numStr.equals", "numStr", "\"0\"", "break;", "outSumOfNumbers(numStr)", "outSumOfNumbers", "numStr", "String[] args", "args", "public static void outSumOfNumbers(String numStr) {\n\t\tbyte[] sbyte = new byte[numStr.length()];\n\t\tint sum = 0;\n\n\t\tfor (int i = 0; i < numStr.length(); i++) {\n\t\t\tsbyte[i] = (byte) numStr.charAt(i);\n\t\t\tsbyte[i] -= 48;\n\t\t\tsum += sbyte[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}", "outSumOfNumbers", "{\n\t\tbyte[] sbyte = new byte[numStr.length()];\n\t\tint sum = 0;\n\n\t\tfor (int i = 0; i < numStr.length(); i++) {\n\t\t\tsbyte[i] = (byte) numStr.charAt(i);\n\t\t\tsbyte[i] -= 48;\n\t\t\tsum += sbyte[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}", "byte[] sbyte = new byte[numStr.length()];", "sbyte", "new byte[numStr.length()]", "numStr.length()", "numStr.length", "numStr", "int sum = 0;", "sum", "0", "for (int i = 0; i < numStr.length(); i++) {\n\t\t\tsbyte[i] = (byte) numStr.charAt(i);\n\t\t\tsbyte[i] -= 48;\n\t\t\tsum += sbyte[i];\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < numStr.length()", "i", "numStr.length()", "numStr.length", "numStr", "i++", "i++", "i", "{\n\t\t\tsbyte[i] = (byte) numStr.charAt(i);\n\t\t\tsbyte[i] -= 48;\n\t\t\tsum += sbyte[i];\n\t\t}", "{\n\t\t\tsbyte[i] = (byte) numStr.charAt(i);\n\t\t\tsbyte[i] -= 48;\n\t\t\tsum += sbyte[i];\n\t\t}", "sbyte[i] = (byte) numStr.charAt(i)", "sbyte[i]", "sbyte", "i", "(byte) numStr.charAt(i)", "numStr.charAt", "numStr", "i", "sbyte[i] -= 48", "sbyte[i]", "sbyte", "i", "48", "sum += sbyte[i]", "sum", "sbyte[i]", "sbyte", "i", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String numStr", "numStr", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString numStr;\n\t\twhile (true) {\n\t\t\tnumStr = sc.next();\n\t\t\tif (numStr.equals(\"0\"))\n\t\t\t\tbreak;\n\n\t\t\toutSumOfNumbers(numStr);\n\n\t\t}\n\n\t}\n\n\tpublic static void outSumOfNumbers(String numStr) {\n\t\tbyte[] sbyte = new byte[numStr.length()];\n\t\tint sum = 0;\n\n\t\tfor (int i = 0; i < numStr.length(); i++) {\n\t\t\tsbyte[i] = (byte) numStr.charAt(i);\n\t\t\tsbyte[i] -= 48;\n\t\t\tsum += sbyte[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString numStr;\n\t\twhile (true) {\n\t\t\tnumStr = sc.next();\n\t\t\tif (numStr.equals(\"0\"))\n\t\t\t\tbreak;\n\n\t\t\toutSumOfNumbers(numStr);\n\n\t\t}\n\n\t}\n\n\tpublic static void outSumOfNumbers(String numStr) {\n\t\tbyte[] sbyte = new byte[numStr.length()];\n\t\tint sum = 0;\n\n\t\tfor (int i = 0; i < numStr.length(); i++) {\n\t\t\tsbyte[i] = (byte) numStr.charAt(i);\n\t\t\tsbyte[i] -= 48;\n\t\t\tsum += sbyte[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String numStr; while (true) { numStr = sc.next(); if (numStr.equals("0")) break; outSumOfNumbers(numStr); } } public static void outSumOfNumbers(String numStr) { byte[] sbyte = new byte[numStr.length()]; int sum = 0; for (int i = 0; i < numStr.length(); i++) { sbyte[i] = (byte) numStr.charAt(i); sbyte[i] -= 48; sum += sbyte[i]; } System.out.println(sum); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 20, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 18, 13, 13, 14, 2, 13, 17, 30, 3, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 76, 5 ], [ 76, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 29, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 43, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 60, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 6, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "import java.io.*;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tint[] digit = new int[line.length()];\n\t\t\tint result = 0;\n\t\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\t\tdigit[i] = Character.getNumericValue(line.charAt(i));\n\t\t\t\tresult += digit[i];\n\t\t\t}\n\t\t\tif(result == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tSystem.out.println(result);\n\t\t\t}\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tint[] digit = new int[line.length()];\n\t\t\tint result = 0;\n\t\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\t\tdigit[i] = Character.getNumericValue(line.charAt(i));\n\t\t\t\tresult += digit[i];\n\t\t\t}\n\t\t\tif(result == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tSystem.out.println(result);\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tint[] digit = new int[line.length()];\n\t\t\tint result = 0;\n\t\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\t\tdigit[i] = Character.getNumericValue(line.charAt(i));\n\t\t\t\tresult += digit[i];\n\t\t\t}\n\t\t\tif(result == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tSystem.out.println(result);\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tint[] digit = new int[line.length()];\n\t\t\tint result = 0;\n\t\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\t\tdigit[i] = Character.getNumericValue(line.charAt(i));\n\t\t\t\tresult += digit[i];\n\t\t\t}\n\t\t\tif(result == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tSystem.out.println(result);\n\t\t\t}\n\t\t}\n\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tString line = reader.readLine();\n\t\t\tint[] digit = new int[line.length()];\n\t\t\tint result = 0;\n\t\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\t\tdigit[i] = Character.getNumericValue(line.charAt(i));\n\t\t\t\tresult += digit[i];\n\t\t\t}\n\t\t\tif(result == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tSystem.out.println(result);\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString line = reader.readLine();\n\t\t\tint[] digit = new int[line.length()];\n\t\t\tint result = 0;\n\t\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\t\tdigit[i] = Character.getNumericValue(line.charAt(i));\n\t\t\t\tresult += digit[i];\n\t\t\t}\n\t\t\tif(result == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tSystem.out.println(result);\n\t\t\t}\n\t\t}", "String line = reader.readLine();", "line", "reader.readLine()", "reader.readLine", "reader", "int[] digit = new int[line.length()];", "digit", "new int[line.length()]", "line.length()", "line.length", "line", "int result = 0;", "result", "0", "for(int i = 0; i < line.length(); i++){\n\t\t\t\tdigit[i] = Character.getNumericValue(line.charAt(i));\n\t\t\t\tresult += digit[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < line.length()", "i", "line.length()", "line.length", "line", "i++", "i++", "i", "{\n\t\t\t\tdigit[i] = Character.getNumericValue(line.charAt(i));\n\t\t\t\tresult += digit[i];\n\t\t\t}", "{\n\t\t\t\tdigit[i] = Character.getNumericValue(line.charAt(i));\n\t\t\t\tresult += digit[i];\n\t\t\t}", "digit[i] = Character.getNumericValue(line.charAt(i))", "digit[i]", "digit", "i", "Character.getNumericValue(line.charAt(i))", "Character.getNumericValue", "Character", "line.charAt(i)", "line.charAt", "line", "i", "result += digit[i]", "result", "digit[i]", "digit", "i", "if(result == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tSystem.out.println(result);\n\t\t\t}", "result == 0", "result", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tSystem.out.println(result);\n\t\t\t}", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tint[] digit = new int[line.length()];\n\t\t\tint result = 0;\n\t\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\t\tdigit[i] = Character.getNumericValue(line.charAt(i));\n\t\t\t\tresult += digit[i];\n\t\t\t}\n\t\t\tif(result == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tSystem.out.println(result);\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tint[] digit = new int[line.length()];\n\t\t\tint result = 0;\n\t\t\tfor(int i = 0; i < line.length(); i++){\n\t\t\t\tdigit[i] = Character.getNumericValue(line.charAt(i));\n\t\t\t\tresult += digit[i];\n\t\t\t}\n\t\t\tif(result == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tSystem.out.println(result);\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); while(true){ String line = reader.readLine(); int[] digit = new int[line.length()]; int result = 0; for(int i = 0; i < line.length(); i++){ digit[i] = Character.getNumericValue(line.charAt(i)); result += digit[i]; } if(result == 0){ break; }else{ System.out.println(result); } } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 4, 18, 13, 14, 2, 18, 13, 17, 17, 3, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 65, 5 ], [ 65, 6 ], [ 6, 7 ], [ 6, 8 ], [ 65, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 16, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 24, 30 ], [ 16, 31 ], [ 31, 32 ], [ 31, 33 ], [ 16, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 34, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 16, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 9, 62 ], [ 62, 63 ], [ 0, 64 ], [ 64, 65 ], [ 64, 66 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tprivate static Scanner sc=new Scanner(System.in);;\n\n\tpublic static void main(String args[]) {\n\t\t//System.out.println((int)'1');\n\t\twhile(sc.hasNextLine()){\n\t\t\tchar a[]=sc.nextLine().toCharArray();\n\t\t\tif(a[0]==48)break;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<a.length;i++){\n\n\t\t\t\tans+=a[i]-48;\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);;\n\n\tpublic static void main(String args[]) {\n\t\t//System.out.println((int)'1');\n\t\twhile(sc.hasNextLine()){\n\t\t\tchar a[]=sc.nextLine().toCharArray();\n\t\t\tif(a[0]==48)break;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<a.length;i++){\n\n\t\t\t\tans+=a[i]-48;\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "Main", "private static Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String args[]) {\n\t\t//System.out.println((int)'1');\n\t\twhile(sc.hasNextLine()){\n\t\t\tchar a[]=sc.nextLine().toCharArray();\n\t\t\tif(a[0]==48)break;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<a.length;i++){\n\n\t\t\t\tans+=a[i]-48;\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "main", "{\n\t\t//System.out.println((int)'1');\n\t\twhile(sc.hasNextLine()){\n\t\t\tchar a[]=sc.nextLine().toCharArray();\n\t\t\tif(a[0]==48)break;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<a.length;i++){\n\n\t\t\t\tans+=a[i]-48;\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "while(sc.hasNextLine()){\n\t\t\tchar a[]=sc.nextLine().toCharArray();\n\t\t\tif(a[0]==48)break;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<a.length;i++){\n\n\t\t\t\tans+=a[i]-48;\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}", "sc.hasNextLine()", "sc.hasNextLine", "sc", "{\n\t\t\tchar a[]=sc.nextLine().toCharArray();\n\t\t\tif(a[0]==48)break;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<a.length;i++){\n\n\t\t\t\tans+=a[i]-48;\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}", "char a[]=sc.nextLine().toCharArray();", "a", "sc.nextLine().toCharArray()", "sc.nextLine().toCharArray", "sc.nextLine()", "sc.nextLine", "sc", "if(a[0]==48)break;", "a[0]==48", "a[0]", "a", "0", "48", "break;", "int ans=0;", "ans", "0", "for(int i=0;i<a.length;i++){\n\n\t\t\t\tans+=a[i]-48;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\n\t\t\t\tans+=a[i]-48;\n\t\t\t}", "{\n\n\t\t\t\tans+=a[i]-48;\n\t\t\t}", "ans+=a[i]-48", "ans", "a[i]-48", "a[i]", "a", "i", "48", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String args[]", "args", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);;\n\n\tpublic static void main(String args[]) {\n\t\t//System.out.println((int)'1');\n\t\twhile(sc.hasNextLine()){\n\t\t\tchar a[]=sc.nextLine().toCharArray();\n\t\t\tif(a[0]==48)break;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<a.length;i++){\n\n\t\t\t\tans+=a[i]-48;\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);;\n\n\tpublic static void main(String args[]) {\n\t\t//System.out.println((int)'1');\n\t\twhile(sc.hasNextLine()){\n\t\t\tchar a[]=sc.nextLine().toCharArray();\n\t\t\tif(a[0]==48)break;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<a.length;i++){\n\n\t\t\t\tans+=a[i]-48;\n\t\t\t}\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main { private static Scanner sc=new Scanner(System.in);; public static void main(String args[]) { //System.out.println((int)'1'); while(sc.hasNextLine()){ char a[]=sc.nextLine().toCharArray(); if(a[0]==48)break; int ans=0; for(int i=0;i<a.length;i++){ ans+=a[i]-48; } System.out.println(ans); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 66, 5 ], [ 66, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 18, 25 ], [ 16, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 26, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s;\n int sum;\n while (!(s = sc.next()).equals(\"0\")){\n sum = 0;\n for(int i = 0;i < s.length();i++){\n sum += Integer.parseInt(String.valueOf(s.charAt(i)));\n }\n System.out.println(sum);\n }\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s;\n int sum;\n while (!(s = sc.next()).equals(\"0\")){\n sum = 0;\n for(int i = 0;i < s.length();i++){\n sum += Integer.parseInt(String.valueOf(s.charAt(i)));\n }\n System.out.println(sum);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s;\n int sum;\n while (!(s = sc.next()).equals(\"0\")){\n sum = 0;\n for(int i = 0;i < s.length();i++){\n sum += Integer.parseInt(String.valueOf(s.charAt(i)));\n }\n System.out.println(sum);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s;\n int sum;\n while (!(s = sc.next()).equals(\"0\")){\n sum = 0;\n for(int i = 0;i < s.length();i++){\n sum += Integer.parseInt(String.valueOf(s.charAt(i)));\n }\n System.out.println(sum);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s;", "s", "int sum;", "sum", "while (!(s = sc.next()).equals(\"0\")){\n sum = 0;\n for(int i = 0;i < s.length();i++){\n sum += Integer.parseInt(String.valueOf(s.charAt(i)));\n }\n System.out.println(sum);\n }", "!(s = sc.next()).equals(\"0\")", "(s = sc.next()).equals(\"0\")", "(s = sc.next()).equals", "(s = sc.next())", "s", "sc.next()", "sc.next", "sc", "\"0\"", "{\n sum = 0;\n for(int i = 0;i < s.length();i++){\n sum += Integer.parseInt(String.valueOf(s.charAt(i)));\n }\n System.out.println(sum);\n }", "sum = 0", "sum", "0", "for(int i = 0;i < s.length();i++){\n sum += Integer.parseInt(String.valueOf(s.charAt(i)));\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n sum += Integer.parseInt(String.valueOf(s.charAt(i)));\n }", "{\n sum += Integer.parseInt(String.valueOf(s.charAt(i)));\n }", "sum += Integer.parseInt(String.valueOf(s.charAt(i)))", "sum", "Integer.parseInt(String.valueOf(s.charAt(i)))", "Integer.parseInt", "Integer", "String.valueOf(s.charAt(i))", "String.valueOf", "String", "s.charAt(i)", "s.charAt", "s", "i", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s;\n int sum;\n while (!(s = sc.next()).equals(\"0\")){\n sum = 0;\n for(int i = 0;i < s.length();i++){\n sum += Integer.parseInt(String.valueOf(s.charAt(i)));\n }\n System.out.println(sum);\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s;\n int sum;\n while (!(s = sc.next()).equals(\"0\")){\n sum = 0;\n for(int i = 0;i < s.length();i++){\n sum += Integer.parseInt(String.valueOf(s.charAt(i)));\n }\n System.out.println(sum);\n }\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s; int sum; while (!(s = sc.next()).equals("0")){ sum = 0; for(int i = 0;i < s.length();i++){ sum += Integer.parseInt(String.valueOf(s.charAt(i))); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 17, 28, 13, 4, 18, 13, 30, 30, 0, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 67, 17 ], [ 67, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 31, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 43, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 39, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 20, 61 ], [ 61, 62 ], [ 62, 63 ], [ 18, 64 ], [ 64, 65 ], [ 0, 66 ], [ 66, 67 ], [ 66, 68 ] ]
[ "import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.IOException;\n\npublic class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int count = 0;\n for (char c : input.toCharArray()) {\n count += (c - '0');\n }\n bw.append(count + \"\\n\");\n }\n bw.flush();\n }\n\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.BufferedWriter;", "BufferedWriter", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.OutputStreamWriter;", "OutputStreamWriter", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int count = 0;\n for (char c : input.toCharArray()) {\n count += (c - '0');\n }\n bw.append(count + \"\\n\");\n }\n bw.flush();\n }\n\n\n}", "Main", "public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int count = 0;\n for (char c : input.toCharArray()) {\n count += (c - '0');\n }\n bw.append(count + \"\\n\");\n }\n bw.flush();\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int count = 0;\n for (char c : input.toCharArray()) {\n count += (c - '0');\n }\n bw.append(count + \"\\n\");\n }\n bw.flush();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));", "bw", "new BufferedWriter(new OutputStreamWriter(System.out))", "String input;", "input", "while (!(input = br.readLine()).equals(\"0\")) {\n int count = 0;\n for (char c : input.toCharArray()) {\n count += (c - '0');\n }\n bw.append(count + \"\\n\");\n }", "!(input = br.readLine()).equals(\"0\")", "(input = br.readLine()).equals(\"0\")", "(input = br.readLine()).equals", "(input = br.readLine())", "input", "br.readLine()", "br.readLine", "br", "\"0\"", "{\n int count = 0;\n for (char c : input.toCharArray()) {\n count += (c - '0');\n }\n bw.append(count + \"\\n\");\n }", "int count = 0;", "count", "0", "for (char c : input.toCharArray()) {\n count += (c - '0');\n }", "char c", "input.toCharArray()", "input.toCharArray", "input", "{\n count += (c - '0');\n }", "{\n count += (c - '0');\n }", "count += (c - '0')", "count", "(c - '0')", "c", "'0'", "bw.append(count + \"\\n\")", "bw.append", "bw", "count + \"\\n\"", "count", "\"\\n\"", "bw.flush()", "bw.flush", "bw", "String args[]", "args", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int count = 0;\n for (char c : input.toCharArray()) {\n count += (c - '0');\n }\n bw.append(count + \"\\n\");\n }\n bw.flush();\n }\n\n\n}", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"0\")) {\n int count = 0;\n for (char c : input.toCharArray()) {\n count += (c - '0');\n }\n bw.append(count + \"\\n\");\n }\n bw.flush();\n }\n\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.IOException; public class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); String input; while (!(input = br.readLine()).equals("0")) { int count = 0; for (char c : input.toCharArray()) { count += (c - '0'); } bw.append(count + "\n"); } bw.flush(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 42, 17, 30, 0, 13, 17, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 4, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 18, 13, 13, 14, 2, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 110, 14 ], [ 110, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 38, 55 ], [ 55, 56 ], [ 55, 57 ], [ 58, 59 ], [ 58, 60 ], [ 38, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 38, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 88, 90 ], [ 80, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 38, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 38, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 15, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\n\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint sum;\n\t\ttry{\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString[] s_array;//???????????§?????????1???????????????????????????????????????????????????????????????\n\t\t\ts=reader.readLine();\n\t\t\ts_array=s.split(\"\");\n\t\t\tint[] s_num=new int[s_array.length];\n\t\t\tArrays.fill(s_num, 0);\n\t\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}\n\t\t\tif(sum==0)break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\n\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n}", "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", "public class Main{\n\tpublic static void main(String[] args){\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint sum;\n\t\ttry{\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString[] s_array;//???????????§?????????1???????????????????????????????????????????????????????????????\n\t\t\ts=reader.readLine();\n\t\t\ts_array=s.split(\"\");\n\t\t\tint[] s_num=new int[s_array.length];\n\t\t\tArrays.fill(s_num, 0);\n\t\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}\n\t\t\tif(sum==0)break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\n\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args){\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint sum;\n\t\ttry{\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString[] s_array;//???????????§?????????1???????????????????????????????????????????????????????????????\n\t\t\ts=reader.readLine();\n\t\t\ts_array=s.split(\"\");\n\t\t\tint[] s_num=new int[s_array.length];\n\t\t\tArrays.fill(s_num, 0);\n\t\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}\n\t\t\tif(sum==0)break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\n\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}", "main", "{\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint sum;\n\t\ttry{\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString[] s_array;//???????????§?????????1???????????????????????????????????????????????????????????????\n\t\t\ts=reader.readLine();\n\t\t\ts_array=s.split(\"\");\n\t\t\tint[] s_num=new int[s_array.length];\n\t\t\tArrays.fill(s_num, 0);\n\t\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}\n\t\t\tif(sum==0)break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\n\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}", "BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String s;", "s", "int sum;", "sum", "try{\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString[] s_array;//???????????§?????????1???????????????????????????????????????????????????????????????\n\t\t\ts=reader.readLine();\n\t\t\ts_array=s.split(\"\");\n\t\t\tint[] s_num=new int[s_array.length];\n\t\t\tArrays.fill(s_num, 0);\n\t\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}\n\t\t\tif(sum==0)break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\n\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}", "catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.println(e);\n\t\t}", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString[] s_array;//???????????§?????????1???????????????????????????????????????????????????????????????\n\t\t\ts=reader.readLine();\n\t\t\ts_array=s.split(\"\");\n\t\t\tint[] s_num=new int[s_array.length];\n\t\t\tArrays.fill(s_num, 0);\n\t\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}\n\t\t\tif(sum==0)break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\n\n\n\n\t\t}", "while(true){\n\t\t\tsum=0;\n\t\t\tString[] s_array;//???????????§?????????1???????????????????????????????????????????????????????????????\n\t\t\ts=reader.readLine();\n\t\t\ts_array=s.split(\"\");\n\t\t\tint[] s_num=new int[s_array.length];\n\t\t\tArrays.fill(s_num, 0);\n\t\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}\n\t\t\tif(sum==0)break;\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tsum=0;\n\t\t\tString[] s_array;//???????????§?????????1???????????????????????????????????????????????????????????????\n\t\t\ts=reader.readLine();\n\t\t\ts_array=s.split(\"\");\n\t\t\tint[] s_num=new int[s_array.length];\n\t\t\tArrays.fill(s_num, 0);\n\t\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}\n\t\t\tif(sum==0)break;\n\t\t\tSystem.out.println(sum);\n\t\t}", "sum=0", "sum", "0", "String[] s_array;", "s_array", "s=reader.readLine()", "s", "reader.readLine()", "reader.readLine", "reader", "s_array=s.split(\"\")", "s_array", "s.split(\"\")", "s.split", "s", "\"\"", "int[] s_num=new int[s_array.length];", "s_num", "new int[s_array.length]", "s_array.length", "s_array", "s_array.length", "Arrays.fill(s_num, 0)", "Arrays.fill", "Arrays", "s_num", "0", "for(int i=0;i<s_array.length;i++){\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s_array.length", "i", "s_array.length", "s_array", "s_array.length", "i++", "i++", "i", "{\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}", "{\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}", "s_num[i]=Integer.parseInt(s_array[i])", "s_num[i]", "s_num", "i", "Integer.parseInt(s_array[i])", "Integer.parseInt", "Integer", "s_array[i]", "s_array", "i", "sum+=s_num[i]", "sum", "s_num[i]", "s_num", "i", "if(sum==0)break;", "sum==0", "sum", "0", "break;", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint sum;\n\t\ttry{\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString[] s_array;//???????????§?????????1???????????????????????????????????????????????????????????????\n\t\t\ts=reader.readLine();\n\t\t\ts_array=s.split(\"\");\n\t\t\tint[] s_num=new int[s_array.length];\n\t\t\tArrays.fill(s_num, 0);\n\t\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}\n\t\t\tif(sum==0)break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\n\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint sum;\n\t\ttry{\n\t\twhile(true){\n\t\t\tsum=0;\n\t\t\tString[] s_array;//???????????§?????????1???????????????????????????????????????????????????????????????\n\t\t\ts=reader.readLine();\n\t\t\ts_array=s.split(\"\");\n\t\t\tint[] s_num=new int[s_array.length];\n\t\t\tArrays.fill(s_num, 0);\n\t\t\tfor(int i=0;i<s_array.length;i++){\n\t\t\t\ts_num[i]=Integer.parseInt(s_array[i]);\n\t\t\t\tsum+=s_num[i];\n\t\t\t}\n\t\t\tif(sum==0)break;\n\t\t\tSystem.out.println(sum);\n\t\t}\n\n\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main{ public static void main(String[] args){ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); String s; int sum; try{ while(true){ sum=0; String[] s_array;//???????????§?????????1??????????????????????????????????????????????????????????????? s=reader.readLine(); s_array=s.split(""); int[] s_num=new int[s_array.length]; Arrays.fill(s_num, 0); for(int i=0;i<s_array.length;i++){ s_num[i]=Integer.parseInt(s_array[i]); sum+=s_num[i]; } if(sum==0)break; System.out.println(sum); } }catch(IOException e){ System.out.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 66, 5 ], [ 66, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String x = stdin.next();\n if (x.equals(\"0\")) {\n break;\n }\n\n int sum = 0;\n int len = x.length();\n for (int i = 0; i < len; i++) {\n sum += Character.getNumericValue(x.charAt(i));\n }\n System.out.println(sum);\n }\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String x = stdin.next();\n if (x.equals(\"0\")) {\n break;\n }\n\n int sum = 0;\n int len = x.length();\n for (int i = 0; i < len; i++) {\n sum += Character.getNumericValue(x.charAt(i));\n }\n System.out.println(sum);\n }\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String x = stdin.next();\n if (x.equals(\"0\")) {\n break;\n }\n\n int sum = 0;\n int len = x.length();\n for (int i = 0; i < len; i++) {\n sum += Character.getNumericValue(x.charAt(i));\n }\n System.out.println(sum);\n }\n }", "main", "{\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String x = stdin.next();\n if (x.equals(\"0\")) {\n break;\n }\n\n int sum = 0;\n int len = x.length();\n for (int i = 0; i < len; i++) {\n sum += Character.getNumericValue(x.charAt(i));\n }\n System.out.println(sum);\n }\n }", "Scanner stdin = new Scanner(System.in);", "stdin", "new Scanner(System.in)", "while (true) {\n String x = stdin.next();\n if (x.equals(\"0\")) {\n break;\n }\n\n int sum = 0;\n int len = x.length();\n for (int i = 0; i < len; i++) {\n sum += Character.getNumericValue(x.charAt(i));\n }\n System.out.println(sum);\n }", "true", "{\n String x = stdin.next();\n if (x.equals(\"0\")) {\n break;\n }\n\n int sum = 0;\n int len = x.length();\n for (int i = 0; i < len; i++) {\n sum += Character.getNumericValue(x.charAt(i));\n }\n System.out.println(sum);\n }", "String x = stdin.next();", "x", "stdin.next()", "stdin.next", "stdin", "if (x.equals(\"0\")) {\n break;\n }", "x.equals(\"0\")", "x.equals", "x", "\"0\"", "{\n break;\n }", "break;", "int sum = 0;", "sum", "0", "int len = x.length();", "len", "x.length()", "x.length", "x", "for (int i = 0; i < len; i++) {\n sum += Character.getNumericValue(x.charAt(i));\n }", "int i = 0;", "int i = 0;", "i", "0", "i < len", "i", "len", "i++", "i++", "i", "{\n sum += Character.getNumericValue(x.charAt(i));\n }", "{\n sum += Character.getNumericValue(x.charAt(i));\n }", "sum += Character.getNumericValue(x.charAt(i))", "sum", "Character.getNumericValue(x.charAt(i))", "Character.getNumericValue", "Character", "x.charAt(i)", "x.charAt", "x", "i", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String x = stdin.next();\n if (x.equals(\"0\")) {\n break;\n }\n\n int sum = 0;\n int len = x.length();\n for (int i = 0; i < len; i++) {\n sum += Character.getNumericValue(x.charAt(i));\n }\n System.out.println(sum);\n }\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String x = stdin.next();\n if (x.equals(\"0\")) {\n break;\n }\n\n int sum = 0;\n int len = x.length();\n for (int i = 0; i < len; i++) {\n sum += Character.getNumericValue(x.charAt(i));\n }\n System.out.println(sum);\n }\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); while (true) { String x = stdin.next(); if (x.equals("0")) { break; } int sum = 0; int len = x.length(); for (int i = 0; i < len; i++) { sum += Character.getNumericValue(x.charAt(i)); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 42, 2, 18, 13, 17, 17, 30, 41, 13, 17, 41, 13, 17, 42, 2, 13, 18, 13, 13, 30, 0, 13, 2, 18, 13, 40, 13, 17, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 69, 5 ], [ 69, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 28, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 44, 49 ], [ 28, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 28, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 28, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 6, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n char[] a = string.toCharArray();\n\n while (a[0] != '0') {\n int i = 0;\n int sum = 0;\n while (i < a.length) {\n sum += a[i++] - '0';\n }\n System.out.println(sum);\n string = scan.nextLine();\n a = string.toCharArray();\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n char[] a = string.toCharArray();\n\n while (a[0] != '0') {\n int i = 0;\n int sum = 0;\n while (i < a.length) {\n sum += a[i++] - '0';\n }\n System.out.println(sum);\n string = scan.nextLine();\n a = string.toCharArray();\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n char[] a = string.toCharArray();\n\n while (a[0] != '0') {\n int i = 0;\n int sum = 0;\n while (i < a.length) {\n sum += a[i++] - '0';\n }\n System.out.println(sum);\n string = scan.nextLine();\n a = string.toCharArray();\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n char[] a = string.toCharArray();\n\n while (a[0] != '0') {\n int i = 0;\n int sum = 0;\n while (i < a.length) {\n sum += a[i++] - '0';\n }\n System.out.println(sum);\n string = scan.nextLine();\n a = string.toCharArray();\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String string = scan.nextLine();", "string", "scan.nextLine()", "scan.nextLine", "scan", "char[] a = string.toCharArray();", "a", "string.toCharArray()", "string.toCharArray", "string", "while (a[0] != '0') {\n int i = 0;\n int sum = 0;\n while (i < a.length) {\n sum += a[i++] - '0';\n }\n System.out.println(sum);\n string = scan.nextLine();\n a = string.toCharArray();\n }", "a[0] != '0'", "a[0]", "a", "0", "'0'", "{\n int i = 0;\n int sum = 0;\n while (i < a.length) {\n sum += a[i++] - '0';\n }\n System.out.println(sum);\n string = scan.nextLine();\n a = string.toCharArray();\n }", "int i = 0;", "i", "0", "int sum = 0;", "sum", "0", "while (i < a.length) {\n sum += a[i++] - '0';\n }", "i < a.length", "i", "a.length", "a", "a.length", "{\n sum += a[i++] - '0';\n }", "sum += a[i++] - '0'", "sum", "a[i++] - '0'", "a[i++]", "a", "i++", "i", "'0'", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "string = scan.nextLine()", "string", "scan.nextLine()", "scan.nextLine", "scan", "a = string.toCharArray()", "a", "string.toCharArray()", "string.toCharArray", "string", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n char[] a = string.toCharArray();\n\n while (a[0] != '0') {\n int i = 0;\n int sum = 0;\n while (i < a.length) {\n sum += a[i++] - '0';\n }\n System.out.println(sum);\n string = scan.nextLine();\n a = string.toCharArray();\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n char[] a = string.toCharArray();\n\n while (a[0] != '0') {\n int i = 0;\n int sum = 0;\n while (i < a.length) {\n sum += a[i++] - '0';\n }\n System.out.println(sum);\n string = scan.nextLine();\n a = string.toCharArray();\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String string = scan.nextLine(); char[] a = string.toCharArray(); while (a[0] != '0') { int i = 0; int sum = 0; while (i < a.length) { sum += a[i++] - '0'; } System.out.println(sum); string = scan.nextLine(); a = string.toCharArray(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 41, 13, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 2, 13, 17, 4, 18, 13, 13, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 27, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 40, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 51, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 53, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 34, 92 ], [ 92, 93 ], [ 92, 94 ], [ 92, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 18, 103 ], [ 103, 104 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<Integer> ret = new ArrayList<Integer>();\n\t\t\tdo {\n\t\t\t\tString input = br.readLine();\n\t\t\t\tif (input.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tint i, sum = 0;\n\t\t\t\t\tfor (i = 0; i < input.length(); i++) {\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}\n\t\t\t\t\tret.add(sum);\n\t\t\t\t}\n\t\t\t} while (true);\n\n\t\t\tfor (int num : ret) {\n\t\t\t\tSystem.out.println(num);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<Integer> ret = new ArrayList<Integer>();\n\t\t\tdo {\n\t\t\t\tString input = br.readLine();\n\t\t\t\tif (input.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tint i, sum = 0;\n\t\t\t\t\tfor (i = 0; i < input.length(); i++) {\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}\n\t\t\t\t\tret.add(sum);\n\t\t\t\t}\n\t\t\t} while (true);\n\n\t\t\tfor (int num : ret) {\n\t\t\t\tSystem.out.println(num);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<Integer> ret = new ArrayList<Integer>();\n\t\t\tdo {\n\t\t\t\tString input = br.readLine();\n\t\t\t\tif (input.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tint i, sum = 0;\n\t\t\t\t\tfor (i = 0; i < input.length(); i++) {\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}\n\t\t\t\t\tret.add(sum);\n\t\t\t\t}\n\t\t\t} while (true);\n\n\t\t\tfor (int num : ret) {\n\t\t\t\tSystem.out.println(num);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<Integer> ret = new ArrayList<Integer>();\n\t\t\tdo {\n\t\t\t\tString input = br.readLine();\n\t\t\t\tif (input.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tint i, sum = 0;\n\t\t\t\t\tfor (i = 0; i < input.length(); i++) {\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}\n\t\t\t\t\tret.add(sum);\n\t\t\t\t}\n\t\t\t} while (true);\n\n\t\t\tfor (int num : ret) {\n\t\t\t\tSystem.out.println(num);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "try {\n\t\t\tList<Integer> ret = new ArrayList<Integer>();\n\t\t\tdo {\n\t\t\t\tString input = br.readLine();\n\t\t\t\tif (input.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tint i, sum = 0;\n\t\t\t\t\tfor (i = 0; i < input.length(); i++) {\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}\n\t\t\t\t\tret.add(sum);\n\t\t\t\t}\n\t\t\t} while (true);\n\n\t\t\tfor (int num : ret) {\n\t\t\t\tSystem.out.println(num);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tList<Integer> ret = new ArrayList<Integer>();\n\t\t\tdo {\n\t\t\t\tString input = br.readLine();\n\t\t\t\tif (input.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tint i, sum = 0;\n\t\t\t\t\tfor (i = 0; i < input.length(); i++) {\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}\n\t\t\t\t\tret.add(sum);\n\t\t\t\t}\n\t\t\t} while (true);\n\n\t\t\tfor (int num : ret) {\n\t\t\t\tSystem.out.println(num);\n\t\t\t}\n\t\t}", "List<Integer> ret = new ArrayList<Integer>();", "ret", "new ArrayList<Integer>()", "do {\n\t\t\t\tString input = br.readLine();\n\t\t\t\tif (input.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tint i, sum = 0;\n\t\t\t\t\tfor (i = 0; i < input.length(); i++) {\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}\n\t\t\t\t\tret.add(sum);\n\t\t\t\t}\n\t\t\t} while (true);", "true", "{\n\t\t\t\tString input = br.readLine();\n\t\t\t\tif (input.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tint i, sum = 0;\n\t\t\t\t\tfor (i = 0; i < input.length(); i++) {\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}\n\t\t\t\t\tret.add(sum);\n\t\t\t\t}\n\t\t\t}", "String input = br.readLine();", "input", "br.readLine()", "br.readLine", "br", "if (input.equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tint i, sum = 0;\n\t\t\t\t\tfor (i = 0; i < input.length(); i++) {\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}\n\t\t\t\t\tret.add(sum);\n\t\t\t\t}", "input.equals(\"0\")", "input.equals", "input", "\"0\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "{\n\t\t\t\t\tint i, sum = 0;\n\t\t\t\t\tfor (i = 0; i < input.length(); i++) {\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}\n\t\t\t\t\tret.add(sum);\n\t\t\t\t}", "int i", "i", "sum = 0;", "sum", "0", "for (i = 0; i < input.length(); i++) {\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}", "i = 0;", "i = 0", "i", "0", "i < input.length()", "i", "input.length()", "input.length", "input", "i++", "i++", "i", "{\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tsum = sum + Integer.parseInt(input.substring(i, i + 1));\n\t\t\t\t\t}", "sum = sum + Integer.parseInt(input.substring(i, i + 1))", "sum", "sum + Integer.parseInt(input.substring(i, i + 1))", "sum", "Integer.parseInt(input.substring(i, i + 1))", "Integer.parseInt", "Integer", "input.substring(i, i + 1)", "input.substring", "input", "i", "i + 1", "i", "1", "ret.add(sum)", "ret.add", "ret", "sum", "for (int num : ret) {\n\t\t\t\tSystem.out.println(num);\n\t\t\t}", "int num", "ret", "{\n\t\t\t\tSystem.out.println(num);\n\t\t\t}", "{\n\t\t\t\tSystem.out.println(num);\n\t\t\t}", "System.out.println(num)", "System.out.println", "System.out", "System", "System.out", "num", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; class Main { public static void main(String[] args) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); try { List<Integer> ret = new ArrayList<Integer>(); do { String input = br.readLine(); if (input.equals("0")) { break; } else { int i, sum = 0; for (i = 0; i < input.length(); i++) { sum = sum + Integer.parseInt(input.substring(i, i + 1)); } ret.add(sum); } } while (true); for (int num : ret) { System.out.println(num); } } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 14, 4, 18, 18, 13, 17, 17, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 28, 13, 13, 30, 30, 0, 13, 13, 4, 18, 4, 18, 13, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 101, 11 ], [ 101, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 29, 34 ], [ 26, 35 ], [ 35, 36 ], [ 35, 37 ], [ 38, 39 ], [ 38, 40 ], [ 26, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 41, 48 ], [ 26, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 26, 74 ], [ 74, 75 ], [ 74, 76 ], [ 74, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 26, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 82, 88 ], [ 26, 89 ], [ 89, 90 ], [ 89, 91 ], [ 14, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 12, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.StringBuilder;\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint t = 0;\n\t\tdo{\n\t\t\tString[] st = sc.readLine().split(\"\");\n\t\t\tint[] x = new int[st.length];\n\t\t\tif(st[0].equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tx[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tfor(int n:x){\n\t\t\t\tt += n;\n\t\t\t}\n\t\t\tsb.append(t).append(\"\\n\");\n\t\t\tt = 0;\n\t\t}while(true);\n\t\tSystem.out.print(sb);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.lang.StringBuilder;", "StringBuilder", "java.lang", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint t = 0;\n\t\tdo{\n\t\t\tString[] st = sc.readLine().split(\"\");\n\t\t\tint[] x = new int[st.length];\n\t\t\tif(st[0].equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tx[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tfor(int n:x){\n\t\t\t\tt += n;\n\t\t\t}\n\t\t\tsb.append(t).append(\"\\n\");\n\t\t\tt = 0;\n\t\t}while(true);\n\t\tSystem.out.print(sb);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint t = 0;\n\t\tdo{\n\t\t\tString[] st = sc.readLine().split(\"\");\n\t\t\tint[] x = new int[st.length];\n\t\t\tif(st[0].equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tx[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tfor(int n:x){\n\t\t\t\tt += n;\n\t\t\t}\n\t\t\tsb.append(t).append(\"\\n\");\n\t\t\tt = 0;\n\t\t}while(true);\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint t = 0;\n\t\tdo{\n\t\t\tString[] st = sc.readLine().split(\"\");\n\t\t\tint[] x = new int[st.length];\n\t\t\tif(st[0].equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tx[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tfor(int n:x){\n\t\t\t\tt += n;\n\t\t\t}\n\t\t\tsb.append(t).append(\"\\n\");\n\t\t\tt = 0;\n\t\t}while(true);\n\t\tSystem.out.print(sb);\n\t}", "BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));", "sc", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int t = 0;", "t", "0", "do{\n\t\t\tString[] st = sc.readLine().split(\"\");\n\t\t\tint[] x = new int[st.length];\n\t\t\tif(st[0].equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tx[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tfor(int n:x){\n\t\t\t\tt += n;\n\t\t\t}\n\t\t\tsb.append(t).append(\"\\n\");\n\t\t\tt = 0;\n\t\t}while(true);", "true", "{\n\t\t\tString[] st = sc.readLine().split(\"\");\n\t\t\tint[] x = new int[st.length];\n\t\t\tif(st[0].equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tx[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tfor(int n:x){\n\t\t\t\tt += n;\n\t\t\t}\n\t\t\tsb.append(t).append(\"\\n\");\n\t\t\tt = 0;\n\t\t}", "String[] st = sc.readLine().split(\"\");", "st", "sc.readLine().split(\"\")", "sc.readLine().split", "sc.readLine()", "sc.readLine", "sc", "\"\"", "int[] x = new int[st.length];", "x", "new int[st.length]", "st.length", "st", "st.length", "if(st[0].equals(\"0\"))\n\t\t\t\tbreak;", "st[0].equals(\"0\")", "st[0].equals", "st[0]", "st", "0", "\"0\"", "break;", "for(int i = 0;i < st.length;i++){\n\t\t\t\tx[i] = Integer.parseInt(st[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < st.length", "i", "st.length", "st", "st.length", "i++", "i++", "i", "{\n\t\t\t\tx[i] = Integer.parseInt(st[i]);\n\t\t\t}", "{\n\t\t\t\tx[i] = Integer.parseInt(st[i]);\n\t\t\t}", "x[i] = Integer.parseInt(st[i])", "x[i]", "x", "i", "Integer.parseInt(st[i])", "Integer.parseInt", "Integer", "st[i]", "st", "i", "for(int n:x){\n\t\t\t\tt += n;\n\t\t\t}", "int n", "x", "{\n\t\t\t\tt += n;\n\t\t\t}", "{\n\t\t\t\tt += n;\n\t\t\t}", "t += n", "t", "n", "sb.append(t).append(\"\\n\")", "sb.append(t).append", "sb.append(t)", "sb.append", "sb", "t", "\"\\n\"", "t = 0", "t", "0", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint t = 0;\n\t\tdo{\n\t\t\tString[] st = sc.readLine().split(\"\");\n\t\t\tint[] x = new int[st.length];\n\t\t\tif(st[0].equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tx[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tfor(int n:x){\n\t\t\t\tt += n;\n\t\t\t}\n\t\t\tsb.append(t).append(\"\\n\");\n\t\t\tt = 0;\n\t\t}while(true);\n\t\tSystem.out.print(sb);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint t = 0;\n\t\tdo{\n\t\t\tString[] st = sc.readLine().split(\"\");\n\t\t\tint[] x = new int[st.length];\n\t\t\tif(st[0].equals(\"0\"))\n\t\t\t\tbreak;\n\t\t\tfor(int i = 0;i < st.length;i++){\n\t\t\t\tx[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tfor(int n:x){\n\t\t\t\tt += n;\n\t\t\t}\n\t\t\tsb.append(t).append(\"\\n\");\n\t\t\tt = 0;\n\t\t}while(true);\n\t\tSystem.out.print(sb);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.StringBuilder; public class Main { public static void main(String[] args) throws Exception{ BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int t = 0; do{ String[] st = sc.readLine().split(""); int[] x = new int[st.length]; if(st[0].equals("0")) break; for(int i = 0;i < st.length;i++){ x[i] = Integer.parseInt(st[i]); } for(int n:x){ t += n; } sb.append(t).append("\n"); t = 0; }while(true); System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 4, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 4, 18, 13, 40, 4, 18, 13, 17, 1, 0, 13, 4, 18, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 6, 17 ], [ 17, 18 ], [ 77, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 22, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 22, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 22, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 41, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 19, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n for (String x = in.next(); !x.equals(\"0\"); x = in.next()) {\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += (x.charAt(i) - '0');\n }\n System.out.println(sum);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n for (String x = in.next(); !x.equals(\"0\"); x = in.next()) {\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += (x.charAt(i) - '0');\n }\n System.out.println(sum);\n }\n }\n}", "Main", "public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }", "main", "{\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }", "try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }", "{\n solve(in);\n }", "Scanner in = new Scanner(System.in)", "Scanner in = new Scanner(System.in)", "new Scanner(System.in)", "solve(in)", "solve", "in", "String[] args", "args", "private static void solve(Scanner in) {\n for (String x = in.next(); !x.equals(\"0\"); x = in.next()) {\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += (x.charAt(i) - '0');\n }\n System.out.println(sum);\n }\n }", "solve", "{\n for (String x = in.next(); !x.equals(\"0\"); x = in.next()) {\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += (x.charAt(i) - '0');\n }\n System.out.println(sum);\n }\n }", "for (String x = in.next(); !x.equals(\"0\"); x = in.next()) {\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += (x.charAt(i) - '0');\n }\n System.out.println(sum);\n }", "String x = in.next();", "String x = in.next();", "x", "in.next()", "in.next", "in", "!x.equals(\"0\")", "x.equals(\"0\")", "x.equals", "x", "\"0\"", "x = in.next()", "x = in.next()", "x", "in.next()", "in.next", "in", "{\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += (x.charAt(i) - '0');\n }\n System.out.println(sum);\n }", "{\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += (x.charAt(i) - '0');\n }\n System.out.println(sum);\n }", "int sum = 0;", "sum", "0", "for (int i = 0; i < x.length(); i++) {\n sum += (x.charAt(i) - '0');\n }", "int i = 0;", "int i = 0;", "i", "0", "i < x.length()", "i", "x.length()", "x.length", "x", "i++", "i++", "i", "{\n sum += (x.charAt(i) - '0');\n }", "{\n sum += (x.charAt(i) - '0');\n }", "sum += (x.charAt(i) - '0')", "sum", "(x.charAt(i) - '0')", "x.charAt(i)", "x.charAt", "x", "i", "'0'", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "Scanner in", "in", "public class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n for (String x = in.next(); !x.equals(\"0\"); x = in.next()) {\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += (x.charAt(i) - '0');\n }\n System.out.println(sum);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n for (String x = in.next(); !x.equals(\"0\"); x = in.next()) {\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += (x.charAt(i) - '0');\n }\n System.out.println(sum);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner in = new Scanner(System.in)) { solve(in); } } private static void solve(Scanner in) { for (String x = in.next(); !x.equals("0"); x = in.next()) { int sum = 0; for (int i = 0; i < x.length(); i++) { sum += (x.charAt(i) - '0'); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 2, 4, 18, 0, 13, 4, 18, 13, 17, 17, 30, 41, 13, 4, 18, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 4, 18, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 22, 29 ], [ 29, 30 ], [ 29, 31 ], [ 22, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 34, 41 ], [ 33, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 43, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 52, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 43, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 75, 81 ], [ 22, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 6, 88 ], [ 88, 89 ] ]
[ "/* ITP1_8_B */\nimport java.io.*;\n\nclass Main\n{\n public static void main(String[] args)\n {\n int sum = 0;\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()).equals(\"0\") == false){\n char[] input = str.toCharArray();\n sum = 0;\n\n for(int i = 0; i < input.length; i++){\n sum += Character.getNumericValue(input[i]);\n }\n sb.append(sum).append(\"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main\n{\n public static void main(String[] args)\n {\n int sum = 0;\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()).equals(\"0\") == false){\n char[] input = str.toCharArray();\n sum = 0;\n\n for(int i = 0; i < input.length; i++){\n sum += Character.getNumericValue(input[i]);\n }\n sb.append(sum).append(\"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "Main", "public static void main(String[] args)\n {\n int sum = 0;\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()).equals(\"0\") == false){\n char[] input = str.toCharArray();\n sum = 0;\n\n for(int i = 0; i < input.length; i++){\n sum += Character.getNumericValue(input[i]);\n }\n sb.append(sum).append(\"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }", "main", "{\n int sum = 0;\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()).equals(\"0\") == false){\n char[] input = str.toCharArray();\n sum = 0;\n\n for(int i = 0; i < input.length; i++){\n sum += Character.getNumericValue(input[i]);\n }\n sb.append(sum).append(\"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }", "int sum = 0;", "sum", "0", "try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()).equals(\"0\") == false){\n char[] input = str.toCharArray();\n sum = 0;\n\n for(int i = 0; i < input.length; i++){\n sum += Character.getNumericValue(input[i]);\n }\n sb.append(sum).append(\"\\n\");\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }", "catch(Exception e){\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String str = \"\";\n\n while((str = br.readLine()).equals(\"0\") == false){\n char[] input = str.toCharArray();\n sum = 0;\n\n for(int i = 0; i < input.length; i++){\n sum += Character.getNumericValue(input[i]);\n }\n sb.append(sum).append(\"\\n\");\n }\n System.out.print(sb);\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String str = \"\";", "str", "\"\"", "while((str = br.readLine()).equals(\"0\") == false){\n char[] input = str.toCharArray();\n sum = 0;\n\n for(int i = 0; i < input.length; i++){\n sum += Character.getNumericValue(input[i]);\n }\n sb.append(sum).append(\"\\n\");\n }", "(str = br.readLine()).equals(\"0\") == false", "(str = br.readLine()).equals(\"0\")", "(str = br.readLine()).equals", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "\"0\"", "false", "{\n char[] input = str.toCharArray();\n sum = 0;\n\n for(int i = 0; i < input.length; i++){\n sum += Character.getNumericValue(input[i]);\n }\n sb.append(sum).append(\"\\n\");\n }", "char[] input = str.toCharArray();", "input", "str.toCharArray()", "str.toCharArray", "str", "sum = 0", "sum", "0", "for(int i = 0; i < input.length; i++){\n sum += Character.getNumericValue(input[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < input.length", "i", "input.length", "input", "input.length", "i++", "i++", "i", "{\n sum += Character.getNumericValue(input[i]);\n }", "{\n sum += Character.getNumericValue(input[i]);\n }", "sum += Character.getNumericValue(input[i])", "sum", "Character.getNumericValue(input[i])", "Character.getNumericValue", "Character", "input[i]", "input", "i", "sb.append(sum).append(\"\\n\")", "sb.append(sum).append", "sb.append(sum)", "sb.append", "sb", "sum", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args" ]
/* ITP1_8_B */ import java.io.*; class Main { public static void main(String[] args) { int sum = 0; try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); String str = ""; while((str = br.readLine()).equals("0") == false){ char[] input = str.toCharArray(); sum = 0; for(int i = 0; i < input.length; i++){ sum += Character.getNumericValue(input[i]); } sb.append(sum).append("\n"); } System.out.print(sb); }catch(Exception e){ System.out.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 0, 13, 17, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 0, 13, 17, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 0, 13, 17, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 106, 11 ], [ 106, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 24, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 24, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 24, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 24, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 50, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 24, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 72, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 94, 96 ], [ 24, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 12, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tchar[] charNum = input.toCharArray();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tcharNum[i] = input.charAt(i);\n\t\t\t}\n\t\t\tfor (int j = 0; j < size; j += 1) {\n\t\t\t\tsum += Short.parseShort(Character.toString(charNum[j]));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tchar[] charNum = input.toCharArray();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tcharNum[i] = input.charAt(i);\n\t\t\t}\n\t\t\tfor (int j = 0; j < size; j += 1) {\n\t\t\t\tsum += Short.parseShort(Character.toString(charNum[j]));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tchar[] charNum = input.toCharArray();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tcharNum[i] = input.charAt(i);\n\t\t\t}\n\t\t\tfor (int j = 0; j < size; j += 1) {\n\t\t\t\tsum += Short.parseShort(Character.toString(charNum[j]));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tchar[] charNum = input.toCharArray();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tcharNum[i] = input.charAt(i);\n\t\t\t}\n\t\t\tfor (int j = 0; j < size; j += 1) {\n\t\t\t\tsum += Short.parseShort(Character.toString(charNum[j]));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "short size", "size", "sum;", "sum", "while (true) {\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tchar[] charNum = input.toCharArray();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tcharNum[i] = input.charAt(i);\n\t\t\t}\n\t\t\tfor (int j = 0; j < size; j += 1) {\n\t\t\t\tsum += Short.parseShort(Character.toString(charNum[j]));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tchar[] charNum = input.toCharArray();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tcharNum[i] = input.charAt(i);\n\t\t\t}\n\t\t\tfor (int j = 0; j < size; j += 1) {\n\t\t\t\tsum += Short.parseShort(Character.toString(charNum[j]));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "sum = 0", "sum", "0", "String input = in.readLine();", "input", "in.readLine()", "in.readLine", "in", "if (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}", "input.equals(\"0\")", "input.equals", "input", "\"0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "size = (short) input.length()", "size", "(short) input.length()", "input.length", "input", "char[] charNum = input.toCharArray();", "charNum", "input.toCharArray()", "input.toCharArray", "input", "for (int i = 0; i < size; i += 1) {\n\t\t\t\tcharNum[i] = input.charAt(i);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < size", "i", "size", "i += 1", "i += 1", "i", "1", "{\n\t\t\t\tcharNum[i] = input.charAt(i);\n\t\t\t}", "{\n\t\t\t\tcharNum[i] = input.charAt(i);\n\t\t\t}", "charNum[i] = input.charAt(i)", "charNum[i]", "charNum", "i", "input.charAt(i)", "input.charAt", "input", "i", "for (int j = 0; j < size; j += 1) {\n\t\t\t\tsum += Short.parseShort(Character.toString(charNum[j]));\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < size", "j", "size", "j += 1", "j += 1", "j", "1", "{\n\t\t\t\tsum += Short.parseShort(Character.toString(charNum[j]));\n\t\t\t}", "{\n\t\t\t\tsum += Short.parseShort(Character.toString(charNum[j]));\n\t\t\t}", "sum += Short.parseShort(Character.toString(charNum[j]))", "sum", "Short.parseShort(Character.toString(charNum[j]))", "Short.parseShort", "Short", "Character.toString(charNum[j])", "Character.toString", "Character", "charNum[j]", "charNum", "j", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tchar[] charNum = input.toCharArray();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tcharNum[i] = input.charAt(i);\n\t\t\t}\n\t\t\tfor (int j = 0; j < size; j += 1) {\n\t\t\t\tsum += Short.parseShort(Character.toString(charNum[j]));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tchar[] charNum = input.toCharArray();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tcharNum[i] = input.charAt(i);\n\t\t\t}\n\t\t\tfor (int j = 0; j < size; j += 1) {\n\t\t\t\tsum += Short.parseShort(Character.toString(charNum[j]));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); short size, sum; while (true) { sum = 0; String input = in.readLine(); if (input.equals("0")) { break; } size = (short) input.length(); char[] charNum = input.toCharArray(); for (int i = 0; i < size; i += 1) { charNum[i] = input.charAt(i); } for (int j = 0; j < size; j += 1) { sum += Short.parseShort(Character.toString(charNum[j])); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 61, 5 ], [ 61, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 29, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 14, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 6, 58 ], [ 58, 59 ], [ 0, 60 ], [ 60, 61 ], [ 60, 62 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n while (true) {\n String x = scan.nextLine();\n if (x.equals(\"0\")) break;\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += x.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n while (true) {\n String x = scan.nextLine();\n if (x.equals(\"0\")) break;\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += x.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n while (true) {\n String x = scan.nextLine();\n if (x.equals(\"0\")) break;\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += x.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n while (true) {\n String x = scan.nextLine();\n if (x.equals(\"0\")) break;\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += x.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (true) {\n String x = scan.nextLine();\n if (x.equals(\"0\")) break;\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += x.charAt(i) - '0';\n }\n System.out.println(sum);\n }", "true", "{\n String x = scan.nextLine();\n if (x.equals(\"0\")) break;\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += x.charAt(i) - '0';\n }\n System.out.println(sum);\n }", "String x = scan.nextLine();", "x", "scan.nextLine()", "scan.nextLine", "scan", "if (x.equals(\"0\")) break;", "x.equals(\"0\")", "x.equals", "x", "\"0\"", "break;", "int sum = 0;", "sum", "0", "for (int i = 0; i < x.length(); i++) {\n sum += x.charAt(i) - '0';\n }", "int i = 0;", "int i = 0;", "i", "0", "i < x.length()", "i", "x.length()", "x.length", "x", "i++", "i++", "i", "{\n sum += x.charAt(i) - '0';\n }", "{\n sum += x.charAt(i) - '0';\n }", "sum += x.charAt(i) - '0'", "sum", "x.charAt(i) - '0'", "x.charAt(i)", "x.charAt", "x", "i", "'0'", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n while (true) {\n String x = scan.nextLine();\n if (x.equals(\"0\")) break;\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += x.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n while (true) {\n String x = scan.nextLine();\n if (x.equals(\"0\")) break;\n int sum = 0;\n for (int i = 0; i < x.length(); i++) {\n sum += x.charAt(i) - '0';\n }\n System.out.println(sum);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (true) { String x = scan.nextLine(); if (x.equals("0")) break; int sum = 0; for (int i = 0; i < x.length(); i++) { sum += x.charAt(i) - '0'; } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 0, 13, 2, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 60, 5 ], [ 60, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 29, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 14, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 6, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString str=scan.next();\n\t\t\tif(str.equals(\"0\"))break;\n\t\t\t\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tcnt+=(str.charAt(i)-'0');\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString str=scan.next();\n\t\t\tif(str.equals(\"0\"))break;\n\t\t\t\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tcnt+=(str.charAt(i)-'0');\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString str=scan.next();\n\t\t\tif(str.equals(\"0\"))break;\n\t\t\t\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tcnt+=(str.charAt(i)-'0');\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString str=scan.next();\n\t\t\tif(str.equals(\"0\"))break;\n\t\t\t\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tcnt+=(str.charAt(i)-'0');\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t}\n\t\t\n\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\t\t\tString str=scan.next();\n\t\t\tif(str.equals(\"0\"))break;\n\t\t\t\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tcnt+=(str.charAt(i)-'0');\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t}", "true", "{\n\t\t\tString str=scan.next();\n\t\t\tif(str.equals(\"0\"))break;\n\t\t\t\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tcnt+=(str.charAt(i)-'0');\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t}", "String str=scan.next();", "str", "scan.next()", "scan.next", "scan", "if(str.equals(\"0\"))break;", "str.equals(\"0\")", "str.equals", "str", "\"0\"", "break;", "int cnt=0;", "cnt", "0", "for(int i=0;i<str.length();i++)\n\t\t\t\tcnt+=(str.charAt(i)-'0');", "int i=0;", "int i=0;", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "cnt+=(str.charAt(i)-'0');", "cnt+=(str.charAt(i)-'0')", "cnt", "(str.charAt(i)-'0')", "str.charAt(i)", "str.charAt", "str", "i", "'0'", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString str=scan.next();\n\t\t\tif(str.equals(\"0\"))break;\n\t\t\t\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tcnt+=(str.charAt(i)-'0');\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString str=scan.next();\n\t\t\tif(str.equals(\"0\"))break;\n\t\t\t\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tcnt+=(str.charAt(i)-'0');\n\t\t\t\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t}\n\t\t\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan=new Scanner(System.in); while(true){ String str=scan.next(); if(str.equals("0"))break; int cnt=0; for(int i=0;i<str.length();i++) cnt+=(str.charAt(i)-'0'); System.out.println(cnt); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 0, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 87, 8 ], [ 87, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 17, 36 ], [ 36, 37 ], [ 36, 38 ], [ 39, 40 ], [ 39, 41 ], [ 17, 42 ], [ 42, 43 ], [ 42, 44 ], [ 17, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 59, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 17, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 11, 81 ], [ 81, 82 ], [ 82, 83 ], [ 9, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line = x.split(\"\");\n\t\t\tint[] tmp = new int[line.length];\n\t\t\tlong count = 0;\n\t\t\tfor(int i=0;i<line.length;i++) {\n\t\t\t\ttmp[i] = Integer.parseInt(line[i]);\n\t\t\t\tcount+=tmp[i];\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t\tsc.close();\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line = x.split(\"\");\n\t\t\tint[] tmp = new int[line.length];\n\t\t\tlong count = 0;\n\t\t\tfor(int i=0;i<line.length;i++) {\n\t\t\t\ttmp[i] = Integer.parseInt(line[i]);\n\t\t\t\tcount+=tmp[i];\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line = x.split(\"\");\n\t\t\tint[] tmp = new int[line.length];\n\t\t\tlong count = 0;\n\t\t\tfor(int i=0;i<line.length;i++) {\n\t\t\t\ttmp[i] = Integer.parseInt(line[i]);\n\t\t\t\tcount+=tmp[i];\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line = x.split(\"\");\n\t\t\tint[] tmp = new int[line.length];\n\t\t\tlong count = 0;\n\t\t\tfor(int i=0;i<line.length;i++) {\n\t\t\t\ttmp[i] = Integer.parseInt(line[i]);\n\t\t\t\tcount+=tmp[i];\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true) {\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line = x.split(\"\");\n\t\t\tint[] tmp = new int[line.length];\n\t\t\tlong count = 0;\n\t\t\tfor(int i=0;i<line.length;i++) {\n\t\t\t\ttmp[i] = Integer.parseInt(line[i]);\n\t\t\t\tcount+=tmp[i];\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}", "true", "{\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line = x.split(\"\");\n\t\t\tint[] tmp = new int[line.length];\n\t\t\tlong count = 0;\n\t\t\tfor(int i=0;i<line.length;i++) {\n\t\t\t\ttmp[i] = Integer.parseInt(line[i]);\n\t\t\t\tcount+=tmp[i];\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}", "String x = sc.next();", "x", "sc.next()", "sc.next", "sc", "if(x.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}", "x.equals(\"0\")", "x.equals", "x", "\"0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] line = x.split(\"\");", "line", "x.split(\"\")", "x.split", "x", "\"\"", "int[] tmp = new int[line.length];", "tmp", "new int[line.length]", "line.length", "line", "line.length", "long count = 0;", "count", "0", "for(int i=0;i<line.length;i++) {\n\t\t\t\ttmp[i] = Integer.parseInt(line[i]);\n\t\t\t\tcount+=tmp[i];\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<line.length", "i", "line.length", "line", "line.length", "i++", "i++", "i", "{\n\t\t\t\ttmp[i] = Integer.parseInt(line[i]);\n\t\t\t\tcount+=tmp[i];\n\t\t\t}", "{\n\t\t\t\ttmp[i] = Integer.parseInt(line[i]);\n\t\t\t\tcount+=tmp[i];\n\t\t\t}", "tmp[i] = Integer.parseInt(line[i])", "tmp[i]", "tmp", "i", "Integer.parseInt(line[i])", "Integer.parseInt", "Integer", "line[i]", "line", "i", "count+=tmp[i]", "count", "tmp[i]", "tmp", "i", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line = x.split(\"\");\n\t\t\tint[] tmp = new int[line.length];\n\t\t\tlong count = 0;\n\t\t\tfor(int i=0;i<line.length;i++) {\n\t\t\t\ttmp[i] = Integer.parseInt(line[i]);\n\t\t\t\tcount+=tmp[i];\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] line = x.split(\"\");\n\t\t\tint[] tmp = new int[line.length];\n\t\t\tlong count = 0;\n\t\t\tfor(int i=0;i<line.length;i++) {\n\t\t\t\ttmp[i] = Integer.parseInt(line[i]);\n\t\t\t\tcount+=tmp[i];\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException{ Scanner sc = new Scanner(System.in); while(true) { String x = sc.next(); if(x.equals("0")) { break; } String[] line = x.split(""); int[] tmp = new int[line.length]; long count = 0; for(int i=0;i<line.length;i++) { tmp[i] = Integer.parseInt(line[i]); count+=tmp[i]; } System.out.println(count); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 17, 0, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 13, 17, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 2, 4, 18, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 34, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 30, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 30, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 77, 81 ], [ 6, 82 ], [ 82, 83 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t//宣言\n\t\tint\n\t\t\t\tsum;\n\t\tString\n\t\t\t\tinput,\n\t\t\t\toutput = \"\";\n\t\t\n\t//入力\n\t\tinput = sc.next();\n\t\t//終了判定\n\t\twhile(!(input.equals(\"0\"))){\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0;i < input.length();i++){\n\t\t\t\t//文字列のi番目の文字を数値として合計に加算\n\t\t\t\tsum += Character.getNumericValue(input.charAt(i));\n\t\t\t}\n\t\t\toutput += sum + \"\\n\";\n\t\t\tinput = sc.next();\n\t\t\t\n\t\t}\n\t\t\n\t//出力\n\t\tSystem.out.println(output.substring(0, output.length()-1));\n\t\t\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t//宣言\n\t\tint\n\t\t\t\tsum;\n\t\tString\n\t\t\t\tinput,\n\t\t\t\toutput = \"\";\n\t\t\n\t//入力\n\t\tinput = sc.next();\n\t\t//終了判定\n\t\twhile(!(input.equals(\"0\"))){\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0;i < input.length();i++){\n\t\t\t\t//文字列のi番目の文字を数値として合計に加算\n\t\t\t\tsum += Character.getNumericValue(input.charAt(i));\n\t\t\t}\n\t\t\toutput += sum + \"\\n\";\n\t\t\tinput = sc.next();\n\t\t\t\n\t\t}\n\t\t\n\t//出力\n\t\tSystem.out.println(output.substring(0, output.length()-1));\n\t\t\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t//宣言\n\t\tint\n\t\t\t\tsum;\n\t\tString\n\t\t\t\tinput,\n\t\t\t\toutput = \"\";\n\t\t\n\t//入力\n\t\tinput = sc.next();\n\t\t//終了判定\n\t\twhile(!(input.equals(\"0\"))){\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0;i < input.length();i++){\n\t\t\t\t//文字列のi番目の文字を数値として合計に加算\n\t\t\t\tsum += Character.getNumericValue(input.charAt(i));\n\t\t\t}\n\t\t\toutput += sum + \"\\n\";\n\t\t\tinput = sc.next();\n\t\t\t\n\t\t}\n\t\t\n\t//出力\n\t\tSystem.out.println(output.substring(0, output.length()-1));\n\t\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t//宣言\n\t\tint\n\t\t\t\tsum;\n\t\tString\n\t\t\t\tinput,\n\t\t\t\toutput = \"\";\n\t\t\n\t//入力\n\t\tinput = sc.next();\n\t\t//終了判定\n\t\twhile(!(input.equals(\"0\"))){\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0;i < input.length();i++){\n\t\t\t\t//文字列のi番目の文字を数値として合計に加算\n\t\t\t\tsum += Character.getNumericValue(input.charAt(i));\n\t\t\t}\n\t\t\toutput += sum + \"\\n\";\n\t\t\tinput = sc.next();\n\t\t\t\n\t\t}\n\t\t\n\t//出力\n\t\tSystem.out.println(output.substring(0, output.length()-1));\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int\n\t\t\t\tsum;", "sum", "String\n\t\t\t\tinput", "input", "output = \"\";", "output", "\"\"", "input = sc.next()", "input", "sc.next()", "sc.next", "sc", "while(!(input.equals(\"0\"))){\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0;i < input.length();i++){\n\t\t\t\t//文字列のi番目の文字を数値として合計に加算\n\t\t\t\tsum += Character.getNumericValue(input.charAt(i));\n\t\t\t}\n\t\t\toutput += sum + \"\\n\";\n\t\t\tinput = sc.next();\n\t\t\t\n\t\t}", "!(input.equals(\"0\"))", "(input.equals(\"0\"))", "input.equals", "input", "\"0\"", "{\n\t\t\tsum = 0;\n\t\t\tfor(int i = 0;i < input.length();i++){\n\t\t\t\t//文字列のi番目の文字を数値として合計に加算\n\t\t\t\tsum += Character.getNumericValue(input.charAt(i));\n\t\t\t}\n\t\t\toutput += sum + \"\\n\";\n\t\t\tinput = sc.next();\n\t\t\t\n\t\t}", "sum = 0", "sum", "0", "for(int i = 0;i < input.length();i++){\n\t\t\t\t//文字列のi番目の文字を数値として合計に加算\n\t\t\t\tsum += Character.getNumericValue(input.charAt(i));\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < input.length()", "i", "input.length()", "input.length", "input", "i++", "i++", "i", "{\n\t\t\t\t//文字列のi番目の文字を数値として合計に加算\n\t\t\t\tsum += Character.getNumericValue(input.charAt(i));\n\t\t\t}", "{\n\t\t\t\t//文字列のi番目の文字を数値として合計に加算\n\t\t\t\tsum += Character.getNumericValue(input.charAt(i));\n\t\t\t}", "sum += Character.getNumericValue(input.charAt(i))", "sum", "Character.getNumericValue(input.charAt(i))", "Character.getNumericValue", "Character", "input.charAt(i)", "input.charAt", "input", "i", "output += sum + \"\\n\"", "output", "sum + \"\\n\"", "sum", "\"\\n\"", "input = sc.next()", "input", "sc.next()", "sc.next", "sc", "System.out.println(output.substring(0, output.length()-1))", "System.out.println", "System.out", "System", "System.out", "output.substring(0, output.length()-1)", "output.substring", "output", "0", "output.length()-1", "output.length()", "output.length", "output", "1", "String args[]", "args" ]
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); //宣言 int sum; String input, output = ""; //入力 input = sc.next(); //終了判定 while(!(input.equals("0"))){ sum = 0; for(int i = 0;i < input.length();i++){ //文字列のi番目の文字を数値として合計に加算 sum += Character.getNumericValue(input.charAt(i)); } output += sum + "\n"; input = sc.next(); } //出力 System.out.println(output.substring(0, output.length()-1)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 41, 13, 4, 18, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 25, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 41, 42 ], [ 30, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 30, 48 ], [ 48, 49 ], [ 48, 50 ], [ 30, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 51, 61 ], [ 61, 62 ], [ 62, 63 ], [ 51, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 30, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 6, 79 ], [ 79, 80 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\n String str;\n int sum=0;\n\t\t\twhile( true ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tif( \"0\".equals( str ) ) { break; }\n\t\t\t\t\n\t\t\t\tchar[] strArr = str.toCharArray();\n\t\t\t\tsum=0;\n \t\tfor( int i=0; i<strArr.length; i++ ) {\n \t\t\tsum += ( strArr[i] - '0' );\n \t\t}\n\t\t\t\tSystem.out.println( sum );\n\t\t\t}\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\n String str;\n int sum=0;\n\t\t\twhile( true ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tif( \"0\".equals( str ) ) { break; }\n\t\t\t\t\n\t\t\t\tchar[] strArr = str.toCharArray();\n\t\t\t\tsum=0;\n \t\tfor( int i=0; i<strArr.length; i++ ) {\n \t\t\tsum += ( strArr[i] - '0' );\n \t\t}\n\t\t\t\tSystem.out.println( sum );\n\t\t\t}\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\n String str;\n int sum=0;\n\t\t\twhile( true ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tif( \"0\".equals( str ) ) { break; }\n\t\t\t\t\n\t\t\t\tchar[] strArr = str.toCharArray();\n\t\t\t\tsum=0;\n \t\tfor( int i=0; i<strArr.length; i++ ) {\n \t\t\tsum += ( strArr[i] - '0' );\n \t\t}\n\t\t\t\tSystem.out.println( sum );\n\t\t\t}\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\n String str;\n int sum=0;\n\t\t\twhile( true ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tif( \"0\".equals( str ) ) { break; }\n\t\t\t\t\n\t\t\t\tchar[] strArr = str.toCharArray();\n\t\t\t\tsum=0;\n \t\tfor( int i=0; i<strArr.length; i++ ) {\n \t\t\tsum += ( strArr[i] - '0' );\n \t\t}\n\t\t\t\tSystem.out.println( sum );\n\t\t\t}\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );", "kb", "new BufferedReader( new InputStreamReader( System.in ) )", "try {\n\t\t\n String str;\n int sum=0;\n\t\t\twhile( true ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tif( \"0\".equals( str ) ) { break; }\n\t\t\t\t\n\t\t\t\tchar[] strArr = str.toCharArray();\n\t\t\t\tsum=0;\n \t\tfor( int i=0; i<strArr.length; i++ ) {\n \t\t\tsum += ( strArr[i] - '0' );\n \t\t}\n\t\t\t\tSystem.out.println( sum );\n\t\t\t}\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}", "catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}", "IOException e", "{\n\t\t\tSystem.err.println( e );\n\t\t}", "System.err.println( e )", "System.err.println", "System.err", "System", "System.err", "e", "{\n\t\t\n String str;\n int sum=0;\n\t\t\twhile( true ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tif( \"0\".equals( str ) ) { break; }\n\t\t\t\t\n\t\t\t\tchar[] strArr = str.toCharArray();\n\t\t\t\tsum=0;\n \t\tfor( int i=0; i<strArr.length; i++ ) {\n \t\t\tsum += ( strArr[i] - '0' );\n \t\t}\n\t\t\t\tSystem.out.println( sum );\n\t\t\t}\n\t\t\t\n\t\t}", "String str;", "str", "int sum=0;", "sum", "0", "while( true ) {\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tif( \"0\".equals( str ) ) { break; }\n\t\t\t\t\n\t\t\t\tchar[] strArr = str.toCharArray();\n\t\t\t\tsum=0;\n \t\tfor( int i=0; i<strArr.length; i++ ) {\n \t\t\tsum += ( strArr[i] - '0' );\n \t\t}\n\t\t\t\tSystem.out.println( sum );\n\t\t\t}", "true", "{\n\t\t\t\tstr = kb.readLine();\n\t\t\t\tif( \"0\".equals( str ) ) { break; }\n\t\t\t\t\n\t\t\t\tchar[] strArr = str.toCharArray();\n\t\t\t\tsum=0;\n \t\tfor( int i=0; i<strArr.length; i++ ) {\n \t\t\tsum += ( strArr[i] - '0' );\n \t\t}\n\t\t\t\tSystem.out.println( sum );\n\t\t\t}", "str = kb.readLine()", "str", "kb.readLine()", "kb.readLine", "kb", "if( \"0\".equals( str ) ) { break; }", "\"0\".equals( str )", "\"0\".equals", "\"0\"", "str", "{ break; }", "break;", "char[] strArr = str.toCharArray();", "strArr", "str.toCharArray()", "str.toCharArray", "str", "sum=0", "sum", "0", "for( int i=0; i<strArr.length; i++ ) {\n \t\t\tsum += ( strArr[i] - '0' );\n \t\t}", "int i=0;", "int i=0;", "i", "0", "i<strArr.length", "i", "strArr.length", "strArr", "strArr.length", "i++", "i++", "i", "{\n \t\t\tsum += ( strArr[i] - '0' );\n \t\t}", "{\n \t\t\tsum += ( strArr[i] - '0' );\n \t\t}", "sum += ( strArr[i] - '0' )", "sum", "( strArr[i] - '0' )", "strArr[i]", "strArr", "i", "'0'", "System.out.println( sum )", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { String str; int sum=0; while( true ) { str = kb.readLine(); if( "0".equals( str ) ) { break; } char[] strArr = str.toCharArray(); sum=0; for( int i=0; i<strArr.length; i++ ) { sum += ( strArr[i] - '0' ); } System.out.println( sum ); } } catch( IOException e ) { System.err.println( e ); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 167, 8 ], [ 167, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 19, 24 ], [ 15, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 31, 44 ], [ 44, 45 ], [ 44, 46 ], [ 31, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 47, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 61, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 88, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 98, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 108, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 118, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 128, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 145, 147 ], [ 138, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 155, 157 ], [ 31, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 158, 163 ], [ 9, 164 ], [ 164, 165 ], [ 0, 166 ], [ 166, 167 ], [ 166, 168 ] ]
[ "import java.util.Scanner;\nimport java.io.*;\n\npublic class Main{\n public static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \n try { \n Scanner sc = new Scanner(System.in);\n while(true){\n String str = reader.readLine();\n if(str.equals(\"0\")){\n break;\n }\n int m=0;\n for(int i=0;i<str.length();i++){\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }\n System.out.println(m);\n }\n } catch (IOException e) { \n System.out.println(e); \n }\n }\n }", "import java.util.Scanner;", "Scanner", "java.util", "import java.io.*;", "io.*", "java", "public class Main{\n public static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \n try { \n Scanner sc = new Scanner(System.in);\n while(true){\n String str = reader.readLine();\n if(str.equals(\"0\")){\n break;\n }\n int m=0;\n for(int i=0;i<str.length();i++){\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }\n System.out.println(m);\n }\n } catch (IOException e) { \n System.out.println(e); \n }\n }\n }", "Main", "public static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \n try { \n Scanner sc = new Scanner(System.in);\n while(true){\n String str = reader.readLine();\n if(str.equals(\"0\")){\n break;\n }\n int m=0;\n for(int i=0;i<str.length();i++){\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }\n System.out.println(m);\n }\n } catch (IOException e) { \n System.out.println(e); \n }\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \n try { \n Scanner sc = new Scanner(System.in);\n while(true){\n String str = reader.readLine();\n if(str.equals(\"0\")){\n break;\n }\n int m=0;\n for(int i=0;i<str.length();i++){\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }\n System.out.println(m);\n }\n } catch (IOException e) { \n System.out.println(e); \n }\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "try { \n Scanner sc = new Scanner(System.in);\n while(true){\n String str = reader.readLine();\n if(str.equals(\"0\")){\n break;\n }\n int m=0;\n for(int i=0;i<str.length();i++){\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }\n System.out.println(m);\n }\n } catch (IOException e) { \n System.out.println(e); \n }", "catch (IOException e) { \n System.out.println(e); \n }", "IOException e", "{ \n System.out.println(e); \n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{ \n Scanner sc = new Scanner(System.in);\n while(true){\n String str = reader.readLine();\n if(str.equals(\"0\")){\n break;\n }\n int m=0;\n for(int i=0;i<str.length();i++){\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }\n System.out.println(m);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n String str = reader.readLine();\n if(str.equals(\"0\")){\n break;\n }\n int m=0;\n for(int i=0;i<str.length();i++){\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }\n System.out.println(m);\n }", "true", "{\n String str = reader.readLine();\n if(str.equals(\"0\")){\n break;\n }\n int m=0;\n for(int i=0;i<str.length();i++){\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }\n System.out.println(m);\n }", "String str = reader.readLine();", "str", "reader.readLine()", "reader.readLine", "reader", "if(str.equals(\"0\")){\n break;\n }", "str.equals(\"0\")", "str.equals", "str", "\"0\"", "{\n break;\n }", "break;", "int m=0;", "m", "0", "for(int i=0;i<str.length();i++){\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }", "{\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }", "char c = str.charAt(i);", "c", "str.charAt(i)", "str.charAt", "str", "i", "if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }", "c == '1'", "c", "'1'", "{\n m=m+1;\n }", "m=m+1", "m", "m+1", "m", "1", "if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }", "c == '2'", "c", "'2'", "{\n m=m+2;\n }", "m=m+2", "m", "m+2", "m", "2", "if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }", "c == '3'", "c", "'3'", "{\n m=m+3;\n }", "m=m+3", "m", "m+3", "m", "3", "if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }", "c == '4'", "c", "'4'", "{\n m=m+4;\n }", "m=m+4", "m", "m+4", "m", "4", "if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }", "c == '5'", "c", "'5'", "{\n m=m+5;\n }", "m=m+5", "m", "m+5", "m", "5", "if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }", "c == '6'", "c", "'6'", "{\n m=m+6;\n }", "m=m+6", "m", "m+6", "m", "6", "if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }", "c == '7'", "c", "'7'", "{\n m=m+7;\n }", "m=m+7", "m", "m+7", "m", "7", "if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }", "c == '8'", "c", "'8'", "{\n m=m+8;\n }", "m=m+8", "m", "m+8", "m", "8", "if(c == '9'){\n m=m+9;\n }", "c == '9'", "c", "'9'", "{\n m=m+9;\n }", "m=m+9", "m", "m+9", "m", "9", "System.out.println(m)", "System.out.println", "System.out", "System", "System.out", "m", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \n try { \n Scanner sc = new Scanner(System.in);\n while(true){\n String str = reader.readLine();\n if(str.equals(\"0\")){\n break;\n }\n int m=0;\n for(int i=0;i<str.length();i++){\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }\n System.out.println(m);\n }\n } catch (IOException e) { \n System.out.println(e); \n }\n }\n }", "public class Main{\n public static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \n try { \n Scanner sc = new Scanner(System.in);\n while(true){\n String str = reader.readLine();\n if(str.equals(\"0\")){\n break;\n }\n int m=0;\n for(int i=0;i<str.length();i++){\n char c = str.charAt(i); \n if(c == '1'){\n m=m+1;\n }else if(c == '2'){\n m=m+2;\n }else if(c == '3'){\n m=m+3;\n }else if(c == '4'){\n m=m+4;\n }else if(c == '5'){\n m=m+5;\n }else if(c == '6'){\n m=m+6;\n }else if(c == '7'){\n m=m+7;\n }else if(c == '8'){\n m=m+8;\n }else if(c == '9'){\n m=m+9;\n }\n }\n System.out.println(m);\n }\n } catch (IOException e) { \n System.out.println(e); \n }\n }\n }", "Main" ]
import java.util.Scanner; import java.io.*; public class Main{ public static void main(String[] args){ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try { Scanner sc = new Scanner(System.in); while(true){ String str = reader.readLine(); if(str.equals("0")){ break; } int m=0; for(int i=0;i<str.length();i++){ char c = str.charAt(i); if(c == '1'){ m=m+1; }else if(c == '2'){ m=m+2; }else if(c == '3'){ m=m+3; }else if(c == '4'){ m=m+4; }else if(c == '5'){ m=m+5; }else if(c == '6'){ m=m+6; }else if(c == '7'){ m=m+7; }else if(c == '8'){ m=m+8; }else if(c == '9'){ m=m+9; } } System.out.println(m); } } catch (IOException e) { System.out.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 13, 0, 13, 2, 4, 18, 13, 13, 17, 0, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 25, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 38, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 52, 65 ], [ 65, 66 ], [ 65, 67 ], [ 25, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 25, 74 ], [ 74, 75 ], [ 74, 76 ], [ 8, 77 ], [ 77, 78 ], [ 78, 79 ], [ 6, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int i;\n String str = \"1\";\n int sum = 0;\n int value = 1;\n while (true) {\n str = sc.next();\n if(str.equals(\"0\")){\n break;\n }\n for (i = 0; i < str.length(); i++) {\n str.charAt(i);\n value = str.charAt(i) -'0';\n sum += value;\n }\n System.out.println(sum);\n sum = 0; \n }\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int i;\n String str = \"1\";\n int sum = 0;\n int value = 1;\n while (true) {\n str = sc.next();\n if(str.equals(\"0\")){\n break;\n }\n for (i = 0; i < str.length(); i++) {\n str.charAt(i);\n value = str.charAt(i) -'0';\n sum += value;\n }\n System.out.println(sum);\n sum = 0; \n }\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int i;\n String str = \"1\";\n int sum = 0;\n int value = 1;\n while (true) {\n str = sc.next();\n if(str.equals(\"0\")){\n break;\n }\n for (i = 0; i < str.length(); i++) {\n str.charAt(i);\n value = str.charAt(i) -'0';\n sum += value;\n }\n System.out.println(sum);\n sum = 0; \n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n int i;\n String str = \"1\";\n int sum = 0;\n int value = 1;\n while (true) {\n str = sc.next();\n if(str.equals(\"0\")){\n break;\n }\n for (i = 0; i < str.length(); i++) {\n str.charAt(i);\n value = str.charAt(i) -'0';\n sum += value;\n }\n System.out.println(sum);\n sum = 0; \n }\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int i;", "i", "String str = \"1\";", "str", "\"1\"", "int sum = 0;", "sum", "0", "int value = 1;", "value", "1", "while (true) {\n str = sc.next();\n if(str.equals(\"0\")){\n break;\n }\n for (i = 0; i < str.length(); i++) {\n str.charAt(i);\n value = str.charAt(i) -'0';\n sum += value;\n }\n System.out.println(sum);\n sum = 0; \n }", "true", "{\n str = sc.next();\n if(str.equals(\"0\")){\n break;\n }\n for (i = 0; i < str.length(); i++) {\n str.charAt(i);\n value = str.charAt(i) -'0';\n sum += value;\n }\n System.out.println(sum);\n sum = 0; \n }", "str = sc.next()", "str", "sc.next()", "sc.next", "sc", "if(str.equals(\"0\")){\n break;\n }", "str.equals(\"0\")", "str.equals", "str", "\"0\"", "{\n break;\n }", "break;", "for (i = 0; i < str.length(); i++) {\n str.charAt(i);\n value = str.charAt(i) -'0';\n sum += value;\n }", "i = 0;", "i = 0", "i", "0", "i < str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n str.charAt(i);\n value = str.charAt(i) -'0';\n sum += value;\n }", "{\n str.charAt(i);\n value = str.charAt(i) -'0';\n sum += value;\n }", "str.charAt(i)", "str.charAt", "str", "i", "value = str.charAt(i) -'0'", "value", "str.charAt(i) -'0'", "str.charAt(i)", "str.charAt", "str", "i", "'0'", "sum += value", "sum", "value", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "sum = 0", "sum", "0", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int i;\n String str = \"1\";\n int sum = 0;\n int value = 1;\n while (true) {\n str = sc.next();\n if(str.equals(\"0\")){\n break;\n }\n for (i = 0; i < str.length(); i++) {\n str.charAt(i);\n value = str.charAt(i) -'0';\n sum += value;\n }\n System.out.println(sum);\n sum = 0; \n }\n sc.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int i;\n String str = \"1\";\n int sum = 0;\n int value = 1;\n while (true) {\n str = sc.next();\n if(str.equals(\"0\")){\n break;\n }\n for (i = 0; i < str.length(); i++) {\n str.charAt(i);\n value = str.charAt(i) -'0';\n sum += value;\n }\n System.out.println(sum);\n sum = 0; \n }\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int i; String str = "1"; int sum = 0; int value = 1; while (true) { str = sc.next(); if(str.equals("0")){ break; } for (i = 0; i < str.length(); i++) { str.charAt(i); value = str.charAt(i) -'0'; sum += value; } System.out.println(sum); sum = 0; } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 17, 3, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 17, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 26, 33 ], [ 17, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 34, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 17, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 9, 66 ], [ 66, 67 ] ]
[ "import java.util.*;\nimport java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint sum = 0;\n\t\t\tString s = stdIn.nextLine();\n\t\t\tif(s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint sum = 0;\n\t\t\tString s = stdIn.nextLine();\n\t\t\tif(s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint sum = 0;\n\t\t\tString s = stdIn.nextLine();\n\t\t\tif(s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint sum = 0;\n\t\t\tString s = stdIn.nextLine();\n\t\t\tif(s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "while (true) {\n\t\t\tint sum = 0;\n\t\t\tString s = stdIn.nextLine();\n\t\t\tif(s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tint sum = 0;\n\t\t\tString s = stdIn.nextLine();\n\t\t\tif(s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "int sum = 0;", "sum", "0", "String s = stdIn.nextLine();", "s", "stdIn.nextLine()", "stdIn.nextLine", "stdIn", "if(s.charAt(0) == '0')\n\t\t\t\tbreak;", "s.charAt(0) == '0'", "s.charAt(0)", "s.charAt", "s", "0", "'0'", "break;", "for (int i=0; i<s.length(); i++) {\n\t\t\t\tsum += Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\t\tsum += Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}", "{\n\t\t\t\tsum += Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}", "sum += Integer.parseInt(\"\"+s.charAt(i))", "sum", "Integer.parseInt(\"\"+s.charAt(i))", "Integer.parseInt", "Integer", "\"\"+s.charAt(i)", "\"\"", "s.charAt(i)", "s.charAt", "s", "i", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args" ]
import java.util.*; import java.io.*; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); while (true) { int sum = 0; String s = stdIn.nextLine(); if(s.charAt(0) == '0') break; for (int i=0; i<s.length(); i++) { sum += Integer.parseInt(""+s.charAt(i)); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 13, 0, 13, 4, 18, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 17, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 88, 5 ], [ 88, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 28, 41 ], [ 41, 42 ], [ 41, 43 ], [ 28, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 28, 49 ], [ 49, 50 ], [ 49, 51 ], [ 28, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 52, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 69, 75 ], [ 66, 76 ], [ 76, 77 ], [ 76, 78 ], [ 28, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 6, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n \n String in;\n String number;\n char[] num=new char[1000];\n int result=0;\n int add=0;\n \n while(true){\n in=scan.nextLine();\n if(in.equals(\"0\")){\n break;\n }\n number=in;\n \n num=number.toCharArray();\n result=0;\n for(int i=0;i<num.length;i++){\n add=Character.digit(num[i], 10);\n result+=add;\n }\n System.out.println(result);\n }\n \n } \n \n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n \n String in;\n String number;\n char[] num=new char[1000];\n int result=0;\n int add=0;\n \n while(true){\n in=scan.nextLine();\n if(in.equals(\"0\")){\n break;\n }\n number=in;\n \n num=number.toCharArray();\n result=0;\n for(int i=0;i<num.length;i++){\n add=Character.digit(num[i], 10);\n result+=add;\n }\n System.out.println(result);\n }\n \n } \n \n}", "Main", "public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n \n String in;\n String number;\n char[] num=new char[1000];\n int result=0;\n int add=0;\n \n while(true){\n in=scan.nextLine();\n if(in.equals(\"0\")){\n break;\n }\n number=in;\n \n num=number.toCharArray();\n result=0;\n for(int i=0;i<num.length;i++){\n add=Character.digit(num[i], 10);\n result+=add;\n }\n System.out.println(result);\n }\n \n }", "main", "{\n Scanner scan=new Scanner(System.in);\n \n String in;\n String number;\n char[] num=new char[1000];\n int result=0;\n int add=0;\n \n while(true){\n in=scan.nextLine();\n if(in.equals(\"0\")){\n break;\n }\n number=in;\n \n num=number.toCharArray();\n result=0;\n for(int i=0;i<num.length;i++){\n add=Character.digit(num[i], 10);\n result+=add;\n }\n System.out.println(result);\n }\n \n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "String in;", "in", "String number;", "number", "char[] num=new char[1000];", "num", "new char[1000]", "1000", "int result=0;", "result", "0", "int add=0;", "add", "0", "while(true){\n in=scan.nextLine();\n if(in.equals(\"0\")){\n break;\n }\n number=in;\n \n num=number.toCharArray();\n result=0;\n for(int i=0;i<num.length;i++){\n add=Character.digit(num[i], 10);\n result+=add;\n }\n System.out.println(result);\n }", "true", "{\n in=scan.nextLine();\n if(in.equals(\"0\")){\n break;\n }\n number=in;\n \n num=number.toCharArray();\n result=0;\n for(int i=0;i<num.length;i++){\n add=Character.digit(num[i], 10);\n result+=add;\n }\n System.out.println(result);\n }", "in=scan.nextLine()", "in", "scan.nextLine()", "scan.nextLine", "scan", "if(in.equals(\"0\")){\n break;\n }", "in.equals(\"0\")", "in.equals", "in", "\"0\"", "{\n break;\n }", "break;", "number=in", "number", "in", "num=number.toCharArray()", "num", "number.toCharArray()", "number.toCharArray", "number", "result=0", "result", "0", "for(int i=0;i<num.length;i++){\n add=Character.digit(num[i], 10);\n result+=add;\n }", "int i=0;", "int i=0;", "i", "0", "i<num.length", "i", "num.length", "num", "num.length", "i++", "i++", "i", "{\n add=Character.digit(num[i], 10);\n result+=add;\n }", "{\n add=Character.digit(num[i], 10);\n result+=add;\n }", "add=Character.digit(num[i], 10)", "add", "Character.digit(num[i], 10)", "Character.digit", "Character", "num[i]", "num", "i", "10", "result+=add", "result", "add", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n \n String in;\n String number;\n char[] num=new char[1000];\n int result=0;\n int add=0;\n \n while(true){\n in=scan.nextLine();\n if(in.equals(\"0\")){\n break;\n }\n number=in;\n \n num=number.toCharArray();\n result=0;\n for(int i=0;i<num.length;i++){\n add=Character.digit(num[i], 10);\n result+=add;\n }\n System.out.println(result);\n }\n \n } \n \n}", "public class Main {\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n \n String in;\n String number;\n char[] num=new char[1000];\n int result=0;\n int add=0;\n \n while(true){\n in=scan.nextLine();\n if(in.equals(\"0\")){\n break;\n }\n number=in;\n \n num=number.toCharArray();\n result=0;\n for(int i=0;i<num.length;i++){\n add=Character.digit(num[i], 10);\n result+=add;\n }\n System.out.println(result);\n }\n \n } \n \n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan=new Scanner(System.in); String in; String number; char[] num=new char[1000]; int result=0; int add=0; while(true){ in=scan.nextLine(); if(in.equals("0")){ break; } number=in; num=number.toCharArray(); result=0; for(int i=0;i<num.length;i++){ add=Character.digit(num[i], 10); result+=add; } System.out.println(result); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 4, 18, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 79, 5 ], [ 79, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 17, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 17, 40 ], [ 40, 41 ], [ 40, 42 ], [ 17, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 17, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n//\n//\t\twhile (true) {\n//\t\t\tlong x = scan.nextLong();\n//\t\t\tif (x == 0l) {break;}\n//\t\t\tlong sum = 0l;\n//\t\t\twhile (x != 0l) {\n//\t\t\t\tsum += x % 10l;\n//\t\t\t\tx /= 10l;\n//\t\t\t}\n//\t\t\tsb.append(sum + \"\\n\");\n//\t\t}\n//\t\tSystem.out.print(sb);\n\n\t\twhile (true) {\n\t\t\tString x = scan.next();\n\n\t\t\tif ( x.equals(\"0\") ) {break;}\n\n\t\t\tchar[] xx = x.toCharArray();\n\t\t\tint l = xx.length;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < l; i++) {\n\t\t\t\tsum += Character.getNumericValue(xx[i]);\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n//\n//\t\twhile (true) {\n//\t\t\tlong x = scan.nextLong();\n//\t\t\tif (x == 0l) {break;}\n//\t\t\tlong sum = 0l;\n//\t\t\twhile (x != 0l) {\n//\t\t\t\tsum += x % 10l;\n//\t\t\t\tx /= 10l;\n//\t\t\t}\n//\t\t\tsb.append(sum + \"\\n\");\n//\t\t}\n//\t\tSystem.out.print(sb);\n\n\t\twhile (true) {\n\t\t\tString x = scan.next();\n\n\t\t\tif ( x.equals(\"0\") ) {break;}\n\n\t\t\tchar[] xx = x.toCharArray();\n\t\t\tint l = xx.length;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < l; i++) {\n\t\t\t\tsum += Character.getNumericValue(xx[i]);\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n//\n//\t\twhile (true) {\n//\t\t\tlong x = scan.nextLong();\n//\t\t\tif (x == 0l) {break;}\n//\t\t\tlong sum = 0l;\n//\t\t\twhile (x != 0l) {\n//\t\t\t\tsum += x % 10l;\n//\t\t\t\tx /= 10l;\n//\t\t\t}\n//\t\t\tsb.append(sum + \"\\n\");\n//\t\t}\n//\t\tSystem.out.print(sb);\n\n\t\twhile (true) {\n\t\t\tString x = scan.next();\n\n\t\t\tif ( x.equals(\"0\") ) {break;}\n\n\t\t\tchar[] xx = x.toCharArray();\n\t\t\tint l = xx.length;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < l; i++) {\n\t\t\t\tsum += Character.getNumericValue(xx[i]);\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n//\n//\t\twhile (true) {\n//\t\t\tlong x = scan.nextLong();\n//\t\t\tif (x == 0l) {break;}\n//\t\t\tlong sum = 0l;\n//\t\t\twhile (x != 0l) {\n//\t\t\t\tsum += x % 10l;\n//\t\t\t\tx /= 10l;\n//\t\t\t}\n//\t\t\tsb.append(sum + \"\\n\");\n//\t\t}\n//\t\tSystem.out.print(sb);\n\n\t\twhile (true) {\n\t\t\tString x = scan.next();\n\n\t\t\tif ( x.equals(\"0\") ) {break;}\n\n\t\t\tchar[] xx = x.toCharArray();\n\t\t\tint l = xx.length;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < l; i++) {\n\t\t\t\tsum += Character.getNumericValue(xx[i]);\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while (true) {\n\t\t\tString x = scan.next();\n\n\t\t\tif ( x.equals(\"0\") ) {break;}\n\n\t\t\tchar[] xx = x.toCharArray();\n\t\t\tint l = xx.length;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < l; i++) {\n\t\t\t\tsum += Character.getNumericValue(xx[i]);\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}", "true", "{\n\t\t\tString x = scan.next();\n\n\t\t\tif ( x.equals(\"0\") ) {break;}\n\n\t\t\tchar[] xx = x.toCharArray();\n\t\t\tint l = xx.length;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < l; i++) {\n\t\t\t\tsum += Character.getNumericValue(xx[i]);\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}", "String x = scan.next();", "x", "scan.next()", "scan.next", "scan", "if ( x.equals(\"0\") ) {break;}", "x.equals(\"0\")", "x.equals", "x", "\"0\"", "{break;}", "break;", "char[] xx = x.toCharArray();", "xx", "x.toCharArray()", "x.toCharArray", "x", "int l = xx.length;", "l", "xx.length", "xx", "xx.length", "int sum = 0;", "sum", "0", "for (int i = 0; i < l; i++) {\n\t\t\t\tsum += Character.getNumericValue(xx[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < l", "i", "l", "i++", "i++", "i", "{\n\t\t\t\tsum += Character.getNumericValue(xx[i]);\n\t\t\t}", "{\n\t\t\t\tsum += Character.getNumericValue(xx[i]);\n\t\t\t}", "sum += Character.getNumericValue(xx[i])", "sum", "Character.getNumericValue(xx[i])", "Character.getNumericValue", "Character", "xx[i]", "xx", "i", "sb.append(sum + \"\\n\")", "sb.append", "sb", "sum + \"\\n\"", "sum", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n//\n//\t\twhile (true) {\n//\t\t\tlong x = scan.nextLong();\n//\t\t\tif (x == 0l) {break;}\n//\t\t\tlong sum = 0l;\n//\t\t\twhile (x != 0l) {\n//\t\t\t\tsum += x % 10l;\n//\t\t\t\tx /= 10l;\n//\t\t\t}\n//\t\t\tsb.append(sum + \"\\n\");\n//\t\t}\n//\t\tSystem.out.print(sb);\n\n\t\twhile (true) {\n\t\t\tString x = scan.next();\n\n\t\t\tif ( x.equals(\"0\") ) {break;}\n\n\t\t\tchar[] xx = x.toCharArray();\n\t\t\tint l = xx.length;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < l; i++) {\n\t\t\t\tsum += Character.getNumericValue(xx[i]);\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n//\n//\t\twhile (true) {\n//\t\t\tlong x = scan.nextLong();\n//\t\t\tif (x == 0l) {break;}\n//\t\t\tlong sum = 0l;\n//\t\t\twhile (x != 0l) {\n//\t\t\t\tsum += x % 10l;\n//\t\t\t\tx /= 10l;\n//\t\t\t}\n//\t\t\tsb.append(sum + \"\\n\");\n//\t\t}\n//\t\tSystem.out.print(sb);\n\n\t\twhile (true) {\n\t\t\tString x = scan.next();\n\n\t\t\tif ( x.equals(\"0\") ) {break;}\n\n\t\t\tchar[] xx = x.toCharArray();\n\t\t\tint l = xx.length;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < l; i++) {\n\t\t\t\tsum += Character.getNumericValue(xx[i]);\n\t\t\t}\n\t\t\tsb.append(sum + \"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner scan = new Scanner(System.in); StringBuilder sb = new StringBuilder(); // // while (true) { // long x = scan.nextLong(); // if (x == 0l) {break;} // long sum = 0l; // while (x != 0l) { // sum += x % 10l; // x /= 10l; // } // sb.append(sum + "\n"); // } // System.out.print(sb); while (true) { String x = scan.next(); if ( x.equals("0") ) {break;} char[] xx = x.toCharArray(); int l = xx.length; int sum = 0; for (int i = 0; i < l; i++) { sum += Character.getNumericValue(xx[i]); } sb.append(sum + "\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 38, 5, 13, 30, 4, 18, 13, 30, 42, 17, 30, 0, 13, 17, 0, 13, 4, 18, 4, 18, 13, 17, 14, 2, 4, 18, 13, 18, 13, 17, 17, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 19, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 35, 40 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 46, 48 ], [ 42, 49 ], [ 41, 50 ], [ 29, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 51, 61 ], [ 61, 62 ], [ 62, 63 ], [ 51, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 29, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 9, 80 ], [ 80, 81 ] ]
[ "import java.util.*;\nimport java.io.*;\n\nclass Main {\n public static void main(String args[]) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] n;\n int sum;\n try {\n while (true) {\n sum = 0;\n n = br.readLine().split(\"(?<=.)\");\n if (Integer.parseInt(n[0]) == 0) break;\n for (int i = 0; i < n.length; i++) {\n sum += Integer.parseInt(n[i]);\n }\n System.out.println(sum);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String args[]) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] n;\n int sum;\n try {\n while (true) {\n sum = 0;\n n = br.readLine().split(\"(?<=.)\");\n if (Integer.parseInt(n[0]) == 0) break;\n for (int i = 0; i < n.length; i++) {\n sum += Integer.parseInt(n[i]);\n }\n System.out.println(sum);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}", "Main", "public static void main(String args[]) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] n;\n int sum;\n try {\n while (true) {\n sum = 0;\n n = br.readLine().split(\"(?<=.)\");\n if (Integer.parseInt(n[0]) == 0) break;\n for (int i = 0; i < n.length; i++) {\n sum += Integer.parseInt(n[i]);\n }\n System.out.println(sum);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] n;\n int sum;\n try {\n while (true) {\n sum = 0;\n n = br.readLine().split(\"(?<=.)\");\n if (Integer.parseInt(n[0]) == 0) break;\n for (int i = 0; i < n.length; i++) {\n sum += Integer.parseInt(n[i]);\n }\n System.out.println(sum);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String[] n;", "n", "int sum;", "sum", "try {\n while (true) {\n sum = 0;\n n = br.readLine().split(\"(?<=.)\");\n if (Integer.parseInt(n[0]) == 0) break;\n for (int i = 0; i < n.length; i++) {\n sum += Integer.parseInt(n[i]);\n }\n System.out.println(sum);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n while (true) {\n sum = 0;\n n = br.readLine().split(\"(?<=.)\");\n if (Integer.parseInt(n[0]) == 0) break;\n for (int i = 0; i < n.length; i++) {\n sum += Integer.parseInt(n[i]);\n }\n System.out.println(sum);\n }\n }", "while (true) {\n sum = 0;\n n = br.readLine().split(\"(?<=.)\");\n if (Integer.parseInt(n[0]) == 0) break;\n for (int i = 0; i < n.length; i++) {\n sum += Integer.parseInt(n[i]);\n }\n System.out.println(sum);\n }", "true", "{\n sum = 0;\n n = br.readLine().split(\"(?<=.)\");\n if (Integer.parseInt(n[0]) == 0) break;\n for (int i = 0; i < n.length; i++) {\n sum += Integer.parseInt(n[i]);\n }\n System.out.println(sum);\n }", "sum = 0", "sum", "0", "n = br.readLine().split(\"(?<=.)\")", "n", "br.readLine().split(\"(?<=.)\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"(?<=.)\"", "if (Integer.parseInt(n[0]) == 0) break;", "Integer.parseInt(n[0]) == 0", "Integer.parseInt(n[0])", "Integer.parseInt", "Integer", "n[0]", "n", "0", "0", "break;", "for (int i = 0; i < n.length; i++) {\n sum += Integer.parseInt(n[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n.length", "i", "n.length", "n", "n.length", "i++", "i++", "i", "{\n sum += Integer.parseInt(n[i]);\n }", "{\n sum += Integer.parseInt(n[i]);\n }", "sum += Integer.parseInt(n[i])", "sum", "Integer.parseInt(n[i])", "Integer.parseInt", "Integer", "n[i]", "n", "i", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String args[]", "args" ]
import java.util.*; import java.io.*; class Main { public static void main(String args[]) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] n; int sum; try { while (true) { sum = 0; n = br.readLine().split("(?<=.)"); if (Integer.parseInt(n[0]) == 0) break; for (int i = 0; i < n.length; i++) { sum += Integer.parseInt(n[i]); } System.out.println(sum); } } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 17, 5 ], [ 17, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 6, 14 ], [ 14, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ] ]
[ "import java.io.*;\n \npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String line;\n LOOP: while ((line = input.readLine()) != null) {\n int line_len = line.length();\n if (line_len == 1 && line.charAt(0) == '0')\n break LOOP;\n long total = 0;\n for (int i = 0; i < line_len; i++) {\n total += line.charAt(i) - '0';\n }\n System.out.println(total);\n }\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String line;\n LOOP: while ((line = input.readLine()) != null) {\n int line_len = line.length();\n if (line_len == 1 && line.charAt(0) == '0')\n break LOOP;\n long total = 0;\n for (int i = 0; i < line_len; i++) {\n total += line.charAt(i) - '0';\n }\n System.out.println(total);\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String line;\n LOOP: while ((line = input.readLine()) != null) {\n int line_len = line.length();\n if (line_len == 1 && line.charAt(0) == '0')\n break LOOP;\n long total = 0;\n for (int i = 0; i < line_len; i++) {\n total += line.charAt(i) - '0';\n }\n System.out.println(total);\n }\n }", "main", "{\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String line;\n LOOP: while ((line = input.readLine()) != null) {\n int line_len = line.length();\n if (line_len == 1 && line.charAt(0) == '0')\n break LOOP;\n long total = 0;\n for (int i = 0; i < line_len; i++) {\n total += line.charAt(i) - '0';\n }\n System.out.println(total);\n }\n }", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String line;\n LOOP: while ((line = input.readLine()) != null) {\n int line_len = line.length();\n if (line_len == 1 && line.charAt(0) == '0')\n break LOOP;\n long total = 0;\n for (int i = 0; i < line_len; i++) {\n total += line.charAt(i) - '0';\n }\n System.out.println(total);\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n String line;\n LOOP: while ((line = input.readLine()) != null) {\n int line_len = line.length();\n if (line_len == 1 && line.charAt(0) == '0')\n break LOOP;\n long total = 0;\n for (int i = 0; i < line_len; i++) {\n total += line.charAt(i) - '0';\n }\n System.out.println(total);\n }\n }\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); String line; LOOP: while ((line = input.readLine()) != null) { int line_len = line.length(); if (line_len == 1 && line.charAt(0) == '0') break LOOP; long total = 0; for (int i = 0; i < line_len; i++) { total += line.charAt(i) - '0'; } System.out.println(total); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 0, 13, 17, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 71, 8 ], [ 71, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 21, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 30, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 38, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 37, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 9, 68 ], [ 68, 69 ], [ 0, 70 ], [ 70, 71 ], [ 70, 72 ] ]
[ "import java.util.*;\nimport java.text.*;\n/*\nMain class for AOJ where there is no input.\n*/\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum = 0;\n str = sc.nextLine();\n if(str.equals(\"0\")){\n break;\n }else{\n for(int i = 0; i < str.length(); i ++){\n sum += Character.getNumericValue(str.charAt(i));\n }\n System.out.println(sum);\n }\n \n \n }\n }//main\n}//class", "import java.util.*;", "util.*", "java", "import java.text.*;", "text.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum = 0;\n str = sc.nextLine();\n if(str.equals(\"0\")){\n break;\n }else{\n for(int i = 0; i < str.length(); i ++){\n sum += Character.getNumericValue(str.charAt(i));\n }\n System.out.println(sum);\n }\n \n \n }\n }//main\n}//class", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum = 0;\n str = sc.nextLine();\n if(str.equals(\"0\")){\n break;\n }else{\n for(int i = 0; i < str.length(); i ++){\n sum += Character.getNumericValue(str.charAt(i));\n }\n System.out.println(sum);\n }\n \n \n }\n }//main", "main", "{\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum = 0;\n str = sc.nextLine();\n if(str.equals(\"0\")){\n break;\n }else{\n for(int i = 0; i < str.length(); i ++){\n sum += Character.getNumericValue(str.charAt(i));\n }\n System.out.println(sum);\n }\n \n \n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str;", "str", "int sum;", "sum", "while(true){\n sum = 0;\n str = sc.nextLine();\n if(str.equals(\"0\")){\n break;\n }else{\n for(int i = 0; i < str.length(); i ++){\n sum += Character.getNumericValue(str.charAt(i));\n }\n System.out.println(sum);\n }\n \n \n }", "true", "{\n sum = 0;\n str = sc.nextLine();\n if(str.equals(\"0\")){\n break;\n }else{\n for(int i = 0; i < str.length(); i ++){\n sum += Character.getNumericValue(str.charAt(i));\n }\n System.out.println(sum);\n }\n \n \n }", "sum = 0", "sum", "0", "str = sc.nextLine()", "str", "sc.nextLine()", "sc.nextLine", "sc", "if(str.equals(\"0\")){\n break;\n }else{\n for(int i = 0; i < str.length(); i ++){\n sum += Character.getNumericValue(str.charAt(i));\n }\n System.out.println(sum);\n }", "str.equals(\"0\")", "str.equals", "str", "\"0\"", "{\n break;\n }", "break;", "{\n for(int i = 0; i < str.length(); i ++){\n sum += Character.getNumericValue(str.charAt(i));\n }\n System.out.println(sum);\n }", "for(int i = 0; i < str.length(); i ++){\n sum += Character.getNumericValue(str.charAt(i));\n }", "int i = 0;", "int i = 0;", "i", "0", "i < str.length()", "i", "str.length()", "str.length", "str", "i ++", "i ++", "i", "{\n sum += Character.getNumericValue(str.charAt(i));\n }", "{\n sum += Character.getNumericValue(str.charAt(i));\n }", "sum += Character.getNumericValue(str.charAt(i))", "sum", "Character.getNumericValue(str.charAt(i))", "Character.getNumericValue", "Character", "str.charAt(i)", "str.charAt", "str", "i", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum = 0;\n str = sc.nextLine();\n if(str.equals(\"0\")){\n break;\n }else{\n for(int i = 0; i < str.length(); i ++){\n sum += Character.getNumericValue(str.charAt(i));\n }\n System.out.println(sum);\n }\n \n \n }\n }//main\n}//class", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n int sum;\n \n while(true){\n sum = 0;\n str = sc.nextLine();\n if(str.equals(\"0\")){\n break;\n }else{\n for(int i = 0; i < str.length(); i ++){\n sum += Character.getNumericValue(str.charAt(i));\n }\n System.out.println(sum);\n }\n \n \n }\n }//main\n}//class", "Main" ]
import java.util.*; import java.text.*; /* Main class for AOJ where there is no input. */ public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str; int sum; while(true){ sum = 0; str = sc.nextLine(); if(str.equals("0")){ break; }else{ for(int i = 0; i < str.length(); i ++){ sum += Character.getNumericValue(str.charAt(i)); } System.out.println(sum); } } }//main }//class
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 11, 1, 30, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 84, 11 ], [ 84, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 15, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 31, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 31, 43 ], [ 43, 44 ], [ 31, 45 ], [ 45, 46 ], [ 45, 47 ], [ 31, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 48, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 62, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 31, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 12, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString input;\n\t\t\tfor (;;) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tif (input.equals(\"0\")) break;\n\t\t\t\tchar ch;\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString input;\n\t\t\tfor (;;) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tif (input.equals(\"0\")) break;\n\t\t\t\tchar ch;\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString input;\n\t\t\tfor (;;) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tif (input.equals(\"0\")) break;\n\t\t\t\tchar ch;\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString input;\n\t\t\tfor (;;) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tif (input.equals(\"0\")) break;\n\t\t\t\tchar ch;\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString input;\n\t\t\tfor (;;) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tif (input.equals(\"0\")) break;\n\t\t\t\tchar ch;\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString input;\n\t\t\tfor (;;) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tif (input.equals(\"0\")) break;\n\t\t\t\tchar ch;\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String input;", "input", "for (;;) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tif (input.equals(\"0\")) break;\n\t\t\t\tchar ch;\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}", ";", "{\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tif (input.equals(\"0\")) break;\n\t\t\t\tchar ch;\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}", "{\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tif (input.equals(\"0\")) break;\n\t\t\t\tchar ch;\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}", "input = reader.readLine()", "input", "reader.readLine()", "reader.readLine", "reader", "if (input.equals(\"0\")) break;", "input.equals(\"0\")", "input.equals", "input", "\"0\"", "break;", "char ch;", "ch", "int sum = 0;", "sum", "0", "for (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < input.length()", "i", "input.length()", "input.length", "input", "i++", "i++", "i", "{\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}", "{\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}", "ch = input.charAt(i)", "ch", "input.charAt(i)", "input.charAt", "input", "i", "sum += Character.getNumericValue(ch)", "sum", "Character.getNumericValue(ch)", "Character.getNumericValue", "Character", "ch", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString input;\n\t\t\tfor (;;) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tif (input.equals(\"0\")) break;\n\t\t\t\tchar ch;\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString input;\n\t\t\tfor (;;) {\n\t\t\t\tinput = reader.readLine();\n\t\t\t\tif (input.equals(\"0\")) break;\n\t\t\t\tchar ch;\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t\t\tch = input.charAt(i);\n\t\t\t\t\tsum += Character.getNumericValue(ch);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String input; for (;;) { input = reader.readLine(); if (input.equals("0")) break; char ch; int sum = 0; for (int i = 0; i < input.length(); i++) { ch = input.charAt(i); sum += Character.getNumericValue(ch); } System.out.println(sum); } } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 69, 5 ], [ 69, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 35, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 6, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString number = scn.nextLine();\n\t\t\tif (number.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] changedData = number.toCharArray();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < changedData.length; i++) {\n\t\t\t\tsum = sum + Character.getNumericValue(changedData[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}\n ", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString number = scn.nextLine();\n\t\t\tif (number.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] changedData = number.toCharArray();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < changedData.length; i++) {\n\t\t\t\tsum = sum + Character.getNumericValue(changedData[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString number = scn.nextLine();\n\t\t\tif (number.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] changedData = number.toCharArray();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < changedData.length; i++) {\n\t\t\t\tsum = sum + Character.getNumericValue(changedData[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString number = scn.nextLine();\n\t\t\tif (number.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] changedData = number.toCharArray();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < changedData.length; i++) {\n\t\t\t\tsum = sum + Character.getNumericValue(changedData[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "while (true) {\n\t\t\tString number = scn.nextLine();\n\t\t\tif (number.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] changedData = number.toCharArray();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < changedData.length; i++) {\n\t\t\t\tsum = sum + Character.getNumericValue(changedData[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tString number = scn.nextLine();\n\t\t\tif (number.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] changedData = number.toCharArray();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < changedData.length; i++) {\n\t\t\t\tsum = sum + Character.getNumericValue(changedData[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "String number = scn.nextLine();", "number", "scn.nextLine()", "scn.nextLine", "scn", "if (number.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}", "number.equals(\"0\")", "number.equals", "number", "\"0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "char[] changedData = number.toCharArray();", "changedData", "number.toCharArray()", "number.toCharArray", "number", "int sum = 0;", "sum", "0", "for (int i = 0; i < changedData.length; i++) {\n\t\t\t\tsum = sum + Character.getNumericValue(changedData[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < changedData.length", "i", "changedData.length", "changedData", "changedData.length", "i++", "i++", "i", "{\n\t\t\t\tsum = sum + Character.getNumericValue(changedData[i]);\n\t\t\t}", "{\n\t\t\t\tsum = sum + Character.getNumericValue(changedData[i]);\n\t\t\t}", "sum = sum + Character.getNumericValue(changedData[i])", "sum", "sum + Character.getNumericValue(changedData[i])", "sum", "Character.getNumericValue(changedData[i])", "Character.getNumericValue", "Character", "changedData[i]", "changedData", "i", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString number = scn.nextLine();\n\t\t\tif (number.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] changedData = number.toCharArray();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < changedData.length; i++) {\n\t\t\t\tsum = sum + Character.getNumericValue(changedData[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString number = scn.nextLine();\n\t\t\tif (number.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] changedData = number.toCharArray();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < changedData.length; i++) {\n\t\t\t\tsum = sum + Character.getNumericValue(changedData[i]);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); while (true) { String number = scn.nextLine(); if (number.equals("0")) { break; } char[] changedData = number.toCharArray(); int sum = 0; for (int i = 0; i < changedData.length; i++) { sum = sum + Character.getNumericValue(changedData[i]); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 3, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 72, 5 ], [ 72, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 23, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 34, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 48, 60 ], [ 60, 61 ], [ 60, 62 ], [ 30, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 6, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a=\"0\";\n\t\twhile(true){\n\t\t\tString num=sc.next();\n\t\t\tif(num.equals(a)){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int i=0;i<num.length();i++){\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a=\"0\";\n\t\twhile(true){\n\t\t\tString num=sc.next();\n\t\t\tif(num.equals(a)){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int i=0;i<num.length();i++){\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a=\"0\";\n\t\twhile(true){\n\t\t\tString num=sc.next();\n\t\t\tif(num.equals(a)){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int i=0;i<num.length();i++){\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a=\"0\";\n\t\twhile(true){\n\t\t\tString num=sc.next();\n\t\t\tif(num.equals(a)){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int i=0;i<num.length();i++){\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String a=\"0\";", "a", "\"0\"", "while(true){\n\t\t\tString num=sc.next();\n\t\t\tif(num.equals(a)){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int i=0;i<num.length();i++){\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString num=sc.next();\n\t\t\tif(num.equals(a)){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int i=0;i<num.length();i++){\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}", "String num=sc.next();", "num", "sc.next()", "sc.next", "sc", "if(num.equals(a)){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int i=0;i<num.length();i++){\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}", "num.equals(a)", "num.equals", "num", "a", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int i=0;i<num.length();i++){\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}", "int sum=0;", "sum", "0", "for(int i=0;i<num.length();i++){\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<num.length()", "i", "num.length()", "num.length", "num", "i++", "i++", "i", "{\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}", "{\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}", "int k=num.charAt(i)-a.charAt(0);", "k", "num.charAt(i)-a.charAt(0)", "num.charAt(i)", "num.charAt", "num", "i", "a.charAt(0)", "a.charAt", "a", "0", "sum+=k", "sum", "k", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a=\"0\";\n\t\twhile(true){\n\t\t\tString num=sc.next();\n\t\t\tif(num.equals(a)){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int i=0;i<num.length();i++){\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a=\"0\";\n\t\twhile(true){\n\t\t\tString num=sc.next();\n\t\t\tif(num.equals(a)){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int i=0;i<num.length();i++){\n\t\t\t\t\tint k=num.charAt(i)-a.charAt(0);\n\t\t\t\t\tsum+=k;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String a="0"; while(true){ String num=sc.next(); if(num.equals(a)){ break; }else{ int sum=0; for(int i=0;i<num.length();i++){ int k=num.charAt(i)-a.charAt(0); sum+=k; } System.out.println(sum); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 17, 3, 30, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 77, 8 ], [ 77, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 29, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 27, 40 ], [ 27, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 41, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 9, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.Scanner;\nimport java.lang.*;\npublic class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint sum;\n\t\tString s;\n\t\twhile (true)\n\t\t{\n\t\t\ts = input.nextLine();\n\t\t\tif(s.length() == 1 && s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.lang.*;", "lang.*", "java", "public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint sum;\n\t\tString s;\n\t\twhile (true)\n\t\t{\n\t\t\ts = input.nextLine();\n\t\t\tif(s.length() == 1 && s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint sum;\n\t\tString s;\n\t\twhile (true)\n\t\t{\n\t\t\ts = input.nextLine();\n\t\t\tif(s.length() == 1 && s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner input = new Scanner(System.in);\n\t\tint sum;\n\t\tString s;\n\t\twhile (true)\n\t\t{\n\t\t\ts = input.nextLine();\n\t\t\tif(s.length() == 1 && s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "int sum;", "sum", "String s;", "s", "while (true)\n\t\t{\n\t\t\ts = input.nextLine();\n\t\t\tif(s.length() == 1 && s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}", "true", "{\n\t\t\ts = input.nextLine();\n\t\t\tif(s.length() == 1 && s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}", "s = input.nextLine()", "s", "input.nextLine()", "input.nextLine", "input", "if(s.length() == 1 && s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}", "s.length() == 1 && s.charAt(0) == '0'", "s.length() == 1", "s.length()", "s.length", "s", "1", "s.charAt(0) == '0'", "s.charAt(0)", "s.charAt", "s", "0", "'0'", "break;", "{\n\t\t\t\tsum = 0;\n\t\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}", "sum = 0", "sum", "0", "for(int i = 0; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}", "{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}", "sum += (int)(s.charAt(i)-'0')", "sum", "(int)(s.charAt(i)-'0')", "s.charAt(i)", "s.charAt", "s", "i", "'0'", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String args[]", "args", "public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint sum;\n\t\tString s;\n\t\twhile (true)\n\t\t{\n\t\t\ts = input.nextLine();\n\t\t\tif(s.length() == 1 && s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint sum;\n\t\tString s;\n\t\twhile (true)\n\t\t{\n\t\t\ts = input.nextLine();\n\t\t\tif(s.length() == 1 && s.charAt(0) == '0')\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum = 0;\n\t\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t\t{\n\t\t\t\t\tsum += (int)(s.charAt(i)-'0');\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sum);\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; import java.lang.*; public class Main { public static void main(String args[]) { Scanner input = new Scanner(System.in); int sum; String s; while (true) { s = input.nextLine(); if(s.length() == 1 && s.charAt(0) == '0') break; else { sum = 0; for(int i = 0; i < s.length(); i++) { sum += (int)(s.charAt(i)-'0'); } System.out.println(sum); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 0, 13, 17, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 0, 13, 17, 30, 30, 14, 4, 18, 4, 18, 13, 4, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 4, 18, 13, 4, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 4, 18, 13, 4, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 4, 18, 13, 4, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 4, 18, 13, 4, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 4, 18, 13, 4, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 4, 18, 13, 4, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 4, 18, 13, 4, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 4, 18, 13, 4, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 4, 18, 13, 4, 18, 13, 13, 17, 30, 40, 13, 0, 13, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 17, 13, 2, 17, 13, 2, 17, 13, 2, 17, 13, 2, 17, 13, 2, 17, 13, 2, 17, 13, 2, 17, 13, 2, 17, 13, 2, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 279, 11 ], [ 279, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 28, 30 ], [ 24, 31 ], [ 31, 32 ], [ 31, 33 ], [ 24, 34 ], [ 34, 35 ], [ 34, 36 ], [ 24, 37 ], [ 37, 38 ], [ 37, 39 ], [ 24, 40 ], [ 40, 41 ], [ 40, 42 ], [ 24, 43 ], [ 43, 44 ], [ 43, 45 ], [ 24, 46 ], [ 46, 47 ], [ 46, 48 ], [ 24, 49 ], [ 49, 50 ], [ 49, 51 ], [ 24, 52 ], [ 52, 53 ], [ 52, 54 ], [ 24, 55 ], [ 55, 56 ], [ 55, 57 ], [ 24, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 24, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 63, 68 ], [ 68, 69 ], [ 24, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 24, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 75, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 90, 99 ], [ 89, 100 ], [ 100, 101 ], [ 101, 102 ], [ 89, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 104, 113 ], [ 103, 114 ], [ 114, 115 ], [ 115, 116 ], [ 103, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 118, 127 ], [ 117, 128 ], [ 128, 129 ], [ 129, 130 ], [ 117, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 132, 141 ], [ 131, 142 ], [ 142, 143 ], [ 143, 144 ], [ 131, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 146, 155 ], [ 145, 156 ], [ 156, 157 ], [ 157, 158 ], [ 145, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 160, 169 ], [ 159, 170 ], [ 170, 171 ], [ 171, 172 ], [ 159, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 176, 179 ], [ 179, 180 ], [ 180, 181 ], [ 179, 182 ], [ 174, 183 ], [ 173, 184 ], [ 184, 185 ], [ 185, 186 ], [ 173, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 190, 193 ], [ 193, 194 ], [ 194, 195 ], [ 193, 196 ], [ 188, 197 ], [ 187, 198 ], [ 198, 199 ], [ 199, 200 ], [ 187, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 204, 207 ], [ 207, 208 ], [ 208, 209 ], [ 207, 210 ], [ 202, 211 ], [ 201, 212 ], [ 212, 213 ], [ 213, 214 ], [ 201, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 218, 221 ], [ 221, 222 ], [ 222, 223 ], [ 221, 224 ], [ 216, 225 ], [ 215, 226 ], [ 226, 227 ], [ 227, 228 ], [ 88, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 264, 233 ], [ 261, 234 ], [ 258, 235 ], [ 255, 236 ], [ 252, 237 ], [ 249, 238 ], [ 246, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 239, 243 ], [ 243, 244 ], [ 243, 245 ], [ 246, 246 ], [ 246, 247 ], [ 246, 248 ], [ 249, 249 ], [ 249, 250 ], [ 249, 251 ], [ 252, 252 ], [ 252, 253 ], [ 252, 254 ], [ 255, 255 ], [ 255, 256 ], [ 255, 257 ], [ 258, 258 ], [ 258, 259 ], [ 258, 260 ], [ 261, 261 ], [ 261, 262 ], [ 261, 263 ], [ 264, 264 ], [ 264, 265 ], [ 264, 266 ], [ 231, 267 ], [ 267, 268 ], [ 267, 269 ], [ 24, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 270, 275 ], [ 12, 276 ], [ 276, 277 ], [ 0, 278 ], [ 278, 279 ], [ 278, 280 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tshort ze = 0, on = 0, tw = 0, th = 0, fo = 0, fi = 0, si = 0, se = 0, ei = 0, ni = 0;\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tif (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}\n\t\t\t\tsum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tshort ze = 0, on = 0, tw = 0, th = 0, fo = 0, fi = 0, si = 0, se = 0, ei = 0, ni = 0;\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tif (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}\n\t\t\t\tsum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tshort ze = 0, on = 0, tw = 0, th = 0, fo = 0, fi = 0, si = 0, se = 0, ei = 0, ni = 0;\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tif (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}\n\t\t\t\tsum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tshort ze = 0, on = 0, tw = 0, th = 0, fo = 0, fi = 0, si = 0, se = 0, ei = 0, ni = 0;\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tif (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}\n\t\t\t\tsum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "short size", "size", "sum;", "sum", "while (true) {\n\t\t\tshort ze = 0, on = 0, tw = 0, th = 0, fo = 0, fi = 0, si = 0, se = 0, ei = 0, ni = 0;\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tif (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}\n\t\t\t\tsum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tshort ze = 0, on = 0, tw = 0, th = 0, fo = 0, fi = 0, si = 0, se = 0, ei = 0, ni = 0;\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tif (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}\n\t\t\t\tsum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "short ze = 0", "ze", "0", "on = 0", "on", "0", "tw = 0", "tw", "0", "th = 0", "th", "0", "fo = 0", "fo", "0", "fi = 0", "fi", "0", "si = 0", "si", "0", "se = 0", "se", "0", "ei = 0", "ei", "0", "ni = 0;", "ni", "0", "sum = 0", "sum", "0", "String input = in.readLine();", "input", "in.readLine()", "in.readLine", "in", "if (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}", "input.equals(\"0\")", "input.equals", "input", "\"0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "size = (short) input.length()", "size", "(short) input.length()", "input.length", "input", "for (int i = 0; i < size; i += 1) {\n\t\t\t\tif (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}\n\t\t\t\tsum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < size", "i", "size", "i += 1", "i += 1", "i", "1", "{\n\t\t\t\tif (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}\n\t\t\t\tsum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni);\n\t\t\t}", "{\n\t\t\t\tif (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}\n\t\t\t\tsum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni);\n\t\t\t}", "if (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}", "Character.toString(input.charAt(i)).equals(\"0\")", "Character.toString(input.charAt(i)).equals", "Character.toString(input.charAt(i))", "Character.toString", "Character", "input.charAt(i)", "input.charAt", "input", "i", "\"0\"", "{\n\t\t\t\t\tze++;\n\t\t\t\t}", "ze++", "ze", "if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}", "Character.toString(input.charAt(i)).equals(\"1\")", "Character.toString(input.charAt(i)).equals", "Character.toString(input.charAt(i))", "Character.toString", "Character", "input.charAt(i)", "input.charAt", "input", "i", "\"1\"", "{\n\t\t\t\t\ton++;\n\t\t\t\t}", "on++", "on", "if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}", "Character.toString(input.charAt(i)).equals(\"2\")", "Character.toString(input.charAt(i)).equals", "Character.toString(input.charAt(i))", "Character.toString", "Character", "input.charAt(i)", "input.charAt", "input", "i", "\"2\"", "{\n\t\t\t\t\ttw++;\n\t\t\t\t}", "tw++", "tw", "if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}", "Character.toString(input.charAt(i)).equals(\"3\")", "Character.toString(input.charAt(i)).equals", "Character.toString(input.charAt(i))", "Character.toString", "Character", "input.charAt(i)", "input.charAt", "input", "i", "\"3\"", "{\n\t\t\t\t\tth++;\n\t\t\t\t}", "th++", "th", "if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}", "Character.toString(input.charAt(i)).equals(\"4\")", "Character.toString(input.charAt(i)).equals", "Character.toString(input.charAt(i))", "Character.toString", "Character", "input.charAt(i)", "input.charAt", "input", "i", "\"4\"", "{\n\t\t\t\t\tfo++;\n\t\t\t\t}", "fo++", "fo", "if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}", "Character.toString(input.charAt(i)).equals(\"5\")", "Character.toString(input.charAt(i)).equals", "Character.toString(input.charAt(i))", "Character.toString", "Character", "input.charAt(i)", "input.charAt", "input", "i", "\"5\"", "{\n\t\t\t\t\tfi++;\n\t\t\t\t}", "fi++", "fi", "if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}", "Character.toString(input.charAt(i)).equals(\"6\")", "Character.toString(input.charAt(i)).equals", "Character.toString(input.charAt(i))", "Character.toString", "Character", "input.charAt(i)", "input.charAt", "input", "i", "\"6\"", "{\n\t\t\t\t\tsi++;\n\t\t\t\t}", "si++", "si", "if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}", "Character.toString(input.charAt(i)).equals(\"7\")", "Character.toString(input.charAt(i)).equals", "Character.toString(input.charAt(i))", "Character.toString", "Character", "input.charAt(i)", "input.charAt", "input", "i", "\"7\"", "{\n\t\t\t\t\tse++;\n\t\t\t\t}", "se++", "se", "if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}", "Character.toString(input.charAt(i)).equals(\"8\")", "Character.toString(input.charAt(i)).equals", "Character.toString(input.charAt(i))", "Character.toString", "Character", "input.charAt(i)", "input.charAt", "input", "i", "\"8\"", "{\n\t\t\t\t\tei++;\n\t\t\t\t}", "ei++", "ei", "if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}", "Character.toString(input.charAt(i)).equals(\"9\")", "Character.toString(input.charAt(i)).equals", "Character.toString(input.charAt(i))", "Character.toString", "Character", "input.charAt(i)", "input.charAt", "input", "i", "\"9\"", "{\n\t\t\t\t\tni++;\n\t\t\t\t}", "ni++", "ni", "sum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni)", "sum", "(short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni)", "8 * ei", "7 * se", "6 * si", "5\n\t\t\t\t\t\t* fi", "4 * fo", "3 * th", "2 * tw", "0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni", "0 * ze", "0", "ze", "1 * on", "1", "on", "2 * tw", "2", "tw", "3 * th", "3", "th", "4 * fo", "4", "fo", "5\n\t\t\t\t\t\t* fi", "5", "fi", "6 * si", "6", "si", "7 * se", "7", "se", "8 * ei", "8", "ei", "9 * ni", "9", "ni", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tshort ze = 0, on = 0, tw = 0, th = 0, fo = 0, fi = 0, si = 0, se = 0, ei = 0, ni = 0;\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tif (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}\n\t\t\t\tsum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort size, sum;\n\t\twhile (true) {\n\t\t\tshort ze = 0, on = 0, tw = 0, th = 0, fo = 0, fi = 0, si = 0, se = 0, ei = 0, ni = 0;\n\t\t\tsum = 0;\n\t\t\tString input = in.readLine();\n\t\t\tif (input.equals(\"0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsize = (short) input.length();\n\t\t\tfor (int i = 0; i < size; i += 1) {\n\t\t\t\tif (Character.toString(input.charAt(i)).equals(\"0\")) {\n\t\t\t\t\tze++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"1\")) {\n\t\t\t\t\ton++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"2\")) {\n\t\t\t\t\ttw++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"3\")) {\n\t\t\t\t\tth++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"4\")) {\n\t\t\t\t\tfo++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"5\")) {\n\t\t\t\t\tfi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"6\")) {\n\t\t\t\t\tsi++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"7\")) {\n\t\t\t\t\tse++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"8\")) {\n\t\t\t\t\tei++;\n\t\t\t\t} else if (Character.toString(input.charAt(i)).equals(\"9\")) {\n\t\t\t\t\tni++;\n\t\t\t\t}\n\t\t\t\tsum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5\n\t\t\t\t\t\t* fi + 6 * si + 7 * se + 8 * ei + 9 * ni);\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); short size, sum; while (true) { short ze = 0, on = 0, tw = 0, th = 0, fo = 0, fi = 0, si = 0, se = 0, ei = 0, ni = 0; sum = 0; String input = in.readLine(); if (input.equals("0")) { break; } size = (short) input.length(); for (int i = 0; i < size; i += 1) { if (Character.toString(input.charAt(i)).equals("0")) { ze++; } else if (Character.toString(input.charAt(i)).equals("1")) { on++; } else if (Character.toString(input.charAt(i)).equals("2")) { tw++; } else if (Character.toString(input.charAt(i)).equals("3")) { th++; } else if (Character.toString(input.charAt(i)).equals("4")) { fo++; } else if (Character.toString(input.charAt(i)).equals("5")) { fi++; } else if (Character.toString(input.charAt(i)).equals("6")) { si++; } else if (Character.toString(input.charAt(i)).equals("7")) { se++; } else if (Character.toString(input.charAt(i)).equals("8")) { ei++; } else if (Character.toString(input.charAt(i)).equals("9")) { ni++; } sum = (short) (0 * ze + 1 * on + 2 * tw + 3 * th + 4 * fo + 5 * fi + 6 * si + 7 * se + 8 * ei + 9 * ni); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 13, 3, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 75, 5 ], [ 75, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 17, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 17, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 32, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 17, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 6, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String test = \"0\";\n while(true) {\n String str = sc.nextLine();\n int sum =0;\n if(str.equals(test))break;\n for(int i=0;i<str.length();i++){\n \tsum+=Integer.parseInt(String.valueOf(str.charAt(i)));\n }\n if(sum!=0)System.out.println(sum);\n }\n sc.close();\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String test = \"0\";\n while(true) {\n String str = sc.nextLine();\n int sum =0;\n if(str.equals(test))break;\n for(int i=0;i<str.length();i++){\n \tsum+=Integer.parseInt(String.valueOf(str.charAt(i)));\n }\n if(sum!=0)System.out.println(sum);\n }\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String test = \"0\";\n while(true) {\n String str = sc.nextLine();\n int sum =0;\n if(str.equals(test))break;\n for(int i=0;i<str.length();i++){\n \tsum+=Integer.parseInt(String.valueOf(str.charAt(i)));\n }\n if(sum!=0)System.out.println(sum);\n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String test = \"0\";\n while(true) {\n String str = sc.nextLine();\n int sum =0;\n if(str.equals(test))break;\n for(int i=0;i<str.length();i++){\n \tsum+=Integer.parseInt(String.valueOf(str.charAt(i)));\n }\n if(sum!=0)System.out.println(sum);\n }\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String test = \"0\";", "test", "\"0\"", "while(true) {\n String str = sc.nextLine();\n int sum =0;\n if(str.equals(test))break;\n for(int i=0;i<str.length();i++){\n \tsum+=Integer.parseInt(String.valueOf(str.charAt(i)));\n }\n if(sum!=0)System.out.println(sum);\n }", "true", "{\n String str = sc.nextLine();\n int sum =0;\n if(str.equals(test))break;\n for(int i=0;i<str.length();i++){\n \tsum+=Integer.parseInt(String.valueOf(str.charAt(i)));\n }\n if(sum!=0)System.out.println(sum);\n }", "String str = sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "int sum =0;", "sum", "0", "if(str.equals(test))break;", "str.equals(test)", "str.equals", "str", "test", "break;", "for(int i=0;i<str.length();i++){\n \tsum+=Integer.parseInt(String.valueOf(str.charAt(i)));\n }", "int i=0;", "int i=0;", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n \tsum+=Integer.parseInt(String.valueOf(str.charAt(i)));\n }", "{\n \tsum+=Integer.parseInt(String.valueOf(str.charAt(i)));\n }", "sum+=Integer.parseInt(String.valueOf(str.charAt(i)))", "sum", "Integer.parseInt(String.valueOf(str.charAt(i)))", "Integer.parseInt", "Integer", "String.valueOf(str.charAt(i))", "String.valueOf", "String", "str.charAt(i)", "str.charAt", "str", "i", "if(sum!=0)System.out.println(sum);", "sum!=0", "sum", "0", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String test = \"0\";\n while(true) {\n String str = sc.nextLine();\n int sum =0;\n if(str.equals(test))break;\n for(int i=0;i<str.length();i++){\n \tsum+=Integer.parseInt(String.valueOf(str.charAt(i)));\n }\n if(sum!=0)System.out.println(sum);\n }\n sc.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String test = \"0\";\n while(true) {\n String str = sc.nextLine();\n int sum =0;\n if(str.equals(test))break;\n for(int i=0;i<str.length();i++){\n \tsum+=Integer.parseInt(String.valueOf(str.charAt(i)));\n }\n if(sum!=0)System.out.println(sum);\n }\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String test = "0"; while(true) { String str = sc.nextLine(); int sum =0; if(str.equals(test))break; for(int i=0;i<str.length();i++){ sum+=Integer.parseInt(String.valueOf(str.charAt(i))); } if(sum!=0)System.out.println(sum); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 75, 11 ], [ 75, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 20, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 36, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 50, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 50, 63 ], [ 63, 64 ], [ 63, 65 ], [ 20, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 12, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n// (1) true???????????\\?????????????????????\n\t// (1.1) ???????????????????´????????????°sum???????????????\n\t// (1.2) ??????????????????????????????\n\t// (1.3) ?????????0???????????????????????´????????\\?????????????????????\n\t\t// (1.3.1) ?????????????????????\n\t// (1.4) ??????????????????????????????????????°?????????1??????????????\\?????????????????????\n\t\t// (1.4.1) ????±???¨??????1?????????char??????????????????\n\t\t// (1.4.2) char?????????????????????????????°?????????????????????\n\t\t// (1.4.3) ????¨?????????°sum????????°???????¶??????????????????????\n\t// (1.5) sum?????¨?????????\n\npublic class Main {\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = br.readLine();\n\n\t\t\tif (num.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0;i < num.length();i++){\n\t\t\t\tchar number = num.charAt(i);\n\t\t\t\tint numberCal = Character.getNumericValue(number);\n\t\t\t\tsum += numberCal;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = br.readLine();\n\n\t\t\tif (num.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0;i < num.length();i++){\n\t\t\t\tchar number = num.charAt(i);\n\t\t\t\tint numberCal = Character.getNumericValue(number);\n\t\t\t\tsum += numberCal;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = br.readLine();\n\n\t\t\tif (num.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0;i < num.length();i++){\n\t\t\t\tchar number = num.charAt(i);\n\t\t\t\tint numberCal = Character.getNumericValue(number);\n\t\t\t\tsum += numberCal;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = br.readLine();\n\n\t\t\tif (num.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0;i < num.length();i++){\n\t\t\t\tchar number = num.charAt(i);\n\t\t\t\tint numberCal = Character.getNumericValue(number);\n\t\t\t\tsum += numberCal;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tint sum = 0;\n\t\t\tString num = br.readLine();\n\n\t\t\tif (num.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0;i < num.length();i++){\n\t\t\t\tchar number = num.charAt(i);\n\t\t\t\tint numberCal = Character.getNumericValue(number);\n\t\t\t\tsum += numberCal;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tint sum = 0;\n\t\t\tString num = br.readLine();\n\n\t\t\tif (num.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0;i < num.length();i++){\n\t\t\t\tchar number = num.charAt(i);\n\t\t\t\tint numberCal = Character.getNumericValue(number);\n\t\t\t\tsum += numberCal;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "int sum = 0;", "sum", "0", "String num = br.readLine();", "num", "br.readLine()", "br.readLine", "br", "if (num.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}", "num.equals(\"0\")", "num.equals", "num", "\"0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int i = 0;i < num.length();i++){\n\t\t\t\tchar number = num.charAt(i);\n\t\t\t\tint numberCal = Character.getNumericValue(number);\n\t\t\t\tsum += numberCal;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num.length()", "i", "num.length()", "num.length", "num", "i++", "i++", "i", "{\n\t\t\t\tchar number = num.charAt(i);\n\t\t\t\tint numberCal = Character.getNumericValue(number);\n\t\t\t\tsum += numberCal;\n\t\t\t}", "{\n\t\t\t\tchar number = num.charAt(i);\n\t\t\t\tint numberCal = Character.getNumericValue(number);\n\t\t\t\tsum += numberCal;\n\t\t\t}", "char number = num.charAt(i);", "number", "num.charAt(i)", "num.charAt", "num", "i", "int numberCal = Character.getNumericValue(number);", "numberCal", "Character.getNumericValue(number)", "Character.getNumericValue", "Character", "number", "sum += numberCal", "sum", "numberCal", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = br.readLine();\n\n\t\t\tif (num.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0;i < num.length();i++){\n\t\t\t\tchar number = num.charAt(i);\n\t\t\t\tint numberCal = Character.getNumericValue(number);\n\t\t\t\tsum += numberCal;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tint sum = 0;\n\t\t\tString num = br.readLine();\n\n\t\t\tif (num.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0;i < num.length();i++){\n\t\t\t\tchar number = num.charAt(i);\n\t\t\t\tint numberCal = Character.getNumericValue(number);\n\t\t\t\tsum += numberCal;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; // (1) true???????????\????????????????????? // (1.1) ???????????????????´????????????°sum??????????????? // (1.2) ?????????????????????????????? // (1.3) ?????????0???????????????????????´????????\????????????????????? // (1.3.1) ????????????????????? // (1.4) ??????????????????????????????????????°?????????1??????????????\????????????????????? // (1.4.1) ????±???¨??????1?????????char?????????????????? // (1.4.2) char?????????????????????????????°????????????????????? // (1.4.3) ????¨?????????°sum????????°???????¶?????????????????????? // (1.5) sum?????¨????????? public class Main { public static void main (String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ int sum = 0; String num = br.readLine(); if (num.equals("0")){ break; } for (int i = 0;i < num.length();i++){ char number = num.charAt(i); int numberCal = Character.getNumericValue(number); sum += numberCal; } System.out.println(sum); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 13, 14, 4, 18, 13, 17, 30, 3, 30, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 17, 4, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 30, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 119, 8 ], [ 119, 9 ], [ 9, 10 ], [ 9, 11 ], [ 119, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 25, 30 ], [ 30, 31 ], [ 25, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 14, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 37, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 54, 60 ], [ 51, 61 ], [ 61, 62 ], [ 61, 63 ], [ 51, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 64, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 51, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 51, 93 ], [ 93, 94 ], [ 93, 95 ], [ 14, 96 ], [ 96, 97 ], [ 12, 98 ], [ 98, 99 ], [ 119, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 119, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile (true) {\n\n\t\t\tString text = input();\n\n\t\t\tif (text.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\tlist.add(text);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\tString[] arrays = list.get(i).split(\"\");\n\n\t\t\tint sum = 0;\n\n\t\t\tfor (int j = 0; j < arrays.length; j++) {\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t\tsum = 0;\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile (true) {\n\n\t\t\tString text = input();\n\n\t\t\tif (text.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\tlist.add(text);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\tString[] arrays = list.get(i).split(\"\");\n\n\t\t\tint sum = 0;\n\n\t\t\tfor (int j = 0; j < arrays.length; j++) {\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t\tsum = 0;\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "Main", "public static Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "public static void main(String[] args) {\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile (true) {\n\n\t\t\tString text = input();\n\n\t\t\tif (text.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\tlist.add(text);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\tString[] arrays = list.get(i).split(\"\");\n\n\t\t\tint sum = 0;\n\n\t\t\tfor (int j = 0; j < arrays.length; j++) {\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t\tsum = 0;\n\n\t\t}\n\n\t\tclose();\n\n\t}", "main", "{\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile (true) {\n\n\t\t\tString text = input();\n\n\t\t\tif (text.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\tlist.add(text);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\tString[] arrays = list.get(i).split(\"\");\n\n\t\t\tint sum = 0;\n\n\t\t\tfor (int j = 0; j < arrays.length; j++) {\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t\tsum = 0;\n\n\t\t}\n\n\t\tclose();\n\n\t}", "ArrayList<String> list = new ArrayList<String>();", "list", "new ArrayList<String>()", "while (true) {\n\n\t\t\tString text = input();\n\n\t\t\tif (text.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\tlist.add(text);\n\n\t\t\t}\n\t\t}", "true", "{\n\n\t\t\tString text = input();\n\n\t\t\tif (text.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\tlist.add(text);\n\n\t\t\t}\n\t\t}", "String text = input();", "text", "input()", "input", "if (text.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\tlist.add(text);\n\n\t\t\t}", "text.equals(\"0\")", "text.equals", "text", "\"0\"", "{\n\n\t\t\t\tbreak;\n\n\t\t\t}", "break;", "{\n\n\t\t\t\tlist.add(text);\n\n\t\t\t}", "list.add(text)", "list.add", "list", "text", "for (int i = 0; i < list.size(); i++) {\n\n\t\t\tString[] arrays = list.get(i).split(\"\");\n\n\t\t\tint sum = 0;\n\n\t\t\tfor (int j = 0; j < arrays.length; j++) {\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t\tsum = 0;\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < list.size()", "i", "list.size()", "list.size", "list", "i++", "i++", "i", "{\n\n\t\t\tString[] arrays = list.get(i).split(\"\");\n\n\t\t\tint sum = 0;\n\n\t\t\tfor (int j = 0; j < arrays.length; j++) {\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t\tsum = 0;\n\n\t\t}", "{\n\n\t\t\tString[] arrays = list.get(i).split(\"\");\n\n\t\t\tint sum = 0;\n\n\t\t\tfor (int j = 0; j < arrays.length; j++) {\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t\tsum = 0;\n\n\t\t}", "String[] arrays = list.get(i).split(\"\");", "arrays", "list.get(i).split(\"\")", "list.get(i).split", "list.get(i)", "list.get", "list", "i", "\"\"", "int sum = 0;", "sum", "0", "for (int j = 0; j < arrays.length; j++) {\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < arrays.length", "j", "arrays.length", "arrays", "arrays.length", "j++", "j++", "j", "{\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}", "{\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}", "sum += Integer.parseInt(arrays[j])", "sum", "Integer.parseInt(arrays[j])", "Integer.parseInt", "Integer", "arrays[j]", "arrays", "j", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "sum = 0", "sum", "0", "close()", "close", "String[] args", "args", "public static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}", "input", "{\n\n\t\treturn scanner.nextLine();\n\n\t}", "return scanner.nextLine();", "scanner.nextLine()", "scanner.nextLine", "scanner", "public static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}", "close", "{\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}", "if (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}", "scanner != null", "scanner", "null", "{\n\n\t\t\tscanner.close();\n\n\t\t}", "scanner.close()", "scanner.close", "scanner", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile (true) {\n\n\t\t\tString text = input();\n\n\t\t\tif (text.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\tlist.add(text);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\tString[] arrays = list.get(i).split(\"\");\n\n\t\t\tint sum = 0;\n\n\t\t\tfor (int j = 0; j < arrays.length; j++) {\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t\tsum = 0;\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile (true) {\n\n\t\t\tString text = input();\n\n\t\t\tif (text.equals(\"0\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\tlist.add(text);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\tString[] arrays = list.get(i).split(\"\");\n\n\t\t\tint sum = 0;\n\n\t\t\tfor (int j = 0; j < arrays.length; j++) {\n\n\t\t\t\tsum += Integer.parseInt(arrays[j]);\n\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t\tsum = 0;\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static Scanner scanner = new Scanner(System.in); public static void main(String[] args) { ArrayList<String> list = new ArrayList<String>(); while (true) { String text = input(); if (text.equals("0")) { break; } else { list.add(text); } } for (int i = 0; i < list.size(); i++) { String[] arrays = list.get(i).split(""); int sum = 0; for (int j = 0; j < arrays.length; j++) { sum += Integer.parseInt(arrays[j]); } System.out.println(sum); sum = 0; } close(); } public static String input() { return scanner.nextLine(); } public static void close() { if (scanner != null) { scanner.close(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 18, 13, 17, 17, 3, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 0, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 77, 14 ], [ 77, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 26, 44 ], [ 44, 45 ], [ 44, 46 ], [ 26, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 47, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 26, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 15, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.lang.*;\nimport java.math.*;\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString x=stdIn.nextLine();\n\t\t\tchar c[]=x.toCharArray();\n\t\t\tif(c[0]=='0')\n\t\t\t\tbreak;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<x.length();i++)\n\t\t\t\tans+=c[i]-'0';\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.lang.*;", "lang.*", "java", "import java.math.*;", "math.*", "java", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString x=stdIn.nextLine();\n\t\t\tchar c[]=x.toCharArray();\n\t\t\tif(c[0]=='0')\n\t\t\t\tbreak;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<x.length();i++)\n\t\t\t\tans+=c[i]-'0';\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString x=stdIn.nextLine();\n\t\t\tchar c[]=x.toCharArray();\n\t\t\tif(c[0]=='0')\n\t\t\t\tbreak;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<x.length();i++)\n\t\t\t\tans+=c[i]-'0';\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "main", "{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString x=stdIn.nextLine();\n\t\t\tchar c[]=x.toCharArray();\n\t\t\tif(c[0]=='0')\n\t\t\t\tbreak;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<x.length();i++)\n\t\t\t\tans+=c[i]-'0';\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "Scanner stdIn=new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tString x=stdIn.nextLine();\n\t\t\tchar c[]=x.toCharArray();\n\t\t\tif(c[0]=='0')\n\t\t\t\tbreak;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<x.length();i++)\n\t\t\t\tans+=c[i]-'0';\n\t\t\tSystem.out.println(ans);\n\t\t}", "true", "{\n\t\t\tString x=stdIn.nextLine();\n\t\t\tchar c[]=x.toCharArray();\n\t\t\tif(c[0]=='0')\n\t\t\t\tbreak;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<x.length();i++)\n\t\t\t\tans+=c[i]-'0';\n\t\t\tSystem.out.println(ans);\n\t\t}", "String x=stdIn.nextLine();", "x", "stdIn.nextLine()", "stdIn.nextLine", "stdIn", "char c[]=x.toCharArray();", "c", "x.toCharArray()", "x.toCharArray", "x", "if(c[0]=='0')\n\t\t\t\tbreak;", "c[0]=='0'", "c[0]", "c", "0", "'0'", "break;", "int ans=0;", "ans", "0", "for(int i=0;i<x.length();i++)\n\t\t\t\tans+=c[i]-'0';", "int i=0;", "int i=0;", "i", "0", "i<x.length()", "i", "x.length()", "x.length", "x", "i++", "i++", "i", "ans+=c[i]-'0';", "ans+=c[i]-'0'", "ans", "c[i]-'0'", "c[i]", "c", "i", "'0'", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString x=stdIn.nextLine();\n\t\t\tchar c[]=x.toCharArray();\n\t\t\tif(c[0]=='0')\n\t\t\t\tbreak;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<x.length();i++)\n\t\t\t\tans+=c[i]-'0';\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString x=stdIn.nextLine();\n\t\t\tchar c[]=x.toCharArray();\n\t\t\tif(c[0]=='0')\n\t\t\t\tbreak;\n\t\t\tint ans=0;\n\t\t\tfor(int i=0;i<x.length();i++)\n\t\t\t\tans+=c[i]-'0';\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; import java.lang.*; import java.math.*; public class Main{ public static void main(String[] args) throws IOException{ Scanner stdIn=new Scanner(System.in); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); while(true){ String x=stdIn.nextLine(); char c[]=x.toCharArray(); if(c[0]=='0') break; int ans=0; for(int i=0;i<x.length();i++) ans+=c[i]-'0'; System.out.println(ans); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 0, 13, 17, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 14, 2, 13, 17, 30, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 81, 5 ], [ 81, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 17, 19 ], [ 12, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 12, 24 ], [ 25, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 25, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 25, 42 ], [ 42, 43 ], [ 42, 44 ], [ 25, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 25, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 25, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 6, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\"\");\n\n int len = l.length;\n int ans = 0;\n for(int j = 0; j < len; j++) {\n ans += Integer.parseInt(l[j]);\n }\n\n if(ans == 0) {\n break;\n }\n\n System.out.println(ans);\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\"\");\n\n int len = l.length;\n int ans = 0;\n for(int j = 0; j < len; j++) {\n ans += Integer.parseInt(l[j]);\n }\n\n if(ans == 0) {\n break;\n }\n\n System.out.println(ans);\n }\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\"\");\n\n int len = l.length;\n int ans = 0;\n for(int j = 0; j < len; j++) {\n ans += Integer.parseInt(l[j]);\n }\n\n if(ans == 0) {\n break;\n }\n\n System.out.println(ans);\n }\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\"\");\n\n int len = l.length;\n int ans = 0;\n for(int j = 0; j < len; j++) {\n ans += Integer.parseInt(l[j]);\n }\n\n if(ans == 0) {\n break;\n }\n\n System.out.println(ans);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\"\");\n\n int len = l.length;\n int ans = 0;\n for(int j = 0; j < len; j++) {\n ans += Integer.parseInt(l[j]);\n }\n\n if(ans == 0) {\n break;\n }\n\n System.out.println(ans);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 1", "i", "1", "i = 0", "i = 0", "i", "0", "{\n String line = sc.nextLine();\n String[] l = line.split(\"\");\n\n int len = l.length;\n int ans = 0;\n for(int j = 0; j < len; j++) {\n ans += Integer.parseInt(l[j]);\n }\n\n if(ans == 0) {\n break;\n }\n\n System.out.println(ans);\n }", "{\n String line = sc.nextLine();\n String[] l = line.split(\"\");\n\n int len = l.length;\n int ans = 0;\n for(int j = 0; j < len; j++) {\n ans += Integer.parseInt(l[j]);\n }\n\n if(ans == 0) {\n break;\n }\n\n System.out.println(ans);\n }", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "String[] l = line.split(\"\");", "l", "line.split(\"\")", "line.split", "line", "\"\"", "int len = l.length;", "len", "l.length", "l", "l.length", "int ans = 0;", "ans", "0", "for(int j = 0; j < len; j++) {\n ans += Integer.parseInt(l[j]);\n }", "int j = 0;", "int j = 0;", "j", "0", "j < len", "j", "len", "j++", "j++", "j", "{\n ans += Integer.parseInt(l[j]);\n }", "{\n ans += Integer.parseInt(l[j]);\n }", "ans += Integer.parseInt(l[j])", "ans", "Integer.parseInt(l[j])", "Integer.parseInt", "Integer", "l[j]", "l", "j", "if(ans == 0) {\n break;\n }", "ans == 0", "ans", "0", "{\n break;\n }", "break;", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\"\");\n\n int len = l.length;\n int ans = 0;\n for(int j = 0; j < len; j++) {\n ans += Integer.parseInt(l[j]);\n }\n\n if(ans == 0) {\n break;\n }\n\n System.out.println(ans);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\"\");\n\n int len = l.length;\n int ans = 0;\n for(int j = 0; j < len; j++) {\n ans += Integer.parseInt(l[j]);\n }\n\n if(ans == 0) {\n break;\n }\n\n System.out.println(ans);\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for(int i = 0; i < 1; i = 0) { String line = sc.nextLine(); String[] l = line.split(""); int len = l.length; int ans = 0; for(int j = 0; j < len; j++) { ans += Integer.parseInt(l[j]); } if(ans == 0) { break; } System.out.println(ans); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 6, 63 ], [ 63, 64 ] ]
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString line = sc.nextLine();\n\t\t\tif(line.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<line.length();i++){\n\t\t\t\tsum+=Integer.parseInt(line.substring(i,i+1));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString line = sc.nextLine();\n\t\t\tif(line.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<line.length();i++){\n\t\t\t\tsum+=Integer.parseInt(line.substring(i,i+1));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString line = sc.nextLine();\n\t\t\tif(line.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<line.length();i++){\n\t\t\t\tsum+=Integer.parseInt(line.substring(i,i+1));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc= new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString line = sc.nextLine();\n\t\t\tif(line.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<line.length();i++){\n\t\t\t\tsum+=Integer.parseInt(line.substring(i,i+1));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "Scanner sc= new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\t\tString line = sc.nextLine();\n\t\t\tif(line.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<line.length();i++){\n\t\t\t\tsum+=Integer.parseInt(line.substring(i,i+1));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tString line = sc.nextLine();\n\t\t\tif(line.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint sum=0;\n\t\t\tfor(int i=0;i<line.length();i++){\n\t\t\t\tsum+=Integer.parseInt(line.substring(i,i+1));\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "if(line.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t}", "line.equals(\"0\")", "line.equals", "line", "\"0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int sum=0;", "sum", "0", "for(int i=0;i<line.length();i++){\n\t\t\t\tsum+=Integer.parseInt(line.substring(i,i+1));\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<line.length()", "i", "line.length()", "line.length", "line", "i++", "i++", "i", "{\n\t\t\t\tsum+=Integer.parseInt(line.substring(i,i+1));\n\t\t\t}", "{\n\t\t\t\tsum+=Integer.parseInt(line.substring(i,i+1));\n\t\t\t}", "sum+=Integer.parseInt(line.substring(i,i+1))", "sum", "Integer.parseInt(line.substring(i,i+1))", "Integer.parseInt", "Integer", "line.substring(i,i+1)", "line.substring", "line", "i", "i+1", "i", "1", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc= new Scanner(System.in); while(true){ String line = sc.nextLine(); if(line.equals("0")){ break; } int sum=0; for(int i=0;i<line.length();i++){ sum+=Integer.parseInt(line.substring(i,i+1)); } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 0, 13, 20, 17, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 14, 2, 2, 13, 17, 2, 4, 18, 13, 17, 30, 0, 13, 17, 3, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 3, 0, 18, 13, 13, 13, 40, 13, 40, 13, 0, 13, 17, 42, 2, 13, 13, 30, 4, 18, 18, 13, 13, 18, 13, 13, 40, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 36 ], [ 36, 37 ], [ 36, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 41, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 50, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 64, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 64, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 82, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 64, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 41, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 41, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 41, 108 ], [ 108, 109 ], [ 41, 110 ], [ 110, 111 ], [ 8, 112 ], [ 112, 113 ], [ 112, 114 ], [ 8, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 125, 127 ], [ 119, 128 ], [ 128, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\n\npublic class Main{ \n public static void main(String[] args){\n int i=0,j=0,count=0,d,sum=0,s=0;\n String a;\n char c;\n int b[];\n b = new int[100000];\n Scanner n = new Scanner(System.in);\n while(true){\n a = n.nextLine();\n sum = 0;\n for(i=0;i<a.length();i++){\n c = a.charAt(i);\n d = Character.getNumericValue(c);\n if(d==0 && (a.length())==1){\n s=1;\n break;\n }\n sum = sum + d;\n }\n if(s==1){\n break;\n }\n b[j] = sum; \n count++;\n j++;\n }\n i=0;\n while(count>i){\n System.out.println(b[i]);\n i++;\n }\n }\n }", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{ \n public static void main(String[] args){\n int i=0,j=0,count=0,d,sum=0,s=0;\n String a;\n char c;\n int b[];\n b = new int[100000];\n Scanner n = new Scanner(System.in);\n while(true){\n a = n.nextLine();\n sum = 0;\n for(i=0;i<a.length();i++){\n c = a.charAt(i);\n d = Character.getNumericValue(c);\n if(d==0 && (a.length())==1){\n s=1;\n break;\n }\n sum = sum + d;\n }\n if(s==1){\n break;\n }\n b[j] = sum; \n count++;\n j++;\n }\n i=0;\n while(count>i){\n System.out.println(b[i]);\n i++;\n }\n }\n }", "Main", "public static void main(String[] args){\n int i=0,j=0,count=0,d,sum=0,s=0;\n String a;\n char c;\n int b[];\n b = new int[100000];\n Scanner n = new Scanner(System.in);\n while(true){\n a = n.nextLine();\n sum = 0;\n for(i=0;i<a.length();i++){\n c = a.charAt(i);\n d = Character.getNumericValue(c);\n if(d==0 && (a.length())==1){\n s=1;\n break;\n }\n sum = sum + d;\n }\n if(s==1){\n break;\n }\n b[j] = sum; \n count++;\n j++;\n }\n i=0;\n while(count>i){\n System.out.println(b[i]);\n i++;\n }\n }", "main", "{\n int i=0,j=0,count=0,d,sum=0,s=0;\n String a;\n char c;\n int b[];\n b = new int[100000];\n Scanner n = new Scanner(System.in);\n while(true){\n a = n.nextLine();\n sum = 0;\n for(i=0;i<a.length();i++){\n c = a.charAt(i);\n d = Character.getNumericValue(c);\n if(d==0 && (a.length())==1){\n s=1;\n break;\n }\n sum = sum + d;\n }\n if(s==1){\n break;\n }\n b[j] = sum; \n count++;\n j++;\n }\n i=0;\n while(count>i){\n System.out.println(b[i]);\n i++;\n }\n }", "int i=0", "i", "0", "j=0", "j", "0", "count=0", "count", "0", "d", "d", "sum=0", "sum", "0", "s=0;", "s", "0", "String a;", "a", "char c;", "c", "int b[];", "b", "b = new int[100000]", "b", "new int[100000]", "100000", "Scanner n = new Scanner(System.in);", "n", "new Scanner(System.in)", "while(true){\n a = n.nextLine();\n sum = 0;\n for(i=0;i<a.length();i++){\n c = a.charAt(i);\n d = Character.getNumericValue(c);\n if(d==0 && (a.length())==1){\n s=1;\n break;\n }\n sum = sum + d;\n }\n if(s==1){\n break;\n }\n b[j] = sum; \n count++;\n j++;\n }", "true", "{\n a = n.nextLine();\n sum = 0;\n for(i=0;i<a.length();i++){\n c = a.charAt(i);\n d = Character.getNumericValue(c);\n if(d==0 && (a.length())==1){\n s=1;\n break;\n }\n sum = sum + d;\n }\n if(s==1){\n break;\n }\n b[j] = sum; \n count++;\n j++;\n }", "a = n.nextLine()", "a", "n.nextLine()", "n.nextLine", "n", "sum = 0", "sum", "0", "for(i=0;i<a.length();i++){\n c = a.charAt(i);\n d = Character.getNumericValue(c);\n if(d==0 && (a.length())==1){\n s=1;\n break;\n }\n sum = sum + d;\n }", "i=0;", "i=0", "i", "0", "i<a.length()", "i", "a.length()", "a.length", "a", "i++", "i++", "i", "{\n c = a.charAt(i);\n d = Character.getNumericValue(c);\n if(d==0 && (a.length())==1){\n s=1;\n break;\n }\n sum = sum + d;\n }", "{\n c = a.charAt(i);\n d = Character.getNumericValue(c);\n if(d==0 && (a.length())==1){\n s=1;\n break;\n }\n sum = sum + d;\n }", "c = a.charAt(i)", "c", "a.charAt(i)", "a.charAt", "a", "i", "d = Character.getNumericValue(c)", "d", "Character.getNumericValue(c)", "Character.getNumericValue", "Character", "c", "if(d==0 && (a.length())==1){\n s=1;\n break;\n }", "d==0 && (a.length())==1", "d==0", "d", "0", "(a.length())==1", "(a.length())", "a.length", "a", "1", "{\n s=1;\n break;\n }", "s=1", "s", "1", "break;", "sum = sum + d", "sum", "sum + d", "sum", "d", "if(s==1){\n break;\n }", "s==1", "s", "1", "{\n break;\n }", "break;", "b[j] = sum", "b[j]", "b", "j", "sum", "count++", "count", "j++", "j", "i=0", "i", "0", "while(count>i){\n System.out.println(b[i]);\n i++;\n }", "count>i", "count", "i", "{\n System.out.println(b[i]);\n i++;\n }", "System.out.println(b[i])", "System.out.println", "System.out", "System", "System.out", "b[i]", "b", "i", "i++", "i", "String[] args", "args", "public class Main{ \n public static void main(String[] args){\n int i=0,j=0,count=0,d,sum=0,s=0;\n String a;\n char c;\n int b[];\n b = new int[100000];\n Scanner n = new Scanner(System.in);\n while(true){\n a = n.nextLine();\n sum = 0;\n for(i=0;i<a.length();i++){\n c = a.charAt(i);\n d = Character.getNumericValue(c);\n if(d==0 && (a.length())==1){\n s=1;\n break;\n }\n sum = sum + d;\n }\n if(s==1){\n break;\n }\n b[j] = sum; \n count++;\n j++;\n }\n i=0;\n while(count>i){\n System.out.println(b[i]);\n i++;\n }\n }\n }", "public class Main{ \n public static void main(String[] args){\n int i=0,j=0,count=0,d,sum=0,s=0;\n String a;\n char c;\n int b[];\n b = new int[100000];\n Scanner n = new Scanner(System.in);\n while(true){\n a = n.nextLine();\n sum = 0;\n for(i=0;i<a.length();i++){\n c = a.charAt(i);\n d = Character.getNumericValue(c);\n if(d==0 && (a.length())==1){\n s=1;\n break;\n }\n sum = sum + d;\n }\n if(s==1){\n break;\n }\n b[j] = sum; \n count++;\n j++;\n }\n i=0;\n while(count>i){\n System.out.println(b[i]);\n i++;\n }\n }\n }", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ int i=0,j=0,count=0,d,sum=0,s=0; String a; char c; int b[]; b = new int[100000]; Scanner n = new Scanner(System.in); while(true){ a = n.nextLine(); sum = 0; for(i=0;i<a.length();i++){ c = a.charAt(i); d = Character.getNumericValue(c); if(d==0 && (a.length())==1){ s=1; break; } sum = sum + d; } if(s==1){ break; } b[j] = sum; count++; j++; } i=0; while(count>i){ System.out.println(b[i]); i++; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 13, 17, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 66, 5 ], [ 66, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 31, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 45, 54 ], [ 54, 55 ], [ 54, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString a = sc.next();\n\t\t\tif(a.equals(\"0\"))break;\n\t\t\tint b,sum=0;\n\t\t\tfor(int i=0;i<a.length();i++){\n\t\t\t\tb = a.charAt(i) - '0';\n\t\t\t\tsum += b;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString a = sc.next();\n\t\t\tif(a.equals(\"0\"))break;\n\t\t\tint b,sum=0;\n\t\t\tfor(int i=0;i<a.length();i++){\n\t\t\t\tb = a.charAt(i) - '0';\n\t\t\t\tsum += b;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString a = sc.next();\n\t\t\tif(a.equals(\"0\"))break;\n\t\t\tint b,sum=0;\n\t\t\tfor(int i=0;i<a.length();i++){\n\t\t\t\tb = a.charAt(i) - '0';\n\t\t\t\tsum += b;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString a = sc.next();\n\t\t\tif(a.equals(\"0\"))break;\n\t\t\tint b,sum=0;\n\t\t\tfor(int i=0;i<a.length();i++){\n\t\t\t\tb = a.charAt(i) - '0';\n\t\t\t\tsum += b;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\t\tString a = sc.next();\n\t\t\tif(a.equals(\"0\"))break;\n\t\t\tint b,sum=0;\n\t\t\tfor(int i=0;i<a.length();i++){\n\t\t\t\tb = a.charAt(i) - '0';\n\t\t\t\tsum += b;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "true", "{\n\t\t\tString a = sc.next();\n\t\t\tif(a.equals(\"0\"))break;\n\t\t\tint b,sum=0;\n\t\t\tfor(int i=0;i<a.length();i++){\n\t\t\t\tb = a.charAt(i) - '0';\n\t\t\t\tsum += b;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "if(a.equals(\"0\"))break;", "a.equals(\"0\")", "a.equals", "a", "\"0\"", "break;", "int b", "b", "sum=0;", "sum", "0", "for(int i=0;i<a.length();i++){\n\t\t\t\tb = a.charAt(i) - '0';\n\t\t\t\tsum += b;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<a.length()", "i", "a.length()", "a.length", "a", "i++", "i++", "i", "{\n\t\t\t\tb = a.charAt(i) - '0';\n\t\t\t\tsum += b;\n\t\t\t}", "{\n\t\t\t\tb = a.charAt(i) - '0';\n\t\t\t\tsum += b;\n\t\t\t}", "b = a.charAt(i) - '0'", "b", "a.charAt(i) - '0'", "a.charAt(i)", "a.charAt", "a", "i", "'0'", "sum += b", "sum", "b", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString a = sc.next();\n\t\t\tif(a.equals(\"0\"))break;\n\t\t\tint b,sum=0;\n\t\t\tfor(int i=0;i<a.length();i++){\n\t\t\t\tb = a.charAt(i) - '0';\n\t\t\t\tsum += b;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString a = sc.next();\n\t\t\tif(a.equals(\"0\"))break;\n\t\t\tint b,sum=0;\n\t\t\tfor(int i=0;i<a.length();i++){\n\t\t\t\tb = a.charAt(i) - '0';\n\t\t\t\tsum += b;\n\t\t\t}\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ String a = sc.next(); if(a.equals("0"))break; int b,sum=0; for(int i=0;i<a.length();i++){ b = a.charAt(i) - '0'; sum += b; } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 17, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 14, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 36, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 14, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 6, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "import java.util.Scanner; \n\npublic class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(true){\n String a = in.nextLine();\n if(a.equals(\"0\")){\n break;\n }\n int s = 0;\n String sary[] = a.split(\"\");\n for (int i = 0; i < a.length(); i++){\n s += Integer.parseInt(sary[i]);\n }\n System.out.println(s);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(true){\n String a = in.nextLine();\n if(a.equals(\"0\")){\n break;\n }\n int s = 0;\n String sary[] = a.split(\"\");\n for (int i = 0; i < a.length(); i++){\n s += Integer.parseInt(sary[i]);\n }\n System.out.println(s);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(true){\n String a = in.nextLine();\n if(a.equals(\"0\")){\n break;\n }\n int s = 0;\n String sary[] = a.split(\"\");\n for (int i = 0; i < a.length(); i++){\n s += Integer.parseInt(sary[i]);\n }\n System.out.println(s);\n }\n }", "main", "{\n Scanner in = new Scanner(System.in);\n while(true){\n String a = in.nextLine();\n if(a.equals(\"0\")){\n break;\n }\n int s = 0;\n String sary[] = a.split(\"\");\n for (int i = 0; i < a.length(); i++){\n s += Integer.parseInt(sary[i]);\n }\n System.out.println(s);\n }\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(true){\n String a = in.nextLine();\n if(a.equals(\"0\")){\n break;\n }\n int s = 0;\n String sary[] = a.split(\"\");\n for (int i = 0; i < a.length(); i++){\n s += Integer.parseInt(sary[i]);\n }\n System.out.println(s);\n }", "true", "{\n String a = in.nextLine();\n if(a.equals(\"0\")){\n break;\n }\n int s = 0;\n String sary[] = a.split(\"\");\n for (int i = 0; i < a.length(); i++){\n s += Integer.parseInt(sary[i]);\n }\n System.out.println(s);\n }", "String a = in.nextLine();", "a", "in.nextLine()", "in.nextLine", "in", "if(a.equals(\"0\")){\n break;\n }", "a.equals(\"0\")", "a.equals", "a", "\"0\"", "{\n break;\n }", "break;", "int s = 0;", "s", "0", "String sary[] = a.split(\"\");", "sary", "a.split(\"\")", "a.split", "a", "\"\"", "for (int i = 0; i < a.length(); i++){\n s += Integer.parseInt(sary[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < a.length()", "i", "a.length()", "a.length", "a", "i++", "i++", "i", "{\n s += Integer.parseInt(sary[i]);\n }", "{\n s += Integer.parseInt(sary[i]);\n }", "s += Integer.parseInt(sary[i])", "s", "Integer.parseInt(sary[i])", "Integer.parseInt", "Integer", "sary[i]", "sary", "i", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(true){\n String a = in.nextLine();\n if(a.equals(\"0\")){\n break;\n }\n int s = 0;\n String sary[] = a.split(\"\");\n for (int i = 0; i < a.length(); i++){\n s += Integer.parseInt(sary[i]);\n }\n System.out.println(s);\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(true){\n String a = in.nextLine();\n if(a.equals(\"0\")){\n break;\n }\n int s = 0;\n String sary[] = a.split(\"\");\n for (int i = 0; i < a.length(); i++){\n s += Integer.parseInt(sary[i]);\n }\n System.out.println(s);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); while(true){ String a = in.nextLine(); if(a.equals("0")){ break; } int s = 0; String sary[] = a.split(""); for (int i = 0; i < a.length(); i++){ s += Integer.parseInt(sary[i]); } System.out.println(s); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 17, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 14, 2, 18, 13, 17, 17, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 18, 13, 13, 4, 18, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 23, 31 ], [ 31, 32 ], [ 31, 33 ], [ 23, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 34, 40 ], [ 23, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 41, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 23, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 67, 73 ], [ 8, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 80, 81 ], [ 6, 82 ], [ 82, 83 ] ]
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args){\n\t\tfinal Scanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal String lb = System.getProperty(\"line.separator\");\n\t\twhile(true){\n\t\t\tchar[] num = sc.nextLine().toCharArray();\n\t\t\tint sum = 0;\n\t\t\tif(num[0] == '0') break;\n\t\t\tfor(int i = 0; i < num.length; i++){\n\t\t\t\tsum += Integer.parseInt(String.valueOf(num[i]));\n\t\t\t}\n\t\t\tsb.append(sum).append(lb);\t\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String[] args){\n\t\tfinal Scanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal String lb = System.getProperty(\"line.separator\");\n\t\twhile(true){\n\t\t\tchar[] num = sc.nextLine().toCharArray();\n\t\t\tint sum = 0;\n\t\t\tif(num[0] == '0') break;\n\t\t\tfor(int i = 0; i < num.length; i++){\n\t\t\t\tsum += Integer.parseInt(String.valueOf(num[i]));\n\t\t\t}\n\t\t\tsb.append(sum).append(lb);\t\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tfinal Scanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal String lb = System.getProperty(\"line.separator\");\n\t\twhile(true){\n\t\t\tchar[] num = sc.nextLine().toCharArray();\n\t\t\tint sum = 0;\n\t\t\tif(num[0] == '0') break;\n\t\t\tfor(int i = 0; i < num.length; i++){\n\t\t\t\tsum += Integer.parseInt(String.valueOf(num[i]));\n\t\t\t}\n\t\t\tsb.append(sum).append(lb);\t\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}", "main", "{\n\t\tfinal Scanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal String lb = System.getProperty(\"line.separator\");\n\t\twhile(true){\n\t\t\tchar[] num = sc.nextLine().toCharArray();\n\t\t\tint sum = 0;\n\t\t\tif(num[0] == '0') break;\n\t\t\tfor(int i = 0; i < num.length; i++){\n\t\t\t\tsum += Integer.parseInt(String.valueOf(num[i]));\n\t\t\t}\n\t\t\tsb.append(sum).append(lb);\t\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}", "final Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "final String lb = System.getProperty(\"line.separator\");", "lb", "System.getProperty(\"line.separator\")", "System.getProperty", "System", "\"line.separator\"", "while(true){\n\t\t\tchar[] num = sc.nextLine().toCharArray();\n\t\t\tint sum = 0;\n\t\t\tif(num[0] == '0') break;\n\t\t\tfor(int i = 0; i < num.length; i++){\n\t\t\t\tsum += Integer.parseInt(String.valueOf(num[i]));\n\t\t\t}\n\t\t\tsb.append(sum).append(lb);\t\n\t\t}", "true", "{\n\t\t\tchar[] num = sc.nextLine().toCharArray();\n\t\t\tint sum = 0;\n\t\t\tif(num[0] == '0') break;\n\t\t\tfor(int i = 0; i < num.length; i++){\n\t\t\t\tsum += Integer.parseInt(String.valueOf(num[i]));\n\t\t\t}\n\t\t\tsb.append(sum).append(lb);\t\n\t\t}", "char[] num = sc.nextLine().toCharArray();", "num", "sc.nextLine().toCharArray()", "sc.nextLine().toCharArray", "sc.nextLine()", "sc.nextLine", "sc", "int sum = 0;", "sum", "0", "if(num[0] == '0') break;", "num[0] == '0'", "num[0]", "num", "0", "'0'", "break;", "for(int i = 0; i < num.length; i++){\n\t\t\t\tsum += Integer.parseInt(String.valueOf(num[i]));\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num.length", "i", "num.length", "num", "num.length", "i++", "i++", "i", "{\n\t\t\t\tsum += Integer.parseInt(String.valueOf(num[i]));\n\t\t\t}", "{\n\t\t\t\tsum += Integer.parseInt(String.valueOf(num[i]));\n\t\t\t}", "sum += Integer.parseInt(String.valueOf(num[i]))", "sum", "Integer.parseInt(String.valueOf(num[i]))", "Integer.parseInt", "Integer", "String.valueOf(num[i])", "String.valueOf", "String", "num[i]", "num", "i", "sb.append(sum).append(lb)", "sb.append(sum).append", "sb.append(sum)", "sb.append", "sb", "sum", "lb", "System.out.print(sb.toString())", "System.out.print", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args){ final Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); final String lb = System.getProperty("line.separator"); while(true){ char[] num = sc.nextLine().toCharArray(); int sum = 0; if(num[0] == '0') break; for(int i = 0; i < num.length; i++){ sum += Integer.parseInt(String.valueOf(num[i])); } sb.append(sum).append(lb); } System.out.print(sb.toString()); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 14, 2, 2, 18, 13, 17, 17, 2, 18, 13, 13, 17, 30, 3, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 142, 11 ], [ 142, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 21, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 32, 34 ], [ 35, 36 ], [ 35, 37 ], [ 21, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 38, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 21, 63 ], [ 63, 64 ], [ 63, 65 ], [ 66, 67 ], [ 66, 68 ], [ 21, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 69, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 91, 93 ], [ 21, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 95, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 94, 106 ], [ 106, 107 ], [ 21, 108 ], [ 108, 109 ], [ 108, 110 ], [ 21, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 111, 121 ], [ 121, 122 ], [ 122, 123 ], [ 111, 124 ], [ 125, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 21, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 12, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\t//与えられた数の各桁の和を計算する\n\t\tfor(;;)\n\t\t{\n\t\t\tString originNum = input.readLine();\n\n\t\t\tchar[] numbersC = originNum.toCharArray();\n\n\t\t\tString[] numbersS = new String[numbersC.length];\n\n\t\t\t//char型からString型に変換\n\t\t\tfor(int num = 0; num < numbersC.length; num++)\n\t\t\t{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}\n\n\t\t\tint[] numbers = new int[numbersS.length];\n\n\t\t\t//String型からint型に変換\n\t\t\tfor(int num = 0; num < numbersS.length; num++)\n\t\t\t{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}\n\n\t\t\tif((numbers[0] == 0)&&(numbers.length == 1))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = 0;\n\n\t\t\t//数の各桁の和を計算する\n\t\t\tfor(int num = 0; num < numbers.length; num++)\n\t\t\t{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\t//与えられた数の各桁の和を計算する\n\t\tfor(;;)\n\t\t{\n\t\t\tString originNum = input.readLine();\n\n\t\t\tchar[] numbersC = originNum.toCharArray();\n\n\t\t\tString[] numbersS = new String[numbersC.length];\n\n\t\t\t//char型からString型に変換\n\t\t\tfor(int num = 0; num < numbersC.length; num++)\n\t\t\t{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}\n\n\t\t\tint[] numbers = new int[numbersS.length];\n\n\t\t\t//String型からint型に変換\n\t\t\tfor(int num = 0; num < numbersS.length; num++)\n\t\t\t{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}\n\n\t\t\tif((numbers[0] == 0)&&(numbers.length == 1))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = 0;\n\n\t\t\t//数の各桁の和を計算する\n\t\t\tfor(int num = 0; num < numbers.length; num++)\n\t\t\t{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main", "public static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\t//与えられた数の各桁の和を計算する\n\t\tfor(;;)\n\t\t{\n\t\t\tString originNum = input.readLine();\n\n\t\t\tchar[] numbersC = originNum.toCharArray();\n\n\t\t\tString[] numbersS = new String[numbersC.length];\n\n\t\t\t//char型からString型に変換\n\t\t\tfor(int num = 0; num < numbersC.length; num++)\n\t\t\t{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}\n\n\t\t\tint[] numbers = new int[numbersS.length];\n\n\t\t\t//String型からint型に変換\n\t\t\tfor(int num = 0; num < numbersS.length; num++)\n\t\t\t{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}\n\n\t\t\tif((numbers[0] == 0)&&(numbers.length == 1))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = 0;\n\n\t\t\t//数の各桁の和を計算する\n\t\t\tfor(int num = 0; num < numbers.length; num++)\n\t\t\t{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\t//与えられた数の各桁の和を計算する\n\t\tfor(;;)\n\t\t{\n\t\t\tString originNum = input.readLine();\n\n\t\t\tchar[] numbersC = originNum.toCharArray();\n\n\t\t\tString[] numbersS = new String[numbersC.length];\n\n\t\t\t//char型からString型に変換\n\t\t\tfor(int num = 0; num < numbersC.length; num++)\n\t\t\t{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}\n\n\t\t\tint[] numbers = new int[numbersS.length];\n\n\t\t\t//String型からint型に変換\n\t\t\tfor(int num = 0; num < numbersS.length; num++)\n\t\t\t{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}\n\n\t\t\tif((numbers[0] == 0)&&(numbers.length == 1))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = 0;\n\n\t\t\t//数の各桁の和を計算する\n\t\t\tfor(int num = 0; num < numbers.length; num++)\n\t\t\t{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}", "BufferedReader input = new BufferedReader (new InputStreamReader (System.in));", "input", "new BufferedReader (new InputStreamReader (System.in))", "for(;;)\n\t\t{\n\t\t\tString originNum = input.readLine();\n\n\t\t\tchar[] numbersC = originNum.toCharArray();\n\n\t\t\tString[] numbersS = new String[numbersC.length];\n\n\t\t\t//char型からString型に変換\n\t\t\tfor(int num = 0; num < numbersC.length; num++)\n\t\t\t{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}\n\n\t\t\tint[] numbers = new int[numbersS.length];\n\n\t\t\t//String型からint型に変換\n\t\t\tfor(int num = 0; num < numbersS.length; num++)\n\t\t\t{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}\n\n\t\t\tif((numbers[0] == 0)&&(numbers.length == 1))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = 0;\n\n\t\t\t//数の各桁の和を計算する\n\t\t\tfor(int num = 0; num < numbers.length; num++)\n\t\t\t{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t}", ";", "{\n\t\t\tString originNum = input.readLine();\n\n\t\t\tchar[] numbersC = originNum.toCharArray();\n\n\t\t\tString[] numbersS = new String[numbersC.length];\n\n\t\t\t//char型からString型に変換\n\t\t\tfor(int num = 0; num < numbersC.length; num++)\n\t\t\t{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}\n\n\t\t\tint[] numbers = new int[numbersS.length];\n\n\t\t\t//String型からint型に変換\n\t\t\tfor(int num = 0; num < numbersS.length; num++)\n\t\t\t{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}\n\n\t\t\tif((numbers[0] == 0)&&(numbers.length == 1))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = 0;\n\n\t\t\t//数の各桁の和を計算する\n\t\t\tfor(int num = 0; num < numbers.length; num++)\n\t\t\t{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t}", "{\n\t\t\tString originNum = input.readLine();\n\n\t\t\tchar[] numbersC = originNum.toCharArray();\n\n\t\t\tString[] numbersS = new String[numbersC.length];\n\n\t\t\t//char型からString型に変換\n\t\t\tfor(int num = 0; num < numbersC.length; num++)\n\t\t\t{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}\n\n\t\t\tint[] numbers = new int[numbersS.length];\n\n\t\t\t//String型からint型に変換\n\t\t\tfor(int num = 0; num < numbersS.length; num++)\n\t\t\t{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}\n\n\t\t\tif((numbers[0] == 0)&&(numbers.length == 1))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = 0;\n\n\t\t\t//数の各桁の和を計算する\n\t\t\tfor(int num = 0; num < numbers.length; num++)\n\t\t\t{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t}", "String originNum = input.readLine();", "originNum", "input.readLine()", "input.readLine", "input", "char[] numbersC = originNum.toCharArray();", "numbersC", "originNum.toCharArray()", "originNum.toCharArray", "originNum", "String[] numbersS = new String[numbersC.length];", "numbersS", "new String[numbersC.length]", "numbersC.length", "numbersC", "numbersC.length", "for(int num = 0; num < numbersC.length; num++)\n\t\t\t{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}", "int num = 0;", "int num = 0;", "num", "0", "num < numbersC.length", "num", "numbersC.length", "numbersC", "numbersC.length", "num++", "num++", "num", "{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}", "{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}", "numbersS[num] = String.valueOf(numbersC[num])", "numbersS[num]", "numbersS", "num", "String.valueOf(numbersC[num])", "String.valueOf", "String", "numbersC[num]", "numbersC", "num", "int[] numbers = new int[numbersS.length];", "numbers", "new int[numbersS.length]", "numbersS.length", "numbersS", "numbersS.length", "for(int num = 0; num < numbersS.length; num++)\n\t\t\t{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}", "int num = 0;", "int num = 0;", "num", "0", "num < numbersS.length", "num", "numbersS.length", "numbersS", "numbersS.length", "num++", "num++", "num", "{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}", "{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}", "numbers[num] = Integer.parseInt(numbersS[num])", "numbers[num]", "numbers", "num", "Integer.parseInt(numbersS[num])", "Integer.parseInt", "Integer", "numbersS[num]", "numbersS", "num", "if((numbers[0] == 0)&&(numbers.length == 1))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}", "(numbers[0] == 0)&&(numbers.length == 1)", "(numbers[0] == 0)", "numbers[0]", "numbers", "0", "0", "(numbers.length == 1)", "numbers.length", "numbers", "numbers.length", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int sum = 0;", "sum", "0", "for(int num = 0; num < numbers.length; num++)\n\t\t\t{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}", "int num = 0;", "int num = 0;", "num", "0", "num < numbers.length", "num", "numbers.length", "numbers", "numbers.length", "num++", "num++", "num", "{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}", "{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}", "sum = sum + numbers[num]", "sum", "sum + numbers[num]", "sum", "numbers[num]", "numbers", "num", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\t//与えられた数の各桁の和を計算する\n\t\tfor(;;)\n\t\t{\n\t\t\tString originNum = input.readLine();\n\n\t\t\tchar[] numbersC = originNum.toCharArray();\n\n\t\t\tString[] numbersS = new String[numbersC.length];\n\n\t\t\t//char型からString型に変換\n\t\t\tfor(int num = 0; num < numbersC.length; num++)\n\t\t\t{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}\n\n\t\t\tint[] numbers = new int[numbersS.length];\n\n\t\t\t//String型からint型に変換\n\t\t\tfor(int num = 0; num < numbersS.length; num++)\n\t\t\t{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}\n\n\t\t\tif((numbers[0] == 0)&&(numbers.length == 1))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = 0;\n\n\t\t\t//数の各桁の和を計算する\n\t\t\tfor(int num = 0; num < numbers.length; num++)\n\t\t\t{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\t//与えられた数の各桁の和を計算する\n\t\tfor(;;)\n\t\t{\n\t\t\tString originNum = input.readLine();\n\n\t\t\tchar[] numbersC = originNum.toCharArray();\n\n\t\t\tString[] numbersS = new String[numbersC.length];\n\n\t\t\t//char型からString型に変換\n\t\t\tfor(int num = 0; num < numbersC.length; num++)\n\t\t\t{\n\t\t\t\tnumbersS[num] = String.valueOf(numbersC[num]);\n\t\t\t}\n\n\t\t\tint[] numbers = new int[numbersS.length];\n\n\t\t\t//String型からint型に変換\n\t\t\tfor(int num = 0; num < numbersS.length; num++)\n\t\t\t{\n\t\t\t\tnumbers[num] = Integer.parseInt(numbersS[num]);\n\t\t\t}\n\n\t\t\tif((numbers[0] == 0)&&(numbers.length == 1))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = 0;\n\n\t\t\t//数の各桁の和を計算する\n\t\t\tfor(int num = 0; num < numbers.length; num++)\n\t\t\t{\n\t\t\t\tsum = sum + numbers[num];\n\t\t\t}\n\n\t\t\tSystem.out.println(sum);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main (String[] args) throws IOException { BufferedReader input = new BufferedReader (new InputStreamReader (System.in)); //与えられた数の各桁の和を計算する for(;;) { String originNum = input.readLine(); char[] numbersC = originNum.toCharArray(); String[] numbersS = new String[numbersC.length]; //char型からString型に変換 for(int num = 0; num < numbersC.length; num++) { numbersS[num] = String.valueOf(numbersC[num]); } int[] numbers = new int[numbersS.length]; //String型からint型に変換 for(int num = 0; num < numbersS.length; num++) { numbers[num] = Integer.parseInt(numbersS[num]); } if((numbers[0] == 0)&&(numbers.length == 1)) { break; } int sum = 0; //数の各桁の和を計算する for(int num = 0; num < numbers.length; num++) { sum = sum + numbers[num]; } System.out.println(sum); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 22, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 16, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 31, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 45, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 16, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 6, 64 ], [ 64, 65 ] ]
[ "import java.util.Scanner;\n \nclass Main{\n public static void main(String[] arg){\n String input;\n \n Scanner in = new Scanner(System.in);\n\n while(true){\n input = in.nextLine();\n\n if(input.equals(\"0\")) break;\n\n int tmp=0;\n for(int i=0; i<input.length(); ++i){\n \n char ch = input.charAt(i);\n tmp += Character.getNumericValue(ch);\n\n }\n System.out.println(tmp);\n }\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] arg){\n String input;\n \n Scanner in = new Scanner(System.in);\n\n while(true){\n input = in.nextLine();\n\n if(input.equals(\"0\")) break;\n\n int tmp=0;\n for(int i=0; i<input.length(); ++i){\n \n char ch = input.charAt(i);\n tmp += Character.getNumericValue(ch);\n\n }\n System.out.println(tmp);\n }\n\n }\n}", "Main", "public static void main(String[] arg){\n String input;\n \n Scanner in = new Scanner(System.in);\n\n while(true){\n input = in.nextLine();\n\n if(input.equals(\"0\")) break;\n\n int tmp=0;\n for(int i=0; i<input.length(); ++i){\n \n char ch = input.charAt(i);\n tmp += Character.getNumericValue(ch);\n\n }\n System.out.println(tmp);\n }\n\n }", "main", "{\n String input;\n \n Scanner in = new Scanner(System.in);\n\n while(true){\n input = in.nextLine();\n\n if(input.equals(\"0\")) break;\n\n int tmp=0;\n for(int i=0; i<input.length(); ++i){\n \n char ch = input.charAt(i);\n tmp += Character.getNumericValue(ch);\n\n }\n System.out.println(tmp);\n }\n\n }", "String input;", "input", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(true){\n input = in.nextLine();\n\n if(input.equals(\"0\")) break;\n\n int tmp=0;\n for(int i=0; i<input.length(); ++i){\n \n char ch = input.charAt(i);\n tmp += Character.getNumericValue(ch);\n\n }\n System.out.println(tmp);\n }", "true", "{\n input = in.nextLine();\n\n if(input.equals(\"0\")) break;\n\n int tmp=0;\n for(int i=0; i<input.length(); ++i){\n \n char ch = input.charAt(i);\n tmp += Character.getNumericValue(ch);\n\n }\n System.out.println(tmp);\n }", "input = in.nextLine()", "input", "in.nextLine()", "in.nextLine", "in", "if(input.equals(\"0\")) break;", "input.equals(\"0\")", "input.equals", "input", "\"0\"", "break;", "int tmp=0;", "tmp", "0", "for(int i=0; i<input.length(); ++i){\n \n char ch = input.charAt(i);\n tmp += Character.getNumericValue(ch);\n\n }", "int i=0;", "int i=0;", "i", "0", "i<input.length()", "i", "input.length()", "input.length", "input", "++i", "++i", "i", "{\n \n char ch = input.charAt(i);\n tmp += Character.getNumericValue(ch);\n\n }", "{\n \n char ch = input.charAt(i);\n tmp += Character.getNumericValue(ch);\n\n }", "char ch = input.charAt(i);", "ch", "input.charAt(i)", "input.charAt", "input", "i", "tmp += Character.getNumericValue(ch)", "tmp", "Character.getNumericValue(ch)", "Character.getNumericValue", "Character", "ch", "System.out.println(tmp)", "System.out.println", "System.out", "System", "System.out", "tmp", "String[] arg", "arg" ]
import java.util.Scanner; class Main{ public static void main(String[] arg){ String input; Scanner in = new Scanner(System.in); while(true){ input = in.nextLine(); if(input.equals("0")) break; int tmp=0; for(int i=0; i<input.length(); ++i){ char ch = input.charAt(i); tmp += Character.getNumericValue(ch); } System.out.println(tmp); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 20, 11, 1, 30, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 24, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 24, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 24, 41 ], [ 41, 42 ], [ 41, 43 ], [ 24, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 44, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 24, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 11, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 9, 81 ], [ 81, 82 ] ]
[ "import java.io.*;\nimport java.util.Arrays;\nclass Main{\n public static void main(String[] args) throws IOException {\n int i,ans;\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine();\n if(str.equals(\"0\")) break;\n char[] c = str.toCharArray();\n ans=0;\n for(i=0;i<str.length();i++){\n ans+=Integer.parseInt(String.valueOf(c[i]));\n }\n System.out.println(ans);\n }\n System.out.flush();\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "class Main{\n public static void main(String[] args) throws IOException {\n int i,ans;\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine();\n if(str.equals(\"0\")) break;\n char[] c = str.toCharArray();\n ans=0;\n for(i=0;i<str.length();i++){\n ans+=Integer.parseInt(String.valueOf(c[i]));\n }\n System.out.println(ans);\n }\n System.out.flush();\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n int i,ans;\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine();\n if(str.equals(\"0\")) break;\n char[] c = str.toCharArray();\n ans=0;\n for(i=0;i<str.length();i++){\n ans+=Integer.parseInt(String.valueOf(c[i]));\n }\n System.out.println(ans);\n }\n System.out.flush();\n }", "main", "{\n int i,ans;\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine();\n if(str.equals(\"0\")) break;\n char[] c = str.toCharArray();\n ans=0;\n for(i=0;i<str.length();i++){\n ans+=Integer.parseInt(String.valueOf(c[i]));\n }\n System.out.println(ans);\n }\n System.out.flush();\n }", "int i", "i", "ans;", "ans", "String str;", "str", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "for(;;){\n str = in.readLine();\n if(str.equals(\"0\")) break;\n char[] c = str.toCharArray();\n ans=0;\n for(i=0;i<str.length();i++){\n ans+=Integer.parseInt(String.valueOf(c[i]));\n }\n System.out.println(ans);\n }", ";", "{\n str = in.readLine();\n if(str.equals(\"0\")) break;\n char[] c = str.toCharArray();\n ans=0;\n for(i=0;i<str.length();i++){\n ans+=Integer.parseInt(String.valueOf(c[i]));\n }\n System.out.println(ans);\n }", "{\n str = in.readLine();\n if(str.equals(\"0\")) break;\n char[] c = str.toCharArray();\n ans=0;\n for(i=0;i<str.length();i++){\n ans+=Integer.parseInt(String.valueOf(c[i]));\n }\n System.out.println(ans);\n }", "str = in.readLine()", "str", "in.readLine()", "in.readLine", "in", "if(str.equals(\"0\")) break;", "str.equals(\"0\")", "str.equals", "str", "\"0\"", "break;", "char[] c = str.toCharArray();", "c", "str.toCharArray()", "str.toCharArray", "str", "ans=0", "ans", "0", "for(i=0;i<str.length();i++){\n ans+=Integer.parseInt(String.valueOf(c[i]));\n }", "i=0;", "i=0", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n ans+=Integer.parseInt(String.valueOf(c[i]));\n }", "{\n ans+=Integer.parseInt(String.valueOf(c[i]));\n }", "ans+=Integer.parseInt(String.valueOf(c[i]))", "ans", "Integer.parseInt(String.valueOf(c[i]))", "Integer.parseInt", "Integer", "String.valueOf(c[i])", "String.valueOf", "String", "c[i]", "c", "i", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "System.out.flush()", "System.out.flush", "System.out", "System", "System.out", "String[] args", "args" ]
import java.io.*; import java.util.Arrays; class Main{ public static void main(String[] args) throws IOException { int i,ans; String str; BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); for(;;){ str = in.readLine(); if(str.equals("0")) break; char[] c = str.toCharArray(); ans=0; for(i=0;i<str.length();i++){ ans+=Integer.parseInt(String.valueOf(c[i])); } System.out.println(ans); } System.out.flush(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 13, 17, 3, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 76, 8 ], [ 76, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 13, 19 ], [ 19, 20 ], [ 19, 21 ], [ 13, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 30, 37 ], [ 37, 38 ], [ 37, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 30, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 9, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tsum=0;\n \tfor(int i=0;i<line.length();i++){\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}\n \tSystem.out.println(sum);\n }\n }\n }\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tsum=0;\n \tfor(int i=0;i<line.length();i++){\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}\n \tSystem.out.println(sum);\n }\n }\n }\n\n}", "Main", "public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tsum=0;\n \tfor(int i=0;i<line.length();i++){\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}\n \tSystem.out.println(sum);\n }\n }\n }", "main", "{\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tsum=0;\n \tfor(int i=0;i<line.length();i++){\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}\n \tSystem.out.println(sum);\n }\n }\n }", "try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tsum=0;\n \tfor(int i=0;i<line.length();i++){\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}\n \tSystem.out.println(sum);\n }\n }", "{\n String line;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tsum=0;\n \tfor(int i=0;i<line.length();i++){\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}\n \tSystem.out.println(sum);\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "int sum=0;", "sum", "0", "while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tsum=0;\n \tfor(int i=0;i<line.length();i++){\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}\n \tSystem.out.println(sum);\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n \tif(line.equals(\"0\"))break;\n \tsum=0;\n \tfor(int i=0;i<line.length();i++){\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}\n \tSystem.out.println(sum);\n }", "if(line.equals(\"0\"))break;", "line.equals(\"0\")", "line.equals", "line", "\"0\"", "break;", "sum=0", "sum", "0", "for(int i=0;i<line.length();i++){\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}", "int i=0;", "int i=0;", "i", "0", "i<line.length()", "i", "line.length()", "line.length", "line", "i++", "i++", "i", "{\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}", "{\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}", "sum+=Integer.parseInt(line.substring(i, i+1))", "sum", "Integer.parseInt(line.substring(i, i+1))", "Integer.parseInt", "Integer", "line.substring(i, i+1)", "line.substring", "line", "i", "i+1", "i", "1", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tsum=0;\n \tfor(int i=0;i<line.length();i++){\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}\n \tSystem.out.println(sum);\n }\n }\n }\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"0\"))break;\n \tsum=0;\n \tfor(int i=0;i<line.length();i++){\n \t\tsum+=Integer.parseInt(line.substring(i, i+1));\n \t}\n \tSystem.out.println(sum);\n }\n }\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String line; int sum=0; while ((line = br.readLine()) != null) { if(line.equals("0"))break; sum=0; for(int i=0;i<line.length();i++){ sum+=Integer.parseInt(line.substring(i, i+1)); } System.out.println(sum); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 4, 18, 18, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 2, 13, 17, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 80, 5 ], [ 80, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 15, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 25, 30 ], [ 30, 31 ], [ 19, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 6, 40 ], [ 40, 41 ], [ 80, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 48, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 44, 75 ], [ 75, 76 ], [ 42, 77 ], [ 77, 78 ], [ 0, 79 ], [ 79, 80 ], [ 79, 81 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint sum = 0;\n\twhile (scan.hasNext()) {\n\t String number = scan.nextLine();\n\t if (number.equals(\"0\")) {\n\t\tbreak;\n\t }\n\t System.out.println(sum(number));\n\t}\n }\n public static int sum (String number) {\n\tint sum = 0;\n\tfor (int i = 0; i < number.length(); i++) {\n\t sum += Integer.valueOf(number.substring(i, i+1));\n\t}\n\treturn sum;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint sum = 0;\n\twhile (scan.hasNext()) {\n\t String number = scan.nextLine();\n\t if (number.equals(\"0\")) {\n\t\tbreak;\n\t }\n\t System.out.println(sum(number));\n\t}\n }\n public static int sum (String number) {\n\tint sum = 0;\n\tfor (int i = 0; i < number.length(); i++) {\n\t sum += Integer.valueOf(number.substring(i, i+1));\n\t}\n\treturn sum;\n }\n}", "Main", "public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint sum = 0;\n\twhile (scan.hasNext()) {\n\t String number = scan.nextLine();\n\t if (number.equals(\"0\")) {\n\t\tbreak;\n\t }\n\t System.out.println(sum(number));\n\t}\n }", "main", "{\n\tScanner scan = new Scanner(System.in);\n\tint sum = 0;\n\twhile (scan.hasNext()) {\n\t String number = scan.nextLine();\n\t if (number.equals(\"0\")) {\n\t\tbreak;\n\t }\n\t System.out.println(sum(number));\n\t}\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int sum = 0;", "sum", "0", "while (scan.hasNext()) {\n\t String number = scan.nextLine();\n\t if (number.equals(\"0\")) {\n\t\tbreak;\n\t }\n\t System.out.println(sum(number));\n\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t String number = scan.nextLine();\n\t if (number.equals(\"0\")) {\n\t\tbreak;\n\t }\n\t System.out.println(sum(number));\n\t}", "String number = scan.nextLine();", "number", "scan.nextLine()", "scan.nextLine", "scan", "if (number.equals(\"0\")) {\n\t\tbreak;\n\t }", "number.equals(\"0\")", "number.equals", "number", "\"0\"", "{\n\t\tbreak;\n\t }", "break;", "System.out.println(sum(number))", "System.out.println", "System.out", "System", "System.out", "sum(number)", "sum", "number", "String[] args", "args", "public static int sum (String number) {\n\tint sum = 0;\n\tfor (int i = 0; i < number.length(); i++) {\n\t sum += Integer.valueOf(number.substring(i, i+1));\n\t}\n\treturn sum;\n }", "sum", "{\n\tint sum = 0;\n\tfor (int i = 0; i < number.length(); i++) {\n\t sum += Integer.valueOf(number.substring(i, i+1));\n\t}\n\treturn sum;\n }", "int sum = 0;", "sum", "0", "for (int i = 0; i < number.length(); i++) {\n\t sum += Integer.valueOf(number.substring(i, i+1));\n\t}", "int i = 0;", "int i = 0;", "i", "0", "i < number.length()", "i", "number.length()", "number.length", "number", "i++", "i++", "i", "{\n\t sum += Integer.valueOf(number.substring(i, i+1));\n\t}", "{\n\t sum += Integer.valueOf(number.substring(i, i+1));\n\t}", "sum += Integer.valueOf(number.substring(i, i+1))", "sum", "Integer.valueOf(number.substring(i, i+1))", "Integer.valueOf", "Integer", "number.substring(i, i+1)", "number.substring", "number", "i", "i+1", "i", "1", "return sum;", "sum", "String number", "number", "public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint sum = 0;\n\twhile (scan.hasNext()) {\n\t String number = scan.nextLine();\n\t if (number.equals(\"0\")) {\n\t\tbreak;\n\t }\n\t System.out.println(sum(number));\n\t}\n }\n public static int sum (String number) {\n\tint sum = 0;\n\tfor (int i = 0; i < number.length(); i++) {\n\t sum += Integer.valueOf(number.substring(i, i+1));\n\t}\n\treturn sum;\n }\n}", "public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint sum = 0;\n\twhile (scan.hasNext()) {\n\t String number = scan.nextLine();\n\t if (number.equals(\"0\")) {\n\t\tbreak;\n\t }\n\t System.out.println(sum(number));\n\t}\n }\n public static int sum (String number) {\n\tint sum = 0;\n\tfor (int i = 0; i < number.length(); i++) {\n\t sum += Integer.valueOf(number.substring(i, i+1));\n\t}\n\treturn sum;\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner scan = new Scanner(System.in); int sum = 0; while (scan.hasNext()) { String number = scan.nextLine(); if (number.equals("0")) { break; } System.out.println(sum(number)); } } public static int sum (String number) { int sum = 0; for (int i = 0; i < number.length(); i++) { sum += Integer.valueOf(number.substring(i, i+1)); } return sum; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 41, 13, 17, 41, 13, 20, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 0, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 76, 5 ], [ 76, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 31, 33 ], [ 34, 35 ], [ 35, 36 ], [ 27, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 37, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 51, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 27, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 6, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "/**\n * 与えられた文字列の小文字と大文字を入れ替えるプログラムを作成してください。\n */\n\n//スキャナつかうため\n\nimport java.util.Scanner;\n\npublic class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// 文字列を受け取る\n\t\t\tString moji = sc.nextLine();\n\t\t\tif (moji.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tint intKekka = 0;\n\t\t\t\t// 受け取った文字数の配列の宣言\n\t\t\t\tchar[] kowake = new char[moji.length()];\n\t\t\t\t// 受け取った文字の数処理を繰り返す\n\t\t\t\tfor (int i = 0; i < moji.length(); i++) {\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(intKekka);\n\n\t\t\t}\n\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// 文字列を受け取る\n\t\t\tString moji = sc.nextLine();\n\t\t\tif (moji.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tint intKekka = 0;\n\t\t\t\t// 受け取った文字数の配列の宣言\n\t\t\t\tchar[] kowake = new char[moji.length()];\n\t\t\t\t// 受け取った文字の数処理を繰り返す\n\t\t\t\tfor (int i = 0; i < moji.length(); i++) {\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(intKekka);\n\n\t\t\t}\n\n\t\t}\n\t}\n}", "Main", "// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// 文字列を受け取る\n\t\t\tString moji = sc.nextLine();\n\t\t\tif (moji.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tint intKekka = 0;\n\t\t\t\t// 受け取った文字数の配列の宣言\n\t\t\t\tchar[] kowake = new char[moji.length()];\n\t\t\t\t// 受け取った文字の数処理を繰り返す\n\t\t\t\tfor (int i = 0; i < moji.length(); i++) {\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(intKekka);\n\n\t\t\t}\n\n\t\t}\n\t}", "main", "{\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// 文字列を受け取る\n\t\t\tString moji = sc.nextLine();\n\t\t\tif (moji.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tint intKekka = 0;\n\t\t\t\t// 受け取った文字数の配列の宣言\n\t\t\t\tchar[] kowake = new char[moji.length()];\n\t\t\t\t// 受け取った文字の数処理を繰り返す\n\t\t\t\tfor (int i = 0; i < moji.length(); i++) {\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(intKekka);\n\n\t\t\t}\n\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\n\t\t\t// 文字列を受け取る\n\t\t\tString moji = sc.nextLine();\n\t\t\tif (moji.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tint intKekka = 0;\n\t\t\t\t// 受け取った文字数の配列の宣言\n\t\t\t\tchar[] kowake = new char[moji.length()];\n\t\t\t\t// 受け取った文字の数処理を繰り返す\n\t\t\t\tfor (int i = 0; i < moji.length(); i++) {\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(intKekka);\n\n\t\t\t}\n\n\t\t}", "true", "{\n\n\t\t\t// 文字列を受け取る\n\t\t\tString moji = sc.nextLine();\n\t\t\tif (moji.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tint intKekka = 0;\n\t\t\t\t// 受け取った文字数の配列の宣言\n\t\t\t\tchar[] kowake = new char[moji.length()];\n\t\t\t\t// 受け取った文字の数処理を繰り返す\n\t\t\t\tfor (int i = 0; i < moji.length(); i++) {\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(intKekka);\n\n\t\t\t}\n\n\t\t}", "String moji = sc.nextLine();", "moji", "sc.nextLine()", "sc.nextLine", "sc", "if (moji.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tint intKekka = 0;\n\t\t\t\t// 受け取った文字数の配列の宣言\n\t\t\t\tchar[] kowake = new char[moji.length()];\n\t\t\t\t// 受け取った文字の数処理を繰り返す\n\t\t\t\tfor (int i = 0; i < moji.length(); i++) {\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(intKekka);\n\n\t\t\t}", "moji.equals(\"0\")", "moji.equals", "moji", "\"0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tint intKekka = 0;\n\t\t\t\t// 受け取った文字数の配列の宣言\n\t\t\t\tchar[] kowake = new char[moji.length()];\n\t\t\t\t// 受け取った文字の数処理を繰り返す\n\t\t\t\tfor (int i = 0; i < moji.length(); i++) {\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(intKekka);\n\n\t\t\t}", "int intKekka = 0;", "intKekka", "0", "char[] kowake = new char[moji.length()];", "kowake", "new char[moji.length()]", "moji.length()", "moji.length", "moji", "for (int i = 0; i < moji.length(); i++) {\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < moji.length()", "i", "moji.length()", "moji.length", "moji", "i++", "i++", "i", "{\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}", "{\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}", "kowake[i] = moji.charAt(i)", "kowake[i]", "kowake", "i", "moji.charAt(i)", "moji.charAt", "moji", "i", "intKekka += kowake[i] - 48", "intKekka", "kowake[i] - 48", "kowake[i]", "kowake", "i", "48", "System.out.println(intKekka)", "System.out.println", "System.out", "System", "System.out", "intKekka", "String[] args", "args", "public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// 文字列を受け取る\n\t\t\tString moji = sc.nextLine();\n\t\t\tif (moji.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tint intKekka = 0;\n\t\t\t\t// 受け取った文字数の配列の宣言\n\t\t\t\tchar[] kowake = new char[moji.length()];\n\t\t\t\t// 受け取った文字の数処理を繰り返す\n\t\t\t\tfor (int i = 0; i < moji.length(); i++) {\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(intKekka);\n\n\t\t\t}\n\n\t\t}\n\t}\n}", "public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// 文字列を受け取る\n\t\t\tString moji = sc.nextLine();\n\t\t\tif (moji.equals(\"0\")){\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tint intKekka = 0;\n\t\t\t\t// 受け取った文字数の配列の宣言\n\t\t\t\tchar[] kowake = new char[moji.length()];\n\t\t\t\t// 受け取った文字の数処理を繰り返す\n\t\t\t\tfor (int i = 0; i < moji.length(); i++) {\n\n\t\t\t\t\tkowake[i] = moji.charAt(i);\n\t\t\t\t\tintKekka += kowake[i] - 48;\n\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(intKekka);\n\n\t\t\t}\n\n\t\t}\n\t}\n}", "Main" ]
/** * 与えられた文字列の小文字と大文字を入れ替えるプログラムを作成してください。 */ //スキャナつかうため import java.util.Scanner; public class Main { // プログラムのエントリポイント public static void main(String[] args) { // 入力ストリームの生成 Scanner sc = new Scanner(System.in); while (true) { // 文字列を受け取る String moji = sc.nextLine(); if (moji.equals("0")){ break; } else { int intKekka = 0; // 受け取った文字数の配列の宣言 char[] kowake = new char[moji.length()]; // 受け取った文字の数処理を繰り返す for (int i = 0; i < moji.length(); i++) { kowake[i] = moji.charAt(i); intKekka += kowake[i] - 48; } System.out.println(intKekka); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 71, 5 ], [ 71, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 15, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 21, 26 ], [ 15, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 15, 33 ], [ 33, 34 ], [ 33, 35 ], [ 15, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 36, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 50, 59 ], [ 59, 60 ], [ 59, 61 ], [ 15, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 6, 68 ], [ 68, 69 ], [ 0, 70 ], [ 70, 71 ], [ 70, 72 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\"))break;\n\t\t\tString[] strArray = x.split(\"\");\n\t\t\tint add = 0;\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}\n\t\t\tSystem.out.println(add);\n\t\t}\n\t}\t\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\"))break;\n\t\t\tString[] strArray = x.split(\"\");\n\t\t\tint add = 0;\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}\n\t\t\tSystem.out.println(add);\n\t\t}\n\t}\t\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\"))break;\n\t\t\tString[] strArray = x.split(\"\");\n\t\t\tint add = 0;\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}\n\t\t\tSystem.out.println(add);\n\t\t}\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\"))break;\n\t\t\tString[] strArray = x.split(\"\");\n\t\t\tint add = 0;\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}\n\t\t\tSystem.out.println(add);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(;;){\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\"))break;\n\t\t\tString[] strArray = x.split(\"\");\n\t\t\tint add = 0;\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}\n\t\t\tSystem.out.println(add);\n\t\t}", ";", "{\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\"))break;\n\t\t\tString[] strArray = x.split(\"\");\n\t\t\tint add = 0;\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}\n\t\t\tSystem.out.println(add);\n\t\t}", "{\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\"))break;\n\t\t\tString[] strArray = x.split(\"\");\n\t\t\tint add = 0;\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}\n\t\t\tSystem.out.println(add);\n\t\t}", "String x = sc.next();", "x", "sc.next()", "sc.next", "sc", "if(x.equals(\"0\"))break;", "x.equals(\"0\")", "x.equals", "x", "\"0\"", "break;", "String[] strArray = x.split(\"\");", "strArray", "x.split(\"\")", "x.split", "x", "\"\"", "int add = 0;", "add", "0", "for (int i = 0; i < strArray.length; i++) {\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < strArray.length", "i", "strArray.length", "strArray", "strArray.length", "i++", "i++", "i", "{\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}", "{\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}", "int num = Integer.parseInt(strArray[i]);", "num", "Integer.parseInt(strArray[i])", "Integer.parseInt", "Integer", "strArray[i]", "strArray", "i", "add += num", "add", "num", "System.out.println(add)", "System.out.println", "System.out", "System", "System.out", "add", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\"))break;\n\t\t\tString[] strArray = x.split(\"\");\n\t\t\tint add = 0;\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}\n\t\t\tSystem.out.println(add);\n\t\t}\n\t}\t\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString x = sc.next();\n\t\t\tif(x.equals(\"0\"))break;\n\t\t\tString[] strArray = x.split(\"\");\n\t\t\tint add = 0;\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tint num = Integer.parseInt(strArray[i]);\n\t\t\t add += num;\n\t\t\t}\n\t\t\tSystem.out.println(add);\n\t\t}\n\t}\t\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); for(;;){ String x = sc.next(); if(x.equals("0"))break; String[] strArray = x.split(""); int add = 0; for (int i = 0; i < strArray.length; i++) { int num = Integer.parseInt(strArray[i]); add += num; } System.out.println(add); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 74, 5 ], [ 74, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 24, 36 ], [ 36, 37 ], [ 36, 38 ], [ 24, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 39, 49 ], [ 49, 50 ], [ 50, 51 ], [ 39, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 53, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 24, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 6, 71 ], [ 71, 72 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n String str;\n Character c;\n int sum;\n \n while(true){\n str=sc.next();\n if(str.equals(\"0\"))break;\n \n sum=0;\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n sum+=c-'0';\n }\n \n System.out.println(sum);\n }\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n String str;\n Character c;\n int sum;\n \n while(true){\n str=sc.next();\n if(str.equals(\"0\"))break;\n \n sum=0;\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n sum+=c-'0';\n }\n \n System.out.println(sum);\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n String str;\n Character c;\n int sum;\n \n while(true){\n str=sc.next();\n if(str.equals(\"0\"))break;\n \n sum=0;\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n sum+=c-'0';\n }\n \n System.out.println(sum);\n }\n }", "main", "{\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n String str;\n Character c;\n int sum;\n \n while(true){\n str=sc.next();\n if(str.equals(\"0\"))break;\n \n sum=0;\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n sum+=c-'0';\n }\n \n System.out.println(sum);\n }\n }", "int i", "i", "j;", "j", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str;", "str", "Character c;", "c", "int sum;", "sum", "while(true){\n str=sc.next();\n if(str.equals(\"0\"))break;\n \n sum=0;\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n sum+=c-'0';\n }\n \n System.out.println(sum);\n }", "true", "{\n str=sc.next();\n if(str.equals(\"0\"))break;\n \n sum=0;\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n sum+=c-'0';\n }\n \n System.out.println(sum);\n }", "str=sc.next()", "str", "sc.next()", "sc.next", "sc", "if(str.equals(\"0\"))break;", "str.equals(\"0\")", "str.equals", "str", "\"0\"", "break;", "sum=0", "sum", "0", "for(i=0;i<str.length();i++){\n c=str.charAt(i);\n sum+=c-'0';\n }", "i=0;", "i=0", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n c=str.charAt(i);\n sum+=c-'0';\n }", "{\n c=str.charAt(i);\n sum+=c-'0';\n }", "c=str.charAt(i)", "c", "str.charAt(i)", "str.charAt", "str", "i", "sum+=c-'0'", "sum", "c-'0'", "c", "'0'", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n String str;\n Character c;\n int sum;\n \n while(true){\n str=sc.next();\n if(str.equals(\"0\"))break;\n \n sum=0;\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n sum+=c-'0';\n }\n \n System.out.println(sum);\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n String str;\n Character c;\n int sum;\n \n while(true){\n str=sc.next();\n if(str.equals(\"0\"))break;\n \n sum=0;\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n sum+=c-'0';\n }\n \n System.out.println(sum);\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { int i,j; Scanner sc=new Scanner(System.in); String str; Character c; int sum; while(true){ str=sc.next(); if(str.equals("0"))break; sum=0; for(i=0;i<str.length();i++){ c=str.charAt(i); sum+=c-'0'; } System.out.println(sum); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 41, 13, 20, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 13, 14, 2, 13, 17, 30, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 122, 14 ], [ 122, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 18, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 28, 34 ], [ 34, 35 ], [ 34, 36 ], [ 28, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 50, 51 ], [ 45, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 52, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 73, 83 ], [ 83, 84 ], [ 83, 85 ], [ 52, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 28, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 95, 105 ], [ 105, 106 ], [ 106, 107 ], [ 95, 108 ], [ 109, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 15, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n public static void main(String[] args) {\n try {\n String number;\n ArrayList<Integer> list = new ArrayList<>();\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n number = reader.readLine();\n \n if ( number.equals(\"0\")) {\n break;\n } else {\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }\n }\n for (int i = 0; i < list.size();i++) {\n System.out.println(list.get(i));\n }\n } catch ( IOException e) {\n System.out.println(e);\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n public static void main(String[] args) {\n try {\n String number;\n ArrayList<Integer> list = new ArrayList<>();\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n number = reader.readLine();\n \n if ( number.equals(\"0\")) {\n break;\n } else {\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }\n }\n for (int i = 0; i < list.size();i++) {\n System.out.println(list.get(i));\n }\n } catch ( IOException e) {\n System.out.println(e);\n }\n }\n}", "Main", "public static void main(String[] args) {\n try {\n String number;\n ArrayList<Integer> list = new ArrayList<>();\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n number = reader.readLine();\n \n if ( number.equals(\"0\")) {\n break;\n } else {\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }\n }\n for (int i = 0; i < list.size();i++) {\n System.out.println(list.get(i));\n }\n } catch ( IOException e) {\n System.out.println(e);\n }\n }", "main", "{\n try {\n String number;\n ArrayList<Integer> list = new ArrayList<>();\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n number = reader.readLine();\n \n if ( number.equals(\"0\")) {\n break;\n } else {\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }\n }\n for (int i = 0; i < list.size();i++) {\n System.out.println(list.get(i));\n }\n } catch ( IOException e) {\n System.out.println(e);\n }\n }", "try {\n String number;\n ArrayList<Integer> list = new ArrayList<>();\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n number = reader.readLine();\n \n if ( number.equals(\"0\")) {\n break;\n } else {\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }\n }\n for (int i = 0; i < list.size();i++) {\n System.out.println(list.get(i));\n }\n } catch ( IOException e) {\n System.out.println(e);\n }", "catch ( IOException e) {\n System.out.println(e);\n }", "IOException e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n String number;\n ArrayList<Integer> list = new ArrayList<>();\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n number = reader.readLine();\n \n if ( number.equals(\"0\")) {\n break;\n } else {\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }\n }\n for (int i = 0; i < list.size();i++) {\n System.out.println(list.get(i));\n }\n }", "String number;", "number", "ArrayList<Integer> list = new ArrayList<>();", "list", "new ArrayList<>()", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n number = reader.readLine();\n \n if ( number.equals(\"0\")) {\n break;\n } else {\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }\n }", "true", "{\n number = reader.readLine();\n \n if ( number.equals(\"0\")) {\n break;\n } else {\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }\n }", "number = reader.readLine()", "number", "reader.readLine()", "reader.readLine", "reader", "if ( number.equals(\"0\")) {\n break;\n } else {\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }", "number.equals(\"0\")", "number.equals", "number", "\"0\"", "{\n break;\n }", "break;", "{\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }", "int sum= 0;", "sum", "0", "int count = 0;", "count", "0", "for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < number.length()", "i", "number.length()", "number.length", "number", "i++", "i++", "i", "{\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n }", "{\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n }", "count = Character.getNumericValue(number.charAt(i))", "count", "Character.getNumericValue(number.charAt(i))", "Character.getNumericValue", "Character", "number.charAt(i)", "number.charAt", "number", "i", "sum += count", "sum", "count", "if (sum != 0) {\n list.add(sum);\n }", "sum != 0", "sum", "0", "{\n list.add(sum);\n }", "list.add(sum)", "list.add", "list", "sum", "for (int i = 0; i < list.size();i++) {\n System.out.println(list.get(i));\n }", "int i = 0;", "int i = 0;", "i", "0", "i < list.size()", "i", "list.size()", "list.size", "list", "i++", "i++", "i", "{\n System.out.println(list.get(i));\n }", "{\n System.out.println(list.get(i));\n }", "System.out.println(list.get(i))", "System.out.println", "System.out", "System", "System.out", "list.get(i)", "list.get", "list", "i", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n try {\n String number;\n ArrayList<Integer> list = new ArrayList<>();\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n number = reader.readLine();\n \n if ( number.equals(\"0\")) {\n break;\n } else {\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }\n }\n for (int i = 0; i < list.size();i++) {\n System.out.println(list.get(i));\n }\n } catch ( IOException e) {\n System.out.println(e);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try {\n String number;\n ArrayList<Integer> list = new ArrayList<>();\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n number = reader.readLine();\n \n if ( number.equals(\"0\")) {\n break;\n } else {\n int sum= 0;\n int count = 0;\n for (int i = 0 ; i < number.length() ; i++ ) {\n count = Character.getNumericValue(number.charAt(i));\n sum += count;\n } \n if (sum != 0) {\n list.add(sum);\n }\n }\n }\n for (int i = 0; i < list.size();i++) {\n System.out.println(list.get(i));\n }\n } catch ( IOException e) {\n System.out.println(e);\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { public static void main(String[] args) { try { String number; ArrayList<Integer> list = new ArrayList<>(); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); while (true) { number = reader.readLine(); if ( number.equals("0")) { break; } else { int sum= 0; int count = 0; for (int i = 0 ; i < number.length() ; i++ ) { count = Character.getNumericValue(number.charAt(i)); sum += count; } if (sum != 0) { list.add(sum); } } } for (int i = 0; i < list.size();i++) { System.out.println(list.get(i)); } } catch ( IOException e) { System.out.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 17, 4, 18, 13, 13, 14, 2, 13, 17, 30, 3, 4, 18, 18, 13, 13, 13, 12, 13, 30, 4, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 95, 11 ], [ 95, 12 ], [ 12, 13 ], [ 95, 14 ], [ 14, 15 ], [ 95, 16 ], [ 16, 17 ], [ 16, 18 ], [ 95, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 95, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 26, 28 ], [ 95, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 37, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 46, 56 ], [ 56, 57 ], [ 56, 58 ], [ 46, 59 ], [ 59, 60 ], [ 60, 61 ], [ 46, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 37, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 37, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 95, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 87, 92 ], [ 92, 93 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "import java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\npublic class Main {\n\n static InputStream is;\n static PrintWriter out;\n static String INPUT = \"\";\n\n final int INF = Integer.MAX_VALUE;\n final int MIN = Integer.MIN_VALUE;\n\n static void solve() {\n Scanner sc = new Scanner(System.in);\n while (true) {\n String line = sc.nextLine();\n int sum = 0;\n for (int i = 0, l = line.length(); i < l; i++) {\n sum += Integer.parseInt(\"\" + line.charAt(i));\n }\n if (sum == 0) {\n break;\n }\n System.out.println(sum);\n }\n }\n\n public static void main(String[] args) throws Exception {\n solve();\n }\n\n}", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n static InputStream is;\n static PrintWriter out;\n static String INPUT = \"\";\n\n final int INF = Integer.MAX_VALUE;\n final int MIN = Integer.MIN_VALUE;\n\n static void solve() {\n Scanner sc = new Scanner(System.in);\n while (true) {\n String line = sc.nextLine();\n int sum = 0;\n for (int i = 0, l = line.length(); i < l; i++) {\n sum += Integer.parseInt(\"\" + line.charAt(i));\n }\n if (sum == 0) {\n break;\n }\n System.out.println(sum);\n }\n }\n\n public static void main(String[] args) throws Exception {\n solve();\n }\n\n}", "Main", "static InputStream is;", "is", "static PrintWriter out;", "out", "static String INPUT = \"\";", "INPUT", "\"\"", "final int INF = Integer.MAX_VALUE;", "INF", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "final int MIN = Integer.MIN_VALUE;", "MIN", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "static void solve() {\n Scanner sc = new Scanner(System.in);\n while (true) {\n String line = sc.nextLine();\n int sum = 0;\n for (int i = 0, l = line.length(); i < l; i++) {\n sum += Integer.parseInt(\"\" + line.charAt(i));\n }\n if (sum == 0) {\n break;\n }\n System.out.println(sum);\n }\n }", "solve", "{\n Scanner sc = new Scanner(System.in);\n while (true) {\n String line = sc.nextLine();\n int sum = 0;\n for (int i = 0, l = line.length(); i < l; i++) {\n sum += Integer.parseInt(\"\" + line.charAt(i));\n }\n if (sum == 0) {\n break;\n }\n System.out.println(sum);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n String line = sc.nextLine();\n int sum = 0;\n for (int i = 0, l = line.length(); i < l; i++) {\n sum += Integer.parseInt(\"\" + line.charAt(i));\n }\n if (sum == 0) {\n break;\n }\n System.out.println(sum);\n }", "true", "{\n String line = sc.nextLine();\n int sum = 0;\n for (int i = 0, l = line.length(); i < l; i++) {\n sum += Integer.parseInt(\"\" + line.charAt(i));\n }\n if (sum == 0) {\n break;\n }\n System.out.println(sum);\n }", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "int sum = 0;", "sum", "0", "for (int i = 0, l = line.length(); i < l; i++) {\n sum += Integer.parseInt(\"\" + line.charAt(i));\n }", "int i = 0, l = line.length();", "int i = 0", "i", "0", "l = line.length();", "l", "line.length()", "line.length", "line", "i < l", "i", "l", "i++", "i++", "i", "{\n sum += Integer.parseInt(\"\" + line.charAt(i));\n }", "{\n sum += Integer.parseInt(\"\" + line.charAt(i));\n }", "sum += Integer.parseInt(\"\" + line.charAt(i))", "sum", "Integer.parseInt(\"\" + line.charAt(i))", "Integer.parseInt", "Integer", "\"\" + line.charAt(i)", "\"\"", "line.charAt(i)", "line.charAt", "line", "i", "if (sum == 0) {\n break;\n }", "sum == 0", "sum", "0", "{\n break;\n }", "break;", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "public static void main(String[] args) throws Exception {\n solve();\n }", "main", "{\n solve();\n }", "solve()", "solve", "String[] args", "args", "public class Main {\n\n static InputStream is;\n static PrintWriter out;\n static String INPUT = \"\";\n\n final int INF = Integer.MAX_VALUE;\n final int MIN = Integer.MIN_VALUE;\n\n static void solve() {\n Scanner sc = new Scanner(System.in);\n while (true) {\n String line = sc.nextLine();\n int sum = 0;\n for (int i = 0, l = line.length(); i < l; i++) {\n sum += Integer.parseInt(\"\" + line.charAt(i));\n }\n if (sum == 0) {\n break;\n }\n System.out.println(sum);\n }\n }\n\n public static void main(String[] args) throws Exception {\n solve();\n }\n\n}", "public class Main {\n\n static InputStream is;\n static PrintWriter out;\n static String INPUT = \"\";\n\n final int INF = Integer.MAX_VALUE;\n final int MIN = Integer.MIN_VALUE;\n\n static void solve() {\n Scanner sc = new Scanner(System.in);\n while (true) {\n String line = sc.nextLine();\n int sum = 0;\n for (int i = 0, l = line.length(); i < l; i++) {\n sum += Integer.parseInt(\"\" + line.charAt(i));\n }\n if (sum == 0) {\n break;\n }\n System.out.println(sum);\n }\n }\n\n public static void main(String[] args) throws Exception {\n solve();\n }\n\n}", "Main" ]
import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; public class Main { static InputStream is; static PrintWriter out; static String INPUT = ""; final int INF = Integer.MAX_VALUE; final int MIN = Integer.MIN_VALUE; static void solve() { Scanner sc = new Scanner(System.in); while (true) { String line = sc.nextLine(); int sum = 0; for (int i = 0, l = line.length(); i < l; i++) { sum += Integer.parseInt("" + line.charAt(i)); } if (sum == 0) { break; } System.out.println(sum); } } public static void main(String[] args) throws Exception { solve(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 40, 17, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 13, 14, 2, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 3, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 110, 8 ], [ 110, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 16, 19 ], [ 19, 20 ], [ 12, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 25, 27 ], [ 21, 28 ], [ 28, 29 ], [ 28, 30 ], [ 21, 31 ], [ 31, 32 ], [ 31, 33 ], [ 21, 34 ], [ 34, 35 ], [ 34, 36 ], [ 21, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 63, 76 ], [ 76, 77 ], [ 76, 78 ], [ 45, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 80, 84 ], [ 79, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 85, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 45, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 21, 104 ], [ 104, 105 ], [ 105, 106 ], [ 9, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "import java.io.InputStreamReader;\nimport java.io.LineNumberReader;\n\n/**\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_8_B\n * \n * @author eitatsuro\n * \n */\npublic class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n long x = 0;\n int digit = 0;\n int output = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n output = 0;\n for (int i = 0; i < inputStr.length(); i++) {\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }\n\n // ????????????\n // ?????°????°?????????????????????????????????§???????????????????????¨?????°????????§???\n if (inputStr.length() == 1) {\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }\n\n // ??¢???????????????\n System.out.println(output);\n\n\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.LineNumberReader;", "LineNumberReader", "java.io", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n long x = 0;\n int digit = 0;\n int output = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n output = 0;\n for (int i = 0; i < inputStr.length(); i++) {\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }\n\n // ????????????\n // ?????°????°?????????????????????????????????§???????????????????????¨?????°????????§???\n if (inputStr.length() == 1) {\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }\n\n // ??¢???????????????\n System.out.println(output);\n\n\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "Main", "public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n long x = 0;\n int digit = 0;\n int output = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n output = 0;\n for (int i = 0; i < inputStr.length(); i++) {\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }\n\n // ????????????\n // ?????°????°?????????????????????????????????§???????????????????????¨?????°????????§???\n if (inputStr.length() == 1) {\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }\n\n // ??¢???????????????\n System.out.println(output);\n\n\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }", "main", "{\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n long x = 0;\n int digit = 0;\n int output = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n output = 0;\n for (int i = 0; i < inputStr.length(); i++) {\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }\n\n // ????????????\n // ?????°????°?????????????????????????????????§???????????????????????¨?????°????????§???\n if (inputStr.length() == 1) {\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }\n\n // ??¢???????????????\n System.out.println(output);\n\n\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }", "try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n long x = 0;\n int digit = 0;\n int output = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n output = 0;\n for (int i = 0; i < inputStr.length(); i++) {\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }\n\n // ????????????\n // ?????°????°?????????????????????????????????§???????????????????????¨?????°????????§???\n if (inputStr.length() == 1) {\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }\n\n // ??¢???????????????\n System.out.println(output);\n\n\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }", "catch (Exception e) {\n System.exit(-1);\n }", "Exception e", "{\n System.exit(-1);\n }", "System.exit(-1)", "System.exit", "System", "-1", "1", "{\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n long x = 0;\n int digit = 0;\n int output = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n output = 0;\n for (int i = 0; i < inputStr.length(); i++) {\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }\n\n // ????????????\n // ?????°????°?????????????????????????????????§???????????????????????¨?????°????????§???\n if (inputStr.length() == 1) {\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }\n\n // ??¢???????????????\n System.out.println(output);\n\n\n }\n\n lineNumReader.close();\n }", "LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));", "lineNumReader", "new LineNumberReader(\n new InputStreamReader(System.in))", "String inputStr = null;", "inputStr", "null", "long x = 0;", "x", "0", "int digit = 0;", "digit", "0", "int output = 0;", "output", "0", "while ((inputStr = lineNumReader.readLine()) != null) {\n\n output = 0;\n for (int i = 0; i < inputStr.length(); i++) {\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }\n\n // ????????????\n // ?????°????°?????????????????????????????????§???????????????????????¨?????°????????§???\n if (inputStr.length() == 1) {\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }\n\n // ??¢???????????????\n System.out.println(output);\n\n\n }", "(inputStr = lineNumReader.readLine()) != null", "(inputStr = lineNumReader.readLine())", "inputStr", "lineNumReader.readLine()", "lineNumReader.readLine", "lineNumReader", "null", "{\n\n output = 0;\n for (int i = 0; i < inputStr.length(); i++) {\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }\n\n // ????????????\n // ?????°????°?????????????????????????????????§???????????????????????¨?????°????????§???\n if (inputStr.length() == 1) {\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }\n\n // ??¢???????????????\n System.out.println(output);\n\n\n }", "output = 0", "output", "0", "for (int i = 0; i < inputStr.length(); i++) {\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < inputStr.length()", "i", "inputStr.length()", "inputStr.length", "inputStr", "i++", "i++", "i", "{\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }", "{\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }", "digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)))", "digit", "Integer\n .parseInt(String.valueOf(inputStr.charAt(i)))", "Integer\n .parseInt", "Integer", "String.valueOf(inputStr.charAt(i))", "String.valueOf", "String", "inputStr.charAt(i)", "inputStr.charAt", "inputStr", "i", "output += digit", "output", "digit", "if (inputStr.length() == 1) {\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }", "inputStr.length() == 1", "inputStr.length()", "inputStr.length", "inputStr", "1", "{\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }", "x = Integer.parseInt(inputStr)", "x", "Integer.parseInt(inputStr)", "Integer.parseInt", "Integer", "inputStr", "if (x == 0) {\n // do nothing.\n break;\n }", "x == 0", "x", "0", "{\n // do nothing.\n break;\n }", "break;", "System.out.println(output)", "System.out.println", "System.out", "System", "System.out", "output", "lineNumReader.close()", "lineNumReader.close", "lineNumReader", "String[] args", "args", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n long x = 0;\n int digit = 0;\n int output = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n output = 0;\n for (int i = 0; i < inputStr.length(); i++) {\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }\n\n // ????????????\n // ?????°????°?????????????????????????????????§???????????????????????¨?????°????????§???\n if (inputStr.length() == 1) {\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }\n\n // ??¢???????????????\n System.out.println(output);\n\n\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n long x = 0;\n int digit = 0;\n int output = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n output = 0;\n for (int i = 0; i < inputStr.length(); i++) {\n digit = Integer\n .parseInt(String.valueOf(inputStr.charAt(i)));\n output += digit;\n }\n\n // ????????????\n // ?????°????°?????????????????????????????????§???????????????????????¨?????°????????§???\n if (inputStr.length() == 1) {\n x = Integer.parseInt(inputStr);\n if (x == 0) {\n // do nothing.\n break;\n }\n }\n\n // ??¢???????????????\n System.out.println(output);\n\n\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "Main" ]
import java.io.InputStreamReader; import java.io.LineNumberReader; /** * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_8_B * * @author eitatsuro * */ public class Main { public static void main(String[] args) { try { LineNumberReader lineNumReader = new LineNumberReader( new InputStreamReader(System.in)); String inputStr = null; long x = 0; int digit = 0; int output = 0; while ((inputStr = lineNumReader.readLine()) != null) { output = 0; for (int i = 0; i < inputStr.length(); i++) { digit = Integer .parseInt(String.valueOf(inputStr.charAt(i))); output += digit; } // ???????????? // ?????°????°?????????????????????????????????§???????????????????????¨?????°????????§??? if (inputStr.length() == 1) { x = Integer.parseInt(inputStr); if (x == 0) { // do nothing. break; } } // ??¢??????????????? System.out.println(output); } lineNumReader.close(); } catch (Exception e) { System.exit(-1); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 39, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 41, 13, 20, 18, 13, 13, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 18, 13, 13, 41, 13, 4, 18, 13, 4, 18, 13, 18, 13, 13, 14, 2, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 30, 40, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 18, 13, 13, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 166, 5 ], [ 166, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 14, 16 ], [ 14, 17 ], [ 14, 18 ], [ 14, 19 ], [ 14, 20 ], [ 14, 21 ], [ 14, 22 ], [ 14, 23 ], [ 14, 24 ], [ 14, 25 ], [ 14, 26 ], [ 14, 27 ], [ 14, 28 ], [ 14, 29 ], [ 14, 30 ], [ 14, 31 ], [ 14, 32 ], [ 14, 33 ], [ 14, 34 ], [ 14, 35 ], [ 14, 36 ], [ 14, 37 ], [ 14, 38 ], [ 14, 39 ], [ 14, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 62, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 77, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 100, 102 ], [ 91, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 111, 113 ], [ 91, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 115, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 114, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 8, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 140, 142 ], [ 133, 143 ], [ 143, 144 ], [ 144, 145 ], [ 133, 146 ], [ 147, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 148, 154 ], [ 154, 155 ], [ 154, 156 ], [ 148, 157 ], [ 157, 158 ], [ 157, 159 ], [ 8, 160 ], [ 160, 161 ], [ 161, 162 ], [ 6, 163 ], [ 163, 164 ], [ 0, 165 ], [ 165, 166 ], [ 165, 167 ] ]
[ "import java.util.Scanner;\n\n//20180510\n//04\n\npublic class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] list = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tint[] count = new int[list.length];\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString str = scanner.nextLine();\n\t\t\tchar[] cha = str.toCharArray();\n\n\t\t\tfor(int i = 0;i < cha.length;i++) {\n\t\t\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\tSystem.out.printf(\"%s : %d\\n\",list[j],count[j]);\n\t\t}\n\t\tscanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] list = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tint[] count = new int[list.length];\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString str = scanner.nextLine();\n\t\t\tchar[] cha = str.toCharArray();\n\n\t\t\tfor(int i = 0;i < cha.length;i++) {\n\t\t\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\tSystem.out.printf(\"%s : %d\\n\",list[j],count[j]);\n\t\t}\n\t\tscanner.close();\n }\n}", "Main", "public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] list = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tint[] count = new int[list.length];\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString str = scanner.nextLine();\n\t\t\tchar[] cha = str.toCharArray();\n\n\t\t\tfor(int i = 0;i < cha.length;i++) {\n\t\t\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\tSystem.out.printf(\"%s : %d\\n\",list[j],count[j]);\n\t\t}\n\t\tscanner.close();\n }", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] list = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tint[] count = new int[list.length];\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString str = scanner.nextLine();\n\t\t\tchar[] cha = str.toCharArray();\n\n\t\t\tfor(int i = 0;i < cha.length;i++) {\n\t\t\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\tSystem.out.printf(\"%s : %d\\n\",list[j],count[j]);\n\t\t}\n\t\tscanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String[] list = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};", "list", "{\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"}", "\"a\"", "\"b\"", "\"c\"", "\"d\"", "\"e\"", "\"f\"", "\"g\"", "\"h\"", "\"i\"", "\"j\"", "\"k\"", "\"l\"", "\"m\"", "\"n\"", "\"o\"", "\"p\"", "\"q\"", "\"r\"", "\"s\"", "\"t\"", "\"u\"", "\"v\"", "\"w\"", "\"x\"", "\"y\"", "\"z\"", "int[] count = new int[list.length];", "count", "new int[list.length]", "list.length", "list", "list.length", "while (scanner.hasNextLine()) {\n\t\t\tString str = scanner.nextLine();\n\t\t\tchar[] cha = str.toCharArray();\n\n\t\t\tfor(int i = 0;i < cha.length;i++) {\n\t\t\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "scanner.hasNextLine()", "scanner.hasNextLine", "scanner", "{\n\t\t\tString str = scanner.nextLine();\n\t\t\tchar[] cha = str.toCharArray();\n\n\t\t\tfor(int i = 0;i < cha.length;i++) {\n\t\t\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String str = scanner.nextLine();", "str", "scanner.nextLine()", "scanner.nextLine", "scanner", "char[] cha = str.toCharArray();", "cha", "str.toCharArray()", "str.toCharArray", "str", "for(int i = 0;i < cha.length;i++) {\n\t\t\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < cha.length", "i", "cha.length", "cha", "cha.length", "i++", "i++", "i", "{\n\t\t\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "for(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < list.length", "j", "list.length", "list", "list.length", "j++", "j++", "j", "{\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}", "String up = String.valueOf(Character.toUpperCase(cha[i]));", "up", "String.valueOf(Character.toUpperCase(cha[i]))", "String.valueOf", "String", "Character.toUpperCase(cha[i])", "Character.toUpperCase", "Character", "cha[i]", "cha", "i", "String lo = String.valueOf(Character.toLowerCase(cha[i]));", "lo", "String.valueOf(Character.toLowerCase(cha[i]))", "String.valueOf", "String", "Character.toLowerCase(cha[i])", "Character.toLowerCase", "Character", "cha[i]", "cha", "i", "if(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}", "list[j].equals(up) || list[j].equals(lo)", "list[j].equals(up)", "list[j].equals", "list[j]", "list", "j", "up", "list[j].equals(lo)", "list[j].equals", "list[j]", "list", "j", "lo", "{\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}", "count[j]++", "count[j]", "count", "j", "for(int j = 0;j < list.length;j++) {\n\t\t\tSystem.out.printf(\"%s : %d\\n\",list[j],count[j]);\n\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < list.length", "j", "list.length", "list", "list.length", "j++", "j++", "j", "{\n\t\t\tSystem.out.printf(\"%s : %d\\n\",list[j],count[j]);\n\t\t}", "{\n\t\t\tSystem.out.printf(\"%s : %d\\n\",list[j],count[j]);\n\t\t}", "System.out.printf(\"%s : %d\\n\",list[j],count[j])", "System.out.printf", "System.out", "System", "System.out", "\"%s : %d\\n\"", "list[j]", "list", "j", "count[j]", "count", "j", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] list = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tint[] count = new int[list.length];\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString str = scanner.nextLine();\n\t\t\tchar[] cha = str.toCharArray();\n\n\t\t\tfor(int i = 0;i < cha.length;i++) {\n\t\t\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\tSystem.out.printf(\"%s : %d\\n\",list[j],count[j]);\n\t\t}\n\t\tscanner.close();\n }\n}", "public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] list = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tint[] count = new int[list.length];\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString str = scanner.nextLine();\n\t\t\tchar[] cha = str.toCharArray();\n\n\t\t\tfor(int i = 0;i < cha.length;i++) {\n\t\t\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\t\t\tString up = String.valueOf(Character.toUpperCase(cha[i]));\n\t\t\t\t\tString lo = String.valueOf(Character.toLowerCase(cha[i]));\n\t\t\t\t\tif(list[j].equals(up) || list[j].equals(lo)) {\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j = 0;j < list.length;j++) {\n\t\t\tSystem.out.printf(\"%s : %d\\n\",list[j],count[j]);\n\t\t}\n\t\tscanner.close();\n }\n}", "Main" ]
import java.util.Scanner; //20180510 //04 public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String[] list = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"}; int[] count = new int[list.length]; while (scanner.hasNextLine()) { String str = scanner.nextLine(); char[] cha = str.toCharArray(); for(int i = 0;i < cha.length;i++) { for(int j = 0;j < list.length;j++) { String up = String.valueOf(Character.toUpperCase(cha[i])); String lo = String.valueOf(Character.toLowerCase(cha[i])); if(list[j].equals(up) || list[j].equals(lo)) { count[j]++; } } } } for(int j = 0;j < list.length;j++) { System.out.printf("%s : %d\n",list[j],count[j]); } scanner.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 2, 2, 17, 17, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 13, 17, 0, 18, 13, 2, 4, 18, 13, 13, 17, 17, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 13, 17, 0, 18, 13, 2, 4, 18, 13, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 2, 2, 17, 17, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 2, 17, 13, 17, 18, 13, 13, 4, 18, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 131, 5 ], [ 131, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 53, 58 ], [ 45, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 59, 68 ], [ 45, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 70, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 77, 82 ], [ 69, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 86, 91 ], [ 83, 92 ], [ 8, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 93, 105 ], [ 105, 106 ], [ 106, 107 ], [ 93, 108 ], [ 109, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 116, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 116, 121 ], [ 121, 122 ], [ 121, 123 ], [ 8, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 6, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] ans = new int['z' - 'a' + 1];\n\t\twhile (scan.hasNextLine()) {\n\t\t\tString ins = scan.nextLine();\n\t\t\tfor (int i = 0; i < ins.length(); i++) {\n\t\t\t\tif (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 'z' - 'a' + 1; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + ans[i]);\n\t\t}\n\n\t\tSystem.exit(0);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] ans = new int['z' - 'a' + 1];\n\t\twhile (scan.hasNextLine()) {\n\t\t\tString ins = scan.nextLine();\n\t\t\tfor (int i = 0; i < ins.length(); i++) {\n\t\t\t\tif (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 'z' - 'a' + 1; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + ans[i]);\n\t\t}\n\n\t\tSystem.exit(0);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] ans = new int['z' - 'a' + 1];\n\t\twhile (scan.hasNextLine()) {\n\t\t\tString ins = scan.nextLine();\n\t\t\tfor (int i = 0; i < ins.length(); i++) {\n\t\t\t\tif (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 'z' - 'a' + 1; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + ans[i]);\n\t\t}\n\n\t\tSystem.exit(0);\n\t}", "main", "{\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] ans = new int['z' - 'a' + 1];\n\t\twhile (scan.hasNextLine()) {\n\t\t\tString ins = scan.nextLine();\n\t\t\tfor (int i = 0; i < ins.length(); i++) {\n\t\t\t\tif (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 'z' - 'a' + 1; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + ans[i]);\n\t\t}\n\n\t\tSystem.exit(0);\n\t}", "@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int[] ans = new int['z' - 'a' + 1];", "ans", "new int['z' - 'a' + 1]", "'z' - 'a' + 1", "'z' - 'a'", "'z'", "'a'", "1", "while (scan.hasNextLine()) {\n\t\t\tString ins = scan.nextLine();\n\t\t\tfor (int i = 0; i < ins.length(); i++) {\n\t\t\t\tif (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;\n\t\t\t}\n\t\t}", "scan.hasNextLine()", "scan.hasNextLine", "scan", "{\n\t\t\tString ins = scan.nextLine();\n\t\t\tfor (int i = 0; i < ins.length(); i++) {\n\t\t\t\tif (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;\n\t\t\t}\n\t\t}", "String ins = scan.nextLine();", "ins", "scan.nextLine()", "scan.nextLine", "scan", "for (int i = 0; i < ins.length(); i++) {\n\t\t\t\tif (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < ins.length()", "i", "ins.length()", "ins.length", "ins", "i++", "i++", "i", "{\n\t\t\t\tif (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;\n\t\t\t}", "{\n\t\t\t\tif (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;\n\t\t\t}", "if (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;", "ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z'", "ins.charAt(i) >= 'a'", "ins.charAt(i)", "ins.charAt", "ins", "i", "'a'", "ins.charAt(i) <= 'z'", "ins.charAt(i)", "ins.charAt", "ins", "i", "'z'", "ans[ins.charAt(i) - 'a'] += 1", "ans[ins.charAt(i) - 'a']", "ans", "ins.charAt(i) - 'a'", "ins.charAt(i)", "ins.charAt", "ins", "i", "'a'", "1", "if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;", "ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z'", "ins.charAt(i) >= 'A'", "ins.charAt(i)", "ins.charAt", "ins", "i", "'A'", "ins.charAt(i) <= 'Z'", "ins.charAt(i)", "ins.charAt", "ins", "i", "'Z'", "ans[ins.charAt(i) - 'A'] += 1", "ans[ins.charAt(i) - 'A']", "ans", "ins.charAt(i) - 'A'", "ins.charAt(i)", "ins.charAt", "ins", "i", "'A'", "1", "for (int i = 0; i < 'z' - 'a' + 1; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + ans[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 'z' - 'a' + 1", "i", "'z' - 'a' + 1", "'z' - 'a'", "'z'", "'a'", "1", "i++", "i++", "i", "{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + ans[i]);\n\t\t}", "{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + ans[i]);\n\t\t}", "System.out.println((char)('a' + i) + \" : \" + ans[i])", "System.out.println", "System.out", "System", "System.out", "(char)('a' + i) + \" : \" + ans[i]", "(char)('a' + i) + \" : \" + ans[i]", "(char)('a' + i)", "'a'", "i", "\" : \"", "ans[i]", "ans", "i", "System.exit(0)", "System.exit", "System", "0", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] ans = new int['z' - 'a' + 1];\n\t\twhile (scan.hasNextLine()) {\n\t\t\tString ins = scan.nextLine();\n\t\t\tfor (int i = 0; i < ins.length(); i++) {\n\t\t\t\tif (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 'z' - 'a' + 1; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + ans[i]);\n\t\t}\n\n\t\tSystem.exit(0);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] ans = new int['z' - 'a' + 1];\n\t\twhile (scan.hasNextLine()) {\n\t\t\tString ins = scan.nextLine();\n\t\t\tfor (int i = 0; i < ins.length(); i++) {\n\t\t\t\tif (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z')\n\t\t\t\t\tans[ins.charAt(i) - 'a'] += 1;\n\t\t\t\telse if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z')\n\t\t\t\t\tans[ins.charAt(i) - 'A'] += 1;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 'z' - 'a' + 1; i++) {\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + ans[i]);\n\t\t}\n\n\t\tSystem.exit(0);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner scan = new Scanner(System.in); int[] ans = new int['z' - 'a' + 1]; while (scan.hasNextLine()) { String ins = scan.nextLine(); for (int i = 0; i < ins.length(); i++) { if (ins.charAt(i) >= 'a' && ins.charAt(i) <= 'z') ans[ins.charAt(i) - 'a'] += 1; else if (ins.charAt(i) >= 'A' && ins.charAt(i) <= 'Z') ans[ins.charAt(i) - 'A'] += 1; } } for (int i = 0; i < 'z' - 'a' + 1; i++) { System.out.println((char)('a' + i) + " : " + ans[i]); } System.exit(0); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 20, 17, 41, 13, 17, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 14, 2, 2, 17, 13, 2, 13, 17, 30, 40, 18, 13, 2, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 40, 18, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 40, 13, 17, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 114, 5 ], [ 114, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 32, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 53, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 83, 93 ], [ 93, 94 ], [ 94, 95 ], [ 83, 96 ], [ 97, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 6, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString tmp = \"\";\n\t\tint count[] = new int[26];\n\t\tchar al = 'a';\n\t\twhile(sc.hasNext()){\n\t\t\ttmp += sc.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < tmp.length(); i++){\n\t\t\tint c = tmp.charAt(i);\n\t\t\tif('a' <= c && c <= 'z'){\n\t\t\t\tcount[c - 'a']++;\n\t\t\t}else if('A' <= c && c <= 'Z'){\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\tSystem.out.println(al++ + \" : \" + count[i]);\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString tmp = \"\";\n\t\tint count[] = new int[26];\n\t\tchar al = 'a';\n\t\twhile(sc.hasNext()){\n\t\t\ttmp += sc.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < tmp.length(); i++){\n\t\t\tint c = tmp.charAt(i);\n\t\t\tif('a' <= c && c <= 'z'){\n\t\t\t\tcount[c - 'a']++;\n\t\t\t}else if('A' <= c && c <= 'Z'){\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\tSystem.out.println(al++ + \" : \" + count[i]);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString tmp = \"\";\n\t\tint count[] = new int[26];\n\t\tchar al = 'a';\n\t\twhile(sc.hasNext()){\n\t\t\ttmp += sc.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < tmp.length(); i++){\n\t\t\tint c = tmp.charAt(i);\n\t\t\tif('a' <= c && c <= 'z'){\n\t\t\t\tcount[c - 'a']++;\n\t\t\t}else if('A' <= c && c <= 'Z'){\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\tSystem.out.println(al++ + \" : \" + count[i]);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString tmp = \"\";\n\t\tint count[] = new int[26];\n\t\tchar al = 'a';\n\t\twhile(sc.hasNext()){\n\t\t\ttmp += sc.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < tmp.length(); i++){\n\t\t\tint c = tmp.charAt(i);\n\t\t\tif('a' <= c && c <= 'z'){\n\t\t\t\tcount[c - 'a']++;\n\t\t\t}else if('A' <= c && c <= 'Z'){\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\tSystem.out.println(al++ + \" : \" + count[i]);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String tmp = \"\";", "tmp", "\"\"", "int count[] = new int[26];", "count", "new int[26]", "26", "char al = 'a';", "al", "'a'", "while(sc.hasNext()){\n\t\t\ttmp += sc.nextLine();\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\ttmp += sc.nextLine();\n\t\t}", "tmp += sc.nextLine()", "tmp", "sc.nextLine()", "sc.nextLine", "sc", "for(int i = 0; i < tmp.length(); i++){\n\t\t\tint c = tmp.charAt(i);\n\t\t\tif('a' <= c && c <= 'z'){\n\t\t\t\tcount[c - 'a']++;\n\t\t\t}else if('A' <= c && c <= 'Z'){\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < tmp.length()", "i", "tmp.length()", "tmp.length", "tmp", "i++", "i++", "i", "{\n\t\t\tint c = tmp.charAt(i);\n\t\t\tif('a' <= c && c <= 'z'){\n\t\t\t\tcount[c - 'a']++;\n\t\t\t}else if('A' <= c && c <= 'Z'){\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}\n\t\t}", "{\n\t\t\tint c = tmp.charAt(i);\n\t\t\tif('a' <= c && c <= 'z'){\n\t\t\t\tcount[c - 'a']++;\n\t\t\t}else if('A' <= c && c <= 'Z'){\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}\n\t\t}", "int c = tmp.charAt(i);", "c", "tmp.charAt(i)", "tmp.charAt", "tmp", "i", "if('a' <= c && c <= 'z'){\n\t\t\t\tcount[c - 'a']++;\n\t\t\t}else if('A' <= c && c <= 'Z'){\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}", "'a' <= c && c <= 'z'", "'a' <= c", "'a'", "c", "c <= 'z'", "c", "'z'", "{\n\t\t\t\tcount[c - 'a']++;\n\t\t\t}", "count[c - 'a']++", "count[c - 'a']", "count", "c - 'a'", "c", "'a'", "if('A' <= c && c <= 'Z'){\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}", "'A' <= c && c <= 'Z'", "'A' <= c", "'A'", "c", "c <= 'Z'", "c", "'Z'", "{\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}", "count[c - 'A']++", "count[c - 'A']", "count", "c - 'A'", "c", "'A'", "for(int i = 0; i < count.length; i++){\n\t\t\tSystem.out.println(al++ + \" : \" + count[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count.length", "i", "count.length", "count", "count.length", "i++", "i++", "i", "{\n\t\t\tSystem.out.println(al++ + \" : \" + count[i]);\n\t\t}", "{\n\t\t\tSystem.out.println(al++ + \" : \" + count[i]);\n\t\t}", "System.out.println(al++ + \" : \" + count[i])", "System.out.println", "System.out", "System", "System.out", "al++ + \" : \" + count[i]", "al++ + \" : \" + count[i]", "al++", "al", "\" : \"", "count[i]", "count", "i", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString tmp = \"\";\n\t\tint count[] = new int[26];\n\t\tchar al = 'a';\n\t\twhile(sc.hasNext()){\n\t\t\ttmp += sc.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < tmp.length(); i++){\n\t\t\tint c = tmp.charAt(i);\n\t\t\tif('a' <= c && c <= 'z'){\n\t\t\t\tcount[c - 'a']++;\n\t\t\t}else if('A' <= c && c <= 'Z'){\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\tSystem.out.println(al++ + \" : \" + count[i]);\n\t\t}\n\t}\n\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString tmp = \"\";\n\t\tint count[] = new int[26];\n\t\tchar al = 'a';\n\t\twhile(sc.hasNext()){\n\t\t\ttmp += sc.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < tmp.length(); i++){\n\t\t\tint c = tmp.charAt(i);\n\t\t\tif('a' <= c && c <= 'z'){\n\t\t\t\tcount[c - 'a']++;\n\t\t\t}else if('A' <= c && c <= 'Z'){\n\t\t\t\tcount[c - 'A']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\tSystem.out.println(al++ + \" : \" + count[i]);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String tmp = ""; int count[] = new int[26]; char al = 'a'; while(sc.hasNext()){ tmp += sc.nextLine(); } for(int i = 0; i < tmp.length(); i++){ int c = tmp.charAt(i); if('a' <= c && c <= 'z'){ count[c - 'a']++; }else if('A' <= c && c <= 'Z'){ count[c - 'A']++; } } for(int i = 0; i < count.length; i++){ System.out.println(al++ + " : " + count[i]); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 20, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 13, 30, 0, 18, 13, 13, 17, 40, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 13, 17, 18, 13, 13, 40, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 118, 8 ], [ 118, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 44, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 44, 57 ], [ 57, 58 ], [ 57, 59 ], [ 44, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 72, 83 ], [ 83, 84 ], [ 11, 85 ], [ 85, 86 ], [ 85, 87 ], [ 11, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 96, 97 ], [ 97, 98 ], [ 88, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 107, 107 ], [ 107, 108 ], [ 107, 109 ], [ 107, 110 ], [ 110, 111 ], [ 110, 112 ], [ 100, 113 ], [ 113, 114 ], [ 9, 115 ], [ 115, 116 ], [ 0, 117 ], [ 117, 118 ], [ 117, 119 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); \n String str;\n\n int[] num = new int[26];\n \n while((str = br.readLine()) !=null){\n for(int i=0;i<str.length();i++){\n char cc = str.charAt(i);\n cc = Character.toLowerCase(cc);\n //System.out.println(cc);\n char x = 'a';\n for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }\n }\n }\n \n char x = 'a';\n for(int i=0;i<26;i++){\n System.out.println(x + \" : \" + num[i]);\n x++;\n } \n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); \n String str;\n\n int[] num = new int[26];\n \n while((str = br.readLine()) !=null){\n for(int i=0;i<str.length();i++){\n char cc = str.charAt(i);\n cc = Character.toLowerCase(cc);\n //System.out.println(cc);\n char x = 'a';\n for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }\n }\n }\n \n char x = 'a';\n for(int i=0;i<26;i++){\n System.out.println(x + \" : \" + num[i]);\n x++;\n } \n }\n}", "Main", "public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); \n String str;\n\n int[] num = new int[26];\n \n while((str = br.readLine()) !=null){\n for(int i=0;i<str.length();i++){\n char cc = str.charAt(i);\n cc = Character.toLowerCase(cc);\n //System.out.println(cc);\n char x = 'a';\n for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }\n }\n }\n \n char x = 'a';\n for(int i=0;i<26;i++){\n System.out.println(x + \" : \" + num[i]);\n x++;\n } \n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); \n String str;\n\n int[] num = new int[26];\n \n while((str = br.readLine()) !=null){\n for(int i=0;i<str.length();i++){\n char cc = str.charAt(i);\n cc = Character.toLowerCase(cc);\n //System.out.println(cc);\n char x = 'a';\n for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }\n }\n }\n \n char x = 'a';\n for(int i=0;i<26;i++){\n System.out.println(x + \" : \" + num[i]);\n x++;\n } \n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "int[] num = new int[26];", "num", "new int[26]", "26", "while((str = br.readLine()) !=null){\n for(int i=0;i<str.length();i++){\n char cc = str.charAt(i);\n cc = Character.toLowerCase(cc);\n //System.out.println(cc);\n char x = 'a';\n for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }\n }\n }", "(str = br.readLine()) !=null", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "null", "{\n for(int i=0;i<str.length();i++){\n char cc = str.charAt(i);\n cc = Character.toLowerCase(cc);\n //System.out.println(cc);\n char x = 'a';\n for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }\n }\n }", "for(int i=0;i<str.length();i++){\n char cc = str.charAt(i);\n cc = Character.toLowerCase(cc);\n //System.out.println(cc);\n char x = 'a';\n for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n char cc = str.charAt(i);\n cc = Character.toLowerCase(cc);\n //System.out.println(cc);\n char x = 'a';\n for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }\n }", "{\n char cc = str.charAt(i);\n cc = Character.toLowerCase(cc);\n //System.out.println(cc);\n char x = 'a';\n for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }\n }", "char cc = str.charAt(i);", "cc", "str.charAt(i)", "str.charAt", "str", "i", "cc = Character.toLowerCase(cc)", "cc", "Character.toLowerCase(cc)", "Character.toLowerCase", "Character", "cc", "char x = 'a';", "x", "'a'", "for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }", "int j=0;", "int j=0;", "j", "0", "j<26", "j", "26", "j++", "j++", "j", "{\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }", "{\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }", "if( x == cc){\n num[j] +=1;\n }", "x == cc", "x", "cc", "{\n num[j] +=1;\n }", "num[j] +=1", "num[j]", "num", "j", "1", "x++", "x", "char x = 'a';", "x", "'a'", "for(int i=0;i<26;i++){\n System.out.println(x + \" : \" + num[i]);\n x++;\n }", "int i=0;", "int i=0;", "i", "0", "i<26", "i", "26", "i++", "i++", "i", "{\n System.out.println(x + \" : \" + num[i]);\n x++;\n }", "{\n System.out.println(x + \" : \" + num[i]);\n x++;\n }", "System.out.println(x + \" : \" + num[i])", "System.out.println", "System.out", "System", "System.out", "x + \" : \" + num[i]", "x + \" : \" + num[i]", "x", "\" : \"", "num[i]", "num", "i", "x++", "x", "String[] args", "args", "public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); \n String str;\n\n int[] num = new int[26];\n \n while((str = br.readLine()) !=null){\n for(int i=0;i<str.length();i++){\n char cc = str.charAt(i);\n cc = Character.toLowerCase(cc);\n //System.out.println(cc);\n char x = 'a';\n for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }\n }\n }\n \n char x = 'a';\n for(int i=0;i<26;i++){\n System.out.println(x + \" : \" + num[i]);\n x++;\n } \n }\n}", "public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); \n String str;\n\n int[] num = new int[26];\n \n while((str = br.readLine()) !=null){\n for(int i=0;i<str.length();i++){\n char cc = str.charAt(i);\n cc = Character.toLowerCase(cc);\n //System.out.println(cc);\n char x = 'a';\n for(int j=0;j<26;j++){\n if( x == cc){\n num[j] +=1;\n }\n x++;\n }\n }\n }\n \n char x = 'a';\n for(int i=0;i<26;i++){\n System.out.println(x + \" : \" + num[i]);\n x++;\n } \n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; int[] num = new int[26]; while((str = br.readLine()) !=null){ for(int i=0;i<str.length();i++){ char cc = str.charAt(i); cc = Character.toLowerCase(cc); //System.out.println(cc); char x = 'a'; for(int j=0;j<26;j++){ if( x == cc){ num[j] +=1; } x++; } } } char x = 'a'; for(int i=0;i<26;i++){ System.out.println(x + " : " + num[i]); x++; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 17, 17, 41, 13, 20, 18, 13, 13, 41, 13, 4, 18, 13, 42, 2, 2, 13, 17, 40, 4, 18, 17, 13, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 4, 18, 13, 13, 14, 2, 2, 13, 13, 2, 13, 2, 13, 18, 13, 13, 30, 40, 18, 13, 2, 13, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 18, 13, 13, 17, 18, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 151, 11 ], [ 151, 12 ], [ 12, 13 ], [ 12, 14 ], [ 151, 15 ], [ 15, 16 ], [ 15, 17 ], [ 151, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 20, 33 ], [ 33, 34 ], [ 33, 35 ], [ 36, 37 ], [ 36, 38 ], [ 20, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 20, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 69, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 69, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 69, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 89, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 54, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 20, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 113, 123 ], [ 123, 124 ], [ 124, 125 ], [ 113, 126 ], [ 127, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 134, 139 ], [ 139, 140 ], [ 139, 141 ], [ 151, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 142, 148 ], [ 148, 149 ], [ 0, 150 ], [ 150, 151 ], [ 150, 152 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tstatic final int hashA = 97;\n\tstatic final int hashPeriod = 46;\n\tvoid run() throws IOException{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".split(\"\");\n\t\tint[] cntAlpha = new int[alphabet.length];\n\t\tString txt = br.readLine();\n\t\twhile( txt != null && ! \"\".equals(txt) ){\n\t\t\tfor (int i = 0;i < txt.length();i++){\n\t\t\t\ttxt = txt.toLowerCase();\n\t\t\t\tchar ch = txt.charAt(i);\n\t\t\t\tint hash = String.valueOf(ch).hashCode();\n\t\t\t\tif(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttxt = br.readLine();\n\t\t}\n\t\tfor(int i = 0;i < alphabet.length;i++){\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + cntAlpha[i]);\n\t\t}\n\t}\n\tpublic static void main(String args[]) throws IOException{\n\t\tnew Main().run();\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tstatic final int hashA = 97;\n\tstatic final int hashPeriod = 46;\n\tvoid run() throws IOException{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".split(\"\");\n\t\tint[] cntAlpha = new int[alphabet.length];\n\t\tString txt = br.readLine();\n\t\twhile( txt != null && ! \"\".equals(txt) ){\n\t\t\tfor (int i = 0;i < txt.length();i++){\n\t\t\t\ttxt = txt.toLowerCase();\n\t\t\t\tchar ch = txt.charAt(i);\n\t\t\t\tint hash = String.valueOf(ch).hashCode();\n\t\t\t\tif(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttxt = br.readLine();\n\t\t}\n\t\tfor(int i = 0;i < alphabet.length;i++){\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + cntAlpha[i]);\n\t\t}\n\t}\n\tpublic static void main(String args[]) throws IOException{\n\t\tnew Main().run();\n\t}\n}", "Main", "static final int hashA = 97;", "hashA", "97", "static final int hashPeriod = 46;", "hashPeriod", "46", "void run() throws IOException{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".split(\"\");\n\t\tint[] cntAlpha = new int[alphabet.length];\n\t\tString txt = br.readLine();\n\t\twhile( txt != null && ! \"\".equals(txt) ){\n\t\t\tfor (int i = 0;i < txt.length();i++){\n\t\t\t\ttxt = txt.toLowerCase();\n\t\t\t\tchar ch = txt.charAt(i);\n\t\t\t\tint hash = String.valueOf(ch).hashCode();\n\t\t\t\tif(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttxt = br.readLine();\n\t\t}\n\t\tfor(int i = 0;i < alphabet.length;i++){\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + cntAlpha[i]);\n\t\t}\n\t}", "run", "{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".split(\"\");\n\t\tint[] cntAlpha = new int[alphabet.length];\n\t\tString txt = br.readLine();\n\t\twhile( txt != null && ! \"\".equals(txt) ){\n\t\t\tfor (int i = 0;i < txt.length();i++){\n\t\t\t\ttxt = txt.toLowerCase();\n\t\t\t\tchar ch = txt.charAt(i);\n\t\t\t\tint hash = String.valueOf(ch).hashCode();\n\t\t\t\tif(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttxt = br.readLine();\n\t\t}\n\t\tfor(int i = 0;i < alphabet.length;i++){\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + cntAlpha[i]);\n\t\t}\n\t}", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "String[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".split(\"\");", "alphabet", "\"abcdefghijklmnopqrstuvwxyz\".split(\"\")", "\"abcdefghijklmnopqrstuvwxyz\".split", "\"abcdefghijklmnopqrstuvwxyz\"", "\"\"", "int[] cntAlpha = new int[alphabet.length];", "cntAlpha", "new int[alphabet.length]", "alphabet.length", "alphabet", "alphabet.length", "String txt = br.readLine();", "txt", "br.readLine()", "br.readLine", "br", "while( txt != null && ! \"\".equals(txt) ){\n\t\t\tfor (int i = 0;i < txt.length();i++){\n\t\t\t\ttxt = txt.toLowerCase();\n\t\t\t\tchar ch = txt.charAt(i);\n\t\t\t\tint hash = String.valueOf(ch).hashCode();\n\t\t\t\tif(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttxt = br.readLine();\n\t\t}", "txt != null && ! \"\".equals(txt)", "txt != null", "txt", "null", "! \"\".equals(txt)", "\"\".equals(txt)", "\"\".equals", "\"\"", "txt", "{\n\t\t\tfor (int i = 0;i < txt.length();i++){\n\t\t\t\ttxt = txt.toLowerCase();\n\t\t\t\tchar ch = txt.charAt(i);\n\t\t\t\tint hash = String.valueOf(ch).hashCode();\n\t\t\t\tif(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttxt = br.readLine();\n\t\t}", "for (int i = 0;i < txt.length();i++){\n\t\t\t\ttxt = txt.toLowerCase();\n\t\t\t\tchar ch = txt.charAt(i);\n\t\t\t\tint hash = String.valueOf(ch).hashCode();\n\t\t\t\tif(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < txt.length()", "i", "txt.length()", "txt.length", "txt", "i++", "i++", "i", "{\n\t\t\t\ttxt = txt.toLowerCase();\n\t\t\t\tchar ch = txt.charAt(i);\n\t\t\t\tint hash = String.valueOf(ch).hashCode();\n\t\t\t\tif(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\ttxt = txt.toLowerCase();\n\t\t\t\tchar ch = txt.charAt(i);\n\t\t\t\tint hash = String.valueOf(ch).hashCode();\n\t\t\t\tif(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}\n\t\t\t}", "txt = txt.toLowerCase()", "txt", "txt.toLowerCase()", "txt.toLowerCase", "txt", "char ch = txt.charAt(i);", "ch", "txt.charAt(i)", "txt.charAt", "txt", "i", "int hash = String.valueOf(ch).hashCode();", "hash", "String.valueOf(ch).hashCode()", "String.valueOf(ch).hashCode", "String.valueOf(ch)", "String.valueOf", "String", "ch", "if(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}", "hash >= hashA && hash < hashA + alphabet.length", "hash >= hashA", "hash", "hashA", "hash < hashA + alphabet.length", "hash", "hashA + alphabet.length", "hashA", "alphabet.length", "alphabet", "alphabet.length", "{\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}", "cntAlpha[hash - hashA]++", "cntAlpha[hash - hashA]", "cntAlpha", "hash - hashA", "hash", "hashA", "txt = br.readLine()", "txt", "br.readLine()", "br.readLine", "br", "for(int i = 0;i < alphabet.length;i++){\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + cntAlpha[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < alphabet.length", "i", "alphabet.length", "alphabet", "alphabet.length", "i++", "i++", "i", "{\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + cntAlpha[i]);\n\t\t}", "{\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + cntAlpha[i]);\n\t\t}", "System.out.println(alphabet[i] + \" : \" + cntAlpha[i])", "System.out.println", "System.out", "System", "System.out", "alphabet[i] + \" : \" + cntAlpha[i]", "alphabet[i] + \" : \" + cntAlpha[i]", "alphabet[i]", "alphabet", "i", "\" : \"", "cntAlpha[i]", "cntAlpha", "i", "public static void main(String args[]) throws IOException{\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String args[]", "args", "public class Main {\n\tstatic final int hashA = 97;\n\tstatic final int hashPeriod = 46;\n\tvoid run() throws IOException{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".split(\"\");\n\t\tint[] cntAlpha = new int[alphabet.length];\n\t\tString txt = br.readLine();\n\t\twhile( txt != null && ! \"\".equals(txt) ){\n\t\t\tfor (int i = 0;i < txt.length();i++){\n\t\t\t\ttxt = txt.toLowerCase();\n\t\t\t\tchar ch = txt.charAt(i);\n\t\t\t\tint hash = String.valueOf(ch).hashCode();\n\t\t\t\tif(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttxt = br.readLine();\n\t\t}\n\t\tfor(int i = 0;i < alphabet.length;i++){\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + cntAlpha[i]);\n\t\t}\n\t}\n\tpublic static void main(String args[]) throws IOException{\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\tstatic final int hashA = 97;\n\tstatic final int hashPeriod = 46;\n\tvoid run() throws IOException{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".split(\"\");\n\t\tint[] cntAlpha = new int[alphabet.length];\n\t\tString txt = br.readLine();\n\t\twhile( txt != null && ! \"\".equals(txt) ){\n\t\t\tfor (int i = 0;i < txt.length();i++){\n\t\t\t\ttxt = txt.toLowerCase();\n\t\t\t\tchar ch = txt.charAt(i);\n\t\t\t\tint hash = String.valueOf(ch).hashCode();\n\t\t\t\tif(hash >= hashA && hash < hashA + alphabet.length){\n\t\t\t\t\tcntAlpha[hash - hashA]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttxt = br.readLine();\n\t\t}\n\t\tfor(int i = 0;i < alphabet.length;i++){\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + cntAlpha[i]);\n\t\t}\n\t}\n\tpublic static void main(String args[]) throws IOException{\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { static final int hashA = 97; static final int hashPeriod = 46; void run() throws IOException{ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String[] alphabet = "abcdefghijklmnopqrstuvwxyz".split(""); int[] cntAlpha = new int[alphabet.length]; String txt = br.readLine(); while( txt != null && ! "".equals(txt) ){ for (int i = 0;i < txt.length();i++){ txt = txt.toLowerCase(); char ch = txt.charAt(i); int hash = String.valueOf(ch).hashCode(); if(hash >= hashA && hash < hashA + alphabet.length){ cntAlpha[hash - hashA]++; } } txt = br.readLine(); } for(int i = 0;i < alphabet.length;i++){ System.out.println(alphabet[i] + " : " + cntAlpha[i]); } } public static void main(String args[]) throws IOException{ new Main().run(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 13, 17, 30, 0, 13, 2, 4, 18, 13, 13, 17, 40, 18, 13, 13, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 13, 17, 30, 0, 13, 2, 4, 18, 13, 13, 17, 40, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 2, 17, 13, 17, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 132, 8 ], [ 132, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 19 ], [ 19, 20 ], [ 11, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 33, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 49, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 48, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 62, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 48, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 77, 82 ], [ 76, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 83, 88 ], [ 75, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 92, 97 ], [ 89, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 11, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 107, 109 ], [ 102, 110 ], [ 110, 111 ], [ 111, 112 ], [ 102, 113 ], [ 114, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 9, 129 ], [ 129, 130 ], [ 0, 131 ], [ 131, 132 ], [ 131, 133 ] ]
[ "import java.util.Scanner;\nimport java.lang.String;\npublic class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint[] sum = new int[55];\n\t\tString s;\n\t\tint b;\n\t\twhile (input.hasNext())\n\t\t{\n\t\t\ts = input.next();\n\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t{\n\t\t\t\tif(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + sum[i]);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.lang.String;", "String", "java.lang", "public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint[] sum = new int[55];\n\t\tString s;\n\t\tint b;\n\t\twhile (input.hasNext())\n\t\t{\n\t\t\ts = input.next();\n\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t{\n\t\t\t\tif(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + sum[i]);\n\t\t}\n\t}\n}", "Main", "public static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint[] sum = new int[55];\n\t\tString s;\n\t\tint b;\n\t\twhile (input.hasNext())\n\t\t{\n\t\t\ts = input.next();\n\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t{\n\t\t\t\tif(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + sum[i]);\n\t\t}\n\t}", "main", "{\n\t\tScanner input = new Scanner(System.in);\n\t\tint[] sum = new int[55];\n\t\tString s;\n\t\tint b;\n\t\twhile (input.hasNext())\n\t\t{\n\t\t\ts = input.next();\n\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t{\n\t\t\t\tif(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + sum[i]);\n\t\t}\n\t}", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "int[] sum = new int[55];", "sum", "new int[55]", "55", "String s;", "s", "int b;", "b", "while (input.hasNext())\n\t\t{\n\t\t\ts = input.next();\n\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t{\n\t\t\t\tif(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "input.hasNext()", "input.hasNext", "input", "{\n\t\t\ts = input.next();\n\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t{\n\t\t\t\tif(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "s = input.next()", "s", "input.next()", "input.next", "input", "for(int i = 0; i < s.length(); i++)\n\t\t\t{\n\t\t\t\tif(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\t\tif(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t}", "if(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}", "s.charAt(i) >= 'A' && s.charAt(i) <= 'Z'", "s.charAt(i) >= 'A'", "s.charAt(i)", "s.charAt", "s", "i", "'A'", "s.charAt(i) <= 'Z'", "s.charAt(i)", "s.charAt", "s", "i", "'Z'", "{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}", "b = (int)(s.charAt(i)-'A')", "b", "(int)(s.charAt(i)-'A')", "s.charAt(i)", "s.charAt", "s", "i", "'A'", "sum[b]++", "sum[b]", "sum", "b", "if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}", "s.charAt(i)>='a' && s.charAt(i)<='z'", "s.charAt(i)>='a'", "s.charAt(i)", "s.charAt", "s", "i", "'a'", "s.charAt(i)<='z'", "s.charAt(i)", "s.charAt", "s", "i", "'z'", "{\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}", "b = (int)(s.charAt(i)-'a')", "b", "(int)(s.charAt(i)-'a')", "s.charAt(i)", "s.charAt", "s", "i", "'a'", "sum[b]++", "sum[b]", "sum", "b", "for(int i = 0; i < 26; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + sum[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 26", "i", "26", "i++", "i++", "i", "{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + sum[i]);\n\t\t}", "{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + sum[i]);\n\t\t}", "System.out.println((char)('a' + i) + \" : \" + sum[i])", "System.out.println", "System.out", "System", "System.out", "(char)('a' + i) + \" : \" + sum[i]", "(char)('a' + i) + \" : \" + sum[i]", "(char)('a' + i)", "'a'", "i", "\" : \"", "sum[i]", "sum", "i", "String args[]", "args", "public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint[] sum = new int[55];\n\t\tString s;\n\t\tint b;\n\t\twhile (input.hasNext())\n\t\t{\n\t\t\ts = input.next();\n\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t{\n\t\t\t\tif(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + sum[i]);\n\t\t}\n\t}\n}", "public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint[] sum = new int[55];\n\t\tString s;\n\t\tint b;\n\t\twhile (input.hasNext())\n\t\t{\n\t\t\ts = input.next();\n\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t{\n\t\t\t\tif(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z')\n\t\t\t\t{\n\t\t\t\t\tb = (int)(s.charAt(i)-'A');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i)>='a' && s.charAt(i)<='z') {\n\t\t\t\t\tb = (int)(s.charAt(i)-'a');\n\t\t\t\t\tsum[b]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < 26; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + sum[i]);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; import java.lang.String; public class Main { public static void main(String args[]) { Scanner input = new Scanner(System.in); int[] sum = new int[55]; String s; int b; while (input.hasNext()) { s = input.next(); for(int i = 0; i < s.length(); i++) { if(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z') { b = (int)(s.charAt(i)-'A'); sum[b]++; } else if(s.charAt(i)>='a' && s.charAt(i)<='z') { b = (int)(s.charAt(i)-'a'); sum[b]++; } } } for(int i = 0; i < 26; i++) { System.out.println((char)('a' + i) + " : " + sum[i]); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 4, 18, 4, 18, 13, 28, 13, 13, 30, 30, 41, 13, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 18, 13, 2, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 2, 13, 17, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 84, 5 ], [ 84, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 16, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 20, 30 ], [ 30, 31 ], [ 30, 32 ], [ 30, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 47, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 54, 64 ], [ 64, 65 ], [ 65, 66 ], [ 54, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 69, 75 ], [ 75, 76 ], [ 75, 77 ], [ 69, 78 ], [ 78, 79 ], [ 78, 80 ], [ 6, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] list = new int[26];\n while (sc.hasNext()) {\n char[] cList = sc.nextLine().toLowerCase().toCharArray();\n for (char c : cList) {\n int num = c;\n if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }\n }\n }\n for (int i = 0; i < list.length; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', list[i]);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] list = new int[26];\n while (sc.hasNext()) {\n char[] cList = sc.nextLine().toLowerCase().toCharArray();\n for (char c : cList) {\n int num = c;\n if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }\n }\n }\n for (int i = 0; i < list.length; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', list[i]);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] list = new int[26];\n while (sc.hasNext()) {\n char[] cList = sc.nextLine().toLowerCase().toCharArray();\n for (char c : cList) {\n int num = c;\n if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }\n }\n }\n for (int i = 0; i < list.length; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', list[i]);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int[] list = new int[26];\n while (sc.hasNext()) {\n char[] cList = sc.nextLine().toLowerCase().toCharArray();\n for (char c : cList) {\n int num = c;\n if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }\n }\n }\n for (int i = 0; i < list.length; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', list[i]);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int[] list = new int[26];", "list", "new int[26]", "26", "while (sc.hasNext()) {\n char[] cList = sc.nextLine().toLowerCase().toCharArray();\n for (char c : cList) {\n int num = c;\n if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }\n }\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n char[] cList = sc.nextLine().toLowerCase().toCharArray();\n for (char c : cList) {\n int num = c;\n if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }\n }\n }", "char[] cList = sc.nextLine().toLowerCase().toCharArray();", "cList", "sc.nextLine().toLowerCase().toCharArray()", "sc.nextLine().toLowerCase().toCharArray", "sc.nextLine().toLowerCase()", "sc.nextLine().toLowerCase", "sc.nextLine()", "sc.nextLine", "sc", "for (char c : cList) {\n int num = c;\n if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }\n }", "char c", "cList", "{\n int num = c;\n if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }\n }", "{\n int num = c;\n if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }\n }", "int num = c;", "num", "c", "if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }", "num >= 'a' && num <= 'z'", "num >= 'a'", "num", "'a'", "num <= 'z'", "num", "'z'", "{\n list[num - 'a'] += 1;\n }", "list[num - 'a'] += 1", "list[num - 'a']", "list", "num - 'a'", "num", "'a'", "1", "for (int i = 0; i < list.length; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', list[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < list.length", "i", "list.length", "list", "list.length", "i++", "i++", "i", "{\n System.out.printf(\"%c : %d\\n\", i + 'a', list[i]);\n }", "{\n System.out.printf(\"%c : %d\\n\", i + 'a', list[i]);\n }", "System.out.printf(\"%c : %d\\n\", i + 'a', list[i])", "System.out.printf", "System.out", "System", "System.out", "\"%c : %d\\n\"", "i + 'a'", "i", "'a'", "list[i]", "list", "i", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] list = new int[26];\n while (sc.hasNext()) {\n char[] cList = sc.nextLine().toLowerCase().toCharArray();\n for (char c : cList) {\n int num = c;\n if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }\n }\n }\n for (int i = 0; i < list.length; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', list[i]);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] list = new int[26];\n while (sc.hasNext()) {\n char[] cList = sc.nextLine().toLowerCase().toCharArray();\n for (char c : cList) {\n int num = c;\n if (num >= 'a' && num <= 'z') {\n list[num - 'a'] += 1;\n }\n }\n }\n for (int i = 0; i < list.length; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', list[i]);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] list = new int[26]; while (sc.hasNext()) { char[] cList = sc.nextLine().toLowerCase().toCharArray(); for (char c : cList) { int num = c; if (num >= 'a' && num <= 'z') { list[num - 'a'] += 1; } } } for (int i = 0; i < list.length; i++) { System.out.printf("%c : %d\n", i + 'a', list[i]); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 17, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 17, 18, 13, 13, 2, 18, 13, 13, 17, 40, 18, 13, 2, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 13, 2, 2, 2, 13, 17, 17, 18, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 4, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 16, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 20, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 36, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 52, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 51, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 15, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 71, 81 ], [ 81, 82 ], [ 82, 83 ], [ 71, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 4, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 97, 103 ], [ 103, 104 ], [ 4, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 105, 114 ], [ 114, 115 ], [ 4, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 116, 125 ], [ 125, 126 ], [ 4, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\n \nclass Main {\n Scanner sc = new Scanner(System.in);\n \n int[] count = new int[26];\n \n public void run() {\n while(sc.hasNext()){\n String str = sc.nextLine();\n str=str.toLowerCase();\n char[] c = str.toCharArray();\n for (int i = 0; i < c.length; i++) {\n if ('a' <= c[i] && c[i] <= 'z')\n count[c[i] - 'a']++;\n }\n }\n for (int i = 0; i < count.length; i++) {\n ln(((char) (i + 'a')) + \" : \" + count[i]);\n }\n }\n \n public static void main(String[] args) {\n new Main().run();\n }\n \n public static void pr(Object o) {\n System.out.print(o);\n }\n \n public static void ln(Object o) {\n System.out.println(o);\n }\n \n public static void ln() {\n System.out.println();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n Scanner sc = new Scanner(System.in);\n \n int[] count = new int[26];\n \n public void run() {\n while(sc.hasNext()){\n String str = sc.nextLine();\n str=str.toLowerCase();\n char[] c = str.toCharArray();\n for (int i = 0; i < c.length; i++) {\n if ('a' <= c[i] && c[i] <= 'z')\n count[c[i] - 'a']++;\n }\n }\n for (int i = 0; i < count.length; i++) {\n ln(((char) (i + 'a')) + \" : \" + count[i]);\n }\n }\n \n public static void main(String[] args) {\n new Main().run();\n }\n \n public static void pr(Object o) {\n System.out.print(o);\n }\n \n public static void ln(Object o) {\n System.out.println(o);\n }\n \n public static void ln() {\n System.out.println();\n }\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int[] count = new int[26];", "count", "new int[26]", "26", "public void run() {\n while(sc.hasNext()){\n String str = sc.nextLine();\n str=str.toLowerCase();\n char[] c = str.toCharArray();\n for (int i = 0; i < c.length; i++) {\n if ('a' <= c[i] && c[i] <= 'z')\n count[c[i] - 'a']++;\n }\n }\n for (int i = 0; i < count.length; i++) {\n ln(((char) (i + 'a')) + \" : \" + count[i]);\n }\n }", "run", "{\n while(sc.hasNext()){\n String str = sc.nextLine();\n str=str.toLowerCase();\n char[] c = str.toCharArray();\n for (int i = 0; i < c.length; i++) {\n if ('a' <= c[i] && c[i] <= 'z')\n count[c[i] - 'a']++;\n }\n }\n for (int i = 0; i < count.length; i++) {\n ln(((char) (i + 'a')) + \" : \" + count[i]);\n }\n }", "while(sc.hasNext()){\n String str = sc.nextLine();\n str=str.toLowerCase();\n char[] c = str.toCharArray();\n for (int i = 0; i < c.length; i++) {\n if ('a' <= c[i] && c[i] <= 'z')\n count[c[i] - 'a']++;\n }\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n String str = sc.nextLine();\n str=str.toLowerCase();\n char[] c = str.toCharArray();\n for (int i = 0; i < c.length; i++) {\n if ('a' <= c[i] && c[i] <= 'z')\n count[c[i] - 'a']++;\n }\n }", "String str = sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "str=str.toLowerCase()", "str", "str.toLowerCase()", "str.toLowerCase", "str", "char[] c = str.toCharArray();", "c", "str.toCharArray()", "str.toCharArray", "str", "for (int i = 0; i < c.length; i++) {\n if ('a' <= c[i] && c[i] <= 'z')\n count[c[i] - 'a']++;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < c.length", "i", "c.length", "c", "c.length", "i++", "i++", "i", "{\n if ('a' <= c[i] && c[i] <= 'z')\n count[c[i] - 'a']++;\n }", "{\n if ('a' <= c[i] && c[i] <= 'z')\n count[c[i] - 'a']++;\n }", "if ('a' <= c[i] && c[i] <= 'z')\n count[c[i] - 'a']++;", "'a' <= c[i] && c[i] <= 'z'", "'a' <= c[i]", "'a'", "c[i]", "c", "i", "c[i] <= 'z'", "c[i]", "c", "i", "'z'", "count[c[i] - 'a']++", "count[c[i] - 'a']", "count", "c[i] - 'a'", "c[i]", "c", "i", "'a'", "for (int i = 0; i < count.length; i++) {\n ln(((char) (i + 'a')) + \" : \" + count[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < count.length", "i", "count.length", "count", "count.length", "i++", "i++", "i", "{\n ln(((char) (i + 'a')) + \" : \" + count[i]);\n }", "{\n ln(((char) (i + 'a')) + \" : \" + count[i]);\n }", "ln(((char) (i + 'a')) + \" : \" + count[i])", "ln", "((char) (i + 'a')) + \" : \" + count[i]", "((char) (i + 'a')) + \" : \" + count[i]", "((char) (i + 'a'))", "i", "'a'", "\" : \"", "count[i]", "count", "i", "public static void main(String[] args) {\n new Main().run();\n }", "main", "{\n new Main().run();\n }", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public static void pr(Object o) {\n System.out.print(o);\n }", "pr", "{\n System.out.print(o);\n }", "System.out.print(o)", "System.out.print", "System.out", "System", "System.out", "o", "Object o", "o", "public static void ln(Object o) {\n System.out.println(o);\n }", "ln", "{\n System.out.println(o);\n }", "System.out.println(o)", "System.out.println", "System.out", "System", "System.out", "o", "Object o", "o", "public static void ln() {\n System.out.println();\n }", "ln", "{\n System.out.println();\n }", "System.out.println()", "System.out.println", "System.out", "System", "System.out" ]
import java.util.Scanner; class Main { Scanner sc = new Scanner(System.in); int[] count = new int[26]; public void run() { while(sc.hasNext()){ String str = sc.nextLine(); str=str.toLowerCase(); char[] c = str.toCharArray(); for (int i = 0; i < c.length; i++) { if ('a' <= c[i] && c[i] <= 'z') count[c[i] - 'a']++; } } for (int i = 0; i < count.length; i++) { ln(((char) (i + 'a')) + " : " + count[i]); } } public static void main(String[] args) { new Main().run(); } public static void pr(Object o) { System.out.print(o); } public static void ln(Object o) { System.out.println(o); } public static void ln() { System.out.println(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 4, 18, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 17, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 40, 13, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 13, 13, 2, 4, 18, 13, 13, 13, 30, 40, 18, 13, 13, 3, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 13, 17, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 160, 11 ], [ 160, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 22 ], [ 22, 23 ], [ 14, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 26, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 14, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 59, 63 ], [ 54, 64 ], [ 48, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 65, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 79, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 96, 101 ], [ 101, 102 ], [ 86, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 107, 112 ], [ 106, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 113, 118 ], [ 105, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 14, 125 ], [ 125, 126 ], [ 125, 127 ], [ 14, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 128, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 141, 142 ], [ 128, 143 ], [ 144, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 151, 151 ], [ 151, 152 ], [ 151, 153 ], [ 151, 154 ], [ 154, 155 ], [ 154, 156 ], [ 12, 157 ], [ 157, 158 ], [ 0, 159 ], [ 159, 160 ], [ 159, 161 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tint[] alphabet = new int[26];\n\n\t\tchar moji;\n\n\t\tchar MOJI;\n\n\t\t//配列の初期化\n\t\tfor(int num = 0; num < alphabet.length; num++)\n\t\t{\n\t\t\talphabet[num] = 0;\n\t\t}\n\n\t\t//何行読み取るか\n\t\twhile(true)\n\t\t{\n\t\t\tString str = input.readLine();\n\n\t\t\tif(str == null || str.length() == 0)\n\t\t\t\tbreak;\n\n\t\t\t//文字列のアルファベットの数を数える\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tmoji = 'a';\n\n\t\t\t\tMOJI = 'A';\n\n\t\t\t\tfor(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tmoji = 'a';\n\n\t\t//結果を表示する\n\t\tfor(int num = 0; num < alphabet.length; num++, moji++)\n\t\t{\n\t\t\tSystem.out.println(moji + \" : \" + alphabet[num]);\n\t\t}\n\n\t}\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tint[] alphabet = new int[26];\n\n\t\tchar moji;\n\n\t\tchar MOJI;\n\n\t\t//配列の初期化\n\t\tfor(int num = 0; num < alphabet.length; num++)\n\t\t{\n\t\t\talphabet[num] = 0;\n\t\t}\n\n\t\t//何行読み取るか\n\t\twhile(true)\n\t\t{\n\t\t\tString str = input.readLine();\n\n\t\t\tif(str == null || str.length() == 0)\n\t\t\t\tbreak;\n\n\t\t\t//文字列のアルファベットの数を数える\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tmoji = 'a';\n\n\t\t\t\tMOJI = 'A';\n\n\t\t\t\tfor(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tmoji = 'a';\n\n\t\t//結果を表示する\n\t\tfor(int num = 0; num < alphabet.length; num++, moji++)\n\t\t{\n\t\t\tSystem.out.println(moji + \" : \" + alphabet[num]);\n\t\t}\n\n\t}\n}", "Main", "public static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tint[] alphabet = new int[26];\n\n\t\tchar moji;\n\n\t\tchar MOJI;\n\n\t\t//配列の初期化\n\t\tfor(int num = 0; num < alphabet.length; num++)\n\t\t{\n\t\t\talphabet[num] = 0;\n\t\t}\n\n\t\t//何行読み取るか\n\t\twhile(true)\n\t\t{\n\t\t\tString str = input.readLine();\n\n\t\t\tif(str == null || str.length() == 0)\n\t\t\t\tbreak;\n\n\t\t\t//文字列のアルファベットの数を数える\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tmoji = 'a';\n\n\t\t\t\tMOJI = 'A';\n\n\t\t\t\tfor(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tmoji = 'a';\n\n\t\t//結果を表示する\n\t\tfor(int num = 0; num < alphabet.length; num++, moji++)\n\t\t{\n\t\t\tSystem.out.println(moji + \" : \" + alphabet[num]);\n\t\t}\n\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tint[] alphabet = new int[26];\n\n\t\tchar moji;\n\n\t\tchar MOJI;\n\n\t\t//配列の初期化\n\t\tfor(int num = 0; num < alphabet.length; num++)\n\t\t{\n\t\t\talphabet[num] = 0;\n\t\t}\n\n\t\t//何行読み取るか\n\t\twhile(true)\n\t\t{\n\t\t\tString str = input.readLine();\n\n\t\t\tif(str == null || str.length() == 0)\n\t\t\t\tbreak;\n\n\t\t\t//文字列のアルファベットの数を数える\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tmoji = 'a';\n\n\t\t\t\tMOJI = 'A';\n\n\t\t\t\tfor(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tmoji = 'a';\n\n\t\t//結果を表示する\n\t\tfor(int num = 0; num < alphabet.length; num++, moji++)\n\t\t{\n\t\t\tSystem.out.println(moji + \" : \" + alphabet[num]);\n\t\t}\n\n\t}", "BufferedReader input = new BufferedReader (new InputStreamReader (System.in));", "input", "new BufferedReader (new InputStreamReader (System.in))", "int[] alphabet = new int[26];", "alphabet", "new int[26]", "26", "char moji;", "moji", "char MOJI;", "MOJI", "for(int num = 0; num < alphabet.length; num++)\n\t\t{\n\t\t\talphabet[num] = 0;\n\t\t}", "int num = 0;", "int num = 0;", "num", "0", "num < alphabet.length", "num", "alphabet.length", "alphabet", "alphabet.length", "num++", "num++", "num", "{\n\t\t\talphabet[num] = 0;\n\t\t}", "{\n\t\t\talphabet[num] = 0;\n\t\t}", "alphabet[num] = 0", "alphabet[num]", "alphabet", "num", "0", "while(true)\n\t\t{\n\t\t\tString str = input.readLine();\n\n\t\t\tif(str == null || str.length() == 0)\n\t\t\t\tbreak;\n\n\t\t\t//文字列のアルファベットの数を数える\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tmoji = 'a';\n\n\t\t\t\tMOJI = 'A';\n\n\t\t\t\tfor(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString str = input.readLine();\n\n\t\t\tif(str == null || str.length() == 0)\n\t\t\t\tbreak;\n\n\t\t\t//文字列のアルファベットの数を数える\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tmoji = 'a';\n\n\t\t\t\tMOJI = 'A';\n\n\t\t\t\tfor(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String str = input.readLine();", "str", "input.readLine()", "input.readLine", "input", "if(str == null || str.length() == 0)\n\t\t\t\tbreak;", "str == null || str.length() == 0", "str == null", "str", "null", "str.length() == 0", "str.length()", "str.length", "str", "0", "break;", "for(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tmoji = 'a';\n\n\t\t\t\tMOJI = 'A';\n\n\t\t\t\tfor(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "int num = 0;", "int num = 0;", "num", "0", "num < str.length()", "num", "str.length()", "str.length", "str", "num++", "num++", "num", "{\n\t\t\t\tmoji = 'a';\n\n\t\t\t\tMOJI = 'A';\n\n\t\t\t\tfor(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tmoji = 'a';\n\n\t\t\t\tMOJI = 'A';\n\n\t\t\t\tfor(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "moji = 'a'", "moji", "'a'", "MOJI = 'A'", "MOJI", "'A'", "for(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "int kazu = 0;", "int kazu = 0;", "kazu", "0", "kazu < alphabet.length", "kazu", "alphabet.length", "alphabet", "alphabet.length", "kazu++, moji++, MOJI++", "kazu++", "kazu", "moji++", "moji", "MOJI++", "MOJI", "{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "if(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}", "str.charAt(num) == moji || str.charAt(num) == MOJI", "str.charAt(num) == moji", "str.charAt(num)", "str.charAt", "str", "num", "moji", "str.charAt(num) == MOJI", "str.charAt(num)", "str.charAt", "str", "num", "MOJI", "{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}", "alphabet[kazu]++", "alphabet[kazu]", "alphabet", "kazu", "break;", "moji = 'a'", "moji", "'a'", "for(int num = 0; num < alphabet.length; num++, moji++)\n\t\t{\n\t\t\tSystem.out.println(moji + \" : \" + alphabet[num]);\n\t\t}", "int num = 0;", "int num = 0;", "num", "0", "num < alphabet.length", "num", "alphabet.length", "alphabet", "alphabet.length", "num++, moji++", "num++", "num", "moji++", "moji", "{\n\t\t\tSystem.out.println(moji + \" : \" + alphabet[num]);\n\t\t}", "{\n\t\t\tSystem.out.println(moji + \" : \" + alphabet[num]);\n\t\t}", "System.out.println(moji + \" : \" + alphabet[num])", "System.out.println", "System.out", "System", "System.out", "moji + \" : \" + alphabet[num]", "moji + \" : \" + alphabet[num]", "moji", "\" : \"", "alphabet[num]", "alphabet", "num", "String[] args", "args", "public class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tint[] alphabet = new int[26];\n\n\t\tchar moji;\n\n\t\tchar MOJI;\n\n\t\t//配列の初期化\n\t\tfor(int num = 0; num < alphabet.length; num++)\n\t\t{\n\t\t\talphabet[num] = 0;\n\t\t}\n\n\t\t//何行読み取るか\n\t\twhile(true)\n\t\t{\n\t\t\tString str = input.readLine();\n\n\t\t\tif(str == null || str.length() == 0)\n\t\t\t\tbreak;\n\n\t\t\t//文字列のアルファベットの数を数える\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tmoji = 'a';\n\n\t\t\t\tMOJI = 'A';\n\n\t\t\t\tfor(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tmoji = 'a';\n\n\t\t//結果を表示する\n\t\tfor(int num = 0; num < alphabet.length; num++, moji++)\n\t\t{\n\t\t\tSystem.out.println(moji + \" : \" + alphabet[num]);\n\t\t}\n\n\t}\n}", "public class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tint[] alphabet = new int[26];\n\n\t\tchar moji;\n\n\t\tchar MOJI;\n\n\t\t//配列の初期化\n\t\tfor(int num = 0; num < alphabet.length; num++)\n\t\t{\n\t\t\talphabet[num] = 0;\n\t\t}\n\n\t\t//何行読み取るか\n\t\twhile(true)\n\t\t{\n\t\t\tString str = input.readLine();\n\n\t\t\tif(str == null || str.length() == 0)\n\t\t\t\tbreak;\n\n\t\t\t//文字列のアルファベットの数を数える\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tmoji = 'a';\n\n\t\t\t\tMOJI = 'A';\n\n\t\t\t\tfor(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++)\n\t\t\t\t{\n\t\t\t\t\tif(str.charAt(num) == moji || str.charAt(num) == MOJI)\n\t\t\t\t\t{\n\t\t\t\t\t\talphabet[kazu]++;\n\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tmoji = 'a';\n\n\t\t//結果を表示する\n\t\tfor(int num = 0; num < alphabet.length; num++, moji++)\n\t\t{\n\t\t\tSystem.out.println(moji + \" : \" + alphabet[num]);\n\t\t}\n\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main (String[] args) throws IOException { BufferedReader input = new BufferedReader (new InputStreamReader (System.in)); int[] alphabet = new int[26]; char moji; char MOJI; //配列の初期化 for(int num = 0; num < alphabet.length; num++) { alphabet[num] = 0; } //何行読み取るか while(true) { String str = input.readLine(); if(str == null || str.length() == 0) break; //文字列のアルファベットの数を数える for(int num = 0; num < str.length(); num++) { moji = 'a'; MOJI = 'A'; for(int kazu = 0; kazu < alphabet.length; kazu++, moji++, MOJI++) { if(str.charAt(num) == moji || str.charAt(num) == MOJI) { alphabet[kazu]++; break; } } } } moji = 'a'; //結果を表示する for(int num = 0; num < alphabet.length; num++, moji++) { System.out.println(moji + " : " + alphabet[num]); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 28, 13, 13, 30, 30, 14, 40, 4, 18, 13, 13, 30, 9, 0, 13, 4, 18, 13, 13, 40, 18, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 2, 17, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 98, 5 ], [ 98, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 19, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 34, 36 ], [ 34, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 39, 45 ], [ 45, 46 ], [ 38, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 38, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 73, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 6, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n int num = 'a';\n while(sc.hasNext()){\n String str = sc.nextLine();\n char[] cha = str.toCharArray();\n for(char alp:cha){\n if(!Character.isAlphabetic(alp)){\n continue;\n }\n alp = Character.toLowerCase(alp);\n count[alp-num]++;\n }\n }\n for(int i = 0; i < count.length; i++){\n System.out.print(Character.toChars(num+i));\n System.out.println(\" : \"+count[i]);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n int num = 'a';\n while(sc.hasNext()){\n String str = sc.nextLine();\n char[] cha = str.toCharArray();\n for(char alp:cha){\n if(!Character.isAlphabetic(alp)){\n continue;\n }\n alp = Character.toLowerCase(alp);\n count[alp-num]++;\n }\n }\n for(int i = 0; i < count.length; i++){\n System.out.print(Character.toChars(num+i));\n System.out.println(\" : \"+count[i]);\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n int num = 'a';\n while(sc.hasNext()){\n String str = sc.nextLine();\n char[] cha = str.toCharArray();\n for(char alp:cha){\n if(!Character.isAlphabetic(alp)){\n continue;\n }\n alp = Character.toLowerCase(alp);\n count[alp-num]++;\n }\n }\n for(int i = 0; i < count.length; i++){\n System.out.print(Character.toChars(num+i));\n System.out.println(\" : \"+count[i]);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n int num = 'a';\n while(sc.hasNext()){\n String str = sc.nextLine();\n char[] cha = str.toCharArray();\n for(char alp:cha){\n if(!Character.isAlphabetic(alp)){\n continue;\n }\n alp = Character.toLowerCase(alp);\n count[alp-num]++;\n }\n }\n for(int i = 0; i < count.length; i++){\n System.out.print(Character.toChars(num+i));\n System.out.println(\" : \"+count[i]);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int[] count = new int[26];", "count", "new int[26]", "26", "int num = 'a';", "num", "'a'", "while(sc.hasNext()){\n String str = sc.nextLine();\n char[] cha = str.toCharArray();\n for(char alp:cha){\n if(!Character.isAlphabetic(alp)){\n continue;\n }\n alp = Character.toLowerCase(alp);\n count[alp-num]++;\n }\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n String str = sc.nextLine();\n char[] cha = str.toCharArray();\n for(char alp:cha){\n if(!Character.isAlphabetic(alp)){\n continue;\n }\n alp = Character.toLowerCase(alp);\n count[alp-num]++;\n }\n }", "String str = sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "char[] cha = str.toCharArray();", "cha", "str.toCharArray()", "str.toCharArray", "str", "for(char alp:cha){\n if(!Character.isAlphabetic(alp)){\n continue;\n }\n alp = Character.toLowerCase(alp);\n count[alp-num]++;\n }", "char alp", "cha", "{\n if(!Character.isAlphabetic(alp)){\n continue;\n }\n alp = Character.toLowerCase(alp);\n count[alp-num]++;\n }", "{\n if(!Character.isAlphabetic(alp)){\n continue;\n }\n alp = Character.toLowerCase(alp);\n count[alp-num]++;\n }", "if(!Character.isAlphabetic(alp)){\n continue;\n }", "!Character.isAlphabetic(alp)", "Character.isAlphabetic(alp)", "Character.isAlphabetic", "Character", "alp", "{\n continue;\n }", "continue;", "alp = Character.toLowerCase(alp)", "alp", "Character.toLowerCase(alp)", "Character.toLowerCase", "Character", "alp", "count[alp-num]++", "count[alp-num]", "count", "alp-num", "alp", "num", "for(int i = 0; i < count.length; i++){\n System.out.print(Character.toChars(num+i));\n System.out.println(\" : \"+count[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < count.length", "i", "count.length", "count", "count.length", "i++", "i++", "i", "{\n System.out.print(Character.toChars(num+i));\n System.out.println(\" : \"+count[i]);\n }", "{\n System.out.print(Character.toChars(num+i));\n System.out.println(\" : \"+count[i]);\n }", "System.out.print(Character.toChars(num+i))", "System.out.print", "System.out", "System", "System.out", "Character.toChars(num+i)", "Character.toChars", "Character", "num+i", "num", "i", "System.out.println(\" : \"+count[i])", "System.out.println", "System.out", "System", "System.out", "\" : \"+count[i]", "\" : \"", "count[i]", "count", "i", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n int num = 'a';\n while(sc.hasNext()){\n String str = sc.nextLine();\n char[] cha = str.toCharArray();\n for(char alp:cha){\n if(!Character.isAlphabetic(alp)){\n continue;\n }\n alp = Character.toLowerCase(alp);\n count[alp-num]++;\n }\n }\n for(int i = 0; i < count.length; i++){\n System.out.print(Character.toChars(num+i));\n System.out.println(\" : \"+count[i]);\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n int num = 'a';\n while(sc.hasNext()){\n String str = sc.nextLine();\n char[] cha = str.toCharArray();\n for(char alp:cha){\n if(!Character.isAlphabetic(alp)){\n continue;\n }\n alp = Character.toLowerCase(alp);\n count[alp-num]++;\n }\n }\n for(int i = 0; i < count.length; i++){\n System.out.print(Character.toChars(num+i));\n System.out.println(\" : \"+count[i]);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int[] count = new int[26]; int num = 'a'; while(sc.hasNext()){ String str = sc.nextLine(); char[] cha = str.toCharArray(); for(char alp:cha){ if(!Character.isAlphabetic(alp)){ continue; } alp = Character.toLowerCase(alp); count[alp-num]++; } } for(int i = 0; i < count.length; i++){ System.out.print(Character.toChars(num+i)); System.out.println(" : "+count[i]); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 13, 30, 40, 18, 13, 13, 40, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 13, 17, 18, 13, 13, 40, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 142, 5 ], [ 142, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 18, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 18, 28 ], [ 28, 29 ], [ 29, 30 ], [ 18, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 8, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 41, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 41, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 62, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 80, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 93, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 92, 104 ], [ 104, 105 ], [ 8, 106 ], [ 106, 107 ], [ 106, 108 ], [ 8, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 109, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 128, 128 ], [ 128, 129 ], [ 128, 130 ], [ 128, 131 ], [ 131, 132 ], [ 131, 133 ], [ 121, 134 ], [ 134, 135 ], [ 8, 136 ], [ 136, 137 ], [ 137, 138 ], [ 6, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.util.Scanner;\n\npublic class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int all[] = new int[26];\n int i;\n\n for(i=0;i<all.length; i++) all[i]=0;\n\n while(sc.hasNext())\n {\n String input = sc.next();\n input = input.toLowerCase();\n input = input.trim();\n char c[] = input.toCharArray();\n \n for(i=0; i<c.length; i++)\n {\n int count=0;\n for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }\n }\n }\n \n int ccount=0;\n for(char a='a'; a<='z'; a++)\n {\n System.out.println(a+\" : \"+all[ccount]);\n ccount++;\n }\n\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int all[] = new int[26];\n int i;\n\n for(i=0;i<all.length; i++) all[i]=0;\n\n while(sc.hasNext())\n {\n String input = sc.next();\n input = input.toLowerCase();\n input = input.trim();\n char c[] = input.toCharArray();\n \n for(i=0; i<c.length; i++)\n {\n int count=0;\n for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }\n }\n }\n \n int ccount=0;\n for(char a='a'; a<='z'; a++)\n {\n System.out.println(a+\" : \"+all[ccount]);\n ccount++;\n }\n\n sc.close();\n }\n}", "Main", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int all[] = new int[26];\n int i;\n\n for(i=0;i<all.length; i++) all[i]=0;\n\n while(sc.hasNext())\n {\n String input = sc.next();\n input = input.toLowerCase();\n input = input.trim();\n char c[] = input.toCharArray();\n \n for(i=0; i<c.length; i++)\n {\n int count=0;\n for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }\n }\n }\n \n int ccount=0;\n for(char a='a'; a<='z'; a++)\n {\n System.out.println(a+\" : \"+all[ccount]);\n ccount++;\n }\n\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int all[] = new int[26];\n int i;\n\n for(i=0;i<all.length; i++) all[i]=0;\n\n while(sc.hasNext())\n {\n String input = sc.next();\n input = input.toLowerCase();\n input = input.trim();\n char c[] = input.toCharArray();\n \n for(i=0; i<c.length; i++)\n {\n int count=0;\n for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }\n }\n }\n \n int ccount=0;\n for(char a='a'; a<='z'; a++)\n {\n System.out.println(a+\" : \"+all[ccount]);\n ccount++;\n }\n\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int all[] = new int[26];", "all", "new int[26]", "26", "int i;", "i", "for(i=0;i<all.length; i++) all[i]=0;", "i=0;", "i=0", "i", "0", "i<all.length", "i", "all.length", "all", "all.length", "i++", "i++", "i", "all[i]=0;", "all[i]=0", "all[i]", "all", "i", "0", "while(sc.hasNext())\n {\n String input = sc.next();\n input = input.toLowerCase();\n input = input.trim();\n char c[] = input.toCharArray();\n \n for(i=0; i<c.length; i++)\n {\n int count=0;\n for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }\n }\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n String input = sc.next();\n input = input.toLowerCase();\n input = input.trim();\n char c[] = input.toCharArray();\n \n for(i=0; i<c.length; i++)\n {\n int count=0;\n for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }\n }\n }", "String input = sc.next();", "input", "sc.next()", "sc.next", "sc", "input = input.toLowerCase()", "input", "input.toLowerCase()", "input.toLowerCase", "input", "input = input.trim()", "input", "input.trim()", "input.trim", "input", "char c[] = input.toCharArray();", "c", "input.toCharArray()", "input.toCharArray", "input", "for(i=0; i<c.length; i++)\n {\n int count=0;\n for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }\n }", "i=0;", "i=0", "i", "0", "i<c.length", "i", "c.length", "c", "c.length", "i++", "i++", "i", "{\n int count=0;\n for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }\n }", "{\n int count=0;\n for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }\n }", "int count=0;", "count", "0", "for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }", "char a='a';", "char a='a';", "a", "'a'", "a<='z'", "a", "'z'", "a++", "a++", "a", "{\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }", "{\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }", "if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }", "c[i]==a", "c[i]", "c", "i", "a", "{\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }", "all[count]++", "all[count]", "all", "count", "count++", "count", "int ccount=0;", "ccount", "0", "for(char a='a'; a<='z'; a++)\n {\n System.out.println(a+\" : \"+all[ccount]);\n ccount++;\n }", "char a='a';", "char a='a';", "a", "'a'", "a<='z'", "a", "'z'", "a++", "a++", "a", "{\n System.out.println(a+\" : \"+all[ccount]);\n ccount++;\n }", "{\n System.out.println(a+\" : \"+all[ccount]);\n ccount++;\n }", "System.out.println(a+\" : \"+all[ccount])", "System.out.println", "System.out", "System", "System.out", "a+\" : \"+all[ccount]", "a+\" : \"+all[ccount]", "a", "\" : \"", "all[ccount]", "all", "ccount", "ccount++", "ccount", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int all[] = new int[26];\n int i;\n\n for(i=0;i<all.length; i++) all[i]=0;\n\n while(sc.hasNext())\n {\n String input = sc.next();\n input = input.toLowerCase();\n input = input.trim();\n char c[] = input.toCharArray();\n \n for(i=0; i<c.length; i++)\n {\n int count=0;\n for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }\n }\n }\n \n int ccount=0;\n for(char a='a'; a<='z'; a++)\n {\n System.out.println(a+\" : \"+all[ccount]);\n ccount++;\n }\n\n sc.close();\n }\n}", "public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int all[] = new int[26];\n int i;\n\n for(i=0;i<all.length; i++) all[i]=0;\n\n while(sc.hasNext())\n {\n String input = sc.next();\n input = input.toLowerCase();\n input = input.trim();\n char c[] = input.toCharArray();\n \n for(i=0; i<c.length; i++)\n {\n int count=0;\n for(char a='a'; a<='z'; a++)\n {\n if(c[i]==a)\n {\n all[count]++;\n //System.out.println(\"got :\"+c[i]); \n }\n count++;\n }\n }\n }\n \n int ccount=0;\n for(char a='a'; a<='z'; a++)\n {\n System.out.println(a+\" : \"+all[ccount]);\n ccount++;\n }\n\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int all[] = new int[26]; int i; for(i=0;i<all.length; i++) all[i]=0; while(sc.hasNext()) { String input = sc.next(); input = input.toLowerCase(); input = input.trim(); char c[] = input.toCharArray(); for(i=0; i<c.length; i++) { int count=0; for(char a='a'; a<='z'; a++) { if(c[i]==a) { all[count]++; //System.out.println("got :"+c[i]); } count++; } } } int ccount=0; for(char a='a'; a<='z'; a++) { System.out.println(a+" : "+all[ccount]); ccount++; } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 20, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 14, 4, 18, 13, 13, 30, 40, 18, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 2, 17, 13, 17, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 98, 5 ], [ 98, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 33, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 6, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str;\n\t\tint[] listA = new int[26];\n\n\t\t//hasNext()??§?¬?????????????????????¨?????????????????????????????£??????????????£?????????\n\n\t\twhile(sc.hasNext()){\n\n\t\t\t//1???????????????????°??????????????????????\n\t\t\tString SS = sc.nextLine();\n\t\t\tstr = SS.toLowerCase();\n\n\t\t\t//\n\t\t\tfor(int i = 0;i < str.length();i++){\n\t\t\t\tchar c = str.charAt(i);\n\n\t\t\t\t//???????????£?????????????????\\??????\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//sc.close();\n\n\t\tfor(int i = 0; i < listA.length; i++){\n\t\t\tSystem.out.println((char)( 'a' + i ) + \" : \" + listA[i]);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str;\n\t\tint[] listA = new int[26];\n\n\t\t//hasNext()??§?¬?????????????????????¨?????????????????????????????£??????????????£?????????\n\n\t\twhile(sc.hasNext()){\n\n\t\t\t//1???????????????????°??????????????????????\n\t\t\tString SS = sc.nextLine();\n\t\t\tstr = SS.toLowerCase();\n\n\t\t\t//\n\t\t\tfor(int i = 0;i < str.length();i++){\n\t\t\t\tchar c = str.charAt(i);\n\n\t\t\t\t//???????????£?????????????????\\??????\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//sc.close();\n\n\t\tfor(int i = 0; i < listA.length; i++){\n\t\t\tSystem.out.println((char)( 'a' + i ) + \" : \" + listA[i]);\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str;\n\t\tint[] listA = new int[26];\n\n\t\t//hasNext()??§?¬?????????????????????¨?????????????????????????????£??????????????£?????????\n\n\t\twhile(sc.hasNext()){\n\n\t\t\t//1???????????????????°??????????????????????\n\t\t\tString SS = sc.nextLine();\n\t\t\tstr = SS.toLowerCase();\n\n\t\t\t//\n\t\t\tfor(int i = 0;i < str.length();i++){\n\t\t\t\tchar c = str.charAt(i);\n\n\t\t\t\t//???????????£?????????????????\\??????\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//sc.close();\n\n\t\tfor(int i = 0; i < listA.length; i++){\n\t\t\tSystem.out.println((char)( 'a' + i ) + \" : \" + listA[i]);\n\t\t}\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str;\n\t\tint[] listA = new int[26];\n\n\t\t//hasNext()??§?¬?????????????????????¨?????????????????????????????£??????????????£?????????\n\n\t\twhile(sc.hasNext()){\n\n\t\t\t//1???????????????????°??????????????????????\n\t\t\tString SS = sc.nextLine();\n\t\t\tstr = SS.toLowerCase();\n\n\t\t\t//\n\t\t\tfor(int i = 0;i < str.length();i++){\n\t\t\t\tchar c = str.charAt(i);\n\n\t\t\t\t//???????????£?????????????????\\??????\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//sc.close();\n\n\t\tfor(int i = 0; i < listA.length; i++){\n\t\t\tSystem.out.println((char)( 'a' + i ) + \" : \" + listA[i]);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str;", "str", "int[] listA = new int[26];", "listA", "new int[26]", "26", "while(sc.hasNext()){\n\n\t\t\t//1???????????????????°??????????????????????\n\t\t\tString SS = sc.nextLine();\n\t\t\tstr = SS.toLowerCase();\n\n\t\t\t//\n\t\t\tfor(int i = 0;i < str.length();i++){\n\t\t\t\tchar c = str.charAt(i);\n\n\t\t\t\t//???????????£?????????????????\\??????\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\n\t\t\t//1???????????????????°??????????????????????\n\t\t\tString SS = sc.nextLine();\n\t\t\tstr = SS.toLowerCase();\n\n\t\t\t//\n\t\t\tfor(int i = 0;i < str.length();i++){\n\t\t\t\tchar c = str.charAt(i);\n\n\t\t\t\t//???????????£?????????????????\\??????\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String SS = sc.nextLine();", "SS", "sc.nextLine()", "sc.nextLine", "sc", "str = SS.toLowerCase()", "str", "SS.toLowerCase()", "SS.toLowerCase", "SS", "for(int i = 0;i < str.length();i++){\n\t\t\t\tchar c = str.charAt(i);\n\n\t\t\t\t//???????????£?????????????????\\??????\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n\t\t\t\tchar c = str.charAt(i);\n\n\t\t\t\t//???????????£?????????????????\\??????\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tchar c = str.charAt(i);\n\n\t\t\t\t//???????????£?????????????????\\??????\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}\n\t\t\t}", "char c = str.charAt(i);", "c", "str.charAt(i)", "str.charAt", "str", "i", "if(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}", "Character.isLetter(c)", "Character.isLetter", "Character", "c", "{\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}", "listA[c - 'a']++", "listA[c - 'a']", "listA", "c - 'a'", "c", "'a'", "for(int i = 0; i < listA.length; i++){\n\t\t\tSystem.out.println((char)( 'a' + i ) + \" : \" + listA[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < listA.length", "i", "listA.length", "listA", "listA.length", "i++", "i++", "i", "{\n\t\t\tSystem.out.println((char)( 'a' + i ) + \" : \" + listA[i]);\n\t\t}", "{\n\t\t\tSystem.out.println((char)( 'a' + i ) + \" : \" + listA[i]);\n\t\t}", "System.out.println((char)( 'a' + i ) + \" : \" + listA[i])", "System.out.println", "System.out", "System", "System.out", "(char)( 'a' + i ) + \" : \" + listA[i]", "(char)( 'a' + i ) + \" : \" + listA[i]", "(char)( 'a' + i )", "'a'", "i", "\" : \"", "listA[i]", "listA", "i", "String args[]", "args", "public class Main {\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str;\n\t\tint[] listA = new int[26];\n\n\t\t//hasNext()??§?¬?????????????????????¨?????????????????????????????£??????????????£?????????\n\n\t\twhile(sc.hasNext()){\n\n\t\t\t//1???????????????????°??????????????????????\n\t\t\tString SS = sc.nextLine();\n\t\t\tstr = SS.toLowerCase();\n\n\t\t\t//\n\t\t\tfor(int i = 0;i < str.length();i++){\n\t\t\t\tchar c = str.charAt(i);\n\n\t\t\t\t//???????????£?????????????????\\??????\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//sc.close();\n\n\t\tfor(int i = 0; i < listA.length; i++){\n\t\t\tSystem.out.println((char)( 'a' + i ) + \" : \" + listA[i]);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str;\n\t\tint[] listA = new int[26];\n\n\t\t//hasNext()??§?¬?????????????????????¨?????????????????????????????£??????????????£?????????\n\n\t\twhile(sc.hasNext()){\n\n\t\t\t//1???????????????????°??????????????????????\n\t\t\tString SS = sc.nextLine();\n\t\t\tstr = SS.toLowerCase();\n\n\t\t\t//\n\t\t\tfor(int i = 0;i < str.length();i++){\n\t\t\t\tchar c = str.charAt(i);\n\n\t\t\t\t//???????????£?????????????????\\??????\n\t\t\t\tif(Character.isLetter(c)){\n\t\t\t\t\tlistA[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//sc.close();\n\n\t\tfor(int i = 0; i < listA.length; i++){\n\t\t\tSystem.out.println((char)( 'a' + i ) + \" : \" + listA[i]);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); String str; int[] listA = new int[26]; //hasNext()??§?¬?????????????????????¨?????????????????????????????£??????????????£????????? while(sc.hasNext()){ //1???????????????????°?????????????????????? String SS = sc.nextLine(); str = SS.toLowerCase(); // for(int i = 0;i < str.length();i++){ char c = str.charAt(i); //???????????£?????????????????\?????? if(Character.isLetter(c)){ listA[c - 'a']++; } } } //sc.close(); for(int i = 0; i < listA.length; i++){ System.out.println((char)( 'a' + i ) + " : " + listA[i]); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 17, 2, 18, 13, 13, 17, 40, 18, 13, 2, 18, 13, 13, 17, 14, 2, 2, 18, 13, 13, 17, 2, 18, 13, 13, 17, 40, 18, 13, 2, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 2, 13, 17, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 128, 8 ], [ 128, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 37, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 52, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 52, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 72, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 11, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 100, 101 ], [ 101, 102 ], [ 92, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 104, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 116, 116 ], [ 116, 117 ], [ 116, 118 ], [ 116, 119 ], [ 119, 120 ], [ 119, 121 ], [ 11, 122 ], [ 122, 123 ], [ 123, 124 ], [ 9, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint alph[]=new int[26];\n\t\t\n\t\twhile(in.hasNext()) {\n\t\t\tString str=in.nextLine();char C[]=str.toCharArray();\n\t\t\tfor(int i=0;i<C.length;i++) {\n\t\t\t\tif(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar c=(char)(i+97);\n\t\t\tSystem.out.println(c+\" : \"+alph[i]);\n\t\t}\n\t\tout.flush();\n\t}\n\n}\n", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint alph[]=new int[26];\n\t\t\n\t\twhile(in.hasNext()) {\n\t\t\tString str=in.nextLine();char C[]=str.toCharArray();\n\t\t\tfor(int i=0;i<C.length;i++) {\n\t\t\t\tif(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar c=(char)(i+97);\n\t\t\tSystem.out.println(c+\" : \"+alph[i]);\n\t\t}\n\t\tout.flush();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint alph[]=new int[26];\n\t\t\n\t\twhile(in.hasNext()) {\n\t\t\tString str=in.nextLine();char C[]=str.toCharArray();\n\t\t\tfor(int i=0;i<C.length;i++) {\n\t\t\t\tif(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar c=(char)(i+97);\n\t\t\tSystem.out.println(c+\" : \"+alph[i]);\n\t\t}\n\t\tout.flush();\n\t}", "main", "{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint alph[]=new int[26];\n\t\t\n\t\twhile(in.hasNext()) {\n\t\t\tString str=in.nextLine();char C[]=str.toCharArray();\n\t\t\tfor(int i=0;i<C.length;i++) {\n\t\t\t\tif(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar c=(char)(i+97);\n\t\t\tSystem.out.println(c+\" : \"+alph[i]);\n\t\t}\n\t\tout.flush();\n\t}", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "PrintWriter out=new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "int alph[]=new int[26];", "alph", "new int[26]", "26", "while(in.hasNext()) {\n\t\t\tString str=in.nextLine();char C[]=str.toCharArray();\n\t\t\tfor(int i=0;i<C.length;i++) {\n\t\t\t\tif(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;\n\t\t\t}\n\t\t}", "in.hasNext()", "in.hasNext", "in", "{\n\t\t\tString str=in.nextLine();char C[]=str.toCharArray();\n\t\t\tfor(int i=0;i<C.length;i++) {\n\t\t\t\tif(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;\n\t\t\t}\n\t\t}", "String str=in.nextLine();", "str", "in.nextLine()", "in.nextLine", "in", "char C[]=str.toCharArray();", "C", "str.toCharArray()", "str.toCharArray", "str", "for(int i=0;i<C.length;i++) {\n\t\t\t\tif(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<C.length", "i", "C.length", "C", "C.length", "i++", "i++", "i", "{\n\t\t\t\tif(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;\n\t\t\t}", "{\n\t\t\t\tif(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;\n\t\t\t}", "if(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;", "C[i]>=65 && C[i]<=90", "C[i]>=65", "C[i]", "C", "i", "65", "C[i]<=90", "C[i]", "C", "i", "90", "alph[C[i]-65]++", "alph[C[i]-65]", "alph", "C[i]-65", "C[i]", "C", "i", "65", "if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;", "C[i]>=97 && C[i]<=122", "C[i]>=97", "C[i]", "C", "i", "97", "C[i]<=122", "C[i]", "C", "i", "122", "alph[C[i]-97]++", "alph[C[i]-97]", "alph", "C[i]-97", "C[i]", "C", "i", "97", "for(int i=0;i<26;i++) {\n\t\t\tchar c=(char)(i+97);\n\t\t\tSystem.out.println(c+\" : \"+alph[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<26", "i", "26", "i++", "i++", "i", "{\n\t\t\tchar c=(char)(i+97);\n\t\t\tSystem.out.println(c+\" : \"+alph[i]);\n\t\t}", "{\n\t\t\tchar c=(char)(i+97);\n\t\t\tSystem.out.println(c+\" : \"+alph[i]);\n\t\t}", "char c=(char)(i+97);", "c", "(char)(i+97)", "i", "97", "System.out.println(c+\" : \"+alph[i])", "System.out.println", "System.out", "System", "System.out", "c+\" : \"+alph[i]", "c+\" : \"+alph[i]", "c", "\" : \"", "alph[i]", "alph", "i", "out.flush()", "out.flush", "out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint alph[]=new int[26];\n\t\t\n\t\twhile(in.hasNext()) {\n\t\t\tString str=in.nextLine();char C[]=str.toCharArray();\n\t\t\tfor(int i=0;i<C.length;i++) {\n\t\t\t\tif(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar c=(char)(i+97);\n\t\t\tSystem.out.println(c+\" : \"+alph[i]);\n\t\t}\n\t\tout.flush();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint alph[]=new int[26];\n\t\t\n\t\twhile(in.hasNext()) {\n\t\t\tString str=in.nextLine();char C[]=str.toCharArray();\n\t\t\tfor(int i=0;i<C.length;i++) {\n\t\t\t\tif(C[i]>=65 && C[i]<=90)alph[C[i]-65]++;\n\t\t\t\telse if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar c=(char)(i+97);\n\t\t\tSystem.out.println(c+\" : \"+alph[i]);\n\t\t}\n\t\tout.flush();\n\t}\n\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); PrintWriter out=new PrintWriter(System.out); int alph[]=new int[26]; while(in.hasNext()) { String str=in.nextLine();char C[]=str.toCharArray(); for(int i=0;i<C.length;i++) { if(C[i]>=65 && C[i]<=90)alph[C[i]-65]++; else if(C[i]>=97 && C[i]<=122)alph[C[i]-97]++; } } for(int i=0;i<26;i++) { char c=(char)(i+97); System.out.println(c+" : "+alph[i]); } out.flush(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 30, 3, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 40, 13, 17, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 402, 8 ], [ 402, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 19, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 30, 34 ], [ 29, 35 ], [ 35, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 43, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 58, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 58, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 70, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 70, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 83, 88 ], [ 82, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 82, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 95, 100 ], [ 94, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 94, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 107, 112 ], [ 106, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 106, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 119, 124 ], [ 118, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 118, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 131, 136 ], [ 130, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 130, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 143, 148 ], [ 142, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 142, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 156, 159 ], [ 155, 160 ], [ 154, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 154, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 167, 172 ], [ 166, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 166, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 180, 183 ], [ 179, 184 ], [ 178, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 178, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 192, 195 ], [ 191, 196 ], [ 190, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 190, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 204, 207 ], [ 203, 208 ], [ 202, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 202, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 216, 219 ], [ 215, 220 ], [ 214, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 214, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 228, 231 ], [ 227, 232 ], [ 226, 233 ], [ 233, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 226, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 240, 243 ], [ 239, 244 ], [ 238, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 247, 249 ], [ 238, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 252, 255 ], [ 251, 256 ], [ 250, 257 ], [ 257, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 250, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 264, 267 ], [ 263, 268 ], [ 262, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 271, 273 ], [ 262, 274 ], [ 274, 275 ], [ 275, 276 ], [ 276, 277 ], [ 277, 278 ], [ 276, 279 ], [ 275, 280 ], [ 274, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 274, 286 ], [ 286, 287 ], [ 287, 288 ], [ 288, 289 ], [ 289, 290 ], [ 288, 291 ], [ 287, 292 ], [ 286, 293 ], [ 293, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 286, 298 ], [ 298, 299 ], [ 299, 300 ], [ 300, 301 ], [ 301, 302 ], [ 300, 303 ], [ 299, 304 ], [ 298, 305 ], [ 305, 306 ], [ 306, 307 ], [ 307, 308 ], [ 307, 309 ], [ 298, 310 ], [ 310, 311 ], [ 311, 312 ], [ 312, 313 ], [ 313, 314 ], [ 312, 315 ], [ 311, 316 ], [ 310, 317 ], [ 317, 318 ], [ 318, 319 ], [ 319, 320 ], [ 319, 321 ], [ 310, 322 ], [ 322, 323 ], [ 323, 324 ], [ 324, 325 ], [ 325, 326 ], [ 324, 327 ], [ 323, 328 ], [ 322, 329 ], [ 329, 330 ], [ 330, 331 ], [ 331, 332 ], [ 331, 333 ], [ 322, 334 ], [ 334, 335 ], [ 335, 336 ], [ 336, 337 ], [ 337, 338 ], [ 336, 339 ], [ 335, 340 ], [ 334, 341 ], [ 341, 342 ], [ 342, 343 ], [ 343, 344 ], [ 343, 345 ], [ 334, 346 ], [ 346, 347 ], [ 347, 348 ], [ 348, 349 ], [ 349, 350 ], [ 348, 351 ], [ 347, 352 ], [ 346, 353 ], [ 353, 354 ], [ 354, 355 ], [ 355, 356 ], [ 355, 357 ], [ 346, 358 ], [ 358, 359 ], [ 359, 360 ], [ 360, 361 ], [ 361, 362 ], [ 360, 363 ], [ 359, 364 ], [ 358, 365 ], [ 365, 366 ], [ 366, 367 ], [ 367, 368 ], [ 367, 369 ], [ 11, 370 ], [ 370, 371 ], [ 370, 372 ], [ 11, 373 ], [ 373, 374 ], [ 374, 375 ], [ 375, 376 ], [ 375, 377 ], [ 373, 378 ], [ 378, 379 ], [ 378, 380 ], [ 373, 381 ], [ 381, 382 ], [ 382, 383 ], [ 373, 384 ], [ 385, 385 ], [ 385, 386 ], [ 386, 387 ], [ 387, 388 ], [ 388, 389 ], [ 388, 390 ], [ 386, 391 ], [ 392, 392 ], [ 392, 393 ], [ 393, 394 ], [ 392, 395 ], [ 392, 396 ], [ 396, 397 ], [ 396, 398 ], [ 9, 399 ], [ 399, 400 ], [ 0, 401 ], [ 401, 402 ], [ 401, 403 ] ]
[ "\n\nimport java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner in = new Scanner(System.in);\n\t\tint[] char_count = new int[26];\n\n\n\t\twhile(in.hasNextLine()){\n\n\t\t\tString str = in.nextLine();\n\n\n\t\t\tif(str.length() == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\t// str = in.next();\n\t\t\t\t// ??????????°????????????????\n\t\t\t\tString lower_case = str.toLowerCase();\n\t\t\t\t// ????????????1????????????????????????????????????????´?\n\t\t\t\t// char[] charArray = lower_case.toCharArray();\n\n\t\t\t\tfor (int i = 0; i < lower_case.length(); i++) {\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*}else{\n\n\t\t\t\t\tbreak;\n\n\n\n\t\t\t}*/\n\t\t}\n\n\n\t\t// ??¢????????????????????????????????????????????¨?????°?????¨???\n\t\tchar a = 'a';\n\n\t\tfor(int i = 0; i < 26; i++){\n\n\t\t\tSystem.out.println(a++ + \" : \" + char_count[i]);\n\n\t\t}\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner in = new Scanner(System.in);\n\t\tint[] char_count = new int[26];\n\n\n\t\twhile(in.hasNextLine()){\n\n\t\t\tString str = in.nextLine();\n\n\n\t\t\tif(str.length() == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\t// str = in.next();\n\t\t\t\t// ??????????°????????????????\n\t\t\t\tString lower_case = str.toLowerCase();\n\t\t\t\t// ????????????1????????????????????????????????????????´?\n\t\t\t\t// char[] charArray = lower_case.toCharArray();\n\n\t\t\t\tfor (int i = 0; i < lower_case.length(); i++) {\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*}else{\n\n\t\t\t\t\tbreak;\n\n\n\n\t\t\t}*/\n\t\t}\n\n\n\t\t// ??¢????????????????????????????????????????????¨?????°?????¨???\n\t\tchar a = 'a';\n\n\t\tfor(int i = 0; i < 26; i++){\n\n\t\t\tSystem.out.println(a++ + \" : \" + char_count[i]);\n\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner in = new Scanner(System.in);\n\t\tint[] char_count = new int[26];\n\n\n\t\twhile(in.hasNextLine()){\n\n\t\t\tString str = in.nextLine();\n\n\n\t\t\tif(str.length() == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\t// str = in.next();\n\t\t\t\t// ??????????°????????????????\n\t\t\t\tString lower_case = str.toLowerCase();\n\t\t\t\t// ????????????1????????????????????????????????????????´?\n\t\t\t\t// char[] charArray = lower_case.toCharArray();\n\n\t\t\t\tfor (int i = 0; i < lower_case.length(); i++) {\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*}else{\n\n\t\t\t\t\tbreak;\n\n\n\n\t\t\t}*/\n\t\t}\n\n\n\t\t// ??¢????????????????????????????????????????????¨?????°?????¨???\n\t\tchar a = 'a';\n\n\t\tfor(int i = 0; i < 26; i++){\n\n\t\t\tSystem.out.println(a++ + \" : \" + char_count[i]);\n\n\t\t}\n\t}", "main", "{\n\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner in = new Scanner(System.in);\n\t\tint[] char_count = new int[26];\n\n\n\t\twhile(in.hasNextLine()){\n\n\t\t\tString str = in.nextLine();\n\n\n\t\t\tif(str.length() == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\t// str = in.next();\n\t\t\t\t// ??????????°????????????????\n\t\t\t\tString lower_case = str.toLowerCase();\n\t\t\t\t// ????????????1????????????????????????????????????????´?\n\t\t\t\t// char[] charArray = lower_case.toCharArray();\n\n\t\t\t\tfor (int i = 0; i < lower_case.length(); i++) {\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*}else{\n\n\t\t\t\t\tbreak;\n\n\n\n\t\t\t}*/\n\t\t}\n\n\n\t\t// ??¢????????????????????????????????????????????¨?????°?????¨???\n\t\tchar a = 'a';\n\n\t\tfor(int i = 0; i < 26; i++){\n\n\t\t\tSystem.out.println(a++ + \" : \" + char_count[i]);\n\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int[] char_count = new int[26];", "char_count", "new int[26]", "26", "while(in.hasNextLine()){\n\n\t\t\tString str = in.nextLine();\n\n\n\t\t\tif(str.length() == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\t// str = in.next();\n\t\t\t\t// ??????????°????????????????\n\t\t\t\tString lower_case = str.toLowerCase();\n\t\t\t\t// ????????????1????????????????????????????????????????´?\n\t\t\t\t// char[] charArray = lower_case.toCharArray();\n\n\t\t\t\tfor (int i = 0; i < lower_case.length(); i++) {\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*}else{\n\n\t\t\t\t\tbreak;\n\n\n\n\t\t\t}*/\n\t\t}", "in.hasNextLine()", "in.hasNextLine", "in", "{\n\n\t\t\tString str = in.nextLine();\n\n\n\t\t\tif(str.length() == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\t// str = in.next();\n\t\t\t\t// ??????????°????????????????\n\t\t\t\tString lower_case = str.toLowerCase();\n\t\t\t\t// ????????????1????????????????????????????????????????´?\n\t\t\t\t// char[] charArray = lower_case.toCharArray();\n\n\t\t\t\tfor (int i = 0; i < lower_case.length(); i++) {\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*}else{\n\n\t\t\t\t\tbreak;\n\n\n\n\t\t\t}*/\n\t\t}", "String str = in.nextLine();", "str", "in.nextLine()", "in.nextLine", "in", "if(str.length() == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\t// str = in.next();\n\t\t\t\t// ??????????°????????????????\n\t\t\t\tString lower_case = str.toLowerCase();\n\t\t\t\t// ????????????1????????????????????????????????????????´?\n\t\t\t\t// char[] charArray = lower_case.toCharArray();\n\n\t\t\t\tfor (int i = 0; i < lower_case.length(); i++) {\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}", "str.length() == 0", "str.length()", "str.length", "str", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\n\t\t\t\t// str = in.next();\n\t\t\t\t// ??????????°????????????????\n\t\t\t\tString lower_case = str.toLowerCase();\n\t\t\t\t// ????????????1????????????????????????????????????????´?\n\t\t\t\t// char[] charArray = lower_case.toCharArray();\n\n\t\t\t\tfor (int i = 0; i < lower_case.length(); i++) {\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}", "String lower_case = str.toLowerCase();", "lower_case", "str.toLowerCase()", "str.toLowerCase", "str", "for (int i = 0; i < lower_case.length(); i++) {\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < lower_case.length()", "i", "lower_case.length()", "lower_case.length", "lower_case", "i++", "i++", "i", "{\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}", "{\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}", "if(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'a'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'a'", "{\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}", "char_count[0]++", "char_count[0]", "char_count", "0", "if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'b'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'b'", "{\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}", "char_count[1]++", "char_count[1]", "char_count", "1", "if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'c'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'c'", "{\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}", "char_count[2]++", "char_count[2]", "char_count", "2", "if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'd'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'d'", "{\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}", "char_count[3]++", "char_count[3]", "char_count", "3", "if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'e'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'e'", "{\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}", "char_count[4]++", "char_count[4]", "char_count", "4", "if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'f'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'f'", "{\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}", "char_count[5]++", "char_count[5]", "char_count", "5", "if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'g'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'g'", "{\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}", "char_count[6]++", "char_count[6]", "char_count", "6", "if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'h'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'h'", "{\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}", "char_count[7]++", "char_count[7]", "char_count", "7", "if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'i'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'i'", "{\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}", "char_count[8]++", "char_count[8]", "char_count", "8", "if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'j'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'j'", "{\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}", "char_count[9]++", "char_count[9]", "char_count", "9", "if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'k'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'k'", "{\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}", "char_count[10]++", "char_count[10]", "char_count", "10", "if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'l'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'l'", "{\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}", "char_count[11]++", "char_count[11]", "char_count", "11", "if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'm'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'m'", "{\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}", "char_count[12]++", "char_count[12]", "char_count", "12", "if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'n'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'n'", "{\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}", "char_count[13]++", "char_count[13]", "char_count", "13", "if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'o'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'o'", "{\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}", "char_count[14]++", "char_count[14]", "char_count", "14", "if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'p'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'p'", "{\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}", "char_count[15]++", "char_count[15]", "char_count", "15", "if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'q'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'q'", "{\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}", "char_count[16]++", "char_count[16]", "char_count", "16", "if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'r'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'r'", "{\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}", "char_count[17]++", "char_count[17]", "char_count", "17", "if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 's'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'s'", "{\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}", "char_count[18]++", "char_count[18]", "char_count", "18", "if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 't'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'t'", "{\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}", "char_count[19]++", "char_count[19]", "char_count", "19", "if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'u'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'u'", "{\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}", "char_count[20]++", "char_count[20]", "char_count", "20", "if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'v'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'v'", "{\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}", "char_count[21]++", "char_count[21]", "char_count", "21", "if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'w'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'w'", "{\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}", "char_count[22]++", "char_count[22]", "char_count", "22", "if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'x'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'x'", "{\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}", "char_count[23]++", "char_count[23]", "char_count", "23", "if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'y'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'y'", "{\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}", "char_count[24]++", "char_count[24]", "char_count", "24", "if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "lower_case.charAt(i) == 'z'", "lower_case.charAt(i)", "lower_case.charAt", "lower_case", "i", "'z'", "{\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}", "char_count[25]++", "char_count[25]", "char_count", "25", "char a = 'a';", "a", "'a'", "for(int i = 0; i < 26; i++){\n\n\t\t\tSystem.out.println(a++ + \" : \" + char_count[i]);\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 26", "i", "26", "i++", "i++", "i", "{\n\n\t\t\tSystem.out.println(a++ + \" : \" + char_count[i]);\n\n\t\t}", "{\n\n\t\t\tSystem.out.println(a++ + \" : \" + char_count[i]);\n\n\t\t}", "System.out.println(a++ + \" : \" + char_count[i])", "System.out.println", "System.out", "System", "System.out", "a++ + \" : \" + char_count[i]", "a++ + \" : \" + char_count[i]", "a++", "a", "\" : \"", "char_count[i]", "char_count", "i", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner in = new Scanner(System.in);\n\t\tint[] char_count = new int[26];\n\n\n\t\twhile(in.hasNextLine()){\n\n\t\t\tString str = in.nextLine();\n\n\n\t\t\tif(str.length() == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\t// str = in.next();\n\t\t\t\t// ??????????°????????????????\n\t\t\t\tString lower_case = str.toLowerCase();\n\t\t\t\t// ????????????1????????????????????????????????????????´?\n\t\t\t\t// char[] charArray = lower_case.toCharArray();\n\n\t\t\t\tfor (int i = 0; i < lower_case.length(); i++) {\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*}else{\n\n\t\t\t\t\tbreak;\n\n\n\n\t\t\t}*/\n\t\t}\n\n\n\t\t// ??¢????????????????????????????????????????????¨?????°?????¨???\n\t\tchar a = 'a';\n\n\t\tfor(int i = 0; i < 26; i++){\n\n\t\t\tSystem.out.println(a++ + \" : \" + char_count[i]);\n\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner in = new Scanner(System.in);\n\t\tint[] char_count = new int[26];\n\n\n\t\twhile(in.hasNextLine()){\n\n\t\t\tString str = in.nextLine();\n\n\n\t\t\tif(str.length() == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t\t// str = in.next();\n\t\t\t\t// ??????????°????????????????\n\t\t\t\tString lower_case = str.toLowerCase();\n\t\t\t\t// ????????????1????????????????????????????????????????´?\n\t\t\t\t// char[] charArray = lower_case.toCharArray();\n\n\t\t\t\tfor (int i = 0; i < lower_case.length(); i++) {\n\n\t\t\t\t\tif(lower_case.charAt(i) == 'a'){\n\n\t\t\t\t\t\tchar_count[0]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'b'){\n\n\t\t\t\t\t\tchar_count[1]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'c'){\n\n\t\t\t\t\t\tchar_count[2]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'd'){\n\n\t\t\t\t\t\tchar_count[3]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'e'){\n\n\t\t\t\t\t\tchar_count[4]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'f'){\n\n\t\t\t\t\t\tchar_count[5]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'g'){\n\n\t\t\t\t\t\tchar_count[6]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'h'){\n\n\t\t\t\t\t\tchar_count[7]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'i'){\n\n\t\t\t\t\t\tchar_count[8]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'j'){\n\n\t\t\t\t\t\tchar_count[9]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'k'){\n\n\t\t\t\t\t\tchar_count[10]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'l'){\n\n\t\t\t\t\t\tchar_count[11]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'm'){\n\n\t\t\t\t\t\tchar_count[12]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'n'){\n\n\t\t\t\t\t\tchar_count[13]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'o'){\n\n\t\t\t\t\t\tchar_count[14]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'p'){\n\n\t\t\t\t\t\tchar_count[15]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'q'){\n\n\t\t\t\t\t\tchar_count[16]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'r'){\n\n\t\t\t\t\t\tchar_count[17]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 's'){\n\n\t\t\t\t\t\tchar_count[18]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 't'){\n\n\t\t\t\t\t\tchar_count[19]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'u'){\n\n\t\t\t\t\t\tchar_count[20]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'v'){\n\n\t\t\t\t\t\tchar_count[21]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'w'){\n\n\t\t\t\t\t\tchar_count[22]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'x'){\n\n\t\t\t\t\t\tchar_count[23]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'y'){\n\n\t\t\t\t\t\tchar_count[24]++;\n\n\t\t\t\t\t}else if(lower_case.charAt(i) == 'z'){\n\n\t\t\t\t\t\tchar_count[25]++;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*}else{\n\n\t\t\t\t\tbreak;\n\n\n\n\t\t\t}*/\n\t\t}\n\n\n\t\t// ??¢????????????????????????????????????????????¨?????°?????¨???\n\t\tchar a = 'a';\n\n\t\tfor(int i = 0; i < 26; i++){\n\n\t\t\tSystem.out.println(a++ + \" : \" + char_count[i]);\n\n\t\t}\n\t}\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { //BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner in = new Scanner(System.in); int[] char_count = new int[26]; while(in.hasNextLine()){ String str = in.nextLine(); if(str.length() == 0){ break; }else{ // str = in.next(); // ??????????°???????????????? String lower_case = str.toLowerCase(); // ????????????1????????????????????????????????????????´? // char[] charArray = lower_case.toCharArray(); for (int i = 0; i < lower_case.length(); i++) { if(lower_case.charAt(i) == 'a'){ char_count[0]++; }else if(lower_case.charAt(i) == 'b'){ char_count[1]++; }else if(lower_case.charAt(i) == 'c'){ char_count[2]++; }else if(lower_case.charAt(i) == 'd'){ char_count[3]++; }else if(lower_case.charAt(i) == 'e'){ char_count[4]++; }else if(lower_case.charAt(i) == 'f'){ char_count[5]++; }else if(lower_case.charAt(i) == 'g'){ char_count[6]++; }else if(lower_case.charAt(i) == 'h'){ char_count[7]++; }else if(lower_case.charAt(i) == 'i'){ char_count[8]++; }else if(lower_case.charAt(i) == 'j'){ char_count[9]++; }else if(lower_case.charAt(i) == 'k'){ char_count[10]++; }else if(lower_case.charAt(i) == 'l'){ char_count[11]++; }else if(lower_case.charAt(i) == 'm'){ char_count[12]++; }else if(lower_case.charAt(i) == 'n'){ char_count[13]++; }else if(lower_case.charAt(i) == 'o'){ char_count[14]++; }else if(lower_case.charAt(i) == 'p'){ char_count[15]++; }else if(lower_case.charAt(i) == 'q'){ char_count[16]++; }else if(lower_case.charAt(i) == 'r'){ char_count[17]++; }else if(lower_case.charAt(i) == 's'){ char_count[18]++; }else if(lower_case.charAt(i) == 't'){ char_count[19]++; }else if(lower_case.charAt(i) == 'u'){ char_count[20]++; }else if(lower_case.charAt(i) == 'v'){ char_count[21]++; }else if(lower_case.charAt(i) == 'w'){ char_count[22]++; }else if(lower_case.charAt(i) == 'x'){ char_count[23]++; }else if(lower_case.charAt(i) == 'y'){ char_count[24]++; }else if(lower_case.charAt(i) == 'z'){ char_count[25]++; } } } /*}else{ break; }*/ } // ??¢????????????????????????????????????????????¨?????°?????¨??? char a = 'a'; for(int i = 0; i < 26; i++){ System.out.println(a++ + " : " + char_count[i]); } } }