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,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
17,
14,
2,
4,
18,
13,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
58,
8
],
[
58,
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
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
33,
40
],
[
32,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
32,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
9,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
]
| [
"import java.math.BigInteger;\nimport java.util.Scanner;\n\n// 提出時にclass Main に書き換え\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t// 標準入力を受け取る\n\t\tScanner sc = new Scanner(System.in);\n\t\tBigInteger N = sc.nextBigInteger(); // BigInteger Nを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\t\t// Nを9で割った数の余り\n\t\tBigInteger m = N.remainder(BigInteger.valueOf(9));\n\n\t\tif(m.compareTo(BigInteger.ZERO) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"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\tBigInteger N = sc.nextBigInteger(); // BigInteger Nを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\t\t// Nを9で割った数の余り\n\t\tBigInteger m = N.remainder(BigInteger.valueOf(9));\n\n\t\tif(m.compareTo(BigInteger.ZERO) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\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\tBigInteger N = sc.nextBigInteger(); // BigInteger Nを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\t\t// Nを9で割った数の余り\n\t\tBigInteger m = N.remainder(BigInteger.valueOf(9));\n\n\t\tif(m.compareTo(BigInteger.ZERO) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\t// 標準入力を受け取る\n\t\tScanner sc = new Scanner(System.in);\n\t\tBigInteger N = sc.nextBigInteger(); // BigInteger Nを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\t\t// Nを9で割った数の余り\n\t\tBigInteger m = N.remainder(BigInteger.valueOf(9));\n\n\t\tif(m.compareTo(BigInteger.ZERO) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"BigInteger N = sc.nextBigInteger();",
"N",
"sc.nextBigInteger()",
"sc.nextBigInteger",
"sc",
"sc.close()",
"sc.close",
"sc",
"BigInteger m = N.remainder(BigInteger.valueOf(9));",
"m",
"N.remainder(BigInteger.valueOf(9))",
"N.remainder",
"N",
"BigInteger.valueOf(9)",
"BigInteger.valueOf",
"BigInteger",
"9",
"if(m.compareTo(BigInteger.ZERO) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"m.compareTo(BigInteger.ZERO) == 0",
"m.compareTo(BigInteger.ZERO)",
"m.compareTo",
"m",
"BigInteger.ZERO",
"BigInteger",
"BigInteger.ZERO",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"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\tBigInteger N = sc.nextBigInteger(); // BigInteger Nを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\t\t// Nを9で割った数の余り\n\t\tBigInteger m = N.remainder(BigInteger.valueOf(9));\n\n\t\tif(m.compareTo(BigInteger.ZERO) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\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\tBigInteger N = sc.nextBigInteger(); // BigInteger Nを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\t\t// Nを9で割った数の余り\n\t\tBigInteger m = N.remainder(BigInteger.valueOf(9));\n\n\t\tif(m.compareTo(BigInteger.ZERO) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
]
| import java.math.BigInteger;
import java.util.Scanner;
// 提出時にclass Main に書き換え
public class Main {
public static void main(String[] args) {
// 標準入力を受け取る
Scanner sc = new Scanner(System.in);
BigInteger N = sc.nextBigInteger(); // BigInteger Nを受け取る
sc.close(); // 標準入力を終了
// Nを9で割った数の余り
BigInteger m = N.remainder(BigInteger.valueOf(9));
if(m.compareTo(BigInteger.ZERO) == 0) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
17,
30,
4,
18,
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
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
48,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
9,
64
],
[
64,
65
]
]
| [
"import java.util.*;\nimport static java.lang.System.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(in);\n String s = sc.next();\n int sum = 0;\n \n for(int i=0; i<s.length(); i++){\n sum = sum + (s.charAt(i)-'0');\n }\n if(sum % 9 ==0){\n out.println(\"Yes\");\n}else{\n out.println(\"No\");\n }\n}\n}",
"import java.util.*;",
"util.*",
"java",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(in);\n String s = sc.next();\n int sum = 0;\n \n for(int i=0; i<s.length(); i++){\n sum = sum + (s.charAt(i)-'0');\n }\n if(sum % 9 ==0){\n out.println(\"Yes\");\n}else{\n out.println(\"No\");\n }\n}\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(in);\n String s = sc.next();\n int sum = 0;\n \n for(int i=0; i<s.length(); i++){\n sum = sum + (s.charAt(i)-'0');\n }\n if(sum % 9 ==0){\n out.println(\"Yes\");\n}else{\n out.println(\"No\");\n }\n}",
"main",
"{\n Scanner sc = new Scanner(in);\n String s = sc.next();\n int sum = 0;\n \n for(int i=0; i<s.length(); i++){\n sum = sum + (s.charAt(i)-'0');\n }\n if(sum % 9 ==0){\n out.println(\"Yes\");\n}else{\n out.println(\"No\");\n }\n}",
"Scanner sc = new Scanner(in);",
"sc",
"new Scanner(in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"int sum = 0;",
"sum",
"0",
"for(int i=0; i<s.length(); i++){\n sum = sum + (s.charAt(i)-'0');\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n sum = sum + (s.charAt(i)-'0');\n }",
"{\n sum = sum + (s.charAt(i)-'0');\n }",
"sum = sum + (s.charAt(i)-'0')",
"sum",
"sum + (s.charAt(i)-'0')",
"sum",
"(s.charAt(i)-'0')",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'0'",
"if(sum % 9 ==0){\n out.println(\"Yes\");\n}else{\n out.println(\"No\");\n }",
"sum % 9 ==0",
"sum % 9",
"sum",
"9",
"0",
"{\n out.println(\"Yes\");\n}",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"{\n out.println(\"No\");\n }",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.*;
import static java.lang.System.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(in);
String s = sc.next();
int sum = 0;
for(int i=0; i<s.length(); i++){
sum = sum + (s.charAt(i)-'0');
}
if(sum % 9 ==0){
out.println("Yes");
}else{
out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
17,
41,
13,
18,
13,
13,
41,
13,
17,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
0,
13,
2,
13,
13,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
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
],
[
19,
22
],
[
19,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
8,
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
],
[
52,
53
],
[
52,
54
],
[
46,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
46,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
65,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String S =sc.next();\n String SS[] =S.split(\"\",0);\n int N =SS.length;\n long ans =0;\n int t;\n for(int i=0;i<N;i++){\n t=Integer.parseInt(SS[i]);\n ans =ans+t;\n ans =ans%9;}\n if(ans ==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\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 =sc.next();\n String SS[] =S.split(\"\",0);\n int N =SS.length;\n long ans =0;\n int t;\n for(int i=0;i<N;i++){\n t=Integer.parseInt(SS[i]);\n ans =ans+t;\n ans =ans%9;}\n if(ans ==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String S =sc.next();\n String SS[] =S.split(\"\",0);\n int N =SS.length;\n long ans =0;\n int t;\n for(int i=0;i<N;i++){\n t=Integer.parseInt(SS[i]);\n ans =ans+t;\n ans =ans%9;}\n if(ans ==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n }",
"main",
"{\n Scanner sc =new Scanner(System.in);\n String S =sc.next();\n String SS[] =S.split(\"\",0);\n int N =SS.length;\n long ans =0;\n int t;\n for(int i=0;i<N;i++){\n t=Integer.parseInt(SS[i]);\n ans =ans+t;\n ans =ans%9;}\n if(ans ==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n }",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S =sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String SS[] =S.split(\"\",0);",
"SS",
"S.split(\"\",0)",
"S.split",
"S",
"\"\"",
"0",
"int N =SS.length;",
"N",
"SS.length",
"SS",
"SS.length",
"long ans =0;",
"ans",
"0",
"int t;",
"t",
"for(int i=0;i<N;i++){\n t=Integer.parseInt(SS[i]);\n ans =ans+t;\n ans =ans%9;}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n t=Integer.parseInt(SS[i]);\n ans =ans+t;\n ans =ans%9;}",
"{\n t=Integer.parseInt(SS[i]);\n ans =ans+t;\n ans =ans%9;}",
"t=Integer.parseInt(SS[i])",
"t",
"Integer.parseInt(SS[i])",
"Integer.parseInt",
"Integer",
"SS[i]",
"SS",
"i",
"ans =ans+t",
"ans",
"ans+t",
"ans",
"t",
"ans =ans%9",
"ans",
"ans%9",
"ans",
"9",
"if(ans ==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}",
"ans ==0",
"ans",
"0",
"{System.out.println(\"Yes\");}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{System.out.println(\"No\");}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String S =sc.next();\n String SS[] =S.split(\"\",0);\n int N =SS.length;\n long ans =0;\n int t;\n for(int i=0;i<N;i++){\n t=Integer.parseInt(SS[i]);\n ans =ans+t;\n ans =ans%9;}\n if(ans ==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String S =sc.next();\n String SS[] =S.split(\"\",0);\n int N =SS.length;\n long ans =0;\n int t;\n for(int i=0;i<N;i++){\n t=Integer.parseInt(SS[i]);\n ans =ans+t;\n ans =ans%9;}\n if(ans ==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc =new Scanner(System.in);
String S =sc.next();
String SS[] =S.split("",0);
int N =SS.length;
long ans =0;
int t;
for(int i=0;i<N;i++){
t=Integer.parseInt(SS[i]);
ans =ans+t;
ans =ans%9;}
if(ans ==0){System.out.println("Yes");}
else{System.out.println("No");}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
14,
4,
18,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
47,
8
],
[
47,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
25,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
24,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
9,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
]
| [
"import java.math.BigInteger;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tBigInteger b1= new BigInteger(scan.nextLine());\n\t\tBigInteger b2= new BigInteger(\"9\");\n\t\tBigInteger c= new BigInteger(\"0\");\n\t\tif((b1.mod(b2)).equals(c)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\n\t}\n\n}",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tBigInteger b1= new BigInteger(scan.nextLine());\n\t\tBigInteger b2= new BigInteger(\"9\");\n\t\tBigInteger c= new BigInteger(\"0\");\n\t\tif((b1.mod(b2)).equals(c)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tBigInteger b1= new BigInteger(scan.nextLine());\n\t\tBigInteger b2= new BigInteger(\"9\");\n\t\tBigInteger c= new BigInteger(\"0\");\n\t\tif((b1.mod(b2)).equals(c)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tBigInteger b1= new BigInteger(scan.nextLine());\n\t\tBigInteger b2= new BigInteger(\"9\");\n\t\tBigInteger c= new BigInteger(\"0\");\n\t\tif((b1.mod(b2)).equals(c)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"BigInteger b1= new BigInteger(scan.nextLine());",
"b1",
"new BigInteger(scan.nextLine())",
"BigInteger b2= new BigInteger(\"9\");",
"b2",
"new BigInteger(\"9\")",
"BigInteger c= new BigInteger(\"0\");",
"c",
"new BigInteger(\"0\")",
"if((b1.mod(b2)).equals(c)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");",
"(b1.mod(b2)).equals(c)",
"(b1.mod(b2)).equals",
"(b1.mod(b2))",
"b1.mod",
"b1",
"b2",
"c",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tBigInteger b1= new BigInteger(scan.nextLine());\n\t\tBigInteger b2= new BigInteger(\"9\");\n\t\tBigInteger c= new BigInteger(\"0\");\n\t\tif((b1.mod(b2)).equals(c)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tBigInteger b1= new BigInteger(scan.nextLine());\n\t\tBigInteger b2= new BigInteger(\"9\");\n\t\tBigInteger c= new BigInteger(\"0\");\n\t\tif((b1.mod(b2)).equals(c)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\n\t}\n\n}",
"Main"
]
| import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
BigInteger b1= new BigInteger(scan.nextLine());
BigInteger b2= new BigInteger("9");
BigInteger c= new BigInteger("0");
if((b1.mod(b2)).equals(c)) System.out.println("Yes");
else System.out.println("No");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
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,
18,
13,
13,
17,
4,
13,
8,
2,
2,
13,
17,
17,
17,
17,
4,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
20,
23,
13,
12,
13,
30,
4,
18,
13,
20,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
12,
13,
30,
4,
18,
13,
17,
12,
13,
30,
4,
18,
13,
17,
12,
13,
30,
4,
18,
13,
17,
12,
13,
30,
4,
18,
13,
17,
12,
13,
30,
4,
18,
13,
17,
12,
13,
30,
4,
18,
13,
17,
12,
13,
30,
4,
18,
13,
8,
13,
17,
17,
23,
13,
12,
13,
30,
4,
18,
13,
8,
13,
17,
17,
23,
13,
12,
13,
30,
4,
18,
13,
8,
13,
17,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
41,
13,
2,
18,
13,
13,
17,
2,
13,
13,
1,
4,
18,
13,
18,
13,
13,
4,
18,
13,
17,
40,
13,
30,
4,
18,
13,
18,
13,
2,
18,
13,
13,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
41,
13,
2,
18,
13,
13,
17,
2,
13,
13,
1,
4,
18,
13,
18,
13,
13,
4,
18,
13,
17,
40,
13,
30,
4,
18,
13,
18,
13,
2,
18,
13,
13,
17,
23,
13,
12,
13,
30,
41,
13,
2,
4,
18,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
4,
18,
13,
4,
18,
13,
4,
18,
13,
17,
40,
13,
30,
14,
2,
13,
17,
30,
4,
18,
13,
4,
18,
13,
30,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
13,
17,
4,
13,
12,
13,
30,
4,
18,
13,
12,
13,
30,
4,
18,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
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
],
[
540,
14
],
[
540,
15
],
[
15,
16
],
[
15,
17
],
[
540,
18
],
[
18,
19
],
[
18,
20
],
[
540,
21
],
[
21,
22
],
[
540,
23
],
[
23,
24
],
[
23,
25
],
[
540,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
39,
40
],
[
39,
41
],
[
28,
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
],
[
60,
62
],
[
59,
63
],
[
28,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
66,
73
],
[
28,
74
],
[
74,
75
],
[
26,
76
],
[
76,
77
],
[
540,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
78,
85
],
[
85,
86
],
[
540,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
87,
94
],
[
94,
95
],
[
540,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
96,
103
],
[
103,
104
],
[
540,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
105,
112
],
[
112,
113
],
[
540,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
114,
121
],
[
121,
122
],
[
540,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
123,
130
],
[
130,
131
],
[
540,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
132,
139
],
[
139,
140
],
[
540,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
141,
148
],
[
148,
149
],
[
540,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
150,
157
],
[
157,
158
],
[
540,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
159,
166
],
[
166,
167
],
[
540,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
171,
174
],
[
168,
175
],
[
175,
176
],
[
540,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
177,
184
],
[
184,
185
],
[
540,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
189,
192
],
[
186,
193
],
[
193,
194
],
[
540,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
195,
202
],
[
202,
203
],
[
540,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
540,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
540,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
220,
223
],
[
540,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
227,
230
],
[
540,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
540,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
241,
244
],
[
540,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
248,
251
],
[
540,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
255,
258
],
[
258,
259
],
[
258,
260
],
[
258,
261
],
[
252,
262
],
[
262,
263
],
[
540,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
267,
270
],
[
270,
271
],
[
270,
272
],
[
270,
273
],
[
264,
274
],
[
274,
275
],
[
540,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
279,
282
],
[
282,
283
],
[
282,
284
],
[
282,
285
],
[
276,
286
],
[
286,
287
],
[
540,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
292,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
299,
300
],
[
299,
301
],
[
298,
302
],
[
291,
303
],
[
303,
304
],
[
303,
305
],
[
291,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
307,
310
],
[
310,
311
],
[
310,
312
],
[
306,
313
],
[
313,
314
],
[
314,
315
],
[
313,
316
],
[
306,
317
],
[
317,
318
],
[
291,
319
],
[
290,
320
],
[
320,
321
],
[
321,
322
],
[
320,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
288,
330
],
[
330,
331
],
[
540,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
340,
341
],
[
340,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
342,
346
],
[
335,
347
],
[
347,
348
],
[
347,
349
],
[
335,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
351,
354
],
[
354,
355
],
[
354,
356
],
[
350,
357
],
[
357,
358
],
[
358,
359
],
[
357,
360
],
[
350,
361
],
[
361,
362
],
[
335,
363
],
[
334,
364
],
[
364,
365
],
[
365,
366
],
[
364,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
373
],
[
332,
374
],
[
374,
375
],
[
540,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
382,
383
],
[
383,
384
],
[
381,
385
],
[
378,
386
],
[
386,
387
],
[
386,
388
],
[
388,
389
],
[
389,
390
],
[
378,
391
],
[
391,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
391,
396
],
[
396,
397
],
[
396,
398
],
[
391,
399
],
[
399,
400
],
[
400,
401
],
[
401,
402
],
[
400,
403
],
[
403,
404
],
[
404,
405
],
[
399,
406
],
[
406,
407
],
[
407,
408
],
[
406,
409
],
[
399,
410
],
[
410,
411
],
[
391,
412
],
[
378,
413
],
[
413,
414
],
[
414,
415
],
[
414,
416
],
[
413,
417
],
[
417,
418
],
[
418,
419
],
[
419,
420
],
[
418,
421
],
[
421,
422
],
[
422,
423
],
[
413,
424
],
[
424,
425
],
[
425,
426
],
[
426,
427
],
[
376,
428
],
[
428,
429
],
[
540,
430
],
[
430,
431
],
[
430,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
433,
436
],
[
432,
437
],
[
437,
438
],
[
540,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
442,
443
],
[
443,
444
],
[
540,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
540,
451
],
[
451,
452
],
[
451,
453
],
[
453,
454
],
[
451,
455
],
[
455,
456
],
[
451,
457
],
[
457,
458
],
[
457,
459
],
[
459,
460
],
[
460,
461
],
[
460,
462
],
[
451,
463
],
[
463,
464
],
[
463,
465
],
[
465,
466
],
[
466,
467
],
[
467,
468
],
[
468,
469
],
[
468,
470
],
[
467,
471
],
[
471,
472
],
[
472,
473
],
[
473,
474
],
[
466,
475
],
[
475,
476
],
[
476,
477
],
[
477,
478
],
[
477,
479
],
[
479,
480
],
[
480,
481
],
[
481,
482
],
[
476,
483
],
[
483,
484
],
[
484,
485
],
[
484,
486
],
[
465,
487
],
[
487,
488
],
[
488,
489
],
[
489,
490
],
[
451,
491
],
[
491,
492
],
[
491,
493
],
[
493,
494
],
[
494,
495
],
[
495,
496
],
[
496,
497
],
[
495,
498
],
[
498,
499
],
[
451,
500
],
[
500,
501
],
[
500,
502
],
[
502,
503
],
[
503,
504
],
[
504,
505
],
[
505,
506
],
[
504,
507
],
[
507,
508
],
[
451,
509
],
[
509,
510
],
[
509,
511
],
[
511,
512
],
[
512,
513
],
[
513,
514
],
[
514,
515
],
[
513,
516
],
[
516,
517
],
[
451,
518
],
[
518,
519
],
[
518,
520
],
[
520,
521
],
[
521,
522
],
[
521,
523
],
[
520,
524
],
[
524,
525
],
[
525,
526
],
[
525,
527
],
[
527,
528
],
[
528,
529
],
[
529,
530
],
[
524,
531
],
[
531,
532
],
[
532,
533
],
[
532,
534
],
[
534,
535
],
[
535,
536
],
[
520,
537
],
[
537,
538
],
[
0,
539
],
[
539,
540
],
[
539,
541
]
]
| [
"\nimport java.io.*;\nimport java.util.*;\nimport static java.lang.Math.*;\nimport static java.util.Arrays.*;\n\n/**\n * @author AnonymousP\n * @__WHEN YOU FEEL LIKE QUITTING, THINK ABOUT WHY YOU STARTED__@\n */\n//COMBINATON = nCr = n*(n-1)/2\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n\n String s = sc.next();\n\n char c[] = s.toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; i++) {\n sum += (c[i] - '0');\n }\n prln((sum % 9 == 0) ? \"Yes\" : \"No\");\n close();\n }\n\n static FastReader sc = new FastReader();\n static PrintWriter __out = new PrintWriter(new OutputStreamWriter(System.out));\n static StringTokenizer input;\n static Random __rand = new Random();\n\n // input\n //*******FAST IO*************FAST IO***************FAST IO****************//\n static class FastReader {\n\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n// output\n\n static void pr(int i) {\n __out.print(i);\n }\n\n static void prln(int i) {\n __out.println(i);\n }\n\n static void pr(long l) {\n __out.print(l);\n }\n\n static void prln(long l) {\n __out.println(l);\n }\n\n static void pr(double d) {\n __out.print(d);\n }\n\n static void prln(double d) {\n __out.println(d);\n }\n\n static void pr(char c) {\n __out.print(c);\n }\n\n static void prln(char c) {\n __out.println(c);\n }\n\n static void pr(char[] s) {\n __out.print(new String(s));\n }\n\n static void prln(char[] s) {\n __out.println(new String(s));\n }\n\n static void pr(String s) {\n __out.print(s);\n }\n\n static void prln(String s) {\n __out.println(s);\n }\n\n static void pr(Object o) {\n __out.print(o);\n }\n\n static void prln(Object o) {\n __out.println(o);\n }\n\n static void prln() {\n __out.println();\n }\n\n static void pryes() {\n __out.println(\"yes\");\n }\n\n static void pry() {\n __out.println(\"Yes\");\n }\n\n static void prY() {\n __out.println(\"YES\");\n }\n\n static void prno() {\n __out.println(\"no\");\n }\n\n static void prn() {\n __out.println(\"No\");\n }\n\n static void prN() {\n __out.println(\"NO\");\n }\n\n static void pryesno(boolean b) {\n __out.println(b ? \"yes\" : \"no\");\n }\n\n ;\n static void pryn(boolean b) {\n __out.println(b ? \"Yes\" : \"No\");\n }\n\n static void prYN(boolean b) {\n __out.println(b ? \"YES\" : \"NO\");\n }\n\n static void prln(int... a) {\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }\n\n static void prln(long... a) {\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }\n\n static <T> void prln(Collection<T> c) {\n int n = c.size() - 1;\n Iterator<T> iter = c.iterator();\n for (int i = 0; i < n; __out.print(iter.next()), __out.print(' '), ++i);\n if (n >= 0) {\n __out.println(iter.next());\n } else {\n __out.println();\n }\n }\n\n static void h() {\n __out.println(\"hlfd\");\n flush();\n }\n\n static void flush() {\n __out.flush();\n }\n\n static void close() {\n __out.close();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.util.Arrays.*;",
"import static java.util.Arrays.*;",
"import static java.util.Arrays.*;",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n String s = sc.next();\n\n char c[] = s.toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; i++) {\n sum += (c[i] - '0');\n }\n prln((sum % 9 == 0) ? \"Yes\" : \"No\");\n close();\n }\n\n static FastReader sc = new FastReader();\n static PrintWriter __out = new PrintWriter(new OutputStreamWriter(System.out));\n static StringTokenizer input;\n static Random __rand = new Random();\n\n // input\n //*******FAST IO*************FAST IO***************FAST IO****************//\n static class FastReader {\n\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n// output\n\n static void pr(int i) {\n __out.print(i);\n }\n\n static void prln(int i) {\n __out.println(i);\n }\n\n static void pr(long l) {\n __out.print(l);\n }\n\n static void prln(long l) {\n __out.println(l);\n }\n\n static void pr(double d) {\n __out.print(d);\n }\n\n static void prln(double d) {\n __out.println(d);\n }\n\n static void pr(char c) {\n __out.print(c);\n }\n\n static void prln(char c) {\n __out.println(c);\n }\n\n static void pr(char[] s) {\n __out.print(new String(s));\n }\n\n static void prln(char[] s) {\n __out.println(new String(s));\n }\n\n static void pr(String s) {\n __out.print(s);\n }\n\n static void prln(String s) {\n __out.println(s);\n }\n\n static void pr(Object o) {\n __out.print(o);\n }\n\n static void prln(Object o) {\n __out.println(o);\n }\n\n static void prln() {\n __out.println();\n }\n\n static void pryes() {\n __out.println(\"yes\");\n }\n\n static void pry() {\n __out.println(\"Yes\");\n }\n\n static void prY() {\n __out.println(\"YES\");\n }\n\n static void prno() {\n __out.println(\"no\");\n }\n\n static void prn() {\n __out.println(\"No\");\n }\n\n static void prN() {\n __out.println(\"NO\");\n }\n\n static void pryesno(boolean b) {\n __out.println(b ? \"yes\" : \"no\");\n }\n\n ;\n static void pryn(boolean b) {\n __out.println(b ? \"Yes\" : \"No\");\n }\n\n static void prYN(boolean b) {\n __out.println(b ? \"YES\" : \"NO\");\n }\n\n static void prln(int... a) {\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }\n\n static void prln(long... a) {\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }\n\n static <T> void prln(Collection<T> c) {\n int n = c.size() - 1;\n Iterator<T> iter = c.iterator();\n for (int i = 0; i < n; __out.print(iter.next()), __out.print(' '), ++i);\n if (n >= 0) {\n __out.println(iter.next());\n } else {\n __out.println();\n }\n }\n\n static void h() {\n __out.println(\"hlfd\");\n flush();\n }\n\n static void flush() {\n __out.flush();\n }\n\n static void close() {\n __out.close();\n }\n}",
"Main",
"static FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"static PrintWriter __out = new PrintWriter(new OutputStreamWriter(System.out));",
"__out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"static StringTokenizer input;",
"input",
"static Random __rand = new Random();",
"__rand",
"new Random()",
"public static void main(String[] args) throws IOException {\n\n String s = sc.next();\n\n char c[] = s.toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; i++) {\n sum += (c[i] - '0');\n }\n prln((sum % 9 == 0) ? \"Yes\" : \"No\");\n close();\n }",
"main",
"{\n\n String s = sc.next();\n\n char c[] = s.toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; i++) {\n sum += (c[i] - '0');\n }\n prln((sum % 9 == 0) ? \"Yes\" : \"No\");\n close();\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"char c[] = s.toCharArray();",
"c",
"s.toCharArray()",
"s.toCharArray",
"s",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < c.length; i++) {\n sum += (c[i] - '0');\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n sum += (c[i] - '0');\n }",
"{\n sum += (c[i] - '0');\n }",
"sum += (c[i] - '0')",
"sum",
"(c[i] - '0')",
"c[i]",
"c",
"i",
"'0'",
"prln((sum % 9 == 0) ? \"Yes\" : \"No\")",
"prln",
"(sum % 9 == 0) ? \"Yes\" : \"No\"",
"(sum % 9 == 0)",
"sum % 9",
"sum",
"9",
"0",
"\"Yes\"",
"\"No\"",
"close()",
"close",
"String[] args",
"args",
"static void pr(int i) {\n __out.print(i);\n }",
"pr",
"{\n __out.print(i);\n }",
"__out.print(i)",
"__out.print",
"__out",
"i",
"int i",
"i",
"static void prln(int i) {\n __out.println(i);\n }",
"prln",
"{\n __out.println(i);\n }",
"__out.println(i)",
"__out.println",
"__out",
"i",
"int i",
"i",
"static void pr(long l) {\n __out.print(l);\n }",
"pr",
"{\n __out.print(l);\n }",
"__out.print(l)",
"__out.print",
"__out",
"l",
"long l",
"l",
"static void prln(long l) {\n __out.println(l);\n }",
"prln",
"{\n __out.println(l);\n }",
"__out.println(l)",
"__out.println",
"__out",
"l",
"long l",
"l",
"static void pr(double d) {\n __out.print(d);\n }",
"pr",
"{\n __out.print(d);\n }",
"__out.print(d)",
"__out.print",
"__out",
"d",
"double d",
"d",
"static void prln(double d) {\n __out.println(d);\n }",
"prln",
"{\n __out.println(d);\n }",
"__out.println(d)",
"__out.println",
"__out",
"d",
"double d",
"d",
"static void pr(char c) {\n __out.print(c);\n }",
"pr",
"{\n __out.print(c);\n }",
"__out.print(c)",
"__out.print",
"__out",
"c",
"char c",
"c",
"static void prln(char c) {\n __out.println(c);\n }",
"prln",
"{\n __out.println(c);\n }",
"__out.println(c)",
"__out.println",
"__out",
"c",
"char c",
"c",
"static void pr(char[] s) {\n __out.print(new String(s));\n }",
"pr",
"{\n __out.print(new String(s));\n }",
"__out.print(new String(s))",
"__out.print",
"__out",
"new String(s)",
"char[] s",
"s",
"static void prln(char[] s) {\n __out.println(new String(s));\n }",
"prln",
"{\n __out.println(new String(s));\n }",
"__out.println(new String(s))",
"__out.println",
"__out",
"new String(s)",
"char[] s",
"s",
"static void pr(String s) {\n __out.print(s);\n }",
"pr",
"{\n __out.print(s);\n }",
"__out.print(s)",
"__out.print",
"__out",
"s",
"String s",
"s",
"static void prln(String s) {\n __out.println(s);\n }",
"prln",
"{\n __out.println(s);\n }",
"__out.println(s)",
"__out.println",
"__out",
"s",
"String s",
"s",
"static void pr(Object o) {\n __out.print(o);\n }",
"pr",
"{\n __out.print(o);\n }",
"__out.print(o)",
"__out.print",
"__out",
"o",
"Object o",
"o",
"static void prln(Object o) {\n __out.println(o);\n }",
"prln",
"{\n __out.println(o);\n }",
"__out.println(o)",
"__out.println",
"__out",
"o",
"Object o",
"o",
"static void prln() {\n __out.println();\n }",
"prln",
"{\n __out.println();\n }",
"__out.println()",
"__out.println",
"__out",
"static void pryes() {\n __out.println(\"yes\");\n }",
"pryes",
"{\n __out.println(\"yes\");\n }",
"__out.println(\"yes\")",
"__out.println",
"__out",
"\"yes\"",
"static void pry() {\n __out.println(\"Yes\");\n }",
"pry",
"{\n __out.println(\"Yes\");\n }",
"__out.println(\"Yes\")",
"__out.println",
"__out",
"\"Yes\"",
"static void prY() {\n __out.println(\"YES\");\n }",
"prY",
"{\n __out.println(\"YES\");\n }",
"__out.println(\"YES\")",
"__out.println",
"__out",
"\"YES\"",
"static void prno() {\n __out.println(\"no\");\n }",
"prno",
"{\n __out.println(\"no\");\n }",
"__out.println(\"no\")",
"__out.println",
"__out",
"\"no\"",
"static void prn() {\n __out.println(\"No\");\n }",
"prn",
"{\n __out.println(\"No\");\n }",
"__out.println(\"No\")",
"__out.println",
"__out",
"\"No\"",
"static void prN() {\n __out.println(\"NO\");\n }",
"prN",
"{\n __out.println(\"NO\");\n }",
"__out.println(\"NO\")",
"__out.println",
"__out",
"\"NO\"",
"static void pryesno(boolean b) {\n __out.println(b ? \"yes\" : \"no\");\n }",
"pryesno",
"{\n __out.println(b ? \"yes\" : \"no\");\n }",
"__out.println(b ? \"yes\" : \"no\")",
"__out.println",
"__out",
"b ? \"yes\" : \"no\"",
"b",
"\"yes\"",
"\"no\"",
"boolean b",
"b",
"static void pryn(boolean b) {\n __out.println(b ? \"Yes\" : \"No\");\n }",
"pryn",
"{\n __out.println(b ? \"Yes\" : \"No\");\n }",
"__out.println(b ? \"Yes\" : \"No\")",
"__out.println",
"__out",
"b ? \"Yes\" : \"No\"",
"b",
"\"Yes\"",
"\"No\"",
"boolean b",
"b",
"static void prYN(boolean b) {\n __out.println(b ? \"YES\" : \"NO\");\n }",
"prYN",
"{\n __out.println(b ? \"YES\" : \"NO\");\n }",
"__out.println(b ? \"YES\" : \"NO\")",
"__out.println",
"__out",
"b ? \"YES\" : \"NO\"",
"b",
"\"YES\"",
"\"NO\"",
"boolean b",
"b",
"static void prln(int... a) {\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }",
"prln",
"{\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }",
"for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);",
"int i = 0, len = a.length - 1;",
"int i = 0",
"i",
"0",
"len = a.length - 1;",
"len",
"a.length - 1",
"a.length",
"a",
"a.length",
"1",
"i < len",
"i",
"len",
"__out.print(a[i]), __out.print(' '), ++i",
"__out.print(a[i])",
"__out.print",
"__out",
"a[i]",
"a",
"i",
"__out.print(' ')",
"__out.print",
"__out",
"' '",
"++i",
"i",
";",
"__out.println(a[a.length - 1])",
"__out.println",
"__out",
"a[a.length - 1]",
"a",
"a.length - 1",
"a.length",
"a",
"a.length",
"1",
"int... a",
"a",
"static void prln(long... a) {\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }",
"prln",
"{\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }",
"for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);",
"int i = 0, len = a.length - 1;",
"int i = 0",
"i",
"0",
"len = a.length - 1;",
"len",
"a.length - 1",
"a.length",
"a",
"a.length",
"1",
"i < len",
"i",
"len",
"__out.print(a[i]), __out.print(' '), ++i",
"__out.print(a[i])",
"__out.print",
"__out",
"a[i]",
"a",
"i",
"__out.print(' ')",
"__out.print",
"__out",
"' '",
"++i",
"i",
";",
"__out.println(a[a.length - 1])",
"__out.println",
"__out",
"a[a.length - 1]",
"a",
"a.length - 1",
"a.length",
"a",
"a.length",
"1",
"long... a",
"a",
"static <T> void prln(Collection<T> c) {\n int n = c.size() - 1;\n Iterator<T> iter = c.iterator();\n for (int i = 0; i < n; __out.print(iter.next()), __out.print(' '), ++i);\n if (n >= 0) {\n __out.println(iter.next());\n } else {\n __out.println();\n }\n }",
"prln",
"{\n int n = c.size() - 1;\n Iterator<T> iter = c.iterator();\n for (int i = 0; i < n; __out.print(iter.next()), __out.print(' '), ++i);\n if (n >= 0) {\n __out.println(iter.next());\n } else {\n __out.println();\n }\n }",
"int n = c.size() - 1;",
"n",
"c.size() - 1",
"c.size()",
"c.size",
"c",
"1",
"Iterator<T> iter = c.iterator();",
"iter",
"c.iterator()",
"c.iterator",
"c",
"for (int i = 0; i < n; __out.print(iter.next()), __out.print(' '), ++i);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"__out.print(iter.next()), __out.print(' '), ++i",
"__out.print(iter.next())",
"__out.print",
"__out",
"iter.next()",
"iter.next",
"iter",
"__out.print(' ')",
"__out.print",
"__out",
"' '",
"++i",
"i",
";",
"if (n >= 0) {\n __out.println(iter.next());\n } else {\n __out.println();\n }",
"n >= 0",
"n",
"0",
"{\n __out.println(iter.next());\n }",
"__out.println(iter.next())",
"__out.println",
"__out",
"iter.next()",
"iter.next",
"iter",
"{\n __out.println();\n }",
"__out.println()",
"__out.println",
"__out",
"Collection<T> c",
"c",
"static void h() {\n __out.println(\"hlfd\");\n flush();\n }",
"h",
"{\n __out.println(\"hlfd\");\n flush();\n }",
"__out.println(\"hlfd\")",
"__out.println",
"__out",
"\"hlfd\"",
"flush()",
"flush",
"static void flush() {\n __out.flush();\n }",
"flush",
"{\n __out.flush();\n }",
"__out.flush()",
"__out.flush",
"__out",
"static void close() {\n __out.close();\n }",
"close",
"{\n __out.close();\n }",
"__out.close()",
"__out.close",
"__out",
"static class FastReader {\n\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\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 st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\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 str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n String s = sc.next();\n\n char c[] = s.toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; i++) {\n sum += (c[i] - '0');\n }\n prln((sum % 9 == 0) ? \"Yes\" : \"No\");\n close();\n }\n\n static FastReader sc = new FastReader();\n static PrintWriter __out = new PrintWriter(new OutputStreamWriter(System.out));\n static StringTokenizer input;\n static Random __rand = new Random();\n\n // input\n //*******FAST IO*************FAST IO***************FAST IO****************//\n static class FastReader {\n\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n// output\n\n static void pr(int i) {\n __out.print(i);\n }\n\n static void prln(int i) {\n __out.println(i);\n }\n\n static void pr(long l) {\n __out.print(l);\n }\n\n static void prln(long l) {\n __out.println(l);\n }\n\n static void pr(double d) {\n __out.print(d);\n }\n\n static void prln(double d) {\n __out.println(d);\n }\n\n static void pr(char c) {\n __out.print(c);\n }\n\n static void prln(char c) {\n __out.println(c);\n }\n\n static void pr(char[] s) {\n __out.print(new String(s));\n }\n\n static void prln(char[] s) {\n __out.println(new String(s));\n }\n\n static void pr(String s) {\n __out.print(s);\n }\n\n static void prln(String s) {\n __out.println(s);\n }\n\n static void pr(Object o) {\n __out.print(o);\n }\n\n static void prln(Object o) {\n __out.println(o);\n }\n\n static void prln() {\n __out.println();\n }\n\n static void pryes() {\n __out.println(\"yes\");\n }\n\n static void pry() {\n __out.println(\"Yes\");\n }\n\n static void prY() {\n __out.println(\"YES\");\n }\n\n static void prno() {\n __out.println(\"no\");\n }\n\n static void prn() {\n __out.println(\"No\");\n }\n\n static void prN() {\n __out.println(\"NO\");\n }\n\n static void pryesno(boolean b) {\n __out.println(b ? \"yes\" : \"no\");\n }\n\n ;\n static void pryn(boolean b) {\n __out.println(b ? \"Yes\" : \"No\");\n }\n\n static void prYN(boolean b) {\n __out.println(b ? \"YES\" : \"NO\");\n }\n\n static void prln(int... a) {\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }\n\n static void prln(long... a) {\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }\n\n static <T> void prln(Collection<T> c) {\n int n = c.size() - 1;\n Iterator<T> iter = c.iterator();\n for (int i = 0; i < n; __out.print(iter.next()), __out.print(' '), ++i);\n if (n >= 0) {\n __out.println(iter.next());\n } else {\n __out.println();\n }\n }\n\n static void h() {\n __out.println(\"hlfd\");\n flush();\n }\n\n static void flush() {\n __out.flush();\n }\n\n static void close() {\n __out.close();\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n String s = sc.next();\n\n char c[] = s.toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; i++) {\n sum += (c[i] - '0');\n }\n prln((sum % 9 == 0) ? \"Yes\" : \"No\");\n close();\n }\n\n static FastReader sc = new FastReader();\n static PrintWriter __out = new PrintWriter(new OutputStreamWriter(System.out));\n static StringTokenizer input;\n static Random __rand = new Random();\n\n // input\n //*******FAST IO*************FAST IO***************FAST IO****************//\n static class FastReader {\n\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n// output\n\n static void pr(int i) {\n __out.print(i);\n }\n\n static void prln(int i) {\n __out.println(i);\n }\n\n static void pr(long l) {\n __out.print(l);\n }\n\n static void prln(long l) {\n __out.println(l);\n }\n\n static void pr(double d) {\n __out.print(d);\n }\n\n static void prln(double d) {\n __out.println(d);\n }\n\n static void pr(char c) {\n __out.print(c);\n }\n\n static void prln(char c) {\n __out.println(c);\n }\n\n static void pr(char[] s) {\n __out.print(new String(s));\n }\n\n static void prln(char[] s) {\n __out.println(new String(s));\n }\n\n static void pr(String s) {\n __out.print(s);\n }\n\n static void prln(String s) {\n __out.println(s);\n }\n\n static void pr(Object o) {\n __out.print(o);\n }\n\n static void prln(Object o) {\n __out.println(o);\n }\n\n static void prln() {\n __out.println();\n }\n\n static void pryes() {\n __out.println(\"yes\");\n }\n\n static void pry() {\n __out.println(\"Yes\");\n }\n\n static void prY() {\n __out.println(\"YES\");\n }\n\n static void prno() {\n __out.println(\"no\");\n }\n\n static void prn() {\n __out.println(\"No\");\n }\n\n static void prN() {\n __out.println(\"NO\");\n }\n\n static void pryesno(boolean b) {\n __out.println(b ? \"yes\" : \"no\");\n }\n\n ;\n static void pryn(boolean b) {\n __out.println(b ? \"Yes\" : \"No\");\n }\n\n static void prYN(boolean b) {\n __out.println(b ? \"YES\" : \"NO\");\n }\n\n static void prln(int... a) {\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }\n\n static void prln(long... a) {\n for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);\n __out.println(a[a.length - 1]);\n }\n\n static <T> void prln(Collection<T> c) {\n int n = c.size() - 1;\n Iterator<T> iter = c.iterator();\n for (int i = 0; i < n; __out.print(iter.next()), __out.print(' '), ++i);\n if (n >= 0) {\n __out.println(iter.next());\n } else {\n __out.println();\n }\n }\n\n static void h() {\n __out.println(\"hlfd\");\n flush();\n }\n\n static void flush() {\n __out.flush();\n }\n\n static void close() {\n __out.close();\n }\n}",
"Main"
]
|
import java.io.*;
import java.util.*;
import static java.lang.Math.*;
import static java.util.Arrays.*;
/**
* @author AnonymousP
* @__WHEN YOU FEEL LIKE QUITTING, THINK ABOUT WHY YOU STARTED__@
*/
//COMBINATON = nCr = n*(n-1)/2
public class Main {
public static void main(String[] args) throws IOException {
String s = sc.next();
char c[] = s.toCharArray();
int sum = 0;
for (int i = 0; i < c.length; i++) {
sum += (c[i] - '0');
}
prln((sum % 9 == 0) ? "Yes" : "No");
close();
}
static FastReader sc = new FastReader();
static PrintWriter __out = new PrintWriter(new OutputStreamWriter(System.out));
static StringTokenizer input;
static Random __rand = new Random();
// input
//*******FAST IO*************FAST IO***************FAST IO****************//
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
// output
static void pr(int i) {
__out.print(i);
}
static void prln(int i) {
__out.println(i);
}
static void pr(long l) {
__out.print(l);
}
static void prln(long l) {
__out.println(l);
}
static void pr(double d) {
__out.print(d);
}
static void prln(double d) {
__out.println(d);
}
static void pr(char c) {
__out.print(c);
}
static void prln(char c) {
__out.println(c);
}
static void pr(char[] s) {
__out.print(new String(s));
}
static void prln(char[] s) {
__out.println(new String(s));
}
static void pr(String s) {
__out.print(s);
}
static void prln(String s) {
__out.println(s);
}
static void pr(Object o) {
__out.print(o);
}
static void prln(Object o) {
__out.println(o);
}
static void prln() {
__out.println();
}
static void pryes() {
__out.println("yes");
}
static void pry() {
__out.println("Yes");
}
static void prY() {
__out.println("YES");
}
static void prno() {
__out.println("no");
}
static void prn() {
__out.println("No");
}
static void prN() {
__out.println("NO");
}
static void pryesno(boolean b) {
__out.println(b ? "yes" : "no");
}
;
static void pryn(boolean b) {
__out.println(b ? "Yes" : "No");
}
static void prYN(boolean b) {
__out.println(b ? "YES" : "NO");
}
static void prln(int... a) {
for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);
__out.println(a[a.length - 1]);
}
static void prln(long... a) {
for (int i = 0, len = a.length - 1; i < len; __out.print(a[i]), __out.print(' '), ++i);
__out.println(a[a.length - 1]);
}
static <T> void prln(Collection<T> c) {
int n = c.size() - 1;
Iterator<T> iter = c.iterator();
for (int i = 0; i < n; __out.print(iter.next()), __out.print(' '), ++i);
if (n >= 0) {
__out.println(iter.next());
} else {
__out.println();
}
}
static void h() {
__out.println("hlfd");
flush();
}
static void flush() {
__out.flush();
}
static void close() {
__out.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
8,
2,
2,
4,
13,
13,
17,
17,
17,
17,
4,
18,
18,
13,
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,
2,
4,
18,
13,
13,
17,
29,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
20,
26
],
[
19,
27
],
[
19,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
6,
35
],
[
35,
36
],
[
71,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
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
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
39,
66
],
[
66,
67
],
[
37,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String result = isTrue(s)%9 == 0? \"Yes\":\"No\";\n System.out.println(result);\n }\n public static int isTrue(String s){\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n count += s.charAt(i)-'0';\n }\n return count;\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 s = sc.next();\n String result = isTrue(s)%9 == 0? \"Yes\":\"No\";\n System.out.println(result);\n }\n public static int isTrue(String s){\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n count += s.charAt(i)-'0';\n }\n return count;\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String result = isTrue(s)%9 == 0? \"Yes\":\"No\";\n System.out.println(result);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String result = isTrue(s)%9 == 0? \"Yes\":\"No\";\n System.out.println(result);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String result = isTrue(s)%9 == 0? \"Yes\":\"No\";",
"result",
"isTrue(s)%9 == 0? \"Yes\":\"No\"",
"isTrue(s)%9 == 0",
"isTrue(s)%9",
"isTrue(s)",
"isTrue",
"s",
"9",
"0",
"\"Yes\"",
"\"No\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public static int isTrue(String s){\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n count += s.charAt(i)-'0';\n }\n return count;\n }",
"isTrue",
"{\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n count += s.charAt(i)-'0';\n }\n return count;\n }",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < s.length(); i++) {\n count += s.charAt(i)-'0';\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n count += s.charAt(i)-'0';\n }",
"{\n count += s.charAt(i)-'0';\n }",
"count += s.charAt(i)-'0'",
"count",
"s.charAt(i)-'0'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'0'",
"return count;",
"count",
"String s",
"s",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String result = isTrue(s)%9 == 0? \"Yes\":\"No\";\n System.out.println(result);\n }\n public static int isTrue(String s){\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n count += s.charAt(i)-'0';\n }\n return count;\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String result = isTrue(s)%9 == 0? \"Yes\":\"No\";\n System.out.println(result);\n }\n public static int isTrue(String s){\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n count += s.charAt(i)-'0';\n }\n return count;\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
String result = isTrue(s)%9 == 0? "Yes":"No";
System.out.println(result);
}
public static int isTrue(String s){
int count = 0;
for (int i = 0; i < s.length(); i++) {
count += s.charAt(i)-'0';
}
return count;
}
} |
[
7,
15,
13,
17,
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,
17,
41,
13,
41,
13,
41,
13,
41,
13,
42,
2,
40,
13,
17,
30,
0,
13,
17,
0,
13,
4,
18,
13,
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,
14,
2,
2,
13,
17,
17,
0,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
2,
2,
2,
13,
17,
17,
2,
13,
17,
2,
13,
17,
29,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
271,
20
],
[
271,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
23,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
23,
34
],
[
34,
35
],
[
23,
36
],
[
36,
37
],
[
23,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
43,
52
],
[
52,
53
],
[
52,
54
],
[
43,
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
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
43,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
85,
87
],
[
43,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
88,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
21,
104
],
[
104,
105
],
[
271,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
114,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
117,
120
],
[
120,
121
],
[
120,
122
],
[
106,
123
],
[
123,
124
],
[
106,
125
],
[
125,
126
],
[
271,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
130,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
138,
144
],
[
144,
145
],
[
144,
146
],
[
137,
147
],
[
147,
148
],
[
147,
149
],
[
136,
150
],
[
150,
151
],
[
136,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
153,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
153,
168
],
[
169,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
170,
176
],
[
176,
177
],
[
152,
178
],
[
178,
179
],
[
127,
180
],
[
180,
181
],
[
271,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
182,
186
],
[
186,
187
],
[
182,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
182,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
197,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
207,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
196,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
182,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
226,
229
],
[
229,
230
],
[
182,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
235,
238
],
[
238,
239
],
[
182,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
244,
247
],
[
247,
248
],
[
182,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
251,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
255,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
266,
267
],
[
251,
268
],
[
268,
269
],
[
0,
270
],
[
270,
271
],
[
270,
272
]
]
| [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.Scanner;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int T = 1;\n int n,k,res;\n String s1;\n while(T-->0){\n res=1;\n s1=s.next();\n long sum=0;\n for(int i=0;i<s1.length();i++){\n sum+=Character.getNumericValue(s1.charAt(i));\n }\n if(sum%9!=0)\n res=0;\n if(res==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n\n\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\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.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int T = 1;\n int n,k,res;\n String s1;\n while(T-->0){\n res=1;\n s1=s.next();\n long sum=0;\n for(int i=0;i<s1.length();i++){\n sum+=Character.getNumericValue(s1.charAt(i));\n }\n if(sum%9!=0)\n res=0;\n if(res==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n\n\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int T = 1;\n int n,k,res;\n String s1;\n while(T-->0){\n res=1;\n s1=s.next();\n long sum=0;\n for(int i=0;i<s1.length();i++){\n sum+=Character.getNumericValue(s1.charAt(i));\n }\n if(sum%9!=0)\n res=0;\n if(res==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n\n\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int T = 1;\n int n,k,res;\n String s1;\n while(T-->0){\n res=1;\n s1=s.next();\n long sum=0;\n for(int i=0;i<s1.length();i++){\n sum+=Character.getNumericValue(s1.charAt(i));\n }\n if(sum%9!=0)\n res=0;\n if(res==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n\n\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int T = 1;",
"T",
"1",
"int n",
"n",
"k",
"k",
"res;",
"res",
"String s1;",
"s1",
"while(T-->0){\n res=1;\n s1=s.next();\n long sum=0;\n for(int i=0;i<s1.length();i++){\n sum+=Character.getNumericValue(s1.charAt(i));\n }\n if(sum%9!=0)\n res=0;\n if(res==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"T-->0",
"T--",
"T",
"0",
"{\n res=1;\n s1=s.next();\n long sum=0;\n for(int i=0;i<s1.length();i++){\n sum+=Character.getNumericValue(s1.charAt(i));\n }\n if(sum%9!=0)\n res=0;\n if(res==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"res=1",
"res",
"1",
"s1=s.next()",
"s1",
"s.next()",
"s.next",
"s",
"long sum=0;",
"sum",
"0",
"for(int i=0;i<s1.length();i++){\n sum+=Character.getNumericValue(s1.charAt(i));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s1.length()",
"i",
"s1.length()",
"s1.length",
"s1",
"i++",
"i++",
"i",
"{\n sum+=Character.getNumericValue(s1.charAt(i));\n }",
"{\n sum+=Character.getNumericValue(s1.charAt(i));\n }",
"sum+=Character.getNumericValue(s1.charAt(i))",
"sum",
"Character.getNumericValue(s1.charAt(i))",
"Character.getNumericValue",
"Character",
"s1.charAt(i)",
"s1.charAt",
"s1",
"i",
"if(sum%9!=0)\n res=0;",
"sum%9!=0",
"sum%9",
"sum",
"9",
"0",
"res=0",
"res",
"0",
"if(res==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"res==1",
"res",
"1",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }",
"gcd",
"{\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }",
"if(b==0) {\n return a;\n }",
"b==0",
"b",
"0",
"{\n return a;\n }",
"return a;",
"a",
"return gcd(b,a%b);",
"gcd(b,a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }",
"isPrime",
"{\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }",
"if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"n == 2",
"n",
"2",
"return true;",
"true",
"if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"(n % 2 == 0 && n > 2) || n < 2",
"(n % 2 == 0 && n > 2)",
"n % 2 == 0",
"n % 2",
"n",
"2",
"0",
"n > 2",
"n",
"2",
"n < 2",
"n",
"2",
"return false;",
"false",
"{\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= (int) Math.sqrt(n)",
"i",
"(int) Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"i += 2",
"i += 2",
"i",
"2",
"{\n if (n % i == 0)\n return false;\n }",
"{\n if (n % i == 0)\n return false;\n }",
"if (n % i == 0)\n return false;",
"n % i == 0",
"n % i",
"n",
"i",
"0",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\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 st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\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 str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int T = 1;\n int n,k,res;\n String s1;\n while(T-->0){\n res=1;\n s1=s.next();\n long sum=0;\n for(int i=0;i<s1.length();i++){\n sum+=Character.getNumericValue(s1.charAt(i));\n }\n if(sum%9!=0)\n res=0;\n if(res==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n\n\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int T = 1;\n int n,k,res;\n String s1;\n while(T-->0){\n res=1;\n s1=s.next();\n long sum=0;\n for(int i=0;i<s1.length();i++){\n sum+=Character.getNumericValue(s1.charAt(i));\n }\n if(sum%9!=0)\n res=0;\n if(res==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n\n\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int T = 1;
int n,k,res;
String s1;
while(T-->0){
res=1;
s1=s.next();
long sum=0;
for(int i=0;i<s1.length();i++){
sum+=Character.getNumericValue(s1.charAt(i));
}
if(sum%9!=0)
res=0;
if(res==1)
System.out.println("Yes");
else
System.out.println("No");
}
}
static int gcd(int a, int b)
{
if(b==0) {
return a;
}
return gcd(b,a%b);
}
private static boolean isPrime(int n) {
if (n == 2)
return true;
else if ((n % 2 == 0 && n > 2) || n < 2)
return false;
else {
for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {
if (n % i == 0)
return false;
}
return true;
}
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
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,
0,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
34,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
34,
50
],
[
50,
51
],
[
50,
52
],
[
34,
53
],
[
53,
54
],
[
53,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
56,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n long sum = 0;\n for(int i=0;i<N.length();i++){\n String s = N.substring(i,i+1);\n int n = Integer.parseInt(s);\n sum+=n;\n sum%=9;\n }\n if(sum==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n long sum = 0;\n for(int i=0;i<N.length();i++){\n String s = N.substring(i,i+1);\n int n = Integer.parseInt(s);\n sum+=n;\n sum%=9;\n }\n if(sum==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n long sum = 0;\n for(int i=0;i<N.length();i++){\n String s = N.substring(i,i+1);\n int n = Integer.parseInt(s);\n sum+=n;\n sum%=9;\n }\n if(sum==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n long sum = 0;\n for(int i=0;i<N.length();i++){\n String s = N.substring(i,i+1);\n int n = Integer.parseInt(s);\n sum+=n;\n sum%=9;\n }\n if(sum==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String N = sc.next();",
"N",
"sc.next()",
"sc.next",
"sc",
"long sum = 0;",
"sum",
"0",
"for(int i=0;i<N.length();i++){\n String s = N.substring(i,i+1);\n int n = Integer.parseInt(s);\n sum+=n;\n sum%=9;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N.length()",
"i",
"N.length()",
"N.length",
"N",
"i++",
"i++",
"i",
"{\n String s = N.substring(i,i+1);\n int n = Integer.parseInt(s);\n sum+=n;\n sum%=9;\n }",
"{\n String s = N.substring(i,i+1);\n int n = Integer.parseInt(s);\n sum+=n;\n sum%=9;\n }",
"String s = N.substring(i,i+1);",
"s",
"N.substring(i,i+1)",
"N.substring",
"N",
"i",
"i+1",
"i",
"1",
"int n = Integer.parseInt(s);",
"n",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"sum+=n",
"sum",
"n",
"sum%=9",
"sum",
"9",
"if(sum==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"sum==0",
"sum",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n long sum = 0;\n for(int i=0;i<N.length();i++){\n String s = N.substring(i,i+1);\n int n = Integer.parseInt(s);\n sum+=n;\n sum%=9;\n }\n if(sum==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n long sum = 0;\n for(int i=0;i<N.length();i++){\n String s = N.substring(i,i+1);\n int n = Integer.parseInt(s);\n sum+=n;\n sum%=9;\n }\n if(sum==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String N = sc.next();
long sum = 0;
for(int i=0;i<N.length();i++){
String s = N.substring(i,i+1);
int n = Integer.parseInt(s);
sum+=n;
sum%=9;
}
if(sum==0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
28,
13,
4,
18,
13,
30,
30,
0,
13,
2,
13,
17,
41,
13,
8,
2,
2,
13,
17,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
34,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n int sum = 0;\n\n for(char each : a.toCharArray()){\n sum += each - '0';\n }\n String res = sum % 9 == 0 ? \"Yes\" : \"No\";\n System.out.println(res);\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 a = sc.next();\n int sum = 0;\n\n for(char each : a.toCharArray()){\n sum += each - '0';\n }\n String res = sum % 9 == 0 ? \"Yes\" : \"No\";\n System.out.println(res);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n int sum = 0;\n\n for(char each : a.toCharArray()){\n sum += each - '0';\n }\n String res = sum % 9 == 0 ? \"Yes\" : \"No\";\n System.out.println(res);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n int sum = 0;\n\n for(char each : a.toCharArray()){\n sum += each - '0';\n }\n String res = sum % 9 == 0 ? \"Yes\" : \"No\";\n System.out.println(res);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String a = sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"int sum = 0;",
"sum",
"0",
"for(char each : a.toCharArray()){\n sum += each - '0';\n }",
"char each",
"a.toCharArray()",
"a.toCharArray",
"a",
"{\n sum += each - '0';\n }",
"{\n sum += each - '0';\n }",
"sum += each - '0'",
"sum",
"each - '0'",
"each",
"'0'",
"String res = sum % 9 == 0 ? \"Yes\" : \"No\";",
"res",
"sum % 9 == 0 ? \"Yes\" : \"No\"",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"\"Yes\"",
"\"No\"",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n int sum = 0;\n\n for(char each : a.toCharArray()){\n sum += each - '0';\n }\n String res = sum % 9 == 0 ? \"Yes\" : \"No\";\n System.out.println(res);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n int sum = 0;\n\n for(char each : a.toCharArray()){\n sum += each - '0';\n }\n String res = sum % 9 == 0 ? \"Yes\" : \"No\";\n System.out.println(res);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String a = sc.next();
int sum = 0;
for(char each : a.toCharArray()){
sum += each - '0';
}
String res = sum % 9 == 0 ? "Yes" : "No";
System.out.println(res);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
41,
13,
17,
42,
2,
13,
4,
18,
13,
30,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
0,
13,
13,
40,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
78,
11
],
[
78,
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
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
37,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
37,
50
],
[
50,
51
],
[
50,
52
],
[
37,
53
],
[
53,
54
],
[
14,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
55,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
12,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"import java.util.Scanner;\nimport java.util.ArrayList;\nimport java.util.List;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.nextLine();\n\t\tint answer = 0;\n\t\tString max;\n\t\tint w =0;\n\t\twhile(w != n.length()){\n\t\t\tchar c = n.charAt(w);\n\t\t\tint i = Character.getNumericValue(c);\n\t\t\tanswer += i; \n\t\t\tw++; \n\t\t}\n\t\tif(answer % 9 == 0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.nextLine();\n\t\tint answer = 0;\n\t\tString max;\n\t\tint w =0;\n\t\twhile(w != n.length()){\n\t\t\tchar c = n.charAt(w);\n\t\t\tint i = Character.getNumericValue(c);\n\t\t\tanswer += i; \n\t\t\tw++; \n\t\t}\n\t\tif(answer % 9 == 0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.nextLine();\n\t\tint answer = 0;\n\t\tString max;\n\t\tint w =0;\n\t\twhile(w != n.length()){\n\t\t\tchar c = n.charAt(w);\n\t\t\tint i = Character.getNumericValue(c);\n\t\t\tanswer += i; \n\t\t\tw++; \n\t\t}\n\t\tif(answer % 9 == 0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.nextLine();\n\t\tint answer = 0;\n\t\tString max;\n\t\tint w =0;\n\t\twhile(w != n.length()){\n\t\t\tchar c = n.charAt(w);\n\t\t\tint i = Character.getNumericValue(c);\n\t\t\tanswer += i; \n\t\t\tw++; \n\t\t}\n\t\tif(answer % 9 == 0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n = sc.nextLine();",
"n",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int answer = 0;",
"answer",
"0",
"String max;",
"max",
"int w =0;",
"w",
"0",
"while(w != n.length()){\n\t\t\tchar c = n.charAt(w);\n\t\t\tint i = Character.getNumericValue(c);\n\t\t\tanswer += i; \n\t\t\tw++; \n\t\t}",
"w != n.length()",
"w",
"n.length()",
"n.length",
"n",
"{\n\t\t\tchar c = n.charAt(w);\n\t\t\tint i = Character.getNumericValue(c);\n\t\t\tanswer += i; \n\t\t\tw++; \n\t\t}",
"char c = n.charAt(w);",
"c",
"n.charAt(w)",
"n.charAt",
"n",
"w",
"int i = Character.getNumericValue(c);",
"i",
"Character.getNumericValue(c)",
"Character.getNumericValue",
"Character",
"c",
"answer += i",
"answer",
"i",
"w++",
"w",
"if(answer % 9 == 0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"answer % 9 == 0",
"answer % 9",
"answer",
"9",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.nextLine();\n\t\tint answer = 0;\n\t\tString max;\n\t\tint w =0;\n\t\twhile(w != n.length()){\n\t\t\tchar c = n.charAt(w);\n\t\t\tint i = Character.getNumericValue(c);\n\t\t\tanswer += i; \n\t\t\tw++; \n\t\t}\n\t\tif(answer % 9 == 0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.nextLine();\n\t\tint answer = 0;\n\t\tString max;\n\t\tint w =0;\n\t\twhile(w != n.length()){\n\t\t\tchar c = n.charAt(w);\n\t\t\tint i = Character.getNumericValue(c);\n\t\t\tanswer += i; \n\t\t\tw++; \n\t\t}\n\t\tif(answer % 9 == 0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String n = sc.nextLine();
int answer = 0;
String max;
int w =0;
while(w != n.length()){
char c = n.charAt(w);
int i = Character.getNumericValue(c);
answer += i;
w++;
}
if(answer % 9 == 0){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
13,
0,
13,
4,
18,
13,
17,
17,
41,
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,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
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
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
28,
32
],
[
8,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
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
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
62,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int l = line.length();\n String NumSt[] = new String[l];\n NumSt = line.split(\"\",0);\n int dig;\n int sum = 0;\n \n for(int i = 0; i < l; i++){\n dig = Integer.parseInt(NumSt[i]);\n sum += dig;\n }\n \n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\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 line = sc.nextLine();\n int l = line.length();\n String NumSt[] = new String[l];\n NumSt = line.split(\"\",0);\n int dig;\n int sum = 0;\n \n for(int i = 0; i < l; i++){\n dig = Integer.parseInt(NumSt[i]);\n sum += dig;\n }\n \n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int l = line.length();\n String NumSt[] = new String[l];\n NumSt = line.split(\"\",0);\n int dig;\n int sum = 0;\n \n for(int i = 0; i < l; i++){\n dig = Integer.parseInt(NumSt[i]);\n sum += dig;\n }\n \n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int l = line.length();\n String NumSt[] = new String[l];\n NumSt = line.split(\"\",0);\n int dig;\n int sum = 0;\n \n for(int i = 0; i < l; i++){\n dig = Integer.parseInt(NumSt[i]);\n sum += dig;\n }\n \n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int l = line.length();",
"l",
"line.length()",
"line.length",
"line",
"String NumSt[] = new String[l];",
"NumSt",
"new String[l]",
"l",
"NumSt = line.split(\"\",0)",
"NumSt",
"line.split(\"\",0)",
"line.split",
"line",
"\"\"",
"0",
"int dig;",
"dig",
"int sum = 0;",
"sum",
"0",
"for(int i = 0; i < l; i++){\n dig = Integer.parseInt(NumSt[i]);\n sum += dig;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < l",
"i",
"l",
"i++",
"i++",
"i",
"{\n dig = Integer.parseInt(NumSt[i]);\n sum += dig;\n }",
"{\n dig = Integer.parseInt(NumSt[i]);\n sum += dig;\n }",
"dig = Integer.parseInt(NumSt[i])",
"dig",
"Integer.parseInt(NumSt[i])",
"Integer.parseInt",
"Integer",
"NumSt[i]",
"NumSt",
"i",
"sum += dig",
"sum",
"dig",
"if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int l = line.length();\n String NumSt[] = new String[l];\n NumSt = line.split(\"\",0);\n int dig;\n int sum = 0;\n \n for(int i = 0; i < l; i++){\n dig = Integer.parseInt(NumSt[i]);\n sum += dig;\n }\n \n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int l = line.length();\n String NumSt[] = new String[l];\n NumSt = line.split(\"\",0);\n int dig;\n int sum = 0;\n \n for(int i = 0; i < l; i++){\n dig = Integer.parseInt(NumSt[i]);\n sum += dig;\n }\n \n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
int l = line.length();
String NumSt[] = new String[l];
NumSt = line.split("",0);
int dig;
int sum = 0;
for(int i = 0; i < l; i++){
dig = Integer.parseInt(NumSt[i]);
sum += dig;
}
if(sum % 9 == 0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
17,
42,
2,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
9,
29,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
4,
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,
13,
18,
13,
13,
29,
13,
12,
13,
30,
41,
13,
4,
18,
4,
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,
13,
18,
13,
13,
29,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
13,
13,
0,
13,
17,
0,
13,
2,
2,
13,
13,
13,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
4,
13,
41,
13,
4,
18,
4,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
239,
8
],
[
239,
9
],
[
9,
10
],
[
239,
11
],
[
11,
12
],
[
239,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
239,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
20,
37
],
[
37,
38
],
[
239,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
39,
47
],
[
47,
48
],
[
239,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
49,
57
],
[
57,
58
],
[
239,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
64,
68
],
[
61,
69
],
[
69,
70
],
[
69,
71
],
[
72,
73
],
[
72,
74
],
[
61,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
75,
85
],
[
85,
86
],
[
86,
87
],
[
75,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
61,
99
],
[
99,
100
],
[
239,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
106,
110
],
[
103,
111
],
[
111,
112
],
[
111,
113
],
[
114,
115
],
[
114,
116
],
[
103,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
117,
127
],
[
127,
128
],
[
128,
129
],
[
117,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
103,
141
],
[
141,
142
],
[
239,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
239,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
162,
177
],
[
177,
178
],
[
177,
179
],
[
162,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
154,
187
],
[
187,
188
],
[
152,
189
],
[
189,
190
],
[
152,
191
],
[
191,
192
],
[
152,
193
],
[
193,
194
],
[
239,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
197,
206
],
[
206,
207
],
[
206,
208
],
[
197,
209
],
[
209,
210
],
[
209,
211
],
[
209,
212
],
[
213,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
216,
218
],
[
197,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
219,
225
],
[
225,
226
],
[
226,
227
],
[
225,
228
],
[
219,
229
],
[
229,
230
],
[
230,
231
],
[
229,
232
],
[
197,
233
],
[
233,
234
],
[
234,
235
],
[
195,
236
],
[
236,
237
],
[
0,
238
],
[
238,
239
],
[
238,
240
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n\nstatic BufferedReader s1;\nstatic BufferedWriter out;\nstatic String read() throws IOException{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}\nstatic int int_v (String s1){return Integer.parseInt(s1);}\nstatic long long_v(String s1){return Long.parseLong(s1);}\nstatic int[] int_arr() throws IOException{String[] a=read().split(\"\\\\s+\");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}\nstatic long[] long_arr() throws IOException{String[] a=read().split(\"\\\\s+\");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}\nstatic void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}\nstatic int Modpow(int a,int p,int m){int res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}\n//......................................@uthor_Alx..............................................\nstatic long mod=(long)1e9+7;\npublic static void main(String[] args) throws IOException{\n assign();\n char[] c=read().toCharArray();\n int xx=0;\n for(char cc:c){xx+=cc-'0';}\n if(xx%9==0) out.write(\"Yes\");\n else out.write(\"No\");\n out.flush();\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\nstatic BufferedReader s1;\nstatic BufferedWriter out;\nstatic String read() throws IOException{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}\nstatic int int_v (String s1){return Integer.parseInt(s1);}\nstatic long long_v(String s1){return Long.parseLong(s1);}\nstatic int[] int_arr() throws IOException{String[] a=read().split(\"\\\\s+\");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}\nstatic long[] long_arr() throws IOException{String[] a=read().split(\"\\\\s+\");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}\nstatic void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}\nstatic int Modpow(int a,int p,int m){int res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}\n//......................................@uthor_Alx..............................................\nstatic long mod=(long)1e9+7;\npublic static void main(String[] args) throws IOException{\n assign();\n char[] c=read().toCharArray();\n int xx=0;\n for(char cc:c){xx+=cc-'0';}\n if(xx%9==0) out.write(\"Yes\");\n else out.write(\"No\");\n out.flush();\n\n }\n}",
"Main",
"static BufferedReader s1;",
"s1",
"static BufferedWriter out;",
"out",
"//......................................@uthor_Alx..............................................\nstatic long mod=(long)1e9+7;",
"mod",
"(long)1e9+7",
"(long)1e9",
"7",
"static String read() throws IOException{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}",
"read",
"{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}",
"String line=\"\";",
"line",
"\"\"",
"while(line.length()==0){line=s1.readLine();continue;}",
"line.length()==0",
"line.length()",
"line.length",
"line",
"0",
"{line=s1.readLine();continue;}",
"line=s1.readLine()",
"line",
"s1.readLine()",
"s1.readLine",
"s1",
"continue;",
"return line;",
"line",
"static int int_v (String s1){return Integer.parseInt(s1);}",
"int_v",
"{return Integer.parseInt(s1);}",
"return Integer.parseInt(s1);",
"Integer.parseInt(s1)",
"Integer.parseInt",
"Integer",
"s1",
"String s1",
"s1",
"static long long_v(String s1){return Long.parseLong(s1);}",
"long_v",
"{return Long.parseLong(s1);}",
"return Long.parseLong(s1);",
"Long.parseLong(s1)",
"Long.parseLong",
"Long",
"s1",
"String s1",
"s1",
"static int[] int_arr() throws IOException{String[] a=read().split(\"\\\\s+\");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}",
"int_arr",
"{String[] a=read().split(\"\\\\s+\");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}",
"String[] a=read().split(\"\\\\s+\");",
"a",
"read().split(\"\\\\s+\")",
"read().split",
"read()",
"read",
"\"\\\\s+\"",
"int[] b=new int[a.length];",
"b",
"new int[a.length]",
"a.length",
"a",
"a.length",
"for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{b[i]=int_v(a[i]);}",
"{b[i]=int_v(a[i]);}",
"b[i]=int_v(a[i])",
"b[i]",
"b",
"i",
"int_v(a[i])",
"int_v",
"a[i]",
"a",
"i",
"return b;",
"b",
"static long[] long_arr() throws IOException{String[] a=read().split(\"\\\\s+\");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}",
"long_arr",
"{String[] a=read().split(\"\\\\s+\");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}",
"String[] a=read().split(\"\\\\s+\");",
"a",
"read().split(\"\\\\s+\")",
"read().split",
"read()",
"read",
"\"\\\\s+\"",
"long[] b=new long[a.length];",
"b",
"new long[a.length]",
"a.length",
"a",
"a.length",
"for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{b[i]=long_v(a[i]);}",
"{b[i]=long_v(a[i]);}",
"b[i]=long_v(a[i])",
"b[i]",
"b",
"i",
"long_v(a[i])",
"long_v",
"a[i]",
"a",
"i",
"return b;",
"b",
"static void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}",
"assign",
"{s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}",
"s1=new BufferedReader(new InputStreamReader(System.in))",
"s1",
"new BufferedReader(new InputStreamReader(System.in))",
"out=new BufferedWriter(new OutputStreamWriter(System.out))",
"out",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"static int Modpow(int a,int p,int m){int res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}",
"Modpow",
"{int res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}",
"int res=1;",
"res",
"1",
"while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}",
"p>0",
"p",
"0",
"{if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}",
"if((p&1)!=0){res=(res*a)%m;}",
"(p&1)!=0",
"(p&1)",
"p",
"1",
"0",
"{res=(res*a)%m;}",
"res=(res*a)%m",
"res",
"(res*a)%m",
"(res*a)",
"res",
"a",
"m",
"p >>=1",
"p",
"1",
"a=(a*a)%m",
"a",
"(a*a)%m",
"(a*a)",
"a",
"a",
"m",
"return res;",
"res",
"int a",
"a",
"int p",
"p",
"int m",
"m",
"public static void main(String[] args) throws IOException{\n assign();\n char[] c=read().toCharArray();\n int xx=0;\n for(char cc:c){xx+=cc-'0';}\n if(xx%9==0) out.write(\"Yes\");\n else out.write(\"No\");\n out.flush();\n\n }",
"main",
"{\n assign();\n char[] c=read().toCharArray();\n int xx=0;\n for(char cc:c){xx+=cc-'0';}\n if(xx%9==0) out.write(\"Yes\");\n else out.write(\"No\");\n out.flush();\n\n }",
"assign()",
"assign",
"char[] c=read().toCharArray();",
"c",
"read().toCharArray()",
"read().toCharArray",
"read()",
"read",
"int xx=0;",
"xx",
"0",
"for(char cc:c){xx+=cc-'0';}",
"char cc",
"c",
"{xx+=cc-'0';}",
"{xx+=cc-'0';}",
"xx+=cc-'0'",
"xx",
"cc-'0'",
"cc",
"'0'",
"if(xx%9==0) out.write(\"Yes\");\n else out.write(\"No\");",
"xx%9==0",
"xx%9",
"xx",
"9",
"0",
"out.write(\"Yes\")",
"out.write",
"out",
"\"Yes\"",
"out.write(\"No\")",
"out.write",
"out",
"\"No\"",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"public class Main{\n\nstatic BufferedReader s1;\nstatic BufferedWriter out;\nstatic String read() throws IOException{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}\nstatic int int_v (String s1){return Integer.parseInt(s1);}\nstatic long long_v(String s1){return Long.parseLong(s1);}\nstatic int[] int_arr() throws IOException{String[] a=read().split(\"\\\\s+\");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}\nstatic long[] long_arr() throws IOException{String[] a=read().split(\"\\\\s+\");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}\nstatic void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}\nstatic int Modpow(int a,int p,int m){int res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}\n//......................................@uthor_Alx..............................................\nstatic long mod=(long)1e9+7;\npublic static void main(String[] args) throws IOException{\n assign();\n char[] c=read().toCharArray();\n int xx=0;\n for(char cc:c){xx+=cc-'0';}\n if(xx%9==0) out.write(\"Yes\");\n else out.write(\"No\");\n out.flush();\n\n }\n}",
"public class Main{\n\nstatic BufferedReader s1;\nstatic BufferedWriter out;\nstatic String read() throws IOException{String line=\"\";while(line.length()==0){line=s1.readLine();continue;}return line;}\nstatic int int_v (String s1){return Integer.parseInt(s1);}\nstatic long long_v(String s1){return Long.parseLong(s1);}\nstatic int[] int_arr() throws IOException{String[] a=read().split(\"\\\\s+\");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}\nstatic long[] long_arr() throws IOException{String[] a=read().split(\"\\\\s+\");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}\nstatic void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}\nstatic int Modpow(int a,int p,int m){int res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}\n//......................................@uthor_Alx..............................................\nstatic long mod=(long)1e9+7;\npublic static void main(String[] args) throws IOException{\n assign();\n char[] c=read().toCharArray();\n int xx=0;\n for(char cc:c){xx+=cc-'0';}\n if(xx%9==0) out.write(\"Yes\");\n else out.write(\"No\");\n out.flush();\n\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
static BufferedReader s1;
static BufferedWriter out;
static String read() throws IOException{String line="";while(line.length()==0){line=s1.readLine();continue;}return line;}
static int int_v (String s1){return Integer.parseInt(s1);}
static long long_v(String s1){return Long.parseLong(s1);}
static int[] int_arr() throws IOException{String[] a=read().split("\\s+");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}
static long[] long_arr() throws IOException{String[] a=read().split("\\s+");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}
static void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}
static int Modpow(int a,int p,int m){int res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}
//......................................@uthor_Alx..............................................
static long mod=(long)1e9+7;
public static void main(String[] args) throws IOException{
assign();
char[] c=read().toCharArray();
int xx=0;
for(char cc:c){xx+=cc-'0';}
if(xx%9==0) out.write("Yes");
else out.write("No");
out.flush();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
28,
13,
4,
18,
13,
30,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
8,
2,
2,
13,
17,
17,
17,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
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
],
[
220,
14
],
[
220,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
20,
22
],
[
17,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
17,
28
],
[
28,
29
],
[
28,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
17,
34
],
[
34,
35
],
[
34,
36
],
[
17,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
37,
42
],
[
17,
43
],
[
43,
44
],
[
44,
45
],
[
15,
46
],
[
46,
47
],
[
220,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
52,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
61,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
52,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
78,
85
],
[
50,
86
],
[
86,
87
],
[
50,
88
],
[
88,
89
],
[
50,
90
],
[
90,
91
],
[
220,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
92,
100
],
[
100,
101
],
[
92,
102
],
[
102,
103
],
[
92,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
104,
112
],
[
112,
113
],
[
92,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
117,
122
],
[
122,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
132,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
128,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
150,
151
],
[
116,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
92,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
159,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
159,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
181,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
159,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
92,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
200,
198
],
[
210,
199
],
[
207,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
204,
206
],
[
207,
207
],
[
207,
208
],
[
207,
209
],
[
210,
210
],
[
210,
211
],
[
210,
212
],
[
200,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
193,
217
],
[
217,
218
],
[
0,
219
],
[
219,
220
],
[
219,
221
]
]
| [
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Spandan Mishra\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BMultipleOf9 {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String n = in.readString();\n\n int digSum = 0;\n for (char c : n.toCharArray()) {\n digSum += c - '0';\n }\n\n System.out.println(digSum % 9 == 0 ? \"Yes\" : \"No\");\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public String readString() {\n final StringBuilder stringBuilder = new StringBuilder();\n int c = read();\n while (isSpaceChar(c))\n c = read();\n do {\n stringBuilder.append((char) c);\n c = read();\n } while (!isSpaceChar(c));\n return stringBuilder.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}\n",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BMultipleOf9 {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String n = in.readString();\n\n int digSum = 0;\n for (char c : n.toCharArray()) {\n digSum += c - '0';\n }\n\n System.out.println(digSum % 9 == 0 ? \"Yes\" : \"No\");\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public String readString() {\n final StringBuilder stringBuilder = new StringBuilder();\n int c = read();\n while (isSpaceChar(c))\n c = read();\n do {\n stringBuilder.append((char) c);\n c = read();\n } while (!isSpaceChar(c));\n return stringBuilder.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"BMultipleOf9 solver = new BMultipleOf9();",
"solver",
"new BMultipleOf9()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BMultipleOf9 {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String n = in.readString();\n\n int digSum = 0;\n for (char c : n.toCharArray()) {\n digSum += c - '0';\n }\n\n System.out.println(digSum % 9 == 0 ? \"Yes\" : \"No\");\n }\n\n }",
"BMultipleOf9",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n String n = in.readString();\n\n int digSum = 0;\n for (char c : n.toCharArray()) {\n digSum += c - '0';\n }\n\n System.out.println(digSum % 9 == 0 ? \"Yes\" : \"No\");\n }",
"solve",
"{\n String n = in.readString();\n\n int digSum = 0;\n for (char c : n.toCharArray()) {\n digSum += c - '0';\n }\n\n System.out.println(digSum % 9 == 0 ? \"Yes\" : \"No\");\n }",
"String n = in.readString();",
"n",
"in.readString()",
"in.readString",
"in",
"int digSum = 0;",
"digSum",
"0",
"for (char c : n.toCharArray()) {\n digSum += c - '0';\n }",
"char c",
"n.toCharArray()",
"n.toCharArray",
"n",
"{\n digSum += c - '0';\n }",
"{\n digSum += c - '0';\n }",
"digSum += c - '0'",
"digSum",
"c - '0'",
"c",
"'0'",
"System.out.println(digSum % 9 == 0 ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"digSum % 9 == 0 ? \"Yes\" : \"No\"",
"digSum % 9 == 0",
"digSum % 9",
"digSum",
"9",
"0",
"\"Yes\"",
"\"No\"",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public String readString() {\n final StringBuilder stringBuilder = new StringBuilder();\n int c = read();\n while (isSpaceChar(c))\n c = read();\n do {\n stringBuilder.append((char) c);\n c = read();\n } while (!isSpaceChar(c));\n return stringBuilder.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (numChars == -1)\n throw new RuntimeException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new RuntimeException();",
"new RuntimeException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }",
"catch (IOException e) {\n throw new RuntimeException();\n }",
"IOException e",
"{\n throw new RuntimeException();\n }",
"throw new RuntimeException();",
"new RuntimeException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0)\n return -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public String readString() {\n final StringBuilder stringBuilder = new StringBuilder();\n int c = read();\n while (isSpaceChar(c))\n c = read();\n do {\n stringBuilder.append((char) c);\n c = read();\n } while (!isSpaceChar(c));\n return stringBuilder.toString();\n }",
"readString",
"{\n final StringBuilder stringBuilder = new StringBuilder();\n int c = read();\n while (isSpaceChar(c))\n c = read();\n do {\n stringBuilder.append((char) c);\n c = read();\n } while (!isSpaceChar(c));\n return stringBuilder.toString();\n }",
"final StringBuilder stringBuilder = new StringBuilder();",
"stringBuilder",
"new StringBuilder()",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"do {\n stringBuilder.append((char) c);\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n stringBuilder.append((char) c);\n c = read();\n }",
"stringBuilder.append((char) c)",
"stringBuilder.append",
"stringBuilder",
"(char) c",
"c = read()",
"c",
"read()",
"read",
"return stringBuilder.toString();",
"stringBuilder.toString()",
"stringBuilder.toString",
"stringBuilder",
"public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BMultipleOf9 {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String n = in.readString();\n\n int digSum = 0;\n for (char c : n.toCharArray()) {\n digSum += c - '0';\n }\n\n System.out.println(digSum % 9 == 0 ? \"Yes\" : \"No\");\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public String readString() {\n final StringBuilder stringBuilder = new StringBuilder();\n int c = read();\n while (isSpaceChar(c))\n c = read();\n do {\n stringBuilder.append((char) c);\n c = read();\n } while (!isSpaceChar(c));\n return stringBuilder.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BMultipleOf9 {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String n = in.readString();\n\n int digSum = 0;\n for (char c : n.toCharArray()) {\n digSum += c - '0';\n }\n\n System.out.println(digSum % 9 == 0 ? \"Yes\" : \"No\");\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public String readString() {\n final StringBuilder stringBuilder = new StringBuilder();\n int c = read();\n while (isSpaceChar(c))\n c = read();\n do {\n stringBuilder.append((char) c);\n c = read();\n } while (!isSpaceChar(c));\n return stringBuilder.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Spandan Mishra
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
BMultipleOf9 solver = new BMultipleOf9();
solver.solve(1, in, out);
out.close();
}
static class BMultipleOf9 {
public void solve(int testNumber, InputReader in, PrintWriter out) {
String n = in.readString();
int digSum = 0;
for (char c : n.toCharArray()) {
digSum += c - '0';
}
System.out.println(digSum % 9 == 0 ? "Yes" : "No");
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1)
throw new RuntimeException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new RuntimeException();
}
if (numChars <= 0)
return -1;
}
return buf[curChar++];
}
public String readString() {
final StringBuilder stringBuilder = new StringBuilder();
int c = read();
while (isSpaceChar(c))
c = read();
do {
stringBuilder.append((char) c);
c = read();
} while (!isSpaceChar(c));
return stringBuilder.toString();
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
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,
0,
13,
13,
4,
18,
18,
13,
13,
8,
2,
2,
13,
17,
17,
17,
17,
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
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
10,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
27,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
41,
53
],
[
53,
54
],
[
53,
55
],
[
10,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
61,
68
],
[
6,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tchar[] chars = data.toCharArray();\n\n\t\t\tint total = 0;\n\t\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tint n = Integer.parseInt(String.valueOf(chars[i]));\n\t\t\t\ttotal += n;\n\t\t\t}\n\n\t\t\tSystem.out.println(total % 9 == 0 ? \"Yes\" : \"No\");\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\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tchar[] chars = data.toCharArray();\n\n\t\t\tint total = 0;\n\t\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tint n = Integer.parseInt(String.valueOf(chars[i]));\n\t\t\t\ttotal += n;\n\t\t\t}\n\n\t\t\tSystem.out.println(total % 9 == 0 ? \"Yes\" : \"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tchar[] chars = data.toCharArray();\n\n\t\t\tint total = 0;\n\t\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tint n = Integer.parseInt(String.valueOf(chars[i]));\n\t\t\t\ttotal += n;\n\t\t\t}\n\n\t\t\tSystem.out.println(total % 9 == 0 ? \"Yes\" : \"No\");\n\t\t}\n\t}",
"main",
"{\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tchar[] chars = data.toCharArray();\n\n\t\t\tint total = 0;\n\t\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tint n = Integer.parseInt(String.valueOf(chars[i]));\n\t\t\t\ttotal += n;\n\t\t\t}\n\n\t\t\tSystem.out.println(total % 9 == 0 ? \"Yes\" : \"No\");\n\t\t}\n\t}",
"try(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tchar[] chars = data.toCharArray();\n\n\t\t\tint total = 0;\n\t\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tint n = Integer.parseInt(String.valueOf(chars[i]));\n\t\t\t\ttotal += n;\n\t\t\t}\n\n\t\t\tSystem.out.println(total % 9 == 0 ? \"Yes\" : \"No\");\n\t\t}",
"{\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tchar[] chars = data.toCharArray();\n\n\t\t\tint total = 0;\n\t\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tint n = Integer.parseInt(String.valueOf(chars[i]));\n\t\t\t\ttotal += n;\n\t\t\t}\n\n\t\t\tSystem.out.println(total % 9 == 0 ? \"Yes\" : \"No\");\n\t\t}",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"String data = scanner.nextLine();",
"data",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"char[] chars = data.toCharArray();",
"chars",
"data.toCharArray()",
"data.toCharArray",
"data",
"int total = 0;",
"total",
"0",
"for (int i = 0; i < chars.length; i++) {\n\t\t\t\tint n = Integer.parseInt(String.valueOf(chars[i]));\n\t\t\t\ttotal += n;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < chars.length",
"i",
"chars.length",
"chars",
"chars.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tint n = Integer.parseInt(String.valueOf(chars[i]));\n\t\t\t\ttotal += n;\n\t\t\t}",
"{\n\t\t\t\tint n = Integer.parseInt(String.valueOf(chars[i]));\n\t\t\t\ttotal += n;\n\t\t\t}",
"int n = Integer.parseInt(String.valueOf(chars[i]));",
"n",
"Integer.parseInt(String.valueOf(chars[i]))",
"Integer.parseInt",
"Integer",
"String.valueOf(chars[i])",
"String.valueOf",
"String",
"chars[i]",
"chars",
"i",
"total += n",
"total",
"n",
"System.out.println(total % 9 == 0 ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"total % 9 == 0 ? \"Yes\" : \"No\"",
"total % 9 == 0",
"total % 9",
"total",
"9",
"0",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tchar[] chars = data.toCharArray();\n\n\t\t\tint total = 0;\n\t\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tint n = Integer.parseInt(String.valueOf(chars[i]));\n\t\t\t\ttotal += n;\n\t\t\t}\n\n\t\t\tSystem.out.println(total % 9 == 0 ? \"Yes\" : \"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tchar[] chars = data.toCharArray();\n\n\t\t\tint total = 0;\n\t\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\t\tint n = Integer.parseInt(String.valueOf(chars[i]));\n\t\t\t\ttotal += n;\n\t\t\t}\n\n\t\t\tSystem.out.println(total % 9 == 0 ? \"Yes\" : \"No\");\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try(Scanner scanner = new Scanner(System.in)) {
String data = scanner.nextLine();
char[] chars = data.toCharArray();
int total = 0;
for (int i = 0; i < chars.length; i++) {
int n = Integer.parseInt(String.valueOf(chars[i]));
total += n;
}
System.out.println(total % 9 == 0 ? "Yes" : "No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
149,
8
],
[
149,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
12,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
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
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
17,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
56,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
9,
76
],
[
76,
77
],
[
149,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
78,
82
],
[
82,
83
],
[
78,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
78,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
93,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
103,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
92,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
78,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
78,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
133,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
129,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
]
| [
"import java.util.*;\nimport java.io.*;\npublic class Main {\n\n\tstatic class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next()\n {\n while(st==null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n String nextLine()\n {\n String s = \"\";\n \n try\n {\n s = br.readLine();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n return s;\n }\n }\n \n public static void main(String[] args) throws java.lang.Exception\n {\n try\n {\n FastReader fr=new FastReader();\n \n String s=fr.nextLine();\n long sum=0;\n for(int i=0;i<s.length();i++) {\n \t sum+=Long.parseLong(String.valueOf(s.charAt(i)));\n }\n if(sum%9==0) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n \n \n }\n catch(Exception e){}\n finally{}\n\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\tstatic class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next()\n {\n while(st==null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n String nextLine()\n {\n String s = \"\";\n \n try\n {\n s = br.readLine();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n return s;\n }\n }\n \n public static void main(String[] args) throws java.lang.Exception\n {\n try\n {\n FastReader fr=new FastReader();\n \n String s=fr.nextLine();\n long sum=0;\n for(int i=0;i<s.length();i++) {\n \t sum+=Long.parseLong(String.valueOf(s.charAt(i)));\n }\n if(sum%9==0) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n \n \n }\n catch(Exception e){}\n finally{}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws java.lang.Exception\n {\n try\n {\n FastReader fr=new FastReader();\n \n String s=fr.nextLine();\n long sum=0;\n for(int i=0;i<s.length();i++) {\n \t sum+=Long.parseLong(String.valueOf(s.charAt(i)));\n }\n if(sum%9==0) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n \n \n }\n catch(Exception e){}\n finally{}\n\n\t}",
"main",
"{\n try\n {\n FastReader fr=new FastReader();\n \n String s=fr.nextLine();\n long sum=0;\n for(int i=0;i<s.length();i++) {\n \t sum+=Long.parseLong(String.valueOf(s.charAt(i)));\n }\n if(sum%9==0) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n \n \n }\n catch(Exception e){}\n finally{}\n\n\t}",
"try\n {\n FastReader fr=new FastReader();\n \n String s=fr.nextLine();\n long sum=0;\n for(int i=0;i<s.length();i++) {\n \t sum+=Long.parseLong(String.valueOf(s.charAt(i)));\n }\n if(sum%9==0) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n \n \n }\n catch(Exception e){}\n finally{}",
"catch(Exception e){}",
"Exception e",
"{}",
"{}",
"{\n FastReader fr=new FastReader();\n \n String s=fr.nextLine();\n long sum=0;\n for(int i=0;i<s.length();i++) {\n \t sum+=Long.parseLong(String.valueOf(s.charAt(i)));\n }\n if(sum%9==0) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n \n \n }",
"FastReader fr=new FastReader();",
"fr",
"new FastReader()",
"String s=fr.nextLine();",
"s",
"fr.nextLine()",
"fr.nextLine",
"fr",
"long sum=0;",
"sum",
"0",
"for(int i=0;i<s.length();i++) {\n \t sum+=Long.parseLong(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 \t sum+=Long.parseLong(String.valueOf(s.charAt(i)));\n }",
"{\n \t sum+=Long.parseLong(String.valueOf(s.charAt(i)));\n }",
"sum+=Long.parseLong(String.valueOf(s.charAt(i)))",
"sum",
"Long.parseLong(String.valueOf(s.charAt(i)))",
"Long.parseLong",
"Long",
"String.valueOf(s.charAt(i))",
"String.valueOf",
"String",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"if(sum%9==0) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }",
"sum%9==0",
"sum%9",
"sum",
"9",
"0",
"{\n \tSystem.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n \tSystem.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next()\n {\n while(st==null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n String nextLine()\n {\n String s = \"\";\n \n try\n {\n s = br.readLine();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n return s;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader()\n {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next()\n {\n while(st==null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while(st==null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while(st==null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }",
"st==null || !st.hasMoreElements()",
"st==null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }",
"try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }",
"catch(IOException e)\n {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt()\n {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"String nextLine()\n {\n String s = \"\";\n \n try\n {\n s = br.readLine();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n return s;\n }",
"nextLine",
"{\n String s = \"\";\n \n try\n {\n s = br.readLine();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n return s;\n }",
"String s = \"\";",
"s",
"\"\"",
"try\n {\n s = br.readLine();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }",
"catch(IOException e)\n {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n s = br.readLine();\n }",
"s = br.readLine()",
"s",
"br.readLine()",
"br.readLine",
"br",
"return s;",
"s",
"public class Main {\n\n\tstatic class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next()\n {\n while(st==null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n String nextLine()\n {\n String s = \"\";\n \n try\n {\n s = br.readLine();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n return s;\n }\n }\n \n public static void main(String[] args) throws java.lang.Exception\n {\n try\n {\n FastReader fr=new FastReader();\n \n String s=fr.nextLine();\n long sum=0;\n for(int i=0;i<s.length();i++) {\n \t sum+=Long.parseLong(String.valueOf(s.charAt(i)));\n }\n if(sum%9==0) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n \n \n }\n catch(Exception e){}\n finally{}\n\n\t}\n\n}",
"public class Main {\n\n\tstatic class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next()\n {\n while(st==null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n String nextLine()\n {\n String s = \"\";\n \n try\n {\n s = br.readLine();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n return s;\n }\n }\n \n public static void main(String[] args) throws java.lang.Exception\n {\n try\n {\n FastReader fr=new FastReader();\n \n String s=fr.nextLine();\n long sum=0;\n for(int i=0;i<s.length();i++) {\n \t sum+=Long.parseLong(String.valueOf(s.charAt(i)));\n }\n if(sum%9==0) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n \n \n }\n catch(Exception e){}\n finally{}\n\n\t}\n\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
static class FastReader
{
BufferedReader br;
StringTokenizer st;
public FastReader()
{
br = new BufferedReader(new InputStreamReader(System.in));
}
String next()
{
while(st==null || !st.hasMoreElements())
{
try
{
st = new StringTokenizer(br.readLine());
}
catch(IOException e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt()
{
return Integer.parseInt(next());
}
String nextLine()
{
String s = "";
try
{
s = br.readLine();
}
catch(IOException e)
{
e.printStackTrace();
}
return s;
}
}
public static void main(String[] args) throws java.lang.Exception
{
try
{
FastReader fr=new FastReader();
String s=fr.nextLine();
long sum=0;
for(int i=0;i<s.length();i++) {
sum+=Long.parseLong(String.valueOf(s.charAt(i)));
}
if(sum%9==0) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
}
catch(Exception e){}
finally{}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
2,
13,
13,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
13,
4,
18,
13,
2,
13,
17,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
20,
23,
13,
12,
13,
30,
29,
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
],
[
209,
14
],
[
209,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
15,
20
],
[
20,
21
],
[
209,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
25,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
37,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
37,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
37,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
209,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
72,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
84,
93
],
[
93,
94
],
[
93,
95
],
[
84,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
96,
106
],
[
106,
107
],
[
107,
108
],
[
96,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
119,
121
],
[
116,
122
],
[
84,
123
],
[
123,
124
],
[
123,
125
],
[
84,
126
],
[
126,
127
],
[
126,
128
],
[
126,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
84,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
134,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
134,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
209,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
154,
162
],
[
162,
163
],
[
209,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
164,
172
],
[
172,
173
],
[
209,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
174,
182
],
[
182,
183
],
[
209,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
184,
192
],
[
192,
193
],
[
209,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
194,
199
],
[
199,
200
],
[
209,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
201,
206
],
[
206,
207
],
[
0,
208
],
[
208,
209
],
[
208,
210
]
]
| [
"import java.math.BigDecimal;\nimport java.math.BigInteger;\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n // abc176_a();\n abc176_b();\n }\n\n private static void abc176_a() {\n try (Scanner sc = new Scanner(System.in)) {\n double nAll = sc.nextInt();\n double xOneTime = sc.nextInt();\n int tMinute = sc.nextInt();\n\n System.out.println((int) Math.ceil(nAll / xOneTime) * tMinute);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n private static void abc176_b() {\n try (Scanner sc = new Scanner(System.in)) {\n String nValue = sc.next();\n ArrayList<Integer> numList = new ArrayList<Integer>();\n\n for (int i = 1; i <= nValue.length(); i++) {\n numList.add(parseI(nValue.substring(i - 1, i)));\n }\n\n int sum = 0;\n\n for (int num : numList) {\n sum += num;\n }\n\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n\n public static long parseL(String value) {\n return Long.parseLong(value);\n }\n\n public static double parseD(String value) {\n return Double.parseDouble(value);\n }\n\n public static <T> String parseS(T value) {\n return String.valueOf(value);\n }\n\n public static BigDecimal parseBigD(String value) {\n return new BigDecimal(value);\n }\n\n public static BigInteger parseBigI(String value) {\n return new BigInteger(value);\n }\n\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n // abc176_a();\n abc176_b();\n }\n\n private static void abc176_a() {\n try (Scanner sc = new Scanner(System.in)) {\n double nAll = sc.nextInt();\n double xOneTime = sc.nextInt();\n int tMinute = sc.nextInt();\n\n System.out.println((int) Math.ceil(nAll / xOneTime) * tMinute);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n private static void abc176_b() {\n try (Scanner sc = new Scanner(System.in)) {\n String nValue = sc.next();\n ArrayList<Integer> numList = new ArrayList<Integer>();\n\n for (int i = 1; i <= nValue.length(); i++) {\n numList.add(parseI(nValue.substring(i - 1, i)));\n }\n\n int sum = 0;\n\n for (int num : numList) {\n sum += num;\n }\n\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n\n public static long parseL(String value) {\n return Long.parseLong(value);\n }\n\n public static double parseD(String value) {\n return Double.parseDouble(value);\n }\n\n public static <T> String parseS(T value) {\n return String.valueOf(value);\n }\n\n public static BigDecimal parseBigD(String value) {\n return new BigDecimal(value);\n }\n\n public static BigInteger parseBigI(String value) {\n return new BigInteger(value);\n }\n\n}",
"Main",
"public static void main(String[] args) {\n // abc176_a();\n abc176_b();\n }",
"main",
"{\n // abc176_a();\n abc176_b();\n }",
"abc176_b()",
"abc176_b",
"String[] args",
"args",
"private static void abc176_a() {\n try (Scanner sc = new Scanner(System.in)) {\n double nAll = sc.nextInt();\n double xOneTime = sc.nextInt();\n int tMinute = sc.nextInt();\n\n System.out.println((int) Math.ceil(nAll / xOneTime) * tMinute);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"abc176_a",
"{\n try (Scanner sc = new Scanner(System.in)) {\n double nAll = sc.nextInt();\n double xOneTime = sc.nextInt();\n int tMinute = sc.nextInt();\n\n System.out.println((int) Math.ceil(nAll / xOneTime) * tMinute);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n double nAll = sc.nextInt();\n double xOneTime = sc.nextInt();\n int tMinute = sc.nextInt();\n\n System.out.println((int) Math.ceil(nAll / xOneTime) * tMinute);\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",
"\"エラー\"",
"e",
"{\n double nAll = sc.nextInt();\n double xOneTime = sc.nextInt();\n int tMinute = sc.nextInt();\n\n System.out.println((int) Math.ceil(nAll / xOneTime) * tMinute);\n\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"double nAll = sc.nextInt();",
"nAll",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double xOneTime = sc.nextInt();",
"xOneTime",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int tMinute = sc.nextInt();",
"tMinute",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println((int) Math.ceil(nAll / xOneTime) * tMinute)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) Math.ceil(nAll / xOneTime) * tMinute",
"(int) Math.ceil(nAll / xOneTime)",
"Math.ceil",
"Math",
"nAll / xOneTime",
"nAll",
"xOneTime",
"tMinute",
"private static void abc176_b() {\n try (Scanner sc = new Scanner(System.in)) {\n String nValue = sc.next();\n ArrayList<Integer> numList = new ArrayList<Integer>();\n\n for (int i = 1; i <= nValue.length(); i++) {\n numList.add(parseI(nValue.substring(i - 1, i)));\n }\n\n int sum = 0;\n\n for (int num : numList) {\n sum += num;\n }\n\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"abc176_b",
"{\n try (Scanner sc = new Scanner(System.in)) {\n String nValue = sc.next();\n ArrayList<Integer> numList = new ArrayList<Integer>();\n\n for (int i = 1; i <= nValue.length(); i++) {\n numList.add(parseI(nValue.substring(i - 1, i)));\n }\n\n int sum = 0;\n\n for (int num : numList) {\n sum += num;\n }\n\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n String nValue = sc.next();\n ArrayList<Integer> numList = new ArrayList<Integer>();\n\n for (int i = 1; i <= nValue.length(); i++) {\n numList.add(parseI(nValue.substring(i - 1, i)));\n }\n\n int sum = 0;\n\n for (int num : numList) {\n sum += num;\n }\n\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\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",
"\"エラー\"",
"e",
"{\n String nValue = sc.next();\n ArrayList<Integer> numList = new ArrayList<Integer>();\n\n for (int i = 1; i <= nValue.length(); i++) {\n numList.add(parseI(nValue.substring(i - 1, i)));\n }\n\n int sum = 0;\n\n for (int num : numList) {\n sum += num;\n }\n\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"String nValue = sc.next();",
"nValue",
"sc.next()",
"sc.next",
"sc",
"ArrayList<Integer> numList = new ArrayList<Integer>();",
"numList",
"new ArrayList<Integer>()",
"for (int i = 1; i <= nValue.length(); i++) {\n numList.add(parseI(nValue.substring(i - 1, i)));\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= nValue.length()",
"i",
"nValue.length()",
"nValue.length",
"nValue",
"i++",
"i++",
"i",
"{\n numList.add(parseI(nValue.substring(i - 1, i)));\n }",
"{\n numList.add(parseI(nValue.substring(i - 1, i)));\n }",
"numList.add(parseI(nValue.substring(i - 1, i)))",
"numList.add",
"numList",
"parseI(nValue.substring(i - 1, i))",
"parseI",
"nValue.substring(i - 1, i)",
"nValue.substring",
"nValue",
"i - 1",
"i",
"1",
"i",
"int sum = 0;",
"sum",
"0",
"for (int num : numList) {\n sum += num;\n }",
"int num",
"numList",
"{\n sum += num;\n }",
"{\n sum += num;\n }",
"sum += num",
"sum",
"num",
"if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"public static int parseI(String value) {\n return Integer.parseInt(value);\n }",
"parseI",
"{\n return Integer.parseInt(value);\n }",
"return Integer.parseInt(value);",
"Integer.parseInt(value)",
"Integer.parseInt",
"Integer",
"value",
"String value",
"value",
"public static long parseL(String value) {\n return Long.parseLong(value);\n }",
"parseL",
"{\n return Long.parseLong(value);\n }",
"return Long.parseLong(value);",
"Long.parseLong(value)",
"Long.parseLong",
"Long",
"value",
"String value",
"value",
"public static double parseD(String value) {\n return Double.parseDouble(value);\n }",
"parseD",
"{\n return Double.parseDouble(value);\n }",
"return Double.parseDouble(value);",
"Double.parseDouble(value)",
"Double.parseDouble",
"Double",
"value",
"String value",
"value",
"public static <T> String parseS(T value) {\n return String.valueOf(value);\n }",
"parseS",
"{\n return String.valueOf(value);\n }",
"return String.valueOf(value);",
"String.valueOf(value)",
"String.valueOf",
"String",
"value",
"T value",
"value",
"public static BigDecimal parseBigD(String value) {\n return new BigDecimal(value);\n }",
"parseBigD",
"{\n return new BigDecimal(value);\n }",
"return new BigDecimal(value);",
"new BigDecimal(value)",
"String value",
"value",
"public static BigInteger parseBigI(String value) {\n return new BigInteger(value);\n }",
"parseBigI",
"{\n return new BigInteger(value);\n }",
"return new BigInteger(value);",
"new BigInteger(value)",
"String value",
"value",
"public class Main {\n\n public static void main(String[] args) {\n // abc176_a();\n abc176_b();\n }\n\n private static void abc176_a() {\n try (Scanner sc = new Scanner(System.in)) {\n double nAll = sc.nextInt();\n double xOneTime = sc.nextInt();\n int tMinute = sc.nextInt();\n\n System.out.println((int) Math.ceil(nAll / xOneTime) * tMinute);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n private static void abc176_b() {\n try (Scanner sc = new Scanner(System.in)) {\n String nValue = sc.next();\n ArrayList<Integer> numList = new ArrayList<Integer>();\n\n for (int i = 1; i <= nValue.length(); i++) {\n numList.add(parseI(nValue.substring(i - 1, i)));\n }\n\n int sum = 0;\n\n for (int num : numList) {\n sum += num;\n }\n\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n\n public static long parseL(String value) {\n return Long.parseLong(value);\n }\n\n public static double parseD(String value) {\n return Double.parseDouble(value);\n }\n\n public static <T> String parseS(T value) {\n return String.valueOf(value);\n }\n\n public static BigDecimal parseBigD(String value) {\n return new BigDecimal(value);\n }\n\n public static BigInteger parseBigI(String value) {\n return new BigInteger(value);\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n // abc176_a();\n abc176_b();\n }\n\n private static void abc176_a() {\n try (Scanner sc = new Scanner(System.in)) {\n double nAll = sc.nextInt();\n double xOneTime = sc.nextInt();\n int tMinute = sc.nextInt();\n\n System.out.println((int) Math.ceil(nAll / xOneTime) * tMinute);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n private static void abc176_b() {\n try (Scanner sc = new Scanner(System.in)) {\n String nValue = sc.next();\n ArrayList<Integer> numList = new ArrayList<Integer>();\n\n for (int i = 1; i <= nValue.length(); i++) {\n numList.add(parseI(nValue.substring(i - 1, i)));\n }\n\n int sum = 0;\n\n for (int num : numList) {\n sum += num;\n }\n\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n\n public static long parseL(String value) {\n return Long.parseLong(value);\n }\n\n public static double parseD(String value) {\n return Double.parseDouble(value);\n }\n\n public static <T> String parseS(T value) {\n return String.valueOf(value);\n }\n\n public static BigDecimal parseBigD(String value) {\n return new BigDecimal(value);\n }\n\n public static BigInteger parseBigI(String value) {\n return new BigInteger(value);\n }\n\n}",
"Main"
]
| import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// abc176_a();
abc176_b();
}
private static void abc176_a() {
try (Scanner sc = new Scanner(System.in)) {
double nAll = sc.nextInt();
double xOneTime = sc.nextInt();
int tMinute = sc.nextInt();
System.out.println((int) Math.ceil(nAll / xOneTime) * tMinute);
} catch (Exception e) {
System.out.println("エラー" + e);
}
}
private static void abc176_b() {
try (Scanner sc = new Scanner(System.in)) {
String nValue = sc.next();
ArrayList<Integer> numList = new ArrayList<Integer>();
for (int i = 1; i <= nValue.length(); i++) {
numList.add(parseI(nValue.substring(i - 1, i)));
}
int sum = 0;
for (int num : numList) {
sum += num;
}
if (sum % 9 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
} catch (Exception e) {
System.out.println("エラー" + e);
}
}
// int 2147483648 [ 2 * 10(9)]
// long 9223372036854775808 [ 9 * 10(18)]
public static int parseI(String value) {
return Integer.parseInt(value);
}
public static long parseL(String value) {
return Long.parseLong(value);
}
public static double parseD(String value) {
return Double.parseDouble(value);
}
public static <T> String parseS(T value) {
return String.valueOf(value);
}
public static BigDecimal parseBigD(String value) {
return new BigDecimal(value);
}
public static BigInteger parseBigI(String value) {
return new BigInteger(value);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
2,
2,
13,
13,
17,
4,
18,
18,
13,
13,
8,
2,
13,
17,
17,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
34,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
59,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n\n int n = 0;\n for (int i=0; i<N.length(); i++) {\n int num = Integer.parseInt(String.valueOf(N.charAt(i)));\n n = (n+num)%9;\n }\n \n System.out.println((n==0) ? \"Yes\" : \"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n\n int n = 0;\n for (int i=0; i<N.length(); i++) {\n int num = Integer.parseInt(String.valueOf(N.charAt(i)));\n n = (n+num)%9;\n }\n \n System.out.println((n==0) ? \"Yes\" : \"No\");\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n\n int n = 0;\n for (int i=0; i<N.length(); i++) {\n int num = Integer.parseInt(String.valueOf(N.charAt(i)));\n n = (n+num)%9;\n }\n \n System.out.println((n==0) ? \"Yes\" : \"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n\n int n = 0;\n for (int i=0; i<N.length(); i++) {\n int num = Integer.parseInt(String.valueOf(N.charAt(i)));\n n = (n+num)%9;\n }\n \n System.out.println((n==0) ? \"Yes\" : \"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String N = sc.next();",
"N",
"sc.next()",
"sc.next",
"sc",
"int n = 0;",
"n",
"0",
"for (int i=0; i<N.length(); i++) {\n int num = Integer.parseInt(String.valueOf(N.charAt(i)));\n n = (n+num)%9;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N.length()",
"i",
"N.length()",
"N.length",
"N",
"i++",
"i++",
"i",
"{\n int num = Integer.parseInt(String.valueOf(N.charAt(i)));\n n = (n+num)%9;\n }",
"{\n int num = Integer.parseInt(String.valueOf(N.charAt(i)));\n n = (n+num)%9;\n }",
"int num = Integer.parseInt(String.valueOf(N.charAt(i)));",
"num",
"Integer.parseInt(String.valueOf(N.charAt(i)))",
"Integer.parseInt",
"Integer",
"String.valueOf(N.charAt(i))",
"String.valueOf",
"String",
"N.charAt(i)",
"N.charAt",
"N",
"i",
"n = (n+num)%9",
"n",
"(n+num)%9",
"(n+num)",
"n",
"num",
"9",
"System.out.println((n==0) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(n==0) ? \"Yes\" : \"No\"",
"(n==0)",
"n",
"0",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n\n int n = 0;\n for (int i=0; i<N.length(); i++) {\n int num = Integer.parseInt(String.valueOf(N.charAt(i)));\n n = (n+num)%9;\n }\n \n System.out.println((n==0) ? \"Yes\" : \"No\");\n }\n}",
"public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n\n int n = 0;\n for (int i=0; i<N.length(); i++) {\n int num = Integer.parseInt(String.valueOf(N.charAt(i)));\n n = (n+num)%9;\n }\n \n System.out.println((n==0) ? \"Yes\" : \"No\");\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String N = sc.next();
int n = 0;
for (int i=0; i<N.length(); i++) {
int num = Integer.parseInt(String.valueOf(N.charAt(i)));
n = (n+num)%9;
}
System.out.println((n==0) ? "Yes" : "No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
46,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
]
| [
"//package beginner176;\n\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n String s = in.next();\n\n int cnt = 0;\n int len = s.length();\n for(int i = 0; i < len; i++){\n cnt += s.charAt(i) - '0';\n }\n if(cnt % 3 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n String s = in.next();\n\n int cnt = 0;\n int len = s.length();\n for(int i = 0; i < len; i++){\n cnt += s.charAt(i) - '0';\n }\n if(cnt % 3 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n String s = in.next();\n\n int cnt = 0;\n int len = s.length();\n for(int i = 0; i < len; i++){\n cnt += s.charAt(i) - '0';\n }\n if(cnt % 3 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n\n String s = in.next();\n\n int cnt = 0;\n int len = s.length();\n for(int i = 0; i < len; i++){\n cnt += s.charAt(i) - '0';\n }\n if(cnt % 3 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"int cnt = 0;",
"cnt",
"0",
"int len = s.length();",
"len",
"s.length()",
"s.length",
"s",
"for(int i = 0; i < len; i++){\n cnt += s.charAt(i) - '0';\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < len",
"i",
"len",
"i++",
"i++",
"i",
"{\n cnt += s.charAt(i) - '0';\n }",
"{\n cnt += s.charAt(i) - '0';\n }",
"cnt += s.charAt(i) - '0'",
"cnt",
"s.charAt(i) - '0'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'0'",
"if(cnt % 3 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"cnt % 3 == 0",
"cnt % 3",
"cnt",
"3",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n String s = in.next();\n\n int cnt = 0;\n int len = s.length();\n for(int i = 0; i < len; i++){\n cnt += s.charAt(i) - '0';\n }\n if(cnt % 3 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n String s = in.next();\n\n int cnt = 0;\n int len = s.length();\n for(int i = 0; i < len; i++){\n cnt += s.charAt(i) - '0';\n }\n if(cnt % 3 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
]
| //package beginner176;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
String s = in.next();
int cnt = 0;
int len = s.length();
for(int i = 0; i < len; i++){
cnt += s.charAt(i) - '0';
}
if(cnt % 3 == 0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
22,
25
],
[
26,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main (String[] args) {\n \tScanner sc = new Scanner(System.in);\n \tchar[] arr = sc.next().toCharArray();\n \tint sum = 0;\n \tfor (char c : arr) {\n \t sum += c - '0';\n \t sum %= 9;\n \t}\n \tif (sum == 0) {\n \t System.out.println(\"Yes\");\n \t} else {\n \t System.out.println(\"No\");\n \t}\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main (String[] args) {\n \tScanner sc = new Scanner(System.in);\n \tchar[] arr = sc.next().toCharArray();\n \tint sum = 0;\n \tfor (char c : arr) {\n \t sum += c - '0';\n \t sum %= 9;\n \t}\n \tif (sum == 0) {\n \t System.out.println(\"Yes\");\n \t} else {\n \t System.out.println(\"No\");\n \t}\n }\n}",
"Main",
"public static void main (String[] args) {\n \tScanner sc = new Scanner(System.in);\n \tchar[] arr = sc.next().toCharArray();\n \tint sum = 0;\n \tfor (char c : arr) {\n \t sum += c - '0';\n \t sum %= 9;\n \t}\n \tif (sum == 0) {\n \t System.out.println(\"Yes\");\n \t} else {\n \t System.out.println(\"No\");\n \t}\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tchar[] arr = sc.next().toCharArray();\n \tint sum = 0;\n \tfor (char c : arr) {\n \t sum += c - '0';\n \t sum %= 9;\n \t}\n \tif (sum == 0) {\n \t System.out.println(\"Yes\");\n \t} else {\n \t System.out.println(\"No\");\n \t}\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"char[] arr = sc.next().toCharArray();",
"arr",
"sc.next().toCharArray()",
"sc.next().toCharArray",
"sc.next()",
"sc.next",
"sc",
"int sum = 0;",
"sum",
"0",
"for (char c : arr) {\n \t sum += c - '0';\n \t sum %= 9;\n \t}",
"char c",
"arr",
"{\n \t sum += c - '0';\n \t sum %= 9;\n \t}",
"{\n \t sum += c - '0';\n \t sum %= 9;\n \t}",
"sum += c - '0'",
"sum",
"c - '0'",
"c",
"'0'",
"sum %= 9",
"sum",
"9",
"if (sum == 0) {\n \t System.out.println(\"Yes\");\n \t} else {\n \t System.out.println(\"No\");\n \t}",
"sum == 0",
"sum",
"0",
"{\n \t System.out.println(\"Yes\");\n \t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n \t System.out.println(\"No\");\n \t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main (String[] args) {\n \tScanner sc = new Scanner(System.in);\n \tchar[] arr = sc.next().toCharArray();\n \tint sum = 0;\n \tfor (char c : arr) {\n \t sum += c - '0';\n \t sum %= 9;\n \t}\n \tif (sum == 0) {\n \t System.out.println(\"Yes\");\n \t} else {\n \t System.out.println(\"No\");\n \t}\n }\n}",
"public class Main {\n\tpublic static void main (String[] args) {\n \tScanner sc = new Scanner(System.in);\n \tchar[] arr = sc.next().toCharArray();\n \tint sum = 0;\n \tfor (char c : arr) {\n \t sum += c - '0';\n \t sum %= 9;\n \t}\n \tif (sum == 0) {\n \t System.out.println(\"Yes\");\n \t} else {\n \t System.out.println(\"No\");\n \t}\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
char[] arr = sc.next().toCharArray();
int sum = 0;
for (char c : arr) {
sum += c - '0';
sum %= 9;
}
if (sum == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
4,
18,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
12,
13,
30,
29,
4,
18,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
17,
14,
2,
13,
17,
0,
13,
20,
0,
13,
20,
14,
2,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
4,
18,
13,
4,
18,
20,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
40,
13,
0,
13,
2,
2,
2,
13,
17,
13,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
0,
13,
4,
13,
41,
13,
17,
41,
13,
2,
17,
17,
42,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
41,
13,
4,
13,
13,
13,
14,
2,
13,
13,
0,
13,
2,
13,
17,
0,
13,
13,
4,
18,
13,
13,
12,
13,
30,
41,
13,
17,
28,
13,
13,
30,
30,
14,
2,
13,
13,
0,
13,
2,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
41,
13,
2,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
42,
2,
2,
13,
13,
2,
18,
13,
13,
17,
40,
13,
42,
2,
2,
13,
13,
2,
18,
13,
13,
17,
40,
13,
14,
2,
13,
13,
30,
4,
13,
13,
13,
13,
40,
13,
40,
13,
40,
13,
4,
18,
13,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
2,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
18,
13,
13,
13,
4,
18,
13,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
28,
13,
4,
18,
13,
30,
30,
41,
13,
2,
13,
17,
0,
13,
13,
0,
13,
17,
14,
2,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
29,
17,
41,
13,
2,
13,
17,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
40,
13,
14,
2,
13,
17,
29,
17,
29,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
40,
13,
4,
18,
13,
2,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
732,
11
],
[
732,
12
],
[
12,
13
],
[
732,
14
],
[
14,
15
],
[
14,
16
],
[
732,
17
],
[
17,
18
],
[
17,
19
],
[
732,
20
],
[
20,
21
],
[
20,
22
],
[
732,
23
],
[
23,
24
],
[
23,
25
],
[
732,
26
],
[
26,
27
],
[
26,
28
],
[
732,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
31,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
29,
49
],
[
49,
50
],
[
29,
51
],
[
51,
52
],
[
29,
53
],
[
53,
54
],
[
732,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
57,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
55,
75
],
[
75,
76
],
[
55,
77
],
[
77,
78
],
[
55,
79
],
[
79,
80
],
[
732,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
85,
90
],
[
732,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
99,
100
],
[
732,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
109,
110
],
[
732,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
113,
123
],
[
123,
124
],
[
123,
125
],
[
113,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
146,
148
],
[
113,
149
],
[
149,
150
],
[
732,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
160,
162
],
[
153,
163
],
[
163,
164
],
[
163,
165
],
[
153,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
186,
187
],
[
186,
188
],
[
153,
189
],
[
189,
190
],
[
732,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
191,
200
],
[
200,
201
],
[
732,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
213,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
223,
224
],
[
223,
225
],
[
212,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
228,
230
],
[
212,
231
],
[
231,
232
],
[
231,
233
],
[
212,
234
],
[
234,
235
],
[
234,
236
],
[
204,
237
],
[
237,
238
],
[
202,
239
],
[
239,
240
],
[
202,
241
],
[
241,
242
],
[
732,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
248,
251
],
[
245,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
256,
257
],
[
256,
258
],
[
252,
259
],
[
259,
260
],
[
259,
261
],
[
245,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
269,
274
],
[
266,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
245,
282
],
[
282,
283
],
[
283,
284
],
[
245,
285
],
[
285,
286
],
[
286,
287
],
[
243,
288
],
[
288,
289
],
[
732,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
292,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
300,
301
],
[
292,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
305,
306
],
[
292,
307
],
[
307,
308
],
[
307,
309
],
[
292,
310
],
[
310,
311
],
[
310,
312
],
[
292,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
313,
318
],
[
318,
319
],
[
318,
320
],
[
313,
321
],
[
321,
322
],
[
322,
323
],
[
313,
324
],
[
325,
325
],
[
325,
326
],
[
326,
327
],
[
325,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
331,
335
],
[
330,
336
],
[
292,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
339,
341
],
[
337,
342
],
[
732,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
345,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
352,
354
],
[
345,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
357,
359
],
[
345,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
345,
364
],
[
364,
365
],
[
364,
366
],
[
345,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
369,
371
],
[
345,
372
],
[
372,
373
],
[
373,
374
],
[
373,
375
],
[
372,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
379,
383
],
[
376,
384
],
[
384,
385
],
[
384,
386
],
[
386,
387
],
[
386,
388
],
[
386,
389
],
[
376,
390
],
[
390,
391
],
[
391,
392
],
[
391,
393
],
[
390,
394
],
[
394,
395
],
[
394,
396
],
[
396,
397
],
[
396,
398
],
[
390,
399
],
[
399,
400
],
[
399,
401
],
[
345,
402
],
[
402,
403
],
[
403,
404
],
[
402,
405
],
[
732,
406
],
[
406,
407
],
[
406,
408
],
[
408,
409
],
[
409,
410
],
[
409,
411
],
[
408,
412
],
[
412,
413
],
[
412,
414
],
[
412,
415
],
[
416,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
417,
421
],
[
421,
422
],
[
421,
423
],
[
423,
424
],
[
423,
425
],
[
408,
426
],
[
426,
427
],
[
406,
428
],
[
428,
429
],
[
406,
430
],
[
430,
431
],
[
732,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
434,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
442,
443
],
[
443,
444
],
[
444,
445
],
[
434,
446
],
[
446,
447
],
[
446,
448
],
[
434,
449
],
[
449,
450
],
[
449,
451
],
[
451,
452
],
[
451,
453
],
[
434,
454
],
[
454,
455
],
[
454,
456
],
[
434,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
457,
461
],
[
461,
462
],
[
462,
463
],
[
463,
464
],
[
464,
465
],
[
464,
466
],
[
463,
467
],
[
467,
468
],
[
468,
469
],
[
468,
470
],
[
467,
471
],
[
462,
472
],
[
472,
473
],
[
461,
474
],
[
474,
475
],
[
475,
476
],
[
476,
477
],
[
476,
478
],
[
475,
479
],
[
479,
480
],
[
480,
481
],
[
480,
482
],
[
479,
483
],
[
474,
484
],
[
484,
485
],
[
461,
486
],
[
486,
487
],
[
487,
488
],
[
487,
489
],
[
486,
490
],
[
490,
491
],
[
491,
492
],
[
491,
493
],
[
491,
494
],
[
491,
495
],
[
490,
496
],
[
496,
497
],
[
490,
498
],
[
498,
499
],
[
490,
500
],
[
500,
501
],
[
434,
502
],
[
502,
503
],
[
503,
504
],
[
502,
505
],
[
732,
506
],
[
506,
507
],
[
506,
508
],
[
508,
509
],
[
509,
510
],
[
509,
511
],
[
511,
512
],
[
508,
513
],
[
513,
514
],
[
513,
515
],
[
515,
516
],
[
508,
517
],
[
517,
518
],
[
517,
519
],
[
508,
520
],
[
520,
521
],
[
520,
522
],
[
508,
523
],
[
523,
524
],
[
524,
525
],
[
525,
526
],
[
525,
527
],
[
523,
528
],
[
528,
529
],
[
528,
530
],
[
523,
531
],
[
531,
532
],
[
532,
533
],
[
523,
534
],
[
535,
535
],
[
535,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
538,
540
],
[
540,
541
],
[
540,
542
],
[
536,
543
],
[
543,
544
],
[
543,
545
],
[
536,
546
],
[
546,
547
],
[
547,
548
],
[
536,
549
],
[
550,
550
],
[
550,
551
],
[
551,
552
],
[
551,
553
],
[
553,
554
],
[
554,
555
],
[
555,
556
],
[
555,
557
],
[
554,
558
],
[
558,
559
],
[
558,
560
],
[
553,
561
],
[
508,
562
],
[
562,
563
],
[
563,
564
],
[
562,
565
],
[
732,
566
],
[
566,
567
],
[
566,
568
],
[
568,
569
],
[
569,
570
],
[
570,
571
],
[
570,
572
],
[
569,
573
],
[
573,
574
],
[
568,
575
],
[
575,
576
],
[
576,
577
],
[
576,
578
],
[
576,
579
],
[
579,
580
],
[
579,
581
],
[
566,
582
],
[
582,
583
],
[
566,
584
],
[
584,
585
],
[
732,
586
],
[
586,
587
],
[
586,
588
],
[
588,
589
],
[
589,
590
],
[
589,
591
],
[
591,
592
],
[
592,
593
],
[
588,
594
],
[
594,
595
],
[
594,
596
],
[
588,
597
],
[
597,
598
],
[
597,
599
],
[
599,
600
],
[
600,
601
],
[
597,
602
],
[
603,
603
],
[
603,
604
],
[
604,
605
],
[
604,
606
],
[
606,
607
],
[
606,
608
],
[
603,
609
],
[
609,
610
],
[
609,
611
],
[
603,
612
],
[
612,
613
],
[
612,
614
],
[
588,
615
],
[
615,
616
],
[
616,
617
],
[
616,
618
],
[
615,
619
],
[
619,
620
],
[
620,
621
],
[
619,
622
],
[
615,
623
],
[
623,
624
],
[
624,
625
],
[
623,
626
],
[
732,
627
],
[
627,
628
],
[
627,
629
],
[
629,
630
],
[
630,
631
],
[
630,
632
],
[
632,
633
],
[
633,
634
],
[
629,
635
],
[
635,
636
],
[
635,
637
],
[
637,
638
],
[
638,
639
],
[
629,
640
],
[
640,
641
],
[
641,
642
],
[
641,
643
],
[
640,
644
],
[
644,
645
],
[
629,
646
],
[
646,
647
],
[
646,
648
],
[
648,
649
],
[
648,
650
],
[
629,
651
],
[
651,
652
],
[
652,
653
],
[
653,
654
],
[
653,
655
],
[
655,
656
],
[
655,
657
],
[
651,
658
],
[
658,
659
],
[
658,
660
],
[
651,
661
],
[
661,
662
],
[
662,
663
],
[
651,
664
],
[
665,
665
],
[
665,
666
],
[
666,
667
],
[
667,
668
],
[
668,
669
],
[
669,
670
],
[
668,
671
],
[
667,
672
],
[
672,
673
],
[
673,
674
],
[
672,
675
],
[
666,
676
],
[
676,
677
],
[
665,
678
],
[
678,
679
],
[
679,
680
],
[
679,
681
],
[
678,
682
],
[
682,
683
],
[
629,
684
],
[
684,
685
],
[
627,
686
],
[
686,
687
],
[
627,
688
],
[
688,
689
],
[
732,
690
],
[
690,
691
],
[
690,
692
],
[
692,
693
],
[
693,
694
],
[
693,
695
],
[
695,
696
],
[
692,
697
],
[
697,
698
],
[
697,
699
],
[
699,
700
],
[
699,
701
],
[
692,
702
],
[
702,
703
],
[
702,
704
],
[
704,
705
],
[
704,
706
],
[
692,
707
],
[
707,
708
],
[
707,
709
],
[
709,
710
],
[
709,
711
],
[
692,
712
],
[
712,
713
],
[
712,
714
],
[
714,
715
],
[
714,
716
],
[
692,
717
],
[
717,
718
],
[
718,
719
],
[
719,
720
],
[
719,
721
],
[
718,
722
],
[
717,
723
],
[
723,
724
],
[
692,
725
],
[
725,
726
],
[
726,
727
],
[
725,
728
],
[
728,
729
],
[
728,
730
],
[
0,
731
],
[
731,
732
],
[
731,
733
]
]
| [
"import java.math.*;\nimport java.util.*;\nimport java.io.*;\n \npublic class Main { \n \n static BufferedReader in;\n static PrintWriter out = new PrintWriter(System.out);\n static String file = \"../in\";\n static int test = 10; // 0 for local testing, 1 for std input\n static int inf = 1_000_000, mod = 1_000_000_007;\n\n\n\n void swap(int[]ary, int i, int j)\n {\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n\n void swap(char[]ary, int i, int j)\n {\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n \n String[] split() throws Exception\n {\n return in.readLine().split(\" \");\n }\n\n int readInt() throws Exception\n {\n return Integer.valueOf(in.readLine());\n }\n\n long readLong() throws Exception\n {\n return Long.valueOf(in.readLine());\n }\n\n long[] toLongArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }\n\n int[] toIntArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }\n\n String reverse(String str)\n {\n return new StringBuilder(str).reverse().toString();\n }\n\n\n long pow(long a, int pow)\n {\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }\n\n public static void main(String[] args) throws Exception\n {\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().b();\n out.flush();\n }\n void f() throws Exception\n {\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }\n\n void e() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }\n\n int numCut(int[] ary, int thres)\n {\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }\n\n void d() throws Exception\n {\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }\n\n\n\n void c() throws Exception\n {\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }\n\n int gcd(int a, int b)\n {\n if(b == 0) return a;\n return gcd(b, a % b);\n }\n\n void b() throws Exception\n {\n String str = in.readLine();\n int sum = 0;\n for(char c : str.toCharArray())\n {\n int val = c - '0';\n sum += val;\n sum %= 9;\n }\n if(sum == 0) out.println(\"Yes\");\n else out.println(\"No\");\n \n }\n\n boolean transform(String s1, String s2)\n {\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }\n\n void a() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }\n}",
"import java.math.*;",
"math.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main { \n \n static BufferedReader in;\n static PrintWriter out = new PrintWriter(System.out);\n static String file = \"../in\";\n static int test = 10; // 0 for local testing, 1 for std input\n static int inf = 1_000_000, mod = 1_000_000_007;\n\n\n\n void swap(int[]ary, int i, int j)\n {\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n\n void swap(char[]ary, int i, int j)\n {\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n \n String[] split() throws Exception\n {\n return in.readLine().split(\" \");\n }\n\n int readInt() throws Exception\n {\n return Integer.valueOf(in.readLine());\n }\n\n long readLong() throws Exception\n {\n return Long.valueOf(in.readLine());\n }\n\n long[] toLongArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }\n\n int[] toIntArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }\n\n String reverse(String str)\n {\n return new StringBuilder(str).reverse().toString();\n }\n\n\n long pow(long a, int pow)\n {\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }\n\n public static void main(String[] args) throws Exception\n {\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().b();\n out.flush();\n }\n void f() throws Exception\n {\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }\n\n void e() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }\n\n int numCut(int[] ary, int thres)\n {\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }\n\n void d() throws Exception\n {\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }\n\n\n\n void c() throws Exception\n {\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }\n\n int gcd(int a, int b)\n {\n if(b == 0) return a;\n return gcd(b, a % b);\n }\n\n void b() throws Exception\n {\n String str = in.readLine();\n int sum = 0;\n for(char c : str.toCharArray())\n {\n int val = c - '0';\n sum += val;\n sum %= 9;\n }\n if(sum == 0) out.println(\"Yes\");\n else out.println(\"No\");\n \n }\n\n boolean transform(String s1, String s2)\n {\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }\n\n void a() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }\n}",
"Main",
"static BufferedReader in;",
"in",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"static String file = \"../in\";",
"file",
"\"../in\"",
"static int test = 10; // 0 for local testing, 1 for std input",
"test",
"10",
"static int inf = 1_000_000",
"inf",
"1_000_000",
"mod = 1_000_000_007;",
"mod",
"1_000_000_007",
"void swap(int[]ary, int i, int j)\n {\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }",
"swap",
"{\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }",
"int t = ary[i];",
"t",
"ary[i]",
"ary",
"i",
"ary[i] = ary[j]",
"ary[i]",
"ary",
"i",
"ary[j]",
"ary",
"j",
"ary[j] = t",
"ary[j]",
"ary",
"j",
"t",
"int[]ary",
"ary",
"int i",
"i",
"int j",
"j",
"void swap(char[]ary, int i, int j)\n {\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }",
"swap",
"{\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }",
"char t = ary[i];",
"t",
"ary[i]",
"ary",
"i",
"ary[i] = ary[j]",
"ary[i]",
"ary",
"i",
"ary[j]",
"ary",
"j",
"ary[j] = t",
"ary[j]",
"ary",
"j",
"t",
"char[]ary",
"ary",
"int i",
"i",
"int j",
"j",
"String[] split() throws Exception\n {\n return in.readLine().split(\" \");\n }",
"split",
"{\n return in.readLine().split(\" \");\n }",
"return in.readLine().split(\" \");",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int readInt() throws Exception\n {\n return Integer.valueOf(in.readLine());\n }",
"readInt",
"{\n return Integer.valueOf(in.readLine());\n }",
"return Integer.valueOf(in.readLine());",
"Integer.valueOf(in.readLine())",
"Integer.valueOf",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"long readLong() throws Exception\n {\n return Long.valueOf(in.readLine());\n }",
"readLong",
"{\n return Long.valueOf(in.readLine());\n }",
"return Long.valueOf(in.readLine());",
"Long.valueOf(in.readLine())",
"Long.valueOf",
"Long",
"in.readLine()",
"in.readLine",
"in",
"long[] toLongArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }",
"toLongArray",
"{\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }",
"String[] sp = split();",
"sp",
"split()",
"split",
"int n = sp.length;",
"n",
"sp.length",
"sp",
"sp.length",
"long[] ary = new long[n];",
"ary",
"new long[n]",
"n",
"for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"ary[i] = Long.valueOf(sp[i]);",
"ary[i] = Long.valueOf(sp[i])",
"ary[i]",
"ary",
"i",
"Long.valueOf(sp[i])",
"Long.valueOf",
"Long",
"sp[i]",
"sp",
"i",
"return ary;",
"ary",
"int[] toIntArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }",
"toIntArray",
"{\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }",
"String[] sp = split();",
"sp",
"split()",
"split",
"int n = sp.length;",
"n",
"sp.length",
"sp",
"sp.length",
"int[] ary = new int[n];",
"ary",
"new int[n]",
"n",
"for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"ary[i] = Integer.valueOf(sp[i]);",
"ary[i] = Integer.valueOf(sp[i])",
"ary[i]",
"ary",
"i",
"Integer.valueOf(sp[i])",
"Integer.valueOf",
"Integer",
"sp[i]",
"sp",
"i",
"return ary;",
"ary",
"String reverse(String str)\n {\n return new StringBuilder(str).reverse().toString();\n }",
"reverse",
"{\n return new StringBuilder(str).reverse().toString();\n }",
"return new StringBuilder(str).reverse().toString();",
"new StringBuilder(str).reverse().toString()",
"new StringBuilder(str).reverse().toString",
"new StringBuilder(str).reverse()",
"new StringBuilder(str).reverse",
"new StringBuilder(str)",
"String str",
"str",
"long pow(long a, int pow)\n {\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }",
"pow",
"{\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }",
"long res = 1;",
"res",
"1",
"while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }",
"pow > 0",
"pow",
"0",
"{\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }",
"if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }",
"pow % 2 != 0",
"pow % 2",
"pow",
"2",
"0",
"{\n res *= a;\n res %= mod;\n }",
"res *= a",
"res",
"a",
"res %= mod",
"res",
"mod",
"a = a * a",
"a",
"a * a",
"a",
"a",
"a %= mod",
"a",
"mod",
"pow /= 2",
"pow",
"2",
"return res;",
"res",
"long a",
"a",
"int pow",
"pow",
"public static void main(String[] args) throws Exception\n {\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().b();\n out.flush();\n }",
"main",
"{\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().b();\n out.flush();\n }",
"int _k = Integer.valueOf(\"1\");",
"_k",
"Integer.valueOf(\"1\")",
"Integer.valueOf",
"Integer",
"\"1\"",
"if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));",
"test > 0",
"test",
"0",
"in = new BufferedReader(new InputStreamReader(System.in))",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"in = new BufferedReader(new FileReader(file))",
"in",
"new BufferedReader(new FileReader(file))",
"if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}",
"test < 0",
"test",
"0",
"{String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}",
"String[] str = in.readLine().split(\" \");",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"char[] gg = in.readLine().toCharArray();",
"gg",
"in.readLine().toCharArray()",
"in.readLine().toCharArray",
"in.readLine()",
"in.readLine",
"in",
"new Main().b()",
"new Main().b",
"new Main()",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"void f() throws Exception\n {\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }",
"f",
"{\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }",
"int k = readInt();",
"k",
"readInt()",
"readInt",
"String s = in.readLine();",
"s",
"in.readLine()",
"in.readLine",
"in",
"int n = s.length();",
"n",
"s.length()",
"s.length",
"s",
"long prod = 1;",
"prod",
"1",
"int mod = 1_000_000_007;",
"mod",
"1_000_000_007",
"for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n n++;\n prod = (prod * 26 * n) % mod;\n }",
"{\n n++;\n prod = (prod * 26 * n) % mod;\n }",
"n++",
"n",
"prod = (prod * 26 * n) % mod",
"prod",
"(prod * 26 * n) % mod",
"(prod * 26 * n)",
"prod * 26 * n",
"prod",
"26",
"n",
"mod",
"System.out.println(prod)",
"System.out.println",
"System.out",
"System",
"System.out",
"prod",
"void e() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }",
"e",
"{\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }",
"int[] ary = toIntArray();",
"ary",
"toIntArray()",
"toIntArray",
"int n = ary[0]",
"n",
"ary[0]",
"ary",
"0",
"k = ary[1];",
"k",
"ary[1]",
"ary",
"1",
"ary = toIntArray()",
"ary",
"toIntArray()",
"toIntArray",
"int lo = 1",
"lo",
"1",
"hi = 1 << 30;",
"hi",
"1 << 30",
"1",
"30",
"while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }",
"lo < hi",
"lo",
"hi",
"{\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }",
"int m = (lo + hi) / 2;",
"m",
"(lo + hi) / 2",
"(lo + hi)",
"lo",
"hi",
"2",
"int cut = numCut(ary, m);",
"cut",
"numCut(ary, m)",
"numCut",
"ary",
"m",
"if(cut > k) lo = m + 1;\n else hi = m;",
"cut > k",
"cut",
"k",
"lo = m + 1",
"lo",
"m + 1",
"m",
"1",
"hi = m",
"hi",
"m",
"out.println(lo)",
"out.println",
"out",
"lo",
"int numCut(int[] ary, int thres)\n {\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }",
"numCut",
"{\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }",
"int count = 0;",
"count",
"0",
"for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }",
"int v",
"ary",
"{\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }",
"{\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }",
"if(v > thres)\n count += v / thres;",
"v > thres",
"v",
"thres",
"count += v / thres",
"count",
"v / thres",
"v",
"thres",
"return count;",
"count",
"int[] ary",
"ary",
"int thres",
"thres",
"void d() throws Exception\n {\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }",
"d",
"{\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }",
"int n = readInt();",
"n",
"readInt()",
"readInt",
"char[] c = in.readLine().toCharArray();",
"c",
"in.readLine().toCharArray()",
"in.readLine().toCharArray",
"in.readLine()",
"in.readLine",
"in",
"int i = 0",
"i",
"0",
"j = n - 1",
"j",
"n - 1",
"n",
"1",
"re = 0;",
"re",
"0",
"while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }",
"i < j",
"i",
"j",
"{\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }",
"while(i < j && c[i] == 'R') i++;",
"i < j && c[i] == 'R'",
"i < j",
"i",
"j",
"c[i] == 'R'",
"c[i]",
"c",
"i",
"'R'",
"i++",
"i",
"while(i < j && c[j] == 'W') j--;",
"i < j && c[j] == 'W'",
"i < j",
"i",
"j",
"c[j] == 'W'",
"c[j]",
"c",
"j",
"'W'",
"j--",
"j",
"if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }",
"i < j",
"i",
"j",
"{\n swap(c, i, j);\n i++;\n j--;\n re++;\n }",
"swap(c, i, j)",
"swap",
"c",
"i",
"j",
"i++",
"i",
"j--",
"j",
"re++",
"re",
"out.println(re)",
"out.println",
"out",
"re",
"void c() throws Exception\n {\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }",
"c",
"{\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }",
"int n = readInt();",
"n",
"readInt()",
"readInt",
"int[] ary = toIntArray();",
"ary",
"toIntArray()",
"toIntArray",
"int p = 200_003;",
"p",
"200_003",
"long sum = 0;",
"sum",
"0",
"for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }",
"{\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }",
"for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }",
"int j = i + 1;",
"int j = i + 1;",
"j",
"i + 1",
"i",
"1",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n sum += (ary[i] * ary[j]) % p;\n }",
"{\n sum += (ary[i] * ary[j]) % p;\n }",
"sum += (ary[i] * ary[j]) % p",
"sum",
"(ary[i] * ary[j]) % p",
"(ary[i] * ary[j])",
"ary[i]",
"ary",
"i",
"ary[j]",
"ary",
"j",
"p",
"out.println(sum)",
"out.println",
"out",
"sum",
"int gcd(int a, int b)\n {\n if(b == 0) return a;\n return gcd(b, a % b);\n }",
"gcd",
"{\n if(b == 0) return a;\n return gcd(b, a % b);\n }",
"if(b == 0) return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"return gcd(b, a % b);",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"void b() throws Exception\n {\n String str = in.readLine();\n int sum = 0;\n for(char c : str.toCharArray())\n {\n int val = c - '0';\n sum += val;\n sum %= 9;\n }\n if(sum == 0) out.println(\"Yes\");\n else out.println(\"No\");\n \n }",
"b",
"{\n String str = in.readLine();\n int sum = 0;\n for(char c : str.toCharArray())\n {\n int val = c - '0';\n sum += val;\n sum %= 9;\n }\n if(sum == 0) out.println(\"Yes\");\n else out.println(\"No\");\n \n }",
"String str = in.readLine();",
"str",
"in.readLine()",
"in.readLine",
"in",
"int sum = 0;",
"sum",
"0",
"for(char c : str.toCharArray())\n {\n int val = c - '0';\n sum += val;\n sum %= 9;\n }",
"char c",
"str.toCharArray()",
"str.toCharArray",
"str",
"{\n int val = c - '0';\n sum += val;\n sum %= 9;\n }",
"{\n int val = c - '0';\n sum += val;\n sum %= 9;\n }",
"int val = c - '0';",
"val",
"c - '0'",
"c",
"'0'",
"sum += val",
"sum",
"val",
"sum %= 9",
"sum",
"9",
"if(sum == 0) out.println(\"Yes\");\n else out.println(\"No\");",
"sum == 0",
"sum",
"0",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"boolean transform(String s1, String s2)\n {\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }",
"transform",
"{\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }",
"int m = s1.length()",
"m",
"s1.length()",
"s1.length",
"s1",
"n = s2.length();",
"n",
"s2.length()",
"s2.length",
"s2",
"if(m < n) return false;",
"m < n",
"m",
"n",
"return false;",
"false",
"int j = n - 1;",
"j",
"n - 1",
"n",
"1",
"for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }",
"int i = m - 1;",
"int i = m - 1;",
"i",
"m - 1",
"m",
"1",
"i >=0",
"i",
"0",
"i--",
"i--",
"i",
"{\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }",
"{\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }",
"if(s1.charAt(i) == s2.charAt(j)) j--;",
"s1.charAt(i) == s2.charAt(j)",
"s1.charAt(i)",
"s1.charAt",
"s1",
"i",
"s2.charAt(j)",
"s2.charAt",
"s2",
"j",
"j--",
"j",
"if(j < 0) return true;",
"j < 0",
"j",
"0",
"return true;",
"true",
"return false;",
"false",
"String s1",
"s1",
"String s2",
"s2",
"void a() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }",
"a",
"{\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }",
"int[] ary = toIntArray();",
"ary",
"toIntArray()",
"toIntArray",
"int n = ary[0]",
"n",
"ary[0]",
"ary",
"0",
"x = ary[1]",
"x",
"ary[1]",
"ary",
"1",
"t = ary[2];",
"t",
"ary[2]",
"ary",
"2",
"int mult = n / x;",
"mult",
"n / x",
"n",
"x",
"if(n % x != 0) mult++;",
"n % x != 0",
"n % x",
"n",
"x",
"0",
"mult++",
"mult",
"out.println(mult * t)",
"out.println",
"out",
"mult * t",
"mult",
"t",
"public class Main { \n \n static BufferedReader in;\n static PrintWriter out = new PrintWriter(System.out);\n static String file = \"../in\";\n static int test = 10; // 0 for local testing, 1 for std input\n static int inf = 1_000_000, mod = 1_000_000_007;\n\n\n\n void swap(int[]ary, int i, int j)\n {\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n\n void swap(char[]ary, int i, int j)\n {\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n \n String[] split() throws Exception\n {\n return in.readLine().split(\" \");\n }\n\n int readInt() throws Exception\n {\n return Integer.valueOf(in.readLine());\n }\n\n long readLong() throws Exception\n {\n return Long.valueOf(in.readLine());\n }\n\n long[] toLongArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }\n\n int[] toIntArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }\n\n String reverse(String str)\n {\n return new StringBuilder(str).reverse().toString();\n }\n\n\n long pow(long a, int pow)\n {\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }\n\n public static void main(String[] args) throws Exception\n {\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().b();\n out.flush();\n }\n void f() throws Exception\n {\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }\n\n void e() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }\n\n int numCut(int[] ary, int thres)\n {\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }\n\n void d() throws Exception\n {\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }\n\n\n\n void c() throws Exception\n {\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }\n\n int gcd(int a, int b)\n {\n if(b == 0) return a;\n return gcd(b, a % b);\n }\n\n void b() throws Exception\n {\n String str = in.readLine();\n int sum = 0;\n for(char c : str.toCharArray())\n {\n int val = c - '0';\n sum += val;\n sum %= 9;\n }\n if(sum == 0) out.println(\"Yes\");\n else out.println(\"No\");\n \n }\n\n boolean transform(String s1, String s2)\n {\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }\n\n void a() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }\n}",
"public class Main { \n \n static BufferedReader in;\n static PrintWriter out = new PrintWriter(System.out);\n static String file = \"../in\";\n static int test = 10; // 0 for local testing, 1 for std input\n static int inf = 1_000_000, mod = 1_000_000_007;\n\n\n\n void swap(int[]ary, int i, int j)\n {\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n\n void swap(char[]ary, int i, int j)\n {\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n \n String[] split() throws Exception\n {\n return in.readLine().split(\" \");\n }\n\n int readInt() throws Exception\n {\n return Integer.valueOf(in.readLine());\n }\n\n long readLong() throws Exception\n {\n return Long.valueOf(in.readLine());\n }\n\n long[] toLongArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }\n\n int[] toIntArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }\n\n String reverse(String str)\n {\n return new StringBuilder(str).reverse().toString();\n }\n\n\n long pow(long a, int pow)\n {\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }\n\n public static void main(String[] args) throws Exception\n {\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().b();\n out.flush();\n }\n void f() throws Exception\n {\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }\n\n void e() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }\n\n int numCut(int[] ary, int thres)\n {\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }\n\n void d() throws Exception\n {\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }\n\n\n\n void c() throws Exception\n {\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }\n\n int gcd(int a, int b)\n {\n if(b == 0) return a;\n return gcd(b, a % b);\n }\n\n void b() throws Exception\n {\n String str = in.readLine();\n int sum = 0;\n for(char c : str.toCharArray())\n {\n int val = c - '0';\n sum += val;\n sum %= 9;\n }\n if(sum == 0) out.println(\"Yes\");\n else out.println(\"No\");\n \n }\n\n boolean transform(String s1, String s2)\n {\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }\n\n void a() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }\n}",
"Main"
]
| import java.math.*;
import java.util.*;
import java.io.*;
public class Main {
static BufferedReader in;
static PrintWriter out = new PrintWriter(System.out);
static String file = "../in";
static int test = 10; // 0 for local testing, 1 for std input
static int inf = 1_000_000, mod = 1_000_000_007;
void swap(int[]ary, int i, int j)
{
int t = ary[i];
ary[i] = ary[j];
ary[j] = t;
}
void swap(char[]ary, int i, int j)
{
char t = ary[i];
ary[i] = ary[j];
ary[j] = t;
}
String[] split() throws Exception
{
return in.readLine().split(" ");
}
int readInt() throws Exception
{
return Integer.valueOf(in.readLine());
}
long readLong() throws Exception
{
return Long.valueOf(in.readLine());
}
long[] toLongArray() throws Exception
{
String[] sp = split();
int n = sp.length;
long[] ary = new long[n];
for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);
return ary;
}
int[] toIntArray() throws Exception
{
String[] sp = split();
int n = sp.length;
int[] ary = new int[n];
for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);
return ary;
}
String reverse(String str)
{
return new StringBuilder(str).reverse().toString();
}
long pow(long a, int pow)
{
long res = 1;
while(pow > 0)
{
if(pow % 2 != 0) {
res *= a;
res %= mod;
}
a = a * a;
a %= mod;
pow /= 2;
}
return res;
}
public static void main(String[] args) throws Exception
{
int _k = Integer.valueOf("1");
if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));
else in = new BufferedReader(new FileReader(file));
if(test < 0) {String[] str = in.readLine().split(" ");
char[] gg = in.readLine().toCharArray();}
/***********************************************************************/
/***********************************************************************/
/***********************************************************************/
/***********************************************************************/
// System.out.println((-100 + 0) / 2);
// char[] c = new char[4];
// c[1] = '.';
// for(char i = '0'; i <= '9'; i++)
// {
// for(char j = '0'; j <= '9'; j++)
// {
// for(char k = '0'; k <= '9'; k++)
// {
// c[0] = i;
// c[2] = j;
// c[3] = k;
// double d = Double.valueOf(String.valueOf(c));
// int v = (int)(d * 100);
// String s1 = String.valueOf("" + c[0] + c[2] + c[3]),
// s2 = String.valueOf(v);
// System.out.printf("%s %s %b\n", s1, s2, s1.equals(s2));
// }
// }
// }
new Main().b();
out.flush();
}
void f() throws Exception
{
int k = readInt();
String s = in.readLine();
int n = s.length();
long prod = 1;
int mod = 1_000_000_007;
for(int i = 0; i < k; i++)
{
n++;
prod = (prod * 26 * n) % mod;
}
System.out.println(prod);
}
void e() throws Exception
{
int[] ary = toIntArray();
int n = ary[0], k = ary[1];
ary = toIntArray();
int lo = 1, hi = 1 << 30;
while(lo < hi)
{
int m = (lo + hi) / 2;
int cut = numCut(ary, m);
// System.out.printf("%d %d\n", m, cut);
if(cut > k) lo = m + 1;
else hi = m;
}
out.println(lo);
}
int numCut(int[] ary, int thres)
{
int count = 0;
for(int v : ary)
{
if(v > thres)
count += v / thres;
// count += v % thres > 0 ? 1 : 0;
}
return count;
}
void d() throws Exception
{
int n = readInt();
char[] c = in.readLine().toCharArray();
int i = 0, j = n - 1, re = 0;
while(i < j)
{
while(i < j && c[i] == 'R') i++;
while(i < j && c[j] == 'W') j--;
if(i < j)
{
swap(c, i, j);
i++;
j--;
re++;
}
}
out.println(re);
}
void c() throws Exception
{
int n = readInt();
int[] ary = toIntArray();
int p = 200_003;
long sum = 0;
for(int i = 0; i < n; i++)
{
for(int j = i + 1; j < n; j++)
{
sum += (ary[i] * ary[j]) % p;
}
}
out.println(sum);
}
int gcd(int a, int b)
{
if(b == 0) return a;
return gcd(b, a % b);
}
void b() throws Exception
{
String str = in.readLine();
int sum = 0;
for(char c : str.toCharArray())
{
int val = c - '0';
sum += val;
sum %= 9;
}
if(sum == 0) out.println("Yes");
else out.println("No");
}
boolean transform(String s1, String s2)
{
// from s1 -> s2
int m = s1.length(), n = s2.length();
if(m < n) return false;
int j = n - 1;
for(int i = m - 1; i >=0; i--)
{
if(s1.charAt(i) == s2.charAt(j)) j--;
if(j < 0) return true;
}
return false;
}
void a() throws Exception
{
int[] ary = toIntArray();
int n = ary[0], x = ary[1], t = ary[2];
int mult = n / x;
if(n % x != 0) mult++;
out.println(mult * t);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
69,
11
],
[
69,
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
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
26,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
48,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
12,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString s = in.next();\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < s.length(); i++)\n\t\t\tans += s.charAt(i) - (char) '0';\n\t\tif (ans % 9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString s = in.next();\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < s.length(); i++)\n\t\t\tans += s.charAt(i) - (char) '0';\n\t\tif (ans % 9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString s = in.next();\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < s.length(); i++)\n\t\t\tans += s.charAt(i) - (char) '0';\n\t\tif (ans % 9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString s = in.next();\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < s.length(); i++)\n\t\t\tans += s.charAt(i) - (char) '0';\n\t\tif (ans % 9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));",
"in",
"new Scanner(new BufferedReader(new InputStreamReader(System.in)))",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < s.length(); i++)\n\t\t\tans += s.charAt(i) - (char) '0';",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"ans += s.charAt(i) - (char) '0';",
"ans += s.charAt(i) - (char) '0'",
"ans",
"s.charAt(i) - (char) '0'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"(char) '0'",
"if (ans % 9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");",
"ans % 9 == 0",
"ans % 9",
"ans",
"9",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString s = in.next();\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < s.length(); i++)\n\t\t\tans += s.charAt(i) - (char) '0';\n\t\tif (ans % 9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString s = in.next();\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < s.length(); i++)\n\t\t\tans += s.charAt(i) - (char) '0';\n\t\tif (ans % 9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
String s = in.next();
int ans = 0;
for (int i = 0; i < s.length(); i++)
ans += s.charAt(i) - (char) '0';
if (ans % 9 == 0)
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
17,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
34,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
46,
59
],
[
59,
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;\npublic class Main {\n public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n String str=s.next();\n long sum=0;\n for(int i=0;i<str.length();i++){\n int num=str.charAt(i)-'0';\n sum+=num;\n }\n \n if(sum%9==0){\n System.out.print(\"Yes\");\n }\n else{\n System.out.print(\"No\");\n }\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n String str=s.next();\n long sum=0;\n for(int i=0;i<str.length();i++){\n int num=str.charAt(i)-'0';\n sum+=num;\n }\n \n if(sum%9==0){\n System.out.print(\"Yes\");\n }\n else{\n System.out.print(\"No\");\n }\n\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n String str=s.next();\n long sum=0;\n for(int i=0;i<str.length();i++){\n int num=str.charAt(i)-'0';\n sum+=num;\n }\n \n if(sum%9==0){\n System.out.print(\"Yes\");\n }\n else{\n System.out.print(\"No\");\n }\n\n }",
"main",
"{\n Scanner s=new Scanner(System.in);\n String str=s.next();\n long sum=0;\n for(int i=0;i<str.length();i++){\n int num=str.charAt(i)-'0';\n sum+=num;\n }\n \n if(sum%9==0){\n System.out.print(\"Yes\");\n }\n else{\n System.out.print(\"No\");\n }\n\n }",
"Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"String str=s.next();",
"str",
"s.next()",
"s.next",
"s",
"long sum=0;",
"sum",
"0",
"for(int i=0;i<str.length();i++){\n int num=str.charAt(i)-'0';\n sum+=num;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n int num=str.charAt(i)-'0';\n sum+=num;\n }",
"{\n int num=str.charAt(i)-'0';\n sum+=num;\n }",
"int num=str.charAt(i)-'0';",
"num",
"str.charAt(i)-'0'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'0'",
"sum+=num",
"sum",
"num",
"if(sum%9==0){\n System.out.print(\"Yes\");\n }\n else{\n System.out.print(\"No\");\n }",
"sum%9==0",
"sum%9",
"sum",
"9",
"0",
"{\n System.out.print(\"Yes\");\n }",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.print(\"No\");\n }",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n String str=s.next();\n long sum=0;\n for(int i=0;i<str.length();i++){\n int num=str.charAt(i)-'0';\n sum+=num;\n }\n \n if(sum%9==0){\n System.out.print(\"Yes\");\n }\n else{\n System.out.print(\"No\");\n }\n\n }\n}",
"public class Main {\n public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n String str=s.next();\n long sum=0;\n for(int i=0;i<str.length();i++){\n int num=str.charAt(i)-'0';\n sum+=num;\n }\n \n if(sum%9==0){\n System.out.print(\"Yes\");\n }\n else{\n System.out.print(\"No\");\n }\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
String str=s.next();
long sum=0;
for(int i=0;i<str.length();i++){
int num=str.charAt(i)-'0';
sum+=num;
}
if(sum%9==0){
System.out.print("Yes");
}
else{
System.out.print("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
2,
13,
4,
18,
13,
13,
17,
17,
4,
18,
13,
8,
2,
13,
17,
17,
17,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
4,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
6,
13,
41,
13,
12,
13,
30,
4,
13,
18,
13,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
4,
18,
18,
36,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
40,
17,
30,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
2,
2,
2,
13,
17,
2,
17,
13,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
2,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
17,
13,
29,
2,
13,
13,
0,
13,
17,
0,
13,
2,
13,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
18,
13,
13,
30,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
2,
2,
2,
13,
17,
2,
17,
13,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
2,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
17,
13,
3,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
13,
17,
29,
2,
13,
13,
41,
13,
17,
0,
13,
4,
18,
13,
42,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
29,
2,
2,
13,
13,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
4,
18,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
42,
2,
2,
13,
40,
17,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
29,
4,
18,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
2,
13,
40,
17,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
13,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
17,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
13,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
17,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
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
],
[
759,
11
],
[
759,
12
],
[
12,
13
],
[
759,
14
],
[
14,
15
],
[
759,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
759,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
23,
29
],
[
29,
30
],
[
29,
31
],
[
23,
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
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
50,
57
],
[
49,
58
],
[
23,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
62,
67
],
[
759,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
68,
74
],
[
74,
75
],
[
759,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
78,
85
],
[
85,
86
],
[
78,
87
],
[
87,
88
],
[
88,
89
],
[
78,
90
],
[
90,
91
],
[
91,
92
],
[
78,
93
],
[
93,
94
],
[
94,
95
],
[
759,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
96,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
108,
116
],
[
116,
117
],
[
96,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
121,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
96,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
136,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
145,
147
],
[
142,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
150,
152
],
[
141,
153
],
[
153,
154
],
[
136,
155
],
[
155,
156
],
[
96,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
160,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
170,
179
],
[
179,
180
],
[
181,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
186,
187
],
[
186,
188
],
[
181,
189
],
[
189,
190
],
[
189,
191
],
[
181,
192
],
[
192,
193
],
[
192,
194
],
[
179,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
170,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
205,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
213,
214
],
[
201,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
170,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
227,
229
],
[
170,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
232,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
243,
245
],
[
238,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
232,
250
],
[
250,
251
],
[
250,
252
],
[
232,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
255,
257
],
[
96,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
264,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
261,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
279,
280
],
[
272,
281
],
[
281,
282
],
[
283,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
284,
288
],
[
288,
289
],
[
288,
290
],
[
283,
291
],
[
291,
292
],
[
291,
293
],
[
283,
294
],
[
294,
295
],
[
294,
296
],
[
281,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
301,
302
],
[
272,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
307,
312
],
[
312,
313
],
[
312,
314
],
[
314,
315
],
[
315,
316
],
[
303,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
317,
321
],
[
321,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
325,
326
],
[
272,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
329,
331
],
[
272,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
338,
339
],
[
334,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
345
],
[
345,
346
],
[
345,
347
],
[
340,
348
],
[
334,
349
],
[
349,
350
],
[
349,
351
],
[
334,
352
],
[
352,
353
],
[
352,
354
],
[
354,
355
],
[
354,
356
],
[
272,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
357,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
272,
365
],
[
365,
366
],
[
365,
367
],
[
272,
368
],
[
368,
369
],
[
368,
370
],
[
370,
371
],
[
371,
372
],
[
272,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
374,
378
],
[
378,
379
],
[
378,
380
],
[
373,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
381,
385
],
[
385,
386
],
[
385,
387
],
[
387,
388
],
[
387,
389
],
[
381,
390
],
[
390,
391
],
[
390,
392
],
[
381,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
396,
397
],
[
272,
398
],
[
398,
399
],
[
399,
400
],
[
400,
401
],
[
400,
402
],
[
399,
403
],
[
96,
404
],
[
404,
405
],
[
404,
406
],
[
406,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
410,
414
],
[
414,
415
],
[
407,
416
],
[
416,
417
],
[
417,
418
],
[
417,
419
],
[
419,
420
],
[
420,
421
],
[
416,
422
],
[
422,
423
],
[
423,
424
],
[
424,
425
],
[
423,
426
],
[
422,
427
],
[
427,
428
],
[
428,
429
],
[
428,
430
],
[
430,
431
],
[
431,
432
],
[
416,
433
],
[
433,
434
],
[
96,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
438,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
442,
443
],
[
443,
444
],
[
441,
445
],
[
445,
446
],
[
438,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
447,
451
],
[
451,
452
],
[
451,
453
],
[
453,
454
],
[
454,
455
],
[
447,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
457,
460
],
[
456,
461
],
[
461,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
465,
466
],
[
447,
467
],
[
467,
468
],
[
468,
469
],
[
469,
470
],
[
469,
471
],
[
471,
472
],
[
468,
473
],
[
473,
474
],
[
474,
475
],
[
475,
476
],
[
474,
477
],
[
467,
478
],
[
478,
479
],
[
479,
480
],
[
480,
481
],
[
479,
482
],
[
478,
483
],
[
483,
484
],
[
483,
485
],
[
485,
486
],
[
486,
487
],
[
447,
488
],
[
488,
489
],
[
489,
490
],
[
490,
491
],
[
96,
492
],
[
492,
493
],
[
492,
494
],
[
494,
495
],
[
495,
496
],
[
496,
497
],
[
496,
498
],
[
498,
499
],
[
499,
500
],
[
500,
501
],
[
498,
502
],
[
502,
503
],
[
495,
504
],
[
504,
505
],
[
505,
506
],
[
505,
507
],
[
504,
508
],
[
508,
509
],
[
508,
510
],
[
510,
511
],
[
511,
512
],
[
504,
513
],
[
513,
514
],
[
514,
515
],
[
515,
516
],
[
515,
517
],
[
517,
518
],
[
514,
519
],
[
519,
520
],
[
519,
521
],
[
513,
522
],
[
522,
523
],
[
523,
524
],
[
524,
525
],
[
523,
526
],
[
522,
527
],
[
527,
528
],
[
527,
529
],
[
529,
530
],
[
530,
531
],
[
504,
532
],
[
532,
533
],
[
533,
534
],
[
534,
535
],
[
96,
536
],
[
536,
537
],
[
536,
538
],
[
538,
539
],
[
539,
540
],
[
539,
541
],
[
538,
543
],
[
543,
544
],
[
544,
545
],
[
545,
546
],
[
545,
547
],
[
543,
548
],
[
548,
549
],
[
548,
550
],
[
543,
551
],
[
551,
552
],
[
552,
553
],
[
543,
554
],
[
555,
555
],
[
555,
556
],
[
556,
557
],
[
557,
558
],
[
557,
559
],
[
556,
560
],
[
560,
561
],
[
538,
562
],
[
562,
563
],
[
536,
564
],
[
564,
565
],
[
96,
566
],
[
566,
567
],
[
566,
568
],
[
568,
569
],
[
569,
570
],
[
569,
571
],
[
568,
573
],
[
573,
574
],
[
574,
575
],
[
575,
576
],
[
575,
577
],
[
573,
578
],
[
578,
579
],
[
578,
580
],
[
573,
581
],
[
581,
582
],
[
582,
583
],
[
573,
584
],
[
585,
585
],
[
585,
586
],
[
586,
587
],
[
587,
588
],
[
587,
589
],
[
586,
590
],
[
590,
591
],
[
591,
592
],
[
590,
593
],
[
568,
594
],
[
594,
595
],
[
566,
596
],
[
596,
597
],
[
96,
598
],
[
598,
599
],
[
598,
600
],
[
600,
601
],
[
601,
602
],
[
601,
603
],
[
604,
605
],
[
604,
606
],
[
600,
607
],
[
607,
608
],
[
608,
609
],
[
609,
610
],
[
609,
611
],
[
607,
612
],
[
612,
613
],
[
612,
614
],
[
607,
615
],
[
615,
616
],
[
616,
617
],
[
607,
618
],
[
619,
619
],
[
619,
620
],
[
620,
621
],
[
621,
622
],
[
621,
623
],
[
623,
624
],
[
623,
625
],
[
620,
626
],
[
626,
627
],
[
600,
628
],
[
628,
629
],
[
598,
630
],
[
630,
631
],
[
96,
632
],
[
632,
633
],
[
632,
634
],
[
634,
635
],
[
635,
636
],
[
635,
637
],
[
634,
639
],
[
639,
640
],
[
640,
641
],
[
641,
642
],
[
641,
643
],
[
639,
644
],
[
644,
645
],
[
644,
646
],
[
639,
647
],
[
647,
648
],
[
648,
649
],
[
639,
650
],
[
651,
651
],
[
651,
652
],
[
652,
653
],
[
653,
654
],
[
653,
655
],
[
652,
656
],
[
656,
657
],
[
634,
658
],
[
658,
659
],
[
632,
660
],
[
660,
661
],
[
96,
662
],
[
662,
663
],
[
662,
664
],
[
664,
665
],
[
665,
666
],
[
665,
667
],
[
664,
669
],
[
669,
670
],
[
670,
671
],
[
671,
672
],
[
671,
673
],
[
669,
674
],
[
674,
675
],
[
674,
676
],
[
669,
677
],
[
677,
678
],
[
678,
679
],
[
669,
680
],
[
681,
681
],
[
681,
682
],
[
682,
683
],
[
683,
684
],
[
683,
685
],
[
682,
686
],
[
686,
687
],
[
687,
688
],
[
686,
689
],
[
664,
690
],
[
690,
691
],
[
662,
692
],
[
692,
693
],
[
96,
694
],
[
694,
695
],
[
694,
696
],
[
696,
697
],
[
697,
698
],
[
697,
699
],
[
700,
701
],
[
700,
702
],
[
696,
703
],
[
703,
704
],
[
704,
705
],
[
705,
706
],
[
705,
707
],
[
703,
708
],
[
708,
709
],
[
708,
710
],
[
703,
711
],
[
711,
712
],
[
712,
713
],
[
703,
714
],
[
715,
715
],
[
715,
716
],
[
716,
717
],
[
717,
718
],
[
717,
719
],
[
719,
720
],
[
719,
721
],
[
716,
722
],
[
722,
723
],
[
696,
724
],
[
724,
725
],
[
694,
726
],
[
726,
727
],
[
96,
728
],
[
728,
729
],
[
728,
730
],
[
730,
731
],
[
731,
732
],
[
731,
733
],
[
730,
735
],
[
735,
736
],
[
736,
737
],
[
737,
738
],
[
737,
739
],
[
735,
740
],
[
740,
741
],
[
740,
742
],
[
735,
743
],
[
743,
744
],
[
744,
745
],
[
735,
746
],
[
747,
747
],
[
747,
748
],
[
748,
749
],
[
749,
750
],
[
749,
751
],
[
748,
752
],
[
752,
753
],
[
730,
754
],
[
754,
755
],
[
728,
756
],
[
756,
757
],
[
0,
758
],
[
758,
759
],
[
758,
760
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.math.BigDecimal;\n\n@SuppressWarnings(\"unused\")\npublic class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n String N = in.nextStr();\n int mod = 0;\n for(int i = 0; i < N.length(); i++){\n mod = (mod + N.charAt(i) - '0') % 9;\n }\n out.println((mod == 0 ? \"Yes\" : \"No\"));\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n String N = in.nextStr();\n int mod = 0;\n for(int i = 0; i < N.length(); i++){\n mod = (mod + N.charAt(i) - '0') % 9;\n }\n out.println((mod == 0 ? \"Yes\" : \"No\"));\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"Main",
"FastScanner in;",
"in",
"PrintWriter out;",
"out",
"final static int MOD = (int)1e9+7;",
"MOD",
"(int)1e9+7",
"(int)1e9",
"7",
"void solve(){\n String N = in.nextStr();\n int mod = 0;\n for(int i = 0; i < N.length(); i++){\n mod = (mod + N.charAt(i) - '0') % 9;\n }\n out.println((mod == 0 ? \"Yes\" : \"No\"));\n }",
"solve",
"{\n String N = in.nextStr();\n int mod = 0;\n for(int i = 0; i < N.length(); i++){\n mod = (mod + N.charAt(i) - '0') % 9;\n }\n out.println((mod == 0 ? \"Yes\" : \"No\"));\n }",
"String N = in.nextStr();",
"N",
"in.nextStr()",
"in.nextStr",
"in",
"int mod = 0;",
"mod",
"0",
"for(int i = 0; i < N.length(); i++){\n mod = (mod + N.charAt(i) - '0') % 9;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N.length()",
"i",
"N.length()",
"N.length",
"N",
"i++",
"i++",
"i",
"{\n mod = (mod + N.charAt(i) - '0') % 9;\n }",
"{\n mod = (mod + N.charAt(i) - '0') % 9;\n }",
"mod = (mod + N.charAt(i) - '0') % 9",
"mod",
"(mod + N.charAt(i) - '0') % 9",
"(mod + N.charAt(i) - '0')",
"mod + N.charAt(i)",
"mod",
"N.charAt(i)",
"N.charAt",
"N",
"i",
"'0'",
"9",
"out.println((mod == 0 ? \"Yes\" : \"No\"))",
"out.println",
"out",
"(mod == 0 ? \"Yes\" : \"No\")",
"mod == 0",
"mod",
"0",
"\"Yes\"",
"\"No\"",
"public static void main(String[] args) {\n new Main().m();\n }",
"main",
"{\n new Main().m();\n }",
"new Main().m()",
"new Main().m",
"new Main()",
"String[] args",
"args",
"private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }",
"m",
"{\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }",
"in = new FastScanner(System.in)",
"in",
"new FastScanner(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"in.close()",
"in.close",
"in",
"out.close()",
"out.close",
"out",
"static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }",
"FastScanner",
"private Reader input;",
"input",
"public FastScanner() {this(System.in);}",
"FastScanner",
"{this(System.in);}",
"this(System.in)",
"this",
"System.in",
"System",
"System.in",
"public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}",
"FastScanner",
"{this.input = new BufferedReader(new InputStreamReader(stream));}",
"this.input = new BufferedReader(new InputStreamReader(stream))",
"this.input",
"this",
"this.input",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"close",
"{\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n this.input.close();\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 this.input.close();\n }",
"this.input.close()",
"this.input.close",
"this.input",
"this",
"this.input",
"public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"nextInt",
"{\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"long nl = nextLong();",
"nl",
"nextLong()",
"nextLong",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }",
"nextLong",
"{\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }",
"try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return -1;\n }",
"IOException e",
"{\n e.printStackTrace();\n return -1;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return -1;",
"-1",
"1",
"{\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n }",
"int sign = 1;",
"sign",
"1",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b)",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"b != '-'",
"b",
"'-'",
"b != '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }",
"b == '-'",
"b",
"'-'",
"{\n sign = -1;\n b = input.read();\n }",
"sign = -1",
"sign",
"-1",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '+') {\n b = input.read();\n }",
"b == '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"long ret = b - '0';",
"ret",
"b - '0'",
"b",
"'0'",
"while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }",
"true",
"{\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b < '0' || '9' < b) return ret * sign;",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"return ret * sign;",
"ret * sign",
"ret",
"sign",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }",
"nextDouble",
"{\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }",
"try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }",
"IOException e",
"{\n e.printStackTrace();\n return Double.NaN;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return Double.NaN;",
"Double.NaN",
"Double",
"Double.NaN",
"{\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n }",
"double sign = 1;",
"sign",
"1",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b)",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"b != '-'",
"b",
"'-'",
"b != '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }",
"b == '-'",
"b",
"'-'",
"{\n sign = -1;\n b = input.read();\n }",
"sign = -1",
"sign",
"-1",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '+') {\n b = input.read();\n }",
"b == '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"double ret = b - '0';",
"ret",
"b - '0'",
"b",
"'0'",
"while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }",
"true",
"{\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b < '0' || '9' < b) break;",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"break;",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"if (b != '.') return sign * ret;",
"b != '.'",
"b",
"'.'",
"return sign * ret;",
"sign * ret",
"sign",
"ret",
"double div = 1;",
"div",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"div *= 10",
"div",
"10",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sign * ret / div;",
"sign * ret / div",
"sign * ret",
"sign",
"ret",
"div",
"public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }",
"nextChar",
"{\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }",
"try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return 0;\n }",
"IOException e",
"{\n e.printStackTrace();\n return 0;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return 0;",
"0",
"{\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n }",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (Character.isWhitespace(b)) {\n b = input.read();\n }",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return (char) b;",
"(char) b",
"public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"nextStr",
"{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"IOException e",
"{\n e.printStackTrace();\n return \"\";\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return \"\";",
"\"\"",
"{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (Character.isWhitespace(b)) {\n b = input.read();\n }",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }",
"b != -1 && !Character.isWhitespace(b)",
"b != -1",
"b",
"-1",
"1",
"!Character.isWhitespace(b)",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n sb.append((char) b);\n b = input.read();\n }",
"sb.append((char) b)",
"sb.append",
"sb",
"(char) b",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"nextLine",
"{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"IOException e",
"{\n e.printStackTrace();\n return \"\";\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return \"\";",
"\"\"",
"{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }",
"b != -1 && b != '\\n'",
"b != -1",
"b",
"-1",
"1",
"b != '\\n'",
"b",
"'\\n'",
"{\n sb.append((char) b);\n b = input.read();\n }",
"sb.append((char) b)",
"sb.append",
"sb",
"(char) b",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }",
"nextIntArray",
"{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextInt();\n }",
"{\n res[i] = nextInt();\n }",
"res[i] = nextInt()",
"res[i]",
"res",
"i",
"nextInt()",
"nextInt",
"return res;",
"res",
"int n",
"n",
"public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }",
"nextIntArrayDec",
"{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextInt() - 1;\n }",
"{\n res[i] = nextInt() - 1;\n }",
"res[i] = nextInt() - 1",
"res[i]",
"res",
"i",
"nextInt() - 1",
"nextInt()",
"nextInt",
"1",
"return res;",
"res",
"int n",
"n",
"public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }",
"nextIntArray1Index",
"{\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }",
"int[] res = new int[n + 1];",
"res",
"new int[n + 1]",
"n + 1",
"n",
"1",
"for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i + 1] = nextInt();\n }",
"{\n res[i + 1] = nextInt();\n }",
"res[i + 1] = nextInt()",
"res[i + 1]",
"res",
"i + 1",
"i",
"1",
"nextInt()",
"nextInt",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }",
"nextLongArray",
"{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }",
"long[] res = new long[n];",
"res",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextLong();\n }",
"{\n res[i] = nextLong();\n }",
"res[i] = nextLong()",
"res[i]",
"res",
"i",
"nextLong()",
"nextLong",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }",
"nextLongArrayDec",
"{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }",
"long[] res = new long[n];",
"res",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextLong() - 1;\n }",
"{\n res[i] = nextLong() - 1;\n }",
"res[i] = nextLong() - 1",
"res[i]",
"res",
"i",
"nextLong() - 1",
"nextLong()",
"nextLong",
"1",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }",
"nextLongArray1Index",
"{\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }",
"long[] res = new long[n + 1];",
"res",
"new long[n + 1]",
"n + 1",
"n",
"1",
"for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i + 1] = nextLong();\n }",
"{\n res[i + 1] = nextLong();\n }",
"res[i + 1] = nextLong()",
"res[i + 1]",
"res",
"i + 1",
"i",
"1",
"nextLong()",
"nextLong",
"return res;",
"res",
"int n",
"n",
"public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }",
"nextDoubleArray",
"{\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }",
"double[] res = new double[n];",
"res",
"new double[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextDouble();\n }",
"{\n res[i] = nextDouble();\n }",
"res[i] = nextDouble()",
"res[i]",
"res",
"i",
"nextDouble()",
"nextDouble",
"return res;",
"res",
"int n",
"n",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n String N = in.nextStr();\n int mod = 0;\n for(int i = 0; i < N.length(); i++){\n mod = (mod + N.charAt(i) - '0') % 9;\n }\n out.println((mod == 0 ? \"Yes\" : \"No\"));\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n String N = in.nextStr();\n int mod = 0;\n for(int i = 0; i < N.length(); i++){\n mod = (mod + N.charAt(i) - '0') % 9;\n }\n out.println((mod == 0 ? \"Yes\" : \"No\"));\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.math.BigDecimal;
@SuppressWarnings("unused")
public class Main {
FastScanner in;
PrintWriter out;
final static int MOD = (int)1e9+7;
void solve(){
String N = in.nextStr();
int mod = 0;
for(int i = 0; i < N.length(); i++){
mod = (mod + N.charAt(i) - '0') % 9;
}
out.println((mod == 0 ? "Yes" : "No"));
}
public static void main(String[] args) {
new Main().m();
}
private void m() {
in = new FastScanner(System.in);
out = new PrintWriter(System.out);
/*
try {
String path = "input.txt";
out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));
}catch (IOException e){
e.printStackTrace();
}
*/
solve();
out.flush();
in.close();
out.close();
}
static class FastScanner {
private Reader input;
public FastScanner() {this(System.in);}
public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}
public void close() {
try {
this.input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) nl;
}
public long nextLong() {
try {
int sign = 1;
int b = input.read();
while ((b < '0' || '9' < b) && b != '-' && b != '+') {
b = input.read();
}
if (b == '-') {
sign = -1;
b = input.read();
} else if (b == '+') {
b = input.read();
}
long ret = b - '0';
while (true) {
b = input.read();
if (b < '0' || '9' < b) return ret * sign;
ret *= 10;
ret += b - '0';
}
} catch (IOException e) {
e.printStackTrace();
return -1;
}
}
public double nextDouble() {
try {
double sign = 1;
int b = input.read();
while ((b < '0' || '9' < b) && b != '-' && b != '+') {
b = input.read();
}
if (b == '-') {
sign = -1;
b = input.read();
} else if (b == '+') {
b = input.read();
}
double ret = b - '0';
while (true) {
b = input.read();
if (b < '0' || '9' < b) break;
ret *= 10;
ret += b - '0';
}
if (b != '.') return sign * ret;
double div = 1;
b = input.read();
while ('0' <= b && b <= '9') {
ret *= 10;
ret += b - '0';
div *= 10;
b = input.read();
}
return sign * ret / div;
} catch (IOException e) {
e.printStackTrace();
return Double.NaN;
}
}
public char nextChar() {
try {
int b = input.read();
while (Character.isWhitespace(b)) {
b = input.read();
}
return (char) b;
} catch (IOException e) {
e.printStackTrace();
return 0;
}
}
public String nextStr() {
try {
StringBuilder sb = new StringBuilder();
int b = input.read();
while (Character.isWhitespace(b)) {
b = input.read();
}
while (b != -1 && !Character.isWhitespace(b)) {
sb.append((char) b);
b = input.read();
}
return sb.toString();
} catch (IOException e) {
e.printStackTrace();
return "";
}
}
public String nextLine() {
try {
StringBuilder sb = new StringBuilder();
int b = input.read();
while (b != -1 && b != '\n') {
sb.append((char) b);
b = input.read();
}
return sb.toString();
} catch (IOException e) {
e.printStackTrace();
return "";
}
}
public int[] nextIntArray(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = nextInt();
}
return res;
}
public int[] nextIntArrayDec(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = nextInt() - 1;
}
return res;
}
public int[] nextIntArray1Index(int n) {
int[] res = new int[n + 1];
for (int i = 0; i < n; i++) {
res[i + 1] = nextInt();
}
return res;
}
public long[] nextLongArray(int n) {
long[] res = new long[n];
for (int i = 0; i < n; i++) {
res[i] = nextLong();
}
return res;
}
public long[] nextLongArrayDec(int n) {
long[] res = new long[n];
for (int i = 0; i < n; i++) {
res[i] = nextLong() - 1;
}
return res;
}
public long[] nextLongArray1Index(int n) {
long[] res = new long[n + 1];
for (int i = 0; i < n; i++) {
res[i + 1] = nextLong();
}
return res;
}
public double[] nextDoubleArray(int n) {
double[] res = new double[n];
for (int i = 0; i < n; i++) {
res[i] = nextDouble();
}
return res;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
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,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
70,
11
],
[
70,
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
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
26,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
14,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
49,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
12,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
]
| [
"/* package codechef; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\npublic class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t Scanner scan=new Scanner(System.in);\n\t String str=scan.next();\n\t long c=0;\n\t for(int i=0;i<str.length();i++)\n\t {\n\t c+=(str.charAt(i)-'0');\n\t }\n\t if(c%9 == 0)\n\t System.out.println(\"Yes\");\n\t else\n\t System.out.println(\"No\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t Scanner scan=new Scanner(System.in);\n\t String str=scan.next();\n\t long c=0;\n\t for(int i=0;i<str.length();i++)\n\t {\n\t c+=(str.charAt(i)-'0');\n\t }\n\t if(c%9 == 0)\n\t System.out.println(\"Yes\");\n\t else\n\t System.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t Scanner scan=new Scanner(System.in);\n\t String str=scan.next();\n\t long c=0;\n\t for(int i=0;i<str.length();i++)\n\t {\n\t c+=(str.charAt(i)-'0');\n\t }\n\t if(c%9 == 0)\n\t System.out.println(\"Yes\");\n\t else\n\t System.out.println(\"No\");\n\t}",
"main",
"{\n\t Scanner scan=new Scanner(System.in);\n\t String str=scan.next();\n\t long c=0;\n\t for(int i=0;i<str.length();i++)\n\t {\n\t c+=(str.charAt(i)-'0');\n\t }\n\t if(c%9 == 0)\n\t System.out.println(\"Yes\");\n\t else\n\t System.out.println(\"No\");\n\t}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str=scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"long c=0;",
"c",
"0",
"for(int i=0;i<str.length();i++)\n\t {\n\t c+=(str.charAt(i)-'0');\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n\t c+=(str.charAt(i)-'0');\n\t }",
"{\n\t c+=(str.charAt(i)-'0');\n\t }",
"c+=(str.charAt(i)-'0')",
"c",
"(str.charAt(i)-'0')",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'0'",
"if(c%9 == 0)\n\t System.out.println(\"Yes\");\n\t else\n\t System.out.println(\"No\");",
"c%9 == 0",
"c%9",
"c",
"9",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t Scanner scan=new Scanner(System.in);\n\t String str=scan.next();\n\t long c=0;\n\t for(int i=0;i<str.length();i++)\n\t {\n\t c+=(str.charAt(i)-'0');\n\t }\n\t if(c%9 == 0)\n\t System.out.println(\"Yes\");\n\t else\n\t System.out.println(\"No\");\n\t}\n}",
"public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t Scanner scan=new Scanner(System.in);\n\t String str=scan.next();\n\t long c=0;\n\t for(int i=0;i<str.length();i++)\n\t {\n\t c+=(str.charAt(i)-'0');\n\t }\n\t if(c%9 == 0)\n\t System.out.println(\"Yes\");\n\t else\n\t System.out.println(\"No\");\n\t}\n}",
"Main"
]
| /* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner scan=new Scanner(System.in);
String str=scan.next();
long c=0;
for(int i=0;i<str.length();i++)
{
c+=(str.charAt(i)-'0');
}
if(c%9 == 0)
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
13,
17,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
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
],
[
196,
11
],
[
196,
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
],
[
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
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
14,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
14,
69
],
[
69,
70
],
[
70,
71
],
[
12,
72
],
[
72,
73
],
[
196,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
74,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
86,
87
],
[
74,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
88,
94
],
[
94,
95
],
[
74,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
99,
108
],
[
108,
109
],
[
108,
110
],
[
98,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
74,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
74,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
74,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
74,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
74,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
74,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
163,
171
],
[
171,
172
],
[
172,
173
],
[
163,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
158,
181
],
[
181,
182
],
[
156,
183
],
[
183,
184
],
[
74,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
185,
193
],
[
193,
194
],
[
0,
195
],
[
195,
196
],
[
195,
197
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.math.BigInteger;\npublic class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tString a=sc.next();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<a.length();i++) {\n\t\t\tans+=Integer.parseInt(a.charAt(i)+\"\");\n\t\t}\n\t\tif(ans%9==0)syso.println(\"Yes\");\n\t\telse syso.println(\"No\");\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tString a=sc.next();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<a.length();i++) {\n\t\t\tans+=Integer.parseInt(a.charAt(i)+\"\");\n\t\t}\n\t\tif(ans%9==0)syso.println(\"Yes\");\n\t\telse syso.println(\"No\");\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tString a=sc.next();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<a.length();i++) {\n\t\t\tans+=Integer.parseInt(a.charAt(i)+\"\");\n\t\t}\n\t\tif(ans%9==0)syso.println(\"Yes\");\n\t\telse syso.println(\"No\");\n syso.close();\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tString a=sc.next();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<a.length();i++) {\n\t\t\tans+=Integer.parseInt(a.charAt(i)+\"\");\n\t\t}\n\t\tif(ans%9==0)syso.println(\"Yes\");\n\t\telse syso.println(\"No\");\n syso.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter syso = new PrintWriter(System.out);",
"syso",
"new PrintWriter(System.out)",
"String a=sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"long ans=0;",
"ans",
"0",
"for(int i=0;i<a.length();i++) {\n\t\t\tans+=Integer.parseInt(a.charAt(i)+\"\");\n\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\tans+=Integer.parseInt(a.charAt(i)+\"\");\n\t\t}",
"{\n\t\t\tans+=Integer.parseInt(a.charAt(i)+\"\");\n\t\t}",
"ans+=Integer.parseInt(a.charAt(i)+\"\")",
"ans",
"Integer.parseInt(a.charAt(i)+\"\")",
"Integer.parseInt",
"Integer",
"a.charAt(i)+\"\"",
"a.charAt(i)",
"a.charAt",
"a",
"i",
"\"\"",
"if(ans%9==0)syso.println(\"Yes\");\n\t\telse syso.println(\"No\");",
"ans%9==0",
"ans%9",
"ans",
"9",
"0",
"syso.println(\"Yes\")",
"syso.println",
"syso",
"\"Yes\"",
"syso.println(\"No\")",
"syso.println",
"syso",
"\"No\"",
"syso.close()",
"syso.close",
"syso",
"String[] args",
"args",
"static class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}",
"nextLine",
"{\n\t\t\treturn br.readLine();\n\t\t}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}",
"ready",
"{\n\t\t\treturn br.ready();\n\t\t}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}",
"nextArr",
"{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}",
"int arr[]=new int[n];",
"arr",
"new int[n]",
"n",
"for(int i=0;i<n;i++)arr[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i]=nextInt();",
"arr[i]=nextInt()",
"arr[i]",
"arr",
"i",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int n",
"n",
"public BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}",
"BigInteger",
"{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}",
"BigInteger a=new BigInteger(s);",
"a",
"new BigInteger(s)",
"return a;",
"a",
"String s",
"s",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tString a=sc.next();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<a.length();i++) {\n\t\t\tans+=Integer.parseInt(a.charAt(i)+\"\");\n\t\t}\n\t\tif(ans%9==0)syso.println(\"Yes\");\n\t\telse syso.println(\"No\");\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tString a=sc.next();\n\t\tlong ans=0;\n\t\tfor(int i=0;i<a.length();i++) {\n\t\t\tans+=Integer.parseInt(a.charAt(i)+\"\");\n\t\t}\n\t\tif(ans%9==0)syso.println(\"Yes\");\n\t\telse syso.println(\"No\");\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
PrintWriter syso = new PrintWriter(System.out);
String a=sc.next();
long ans=0;
for(int i=0;i<a.length();i++) {
ans+=Integer.parseInt(a.charAt(i)+"");
}
if(ans%9==0)syso.println("Yes");
else syso.println("No");
syso.close();
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public Scanner(String file) throws FileNotFoundException {
br = new BufferedReader(new FileReader(file));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
public String nextLine() throws IOException {
return br.readLine();
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public boolean ready() throws IOException {
return br.ready();
}
public int[] nextArr(int n) throws IOException{
int arr[]=new int[n];
for(int i=0;i<n;i++)arr[i]=nextInt();
return arr;
}
public BigInteger BigInteger(String s) throws IOException{
BigInteger a=new BigInteger(s);
return a;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
20,
4,
18,
18,
13,
13,
8,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
17,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
43,
8
],
[
43,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
13,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
25,
38
],
[
25,
39
],
[
9,
40
],
[
40,
41
],
[
0,
42
],
[
42,
43
],
[
42,
44
]
]
| [
"import java.math.BigInteger;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tBigInteger n = new BigInteger(scanner.next());\n\t\t\tSystem.out.println(BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9))) ? \"Yes\" : \"No\");\n\t\t}\n\t}\n}",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tBigInteger n = new BigInteger(scanner.next());\n\t\t\tSystem.out.println(BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9))) ? \"Yes\" : \"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tBigInteger n = new BigInteger(scanner.next());\n\t\t\tSystem.out.println(BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9))) ? \"Yes\" : \"No\");\n\t\t}\n\t}",
"main",
"{\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tBigInteger n = new BigInteger(scanner.next());\n\t\t\tSystem.out.println(BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9))) ? \"Yes\" : \"No\");\n\t\t}\n\t}",
"try (Scanner scanner = new Scanner(System.in)) {\n\t\t\tBigInteger n = new BigInteger(scanner.next());\n\t\t\tSystem.out.println(BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9))) ? \"Yes\" : \"No\");\n\t\t}",
"{\n\t\t\tBigInteger n = new BigInteger(scanner.next());\n\t\t\tSystem.out.println(BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9))) ? \"Yes\" : \"No\");\n\t\t}",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"BigInteger n = new BigInteger(scanner.next());",
"n",
"new BigInteger(scanner.next())",
"System.out.println(BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9))) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9))) ? \"Yes\" : \"No\"",
"BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9)))",
"BigInteger.ZERO.equals",
"BigInteger.ZERO",
"BigInteger",
"BigInteger.ZERO",
"n.mod(BigInteger.valueOf(9))",
"n.mod",
"n",
"BigInteger.valueOf(9)",
"BigInteger.valueOf",
"BigInteger",
"9",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tBigInteger n = new BigInteger(scanner.next());\n\t\t\tSystem.out.println(BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9))) ? \"Yes\" : \"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tBigInteger n = new BigInteger(scanner.next());\n\t\t\tSystem.out.println(BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9))) ? \"Yes\" : \"No\");\n\t\t}\n\t}\n}",
"Main"
]
| import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
BigInteger n = new BigInteger(scanner.next());
System.out.println(BigInteger.ZERO.equals(n.mod(BigInteger.valueOf(9))) ? "Yes" : "No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
13,
8,
4,
18,
4,
18,
13,
20,
20,
17,
17,
23,
13,
12,
13,
30,
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
],
[
49,
8
],
[
49,
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
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
26,
32
],
[
25,
33
],
[
25,
34
],
[
9,
35
],
[
35,
36
],
[
49,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
37,
46
],
[
46,
47
],
[
0,
48
],
[
48,
49
],
[
48,
50
]
]
| [
"import java.math.BigInteger;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tBigInteger n = sc.nextBigInteger();\n\t\tsc.close();\n\t\tprtln(n.remainder(new BigInteger(\"9\")).equals(new BigInteger(\"0\")) ? \"Yes\" : \"No\");\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tBigInteger n = sc.nextBigInteger();\n\t\tsc.close();\n\t\tprtln(n.remainder(new BigInteger(\"9\")).equals(new BigInteger(\"0\")) ? \"Yes\" : \"No\");\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"Main",
"public static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tBigInteger n = sc.nextBigInteger();\n\t\tsc.close();\n\t\tprtln(n.remainder(new BigInteger(\"9\")).equals(new BigInteger(\"0\")) ? \"Yes\" : \"No\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tBigInteger n = sc.nextBigInteger();\n\t\tsc.close();\n\t\tprtln(n.remainder(new BigInteger(\"9\")).equals(new BigInteger(\"0\")) ? \"Yes\" : \"No\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"BigInteger n = sc.nextBigInteger();",
"n",
"sc.nextBigInteger()",
"sc.nextBigInteger",
"sc",
"sc.close()",
"sc.close",
"sc",
"prtln(n.remainder(new BigInteger(\"9\")).equals(new BigInteger(\"0\")) ? \"Yes\" : \"No\")",
"prtln",
"n.remainder(new BigInteger(\"9\")).equals(new BigInteger(\"0\")) ? \"Yes\" : \"No\"",
"n.remainder(new BigInteger(\"9\")).equals(new BigInteger(\"0\"))",
"n.remainder(new BigInteger(\"9\")).equals",
"n.remainder(new BigInteger(\"9\"))",
"n.remainder",
"n",
"new BigInteger(\"9\")",
"new BigInteger(\"0\")",
"\"Yes\"",
"\"No\"",
"final String[] args",
"args",
"public static <T> void prtln(T t) { System.out.println(t); }",
"prtln",
"{ System.out.println(t); }",
"System.out.println(t)",
"System.out.println",
"System.out",
"System",
"System.out",
"t",
"T t",
"t",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tBigInteger n = sc.nextBigInteger();\n\t\tsc.close();\n\t\tprtln(n.remainder(new BigInteger(\"9\")).equals(new BigInteger(\"0\")) ? \"Yes\" : \"No\");\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tBigInteger n = sc.nextBigInteger();\n\t\tsc.close();\n\t\tprtln(n.remainder(new BigInteger(\"9\")).equals(new BigInteger(\"0\")) ? \"Yes\" : \"No\");\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"Main"
]
| import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(final String[] args) {
Scanner sc = new Scanner(System.in);
BigInteger n = sc.nextBigInteger();
sc.close();
prtln(n.remainder(new BigInteger("9")).equals(new BigInteger("0")) ? "Yes" : "No");
}
public static <T> void prtln(T t) { System.out.println(t); }
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
29,
2,
13,
17,
29,
40,
17,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
43,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
6,
63
],
[
63,
64
],
[
87,
65
],
[
65,
66
],
[
65,
67
],
[
67,
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
],
[
67,
81
],
[
81,
82
],
[
82,
83
],
[
65,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n \n // 文字列切り出し\n int ss = 0;\n for(int i = 0; i < s.length(); i++) {\n ss += ctoi(s.charAt(i));\n }\n if(ss%9==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n static int ctoi(char c) {\n if ('0' <= c && c <= '9') {\n return (int)(c-'0');\n }\n return -1;\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 String s = sc.next();\n \n // 文字列切り出し\n int ss = 0;\n for(int i = 0; i < s.length(); i++) {\n ss += ctoi(s.charAt(i));\n }\n if(ss%9==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n static int ctoi(char c) {\n if ('0' <= c && c <= '9') {\n return (int)(c-'0');\n }\n return -1;\n }\n \n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n \n // 文字列切り出し\n int ss = 0;\n for(int i = 0; i < s.length(); i++) {\n ss += ctoi(s.charAt(i));\n }\n if(ss%9==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n \n // 文字列切り出し\n int ss = 0;\n for(int i = 0; i < s.length(); i++) {\n ss += ctoi(s.charAt(i));\n }\n if(ss%9==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"int ss = 0;",
"ss",
"0",
"for(int i = 0; i < s.length(); i++) {\n ss += ctoi(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 ss += ctoi(s.charAt(i));\n }",
"{\n ss += ctoi(s.charAt(i));\n }",
"ss += ctoi(s.charAt(i))",
"ss",
"ctoi(s.charAt(i))",
"ctoi",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"if(ss%9==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"ss%9==0",
"ss%9",
"ss",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"static int ctoi(char c) {\n if ('0' <= c && c <= '9') {\n return (int)(c-'0');\n }\n return -1;\n }",
"ctoi",
"{\n if ('0' <= c && c <= '9') {\n return (int)(c-'0');\n }\n return -1;\n }",
"if ('0' <= c && c <= '9') {\n return (int)(c-'0');\n }",
"'0' <= c && c <= '9'",
"'0' <= c",
"'0'",
"c",
"c <= '9'",
"c",
"'9'",
"{\n return (int)(c-'0');\n }",
"return (int)(c-'0');",
"(int)(c-'0')",
"c",
"'0'",
"return -1;",
"-1",
"1",
"char c",
"c",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n \n // 文字列切り出し\n int ss = 0;\n for(int i = 0; i < s.length(); i++) {\n ss += ctoi(s.charAt(i));\n }\n if(ss%9==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n static int ctoi(char c) {\n if ('0' <= c && c <= '9') {\n return (int)(c-'0');\n }\n return -1;\n }\n \n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n \n // 文字列切り出し\n int ss = 0;\n for(int i = 0; i < s.length(); i++) {\n ss += ctoi(s.charAt(i));\n }\n if(ss%9==0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n static int ctoi(char c) {\n if ('0' <= c && c <= '9') {\n return (int)(c-'0');\n }\n return -1;\n }\n \n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s = sc.next();
// 文字列切り出し
int ss = 0;
for(int i = 0; i < s.length(); i++) {
ss += ctoi(s.charAt(i));
}
if(ss%9==0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
static int ctoi(char c) {
if ('0' <= c && c <= '9') {
return (int)(c-'0');
}
return -1;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
17,
0,
13,
13,
0,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
34,
43
],
[
43,
44
],
[
43,
45
],
[
34,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n int mod = 0;\n for(int i=0;i<s.length();i++){int a = (int)(s.charAt(i))-48;\n mod+=a;\n mod%=9;\n } \n\t\tif(mod==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\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 s = sc.next();\n int mod = 0;\n for(int i=0;i<s.length();i++){int a = (int)(s.charAt(i))-48;\n mod+=a;\n mod%=9;\n } \n\t\tif(mod==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n int mod = 0;\n for(int i=0;i<s.length();i++){int a = (int)(s.charAt(i))-48;\n mod+=a;\n mod%=9;\n } \n\t\tif(mod==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n int mod = 0;\n for(int i=0;i<s.length();i++){int a = (int)(s.charAt(i))-48;\n mod+=a;\n mod%=9;\n } \n\t\tif(mod==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"int mod = 0;",
"mod",
"0",
"for(int i=0;i<s.length();i++){int a = (int)(s.charAt(i))-48;\n mod+=a;\n mod%=9;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{int a = (int)(s.charAt(i))-48;\n mod+=a;\n mod%=9;\n }",
"{int a = (int)(s.charAt(i))-48;\n mod+=a;\n mod%=9;\n }",
"int a = (int)(s.charAt(i))-48;",
"a",
"(int)(s.charAt(i))-48",
"(int)(s.charAt(i))",
"s.charAt",
"s",
"i",
"48",
"mod+=a",
"mod",
"a",
"mod%=9",
"mod",
"9",
"if(mod==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}",
"mod==0",
"mod",
"0",
"{System.out.println(\"Yes\");}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{System.out.println(\"No\");}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n int mod = 0;\n for(int i=0;i<s.length();i++){int a = (int)(s.charAt(i))-48;\n mod+=a;\n mod%=9;\n } \n\t\tif(mod==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n int mod = 0;\n for(int i=0;i<s.length();i++){int a = (int)(s.charAt(i))-48;\n mod+=a;\n mod%=9;\n } \n\t\tif(mod==0){System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s = sc.next();
int mod = 0;
for(int i=0;i<s.length();i++){int a = (int)(s.charAt(i))-48;
mod+=a;
mod%=9;
}
if(mod==0){System.out.println("Yes");}
else{System.out.println("No");}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
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,
2,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
82,
5
],
[
82,
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
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
40,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
40,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
64,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
8,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String N = scan.nextLine();\n scan.close();\n int len = N.length();\n int sum = 0;\n for(int i=0;i<len;i++){\n char digitChar = N.charAt(i);\n int digitInt = Character.getNumericValue(digitChar);\n sum = sum + digitInt;\n }\n if (sum%9==0){\n System.out.println(\"Yes\");\n return;\n }\n System.out.println(\"No\");\n return;\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 String N = scan.nextLine();\n scan.close();\n int len = N.length();\n int sum = 0;\n for(int i=0;i<len;i++){\n char digitChar = N.charAt(i);\n int digitInt = Character.getNumericValue(digitChar);\n sum = sum + digitInt;\n }\n if (sum%9==0){\n System.out.println(\"Yes\");\n return;\n }\n System.out.println(\"No\");\n return;\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String N = scan.nextLine();\n scan.close();\n int len = N.length();\n int sum = 0;\n for(int i=0;i<len;i++){\n char digitChar = N.charAt(i);\n int digitInt = Character.getNumericValue(digitChar);\n sum = sum + digitInt;\n }\n if (sum%9==0){\n System.out.println(\"Yes\");\n return;\n }\n System.out.println(\"No\");\n return;\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String N = scan.nextLine();\n scan.close();\n int len = N.length();\n int sum = 0;\n for(int i=0;i<len;i++){\n char digitChar = N.charAt(i);\n int digitInt = Character.getNumericValue(digitChar);\n sum = sum + digitInt;\n }\n if (sum%9==0){\n System.out.println(\"Yes\");\n return;\n }\n System.out.println(\"No\");\n return;\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String N = scan.nextLine();",
"N",
"scan.nextLine()",
"scan.nextLine",
"scan",
"scan.close()",
"scan.close",
"scan",
"int len = N.length();",
"len",
"N.length()",
"N.length",
"N",
"int sum = 0;",
"sum",
"0",
"for(int i=0;i<len;i++){\n char digitChar = N.charAt(i);\n int digitInt = Character.getNumericValue(digitChar);\n sum = sum + digitInt;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<len",
"i",
"len",
"i++",
"i++",
"i",
"{\n char digitChar = N.charAt(i);\n int digitInt = Character.getNumericValue(digitChar);\n sum = sum + digitInt;\n }",
"{\n char digitChar = N.charAt(i);\n int digitInt = Character.getNumericValue(digitChar);\n sum = sum + digitInt;\n }",
"char digitChar = N.charAt(i);",
"digitChar",
"N.charAt(i)",
"N.charAt",
"N",
"i",
"int digitInt = Character.getNumericValue(digitChar);",
"digitInt",
"Character.getNumericValue(digitChar)",
"Character.getNumericValue",
"Character",
"digitChar",
"sum = sum + digitInt",
"sum",
"sum + digitInt",
"sum",
"digitInt",
"if (sum%9==0){\n System.out.println(\"Yes\");\n return;\n }",
"sum%9==0",
"sum%9",
"sum",
"9",
"0",
"{\n System.out.println(\"Yes\");\n return;\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String N = scan.nextLine();\n scan.close();\n int len = N.length();\n int sum = 0;\n for(int i=0;i<len;i++){\n char digitChar = N.charAt(i);\n int digitInt = Character.getNumericValue(digitChar);\n sum = sum + digitInt;\n }\n if (sum%9==0){\n System.out.println(\"Yes\");\n return;\n }\n System.out.println(\"No\");\n return;\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String N = scan.nextLine();\n scan.close();\n int len = N.length();\n int sum = 0;\n for(int i=0;i<len;i++){\n char digitChar = N.charAt(i);\n int digitInt = Character.getNumericValue(digitChar);\n sum = sum + digitInt;\n }\n if (sum%9==0){\n System.out.println(\"Yes\");\n return;\n }\n System.out.println(\"No\");\n return;\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String N = scan.nextLine();
scan.close();
int len = N.length();
int sum = 0;
for(int i=0;i<len;i++){
char digitChar = N.charAt(i);
int digitInt = Character.getNumericValue(digitChar);
sum = sum + digitInt;
}
if (sum%9==0){
System.out.println("Yes");
return;
}
System.out.println("No");
return;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
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,
41,
13,
17,
14,
2,
2,
13,
17,
17,
0,
13,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
25,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
57,
59
],
[
8,
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;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n String N = sc.next();\n char[] n = N.toCharArray();\n int nine = 0;\n for(int i = 0; i < N.length(); i++){\n nine += Character.getNumericValue(n[i]);\n }\n String ans = \"Yes\";\n if(nine % 9 != 0 ) ans = \"No\";\n System.out.println(ans);\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 N = sc.next();\n char[] n = N.toCharArray();\n int nine = 0;\n for(int i = 0; i < N.length(); i++){\n nine += Character.getNumericValue(n[i]);\n }\n String ans = \"Yes\";\n if(nine % 9 != 0 ) ans = \"No\";\n System.out.println(ans);\n } \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n String N = sc.next();\n char[] n = N.toCharArray();\n int nine = 0;\n for(int i = 0; i < N.length(); i++){\n nine += Character.getNumericValue(n[i]);\n }\n String ans = \"Yes\";\n if(nine % 9 != 0 ) ans = \"No\";\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc= new Scanner(System.in);\n String N = sc.next();\n char[] n = N.toCharArray();\n int nine = 0;\n for(int i = 0; i < N.length(); i++){\n nine += Character.getNumericValue(n[i]);\n }\n String ans = \"Yes\";\n if(nine % 9 != 0 ) ans = \"No\";\n System.out.println(ans);\n }",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String N = sc.next();",
"N",
"sc.next()",
"sc.next",
"sc",
"char[] n = N.toCharArray();",
"n",
"N.toCharArray()",
"N.toCharArray",
"N",
"int nine = 0;",
"nine",
"0",
"for(int i = 0; i < N.length(); i++){\n nine += Character.getNumericValue(n[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N.length()",
"i",
"N.length()",
"N.length",
"N",
"i++",
"i++",
"i",
"{\n nine += Character.getNumericValue(n[i]);\n }",
"{\n nine += Character.getNumericValue(n[i]);\n }",
"nine += Character.getNumericValue(n[i])",
"nine",
"Character.getNumericValue(n[i])",
"Character.getNumericValue",
"Character",
"n[i]",
"n",
"i",
"String ans = \"Yes\";",
"ans",
"\"Yes\"",
"if(nine % 9 != 0 ) ans = \"No\";",
"nine % 9 != 0",
"nine % 9",
"nine",
"9",
"0",
"ans = \"No\"",
"ans",
"\"No\"",
"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 Scanner sc= new Scanner(System.in);\n String N = sc.next();\n char[] n = N.toCharArray();\n int nine = 0;\n for(int i = 0; i < N.length(); i++){\n nine += Character.getNumericValue(n[i]);\n }\n String ans = \"Yes\";\n if(nine % 9 != 0 ) ans = \"No\";\n System.out.println(ans);\n } \n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n String N = sc.next();\n char[] n = N.toCharArray();\n int nine = 0;\n for(int i = 0; i < N.length(); i++){\n nine += Character.getNumericValue(n[i]);\n }\n String ans = \"Yes\";\n if(nine % 9 != 0 ) ans = \"No\";\n System.out.println(ans);\n } \n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
String N = sc.next();
char[] n = N.toCharArray();
int nine = 0;
for(int i = 0; i < N.length(); i++){
nine += Character.getNumericValue(n[i]);
}
String ans = "Yes";
if(nine % 9 != 0 ) ans = "No";
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
14,
2,
2,
13,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
47,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
6,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
]
| [
"// 提出時に消す\n// package app;\n\nimport java.util.Scanner;\n\n// 提出時にMainに変更する\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n String n = sc.next();\n int check = 0;\n for (int i = 0; i < n.length(); i++) {\n check += Integer.valueOf(n.substring(i, i + 1));\n }\n\n if (check == 0 || check % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n sc.close();\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\n String n = sc.next();\n int check = 0;\n for (int i = 0; i < n.length(); i++) {\n check += Integer.valueOf(n.substring(i, i + 1));\n }\n\n if (check == 0 || check % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n String n = sc.next();\n int check = 0;\n for (int i = 0; i < n.length(); i++) {\n check += Integer.valueOf(n.substring(i, i + 1));\n }\n\n if (check == 0 || check % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n String n = sc.next();\n int check = 0;\n for (int i = 0; i < n.length(); i++) {\n check += Integer.valueOf(n.substring(i, i + 1));\n }\n\n if (check == 0 || check % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"int check = 0;",
"check",
"0",
"for (int i = 0; i < n.length(); i++) {\n check += Integer.valueOf(n.substring(i, i + 1));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n check += Integer.valueOf(n.substring(i, i + 1));\n }",
"{\n check += Integer.valueOf(n.substring(i, i + 1));\n }",
"check += Integer.valueOf(n.substring(i, i + 1))",
"check",
"Integer.valueOf(n.substring(i, i + 1))",
"Integer.valueOf",
"Integer",
"n.substring(i, i + 1)",
"n.substring",
"n",
"i",
"i + 1",
"i",
"1",
"if (check == 0 || check % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"check == 0 || check % 9 == 0",
"check == 0",
"check",
"0",
"check % 9 == 0",
"check % 9",
"check",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n String n = sc.next();\n int check = 0;\n for (int i = 0; i < n.length(); i++) {\n check += Integer.valueOf(n.substring(i, i + 1));\n }\n\n if (check == 0 || check % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n String n = sc.next();\n int check = 0;\n for (int i = 0; i < n.length(); i++) {\n check += Integer.valueOf(n.substring(i, i + 1));\n }\n\n if (check == 0 || check % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n sc.close();\n }\n}",
"Main"
]
| // 提出時に消す
// package app;
import java.util.Scanner;
// 提出時にMainに変更する
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
String n = sc.next();
int check = 0;
for (int i = 0; i < n.length(); i++) {
check += Integer.valueOf(n.substring(i, i + 1));
}
if (check == 0 || check % 9 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
47,
60
],
[
60,
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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n int n = 0;\n for (int i = 0; i < str.length(); i++) {\n n += Integer.parseInt(str.substring(i, i + 1));\n }\n if (n % 9 == 0) {\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\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 = sc.next();\n int n = 0;\n for (int i = 0; i < str.length(); i++) {\n n += Integer.parseInt(str.substring(i, i + 1));\n }\n if (n % 9 == 0) {\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n int n = 0;\n for (int i = 0; i < str.length(); i++) {\n n += Integer.parseInt(str.substring(i, i + 1));\n }\n if (n % 9 == 0) {\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n int n = 0;\n for (int i = 0; i < str.length(); i++) {\n n += Integer.parseInt(str.substring(i, i + 1));\n }\n if (n % 9 == 0) {\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"int n = 0;",
"n",
"0",
"for (int i = 0; i < str.length(); i++) {\n n += Integer.parseInt(str.substring(i, i + 1));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n n += Integer.parseInt(str.substring(i, i + 1));\n }",
"{\n n += Integer.parseInt(str.substring(i, i + 1));\n }",
"n += Integer.parseInt(str.substring(i, i + 1))",
"n",
"Integer.parseInt(str.substring(i, i + 1))",
"Integer.parseInt",
"Integer",
"str.substring(i, i + 1)",
"str.substring",
"str",
"i",
"i + 1",
"i",
"1",
"if (n % 9 == 0) {\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }",
"n % 9 == 0",
"n % 9",
"n",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n int n = 0;\n for (int i = 0; i < str.length(); i++) {\n n += Integer.parseInt(str.substring(i, i + 1));\n }\n if (n % 9 == 0) {\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n int n = 0;\n for (int i = 0; i < str.length(); i++) {\n n += Integer.parseInt(str.substring(i, i + 1));\n }\n if (n % 9 == 0) {\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\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 = sc.next();
int n = 0;
for (int i = 0; i < str.length(); i++) {
n += Integer.parseInt(str.substring(i, i + 1));
}
if (n % 9 == 0) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
2,
18,
13,
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,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
182,
23
],
[
182,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
26,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
43,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
26,
66
],
[
66,
67
],
[
66,
68
],
[
26,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
69,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
26,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
90,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
24,
110
],
[
110,
111
],
[
182,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
123,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
128,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
122,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
112,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
150,
151
],
[
112,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
159,
167
],
[
167,
168
],
[
168,
169
],
[
159,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
154,
177
],
[
177,
178
],
[
152,
179
],
[
179,
180
],
[
0,
181
],
[
181,
182
],
[
181,
183
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.StringTokenizer;\nimport java.util.Arrays;\nimport java.lang.Math;\n\npublic class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String x = fs.next();\n char[] xx = x.toCharArray();\n\n ArrayList<Integer> summer = new ArrayList<>();\n\n for (int i = 0; i<xx.length;i++) {\n summer.add((int) xx[i]-48);\n }\n\n int sum =0;\n for (int i = 0; i<summer.size(); i++) {\n sum+=summer.get(i);\n }\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n\n\n\n }\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n }\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",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String x = fs.next();\n char[] xx = x.toCharArray();\n\n ArrayList<Integer> summer = new ArrayList<>();\n\n for (int i = 0; i<xx.length;i++) {\n summer.add((int) xx[i]-48);\n }\n\n int sum =0;\n for (int i = 0; i<summer.size(); i++) {\n sum+=summer.get(i);\n }\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n\n\n\n }\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String x = fs.next();\n char[] xx = x.toCharArray();\n\n ArrayList<Integer> summer = new ArrayList<>();\n\n for (int i = 0; i<xx.length;i++) {\n summer.add((int) xx[i]-48);\n }\n\n int sum =0;\n for (int i = 0; i<summer.size(); i++) {\n sum+=summer.get(i);\n }\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n\n\n\n }",
"main",
"{\n FastScanner fs = new FastScanner();\n String x = fs.next();\n char[] xx = x.toCharArray();\n\n ArrayList<Integer> summer = new ArrayList<>();\n\n for (int i = 0; i<xx.length;i++) {\n summer.add((int) xx[i]-48);\n }\n\n int sum =0;\n for (int i = 0; i<summer.size(); i++) {\n sum+=summer.get(i);\n }\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n\n\n\n }",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"String x = fs.next();",
"x",
"fs.next()",
"fs.next",
"fs",
"char[] xx = x.toCharArray();",
"xx",
"x.toCharArray()",
"x.toCharArray",
"x",
"ArrayList<Integer> summer = new ArrayList<>();",
"summer",
"new ArrayList<>()",
"for (int i = 0; i<xx.length;i++) {\n summer.add((int) xx[i]-48);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<xx.length",
"i",
"xx.length",
"xx",
"xx.length",
"i++",
"i++",
"i",
"{\n summer.add((int) xx[i]-48);\n }",
"{\n summer.add((int) xx[i]-48);\n }",
"summer.add((int) xx[i]-48)",
"summer.add",
"summer",
"(int) xx[i]-48",
"(int) xx[i]",
"xx",
"i",
"48",
"int sum =0;",
"sum",
"0",
"for (int i = 0; i<summer.size(); i++) {\n sum+=summer.get(i);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<summer.size()",
"i",
"summer.size()",
"summer.size",
"summer",
"i++",
"i++",
"i",
"{\n sum+=summer.get(i);\n }",
"{\n sum+=summer.get(i);\n }",
"sum+=summer.get(i)",
"sum",
"summer.get(i)",
"summer.get",
"summer",
"i",
"if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n }",
"FastScanner",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"try {\n st=new StringTokenizer(br.readLine());\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 st=new StringTokenizer(br.readLine());\n }",
"st=new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }",
"readArray",
"{\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }",
"int[] a=new int[n];",
"a",
"new int[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String x = fs.next();\n char[] xx = x.toCharArray();\n\n ArrayList<Integer> summer = new ArrayList<>();\n\n for (int i = 0; i<xx.length;i++) {\n summer.add((int) xx[i]-48);\n }\n\n int sum =0;\n for (int i = 0; i<summer.size(); i++) {\n sum+=summer.get(i);\n }\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n\n\n\n }\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String x = fs.next();\n char[] xx = x.toCharArray();\n\n ArrayList<Integer> summer = new ArrayList<>();\n\n for (int i = 0; i<xx.length;i++) {\n summer.add((int) xx[i]-48);\n }\n\n int sum =0;\n for (int i = 0; i<summer.size(); i++) {\n sum+=summer.get(i);\n }\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n\n\n\n }\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n }\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;
import java.util.Arrays;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
FastScanner fs = new FastScanner();
String x = fs.next();
char[] xx = x.toCharArray();
ArrayList<Integer> summer = new ArrayList<>();
for (int i = 0; i<xx.length;i++) {
summer.add((int) xx[i]-48);
}
int sum =0;
for (int i = 0; i<summer.size(); i++) {
sum+=summer.get(i);
}
if (sum % 9 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
static class FastScanner {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer("");
public String next() {
while (!st.hasMoreElements())
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a=new int[n];
for (int i=0; i<n; i++) a[i]=nextInt();
return a;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
4,
18,
13,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
8,
2,
13,
17,
17,
17,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
34,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"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 s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0 ; i < s.length() ; i++) {\n\t\t\tans += Integer.valueOf(s.charAt(i) + \"\");\n if(ans >= 9) {\n\t\t\t\tans %= 9;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans == 0 ? \"Yes\" : \"No\");\n\n\t}\n}\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 s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0 ; i < s.length() ; i++) {\n\t\t\tans += Integer.valueOf(s.charAt(i) + \"\");\n if(ans >= 9) {\n\t\t\t\tans %= 9;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans == 0 ? \"Yes\" : \"No\");\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0 ; i < s.length() ; i++) {\n\t\t\tans += Integer.valueOf(s.charAt(i) + \"\");\n if(ans >= 9) {\n\t\t\t\tans %= 9;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans == 0 ? \"Yes\" : \"No\");\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0 ; i < s.length() ; i++) {\n\t\t\tans += Integer.valueOf(s.charAt(i) + \"\");\n if(ans >= 9) {\n\t\t\t\tans %= 9;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans == 0 ? \"Yes\" : \"No\");\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"int ans = 0;",
"ans",
"0",
"for(int i = 0 ; i < s.length() ; i++) {\n\t\t\tans += Integer.valueOf(s.charAt(i) + \"\");\n if(ans >= 9) {\n\t\t\t\tans %= 9;\n\t\t\t}\n\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\tans += Integer.valueOf(s.charAt(i) + \"\");\n if(ans >= 9) {\n\t\t\t\tans %= 9;\n\t\t\t}\n\t\t}",
"{\n\t\t\tans += Integer.valueOf(s.charAt(i) + \"\");\n if(ans >= 9) {\n\t\t\t\tans %= 9;\n\t\t\t}\n\t\t}",
"ans += Integer.valueOf(s.charAt(i) + \"\")",
"ans",
"Integer.valueOf(s.charAt(i) + \"\")",
"Integer.valueOf",
"Integer",
"s.charAt(i) + \"\"",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"\"\"",
"if(ans >= 9) {\n\t\t\t\tans %= 9;\n\t\t\t}",
"ans >= 9",
"ans",
"9",
"{\n\t\t\t\tans %= 9;\n\t\t\t}",
"ans %= 9",
"ans",
"9",
"sc.close()",
"sc.close",
"sc",
"System.out.println(ans == 0 ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"ans == 0 ? \"Yes\" : \"No\"",
"ans == 0",
"ans",
"0",
"\"Yes\"",
"\"No\"",
"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 s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0 ; i < s.length() ; i++) {\n\t\t\tans += Integer.valueOf(s.charAt(i) + \"\");\n if(ans >= 9) {\n\t\t\t\tans %= 9;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans == 0 ? \"Yes\" : \"No\");\n\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 s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0 ; i < s.length() ; i++) {\n\t\t\tans += Integer.valueOf(s.charAt(i) + \"\");\n if(ans >= 9) {\n\t\t\t\tans %= 9;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t\tSystem.out.println(ans == 0 ? \"Yes\" : \"No\");\n\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
int ans = 0;
for(int i = 0 ; i < s.length() ; i++) {
ans += Integer.valueOf(s.charAt(i) + "");
if(ans >= 9) {
ans %= 9;
}
}
sc.close();
System.out.println(ans == 0 ? "Yes" : "No");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
13,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
110,
38
],
[
110,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
39,
44
],
[
44,
45
],
[
110,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
50,
59
],
[
59,
60
],
[
59,
61
],
[
50,
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
],
[
76,
86
],
[
86,
87
],
[
86,
88
],
[
50,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
89,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
]
| [
"import java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Comparator;\nimport java.util.Deque;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Queue;\nimport java.util.Scanner;\nimport java.util.Set;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\texecute20_3();\n\t}\n\t\n\tprivate static void execute20_3() {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\t\n\t\t\tint sum =0;\n\t\t\tfor(int i=0;i<n.length();i++) {\n\t\t\t\tint num = Character.getNumericValue(n.charAt(i));\n\t\t\t\tsum+=num;\n\t\t\t}\n\t\t\tif(sum%9==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.ArrayDeque;",
"ArrayDeque",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.Deque;",
"Deque",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Queue;",
"Queue",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\texecute20_3();\n\t}\n\t\n\tprivate static void execute20_3() {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\t\n\t\t\tint sum =0;\n\t\t\tfor(int i=0;i<n.length();i++) {\n\t\t\t\tint num = Character.getNumericValue(n.charAt(i));\n\t\t\t\tsum+=num;\n\t\t\t}\n\t\t\tif(sum%9==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\texecute20_3();\n\t}",
"main",
"{\n\t\texecute20_3();\n\t}",
"execute20_3()",
"execute20_3",
"String[] args",
"args",
"private static void execute20_3() {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\t\n\t\t\tint sum =0;\n\t\t\tfor(int i=0;i<n.length();i++) {\n\t\t\t\tint num = Character.getNumericValue(n.charAt(i));\n\t\t\t\tsum+=num;\n\t\t\t}\n\t\t\tif(sum%9==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t}",
"execute20_3",
"{\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\t\n\t\t\tint sum =0;\n\t\t\tfor(int i=0;i<n.length();i++) {\n\t\t\t\tint num = Character.getNumericValue(n.charAt(i));\n\t\t\t\tsum+=num;\n\t\t\t}\n\t\t\tif(sum%9==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t}",
"try (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\t\n\t\t\tint sum =0;\n\t\t\tfor(int i=0;i<n.length();i++) {\n\t\t\t\tint num = Character.getNumericValue(n.charAt(i));\n\t\t\t\tsum+=num;\n\t\t\t}\n\t\t\tif(sum%9==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tString n = sc.next();\n\t\t\t\n\t\t\tint sum =0;\n\t\t\tfor(int i=0;i<n.length();i++) {\n\t\t\t\tint num = Character.getNumericValue(n.charAt(i));\n\t\t\t\tsum+=num;\n\t\t\t}\n\t\t\tif(sum%9==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"int sum =0;",
"sum",
"0",
"for(int i=0;i<n.length();i++) {\n\t\t\t\tint num = Character.getNumericValue(n.charAt(i));\n\t\t\t\tsum+=num;\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tint num = Character.getNumericValue(n.charAt(i));\n\t\t\t\tsum+=num;\n\t\t\t}",
"{\n\t\t\t\tint num = Character.getNumericValue(n.charAt(i));\n\t\t\t\tsum+=num;\n\t\t\t}",
"int num = Character.getNumericValue(n.charAt(i));",
"num",
"Character.getNumericValue(n.charAt(i))",
"Character.getNumericValue",
"Character",
"n.charAt(i)",
"n.charAt",
"n",
"i",
"sum+=num",
"sum",
"num",
"if(sum%9==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}",
"sum%9==0",
"sum%9",
"sum",
"9",
"0",
"{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\texecute20_3();\n\t}\n\t\n\tprivate static void execute20_3() {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\t\n\t\t\tint sum =0;\n\t\t\tfor(int i=0;i<n.length();i++) {\n\t\t\t\tint num = Character.getNumericValue(n.charAt(i));\n\t\t\t\tsum+=num;\n\t\t\t}\n\t\t\tif(sum%9==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\texecute20_3();\n\t}\n\t\n\tprivate static void execute20_3() {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\t\n\t\t\tint sum =0;\n\t\t\tfor(int i=0;i<n.length();i++) {\n\t\t\t\tint num = Character.getNumericValue(n.charAt(i));\n\t\t\t\tsum+=num;\n\t\t\t}\n\t\t\tif(sum%9==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Deque;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
execute20_3();
}
private static void execute20_3() {
try (Scanner sc = new Scanner(System.in)) {
String n = sc.next();
int sum =0;
for(int i=0;i<n.length();i++) {
int num = Character.getNumericValue(n.charAt(i));
sum+=num;
}
if(sum%9==0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
2,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
99,
8
],
[
99,
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
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
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
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
11,
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
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
78,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
9,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
]
| [
"import java.util.*;\nimport java.lang.*;\n\npublic class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString n=sc.next();\n\t\tint a[]=new int [n.length()+1];\n\t\tint ans=0;\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\ta[i]=n.charAt(i)-'0';\n\t\t}\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\tans=ans+a[i];\n\t\t}\n\t\tif(ans%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString n=sc.next();\n\t\tint a[]=new int [n.length()+1];\n\t\tint ans=0;\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\ta[i]=n.charAt(i)-'0';\n\t\t}\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\tans=ans+a[i];\n\t\t}\n\t\tif(ans%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString n=sc.next();\n\t\tint a[]=new int [n.length()+1];\n\t\tint ans=0;\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\ta[i]=n.charAt(i)-'0';\n\t\t}\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\tans=ans+a[i];\n\t\t}\n\t\tif(ans%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString n=sc.next();\n\t\tint a[]=new int [n.length()+1];\n\t\tint ans=0;\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\ta[i]=n.charAt(i)-'0';\n\t\t}\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\tans=ans+a[i];\n\t\t}\n\t\tif(ans%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n=sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"int a[]=new int [n.length()+1];",
"a",
"new int [n.length()+1]",
"n.length()+1",
"n.length()",
"n.length",
"n",
"1",
"int ans=0;",
"ans",
"0",
"for(int i=0;i<n.length();i++)\n\t\t{\n\t\t\ta[i]=n.charAt(i)-'0';\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i]=n.charAt(i)-'0';\n\t\t}",
"{\n\t\t\ta[i]=n.charAt(i)-'0';\n\t\t}",
"a[i]=n.charAt(i)-'0'",
"a[i]",
"a",
"i",
"n.charAt(i)-'0'",
"n.charAt(i)",
"n.charAt",
"n",
"i",
"'0'",
"for(int i=0;i<n.length();i++)\n\t\t{\n\t\t\tans=ans+a[i];\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tans=ans+a[i];\n\t\t}",
"{\n\t\t\tans=ans+a[i];\n\t\t}",
"ans=ans+a[i]",
"ans",
"ans+a[i]",
"ans",
"a[i]",
"a",
"i",
"if(ans%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");",
"ans%9==0",
"ans%9",
"ans",
"9",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args",
"public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString n=sc.next();\n\t\tint a[]=new int [n.length()+1];\n\t\tint ans=0;\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\ta[i]=n.charAt(i)-'0';\n\t\t}\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\tans=ans+a[i];\n\t\t}\n\t\tif(ans%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString n=sc.next();\n\t\tint a[]=new int [n.length()+1];\n\t\tint ans=0;\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\ta[i]=n.charAt(i)-'0';\n\t\t}\n\t\tfor(int i=0;i<n.length();i++)\n\t\t{\n\t\t\tans=ans+a[i];\n\t\t}\n\t\tif(ans%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main"
]
| import java.util.*;
import java.lang.*;
public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
String n=sc.next();
int a[]=new int [n.length()+1];
int ans=0;
for(int i=0;i<n.length();i++)
{
a[i]=n.charAt(i)-'0';
}
for(int i=0;i<n.length();i++)
{
ans=ans+a[i];
}
if(ans%9==0)
System.out.println("Yes");
else
System.out.println("No");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
39,
17,
40,
17,
17,
17,
41,
13,
39,
17,
17,
40,
17,
17,
12,
13,
30,
41,
13,
4,
18,
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,
4,
18,
13,
8,
2,
2,
13,
17,
17,
17,
17,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
40,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
259,
8
],
[
259,
9
],
[
9,
10
],
[
9,
11
],
[
259,
12
],
[
12,
13
],
[
12,
14
],
[
259,
15
],
[
15,
16
],
[
15,
17
],
[
259,
18
],
[
18,
19
],
[
18,
20
],
[
259,
21
],
[
21,
22
],
[
259,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
25,
29
],
[
25,
30
],
[
259,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
36,
37
],
[
33,
38
],
[
259,
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
],
[
69,
70
],
[
68,
71
],
[
67,
72
],
[
41,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
76,
83
],
[
41,
84
],
[
84,
85
],
[
85,
86
],
[
39,
87
],
[
87,
88
],
[
259,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
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
],
[
113,
114
],
[
112,
115
],
[
111,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
110,
120
],
[
120,
121
],
[
91,
122
],
[
122,
123
],
[
89,
124
],
[
124,
125
],
[
89,
126
],
[
126,
127
],
[
259,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
128,
137
],
[
137,
138
],
[
128,
139
],
[
139,
140
],
[
128,
141
],
[
141,
142
],
[
259,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
143,
147
],
[
147,
148
],
[
143,
149
],
[
149,
150
],
[
143,
151
],
[
151,
152
],
[
143,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
155,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
153,
166
],
[
166,
167
],
[
153,
168
],
[
168,
169
],
[
259,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
170,
174
],
[
174,
175
],
[
170,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
170,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
185,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
195,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
184,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
170,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
214,
217
],
[
217,
218
],
[
170,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
223,
226
],
[
226,
227
],
[
170,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
232,
235
],
[
235,
236
],
[
170,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
243,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
254,
255
],
[
239,
256
],
[
256,
257
],
[
0,
258
],
[
258,
259
],
[
258,
260
]
]
| [
"import java.util.*;\n\n\nimport java.io.*;\n/**\n * MLASERP\n */\npublic class Main {\n\n \n static MyScanner in = new MyScanner();\n static int mod = 1000000007;\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static int []dr = {1,-1,0,0};\n static int [] dc = {0,0,-1,1};\npublic static void main(String[] args) {\n String N = in.nextLine();\n long val =0;\n for(int i=0;i<N.length();i++){\n val+=(N.charAt(i)-'0');\n }\n out.println(val%9==0?\"Yes\":\"No\");\n out.flush();\n}\nprivate static int compare(String substring, String t) {\n int val = 0;\n for(int i=0;i<t.length();i++){\n if(t.charAt(i)!=substring.charAt(i))\n val++;\n }\n return val;\n}\nstatic int rcToxy(int r, int c,int W){\n return r*W+c;\n}\nstatic class Node{\n int r, c,prev,change;\n Node(int r, int c){\n this.r =r ;\n this.c = c;\n }\n}\npublic static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n \n static MyScanner in = new MyScanner();\n static int mod = 1000000007;\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static int []dr = {1,-1,0,0};\n static int [] dc = {0,0,-1,1};\npublic static void main(String[] args) {\n String N = in.nextLine();\n long val =0;\n for(int i=0;i<N.length();i++){\n val+=(N.charAt(i)-'0');\n }\n out.println(val%9==0?\"Yes\":\"No\");\n out.flush();\n}\nprivate static int compare(String substring, String t) {\n int val = 0;\n for(int i=0;i<t.length();i++){\n if(t.charAt(i)!=substring.charAt(i))\n val++;\n }\n return val;\n}\nstatic int rcToxy(int r, int c,int W){\n return r*W+c;\n}\nstatic class Node{\n int r, c,prev,change;\n Node(int r, int c){\n this.r =r ;\n this.c = c;\n }\n}\npublic static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n}",
"Main",
"static MyScanner in = new MyScanner();",
"in",
"new MyScanner()",
"static int mod = 1000000007;",
"mod",
"1000000007",
"static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"static StringTokenizer st;",
"st",
"static int []dr = {1,-1,0,0};",
"dr",
"{1,-1,0,0}",
"1",
"-1",
"1",
"0",
"0",
"static int [] dc = {0,0,-1,1};",
"dc",
"{0,0,-1,1}",
"0",
"0",
"-1",
"1",
"1",
"public static void main(String[] args) {\n String N = in.nextLine();\n long val =0;\n for(int i=0;i<N.length();i++){\n val+=(N.charAt(i)-'0');\n }\n out.println(val%9==0?\"Yes\":\"No\");\n out.flush();\n}",
"main",
"{\n String N = in.nextLine();\n long val =0;\n for(int i=0;i<N.length();i++){\n val+=(N.charAt(i)-'0');\n }\n out.println(val%9==0?\"Yes\":\"No\");\n out.flush();\n}",
"String N = in.nextLine();",
"N",
"in.nextLine()",
"in.nextLine",
"in",
"long val =0;",
"val",
"0",
"for(int i=0;i<N.length();i++){\n val+=(N.charAt(i)-'0');\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N.length()",
"i",
"N.length()",
"N.length",
"N",
"i++",
"i++",
"i",
"{\n val+=(N.charAt(i)-'0');\n }",
"{\n val+=(N.charAt(i)-'0');\n }",
"val+=(N.charAt(i)-'0')",
"val",
"(N.charAt(i)-'0')",
"N.charAt(i)",
"N.charAt",
"N",
"i",
"'0'",
"out.println(val%9==0?\"Yes\":\"No\")",
"out.println",
"out",
"val%9==0?\"Yes\":\"No\"",
"val%9==0",
"val%9",
"val",
"9",
"0",
"\"Yes\"",
"\"No\"",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"private static int compare(String substring, String t) {\n int val = 0;\n for(int i=0;i<t.length();i++){\n if(t.charAt(i)!=substring.charAt(i))\n val++;\n }\n return val;\n}",
"compare",
"{\n int val = 0;\n for(int i=0;i<t.length();i++){\n if(t.charAt(i)!=substring.charAt(i))\n val++;\n }\n return val;\n}",
"int val = 0;",
"val",
"0",
"for(int i=0;i<t.length();i++){\n if(t.charAt(i)!=substring.charAt(i))\n val++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<t.length()",
"i",
"t.length()",
"t.length",
"t",
"i++",
"i++",
"i",
"{\n if(t.charAt(i)!=substring.charAt(i))\n val++;\n }",
"{\n if(t.charAt(i)!=substring.charAt(i))\n val++;\n }",
"if(t.charAt(i)!=substring.charAt(i))\n val++;",
"t.charAt(i)!=substring.charAt(i)",
"t.charAt(i)",
"t.charAt",
"t",
"i",
"substring.charAt(i)",
"substring.charAt",
"substring",
"i",
"val++",
"val",
"return val;",
"val",
"String substring",
"substring",
"String t",
"t",
"static int rcToxy(int r, int c,int W){\n return r*W+c;\n}",
"rcToxy",
"{\n return r*W+c;\n}",
"return r*W+c;",
"r*W+c",
"r*W",
"r",
"W",
"c",
"int r",
"r",
"int c",
"c",
"int W",
"W",
"static class Node{\n int r, c,prev,change;\n Node(int r, int c){\n this.r =r ;\n this.c = c;\n }\n}",
"Node",
"int r",
"r",
"c",
"c",
"prev",
"prev",
"change;",
"change",
"Node(int r, int c){\n this.r =r ;\n this.c = c;\n }",
"Node",
"{\n this.r =r ;\n this.c = c;\n }",
"this.r =r",
"this.r",
"this",
"this.r",
"r",
"this.c = c",
"this.c",
"this",
"this.c",
"c",
"int r",
"r",
"int c",
"c",
"public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }",
"MyScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"MyScanner",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\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 st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }",
"nextLine",
"{\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"IOException e",
"{\n\t e.printStackTrace();\n\t }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t str = br.readLine();\n\t }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\n \n static MyScanner in = new MyScanner();\n static int mod = 1000000007;\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static int []dr = {1,-1,0,0};\n static int [] dc = {0,0,-1,1};\npublic static void main(String[] args) {\n String N = in.nextLine();\n long val =0;\n for(int i=0;i<N.length();i++){\n val+=(N.charAt(i)-'0');\n }\n out.println(val%9==0?\"Yes\":\"No\");\n out.flush();\n}\nprivate static int compare(String substring, String t) {\n int val = 0;\n for(int i=0;i<t.length();i++){\n if(t.charAt(i)!=substring.charAt(i))\n val++;\n }\n return val;\n}\nstatic int rcToxy(int r, int c,int W){\n return r*W+c;\n}\nstatic class Node{\n int r, c,prev,change;\n Node(int r, int c){\n this.r =r ;\n this.c = c;\n }\n}\npublic static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n}",
"public class Main {\n\n \n static MyScanner in = new MyScanner();\n static int mod = 1000000007;\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static int []dr = {1,-1,0,0};\n static int [] dc = {0,0,-1,1};\npublic static void main(String[] args) {\n String N = in.nextLine();\n long val =0;\n for(int i=0;i<N.length();i++){\n val+=(N.charAt(i)-'0');\n }\n out.println(val%9==0?\"Yes\":\"No\");\n out.flush();\n}\nprivate static int compare(String substring, String t) {\n int val = 0;\n for(int i=0;i<t.length();i++){\n if(t.charAt(i)!=substring.charAt(i))\n val++;\n }\n return val;\n}\nstatic int rcToxy(int r, int c,int W){\n return r*W+c;\n}\nstatic class Node{\n int r, c,prev,change;\n Node(int r, int c){\n this.r =r ;\n this.c = c;\n }\n}\npublic static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
/**
* MLASERP
*/
public class Main {
static MyScanner in = new MyScanner();
static int mod = 1000000007;
static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static StringTokenizer st;
static int []dr = {1,-1,0,0};
static int [] dc = {0,0,-1,1};
public static void main(String[] args) {
String N = in.nextLine();
long val =0;
for(int i=0;i<N.length();i++){
val+=(N.charAt(i)-'0');
}
out.println(val%9==0?"Yes":"No");
out.flush();
}
private static int compare(String substring, String t) {
int val = 0;
for(int i=0;i<t.length();i++){
if(t.charAt(i)!=substring.charAt(i))
val++;
}
return val;
}
static int rcToxy(int r, int c,int W){
return r*W+c;
}
static class Node{
int r, c,prev,change;
Node(int r, int c){
this.r =r ;
this.c = c;
}
}
public static class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine(){
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
8,
2,
2,
13,
17,
17,
17,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
13,
13,
4,
13,
13,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
4,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
13,
13,
4,
13,
13,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
2,
4,
18,
13,
13,
4,
18,
13,
13,
29,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
29,
17,
14,
2,
2,
13,
17,
17,
29,
17,
14,
2,
13,
17,
29,
17,
14,
2,
2,
13,
17,
17,
29,
17,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
14,
2,
2,
13,
2,
13,
17,
17,
29,
17,
29,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
274,
5
],
[
274,
6
],
[
6,
7
],
[
6,
8
],
[
274,
9
],
[
9,
10
],
[
9,
11
],
[
274,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
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
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
14,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
54,
61
],
[
12,
62
],
[
62,
63
],
[
274,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
64,
73
],
[
73,
74
],
[
64,
75
],
[
75,
76
],
[
274,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
84,
87
],
[
81,
88
],
[
77,
89
],
[
89,
90
],
[
77,
91
],
[
91,
92
],
[
77,
93
],
[
93,
94
],
[
274,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
102,
104
],
[
102,
105
],
[
99,
106
],
[
106,
107
],
[
106,
108
],
[
106,
109
],
[
95,
110
],
[
110,
111
],
[
95,
112
],
[
112,
113
],
[
95,
114
],
[
114,
115
],
[
95,
116
],
[
116,
117
],
[
274,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
122,
126
],
[
118,
127
],
[
127,
128
],
[
118,
129
],
[
129,
130
],
[
274,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
135,
139
],
[
139,
140
],
[
139,
141
],
[
139,
142
],
[
131,
143
],
[
143,
144
],
[
131,
145
],
[
145,
146
],
[
131,
147
],
[
147,
148
],
[
274,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
156,
157
],
[
156,
158
],
[
156,
159
],
[
153,
160
],
[
160,
161
],
[
160,
162
],
[
160,
163
],
[
149,
164
],
[
164,
165
],
[
149,
166
],
[
166,
167
],
[
149,
168
],
[
168,
169
],
[
149,
170
],
[
170,
171
],
[
274,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
177,
182
],
[
182,
183
],
[
183,
184
],
[
182,
185
],
[
174,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
172,
190
],
[
190,
191
],
[
172,
192
],
[
192,
193
],
[
274,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
196,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
196,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
209,
215
],
[
215,
216
],
[
196,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
196,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
224,
228
],
[
223,
229
],
[
229,
230
],
[
196,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
196,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
237,
242
],
[
242,
243
],
[
242,
244
],
[
237,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
237,
249
],
[
250,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
251,
257
],
[
257,
258
],
[
250,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
263,
265
],
[
260,
266
],
[
259,
267
],
[
267,
268
],
[
196,
269
],
[
269,
270
],
[
194,
271
],
[
271,
272
],
[
0,
273
],
[
273,
274
],
[
273,
275
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static final int mod = 1000000007;\n\n public static void main(String[] args) {\n\n String s = sc.next();\n char[] c = s.toCharArray();\n \n long ans = 0;\n \n for(int i =0; i<s.length(); i++)\n ans += c[i]-'0';\n \n System.out.println(ans%9==0?\"Yes\":\"No\");\n \n \n\n\n\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static int max(int a, int b)\n {\n return Math.max(a,b);\n }\n static int max(int a, int b, int c)\n {\n return Math.max(max(a,b), c);\n }\n static int max(int a, int b, int c, int d)\n {\n return Math.max(max(a,b), max(c,d));\n }\n\n static int min(int a, int b)\n {\n return Math.min(a, b);\n }\n\n static int min(int a, int b, int c )\n {\n return Math.min(a, min(b,c));\n }\n\n static int min(int a, int b, int c, int d )\n {\n return Math.min(min(a,d), min(b,c));\n }\n\n static boolean isPower(int a, int b)\n {\n double temp = Math.log(a)/Math.log(b);\n return temp == (int) temp;\n }\n static boolean isPrime(int n)\n {\n if(n==1) return false;\n if(n==2) return true;\n if(n%2==0) return false;\n\n if(n<9)return true;\n if(n%3==0) return false;\n\n int r = (int)Math.sqrt(n);\n\n for(int i = 5; i<=r; i +=6)\n {\n if(n%i==0) return false;\n if(n%(i+2)==0) return false;\n }\n return true;\n\n\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static final int mod = 1000000007;\n\n public static void main(String[] args) {\n\n String s = sc.next();\n char[] c = s.toCharArray();\n \n long ans = 0;\n \n for(int i =0; i<s.length(); i++)\n ans += c[i]-'0';\n \n System.out.println(ans%9==0?\"Yes\":\"No\");\n \n \n\n\n\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static int max(int a, int b)\n {\n return Math.max(a,b);\n }\n static int max(int a, int b, int c)\n {\n return Math.max(max(a,b), c);\n }\n static int max(int a, int b, int c, int d)\n {\n return Math.max(max(a,b), max(c,d));\n }\n\n static int min(int a, int b)\n {\n return Math.min(a, b);\n }\n\n static int min(int a, int b, int c )\n {\n return Math.min(a, min(b,c));\n }\n\n static int min(int a, int b, int c, int d )\n {\n return Math.min(min(a,d), min(b,c));\n }\n\n static boolean isPower(int a, int b)\n {\n double temp = Math.log(a)/Math.log(b);\n return temp == (int) temp;\n }\n static boolean isPrime(int n)\n {\n if(n==1) return false;\n if(n==2) return true;\n if(n%2==0) return false;\n\n if(n<9)return true;\n if(n%3==0) return false;\n\n int r = (int)Math.sqrt(n);\n\n for(int i = 5; i<=r; i +=6)\n {\n if(n%i==0) return false;\n if(n%(i+2)==0) return false;\n }\n return true;\n\n\n\n }\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"static final int mod = 1000000007;",
"mod",
"1000000007",
"public static void main(String[] args) {\n\n String s = sc.next();\n char[] c = s.toCharArray();\n \n long ans = 0;\n \n for(int i =0; i<s.length(); i++)\n ans += c[i]-'0';\n \n System.out.println(ans%9==0?\"Yes\":\"No\");\n \n \n\n\n\n }",
"main",
"{\n\n String s = sc.next();\n char[] c = s.toCharArray();\n \n long ans = 0;\n \n for(int i =0; i<s.length(); i++)\n ans += c[i]-'0';\n \n System.out.println(ans%9==0?\"Yes\":\"No\");\n \n \n\n\n\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"char[] c = s.toCharArray();",
"c",
"s.toCharArray()",
"s.toCharArray",
"s",
"long ans = 0;",
"ans",
"0",
"for(int i =0; i<s.length(); i++)\n ans += c[i]-'0';",
"int i =0;",
"int i =0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"ans += c[i]-'0';",
"ans += c[i]-'0'",
"ans",
"c[i]-'0'",
"c[i]",
"c",
"i",
"'0'",
"System.out.println(ans%9==0?\"Yes\":\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"ans%9==0?\"Yes\":\"No\"",
"ans%9==0",
"ans%9",
"ans",
"9",
"0",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"static int max(int a, int b)\n {\n return Math.max(a,b);\n }",
"max",
"{\n return Math.max(a,b);\n }",
"return Math.max(a,b);",
"Math.max(a,b)",
"Math.max",
"Math",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static int max(int a, int b, int c)\n {\n return Math.max(max(a,b), c);\n }",
"max",
"{\n return Math.max(max(a,b), c);\n }",
"return Math.max(max(a,b), c);",
"Math.max(max(a,b), c)",
"Math.max",
"Math",
"max(a,b)",
"max",
"a",
"b",
"c",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"static int max(int a, int b, int c, int d)\n {\n return Math.max(max(a,b), max(c,d));\n }",
"max",
"{\n return Math.max(max(a,b), max(c,d));\n }",
"return Math.max(max(a,b), max(c,d));",
"Math.max(max(a,b), max(c,d))",
"Math.max",
"Math",
"max(a,b)",
"max",
"a",
"b",
"max(c,d)",
"max",
"c",
"d",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"int d",
"d",
"static int min(int a, int b)\n {\n return Math.min(a, b);\n }",
"min",
"{\n return Math.min(a, b);\n }",
"return Math.min(a, b);",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static int min(int a, int b, int c )\n {\n return Math.min(a, min(b,c));\n }",
"min",
"{\n return Math.min(a, min(b,c));\n }",
"return Math.min(a, min(b,c));",
"Math.min(a, min(b,c))",
"Math.min",
"Math",
"a",
"min(b,c)",
"min",
"b",
"c",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"static int min(int a, int b, int c, int d )\n {\n return Math.min(min(a,d), min(b,c));\n }",
"min",
"{\n return Math.min(min(a,d), min(b,c));\n }",
"return Math.min(min(a,d), min(b,c));",
"Math.min(min(a,d), min(b,c))",
"Math.min",
"Math",
"min(a,d)",
"min",
"a",
"d",
"min(b,c)",
"min",
"b",
"c",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"int d",
"d",
"static boolean isPower(int a, int b)\n {\n double temp = Math.log(a)/Math.log(b);\n return temp == (int) temp;\n }",
"isPower",
"{\n double temp = Math.log(a)/Math.log(b);\n return temp == (int) temp;\n }",
"double temp = Math.log(a)/Math.log(b);",
"temp",
"Math.log(a)/Math.log(b)",
"Math.log(a)",
"Math.log",
"Math",
"a",
"Math.log(b)",
"Math.log",
"Math",
"b",
"return temp == (int) temp;",
"temp == (int) temp",
"temp",
"(int) temp",
"int a",
"a",
"int b",
"b",
"static boolean isPrime(int n)\n {\n if(n==1) return false;\n if(n==2) return true;\n if(n%2==0) return false;\n\n if(n<9)return true;\n if(n%3==0) return false;\n\n int r = (int)Math.sqrt(n);\n\n for(int i = 5; i<=r; i +=6)\n {\n if(n%i==0) return false;\n if(n%(i+2)==0) return false;\n }\n return true;\n\n\n\n }",
"isPrime",
"{\n if(n==1) return false;\n if(n==2) return true;\n if(n%2==0) return false;\n\n if(n<9)return true;\n if(n%3==0) return false;\n\n int r = (int)Math.sqrt(n);\n\n for(int i = 5; i<=r; i +=6)\n {\n if(n%i==0) return false;\n if(n%(i+2)==0) return false;\n }\n return true;\n\n\n\n }",
"if(n==1) return false;",
"n==1",
"n",
"1",
"return false;",
"false",
"if(n==2) return true;",
"n==2",
"n",
"2",
"return true;",
"true",
"if(n%2==0) return false;",
"n%2==0",
"n%2",
"n",
"2",
"0",
"return false;",
"false",
"if(n<9)return true;",
"n<9",
"n",
"9",
"return true;",
"true",
"if(n%3==0) return false;",
"n%3==0",
"n%3",
"n",
"3",
"0",
"return false;",
"false",
"int r = (int)Math.sqrt(n);",
"r",
"(int)Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"for(int i = 5; i<=r; i +=6)\n {\n if(n%i==0) return false;\n if(n%(i+2)==0) return false;\n }",
"int i = 5;",
"int i = 5;",
"i",
"5",
"i<=r",
"i",
"r",
"i +=6",
"i +=6",
"i",
"6",
"{\n if(n%i==0) return false;\n if(n%(i+2)==0) return false;\n }",
"{\n if(n%i==0) return false;\n if(n%(i+2)==0) return false;\n }",
"if(n%i==0) return false;",
"n%i==0",
"n%i",
"n",
"i",
"0",
"return false;",
"false",
"if(n%(i+2)==0) return false;",
"n%(i+2)==0",
"n%(i+2)",
"n",
"(i+2)",
"i",
"2",
"0",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static final int mod = 1000000007;\n\n public static void main(String[] args) {\n\n String s = sc.next();\n char[] c = s.toCharArray();\n \n long ans = 0;\n \n for(int i =0; i<s.length(); i++)\n ans += c[i]-'0';\n \n System.out.println(ans%9==0?\"Yes\":\"No\");\n \n \n\n\n\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static int max(int a, int b)\n {\n return Math.max(a,b);\n }\n static int max(int a, int b, int c)\n {\n return Math.max(max(a,b), c);\n }\n static int max(int a, int b, int c, int d)\n {\n return Math.max(max(a,b), max(c,d));\n }\n\n static int min(int a, int b)\n {\n return Math.min(a, b);\n }\n\n static int min(int a, int b, int c )\n {\n return Math.min(a, min(b,c));\n }\n\n static int min(int a, int b, int c, int d )\n {\n return Math.min(min(a,d), min(b,c));\n }\n\n static boolean isPower(int a, int b)\n {\n double temp = Math.log(a)/Math.log(b);\n return temp == (int) temp;\n }\n static boolean isPrime(int n)\n {\n if(n==1) return false;\n if(n==2) return true;\n if(n%2==0) return false;\n\n if(n<9)return true;\n if(n%3==0) return false;\n\n int r = (int)Math.sqrt(n);\n\n for(int i = 5; i<=r; i +=6)\n {\n if(n%i==0) return false;\n if(n%(i+2)==0) return false;\n }\n return true;\n\n\n\n }\n}",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static final int mod = 1000000007;\n\n public static void main(String[] args) {\n\n String s = sc.next();\n char[] c = s.toCharArray();\n \n long ans = 0;\n \n for(int i =0; i<s.length(); i++)\n ans += c[i]-'0';\n \n System.out.println(ans%9==0?\"Yes\":\"No\");\n \n \n\n\n\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static int max(int a, int b)\n {\n return Math.max(a,b);\n }\n static int max(int a, int b, int c)\n {\n return Math.max(max(a,b), c);\n }\n static int max(int a, int b, int c, int d)\n {\n return Math.max(max(a,b), max(c,d));\n }\n\n static int min(int a, int b)\n {\n return Math.min(a, b);\n }\n\n static int min(int a, int b, int c )\n {\n return Math.min(a, min(b,c));\n }\n\n static int min(int a, int b, int c, int d )\n {\n return Math.min(min(a,d), min(b,c));\n }\n\n static boolean isPower(int a, int b)\n {\n double temp = Math.log(a)/Math.log(b);\n return temp == (int) temp;\n }\n static boolean isPrime(int n)\n {\n if(n==1) return false;\n if(n==2) return true;\n if(n%2==0) return false;\n\n if(n<9)return true;\n if(n%3==0) return false;\n\n int r = (int)Math.sqrt(n);\n\n for(int i = 5; i<=r; i +=6)\n {\n if(n%i==0) return false;\n if(n%(i+2)==0) return false;\n }\n return true;\n\n\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
static final int mod = 1000000007;
public static void main(String[] args) {
String s = sc.next();
char[] c = s.toCharArray();
long ans = 0;
for(int i =0; i<s.length(); i++)
ans += c[i]-'0';
System.out.println(ans%9==0?"Yes":"No");
}
static int max(int a, int b)
{
return Math.max(a,b);
}
static int max(int a, int b, int c)
{
return Math.max(max(a,b), c);
}
static int max(int a, int b, int c, int d)
{
return Math.max(max(a,b), max(c,d));
}
static int min(int a, int b)
{
return Math.min(a, b);
}
static int min(int a, int b, int c )
{
return Math.min(a, min(b,c));
}
static int min(int a, int b, int c, int d )
{
return Math.min(min(a,d), min(b,c));
}
static boolean isPower(int a, int b)
{
double temp = Math.log(a)/Math.log(b);
return temp == (int) temp;
}
static boolean isPrime(int n)
{
if(n==1) return false;
if(n==2) return true;
if(n%2==0) return false;
if(n<9)return true;
if(n%3==0) return false;
int r = (int)Math.sqrt(n);
for(int i = 5; i<=r; i +=6)
{
if(n%i==0) return false;
if(n%(i+2)==0) return false;
}
return true;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
41,
13,
4,
18,
13,
13,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
29,
17,
29,
17,
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
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
10,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
6,
31
],
[
31,
32
],
[
0,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
37,
44
],
[
44,
45
],
[
44,
46
],
[
37,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
51,
58
],
[
58,
59
],
[
58,
60
],
[
37,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
37,
70
],
[
70,
71
],
[
35,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n String num = scanner.next();\n\n MultipleOfNine target = new MultipleOfNine();\n System.out.println(target.check(num));\n }\n }\n}\n\nclass MultipleOfNine {\n\n public String check(String number) {\n String[] nums = number.split(\"\");\n long total = 0;\n for (String num : nums) {\n int parsed = Integer.parseInt(num);\n total += parsed;\n }\n\n if (total % 9 == 0) {\n return \"Yes\";\n }\n return \"No\";\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n String num = scanner.next();\n\n MultipleOfNine target = new MultipleOfNine();\n System.out.println(target.check(num));\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n String num = scanner.next();\n\n MultipleOfNine target = new MultipleOfNine();\n System.out.println(target.check(num));\n }\n }",
"main",
"{\n try (Scanner scanner = new Scanner(System.in)) {\n String num = scanner.next();\n\n MultipleOfNine target = new MultipleOfNine();\n System.out.println(target.check(num));\n }\n }",
"try (Scanner scanner = new Scanner(System.in)) {\n String num = scanner.next();\n\n MultipleOfNine target = new MultipleOfNine();\n System.out.println(target.check(num));\n }",
"{\n String num = scanner.next();\n\n MultipleOfNine target = new MultipleOfNine();\n System.out.println(target.check(num));\n }",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"String num = scanner.next();",
"num",
"scanner.next()",
"scanner.next",
"scanner",
"MultipleOfNine target = new MultipleOfNine();",
"target",
"new MultipleOfNine()",
"System.out.println(target.check(num))",
"System.out.println",
"System.out",
"System",
"System.out",
"target.check(num)",
"target.check",
"target",
"num",
"String[] args",
"args",
"class MultipleOfNine {\n\n public String check(String number) {\n String[] nums = number.split(\"\");\n long total = 0;\n for (String num : nums) {\n int parsed = Integer.parseInt(num);\n total += parsed;\n }\n\n if (total % 9 == 0) {\n return \"Yes\";\n }\n return \"No\";\n }\n\n}",
"MultipleOfNine",
"public String check(String number) {\n String[] nums = number.split(\"\");\n long total = 0;\n for (String num : nums) {\n int parsed = Integer.parseInt(num);\n total += parsed;\n }\n\n if (total % 9 == 0) {\n return \"Yes\";\n }\n return \"No\";\n }",
"check",
"{\n String[] nums = number.split(\"\");\n long total = 0;\n for (String num : nums) {\n int parsed = Integer.parseInt(num);\n total += parsed;\n }\n\n if (total % 9 == 0) {\n return \"Yes\";\n }\n return \"No\";\n }",
"String[] nums = number.split(\"\");",
"nums",
"number.split(\"\")",
"number.split",
"number",
"\"\"",
"long total = 0;",
"total",
"0",
"for (String num : nums) {\n int parsed = Integer.parseInt(num);\n total += parsed;\n }",
"String num",
"nums",
"{\n int parsed = Integer.parseInt(num);\n total += parsed;\n }",
"{\n int parsed = Integer.parseInt(num);\n total += parsed;\n }",
"int parsed = Integer.parseInt(num);",
"parsed",
"Integer.parseInt(num)",
"Integer.parseInt",
"Integer",
"num",
"total += parsed",
"total",
"parsed",
"if (total % 9 == 0) {\n return \"Yes\";\n }",
"total % 9 == 0",
"total % 9",
"total",
"9",
"0",
"{\n return \"Yes\";\n }",
"return \"Yes\";",
"\"Yes\"",
"return \"No\";",
"\"No\"",
"String number",
"number",
"public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n String num = scanner.next();\n\n MultipleOfNine target = new MultipleOfNine();\n System.out.println(target.check(num));\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n String num = scanner.next();\n\n MultipleOfNine target = new MultipleOfNine();\n System.out.println(target.check(num));\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
String num = scanner.next();
MultipleOfNine target = new MultipleOfNine();
System.out.println(target.check(num));
}
}
}
class MultipleOfNine {
public String check(String number) {
String[] nums = number.split("");
long total = 0;
for (String num : nums) {
int parsed = Integer.parseInt(num);
total += parsed;
}
if (total % 9 == 0) {
return "Yes";
}
return "No";
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
4,
18,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
30,
32
],
[
20,
33
],
[
33,
34
],
[
34,
35
],
[
20,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
50,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n int sum = 0;\n for (int i = 0, len = n.length(); i < len; i++) {\n sum += Integer.parseInt(String.valueOf(n.charAt(i)));\n }\n if ((sum % 9) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\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 Scanner sc = new Scanner(System.in);\n String n = sc.next();\n int sum = 0;\n for (int i = 0, len = n.length(); i < len; i++) {\n sum += Integer.parseInt(String.valueOf(n.charAt(i)));\n }\n if ((sum % 9) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n int sum = 0;\n for (int i = 0, len = n.length(); i < len; i++) {\n sum += Integer.parseInt(String.valueOf(n.charAt(i)));\n }\n if ((sum % 9) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n int sum = 0;\n for (int i = 0, len = n.length(); i < len; i++) {\n sum += Integer.parseInt(String.valueOf(n.charAt(i)));\n }\n if ((sum % 9) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"int sum = 0;",
"sum",
"0",
"for (int i = 0, len = n.length(); i < len; i++) {\n sum += Integer.parseInt(String.valueOf(n.charAt(i)));\n }",
"int i = 0, len = n.length();",
"int i = 0",
"i",
"0",
"len = n.length();",
"len",
"n.length()",
"n.length",
"n",
"i < len",
"i",
"len",
"i++",
"i++",
"i",
"{\n sum += Integer.parseInt(String.valueOf(n.charAt(i)));\n }",
"{\n sum += Integer.parseInt(String.valueOf(n.charAt(i)));\n }",
"sum += Integer.parseInt(String.valueOf(n.charAt(i)))",
"sum",
"Integer.parseInt(String.valueOf(n.charAt(i)))",
"Integer.parseInt",
"Integer",
"String.valueOf(n.charAt(i))",
"String.valueOf",
"String",
"n.charAt(i)",
"n.charAt",
"n",
"i",
"if ((sum % 9) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"(sum % 9) == 0",
"(sum % 9)",
"sum",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n int sum = 0;\n for (int i = 0, len = n.length(); i < len; i++) {\n sum += Integer.parseInt(String.valueOf(n.charAt(i)));\n }\n if ((sum % 9) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n sc.close();\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n int sum = 0;\n for (int i = 0, len = n.length(); i < len; i++) {\n sum += Integer.parseInt(String.valueOf(n.charAt(i)));\n }\n if ((sum % 9) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\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 n = sc.next();
int sum = 0;
for (int i = 0, len = n.length(); i < len; i++) {
sum += Integer.parseInt(String.valueOf(n.charAt(i)));
}
if ((sum % 9) == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
28,
13,
4,
18,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
59,
8
],
[
59,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
23,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
11,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
9,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
]
| [
"\nimport java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint s = 0;\n\t\tString n = sc.next();\n\t\tfor( char ch : n.toCharArray()) {\n\t\t\ts += ch - '0';\n\t\t\ts %= 9;\n\t\t}\n\t\t\n\t\tif( s == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\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\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint s = 0;\n\t\tString n = sc.next();\n\t\tfor( char ch : n.toCharArray()) {\n\t\t\ts += ch - '0';\n\t\t\ts %= 9;\n\t\t}\n\t\t\n\t\tif( s == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint s = 0;\n\t\tString n = sc.next();\n\t\tfor( char ch : n.toCharArray()) {\n\t\t\ts += ch - '0';\n\t\t\ts %= 9;\n\t\t}\n\t\t\n\t\tif( s == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint s = 0;\n\t\tString n = sc.next();\n\t\tfor( char ch : n.toCharArray()) {\n\t\t\ts += ch - '0';\n\t\t\ts %= 9;\n\t\t}\n\t\t\n\t\tif( s == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int s = 0;",
"s",
"0",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"for( char ch : n.toCharArray()) {\n\t\t\ts += ch - '0';\n\t\t\ts %= 9;\n\t\t}",
"char ch",
"n.toCharArray()",
"n.toCharArray",
"n",
"{\n\t\t\ts += ch - '0';\n\t\t\ts %= 9;\n\t\t}",
"{\n\t\t\ts += ch - '0';\n\t\t\ts %= 9;\n\t\t}",
"s += ch - '0'",
"s",
"ch - '0'",
"ch",
"'0'",
"s %= 9",
"s",
"9",
"if( s == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"s == 0",
"s",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint s = 0;\n\t\tString n = sc.next();\n\t\tfor( char ch : n.toCharArray()) {\n\t\t\ts += ch - '0';\n\t\t\ts %= 9;\n\t\t}\n\t\t\n\t\tif( s == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint s = 0;\n\t\tString n = sc.next();\n\t\tfor( char ch : n.toCharArray()) {\n\t\t\ts += ch - '0';\n\t\t\ts %= 9;\n\t\t}\n\t\t\n\t\tif( s == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\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 {
Scanner sc = new Scanner(System.in);
int s = 0;
String n = sc.next();
for( char ch : n.toCharArray()) {
s += ch - '0';
s %= 9;
}
if( s == 0) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
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,
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,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
119,
26
],
[
119,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
29,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
29,
41
],
[
41,
42
],
[
41,
43
],
[
44,
45
],
[
45,
46
],
[
29,
47
],
[
47,
48
],
[
47,
49
],
[
29,
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
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
29,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
73,
83
],
[
83,
84
],
[
84,
85
],
[
73,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
29,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
96,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
27,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
]
| [
"import java.io.BufferedReader;\nimport java.io.*;\nimport java.util.*;\nimport java.util.ArrayList;\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.Collections;\nimport java.util.Arrays;\n\npublic class Main {\n\tpublic static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n final List<Long> list = new ArrayList<>();\n //final List<Long> list2 = new ArrayList<>();\n\n String n = sc.next();\n char[] work = new char[n.length()];\n int num = 0;\n\n for(int i = 0; i < n.length(); i++){\n work[i] = n.charAt(i);\n\n //切り出した文字列を一文字ずつ出力\n //System.out.println(work[i]);\n }\n\n for(int i = 0; i < n.length(); i++){\n num += Character.getNumericValue(work[i]);\n }\n //System.out.println(num);\n\n if(num % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n\n\n\n}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Iterator;",
"Iterator",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n\tpublic static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n final List<Long> list = new ArrayList<>();\n //final List<Long> list2 = new ArrayList<>();\n\n String n = sc.next();\n char[] work = new char[n.length()];\n int num = 0;\n\n for(int i = 0; i < n.length(); i++){\n work[i] = n.charAt(i);\n\n //切り出した文字列を一文字ずつ出力\n //System.out.println(work[i]);\n }\n\n for(int i = 0; i < n.length(); i++){\n num += Character.getNumericValue(work[i]);\n }\n //System.out.println(num);\n\n if(num % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n\n\n\n}\n}",
"Main",
"public static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n final List<Long> list = new ArrayList<>();\n //final List<Long> list2 = new ArrayList<>();\n\n String n = sc.next();\n char[] work = new char[n.length()];\n int num = 0;\n\n for(int i = 0; i < n.length(); i++){\n work[i] = n.charAt(i);\n\n //切り出した文字列を一文字ずつ出力\n //System.out.println(work[i]);\n }\n\n for(int i = 0; i < n.length(); i++){\n num += Character.getNumericValue(work[i]);\n }\n //System.out.println(num);\n\n if(num % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n\n\n\n}",
"main",
"{\n \n final Scanner sc = new Scanner(System.in);\n final List<Long> list = new ArrayList<>();\n //final List<Long> list2 = new ArrayList<>();\n\n String n = sc.next();\n char[] work = new char[n.length()];\n int num = 0;\n\n for(int i = 0; i < n.length(); i++){\n work[i] = n.charAt(i);\n\n //切り出した文字列を一文字ずつ出力\n //System.out.println(work[i]);\n }\n\n for(int i = 0; i < n.length(); i++){\n num += Character.getNumericValue(work[i]);\n }\n //System.out.println(num);\n\n if(num % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n\n\n\n}",
"final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final List<Long> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"char[] work = new char[n.length()];",
"work",
"new char[n.length()]",
"n.length()",
"n.length",
"n",
"int num = 0;",
"num",
"0",
"for(int i = 0; i < n.length(); i++){\n work[i] = n.charAt(i);\n\n //切り出した文字列を一文字ずつ出力\n //System.out.println(work[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n work[i] = n.charAt(i);\n\n //切り出した文字列を一文字ずつ出力\n //System.out.println(work[i]);\n }",
"{\n work[i] = n.charAt(i);\n\n //切り出した文字列を一文字ずつ出力\n //System.out.println(work[i]);\n }",
"work[i] = n.charAt(i)",
"work[i]",
"work",
"i",
"n.charAt(i)",
"n.charAt",
"n",
"i",
"for(int i = 0; i < n.length(); i++){\n num += Character.getNumericValue(work[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n num += Character.getNumericValue(work[i]);\n }",
"{\n num += Character.getNumericValue(work[i]);\n }",
"num += Character.getNumericValue(work[i])",
"num",
"Character.getNumericValue(work[i])",
"Character.getNumericValue",
"Character",
"work[i]",
"work",
"i",
"if(num % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"num % 9 == 0",
"num % 9",
"num",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"final String[] args",
"args",
"public class Main {\n\tpublic static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n final List<Long> list = new ArrayList<>();\n //final List<Long> list2 = new ArrayList<>();\n\n String n = sc.next();\n char[] work = new char[n.length()];\n int num = 0;\n\n for(int i = 0; i < n.length(); i++){\n work[i] = n.charAt(i);\n\n //切り出した文字列を一文字ずつ出力\n //System.out.println(work[i]);\n }\n\n for(int i = 0; i < n.length(); i++){\n num += Character.getNumericValue(work[i]);\n }\n //System.out.println(num);\n\n if(num % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n\n\n\n}\n}",
"public class Main {\n\tpublic static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n final List<Long> list = new ArrayList<>();\n //final List<Long> list2 = new ArrayList<>();\n\n String n = sc.next();\n char[] work = new char[n.length()];\n int num = 0;\n\n for(int i = 0; i < n.length(); i++){\n work[i] = n.charAt(i);\n\n //切り出した文字列を一文字ずつ出力\n //System.out.println(work[i]);\n }\n\n for(int i = 0; i < n.length(); i++){\n num += Character.getNumericValue(work[i]);\n }\n //System.out.println(num);\n\n if(num % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n\n\n\n}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;
public class Main {
public static void main(final String[] args){
final Scanner sc = new Scanner(System.in);
final List<Long> list = new ArrayList<>();
//final List<Long> list2 = new ArrayList<>();
String n = sc.next();
char[] work = new char[n.length()];
int num = 0;
for(int i = 0; i < n.length(); i++){
work[i] = n.charAt(i);
//切り出した文字列を一文字ずつ出力
//System.out.println(work[i]);
}
for(int i = 0; i < n.length(); i++){
num += Character.getNumericValue(work[i]);
}
//System.out.println(num);
if(num % 9 == 0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
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,
8,
2,
2,
13,
17,
17,
17,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
22,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
49,
56
],
[
6,
57
],
[
57,
58
]
]
| [
"import java.util.*;\nclass Main{\npublic static void main(String[]args){\nScanner sc=new Scanner(System.in);\n char c[]=sc.next().toCharArray();\n int ans=0;\n for(int i=0;i<c.length;i++){\n ans+=(c[i]-'0');\n }System.out.println(ans%9==0?\"Yes\":\"No\");\n}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\npublic static void main(String[]args){\nScanner sc=new Scanner(System.in);\n char c[]=sc.next().toCharArray();\n int ans=0;\n for(int i=0;i<c.length;i++){\n ans+=(c[i]-'0');\n }System.out.println(ans%9==0?\"Yes\":\"No\");\n}\n}",
"Main",
"public static void main(String[]args){\nScanner sc=new Scanner(System.in);\n char c[]=sc.next().toCharArray();\n int ans=0;\n for(int i=0;i<c.length;i++){\n ans+=(c[i]-'0');\n }System.out.println(ans%9==0?\"Yes\":\"No\");\n}",
"main",
"{\nScanner sc=new Scanner(System.in);\n char c[]=sc.next().toCharArray();\n int ans=0;\n for(int i=0;i<c.length;i++){\n ans+=(c[i]-'0');\n }System.out.println(ans%9==0?\"Yes\":\"No\");\n}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"char c[]=sc.next().toCharArray();",
"c",
"sc.next().toCharArray()",
"sc.next().toCharArray",
"sc.next()",
"sc.next",
"sc",
"int ans=0;",
"ans",
"0",
"for(int i=0;i<c.length;i++){\n ans+=(c[i]-'0');\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n ans+=(c[i]-'0');\n }",
"{\n ans+=(c[i]-'0');\n }",
"ans+=(c[i]-'0')",
"ans",
"(c[i]-'0')",
"c[i]",
"c",
"i",
"'0'",
"System.out.println(ans%9==0?\"Yes\":\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"ans%9==0?\"Yes\":\"No\"",
"ans%9==0",
"ans%9",
"ans",
"9",
"0",
"\"Yes\"",
"\"No\"",
"String[]args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
char c[]=sc.next().toCharArray();
int ans=0;
for(int i=0;i<c.length;i++){
ans+=(c[i]-'0');
}System.out.println(ans%9==0?"Yes":"No");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
2,
2,
13,
4,
18,
13,
2,
17,
13,
17,
4,
18,
18,
13,
13,
8,
2,
13,
17,
17,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
56,
8
],
[
56,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
25,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
38,
40
],
[
32,
41
],
[
11,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
47,
52
],
[
9,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar[] str = br.readLine().toCharArray();\n\t\tint n = 0;\n\t\tfor(char c : str){\n\t\t\tn = (n + Integer.parseInt(\"\" + c))%9;\n\t\t}\n\t\t\n\t\tSystem.out.println((n == 0) ? \"Yes\" : \"No\");\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar[] str = br.readLine().toCharArray();\n\t\tint n = 0;\n\t\tfor(char c : str){\n\t\t\tn = (n + Integer.parseInt(\"\" + c))%9;\n\t\t}\n\t\t\n\t\tSystem.out.println((n == 0) ? \"Yes\" : \"No\");\n\t}\n}",
"Main",
"public static void main(String[] args)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar[] str = br.readLine().toCharArray();\n\t\tint n = 0;\n\t\tfor(char c : str){\n\t\t\tn = (n + Integer.parseInt(\"\" + c))%9;\n\t\t}\n\t\t\n\t\tSystem.out.println((n == 0) ? \"Yes\" : \"No\");\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar[] str = br.readLine().toCharArray();\n\t\tint n = 0;\n\t\tfor(char c : str){\n\t\t\tn = (n + Integer.parseInt(\"\" + c))%9;\n\t\t}\n\t\t\n\t\tSystem.out.println((n == 0) ? \"Yes\" : \"No\");\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"char[] str = br.readLine().toCharArray();",
"str",
"br.readLine().toCharArray()",
"br.readLine().toCharArray",
"br.readLine()",
"br.readLine",
"br",
"int n = 0;",
"n",
"0",
"for(char c : str){\n\t\t\tn = (n + Integer.parseInt(\"\" + c))%9;\n\t\t}",
"char c",
"str",
"{\n\t\t\tn = (n + Integer.parseInt(\"\" + c))%9;\n\t\t}",
"{\n\t\t\tn = (n + Integer.parseInt(\"\" + c))%9;\n\t\t}",
"n = (n + Integer.parseInt(\"\" + c))%9",
"n",
"(n + Integer.parseInt(\"\" + c))%9",
"(n + Integer.parseInt(\"\" + c))",
"n",
"Integer.parseInt(\"\" + c)",
"Integer.parseInt",
"Integer",
"\"\" + c",
"\"\"",
"c",
"9",
"System.out.println((n == 0) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(n == 0) ? \"Yes\" : \"No\"",
"(n == 0)",
"n",
"0",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar[] str = br.readLine().toCharArray();\n\t\tint n = 0;\n\t\tfor(char c : str){\n\t\t\tn = (n + Integer.parseInt(\"\" + c))%9;\n\t\t}\n\t\t\n\t\tSystem.out.println((n == 0) ? \"Yes\" : \"No\");\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tchar[] str = br.readLine().toCharArray();\n\t\tint n = 0;\n\t\tfor(char c : str){\n\t\t\tn = (n + Integer.parseInt(\"\" + c))%9;\n\t\t}\n\t\t\n\t\tSystem.out.println((n == 0) ? \"Yes\" : \"No\");\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args)throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
char[] str = br.readLine().toCharArray();
int n = 0;
for(char c : str){
n = (n + Integer.parseInt("" + c))%9;
}
System.out.println((n == 0) ? "Yes" : "No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
43,
56
],
[
56,
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\tScanner stdIn = new Scanner(System.in);\n\tString n = stdIn.next();\n\tint ans = 0;\n\tfor(int i=0;i<n.length();i++){\n\t\tans+= n.charAt(i)-'0';\n\t}\nif(ans%9==0){\nSystem.out.println(\"Yes\");\n}\nelse {\nSystem.out.println(\"No\");\n}\n\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\tScanner stdIn = new Scanner(System.in);\n\tString n = stdIn.next();\n\tint ans = 0;\n\tfor(int i=0;i<n.length();i++){\n\t\tans+= n.charAt(i)-'0';\n\t}\nif(ans%9==0){\nSystem.out.println(\"Yes\");\n}\nelse {\nSystem.out.println(\"No\");\n}\n\n}\n}",
"Main",
"public static void main(String[] args){\n\tScanner stdIn = new Scanner(System.in);\n\tString n = stdIn.next();\n\tint ans = 0;\n\tfor(int i=0;i<n.length();i++){\n\t\tans+= n.charAt(i)-'0';\n\t}\nif(ans%9==0){\nSystem.out.println(\"Yes\");\n}\nelse {\nSystem.out.println(\"No\");\n}\n\n}",
"main",
"{\n\tScanner stdIn = new Scanner(System.in);\n\tString n = stdIn.next();\n\tint ans = 0;\n\tfor(int i=0;i<n.length();i++){\n\t\tans+= n.charAt(i)-'0';\n\t}\nif(ans%9==0){\nSystem.out.println(\"Yes\");\n}\nelse {\nSystem.out.println(\"No\");\n}\n\n}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"String n = stdIn.next();",
"n",
"stdIn.next()",
"stdIn.next",
"stdIn",
"int ans = 0;",
"ans",
"0",
"for(int i=0;i<n.length();i++){\n\t\tans+= n.charAt(i)-'0';\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n\t\tans+= n.charAt(i)-'0';\n\t}",
"{\n\t\tans+= n.charAt(i)-'0';\n\t}",
"ans+= n.charAt(i)-'0'",
"ans",
"n.charAt(i)-'0'",
"n.charAt(i)",
"n.charAt",
"n",
"i",
"'0'",
"if(ans%9==0){\nSystem.out.println(\"Yes\");\n}\nelse {\nSystem.out.println(\"No\");\n}",
"ans%9==0",
"ans%9",
"ans",
"9",
"0",
"{\nSystem.out.println(\"Yes\");\n}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\nSystem.out.println(\"No\");\n}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\tScanner stdIn = new Scanner(System.in);\n\tString n = stdIn.next();\n\tint ans = 0;\n\tfor(int i=0;i<n.length();i++){\n\t\tans+= n.charAt(i)-'0';\n\t}\nif(ans%9==0){\nSystem.out.println(\"Yes\");\n}\nelse {\nSystem.out.println(\"No\");\n}\n\n}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\tScanner stdIn = new Scanner(System.in);\n\tString n = stdIn.next();\n\tint ans = 0;\n\tfor(int i=0;i<n.length();i++){\n\t\tans+= n.charAt(i)-'0';\n\t}\nif(ans%9==0){\nSystem.out.println(\"Yes\");\n}\nelse {\nSystem.out.println(\"No\");\n}\n\n}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
String n = stdIn.next();
int ans = 0;
for(int i=0;i<n.length();i++){
ans+= n.charAt(i)-'0';
}
if(ans%9==0){
System.out.println("Yes");
}
else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
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,
17,
0,
13,
13,
14,
2,
4,
18,
13,
17,
30,
29,
2,
2,
13,
17,
17,
30,
29,
4,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
12,
25
],
[
26,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
29,
34
],
[
26,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
38,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
6,
59
],
[
59,
60
],
[
98,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
63,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
63,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
63,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
61,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public boolean isMultipleOfNine(String num) {\n int sum = 0;\n for (int i = 0; i < num.length(); i++) {\n int digit = num.charAt(i) - '0';\n sum += digit;\n }\n\n if (num.length() < 10) {\n return sum % 9 == 0;\n } else {\n return isMultipleOfNine(String.valueOf(sum));\n }\n }\n\n public static void main(String[] args) throws Exception {\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n String n = scanner.next();\n\n boolean answer = solution.isMultipleOfNine(n);\n if (answer) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public boolean isMultipleOfNine(String num) {\n int sum = 0;\n for (int i = 0; i < num.length(); i++) {\n int digit = num.charAt(i) - '0';\n sum += digit;\n }\n\n if (num.length() < 10) {\n return sum % 9 == 0;\n } else {\n return isMultipleOfNine(String.valueOf(sum));\n }\n }\n\n public static void main(String[] args) throws Exception {\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n String n = scanner.next();\n\n boolean answer = solution.isMultipleOfNine(n);\n if (answer) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"Main",
"public boolean isMultipleOfNine(String num) {\n int sum = 0;\n for (int i = 0; i < num.length(); i++) {\n int digit = num.charAt(i) - '0';\n sum += digit;\n }\n\n if (num.length() < 10) {\n return sum % 9 == 0;\n } else {\n return isMultipleOfNine(String.valueOf(sum));\n }\n }",
"isMultipleOfNine",
"{\n int sum = 0;\n for (int i = 0; i < num.length(); i++) {\n int digit = num.charAt(i) - '0';\n sum += digit;\n }\n\n if (num.length() < 10) {\n return sum % 9 == 0;\n } else {\n return isMultipleOfNine(String.valueOf(sum));\n }\n }",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < num.length(); i++) {\n int digit = num.charAt(i) - '0';\n sum += digit;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num.length()",
"i",
"num.length()",
"num.length",
"num",
"i++",
"i++",
"i",
"{\n int digit = num.charAt(i) - '0';\n sum += digit;\n }",
"{\n int digit = num.charAt(i) - '0';\n sum += digit;\n }",
"int digit = num.charAt(i) - '0';",
"digit",
"num.charAt(i) - '0'",
"num.charAt(i)",
"num.charAt",
"num",
"i",
"'0'",
"sum += digit",
"sum",
"digit",
"if (num.length() < 10) {\n return sum % 9 == 0;\n } else {\n return isMultipleOfNine(String.valueOf(sum));\n }",
"num.length() < 10",
"num.length()",
"num.length",
"num",
"10",
"{\n return sum % 9 == 0;\n }",
"return sum % 9 == 0;",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"{\n return isMultipleOfNine(String.valueOf(sum));\n }",
"return isMultipleOfNine(String.valueOf(sum));",
"isMultipleOfNine(String.valueOf(sum))",
"isMultipleOfNine",
"String.valueOf(sum)",
"String.valueOf",
"String",
"sum",
"String num",
"num",
"public static void main(String[] args) throws Exception {\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n String n = scanner.next();\n\n boolean answer = solution.isMultipleOfNine(n);\n if (answer) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"main",
"{\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n String n = scanner.next();\n\n boolean answer = solution.isMultipleOfNine(n);\n if (answer) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"Main solution = new Main();",
"solution",
"new Main()",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String n = scanner.next();",
"n",
"scanner.next()",
"scanner.next",
"scanner",
"boolean answer = solution.isMultipleOfNine(n);",
"answer",
"solution.isMultipleOfNine(n)",
"solution.isMultipleOfNine",
"solution",
"n",
"if (answer) System.out.println(\"Yes\");\n else System.out.println(\"No\");",
"answer",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public boolean isMultipleOfNine(String num) {\n int sum = 0;\n for (int i = 0; i < num.length(); i++) {\n int digit = num.charAt(i) - '0';\n sum += digit;\n }\n\n if (num.length() < 10) {\n return sum % 9 == 0;\n } else {\n return isMultipleOfNine(String.valueOf(sum));\n }\n }\n\n public static void main(String[] args) throws Exception {\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n String n = scanner.next();\n\n boolean answer = solution.isMultipleOfNine(n);\n if (answer) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"public class Main {\n public boolean isMultipleOfNine(String num) {\n int sum = 0;\n for (int i = 0; i < num.length(); i++) {\n int digit = num.charAt(i) - '0';\n sum += digit;\n }\n\n if (num.length() < 10) {\n return sum % 9 == 0;\n } else {\n return isMultipleOfNine(String.valueOf(sum));\n }\n }\n\n public static void main(String[] args) throws Exception {\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n String n = scanner.next();\n\n boolean answer = solution.isMultipleOfNine(n);\n if (answer) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public boolean isMultipleOfNine(String num) {
int sum = 0;
for (int i = 0; i < num.length(); i++) {
int digit = num.charAt(i) - '0';
sum += digit;
}
if (num.length() < 10) {
return sum % 9 == 0;
} else {
return isMultipleOfNine(String.valueOf(sum));
}
}
public static void main(String[] args) throws Exception {
Main solution = new Main();
Scanner scanner = new Scanner(System.in);
String n = scanner.next();
boolean answer = solution.isMultipleOfNine(n);
if (answer) System.out.println("Yes");
else System.out.println("No");
}
} |
[
7,
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,
4,
18,
4,
18,
13,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
29,
4,
18,
13,
29,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
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
],
[
166,
14
],
[
166,
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
],
[
28,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
17,
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
],
[
17,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
56,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
17,
72
],
[
72,
73
],
[
73,
74
],
[
15,
75
],
[
75,
76
],
[
166,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
77,
86
],
[
86,
87
],
[
166,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
99,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
104,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
98,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
88,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
122,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
121,
134
],
[
134,
135
],
[
119,
136
],
[
136,
137
],
[
88,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
88,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
154,
155
],
[
88,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
163,
164
],
[
0,
165
],
[
165,
166
],
[
165,
167
]
]
| [
"import java.io.*;\nimport java.math.*;\nimport java.util.*;\nimport java.lang.*;\n\n// import java.text.DecimalFormat; \n// import java.text.DecimalFormatSymbols; \n \npublic class Main {\n\n\n \n public static void main(String args[] ) throws Exception {\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n char[] c = sc.next().toCharArray();\n int ans=0;\n for(int i=0;i<c.length;i++){\n ans+= c[i]-'0';\n }\n if(ans%9==0){\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n \n \n \n \n pw.close();\n }\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n public static <T> void deb(T x){\n System.out.println(x);\n }\n \n \n static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\t\n\t\tpublic String next() {\n\t\t\twhile (!st.hasMoreElements())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic String next(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\t\n\t \n\t}\n \n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n\n\n \n public static void main(String args[] ) throws Exception {\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n char[] c = sc.next().toCharArray();\n int ans=0;\n for(int i=0;i<c.length;i++){\n ans+= c[i]-'0';\n }\n if(ans%9==0){\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n \n \n \n \n pw.close();\n }\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n public static <T> void deb(T x){\n System.out.println(x);\n }\n \n \n static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\t\n\t\tpublic String next() {\n\t\t\twhile (!st.hasMoreElements())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic String next(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\t\n\t \n\t}\n \n}",
"Main",
"public static void main(String args[] ) throws Exception {\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n char[] c = sc.next().toCharArray();\n int ans=0;\n for(int i=0;i<c.length;i++){\n ans+= c[i]-'0';\n }\n if(ans%9==0){\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n \n \n \n \n pw.close();\n }",
"main",
"{\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n char[] c = sc.next().toCharArray();\n int ans=0;\n for(int i=0;i<c.length;i++){\n ans+= c[i]-'0';\n }\n if(ans%9==0){\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n \n \n \n \n pw.close();\n }",
"PrintWriter pw=new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"char[] c = sc.next().toCharArray();",
"c",
"sc.next().toCharArray()",
"sc.next().toCharArray",
"sc.next()",
"sc.next",
"sc",
"int ans=0;",
"ans",
"0",
"for(int i=0;i<c.length;i++){\n ans+= c[i]-'0';\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n ans+= c[i]-'0';\n }",
"{\n ans+= c[i]-'0';\n }",
"ans+= c[i]-'0'",
"ans",
"c[i]-'0'",
"c[i]",
"c",
"i",
"'0'",
"if(ans%9==0){\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }",
"ans%9==0",
"ans%9",
"ans",
"9",
"0",
"{\n pw.println(\"Yes\");\n }",
"pw.println(\"Yes\")",
"pw.println",
"pw",
"\"Yes\"",
"{\n pw.println(\"No\");\n }",
"pw.println(\"No\")",
"pw.println",
"pw",
"\"No\"",
"pw.close()",
"pw.close",
"pw",
"String args[]",
"args",
"public static <T> void deb(T x){\n System.out.println(x);\n }",
"deb",
"{\n System.out.println(x);\n }",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"T x",
"x",
"static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\t\n\t\tpublic String next() {\n\t\t\twhile (!st.hasMoreElements())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic String next(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\t\n\t \n\t}",
"FastScanner",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"public String next() {\n\t\t\twhile (!st.hasMoreElements())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (!st.hasMoreElements())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (!st.hasMoreElements())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"try {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st=new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public String next(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}",
"next",
"{\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}",
"try {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\treturn br.readLine();\n\t\t\t}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"return \"Not able to read\";",
"\"Not able to read\"",
"int k",
"k",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\n\n \n public static void main(String args[] ) throws Exception {\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n char[] c = sc.next().toCharArray();\n int ans=0;\n for(int i=0;i<c.length;i++){\n ans+= c[i]-'0';\n }\n if(ans%9==0){\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n \n \n \n \n pw.close();\n }\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n public static <T> void deb(T x){\n System.out.println(x);\n }\n \n \n static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\t\n\t\tpublic String next() {\n\t\t\twhile (!st.hasMoreElements())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic String next(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\t\n\t \n\t}\n \n}",
"public class Main {\n\n\n \n public static void main(String args[] ) throws Exception {\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n char[] c = sc.next().toCharArray();\n int ans=0;\n for(int i=0;i<c.length;i++){\n ans+= c[i]-'0';\n }\n if(ans%9==0){\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n \n \n \n \n pw.close();\n }\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n public static <T> void deb(T x){\n System.out.println(x);\n }\n \n \n static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\t\n\t\tpublic String next() {\n\t\t\twhile (!st.hasMoreElements())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic String next(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\t\n\t \n\t}\n \n}",
"Main"
]
| import java.io.*;
import java.math.*;
import java.util.*;
import java.lang.*;
// import java.text.DecimalFormat;
// import java.text.DecimalFormatSymbols;
public class Main {
public static void main(String args[] ) throws Exception {
PrintWriter pw=new PrintWriter(System.out);
FastScanner sc = new FastScanner();
char[] c = sc.next().toCharArray();
int ans=0;
for(int i=0;i<c.length;i++){
ans+= c[i]-'0';
}
if(ans%9==0){
pw.println("Yes");
} else {
pw.println("No");
}
pw.close();
}
public static <T> void deb(T x){
System.out.println(x);
}
static class FastScanner {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer("");
public String next() {
while (!st.hasMoreElements())
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
public String next(int k) {
try {
return br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return "Not able to read";
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
61,
11
],
[
61,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
29,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
14,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
40,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
12,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] n = in.readLine().split(\"\");\n\t\tint sum = 0;\n\t\tfor (String c : n) {\n\t\t\tsum += Integer.parseInt(c);\n\t\t}\n\t\tif (sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\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 NumberFormatException, IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] n = in.readLine().split(\"\");\n\t\tint sum = 0;\n\t\tfor (String c : n) {\n\t\t\tsum += Integer.parseInt(c);\n\t\t}\n\t\tif (sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] n = in.readLine().split(\"\");\n\t\tint sum = 0;\n\t\tfor (String c : n) {\n\t\t\tsum += Integer.parseInt(c);\n\t\t}\n\t\tif (sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] n = in.readLine().split(\"\");\n\t\tint sum = 0;\n\t\tfor (String c : n) {\n\t\t\tsum += Integer.parseInt(c);\n\t\t}\n\t\tif (sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] n = in.readLine().split(\"\");",
"n",
"in.readLine().split(\"\")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\"\"",
"int sum = 0;",
"sum",
"0",
"for (String c : n) {\n\t\t\tsum += Integer.parseInt(c);\n\t\t}",
"String c",
"n",
"{\n\t\t\tsum += Integer.parseInt(c);\n\t\t}",
"{\n\t\t\tsum += Integer.parseInt(c);\n\t\t}",
"sum += Integer.parseInt(c)",
"sum",
"Integer.parseInt(c)",
"Integer.parseInt",
"Integer",
"c",
"if (sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");",
"sum%9 == 0",
"sum%9",
"sum",
"9",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] n = in.readLine().split(\"\");\n\t\tint sum = 0;\n\t\tfor (String c : n) {\n\t\t\tsum += Integer.parseInt(c);\n\t\t}\n\t\tif (sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] n = in.readLine().split(\"\");\n\t\tint sum = 0;\n\t\tfor (String c : n) {\n\t\t\tsum += Integer.parseInt(c);\n\t\t}\n\t\tif (sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\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 NumberFormatException, IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String[] n = in.readLine().split("");
int sum = 0;
for (String c : n) {
sum += Integer.parseInt(c);
}
if (sum%9 == 0)
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
2,
13,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
40,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
47,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tint count = 0;\n\n\t\tfor (int i = 1; i <= n.length(); i++) {\n\t\t\tcount += Integer.parseInt(n.substring(i-1, i));\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\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 n = sc.next();\n\t\tint count = 0;\n\n\t\tfor (int i = 1; i <= n.length(); i++) {\n\t\t\tcount += Integer.parseInt(n.substring(i-1, i));\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tint count = 0;\n\n\t\tfor (int i = 1; i <= n.length(); i++) {\n\t\t\tcount += Integer.parseInt(n.substring(i-1, i));\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tint count = 0;\n\n\t\tfor (int i = 1; i <= n.length(); i++) {\n\t\t\tcount += Integer.parseInt(n.substring(i-1, i));\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"int count = 0;",
"count",
"0",
"for (int i = 1; i <= n.length(); i++) {\n\t\t\tcount += Integer.parseInt(n.substring(i-1, i));\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tcount += Integer.parseInt(n.substring(i-1, i));\n\t\t}",
"{\n\t\t\tcount += Integer.parseInt(n.substring(i-1, i));\n\t\t}",
"count += Integer.parseInt(n.substring(i-1, i))",
"count",
"Integer.parseInt(n.substring(i-1, i))",
"Integer.parseInt",
"Integer",
"n.substring(i-1, i)",
"n.substring",
"n",
"i-1",
"i",
"1",
"i",
"if (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"count % 9 == 0",
"count % 9",
"count",
"9",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tint count = 0;\n\n\t\tfor (int i = 1; i <= n.length(); i++) {\n\t\t\tcount += Integer.parseInt(n.substring(i-1, i));\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\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 n = sc.next();\n\t\tint count = 0;\n\n\t\tfor (int i = 1; i <= n.length(); i++) {\n\t\t\tcount += Integer.parseInt(n.substring(i-1, i));\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\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 n = sc.next();
int count = 0;
for (int i = 1; i <= n.length(); i++) {
count += Integer.parseInt(n.substring(i-1, i));
}
if (count % 9 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
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,
0,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
49,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
6,
69
],
[
69,
70
]
]
| [
"import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString N = sc.next();\n\t\tsc.close();\n\t\tint l = N.length();\n\t\tint ans = 0;\n\t\tfor(int i=0;i<l;++i){\n\t\t\tans += N.charAt(i) - '0';\n\t\t}\n\t\tif(ans%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n}\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\tString N = sc.next();\n\t\tsc.close();\n\t\tint l = N.length();\n\t\tint ans = 0;\n\t\tfor(int i=0;i<l;++i){\n\t\t\tans += N.charAt(i) - '0';\n\t\t}\n\t\tif(ans%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString N = sc.next();\n\t\tsc.close();\n\t\tint l = N.length();\n\t\tint ans = 0;\n\t\tfor(int i=0;i<l;++i){\n\t\t\tans += N.charAt(i) - '0';\n\t\t}\n\t\tif(ans%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString N = sc.next();\n\t\tsc.close();\n\t\tint l = N.length();\n\t\tint ans = 0;\n\t\tfor(int i=0;i<l;++i){\n\t\t\tans += N.charAt(i) - '0';\n\t\t}\n\t\tif(ans%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String N = sc.next();",
"N",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"int l = N.length();",
"l",
"N.length()",
"N.length",
"N",
"int ans = 0;",
"ans",
"0",
"for(int i=0;i<l;++i){\n\t\t\tans += N.charAt(i) - '0';\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<l",
"i",
"l",
"++i",
"++i",
"i",
"{\n\t\t\tans += N.charAt(i) - '0';\n\t\t}",
"{\n\t\t\tans += N.charAt(i) - '0';\n\t\t}",
"ans += N.charAt(i) - '0'",
"ans",
"N.charAt(i) - '0'",
"N.charAt(i)",
"N.charAt",
"N",
"i",
"'0'",
"if(ans%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"ans%9==0",
"ans%9",
"ans",
"9",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String N = sc.next();
sc.close();
int l = N.length();
int ans = 0;
for(int i=0;i<l;++i){
ans += N.charAt(i) - '0';
}
if(ans%9==0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
13,
2,
13,
17,
0,
13,
13,
41,
13,
8,
2,
2,
13,
17,
17,
17,
17,
4,
18,
18,
13,
13,
13,
4,
18,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
34,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
52,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
6,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
]
| [
"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\tString n = sc.next();\n\t\t\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n.length(); i++) {\n\t\t\tint num = Integer.valueOf(n.substring(i, i + 1));\n\t\t\tsum += num;\n\t\t}\n\t\t\n\t\tString ans = sum % 9 == 0 ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}\n\n}\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 n = sc.next();\n\t\t\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n.length(); i++) {\n\t\t\tint num = Integer.valueOf(n.substring(i, i + 1));\n\t\t\tsum += num;\n\t\t}\n\t\t\n\t\tString ans = sum % 9 == 0 ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\t\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n.length(); i++) {\n\t\t\tint num = Integer.valueOf(n.substring(i, i + 1));\n\t\t\tsum += num;\n\t\t}\n\t\t\n\t\tString ans = sum % 9 == 0 ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\t\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n.length(); i++) {\n\t\t\tint num = Integer.valueOf(n.substring(i, i + 1));\n\t\t\tsum += num;\n\t\t}\n\t\t\n\t\tString ans = sum % 9 == 0 ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < n.length(); i++) {\n\t\t\tint num = Integer.valueOf(n.substring(i, i + 1));\n\t\t\tsum += num;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint num = Integer.valueOf(n.substring(i, i + 1));\n\t\t\tsum += num;\n\t\t}",
"{\n\t\t\tint num = Integer.valueOf(n.substring(i, i + 1));\n\t\t\tsum += num;\n\t\t}",
"int num = Integer.valueOf(n.substring(i, i + 1));",
"num",
"Integer.valueOf(n.substring(i, i + 1))",
"Integer.valueOf",
"Integer",
"n.substring(i, i + 1)",
"n.substring",
"n",
"i",
"i + 1",
"i",
"1",
"sum += num",
"sum",
"num",
"String ans = sum % 9 == 0 ? \"Yes\" : \"No\";",
"ans",
"sum % 9 == 0 ? \"Yes\" : \"No\"",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"\"Yes\"",
"\"No\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\t\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n.length(); i++) {\n\t\t\tint num = Integer.valueOf(n.substring(i, i + 1));\n\t\t\tsum += num;\n\t\t}\n\t\t\n\t\tString ans = sum % 9 == 0 ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\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 n = sc.next();\n\t\t\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n.length(); i++) {\n\t\t\tint num = Integer.valueOf(n.substring(i, i + 1));\n\t\t\tsum += num;\n\t\t}\n\t\t\n\t\tString ans = sum % 9 == 0 ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\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 n = sc.next();
int sum = 0;
for (int i = 0; i < n.length(); i++) {
int num = Integer.valueOf(n.substring(i, i + 1));
sum += num;
}
String ans = sum % 9 == 0 ? "Yes" : "No";
System.out.println(ans);
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
28,
13,
4,
18,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
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
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
26,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
11,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
42,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
9,
62
],
[
62,
63
]
]
| [
"import java.util.*;\nimport java.io.*;\n\nclass Main {\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString num = sc.nextLine();\n\t\tsc.close();\n\t\tlong total = 0;\n\t\tfor (char c : num.toCharArray()) {\n\t\t\ttotal += Integer.parseInt(String.valueOf(c));\n\t\t}\n\t\tif (total % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n\t\n\t\n\t\n \n \n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString num = sc.nextLine();\n\t\tsc.close();\n\t\tlong total = 0;\n\t\tfor (char c : num.toCharArray()) {\n\t\t\ttotal += Integer.parseInt(String.valueOf(c));\n\t\t}\n\t\tif (total % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n\t\n\t\n\t\n \n \n}",
"Main",
"public static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString num = sc.nextLine();\n\t\tsc.close();\n\t\tlong total = 0;\n\t\tfor (char c : num.toCharArray()) {\n\t\t\ttotal += Integer.parseInt(String.valueOf(c));\n\t\t}\n\t\tif (total % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString num = sc.nextLine();\n\t\tsc.close();\n\t\tlong total = 0;\n\t\tfor (char c : num.toCharArray()) {\n\t\t\ttotal += Integer.parseInt(String.valueOf(c));\n\t\t}\n\t\tif (total % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String num = sc.nextLine();",
"num",
"sc.nextLine()",
"sc.nextLine",
"sc",
"sc.close()",
"sc.close",
"sc",
"long total = 0;",
"total",
"0",
"for (char c : num.toCharArray()) {\n\t\t\ttotal += Integer.parseInt(String.valueOf(c));\n\t\t}",
"char c",
"num.toCharArray()",
"num.toCharArray",
"num",
"{\n\t\t\ttotal += Integer.parseInt(String.valueOf(c));\n\t\t}",
"{\n\t\t\ttotal += Integer.parseInt(String.valueOf(c));\n\t\t}",
"total += Integer.parseInt(String.valueOf(c))",
"total",
"Integer.parseInt(String.valueOf(c))",
"Integer.parseInt",
"Integer",
"String.valueOf(c)",
"String.valueOf",
"String",
"c",
"if (total % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"total % 9 == 0",
"total % 9",
"total",
"9",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.*;
import java.io.*;
class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
String num = sc.nextLine();
sc.close();
long total = 0;
for (char c : num.toCharArray()) {
total += Integer.parseInt(String.valueOf(c));
}
if (total % 9 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
13,
17,
29,
2,
2,
13,
17,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
14,
4,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
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
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
35,
40
],
[
11,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
9,
47
],
[
47,
48
],
[
7,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
51,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
60,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
49,
78
],
[
78,
79
]
]
| [
"import java.io.*;\nimport java.util.*;\n\nclass Main\n{\n static boolean checkDivofNine(String str)\n {\n\tint n=str.length();\n int res=0;\n for(int i=0;i<n;i++)\n {\n\t\tres+=(str.charAt(i)-'0');\n }\n \treturn(res%9==0);\n }\n public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n \tString str=sc.next();\n if(checkDivofNine(str))\n {\n System.out.print(\"Yes\");\n }\n else\n {\n System.out.print(\"No\");\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n static boolean checkDivofNine(String str)\n {\n\tint n=str.length();\n int res=0;\n for(int i=0;i<n;i++)\n {\n\t\tres+=(str.charAt(i)-'0');\n }\n \treturn(res%9==0);\n }\n public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n \tString str=sc.next();\n if(checkDivofNine(str))\n {\n System.out.print(\"Yes\");\n }\n else\n {\n System.out.print(\"No\");\n }\n }\n}",
"Main",
"static boolean checkDivofNine(String str)\n {\n\tint n=str.length();\n int res=0;\n for(int i=0;i<n;i++)\n {\n\t\tres+=(str.charAt(i)-'0');\n }\n \treturn(res%9==0);\n }",
"checkDivofNine",
"{\n\tint n=str.length();\n int res=0;\n for(int i=0;i<n;i++)\n {\n\t\tres+=(str.charAt(i)-'0');\n }\n \treturn(res%9==0);\n }",
"int n=str.length();",
"n",
"str.length()",
"str.length",
"str",
"int res=0;",
"res",
"0",
"for(int i=0;i<n;i++)\n {\n\t\tres+=(str.charAt(i)-'0');\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\tres+=(str.charAt(i)-'0');\n }",
"{\n\t\tres+=(str.charAt(i)-'0');\n }",
"res+=(str.charAt(i)-'0')",
"res",
"(str.charAt(i)-'0')",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'0'",
"return(res%9==0);",
"(res%9==0)",
"res%9",
"res",
"9",
"0",
"String str",
"str",
"public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n \tString str=sc.next();\n if(checkDivofNine(str))\n {\n System.out.print(\"Yes\");\n }\n else\n {\n System.out.print(\"No\");\n }\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n \tString str=sc.next();\n if(checkDivofNine(str))\n {\n System.out.print(\"Yes\");\n }\n else\n {\n System.out.print(\"No\");\n }\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str=sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(checkDivofNine(str))\n {\n System.out.print(\"Yes\");\n }\n else\n {\n System.out.print(\"No\");\n }",
"checkDivofNine(str)",
"checkDivofNine",
"str",
"{\n System.out.print(\"Yes\");\n }",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.print(\"No\");\n }",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.io.*;
import java.util.*;
class Main
{
static boolean checkDivofNine(String str)
{
int n=str.length();
int res=0;
for(int i=0;i<n;i++)
{
res+=(str.charAt(i)-'0');
}
return(res%9==0);
}
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
String str=sc.next();
if(checkDivofNine(str))
{
System.out.print("Yes");
}
else
{
System.out.print("No");
}
}
} |
[
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,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
2,
18,
13,
13,
17,
0,
13,
2,
2,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
78,
8
],
[
78,
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
],
[
25,
27
],
[
11,
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
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
42,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
11,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
9,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"import java.io.FileNotFoundException;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws FileNotFoundException {\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\t\tchar[] C = S.toCharArray();\n\n\t\tint ans = 0;\n\n\t\tfor(int i=0;i<S.length();i++) {\n\n\t\t\tint x = C[i]-48;\n\t\t\tans = (ans + x)%9;\n\n\t\t}\n\t\tif(ans==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws FileNotFoundException {\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\t\tchar[] C = S.toCharArray();\n\n\t\tint ans = 0;\n\n\t\tfor(int i=0;i<S.length();i++) {\n\n\t\t\tint x = C[i]-48;\n\t\t\tans = (ans + x)%9;\n\n\t\t}\n\t\tif(ans==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws FileNotFoundException {\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\t\tchar[] C = S.toCharArray();\n\n\t\tint ans = 0;\n\n\t\tfor(int i=0;i<S.length();i++) {\n\n\t\t\tint x = C[i]-48;\n\t\t\tans = (ans + x)%9;\n\n\t\t}\n\t\tif(ans==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\t\tchar[] C = S.toCharArray();\n\n\t\tint ans = 0;\n\n\t\tfor(int i=0;i<S.length();i++) {\n\n\t\t\tint x = C[i]-48;\n\t\t\tans = (ans + x)%9;\n\n\t\t}\n\t\tif(ans==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"char[] C = S.toCharArray();",
"C",
"S.toCharArray()",
"S.toCharArray",
"S",
"int ans = 0;",
"ans",
"0",
"for(int i=0;i<S.length();i++) {\n\n\t\t\tint x = C[i]-48;\n\t\t\tans = (ans + x)%9;\n\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<S.length()",
"i",
"S.length()",
"S.length",
"S",
"i++",
"i++",
"i",
"{\n\n\t\t\tint x = C[i]-48;\n\t\t\tans = (ans + x)%9;\n\n\t\t}",
"{\n\n\t\t\tint x = C[i]-48;\n\t\t\tans = (ans + x)%9;\n\n\t\t}",
"int x = C[i]-48;",
"x",
"C[i]-48",
"C[i]",
"C",
"i",
"48",
"ans = (ans + x)%9",
"ans",
"(ans + x)%9",
"(ans + x)",
"ans",
"x",
"9",
"if(ans==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"ans==0",
"ans",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws FileNotFoundException {\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\t\tchar[] C = S.toCharArray();\n\n\t\tint ans = 0;\n\n\t\tfor(int i=0;i<S.length();i++) {\n\n\t\t\tint x = C[i]-48;\n\t\t\tans = (ans + x)%9;\n\n\t\t}\n\t\tif(ans==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws FileNotFoundException {\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\t\tchar[] C = S.toCharArray();\n\n\t\tint ans = 0;\n\n\t\tfor(int i=0;i<S.length();i++) {\n\n\t\t\tint x = C[i]-48;\n\t\t\tans = (ans + x)%9;\n\n\t\t}\n\t\tif(ans==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.FileNotFoundException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
// File file = new File("src/in.txt");
// Scanner sc = new Scanner(file);
Scanner sc = new Scanner(System.in);
String S = sc.next();
char[] C = S.toCharArray();
int ans = 0;
for(int i=0;i<S.length();i++) {
int x = C[i]-48;
ans = (ans + x)%9;
}
if(ans==0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
28,
13,
4,
18,
13,
30,
30,
41,
13,
2,
13,
17,
0,
13,
13,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
35,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tString num = scn.next();\n\t\tint res = 0;\n\t\tfor(char c:num.toCharArray())\n\t\t{\n\t\t\tint temp = (int)c-'0';\n\t\t\tres+=temp;\n\t\t}\n\t\tif(res%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tString num = scn.next();\n\t\tint res = 0;\n\t\tfor(char c:num.toCharArray())\n\t\t{\n\t\t\tint temp = (int)c-'0';\n\t\t\tres+=temp;\n\t\t}\n\t\tif(res%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tString num = scn.next();\n\t\tint res = 0;\n\t\tfor(char c:num.toCharArray())\n\t\t{\n\t\t\tint temp = (int)c-'0';\n\t\t\tres+=temp;\n\t\t}\n\t\tif(res%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"main",
"{\n\t\tScanner scn = new Scanner(System.in);\n\t\tString num = scn.next();\n\t\tint res = 0;\n\t\tfor(char c:num.toCharArray())\n\t\t{\n\t\t\tint temp = (int)c-'0';\n\t\t\tres+=temp;\n\t\t}\n\t\tif(res%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"String num = scn.next();",
"num",
"scn.next()",
"scn.next",
"scn",
"int res = 0;",
"res",
"0",
"for(char c:num.toCharArray())\n\t\t{\n\t\t\tint temp = (int)c-'0';\n\t\t\tres+=temp;\n\t\t}",
"char c",
"num.toCharArray()",
"num.toCharArray",
"num",
"{\n\t\t\tint temp = (int)c-'0';\n\t\t\tres+=temp;\n\t\t}",
"{\n\t\t\tint temp = (int)c-'0';\n\t\t\tres+=temp;\n\t\t}",
"int temp = (int)c-'0';",
"temp",
"(int)c-'0'",
"(int)c",
"'0'",
"res+=temp",
"res",
"temp",
"if(res%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");",
"res%9==0",
"res%9",
"res",
"9",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tString num = scn.next();\n\t\tint res = 0;\n\t\tfor(char c:num.toCharArray())\n\t\t{\n\t\t\tint temp = (int)c-'0';\n\t\t\tres+=temp;\n\t\t}\n\t\tif(res%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tString num = scn.next();\n\t\tint res = 0;\n\t\tfor(char c:num.toCharArray())\n\t\t{\n\t\t\tint temp = (int)c-'0';\n\t\t\tres+=temp;\n\t\t}\n\t\tif(res%9==0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
String num = scn.next();
int res = 0;
for(char c:num.toCharArray())
{
int temp = (int)c-'0';
res+=temp;
}
if(res%9==0)
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
25,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
35,
48
],
[
48,
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 sc = new Scanner(System.in);\n \n String n = sc.next();\n char[] c = n.toCharArray();\n \n int sum = 0;\n for(char c2: c){\n sum += (c2 - '0');\n }\n \n if(sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n String n = sc.next();\n char[] c = n.toCharArray();\n \n int sum = 0;\n for(char c2: c){\n sum += (c2 - '0');\n }\n \n if(sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n String n = sc.next();\n char[] c = n.toCharArray();\n \n int sum = 0;\n for(char c2: c){\n sum += (c2 - '0');\n }\n \n if(sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n String n = sc.next();\n char[] c = n.toCharArray();\n \n int sum = 0;\n for(char c2: c){\n sum += (c2 - '0');\n }\n \n if(sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"char[] c = n.toCharArray();",
"c",
"n.toCharArray()",
"n.toCharArray",
"n",
"int sum = 0;",
"sum",
"0",
"for(char c2: c){\n sum += (c2 - '0');\n }",
"char c2",
"c",
"{\n sum += (c2 - '0');\n }",
"{\n sum += (c2 - '0');\n }",
"sum += (c2 - '0')",
"sum",
"(c2 - '0')",
"c2",
"'0'",
"if(sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String n = sc.next();
char[] c = n.toCharArray();
int sum = 0;
for(char c2: c){
sum += (c2 - '0');
}
if(sum % 9 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
2,
4,
18,
13,
17,
42,
2,
13,
17,
30,
41,
13,
2,
4,
18,
13,
13,
17,
0,
13,
2,
2,
13,
13,
17,
40,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
14,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
37,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
37,
53
],
[
53,
54
],
[
14,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
12,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
]
| [
"/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\npublic class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t String n = scanner.next();\n\t \n\t int sum = 0;\n\t int i = n.length() - 1;\n\t while(i >=0){\n\t \tint num = n.charAt(i) - '0';\n\t \tsum = (sum + num) % 9;\n\t \ti--;\n\t }\n\t \n\t if(sum == 0)\n\t System.out.println(\"Yes\");\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t String n = scanner.next();\n\t \n\t int sum = 0;\n\t int i = n.length() - 1;\n\t while(i >=0){\n\t \tint num = n.charAt(i) - '0';\n\t \tsum = (sum + num) % 9;\n\t \ti--;\n\t }\n\t \n\t if(sum == 0)\n\t System.out.println(\"Yes\");\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t String n = scanner.next();\n\t \n\t int sum = 0;\n\t int i = n.length() - 1;\n\t while(i >=0){\n\t \tint num = n.charAt(i) - '0';\n\t \tsum = (sum + num) % 9;\n\t \ti--;\n\t }\n\t \n\t if(sum == 0)\n\t System.out.println(\"Yes\");\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"main",
"{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t String n = scanner.next();\n\t \n\t int sum = 0;\n\t int i = n.length() - 1;\n\t while(i >=0){\n\t \tint num = n.charAt(i) - '0';\n\t \tsum = (sum + num) % 9;\n\t \ti--;\n\t }\n\t \n\t if(sum == 0)\n\t System.out.println(\"Yes\");\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String n = scanner.next();",
"n",
"scanner.next()",
"scanner.next",
"scanner",
"int sum = 0;",
"sum",
"0",
"int i = n.length() - 1;",
"i",
"n.length() - 1",
"n.length()",
"n.length",
"n",
"1",
"while(i >=0){\n\t \tint num = n.charAt(i) - '0';\n\t \tsum = (sum + num) % 9;\n\t \ti--;\n\t }",
"i >=0",
"i",
"0",
"{\n\t \tint num = n.charAt(i) - '0';\n\t \tsum = (sum + num) % 9;\n\t \ti--;\n\t }",
"int num = n.charAt(i) - '0';",
"num",
"n.charAt(i) - '0'",
"n.charAt(i)",
"n.charAt",
"n",
"i",
"'0'",
"sum = (sum + num) % 9",
"sum",
"(sum + num) % 9",
"(sum + num)",
"sum",
"num",
"9",
"i--",
"i",
"if(sum == 0)\n\t System.out.println(\"Yes\");\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"No\");",
"sum == 0",
"sum",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t String n = scanner.next();\n\t \n\t int sum = 0;\n\t int i = n.length() - 1;\n\t while(i >=0){\n\t \tint num = n.charAt(i) - '0';\n\t \tsum = (sum + num) % 9;\n\t \ti--;\n\t }\n\t \n\t if(sum == 0)\n\t System.out.println(\"Yes\");\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t String n = scanner.next();\n\t \n\t int sum = 0;\n\t int i = n.length() - 1;\n\t while(i >=0){\n\t \tint num = n.charAt(i) - '0';\n\t \tsum = (sum + num) % 9;\n\t \ti--;\n\t }\n\t \n\t if(sum == 0)\n\t System.out.println(\"Yes\");\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}",
"Main"
]
| /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
Scanner scanner = new Scanner(System.in);
String n = scanner.next();
int sum = 0;
int i = n.length() - 1;
while(i >=0){
int num = n.charAt(i) - '0';
sum = (sum + num) % 9;
i--;
}
if(sum == 0)
System.out.println("Yes");
else
System.out.println("No");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
13,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
73,
8
],
[
73,
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
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
37,
44
],
[
44,
45
],
[
44,
46
],
[
37,
47
],
[
47,
48
],
[
47,
49
],
[
11,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
50,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
9,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.*; \nimport java.lang.*; \n\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n \n String N = scan.next();\n int sum = 0;\n \n for(int i=0; i<N.length(); i++){\n char p = N.charAt(i);\n int j = (int)p;\n \n sum += j;\n }\n \n if(sum%3==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n \n String N = scan.next();\n int sum = 0;\n \n for(int i=0; i<N.length(); i++){\n char p = N.charAt(i);\n int j = (int)p;\n \n sum += j;\n }\n \n if(sum%3==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n \n String N = scan.next();\n int sum = 0;\n \n for(int i=0; i<N.length(); i++){\n char p = N.charAt(i);\n int j = (int)p;\n \n sum += j;\n }\n \n if(sum%3==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n \n String N = scan.next();\n int sum = 0;\n \n for(int i=0; i<N.length(); i++){\n char p = N.charAt(i);\n int j = (int)p;\n \n sum += j;\n }\n \n if(sum%3==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String N = scan.next();",
"N",
"scan.next()",
"scan.next",
"scan",
"int sum = 0;",
"sum",
"0",
"for(int i=0; i<N.length(); i++){\n char p = N.charAt(i);\n int j = (int)p;\n \n sum += j;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N.length()",
"i",
"N.length()",
"N.length",
"N",
"i++",
"i++",
"i",
"{\n char p = N.charAt(i);\n int j = (int)p;\n \n sum += j;\n }",
"{\n char p = N.charAt(i);\n int j = (int)p;\n \n sum += j;\n }",
"char p = N.charAt(i);",
"p",
"N.charAt(i)",
"N.charAt",
"N",
"i",
"int j = (int)p;",
"j",
"(int)p",
"sum += j",
"sum",
"j",
"if(sum%3==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"sum%3==0",
"sum%3",
"sum",
"3",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n \n String N = scan.next();\n int sum = 0;\n \n for(int i=0; i<N.length(); i++){\n char p = N.charAt(i);\n int j = (int)p;\n \n sum += j;\n }\n \n if(sum%3==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n \n String N = scan.next();\n int sum = 0;\n \n for(int i=0; i<N.length(); i++){\n char p = N.charAt(i);\n int j = (int)p;\n \n sum += j;\n }\n \n if(sum%3==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
]
| import java.util.*;
import java.lang.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String N = scan.next();
int sum = 0;
for(int i=0; i<N.length(); i++){
char p = N.charAt(i);
int j = (int)p;
sum += j;
}
if(sum%3==0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
12,
13,
30,
4,
18,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
13,
4,
13,
17,
12,
13,
30,
29,
4,
13,
4,
13,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
29,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
29,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
29,
4,
18,
13,
13,
13,
14,
2,
13,
13,
30,
29,
4,
18,
13,
13,
13,
30,
37,
20,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
29,
20,
23,
13,
23,
13,
12,
13,
30,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
13,
4,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
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,
13,
8,
2,
2,
13,
17,
17,
17,
17,
6,
13,
41,
13,
20,
41,
13,
17,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
30,
42,
2,
0,
13,
4,
18,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
12,
13,
30,
29,
2,
13,
13,
12,
13,
30,
14,
4,
13,
30,
29,
4,
18,
13,
40,
13,
30,
37,
20,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
375,
11
],
[
375,
12
],
[
12,
13
],
[
12,
14
],
[
375,
15
],
[
15,
16
],
[
15,
17
],
[
375,
18
],
[
18,
19
],
[
18,
20
],
[
375,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
375,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
27,
34
],
[
34,
35
],
[
375,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
38,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
36,
51
],
[
51,
52
],
[
375,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
375,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
375,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
375,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
375,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
375,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
98,
102
],
[
375,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
107,
111
],
[
375,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
122,
132
],
[
132,
133
],
[
133,
134
],
[
122,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
114,
147
],
[
147,
148
],
[
375,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
159,
169
],
[
169,
170
],
[
170,
171
],
[
159,
172
],
[
173,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
151,
184
],
[
184,
185
],
[
375,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
191,
194
],
[
188,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
201,
204
],
[
201,
205
],
[
195,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
212,
215
],
[
212,
216
],
[
206,
217
],
[
217,
218
],
[
218,
219
],
[
186,
220
],
[
220,
221
],
[
186,
222
],
[
222,
223
],
[
375,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
229,
232
],
[
226,
233
],
[
233,
234
],
[
224,
235
],
[
235,
236
],
[
224,
237
],
[
237,
238
],
[
375,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
242,
245
],
[
242,
246
],
[
241,
247
],
[
247,
248
],
[
248,
249
],
[
247,
250
],
[
247,
251
],
[
241,
252
],
[
252,
253
],
[
253,
254
],
[
252,
255
],
[
252,
256
],
[
241,
257
],
[
257,
258
],
[
241,
259
],
[
259,
260
],
[
239,
261
],
[
261,
262
],
[
375,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
265,
270
],
[
270,
271
],
[
270,
272
],
[
265,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
273,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
281,
282
],
[
273,
283
],
[
283,
284
],
[
284,
285
],
[
273,
286
],
[
287,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
291,
292
],
[
290,
293
],
[
293,
294
],
[
294,
295
],
[
293,
296
],
[
293,
297
],
[
297,
298
],
[
297,
299
],
[
265,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
302,
308
],
[
302,
309
],
[
375,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
312,
314
],
[
310,
315
],
[
315,
316
],
[
315,
317
],
[
310,
318
],
[
318,
319
],
[
310,
320
],
[
320,
321
],
[
310,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
324,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
328,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
338,
339
],
[
334,
340
],
[
333,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
342,
345
],
[
324,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
349,
350
],
[
310,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
310,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
361,
362
],
[
362,
363
],
[
361,
364
],
[
364,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
366,
369
],
[
369,
370
],
[
361,
371
],
[
371,
372
],
[
372,
373
],
[
0,
374
],
[
374,
375
],
[
374,
376
]
]
| [
"import java.util.*; import java.io.*; import java.math.*;\npublic class Main{\n\t//Don't have to see. start------------------------------------------\n\tstatic class InputIterator{\n\t\tArrayList<String> inputLine = new ArrayList<String>(1024);\n\t\tint index = 0; int max; String read;\n\t\tInputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}\n\t\tboolean hasNext(){return (index < max);}\n\t\tString next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}\n\t}\n\tstatic HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>();\n\tstatic InputIterator ii = new InputIterator();//This class cannot be used in reactive problem.\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic void flush(){out.flush();}\n\tstatic void myout(Object t){out.println(t);}\n\tstatic void myerr(Object t){System.err.print(\"debug:\");System.err.println(t);}\n\tstatic String next(){return ii.next();}\n\tstatic boolean hasNext(){return ii.hasNext();}\n\tstatic int nextInt(){return Integer.parseInt(next());}\n\tstatic long nextLong(){return Long.parseLong(next());}\n\tstatic double nextDouble(){return Double.parseDouble(next());}\n\tstatic ArrayList<String> nextStrArray(){return myconv(next(), 8);}\n\tstatic ArrayList<String> nextCharArray(){return myconv(next(), 0);}\n\tstatic ArrayList<Integer> nextIntArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic ArrayList<Long> nextLongArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic String myconv(Object list, int no){//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}\n\tstatic ArrayList<String> myconv(String str, int no){//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}\n\tpublic static void main(String[] args){\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}\n\t//Don't have to see. end------------------------------------------\n\tstatic void solve(){//Here is the main function\n\t\tString s = next();\n\t\tint count = 0;\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tcount += Integer.parseInt(s.substring(i, i + 1));\n\t\t}\n\t\tmyout((count % 9 == 0) ? \"Yes\" : \"No\");\n\t}\n\t//Method addition frame start\n\n\n\n\t//Method addition frame end\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main{\n\t//Don't have to see. start------------------------------------------\n\tstatic class InputIterator{\n\t\tArrayList<String> inputLine = new ArrayList<String>(1024);\n\t\tint index = 0; int max; String read;\n\t\tInputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}\n\t\tboolean hasNext(){return (index < max);}\n\t\tString next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}\n\t}\n\tstatic HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>();\n\tstatic InputIterator ii = new InputIterator();//This class cannot be used in reactive problem.\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic void flush(){out.flush();}\n\tstatic void myout(Object t){out.println(t);}\n\tstatic void myerr(Object t){System.err.print(\"debug:\");System.err.println(t);}\n\tstatic String next(){return ii.next();}\n\tstatic boolean hasNext(){return ii.hasNext();}\n\tstatic int nextInt(){return Integer.parseInt(next());}\n\tstatic long nextLong(){return Long.parseLong(next());}\n\tstatic double nextDouble(){return Double.parseDouble(next());}\n\tstatic ArrayList<String> nextStrArray(){return myconv(next(), 8);}\n\tstatic ArrayList<String> nextCharArray(){return myconv(next(), 0);}\n\tstatic ArrayList<Integer> nextIntArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic ArrayList<Long> nextLongArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic String myconv(Object list, int no){//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}\n\tstatic ArrayList<String> myconv(String str, int no){//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}\n\tpublic static void main(String[] args){\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}\n\t//Don't have to see. end------------------------------------------\n\tstatic void solve(){//Here is the main function\n\t\tString s = next();\n\t\tint count = 0;\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tcount += Integer.parseInt(s.substring(i, i + 1));\n\t\t}\n\t\tmyout((count % 9 == 0) ? \"Yes\" : \"No\");\n\t}\n\t//Method addition frame start\n\n\n\n\t//Method addition frame end\n}",
"Main",
"static HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>();",
"CONVSTR",
"new HashMap<Integer, String>()",
"static InputIterator ii = new InputIterator();//This class cannot be used in reactive problem.",
"ii",
"new InputIterator()",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"static void flush(){out.flush();}",
"flush",
"{out.flush();}",
"out.flush()",
"out.flush",
"out",
"static void myout(Object t){out.println(t);}",
"myout",
"{out.println(t);}",
"out.println(t)",
"out.println",
"out",
"t",
"Object t",
"t",
"static void myerr(Object t){System.err.print(\"debug:\");System.err.println(t);}",
"myerr",
"{System.err.print(\"debug:\");System.err.println(t);}",
"System.err.print(\"debug:\")",
"System.err.print",
"System.err",
"System",
"System.err",
"\"debug:\"",
"System.err.println(t)",
"System.err.println",
"System.err",
"System",
"System.err",
"t",
"Object t",
"t",
"static String next(){return ii.next();}",
"next",
"{return ii.next();}",
"return ii.next();",
"ii.next()",
"ii.next",
"ii",
"static boolean hasNext(){return ii.hasNext();}",
"hasNext",
"{return ii.hasNext();}",
"return ii.hasNext();",
"ii.hasNext()",
"ii.hasNext",
"ii",
"static int nextInt(){return Integer.parseInt(next());}",
"nextInt",
"{return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"static long nextLong(){return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"static double nextDouble(){return Double.parseDouble(next());}",
"nextDouble",
"{return Double.parseDouble(next());}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"static ArrayList<String> nextStrArray(){return myconv(next(), 8);}",
"nextStrArray",
"{return myconv(next(), 8);}",
"return myconv(next(), 8);",
"myconv(next(), 8)",
"myconv",
"next()",
"next",
"8",
"static ArrayList<String> nextCharArray(){return myconv(next(), 0);}",
"nextCharArray",
"{return myconv(next(), 0);}",
"return myconv(next(), 0);",
"myconv(next(), 0)",
"myconv",
"next()",
"next",
"0",
"static ArrayList<Integer> nextIntArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}",
"nextIntArray",
"{\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}",
"ArrayList<String> input = nextStrArray();",
"input",
"nextStrArray()",
"nextStrArray",
"ArrayList<Integer> ret = new ArrayList<Integer>(input.size());",
"ret",
"new ArrayList<Integer>(input.size())",
"for(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < input.size()",
"i",
"input.size()",
"input.size",
"input",
"i++",
"i++",
"i",
"{\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}",
"{\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}",
"ret.add(Integer.parseInt(input.get(i)))",
"ret.add",
"ret",
"Integer.parseInt(input.get(i))",
"Integer.parseInt",
"Integer",
"input.get(i)",
"input.get",
"input",
"i",
"return ret;",
"ret",
"static ArrayList<Long> nextLongArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}",
"nextLongArray",
"{\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}",
"ArrayList<String> input = nextStrArray();",
"input",
"nextStrArray()",
"nextStrArray",
"ArrayList<Long> ret = new ArrayList<Long>(input.size());",
"ret",
"new ArrayList<Long>(input.size())",
"for(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < input.size()",
"i",
"input.size()",
"input.size",
"input",
"i++",
"i++",
"i",
"{\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}",
"{\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}",
"ret.add(Long.parseLong(input.get(i)))",
"ret.add",
"ret",
"Long.parseLong(input.get(i))",
"Long.parseLong",
"Long",
"input.get(i)",
"input.get",
"input",
"i",
"return ret;",
"ret",
"static String myconv(Object list, int no){//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}",
"myconv",
"{//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}",
"String joinString = CONVSTR.get(no);",
"joinString",
"CONVSTR.get(no)",
"CONVSTR.get",
"CONVSTR",
"no",
"if(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}",
"list instanceof String[]",
"list",
"String[]",
"{\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}",
"return String.join(joinString, (String[])list);",
"String.join(joinString, (String[])list)",
"String.join",
"String",
"joinString",
"(String[])list",
"if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}",
"list instanceof ArrayList",
"list",
"ArrayList",
"{\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}",
"return String.join(joinString, (ArrayList)list);",
"String.join(joinString, (ArrayList)list)",
"String.join",
"String",
"joinString",
"(ArrayList)list",
"{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}",
"throw new ClassCastException(\"Don't join\");",
"new ClassCastException(\"Don't join\")",
"Object list",
"list",
"int no",
"no",
"static ArrayList<String> myconv(String str, int no){//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}",
"myconv",
"{//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}",
"String splitString = CONVSTR.get(no);",
"splitString",
"CONVSTR.get(no)",
"CONVSTR.get",
"CONVSTR",
"no",
"return new ArrayList<String>(Arrays.asList(str.split(splitString)));",
"new ArrayList<String>(Arrays.asList(str.split(splitString)))",
"String str",
"str",
"int no",
"no",
"public static void main(String[] args){\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}",
"main",
"{\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}",
"CONVSTR.put(8, \" \")",
"CONVSTR.put",
"CONVSTR",
"8",
"\" \"",
"CONVSTR.put(9, \"\\n\")",
"CONVSTR.put",
"CONVSTR",
"9",
"\"\\n\"",
"CONVSTR.put(0, \"\")",
"CONVSTR.put",
"CONVSTR",
"0",
"\"\"",
"solve()",
"solve",
"flush()",
"flush",
"String[] args",
"args",
"//Don't have to see. end------------------------------------------\n\tstatic void solve(){//Here is the main function\n\t\tString s = next();\n\t\tint count = 0;\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tcount += Integer.parseInt(s.substring(i, i + 1));\n\t\t}\n\t\tmyout((count % 9 == 0) ? \"Yes\" : \"No\");\n\t}",
"solve",
"{//Here is the main function\n\t\tString s = next();\n\t\tint count = 0;\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tcount += Integer.parseInt(s.substring(i, i + 1));\n\t\t}\n\t\tmyout((count % 9 == 0) ? \"Yes\" : \"No\");\n\t}",
"String s = next();",
"s",
"next()",
"next",
"int count = 0;",
"count",
"0",
"for(int i = 0; i < s.length(); i++){\n\t\t\tcount += Integer.parseInt(s.substring(i, i + 1));\n\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\tcount += Integer.parseInt(s.substring(i, i + 1));\n\t\t}",
"{\n\t\t\tcount += Integer.parseInt(s.substring(i, i + 1));\n\t\t}",
"count += Integer.parseInt(s.substring(i, i + 1))",
"count",
"Integer.parseInt(s.substring(i, i + 1))",
"Integer.parseInt",
"Integer",
"s.substring(i, i + 1)",
"s.substring",
"s",
"i",
"i + 1",
"i",
"1",
"myout((count % 9 == 0) ? \"Yes\" : \"No\")",
"myout",
"(count % 9 == 0) ? \"Yes\" : \"No\"",
"(count % 9 == 0)",
"count % 9",
"count",
"9",
"0",
"\"Yes\"",
"\"No\"",
"static class InputIterator{\n\t\tArrayList<String> inputLine = new ArrayList<String>(1024);\n\t\tint index = 0; int max; String read;\n\t\tInputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}\n\t\tboolean hasNext(){return (index < max);}\n\t\tString next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}\n\t}",
"InputIterator",
"ArrayList<String> inputLine = new ArrayList<String>(1024);",
"inputLine",
"new ArrayList<String>(1024)",
"int index = 0;",
"index",
"0",
"int max;",
"max",
"String read;",
"read",
"InputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}",
"InputIterator",
"{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}",
"catch(IOException e){}",
"IOException e",
"{}",
"{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}",
"while((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}",
"(read = br.readLine()) != null",
"(read = br.readLine())",
"read",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}",
"inputLine.add(read)",
"inputLine.add",
"inputLine",
"read",
"max = inputLine.size()",
"max",
"inputLine.size()",
"inputLine.size",
"inputLine",
"boolean hasNext(){return (index < max);}",
"hasNext",
"{return (index < max);}",
"return (index < max);",
"(index < max)",
"index",
"max",
"String next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}",
"next",
"{\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}",
"if(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}",
"hasNext()",
"hasNext",
"{\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}",
"return inputLine.get(index++);",
"inputLine.get(index++)",
"inputLine.get",
"inputLine",
"index++",
"index",
"{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}",
"throw new IndexOutOfBoundsException(\"There is no more input\");",
"new IndexOutOfBoundsException(\"There is no more input\")",
"public class Main{\n\t//Don't have to see. start------------------------------------------\n\tstatic class InputIterator{\n\t\tArrayList<String> inputLine = new ArrayList<String>(1024);\n\t\tint index = 0; int max; String read;\n\t\tInputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}\n\t\tboolean hasNext(){return (index < max);}\n\t\tString next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}\n\t}\n\tstatic HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>();\n\tstatic InputIterator ii = new InputIterator();//This class cannot be used in reactive problem.\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic void flush(){out.flush();}\n\tstatic void myout(Object t){out.println(t);}\n\tstatic void myerr(Object t){System.err.print(\"debug:\");System.err.println(t);}\n\tstatic String next(){return ii.next();}\n\tstatic boolean hasNext(){return ii.hasNext();}\n\tstatic int nextInt(){return Integer.parseInt(next());}\n\tstatic long nextLong(){return Long.parseLong(next());}\n\tstatic double nextDouble(){return Double.parseDouble(next());}\n\tstatic ArrayList<String> nextStrArray(){return myconv(next(), 8);}\n\tstatic ArrayList<String> nextCharArray(){return myconv(next(), 0);}\n\tstatic ArrayList<Integer> nextIntArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic ArrayList<Long> nextLongArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic String myconv(Object list, int no){//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}\n\tstatic ArrayList<String> myconv(String str, int no){//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}\n\tpublic static void main(String[] args){\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}\n\t//Don't have to see. end------------------------------------------\n\tstatic void solve(){//Here is the main function\n\t\tString s = next();\n\t\tint count = 0;\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tcount += Integer.parseInt(s.substring(i, i + 1));\n\t\t}\n\t\tmyout((count % 9 == 0) ? \"Yes\" : \"No\");\n\t}\n\t//Method addition frame start\n\n\n\n\t//Method addition frame end\n}",
"public class Main{\n\t//Don't have to see. start------------------------------------------\n\tstatic class InputIterator{\n\t\tArrayList<String> inputLine = new ArrayList<String>(1024);\n\t\tint index = 0; int max; String read;\n\t\tInputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}\n\t\tboolean hasNext(){return (index < max);}\n\t\tString next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}\n\t}\n\tstatic HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>();\n\tstatic InputIterator ii = new InputIterator();//This class cannot be used in reactive problem.\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic void flush(){out.flush();}\n\tstatic void myout(Object t){out.println(t);}\n\tstatic void myerr(Object t){System.err.print(\"debug:\");System.err.println(t);}\n\tstatic String next(){return ii.next();}\n\tstatic boolean hasNext(){return ii.hasNext();}\n\tstatic int nextInt(){return Integer.parseInt(next());}\n\tstatic long nextLong(){return Long.parseLong(next());}\n\tstatic double nextDouble(){return Double.parseDouble(next());}\n\tstatic ArrayList<String> nextStrArray(){return myconv(next(), 8);}\n\tstatic ArrayList<String> nextCharArray(){return myconv(next(), 0);}\n\tstatic ArrayList<Integer> nextIntArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic ArrayList<Long> nextLongArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic String myconv(Object list, int no){//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}\n\tstatic ArrayList<String> myconv(String str, int no){//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}\n\tpublic static void main(String[] args){\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}\n\t//Don't have to see. end------------------------------------------\n\tstatic void solve(){//Here is the main function\n\t\tString s = next();\n\t\tint count = 0;\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tcount += Integer.parseInt(s.substring(i, i + 1));\n\t\t}\n\t\tmyout((count % 9 == 0) ? \"Yes\" : \"No\");\n\t}\n\t//Method addition frame start\n\n\n\n\t//Method addition frame end\n}",
"Main"
]
| import java.util.*; import java.io.*; import java.math.*;
public class Main{
//Don't have to see. start------------------------------------------
static class InputIterator{
ArrayList<String> inputLine = new ArrayList<String>(1024);
int index = 0; int max; String read;
InputIterator(){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try{
while((read = br.readLine()) != null){
inputLine.add(read);
}
}catch(IOException e){}
max = inputLine.size();
}
boolean hasNext(){return (index < max);}
String next(){
if(hasNext()){
return inputLine.get(index++);
}else{
throw new IndexOutOfBoundsException("There is no more input");
}
}
}
static HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>();
static InputIterator ii = new InputIterator();//This class cannot be used in reactive problem.
static PrintWriter out = new PrintWriter(System.out);
static void flush(){out.flush();}
static void myout(Object t){out.println(t);}
static void myerr(Object t){System.err.print("debug:");System.err.println(t);}
static String next(){return ii.next();}
static boolean hasNext(){return ii.hasNext();}
static int nextInt(){return Integer.parseInt(next());}
static long nextLong(){return Long.parseLong(next());}
static double nextDouble(){return Double.parseDouble(next());}
static ArrayList<String> nextStrArray(){return myconv(next(), 8);}
static ArrayList<String> nextCharArray(){return myconv(next(), 0);}
static ArrayList<Integer> nextIntArray(){
ArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());
for(int i = 0; i < input.size(); i++){
ret.add(Integer.parseInt(input.get(i)));
}
return ret;
}
static ArrayList<Long> nextLongArray(){
ArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());
for(int i = 0; i < input.size(); i++){
ret.add(Long.parseLong(input.get(i)));
}
return ret;
}
static String myconv(Object list, int no){//only join
String joinString = CONVSTR.get(no);
if(list instanceof String[]){
return String.join(joinString, (String[])list);
}else if(list instanceof ArrayList){
return String.join(joinString, (ArrayList)list);
}else{
throw new ClassCastException("Don't join");
}
}
static ArrayList<String> myconv(String str, int no){//only split
String splitString = CONVSTR.get(no);
return new ArrayList<String>(Arrays.asList(str.split(splitString)));
}
public static void main(String[] args){
CONVSTR.put(8, " "); CONVSTR.put(9, "\n"); CONVSTR.put(0, "");
solve();flush();
}
//Don't have to see. end------------------------------------------
static void solve(){//Here is the main function
String s = next();
int count = 0;
for(int i = 0; i < s.length(); i++){
count += Integer.parseInt(s.substring(i, i + 1));
}
myout((count % 9 == 0) ? "Yes" : "No");
}
//Method addition frame start
//Method addition frame end
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
28,
13,
4,
18,
13,
17,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
20,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
34,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \n String n = sc.nextLine();\n \n int sum = 0;\n for(String s:n.split(\"\")){\n sum += Integer.parseInt(s);\n }\n \n if(sum%9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \n String n = sc.nextLine();\n \n int sum = 0;\n for(String s:n.split(\"\")){\n sum += Integer.parseInt(s);\n }\n \n if(sum%9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \n String n = sc.nextLine();\n \n int sum = 0;\n for(String s:n.split(\"\")){\n sum += Integer.parseInt(s);\n }\n \n if(sum%9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \n String n = sc.nextLine();\n \n int sum = 0;\n for(String s:n.split(\"\")){\n sum += Integer.parseInt(s);\n }\n \n if(sum%9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n = sc.nextLine();",
"n",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int sum = 0;",
"sum",
"0",
"for(String s:n.split(\"\")){\n sum += Integer.parseInt(s);\n }",
"String s",
"n.split(\"\")",
"n.split",
"n",
"\"\"",
"{\n sum += Integer.parseInt(s);\n }",
"{\n sum += Integer.parseInt(s);\n }",
"sum += Integer.parseInt(s)",
"sum",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"if(sum%9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"sum%9 == 0",
"sum%9",
"sum",
"9",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \n String n = sc.nextLine();\n \n int sum = 0;\n for(String s:n.split(\"\")){\n sum += Integer.parseInt(s);\n }\n \n if(sum%9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"public class Main{\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \n String n = sc.nextLine();\n \n int sum = 0;\n for(String s:n.split(\"\")){\n sum += Integer.parseInt(s);\n }\n \n if(sum%9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String n = sc.nextLine();
int sum = 0;
for(String s:n.split("")){
sum += Integer.parseInt(s);
}
if(sum%9 == 0)
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
20,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
17,
28,
13,
4,
18,
13,
30,
30,
0,
13,
4,
18,
13,
13,
29,
8,
2,
2,
13,
17,
17,
17,
17,
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
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
6,
26
],
[
26,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
36,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
32,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
50,
57
],
[
30,
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 sc = new Scanner(System.in);\n String N = sc.next();\n System.out.println(new Solver().solve(N));\n }\n}\n\nclass Solver {\n public String solve(String N){\n long number = 0;\n for(char c: N.toCharArray()){\n number += Character.getNumericValue(c);\n }\n\n return number % 9 == 0 ? \"Yes\" : \"No\";\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 N = sc.next();\n System.out.println(new Solver().solve(N));\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n System.out.println(new Solver().solve(N));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n System.out.println(new Solver().solve(N));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String N = sc.next();",
"N",
"sc.next()",
"sc.next",
"sc",
"System.out.println(new Solver().solve(N))",
"System.out.println",
"System.out",
"System",
"System.out",
"new Solver().solve(N)",
"new Solver().solve",
"new Solver()",
"N",
"String args[]",
"args",
"class Solver {\n public String solve(String N){\n long number = 0;\n for(char c: N.toCharArray()){\n number += Character.getNumericValue(c);\n }\n\n return number % 9 == 0 ? \"Yes\" : \"No\";\n }\n}",
"Solver",
"public String solve(String N){\n long number = 0;\n for(char c: N.toCharArray()){\n number += Character.getNumericValue(c);\n }\n\n return number % 9 == 0 ? \"Yes\" : \"No\";\n }",
"solve",
"{\n long number = 0;\n for(char c: N.toCharArray()){\n number += Character.getNumericValue(c);\n }\n\n return number % 9 == 0 ? \"Yes\" : \"No\";\n }",
"long number = 0;",
"number",
"0",
"for(char c: N.toCharArray()){\n number += Character.getNumericValue(c);\n }",
"char c",
"N.toCharArray()",
"N.toCharArray",
"N",
"{\n number += Character.getNumericValue(c);\n }",
"{\n number += Character.getNumericValue(c);\n }",
"number += Character.getNumericValue(c)",
"number",
"Character.getNumericValue(c)",
"Character.getNumericValue",
"Character",
"c",
"return number % 9 == 0 ? \"Yes\" : \"No\";",
"number % 9 == 0 ? \"Yes\" : \"No\"",
"number % 9 == 0",
"number % 9",
"number",
"9",
"0",
"\"Yes\"",
"\"No\"",
"String N",
"N",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n System.out.println(new Solver().solve(N));\n }\n}",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String N = sc.next();\n System.out.println(new Solver().solve(N));\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
String N = sc.next();
System.out.println(new Solver().solve(N));
}
}
class Solver {
public String solve(String N){
long number = 0;
for(char c: N.toCharArray()){
number += Character.getNumericValue(c);
}
return number % 9 == 0 ? "Yes" : "No";
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
0,
13,
2,
13,
2,
4,
18,
13,
4,
18,
4,
18,
13,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
34,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
56,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tint tmp=0;\n \tString ttt;\n\t\tfor(int i=1;i<9;i++){\n \tttt = String.valueOf(i);;\n\t\t\ttmp+=i*(S.length() - S.replace(ttt,\"\").length());\n\t\t}\n\t\tif(tmp%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n }else{\n\t\t\tSystem.out.println(\"No\");\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 S=sc.next();\n\t\tint tmp=0;\n \tString ttt;\n\t\tfor(int i=1;i<9;i++){\n \tttt = String.valueOf(i);;\n\t\t\ttmp+=i*(S.length() - S.replace(ttt,\"\").length());\n\t\t}\n\t\tif(tmp%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n }else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tint tmp=0;\n \tString ttt;\n\t\tfor(int i=1;i<9;i++){\n \tttt = String.valueOf(i);;\n\t\t\ttmp+=i*(S.length() - S.replace(ttt,\"\").length());\n\t\t}\n\t\tif(tmp%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n }else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tint tmp=0;\n \tString ttt;\n\t\tfor(int i=1;i<9;i++){\n \tttt = String.valueOf(i);;\n\t\t\ttmp+=i*(S.length() - S.replace(ttt,\"\").length());\n\t\t}\n\t\tif(tmp%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n }else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S=sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"int tmp=0;",
"tmp",
"0",
"String ttt;",
"ttt",
"for(int i=1;i<9;i++){\n \tttt = String.valueOf(i);;\n\t\t\ttmp+=i*(S.length() - S.replace(ttt,\"\").length());\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<9",
"i",
"9",
"i++",
"i++",
"i",
"{\n \tttt = String.valueOf(i);;\n\t\t\ttmp+=i*(S.length() - S.replace(ttt,\"\").length());\n\t\t}",
"{\n \tttt = String.valueOf(i);;\n\t\t\ttmp+=i*(S.length() - S.replace(ttt,\"\").length());\n\t\t}",
"ttt = String.valueOf(i)",
"ttt",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"tmp+=i*(S.length() - S.replace(ttt,\"\").length())",
"tmp",
"i*(S.length() - S.replace(ttt,\"\").length())",
"i",
"(S.length() - S.replace(ttt,\"\").length())",
"S.length()",
"S.length",
"S",
"S.replace(ttt,\"\").length()",
"S.replace(ttt,\"\").length",
"S.replace(ttt,\"\")",
"S.replace",
"S",
"ttt",
"\"\"",
"if(tmp%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n }else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"tmp%9==0",
"tmp%9",
"tmp",
"9",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tint tmp=0;\n \tString ttt;\n\t\tfor(int i=1;i<9;i++){\n \tttt = String.valueOf(i);;\n\t\t\ttmp+=i*(S.length() - S.replace(ttt,\"\").length());\n\t\t}\n\t\tif(tmp%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n }else{\n\t\t\tSystem.out.println(\"No\");\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 S=sc.next();\n\t\tint tmp=0;\n \tString ttt;\n\t\tfor(int i=1;i<9;i++){\n \tttt = String.valueOf(i);;\n\t\t\ttmp+=i*(S.length() - S.replace(ttt,\"\").length());\n\t\t}\n\t\tif(tmp%9==0){\n\t\t\tSystem.out.println(\"Yes\");\n }else{\n\t\t\tSystem.out.println(\"No\");\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 S=sc.next();
int tmp=0;
String ttt;
for(int i=1;i<9;i++){
ttt = String.valueOf(i);;
tmp+=i*(S.length() - S.replace(ttt,"").length());
}
if(tmp%9==0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
13,
40,
17,
30,
14,
2,
13,
17,
3,
0,
18,
13,
40,
13,
13,
29,
20,
12,
13,
30,
41,
13,
4,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
13,
41,
13,
20,
4,
18,
13,
13,
0,
13,
4,
13,
42,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
13,
17,
30,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
0,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
13,
14,
2,
13,
40,
17,
0,
18,
13,
17,
40,
17,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
554,
8
],
[
554,
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
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
39,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
45,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
9,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
67,
74
],
[
74,
75
],
[
67,
76
],
[
76,
77
],
[
67,
78
],
[
78,
79
],
[
67,
80
],
[
80,
81
],
[
67,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
84,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
67,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
99,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
97,
112
],
[
112,
113
],
[
67,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
116,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
127,
132
],
[
132,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
134,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
140,
145
],
[
116,
146
],
[
146,
147
],
[
67,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
150,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
155,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
150,
165
],
[
165,
166
],
[
165,
167
],
[
150,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
150,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
150,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
176,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
150,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
67,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
197,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
197,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
197,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
197,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
226,
231
],
[
225,
232
],
[
232,
233
],
[
232,
234
],
[
224,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
238,
244
],
[
197,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
197,
250
],
[
250,
251
],
[
67,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
259,
264
],
[
264,
265
],
[
264,
266
],
[
259,
267
],
[
267,
268
],
[
268,
269
],
[
259,
270
],
[
271,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
276,
277
],
[
254,
278
],
[
278,
279
],
[
252,
280
],
[
280,
281
],
[
67,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
284,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
284,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
292,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
284,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
302,
304
],
[
284,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
284,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
313,
318
],
[
312,
319
],
[
319,
320
],
[
319,
321
],
[
311,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
326,
330
],
[
325,
331
],
[
284,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
335,
336
],
[
284,
337
],
[
337,
338
],
[
67,
339
],
[
339,
340
],
[
339,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
346,
351
],
[
351,
352
],
[
351,
353
],
[
346,
354
],
[
354,
355
],
[
355,
356
],
[
346,
357
],
[
358,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
359,
363
],
[
363,
364
],
[
341,
365
],
[
365,
366
],
[
339,
367
],
[
367,
368
],
[
67,
369
],
[
369,
370
],
[
369,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
374,
375
],
[
371,
376
],
[
376,
377
],
[
377,
378
],
[
378,
379
],
[
377,
380
],
[
376,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
384,
385
],
[
371,
386
],
[
386,
387
],
[
67,
388
],
[
388,
389
],
[
388,
390
],
[
390,
391
],
[
391,
392
],
[
391,
393
],
[
390,
394
],
[
394,
395
],
[
394,
396
],
[
390,
397
],
[
397,
398
],
[
397,
399
],
[
399,
400
],
[
390,
401
],
[
401,
402
],
[
402,
403
],
[
402,
404
],
[
401,
405
],
[
405,
406
],
[
405,
407
],
[
407,
408
],
[
390,
409
],
[
409,
410
],
[
409,
411
],
[
411,
412
],
[
411,
413
],
[
390,
414
],
[
414,
415
],
[
414,
416
],
[
416,
417
],
[
416,
418
],
[
418,
419
],
[
390,
420
],
[
420,
421
],
[
421,
422
],
[
422,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
422,
427
],
[
421,
428
],
[
428,
429
],
[
428,
430
],
[
420,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
435,
436
],
[
436,
437
],
[
436,
438
],
[
435,
439
],
[
434,
440
],
[
390,
441
],
[
441,
442
],
[
442,
443
],
[
442,
444
],
[
441,
445
],
[
445,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
449,
451
],
[
451,
452
],
[
448,
453
],
[
447,
454
],
[
454,
455
],
[
454,
456
],
[
446,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
460,
461
],
[
461,
462
],
[
461,
463
],
[
460,
464
],
[
464,
465
],
[
464,
466
],
[
390,
467
],
[
467,
468
],
[
467,
469
],
[
469,
470
],
[
470,
471
],
[
390,
472
],
[
472,
473
],
[
67,
474
],
[
474,
475
],
[
474,
476
],
[
476,
477
],
[
477,
478
],
[
477,
479
],
[
476,
481
],
[
481,
482
],
[
482,
483
],
[
483,
484
],
[
483,
485
],
[
481,
486
],
[
486,
487
],
[
486,
488
],
[
481,
489
],
[
489,
490
],
[
490,
491
],
[
481,
492
],
[
493,
493
],
[
493,
494
],
[
494,
495
],
[
495,
496
],
[
495,
497
],
[
494,
498
],
[
498,
499
],
[
476,
500
],
[
500,
501
],
[
474,
502
],
[
502,
503
],
[
67,
504
],
[
504,
505
],
[
504,
506
],
[
506,
507
],
[
507,
508
],
[
507,
509
],
[
509,
510
],
[
510,
511
],
[
509,
512
],
[
509,
513
],
[
513,
514
],
[
513,
515
],
[
509,
516
],
[
506,
517
],
[
517,
518
],
[
518,
519
],
[
518,
520
],
[
520,
521
],
[
517,
522
],
[
522,
523
],
[
523,
524
],
[
523,
525
],
[
522,
526
],
[
526,
527
],
[
67,
528
],
[
528,
529
],
[
528,
530
],
[
530,
531
],
[
531,
532
],
[
532,
533
],
[
532,
534
],
[
531,
535
],
[
535,
536
],
[
530,
537
],
[
537,
538
],
[
538,
539
],
[
538,
540
],
[
540,
541
],
[
67,
542
],
[
542,
543
],
[
542,
544
],
[
544,
545
],
[
545,
546
],
[
546,
547
],
[
546,
548
],
[
545,
549
],
[
544,
550
],
[
550,
551
],
[
551,
552
],
[
0,
553
],
[
553,
554
],
[
553,
555
]
]
| [
"import java.util.*;\nimport java.io.*;\npublic class Main{\n\n public static void main(String [] args) throws IOException{\n FastScanner sc=new FastScanner();\n String s=sc.next();\n long sum=0;\n for(int i=0;i<s.length();i++)sum+=s.charAt(i)-'0';\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass FastScanner{\t\n private int BUFFER_SIZE = 1 << 16;\n \n private DataInputStream din;\n \n private byte[] buffer;\n \n private int bufferPointer, bytesRead;\n \n public FastScanner() {\n din = new DataInputStream(System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public FastScanner( String file_name) throws IOException {\n din = new DataInputStream(new FileInputStream(file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n \n public String readLine() throws IOException {\n byte[] buf = new byte[64];\n int cnt = 0, c;\n while ((c = read()) != -1) {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }\n \n public String next() throws IOException{\n\n byte c = read();\n while(Character.isWhitespace(c)){\n c = read();\n }\n \n StringBuilder builder = new StringBuilder();\n builder.append((char)c);\n c = read();\n while(!Character.isWhitespace(c)){\n builder.append((char)c);\n c = read();\n }\n \n return builder.toString();\n }\n\n public int nextInt() throws IOException {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (neg)\n return -ret;\n return ret;\n }\n \n public int[] nextIntArray( int n) throws IOException {\n int arr[] = new int[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextInt();\n }\n return arr;\n }\n\n public long nextLong() throws IOException {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n \n public long[] nextLongArray( int n) throws IOException {\n long arr[] = new long[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextLong();\n }\n return arr;\n }\n\n public char nextChar() throws IOException{\n byte c = read();\n while(Character.isWhitespace(c)){\n c = read();\n }\n return (char) c;\t\n }\n \n public double nextDouble() throws IOException {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }\n\n if (neg)\n return -ret;\n return ret;\n }\n \n public double[] nextDoubleArray( int n) throws IOException {\n double arr[] = new double[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextDouble();\n }\n return arr;\n }\n\n private void fillBuffer() throws IOException {\n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n\n private byte read() throws IOException {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n\n public void close() throws IOException {\n if (din == null)\n return;\n din.close();\n }\n\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\n public static void main(String [] args) throws IOException{\n FastScanner sc=new FastScanner();\n String s=sc.next();\n long sum=0;\n for(int i=0;i<s.length();i++)sum+=s.charAt(i)-'0';\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n }\n}",
"Main",
"public static void main(String [] args) throws IOException{\n FastScanner sc=new FastScanner();\n String s=sc.next();\n long sum=0;\n for(int i=0;i<s.length();i++)sum+=s.charAt(i)-'0';\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n }",
"main",
"{\n FastScanner sc=new FastScanner();\n String s=sc.next();\n long sum=0;\n for(int i=0;i<s.length();i++)sum+=s.charAt(i)-'0';\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n }",
"FastScanner sc=new FastScanner();",
"sc",
"new FastScanner()",
"String s=sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"long sum=0;",
"sum",
"0",
"for(int i=0;i<s.length();i++)sum+=s.charAt(i)-'0';",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"sum+=s.charAt(i)-'0';",
"sum+=s.charAt(i)-'0'",
"sum",
"s.charAt(i)-'0'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'0'",
"if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"sum%9==0",
"sum%9",
"sum",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String [] args",
"args",
"class FastScanner{\t\n private int BUFFER_SIZE = 1 << 16;\n \n private DataInputStream din;\n \n private byte[] buffer;\n \n private int bufferPointer, bytesRead;\n \n public FastScanner() {\n din = new DataInputStream(System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public FastScanner( String file_name) throws IOException {\n din = new DataInputStream(new FileInputStream(file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n \n public String readLine() throws IOException {\n byte[] buf = new byte[64];\n int cnt = 0, c;\n while ((c = read()) != -1) {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }\n \n public String next() throws IOException{\n\n byte c = read();\n while(Character.isWhitespace(c)){\n c = read();\n }\n \n StringBuilder builder = new StringBuilder();\n builder.append((char)c);\n c = read();\n while(!Character.isWhitespace(c)){\n builder.append((char)c);\n c = read();\n }\n \n return builder.toString();\n }\n\n public int nextInt() throws IOException {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (neg)\n return -ret;\n return ret;\n }\n \n public int[] nextIntArray( int n) throws IOException {\n int arr[] = new int[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextInt();\n }\n return arr;\n }\n\n public long nextLong() throws IOException {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n \n public long[] nextLongArray( int n) throws IOException {\n long arr[] = new long[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextLong();\n }\n return arr;\n }\n\n public char nextChar() throws IOException{\n byte c = read();\n while(Character.isWhitespace(c)){\n c = read();\n }\n return (char) c;\t\n }\n \n public double nextDouble() throws IOException {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }\n\n if (neg)\n return -ret;\n return ret;\n }\n \n public double[] nextDoubleArray( int n) throws IOException {\n double arr[] = new double[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextDouble();\n }\n return arr;\n }\n\n private void fillBuffer() throws IOException {\n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n\n private byte read() throws IOException {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n\n public void close() throws IOException {\n if (din == null)\n return;\n din.close();\n }\n\n}",
"FastScanner",
"private int BUFFER_SIZE = 1 << 16;",
"BUFFER_SIZE",
"1 << 16",
"1",
"16",
"private DataInputStream din;",
"din",
"private byte[] buffer;",
"buffer",
"private int bufferPointer",
"bufferPointer",
"bytesRead;",
"bytesRead",
"public FastScanner() {\n din = new DataInputStream(System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }",
"FastScanner",
"{\n din = new DataInputStream(System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }",
"din = new DataInputStream(System.in)",
"din",
"new DataInputStream(System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public FastScanner( String file_name) throws IOException {\n din = new DataInputStream(new FileInputStream(file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }",
"FastScanner",
"{\n din = new DataInputStream(new FileInputStream(file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }",
"din = new DataInputStream(new FileInputStream(file_name))",
"din",
"new DataInputStream(new FileInputStream(file_name))",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String file_name",
"file_name",
"public String readLine() throws IOException {\n byte[] buf = new byte[64];\n int cnt = 0, c;\n while ((c = read()) != -1) {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }",
"readLine",
"{\n byte[] buf = new byte[64];\n int cnt = 0, c;\n while ((c = read()) != -1) {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }",
"byte[] buf = new byte[64];",
"buf",
"new byte[64]",
"64",
"int cnt = 0",
"cnt",
"0",
"c;",
"c",
"while ((c = read()) != -1) {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }",
"if (c == '\\n')\n break;",
"c == '\\n'",
"c",
"'\\n'",
"break;",
"buf[cnt++] = (byte) c",
"buf[cnt++]",
"buf",
"cnt++",
"cnt",
"(byte) c",
"return new String(buf, 0, cnt);",
"new String(buf, 0, cnt)",
"public String next() throws IOException{\n\n byte c = read();\n while(Character.isWhitespace(c)){\n c = read();\n }\n \n StringBuilder builder = new StringBuilder();\n builder.append((char)c);\n c = read();\n while(!Character.isWhitespace(c)){\n builder.append((char)c);\n c = read();\n }\n \n return builder.toString();\n }",
"next",
"{\n\n byte c = read();\n while(Character.isWhitespace(c)){\n c = read();\n }\n \n StringBuilder builder = new StringBuilder();\n builder.append((char)c);\n c = read();\n while(!Character.isWhitespace(c)){\n builder.append((char)c);\n c = read();\n }\n \n return builder.toString();\n }",
"byte c = read();",
"c",
"read()",
"read",
"while(Character.isWhitespace(c)){\n c = read();\n }",
"Character.isWhitespace(c)",
"Character.isWhitespace",
"Character",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"builder.append((char)c)",
"builder.append",
"builder",
"(char)c",
"c = read()",
"c",
"read()",
"read",
"while(!Character.isWhitespace(c)){\n builder.append((char)c);\n c = read();\n }",
"!Character.isWhitespace(c)",
"Character.isWhitespace(c)",
"Character.isWhitespace",
"Character",
"c",
"{\n builder.append((char)c);\n c = read();\n }",
"builder.append((char)c)",
"builder.append",
"builder",
"(char)c",
"c = read()",
"c",
"read()",
"read",
"return builder.toString();",
"builder.toString()",
"builder.toString",
"builder",
"public int nextInt() throws IOException {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (neg)\n return -ret;\n return ret;\n }",
"nextInt",
"{\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (neg)\n return -ret;\n return ret;\n }",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n ret = ret * 10 + c - '0';\n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg)\n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public int[] nextIntArray( int n) throws IOException {\n int arr[] = new int[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextInt();\n }\n return arr;\n }",
"nextIntArray",
"{\n int arr[] = new int[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextInt();\n }\n return arr;\n }",
"int arr[] = new int[n];",
"arr",
"new int[n]",
"n",
"for(int i = 0; i < n; i++){\n arr[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = nextInt();\n }",
"{\n arr[i] = nextInt();\n }",
"arr[i] = nextInt()",
"arr[i]",
"arr",
"i",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int n",
"n",
"public long nextLong() throws IOException {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }",
"nextLong",
"{\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n ret = ret * 10 + c - '0';\n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg)\n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long[] nextLongArray( int n) throws IOException {\n long arr[] = new long[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextLong();\n }\n return arr;\n }",
"nextLongArray",
"{\n long arr[] = new long[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextLong();\n }\n return arr;\n }",
"long arr[] = new long[n];",
"arr",
"new long[n]",
"n",
"for(int i = 0; i < n; i++){\n arr[i] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = nextLong();\n }",
"{\n arr[i] = nextLong();\n }",
"arr[i] = nextLong()",
"arr[i]",
"arr",
"i",
"nextLong()",
"nextLong",
"return arr;",
"arr",
"int n",
"n",
"public char nextChar() throws IOException{\n byte c = read();\n while(Character.isWhitespace(c)){\n c = read();\n }\n return (char) c;\t\n }",
"nextChar",
"{\n byte c = read();\n while(Character.isWhitespace(c)){\n c = read();\n }\n return (char) c;\t\n }",
"byte c = read();",
"c",
"read()",
"read",
"while(Character.isWhitespace(c)){\n c = read();\n }",
"Character.isWhitespace(c)",
"Character.isWhitespace",
"Character",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"return (char) c;",
"(char) c",
"public double nextDouble() throws IOException {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }\n\n if (neg)\n return -ret;\n return ret;\n }",
"nextDouble",
"{\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }\n\n if (neg)\n return -ret;\n return ret;\n }",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n ret = ret * 10 + c - '0';\n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }",
"c == '.'",
"c",
"'.'",
"{\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }",
"while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n ret += (c - '0') / (div *= 10);\n }",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg)\n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double[] nextDoubleArray( int n) throws IOException {\n double arr[] = new double[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextDouble();\n }\n return arr;\n }",
"nextDoubleArray",
"{\n double arr[] = new double[n];\n for(int i = 0; i < n; i++){\n arr[i] = nextDouble();\n }\n return arr;\n }",
"double arr[] = new double[n];",
"arr",
"new double[n]",
"n",
"for(int i = 0; i < n; i++){\n arr[i] = nextDouble();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = nextDouble();\n }",
"{\n arr[i] = nextDouble();\n }",
"arr[i] = nextDouble()",
"arr[i]",
"arr",
"i",
"nextDouble()",
"nextDouble",
"return arr;",
"arr",
"int n",
"n",
"private void fillBuffer() throws IOException {\n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }",
"fillBuffer",
"{\n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }",
"bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1)\n buffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() throws IOException {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }",
"read",
"{\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }",
"if (bufferPointer == bytesRead)\n fillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException {\n if (din == null)\n return;\n din.close();\n }",
"close",
"{\n if (din == null)\n return;\n din.close();\n }",
"if (din == null)\n return;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public class Main{\n\n public static void main(String [] args) throws IOException{\n FastScanner sc=new FastScanner();\n String s=sc.next();\n long sum=0;\n for(int i=0;i<s.length();i++)sum+=s.charAt(i)-'0';\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n }\n}",
"public class Main{\n\n public static void main(String [] args) throws IOException{\n FastScanner sc=new FastScanner();\n String s=sc.next();\n long sum=0;\n for(int i=0;i<s.length();i++)sum+=s.charAt(i)-'0';\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
public static void main(String [] args) throws IOException{
FastScanner sc=new FastScanner();
String s=sc.next();
long sum=0;
for(int i=0;i<s.length();i++)sum+=s.charAt(i)-'0';
if(sum%9==0){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
}
class FastScanner{
private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public FastScanner() {
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public FastScanner( String file_name) throws IOException {
din = new DataInputStream(new FileInputStream(file_name));
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public String readLine() throws IOException {
byte[] buf = new byte[64];
int cnt = 0, c;
while ((c = read()) != -1) {
if (c == '\n')
break;
buf[cnt++] = (byte) c;
}
return new String(buf, 0, cnt);
}
public String next() throws IOException{
byte c = read();
while(Character.isWhitespace(c)){
c = read();
}
StringBuilder builder = new StringBuilder();
builder.append((char)c);
c = read();
while(!Character.isWhitespace(c)){
builder.append((char)c);
c = read();
}
return builder.toString();
}
public int nextInt() throws IOException {
int ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public int[] nextIntArray( int n) throws IOException {
int arr[] = new int[n];
for(int i = 0; i < n; i++){
arr[i] = nextInt();
}
return arr;
}
public long nextLong() throws IOException {
long ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public long[] nextLongArray( int n) throws IOException {
long arr[] = new long[n];
for(int i = 0; i < n; i++){
arr[i] = nextLong();
}
return arr;
}
public char nextChar() throws IOException{
byte c = read();
while(Character.isWhitespace(c)){
c = read();
}
return (char) c;
}
public double nextDouble() throws IOException {
double ret = 0, div = 1;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (c == '.') {
while ((c = read()) >= '0' && c <= '9') {
ret += (c - '0') / (div *= 10);
}
}
if (neg)
return -ret;
return ret;
}
public double[] nextDoubleArray( int n) throws IOException {
double arr[] = new double[n];
for(int i = 0; i < n; i++){
arr[i] = nextDouble();
}
return arr;
}
private void fillBuffer() throws IOException {
bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
if (bytesRead == -1)
buffer[0] = -1;
}
private byte read() throws IOException {
if (bufferPointer == bytesRead)
fillBuffer();
return buffer[bufferPointer++];
}
public void close() throws IOException {
if (din == null)
return;
din.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
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,
14,
2,
2,
13,
17,
17,
4,
18,
13,
17,
4,
18,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
13,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
6,
13,
12,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
259,
23
],
[
259,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
26,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
46,
51
],
[
26,
52
],
[
52,
53
],
[
53,
54
],
[
24,
55
],
[
55,
56
],
[
259,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
61,
69
],
[
69,
70
],
[
69,
71
],
[
61,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
61,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
94,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
59,
108
],
[
108,
109
],
[
59,
110
],
[
110,
111
],
[
59,
112
],
[
112,
113
],
[
259,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
114,
122
],
[
122,
123
],
[
114,
124
],
[
124,
125
],
[
114,
126
],
[
126,
127
],
[
114,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
128,
136
],
[
136,
137
],
[
114,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
141,
146
],
[
146,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
156,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
152,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
173,
174
],
[
174,
175
],
[
140,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
114,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
183,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
183,
196
],
[
196,
197
],
[
196,
198
],
[
183,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
199,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
205,
208
],
[
204,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
183,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
114,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
225,
228
],
[
219,
229
],
[
229,
230
],
[
233,
231
],
[
243,
232
],
[
240,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
237,
239
],
[
240,
240
],
[
240,
241
],
[
240,
242
],
[
243,
243
],
[
243,
244
],
[
243,
245
],
[
233,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
217,
250
],
[
250,
251
],
[
114,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
0,
258
],
[
258,
259
],
[
258,
260
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Pranay2516\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n char c[] = in.next().toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; ++i) {\n sum += c[i] - '0';\n }\n if (sum % 9 == 0) out.println(\"Yes\");\n else out.println(\"No\");\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n char c[] = in.next().toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; ++i) {\n sum += c[i] - '0';\n }\n if (sum % 9 == 0) out.println(\"Yes\");\n else out.println(\"No\");\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"FastReader in = new FastReader(inputStream);",
"in",
"new FastReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"B solver = new B();",
"solver",
"new B()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class B {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n char c[] = in.next().toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; ++i) {\n sum += c[i] - '0';\n }\n if (sum % 9 == 0) out.println(\"Yes\");\n else out.println(\"No\");\n }\n\n }",
"B",
"public void solve(int testNumber, FastReader in, PrintWriter out) {\n char c[] = in.next().toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; ++i) {\n sum += c[i] - '0';\n }\n if (sum % 9 == 0) out.println(\"Yes\");\n else out.println(\"No\");\n }",
"solve",
"{\n char c[] = in.next().toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; ++i) {\n sum += c[i] - '0';\n }\n if (sum % 9 == 0) out.println(\"Yes\");\n else out.println(\"No\");\n }",
"char c[] = in.next().toCharArray();",
"c",
"in.next().toCharArray()",
"in.next().toCharArray",
"in.next()",
"in.next",
"in",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < c.length; ++i) {\n sum += c[i] - '0';\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < c.length",
"i",
"c.length",
"c",
"c.length",
"++i",
"++i",
"i",
"{\n sum += c[i] - '0';\n }",
"{\n sum += c[i] - '0';\n }",
"sum += c[i] - '0'",
"sum",
"c[i] - '0'",
"c[i]",
"c",
"i",
"'0'",
"if (sum % 9 == 0) out.println(\"Yes\");\n else out.println(\"No\");",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"int testNumber",
"testNumber",
"FastReader in",
"in",
"PrintWriter out",
"out",
"static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"FastReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private FastReader.SpaceCharFilter filter;",
"filter",
"public FastReader(InputStream stream) {\n this.stream = stream;\n }",
"FastReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }",
"if (numChars == -1) throw new InputMismatchException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) return -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }",
"next",
"{\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"if (filter != null) return filter.isSpaceChar(c);",
"filter != null",
"filter",
"null",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n char c[] = in.next().toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; ++i) {\n sum += c[i] - '0';\n }\n if (sum % 9 == 0) out.println(\"Yes\");\n else out.println(\"No\");\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n char c[] = in.next().toCharArray();\n int sum = 0;\n for (int i = 0; i < c.length; ++i) {\n sum += c[i] - '0';\n }\n if (sum % 9 == 0) out.println(\"Yes\");\n else out.println(\"No\");\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Pranay2516
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
B solver = new B();
solver.solve(1, in, out);
out.close();
}
static class B {
public void solve(int testNumber, FastReader in, PrintWriter out) {
char c[] = in.next().toCharArray();
int sum = 0;
for (int i = 0; i < c.length; ++i) {
sum += c[i] - '0';
}
if (sum % 9 == 0) out.println("Yes");
else out.println("No");
}
}
static class FastReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private FastReader.SpaceCharFilter filter;
public FastReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) throw new InputMismatchException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) return -1;
}
return buf[curChar++];
}
public String next() {
int c = read();
while (isSpaceChar(c)) c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
}
while (!isSpaceChar(c));
return res.toString();
}
public boolean isSpaceChar(int c) {
if (filter != null) return filter.isSpaceChar(c);
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
8,
2,
2,
13,
17,
17,
17,
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
],
[
57,
11
],
[
57,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
28,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
14,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
43,
50
],
[
14,
51
],
[
51,
52
],
[
52,
53
],
[
12,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"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 char[] s = br.readLine().toCharArray();\n long sum = 0;\n for(char i : s) {\n sum += (i - '0');\n }\n System.out.println(sum%9 == 0 ? \"Yes\" : \"No\");\n br.close();\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 char[] s = br.readLine().toCharArray();\n long sum = 0;\n for(char i : s) {\n sum += (i - '0');\n }\n System.out.println(sum%9 == 0 ? \"Yes\" : \"No\");\n br.close();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] s = br.readLine().toCharArray();\n long sum = 0;\n for(char i : s) {\n sum += (i - '0');\n }\n System.out.println(sum%9 == 0 ? \"Yes\" : \"No\");\n br.close();\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] s = br.readLine().toCharArray();\n long sum = 0;\n for(char i : s) {\n sum += (i - '0');\n }\n System.out.println(sum%9 == 0 ? \"Yes\" : \"No\");\n br.close();\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"char[] s = br.readLine().toCharArray();",
"s",
"br.readLine().toCharArray()",
"br.readLine().toCharArray",
"br.readLine()",
"br.readLine",
"br",
"long sum = 0;",
"sum",
"0",
"for(char i : s) {\n sum += (i - '0');\n }",
"char i",
"s",
"{\n sum += (i - '0');\n }",
"{\n sum += (i - '0');\n }",
"sum += (i - '0')",
"sum",
"(i - '0')",
"i",
"'0'",
"System.out.println(sum%9 == 0 ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"sum%9 == 0 ? \"Yes\" : \"No\"",
"sum%9 == 0",
"sum%9",
"sum",
"9",
"0",
"\"Yes\"",
"\"No\"",
"br.close()",
"br.close",
"br",
"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 char[] s = br.readLine().toCharArray();\n long sum = 0;\n for(char i : s) {\n sum += (i - '0');\n }\n System.out.println(sum%9 == 0 ? \"Yes\" : \"No\");\n br.close();\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] s = br.readLine().toCharArray();\n long sum = 0;\n for(char i : s) {\n sum += (i - '0');\n }\n System.out.println(sum%9 == 0 ? \"Yes\" : \"No\");\n br.close();\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));
char[] s = br.readLine().toCharArray();
long sum = 0;
for(char i : s) {
sum += (i - '0');
}
System.out.println(sum%9 == 0 ? "Yes" : "No");
br.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
4,
18,
13,
18,
13,
13,
14,
2,
2,
2,
13,
17,
17,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
101,
5
],
[
101,
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
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
73,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
73,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
6,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
]
| [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String n = scan.nextLine();\n int len = n.length();\n int sum=0;\n char[] arr = new char[len];\n \n for(int i=0;i<len;i++){\n arr[i] = (n.charAt(i));\n }\n for(int i=0;i<len;i++){\n sum = sum + Character.getNumericValue(arr[i]);\n }\n if(sum%9 == 0 || n.equals(\"0\")){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\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 String n = scan.nextLine();\n int len = n.length();\n int sum=0;\n char[] arr = new char[len];\n \n for(int i=0;i<len;i++){\n arr[i] = (n.charAt(i));\n }\n for(int i=0;i<len;i++){\n sum = sum + Character.getNumericValue(arr[i]);\n }\n if(sum%9 == 0 || n.equals(\"0\")){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n \n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String n = scan.nextLine();\n int len = n.length();\n int sum=0;\n char[] arr = new char[len];\n \n for(int i=0;i<len;i++){\n arr[i] = (n.charAt(i));\n }\n for(int i=0;i<len;i++){\n sum = sum + Character.getNumericValue(arr[i]);\n }\n if(sum%9 == 0 || n.equals(\"0\")){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String n = scan.nextLine();\n int len = n.length();\n int sum=0;\n char[] arr = new char[len];\n \n for(int i=0;i<len;i++){\n arr[i] = (n.charAt(i));\n }\n for(int i=0;i<len;i++){\n sum = sum + Character.getNumericValue(arr[i]);\n }\n if(sum%9 == 0 || n.equals(\"0\")){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String n = scan.nextLine();",
"n",
"scan.nextLine()",
"scan.nextLine",
"scan",
"int len = n.length();",
"len",
"n.length()",
"n.length",
"n",
"int sum=0;",
"sum",
"0",
"char[] arr = new char[len];",
"arr",
"new char[len]",
"len",
"for(int i=0;i<len;i++){\n arr[i] = (n.charAt(i));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<len",
"i",
"len",
"i++",
"i++",
"i",
"{\n arr[i] = (n.charAt(i));\n }",
"{\n arr[i] = (n.charAt(i));\n }",
"arr[i] = (n.charAt(i))",
"arr[i]",
"arr",
"i",
"(n.charAt(i))",
"n.charAt",
"n",
"i",
"for(int i=0;i<len;i++){\n sum = sum + Character.getNumericValue(arr[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<len",
"i",
"len",
"i++",
"i++",
"i",
"{\n sum = sum + Character.getNumericValue(arr[i]);\n }",
"{\n sum = sum + Character.getNumericValue(arr[i]);\n }",
"sum = sum + Character.getNumericValue(arr[i])",
"sum",
"sum + Character.getNumericValue(arr[i])",
"sum",
"Character.getNumericValue(arr[i])",
"Character.getNumericValue",
"Character",
"arr[i]",
"arr",
"i",
"if(sum%9 == 0 || n.equals(\"0\")){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"sum%9 == 0 || n.equals(\"0\")",
"sum%9 == 0",
"sum%9",
"sum",
"9",
"0",
"n.equals(\"0\")",
"n.equals",
"n",
"\"0\"",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String n = scan.nextLine();\n int len = n.length();\n int sum=0;\n char[] arr = new char[len];\n \n for(int i=0;i<len;i++){\n arr[i] = (n.charAt(i));\n }\n for(int i=0;i<len;i++){\n sum = sum + Character.getNumericValue(arr[i]);\n }\n if(sum%9 == 0 || n.equals(\"0\")){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n \n}",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String n = scan.nextLine();\n int len = n.length();\n int sum=0;\n char[] arr = new char[len];\n \n for(int i=0;i<len;i++){\n arr[i] = (n.charAt(i));\n }\n for(int i=0;i<len;i++){\n sum = sum + Character.getNumericValue(arr[i]);\n }\n if(sum%9 == 0 || n.equals(\"0\")){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\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 n = scan.nextLine();
int len = n.length();
int sum=0;
char[] arr = new char[len];
for(int i=0;i<len;i++){
arr[i] = (n.charAt(i));
}
for(int i=0;i<len;i++){
sum = sum + Character.getNumericValue(arr[i]);
}
if(sum%9 == 0 || n.equals("0")){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
17,
28,
13,
4,
18,
13,
30,
30,
0,
13,
2,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
40,
13,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
13,
20,
2,
13,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
18,
13,
13,
0,
13,
2,
13,
40,
13,
29,
13,
23,
13,
12,
13,
30,
42,
2,
13,
13,
30,
0,
18,
13,
13,
13,
0,
13,
2,
13,
40,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
4,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
13,
17,
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
],
[
564,
14
],
[
564,
15
],
[
15,
16
],
[
564,
17
],
[
17,
18
],
[
564,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
25,
27
],
[
21,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
21,
33
],
[
33,
34
],
[
33,
35
],
[
21,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
21,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
42,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
21,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
54,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
21,
70
],
[
70,
71
],
[
71,
72
],
[
19,
73
],
[
73,
74
],
[
564,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
78,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
92,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
92,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
111,
113
],
[
92,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
75,
119
],
[
119,
120
],
[
564,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
124,
134
],
[
134,
135
],
[
135,
136
],
[
124,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
141,
145
],
[
145,
146
],
[
145,
147
],
[
138,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
150,
152
],
[
138,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
157,
159
],
[
138,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
121,
165
],
[
165,
166
],
[
564,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
167,
171
],
[
171,
172
],
[
167,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
175,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
173,
186
],
[
186,
187
],
[
173,
188
],
[
188,
189
],
[
167,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
194,
197
],
[
564,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
198,
202
],
[
202,
203
],
[
198,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
206,
212
],
[
212,
213
],
[
212,
214
],
[
215,
216
],
[
215,
217
],
[
204,
218
],
[
218,
219
],
[
198,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
198,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
230,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
241,
243
],
[
238,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
230,
250
],
[
250,
251
],
[
228,
252
],
[
252,
253
],
[
198,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
261,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
254,
273
],
[
273,
274
],
[
254,
275
],
[
275,
276
],
[
564,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
277,
281
],
[
281,
282
],
[
277,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
283,
289
],
[
289,
290
],
[
277,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
291,
297
],
[
297,
298
],
[
277,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
302,
311
],
[
311,
312
],
[
311,
313
],
[
301,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
277,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
320,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
325,
330
],
[
330,
331
],
[
330,
332
],
[
325,
333
],
[
333,
334
],
[
334,
335
],
[
325,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
338,
340
],
[
337,
341
],
[
341,
342
],
[
320,
343
],
[
343,
344
],
[
318,
345
],
[
345,
346
],
[
277,
347
],
[
347,
348
],
[
347,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
349,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
354,
359
],
[
359,
360
],
[
359,
361
],
[
354,
362
],
[
362,
363
],
[
363,
364
],
[
354,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
366,
370
],
[
370,
371
],
[
349,
372
],
[
372,
373
],
[
347,
374
],
[
374,
375
],
[
277,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
378,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
383,
388
],
[
388,
389
],
[
388,
390
],
[
383,
391
],
[
391,
392
],
[
392,
393
],
[
383,
394
],
[
394,
395
],
[
395,
396
],
[
396,
397
],
[
396,
398
],
[
395,
399
],
[
399,
400
],
[
378,
401
],
[
401,
402
],
[
401,
403
],
[
378,
404
],
[
404,
405
],
[
405,
406
],
[
404,
407
],
[
378,
408
],
[
408,
409
],
[
376,
410
],
[
410,
411
],
[
277,
412
],
[
412,
413
],
[
412,
414
],
[
414,
415
],
[
415,
416
],
[
415,
417
],
[
414,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
421,
423
],
[
419,
424
],
[
424,
425
],
[
424,
426
],
[
419,
427
],
[
427,
428
],
[
428,
429
],
[
419,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
431,
435
],
[
435,
436
],
[
414,
437
],
[
437,
438
],
[
437,
439
],
[
414,
440
],
[
440,
441
],
[
441,
442
],
[
440,
443
],
[
414,
444
],
[
444,
445
],
[
412,
446
],
[
446,
447
],
[
277,
448
],
[
448,
449
],
[
448,
450
],
[
450,
451
],
[
451,
452
],
[
451,
453
],
[
450,
455
],
[
455,
456
],
[
456,
457
],
[
457,
458
],
[
457,
459
],
[
455,
460
],
[
460,
461
],
[
460,
462
],
[
455,
463
],
[
463,
464
],
[
464,
465
],
[
455,
466
],
[
466,
467
],
[
467,
468
],
[
468,
469
],
[
468,
470
],
[
467,
471
],
[
471,
472
],
[
450,
473
],
[
473,
474
],
[
448,
475
],
[
475,
476
],
[
277,
477
],
[
477,
478
],
[
477,
479
],
[
479,
480
],
[
480,
481
],
[
480,
482
],
[
479,
484
],
[
484,
485
],
[
485,
486
],
[
486,
487
],
[
486,
488
],
[
484,
489
],
[
489,
490
],
[
489,
491
],
[
484,
492
],
[
492,
493
],
[
493,
494
],
[
484,
495
],
[
495,
496
],
[
496,
497
],
[
497,
498
],
[
497,
499
],
[
496,
500
],
[
500,
501
],
[
479,
502
],
[
502,
503
],
[
477,
504
],
[
504,
505
],
[
277,
506
],
[
506,
507
],
[
506,
508
],
[
508,
509
],
[
509,
510
],
[
510,
511
],
[
511,
512
],
[
277,
513
],
[
513,
514
],
[
513,
515
],
[
515,
516
],
[
516,
517
],
[
517,
518
],
[
518,
519
],
[
517,
520
],
[
520,
521
],
[
277,
522
],
[
522,
523
],
[
522,
524
],
[
524,
525
],
[
525,
526
],
[
526,
527
],
[
527,
528
],
[
526,
529
],
[
529,
530
],
[
277,
531
],
[
531,
532
],
[
531,
533
],
[
533,
534
],
[
534,
535
],
[
535,
536
],
[
536,
537
],
[
537,
538
],
[
535,
539
],
[
277,
540
],
[
540,
541
],
[
540,
542
],
[
542,
543
],
[
543,
544
],
[
544,
545
],
[
545,
546
],
[
544,
547
],
[
547,
548
],
[
277,
549
],
[
549,
550
],
[
549,
551
],
[
551,
552
],
[
552,
553
],
[
553,
554
],
[
554,
555
],
[
277,
556
],
[
556,
557
],
[
556,
558
],
[
558,
559
],
[
559,
560
],
[
560,
561
],
[
559,
562
],
[
0,
563
],
[
563,
564
],
[
563,
565
]
]
| [
"import java.io.*;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\nimport static java.lang.Long.max;\n\npublic class Main {\n static class Pair {\n int num;\n int cut;\n\n Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }\n\n double getVal() {\n return -num / (double) cut;\n }\n }\n\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n String N = sc.nextLine();\n int sum = 0;\n int char0 = Integer.valueOf('0');\n for(char c: N.toCharArray()\n ){\n sum += c - char0;\n }\n\n if ( sum % 9 == 0) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n //pw.println(sum % 9 == 0);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n /**\n * https://www.slideshare.net/hcpc_hokudai/binary-indexed-tree A space efficient version segment\n * tree. Usually for range sum. Or the required metric can be calulated in that:\n *\n * <p>right_metric = parant_metric - left_metric Only then, we can stop memoizing right_metric\n *\n * <p>The internal structure is a 1-base array, to simplify calculation of parent node's idx. lsb\n * = 3 & -3 = 2 (0x0011 & 0x1101 = 0x0001) lastParentOf3 = 3 - lsb = 2 curParentOf3 = 3 + lsb = 4\n */\n static class FenwickTree {\n private final long[] state;\n private final int size;\n\n FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }\n\n @Override\n public String toString() {\n return Arrays.toString(state);\n }\n\n long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }\n\n /** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import static java.lang.Long.max;",
"import static java.lang.Long.max;",
"import static java.lang.Long.max;",
"public class Main {\n static class Pair {\n int num;\n int cut;\n\n Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }\n\n double getVal() {\n return -num / (double) cut;\n }\n }\n\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n String N = sc.nextLine();\n int sum = 0;\n int char0 = Integer.valueOf('0');\n for(char c: N.toCharArray()\n ){\n sum += c - char0;\n }\n\n if ( sum % 9 == 0) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n //pw.println(sum % 9 == 0);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n /**\n * https://www.slideshare.net/hcpc_hokudai/binary-indexed-tree A space efficient version segment\n * tree. Usually for range sum. Or the required metric can be calulated in that:\n *\n * <p>right_metric = parant_metric - left_metric Only then, we can stop memoizing right_metric\n *\n * <p>The internal structure is a 1-base array, to simplify calculation of parent node's idx. lsb\n * = 3 & -3 = 2 (0x0011 & 0x1101 = 0x0001) lastParentOf3 = 3 - lsb = 2 curParentOf3 = 3 + lsb = 4\n */\n static class FenwickTree {\n private final long[] state;\n private final int size;\n\n FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }\n\n @Override\n public String toString() {\n return Arrays.toString(state);\n }\n\n long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }\n\n /** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"Main",
"static PrintWriter pw;",
"pw",
"static MScanner sc;",
"sc",
"public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n String N = sc.nextLine();\n int sum = 0;\n int char0 = Integer.valueOf('0');\n for(char c: N.toCharArray()\n ){\n sum += c - char0;\n }\n\n if ( sum % 9 == 0) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n //pw.println(sum % 9 == 0);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }",
"main",
"{\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n String N = sc.nextLine();\n int sum = 0;\n int char0 = Integer.valueOf('0');\n for(char c: N.toCharArray()\n ){\n sum += c - char0;\n }\n\n if ( sum % 9 == 0) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n //pw.println(sum % 9 == 0);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }",
"sc = new MScanner(System.in)",
"sc",
"new MScanner(System.in)",
"pw = new PrintWriter(System.out)",
"pw",
"new PrintWriter(System.out)",
"String N = sc.nextLine();",
"N",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int sum = 0;",
"sum",
"0",
"int char0 = Integer.valueOf('0');",
"char0",
"Integer.valueOf('0')",
"Integer.valueOf",
"Integer",
"'0'",
"for(char c: N.toCharArray()\n ){\n sum += c - char0;\n }",
"char c",
"N.toCharArray()",
"N.toCharArray",
"N",
"{\n sum += c - char0;\n }",
"{\n sum += c - char0;\n }",
"sum += c - char0",
"sum",
"c - char0",
"c",
"char0",
"if ( sum % 9 == 0) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"{\n pw.println(\"Yes\");\n }",
"pw.println(\"Yes\")",
"pw.println",
"pw",
"\"Yes\"",
"{\n pw.println(\"No\");\n }",
"pw.println(\"No\")",
"pw.println",
"pw",
"\"No\"",
"pw.flush()",
"pw.flush",
"pw",
"String[] args",
"args",
"static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"shuffle",
"{\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"{\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int idx = (int) (Math.random() * in.length);",
"idx",
"(int) (Math.random() * in.length)",
"Math.random()",
"Math.random",
"Math",
"in.length",
"in",
"in.length",
"int tmp = in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i] = in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx] = tmp",
"in[idx]",
"in",
"idx",
"tmp",
"int[] in",
"in",
"static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"shuffle",
"{\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"{\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int idx = (int) (Math.random() * in.length);",
"idx",
"(int) (Math.random() * in.length)",
"Math.random()",
"Math.random",
"Math",
"in.length",
"in",
"in.length",
"long tmp = in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i] = in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx] = tmp",
"in[idx]",
"in",
"idx",
"tmp",
"long[] in",
"in",
"static class Pair {\n int num;\n int cut;\n\n Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }\n\n double getVal() {\n return -num / (double) cut;\n }\n }",
"Pair",
"int num;",
"num",
"int cut;",
"cut",
"Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }",
"Pair",
"{\n this.num = num;\n this.cut = cut;\n }",
"this.num = num",
"this.num",
"this",
"this.num",
"num",
"this.cut = cut",
"this.cut",
"this",
"this.cut",
"cut",
"int num",
"num",
"int cut",
"cut",
"double getVal() {\n return -num / (double) cut;\n }",
"getVal",
"{\n return -num / (double) cut;\n }",
"return -num / (double) cut;",
"-num / (double) cut",
"-num",
"num",
"(double) cut",
"static class FenwickTree {\n private final long[] state;\n private final int size;\n\n FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }\n\n @Override\n public String toString() {\n return Arrays.toString(state);\n }\n\n long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }\n\n /** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }\n }",
"FenwickTree",
"private final long[] state;",
"state",
"private final int size;",
"size",
"FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }",
"FenwickTree",
"{\n this.size = size;\n state = new long[size + 1];\n }",
"this.size = size",
"this.size",
"this",
"this.size",
"size",
"state = new long[size + 1]",
"state",
"new long[size + 1]",
"size + 1",
"size",
"1",
"int size",
"size",
"@Override\n public String toString() {\n return Arrays.toString(state);\n }",
"toString",
"{\n return Arrays.toString(state);\n }",
"return Arrays.toString(state);",
"Arrays.toString(state)",
"Arrays.toString",
"Arrays",
"state",
"long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }",
"queryRangeSumFromZeroTo",
"{\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }",
"long sum = 0;",
"sum",
"0",
"while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }",
"idx != 0",
"idx",
"0",
"{\n sum += state[idx];\n idx -= (idx & -idx);\n }",
"sum += state[idx]",
"sum",
"state[idx]",
"state",
"idx",
"idx -= (idx & -idx)",
"idx",
"(idx & -idx)",
"idx",
"-idx",
"idx",
"return sum;",
"sum",
"int idx",
"idx",
"/** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }",
"updateElement",
"{\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }",
"while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }",
"idx <= size",
"idx",
"size",
"{\n state[idx] += val;\n idx += (idx & -idx);\n }",
"state[idx] += val",
"state[idx]",
"state",
"idx",
"val",
"idx += (idx & -idx)",
"idx",
"(idx & -idx)",
"idx",
"-idx",
"idx",
"int idx",
"idx",
"long val",
"val",
"static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }",
"MScanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }",
"MScanner",
"{\n br = new BufferedReader(new InputStreamReader(system));\n }",
"br = new BufferedReader(new InputStreamReader(system))",
"br",
"new BufferedReader(new InputStreamReader(system))",
"InputStream system",
"system",
"public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }",
"MScanner",
"{\n br = new BufferedReader(new FileReader(file));\n }",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"intArr",
"{\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"int[] in = new int[n];",
"in",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"longArr",
"{\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"long[] in = new long[n];",
"in",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"intSortedArr",
"{\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"int[] in = new int[n];",
"in",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"longSortedArr",
"{\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"long[] in = new long[n];",
"in",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"IntegerArr",
"{\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"Integer[] in = new Integer[n];",
"in",
"new Integer[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"LongArr",
"{\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"Long[] in = new Long[n];",
"in",
"new Long[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public String nextLine() throws IOException {\n return br.readLine();\n }",
"nextLine",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public char nextChar() throws IOException {\n return next().charAt(0);\n }",
"nextChar",
"{\n return next().charAt(0);\n }",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"public long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public boolean ready() throws IOException {\n return br.ready();\n }",
"ready",
"{\n return br.ready();\n }",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }",
"waitForInput",
"{\n Thread.sleep(3000);\n }",
"Thread.sleep(3000)",
"Thread.sleep",
"Thread",
"3000",
"public class Main {\n static class Pair {\n int num;\n int cut;\n\n Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }\n\n double getVal() {\n return -num / (double) cut;\n }\n }\n\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n String N = sc.nextLine();\n int sum = 0;\n int char0 = Integer.valueOf('0');\n for(char c: N.toCharArray()\n ){\n sum += c - char0;\n }\n\n if ( sum % 9 == 0) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n //pw.println(sum % 9 == 0);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n /**\n * https://www.slideshare.net/hcpc_hokudai/binary-indexed-tree A space efficient version segment\n * tree. Usually for range sum. Or the required metric can be calulated in that:\n *\n * <p>right_metric = parant_metric - left_metric Only then, we can stop memoizing right_metric\n *\n * <p>The internal structure is a 1-base array, to simplify calculation of parent node's idx. lsb\n * = 3 & -3 = 2 (0x0011 & 0x1101 = 0x0001) lastParentOf3 = 3 - lsb = 2 curParentOf3 = 3 + lsb = 4\n */\n static class FenwickTree {\n private final long[] state;\n private final int size;\n\n FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }\n\n @Override\n public String toString() {\n return Arrays.toString(state);\n }\n\n long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }\n\n /** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"public class Main {\n static class Pair {\n int num;\n int cut;\n\n Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }\n\n double getVal() {\n return -num / (double) cut;\n }\n }\n\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n String N = sc.nextLine();\n int sum = 0;\n int char0 = Integer.valueOf('0');\n for(char c: N.toCharArray()\n ){\n sum += c - char0;\n }\n\n if ( sum % 9 == 0) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n //pw.println(sum % 9 == 0);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n /**\n * https://www.slideshare.net/hcpc_hokudai/binary-indexed-tree A space efficient version segment\n * tree. Usually for range sum. Or the required metric can be calulated in that:\n *\n * <p>right_metric = parant_metric - left_metric Only then, we can stop memoizing right_metric\n *\n * <p>The internal structure is a 1-base array, to simplify calculation of parent node's idx. lsb\n * = 3 & -3 = 2 (0x0011 & 0x1101 = 0x0001) lastParentOf3 = 3 - lsb = 2 curParentOf3 = 3 + lsb = 4\n */\n static class FenwickTree {\n private final long[] state;\n private final int size;\n\n FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }\n\n @Override\n public String toString() {\n return Arrays.toString(state);\n }\n\n long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }\n\n /** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.Arrays;
import java.util.StringTokenizer;
import static java.lang.Long.max;
public class Main {
static class Pair {
int num;
int cut;
Pair(int num, int cut) {
this.num = num;
this.cut = cut;
}
double getVal() {
return -num / (double) cut;
}
}
public static void main(String[] args) throws IOException {
sc = new MScanner(System.in);
pw = new PrintWriter(System.out);
String N = sc.nextLine();
int sum = 0;
int char0 = Integer.valueOf('0');
for(char c: N.toCharArray()
){
sum += c - char0;
}
if ( sum % 9 == 0) {
pw.println("Yes");
} else {
pw.println("No");
}
//pw.println(sum % 9 == 0);
// pw.println("end");
// pw.println();
pw.flush();
// System.out.println(cnt);
}
/**
* https://www.slideshare.net/hcpc_hokudai/binary-indexed-tree A space efficient version segment
* tree. Usually for range sum. Or the required metric can be calulated in that:
*
* <p>right_metric = parant_metric - left_metric Only then, we can stop memoizing right_metric
*
* <p>The internal structure is a 1-base array, to simplify calculation of parent node's idx. lsb
* = 3 & -3 = 2 (0x0011 & 0x1101 = 0x0001) lastParentOf3 = 3 - lsb = 2 curParentOf3 = 3 + lsb = 4
*/
static class FenwickTree {
private final long[] state;
private final int size;
FenwickTree(int size) {
this.size = size;
state = new long[size + 1];
}
@Override
public String toString() {
return Arrays.toString(state);
}
long queryRangeSumFromZeroTo(int idx) {
long sum = 0;
while (idx != 0) {
sum += state[idx];
idx -= (idx & -idx);
}
return sum;
}
/** @param val can be negative */
void updateElement(int idx, long val) {
while (idx <= size) {
state[idx] += val;
idx += (idx & -idx);
}
}
}
// sc.close();
// pw.println(cnt);
// pw.flush();
static PrintWriter pw;
static MScanner sc;
static class MScanner {
StringTokenizer st;
BufferedReader br;
public MScanner(InputStream system) {
br = new BufferedReader(new InputStreamReader(system));
}
public MScanner(String file) throws Exception {
br = new BufferedReader(new FileReader(file));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int[] intArr(int n) throws IOException {
int[] in = new int[n];
for (int i = 0; i < n; i++) in[i] = nextInt();
return in;
}
public long[] longArr(int n) throws IOException {
long[] in = new long[n];
for (int i = 0; i < n; i++) in[i] = nextLong();
return in;
}
public int[] intSortedArr(int n) throws IOException {
int[] in = new int[n];
for (int i = 0; i < n; i++) in[i] = nextInt();
shuffle(in);
Arrays.sort(in);
return in;
}
public long[] longSortedArr(int n) throws IOException {
long[] in = new long[n];
for (int i = 0; i < n; i++) in[i] = nextLong();
shuffle(in);
Arrays.sort(in);
return in;
}
public Integer[] IntegerArr(int n) throws IOException {
Integer[] in = new Integer[n];
for (int i = 0; i < n; i++) in[i] = nextInt();
return in;
}
public Long[] LongArr(int n) throws IOException {
Long[] in = new Long[n];
for (int i = 0; i < n; i++) in[i] = nextLong();
return in;
}
public String nextLine() throws IOException {
return br.readLine();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public char nextChar() throws IOException {
return next().charAt(0);
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
public boolean ready() throws IOException {
return br.ready();
}
public void waitForInput() throws InterruptedException {
Thread.sleep(3000);
}
}
static void shuffle(int[] in) {
for (int i = 0; i < in.length; i++) {
int idx = (int) (Math.random() * in.length);
int tmp = in[i];
in[i] = in[idx];
in[idx] = tmp;
}
}
static void shuffle(long[] in) {
for (int i = 0; i < in.length; i++) {
int idx = (int) (Math.random() * in.length);
long tmp = in[i];
in[i] = in[idx];
in[idx] = tmp;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
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,
17,
0,
13,
13,
0,
13,
17,
4,
18,
13,
8,
2,
13,
17,
17,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
4,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
13,
17,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
37,
20,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
29,
17,
0,
13,
20,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
13,
29,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
225,
32
],
[
225,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
35,
52
],
[
52,
53
],
[
52,
54
],
[
35,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
55,
60
],
[
35,
61
],
[
61,
62
],
[
62,
63
],
[
33,
64
],
[
64,
65
],
[
225,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
70,
76
],
[
76,
77
],
[
76,
78
],
[
70,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
79,
89
],
[
89,
90
],
[
90,
91
],
[
79,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
96,
101
],
[
93,
102
],
[
102,
103
],
[
102,
104
],
[
93,
105
],
[
105,
106
],
[
105,
107
],
[
70,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
111,
116
],
[
68,
117
],
[
117,
118
],
[
68,
119
],
[
119,
120
],
[
68,
121
],
[
121,
122
],
[
225,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
123,
127
],
[
127,
128
],
[
123,
129
],
[
129,
130
],
[
129,
131
],
[
123,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
132,
138
],
[
138,
139
],
[
123,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
140,
146
],
[
146,
147
],
[
123,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
162,
162
],
[
162,
163
],
[
162,
164
],
[
162,
165
],
[
150,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
166,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
179,
183
],
[
183,
184
],
[
176,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
185,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
185,
197
],
[
197,
198
],
[
197,
199
],
[
150,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
150,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
217,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
217,
221
],
[
150,
222
],
[
222,
223
],
[
0,
224
],
[
224,
225
],
[
224,
226
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.PrintStream;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Eric\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BMultipleOf9 {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n String a = in.next();\n int res = 0;\n for (int i = 0; i < a.length(); i++) {\n int val = a.charAt(i) - '0';\n res += val;\n res %= 9;\n }\n out.print(((res == 0) ? \"Yes\" : \"No\"));\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.PrintStream;",
"PrintStream",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BMultipleOf9 {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n String a = in.next();\n int res = 0;\n for (int i = 0; i < a.length(); i++) {\n int val = a.charAt(i) - '0';\n res += val;\n res %= 9;\n }\n out.print(((res == 0) ? \"Yes\" : \"No\"));\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"FastReader in = new FastReader(inputStream);",
"in",
"new FastReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"BMultipleOf9 solver = new BMultipleOf9();",
"solver",
"new BMultipleOf9()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BMultipleOf9 {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n String a = in.next();\n int res = 0;\n for (int i = 0; i < a.length(); i++) {\n int val = a.charAt(i) - '0';\n res += val;\n res %= 9;\n }\n out.print(((res == 0) ? \"Yes\" : \"No\"));\n }\n\n }",
"BMultipleOf9",
"public void solve(int testNumber, FastReader in, PrintWriter out) {\n String a = in.next();\n int res = 0;\n for (int i = 0; i < a.length(); i++) {\n int val = a.charAt(i) - '0';\n res += val;\n res %= 9;\n }\n out.print(((res == 0) ? \"Yes\" : \"No\"));\n }",
"solve",
"{\n String a = in.next();\n int res = 0;\n for (int i = 0; i < a.length(); i++) {\n int val = a.charAt(i) - '0';\n res += val;\n res %= 9;\n }\n out.print(((res == 0) ? \"Yes\" : \"No\"));\n }",
"String a = in.next();",
"a",
"in.next()",
"in.next",
"in",
"int res = 0;",
"res",
"0",
"for (int i = 0; i < a.length(); i++) {\n int val = a.charAt(i) - '0';\n res += val;\n res %= 9;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length()",
"i",
"a.length()",
"a.length",
"a",
"i++",
"i++",
"i",
"{\n int val = a.charAt(i) - '0';\n res += val;\n res %= 9;\n }",
"{\n int val = a.charAt(i) - '0';\n res += val;\n res %= 9;\n }",
"int val = a.charAt(i) - '0';",
"val",
"a.charAt(i) - '0'",
"a.charAt(i)",
"a.charAt",
"a",
"i",
"'0'",
"res += val",
"res",
"val",
"res %= 9",
"res",
"9",
"out.print(((res == 0) ? \"Yes\" : \"No\"))",
"out.print",
"out",
"((res == 0) ? \"Yes\" : \"No\")",
"(res == 0)",
"res",
"0",
"\"Yes\"",
"\"No\"",
"int testNumber",
"testNumber",
"FastReader in",
"in",
"PrintWriter out",
"out",
"static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n }",
"FastReader",
"public BufferedReader br;",
"br",
"public StringTokenizer st;",
"st",
"String context = null;",
"context",
"null",
"public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }",
"FastReader",
"{\n this(new InputStreamReader(in));\n }",
"this(new InputStreamReader(in))",
"this",
"new InputStreamReader(in)",
"InputStream in",
"in",
"public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }",
"FastReader",
"{\n br = new BufferedReader(input);\n }",
"br = new BufferedReader(input)",
"br",
"new BufferedReader(input)",
"InputStreamReader input",
"input",
"public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }",
"next",
"{\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }",
"if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }",
"context != null",
"context",
"null",
"{\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }",
"System.err.print(\"[\" + context + \"] Wait for input ...\")",
"System.err.print",
"System.err",
"System",
"System.err",
"\"[\" + context + \"] Wait for input ...\"",
"\"[\" + context + \"] Wait for input ...\"",
"\"[\"",
"context",
"\"] Wait for input ...\"",
"while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }",
"try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }",
"catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }",
"IOException e",
"{\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"throw new RuntimeException(\"Could not read\");",
"new RuntimeException(\"Could not read\")",
"{\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"if (s == null)\n return null;",
"s == null",
"s",
"null",
"return null;",
"null",
"st = new StringTokenizer(s)",
"st",
"new StringTokenizer(s)",
"String res = st.nextToken();",
"res",
"st.nextToken()",
"st.nextToken",
"st",
"if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }",
"context != null",
"context",
"null",
"{\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }",
"System.err.println(\"[\" + context + \"] ... received : \" + res)",
"System.err.println",
"System.err",
"System",
"System.err",
"\"[\" + context + \"] ... received : \" + res",
"\"] ... received : \"",
"\"[\" + context + \"] ... received : \" + res",
"\"[\"",
"context",
"\"] ... received : \"",
"res",
"return res;",
"res",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BMultipleOf9 {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n String a = in.next();\n int res = 0;\n for (int i = 0; i < a.length(); i++) {\n int val = a.charAt(i) - '0';\n res += val;\n res %= 9;\n }\n out.print(((res == 0) ? \"Yes\" : \"No\"));\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BMultipleOf9 solver = new BMultipleOf9();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BMultipleOf9 {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n String a = in.next();\n int res = 0;\n for (int i = 0; i < a.length(); i++) {\n int val = a.charAt(i) - '0';\n res += val;\n res %= 9;\n }\n out.print(((res == 0) ? \"Yes\" : \"No\"));\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.PrintStream;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Eric
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
BMultipleOf9 solver = new BMultipleOf9();
solver.solve(1, in, out);
out.close();
}
static class BMultipleOf9 {
public void solve(int testNumber, FastReader in, PrintWriter out) {
String a = in.next();
int res = 0;
for (int i = 0; i < a.length(); i++) {
int val = a.charAt(i) - '0';
res += val;
res %= 9;
}
out.print(((res == 0) ? "Yes" : "No"));
}
}
static class FastReader {
public BufferedReader br;
public StringTokenizer st;
String context = null;
public FastReader(InputStream in) {
this(new InputStreamReader(in));
}
public FastReader(InputStreamReader input) {
br = new BufferedReader(input);
}
public String next() {
if (context != null) {
System.err.print("[" + context + "] Wait for input ...");
}
while (st == null || !st.hasMoreElements()) {
try {
String s = br.readLine();
if (s == null)
return null;
st = new StringTokenizer(s);
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException("Could not read");
}
}
String res = st.nextToken();
if (context != null) {
System.err.println("[" + context + "] ... received : " + res);
}
return res;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
78,
5
],
[
78,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
43,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
55,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
6,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n int l = str.length();\n String[] array = str.split(\"\");\n int ans = 0;\n\n for (int i = 0; i < l; i++) {\n int tmp = Integer.parseInt(array[i]);\n ans += tmp;\n }\n if (ans % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n int l = str.length();\n String[] array = str.split(\"\");\n int ans = 0;\n\n for (int i = 0; i < l; i++) {\n int tmp = Integer.parseInt(array[i]);\n ans += tmp;\n }\n if (ans % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n int l = str.length();\n String[] array = str.split(\"\");\n int ans = 0;\n\n for (int i = 0; i < l; i++) {\n int tmp = Integer.parseInt(array[i]);\n ans += tmp;\n }\n if (ans % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n int l = str.length();\n String[] array = str.split(\"\");\n int ans = 0;\n\n for (int i = 0; i < l; i++) {\n int tmp = Integer.parseInt(array[i]);\n ans += tmp;\n }\n if (ans % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int l = str.length();",
"l",
"str.length()",
"str.length",
"str",
"String[] array = str.split(\"\");",
"array",
"str.split(\"\")",
"str.split",
"str",
"\"\"",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < l; i++) {\n int tmp = Integer.parseInt(array[i]);\n ans += tmp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < l",
"i",
"l",
"i++",
"i++",
"i",
"{\n int tmp = Integer.parseInt(array[i]);\n ans += tmp;\n }",
"{\n int tmp = Integer.parseInt(array[i]);\n ans += tmp;\n }",
"int tmp = Integer.parseInt(array[i]);",
"tmp",
"Integer.parseInt(array[i])",
"Integer.parseInt",
"Integer",
"array[i]",
"array",
"i",
"ans += tmp",
"ans",
"tmp",
"if (ans % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"ans % 9 == 0",
"ans % 9",
"ans",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n int l = str.length();\n String[] array = str.split(\"\");\n int ans = 0;\n\n for (int i = 0; i < l; i++) {\n int tmp = Integer.parseInt(array[i]);\n ans += tmp;\n }\n if (ans % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n int l = str.length();\n String[] array = str.split(\"\");\n int ans = 0;\n\n for (int i = 0; i < l; i++) {\n int tmp = Integer.parseInt(array[i]);\n ans += tmp;\n }\n if (ans % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\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 = sc.nextLine();
int l = str.length();
String[] array = str.split("");
int ans = 0;
for (int i = 0; i < l; i++) {
int tmp = Integer.parseInt(array[i]);
ans += tmp;
}
if (ans % 9 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
4,
18,
13,
13,
0,
13,
13,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
22,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
36,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
49,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tString nis = sc.next();\n\tint now;\n\tint sum = 0;\n\tfor (int i=0; i<nis.length(); i++) {\n\t now = Character.getNumericValue(nis.charAt(i));\n\t sum += now;\n\t}\n\tif (sum % 9 == 0) System.out.print(\"Yes\");\n\telse { System.out.print(\"No\"); }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tString nis = sc.next();\n\tint now;\n\tint sum = 0;\n\tfor (int i=0; i<nis.length(); i++) {\n\t now = Character.getNumericValue(nis.charAt(i));\n\t sum += now;\n\t}\n\tif (sum % 9 == 0) System.out.print(\"Yes\");\n\telse { System.out.print(\"No\"); }\n }\n}",
"Main",
"public static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tString nis = sc.next();\n\tint now;\n\tint sum = 0;\n\tfor (int i=0; i<nis.length(); i++) {\n\t now = Character.getNumericValue(nis.charAt(i));\n\t sum += now;\n\t}\n\tif (sum % 9 == 0) System.out.print(\"Yes\");\n\telse { System.out.print(\"No\"); }\n }",
"main",
"{\n\tScanner sc = new Scanner(System.in);\n\tString nis = sc.next();\n\tint now;\n\tint sum = 0;\n\tfor (int i=0; i<nis.length(); i++) {\n\t now = Character.getNumericValue(nis.charAt(i));\n\t sum += now;\n\t}\n\tif (sum % 9 == 0) System.out.print(\"Yes\");\n\telse { System.out.print(\"No\"); }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String nis = sc.next();",
"nis",
"sc.next()",
"sc.next",
"sc",
"int now;",
"now",
"int sum = 0;",
"sum",
"0",
"for (int i=0; i<nis.length(); i++) {\n\t now = Character.getNumericValue(nis.charAt(i));\n\t sum += now;\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<nis.length()",
"i",
"nis.length()",
"nis.length",
"nis",
"i++",
"i++",
"i",
"{\n\t now = Character.getNumericValue(nis.charAt(i));\n\t sum += now;\n\t}",
"{\n\t now = Character.getNumericValue(nis.charAt(i));\n\t sum += now;\n\t}",
"now = Character.getNumericValue(nis.charAt(i))",
"now",
"Character.getNumericValue(nis.charAt(i))",
"Character.getNumericValue",
"Character",
"nis.charAt(i)",
"nis.charAt",
"nis",
"i",
"sum += now",
"sum",
"now",
"if (sum % 9 == 0) System.out.print(\"Yes\");\n\telse { System.out.print(\"No\"); }",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{ System.out.print(\"No\"); }",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tString nis = sc.next();\n\tint now;\n\tint sum = 0;\n\tfor (int i=0; i<nis.length(); i++) {\n\t now = Character.getNumericValue(nis.charAt(i));\n\t sum += now;\n\t}\n\tif (sum % 9 == 0) System.out.print(\"Yes\");\n\telse { System.out.print(\"No\"); }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tString nis = sc.next();\n\tint now;\n\tint sum = 0;\n\tfor (int i=0; i<nis.length(); i++) {\n\t now = Character.getNumericValue(nis.charAt(i));\n\t sum += now;\n\t}\n\tif (sum % 9 == 0) System.out.print(\"Yes\");\n\telse { System.out.print(\"No\"); }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String nis = sc.next();
int now;
int sum = 0;
for (int i=0; i<nis.length(); i++) {
now = Character.getNumericValue(nis.charAt(i));
sum += now;
}
if (sum % 9 == 0) System.out.print("Yes");
else { System.out.print("No"); }
}
}
|
[
7,
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,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
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
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
51,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
]
]
| [
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String ns = sc.next();\n String[] s = ns.split(\"\");\n int sum = 0;\n for (int i = 0; i < s.length; i++) {\n sum = sum + Integer.parseInt(s[i]);\n }\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String ns = sc.next();\n String[] s = ns.split(\"\");\n int sum = 0;\n for (int i = 0; i < s.length; i++) {\n sum = sum + Integer.parseInt(s[i]);\n }\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String ns = sc.next();\n String[] s = ns.split(\"\");\n int sum = 0;\n for (int i = 0; i < s.length; i++) {\n sum = sum + Integer.parseInt(s[i]);\n }\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String ns = sc.next();\n String[] s = ns.split(\"\");\n int sum = 0;\n for (int i = 0; i < s.length; i++) {\n sum = sum + Integer.parseInt(s[i]);\n }\n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String ns = sc.next();",
"ns",
"sc.next()",
"sc.next",
"sc",
"String[] s = ns.split(\"\");",
"s",
"ns.split(\"\")",
"ns.split",
"ns",
"\"\"",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < s.length; i++) {\n sum = sum + Integer.parseInt(s[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n sum = sum + Integer.parseInt(s[i]);\n }",
"{\n sum = sum + Integer.parseInt(s[i]);\n }",
"sum = sum + Integer.parseInt(s[i])",
"sum",
"sum + Integer.parseInt(s[i])",
"sum",
"Integer.parseInt(s[i])",
"Integer.parseInt",
"Integer",
"s[i]",
"s",
"i",
"if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String ns = sc.next();
String[] s = ns.split("");
int sum = 0;
for (int i = 0; i < s.length; i++) {
sum = sum + Integer.parseInt(s[i]);
}
if (sum % 9 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
13,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
72,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
10,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
22,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
36,
46
],
[
46,
47
],
[
46,
48
],
[
10,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
49,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
8,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tstatic int ans;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i<n.length();i++) {\n\t\t\tint tmp= Character.getNumericValue(n.charAt(i));\n//\t\t\tSystem.out.println(tmp);\n\t\t\tsum+=tmp;\n\t\t}\n//\t\tSystem.out.println(sum);\n\t\tif(sum%9==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n//\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tstatic int ans;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i<n.length();i++) {\n\t\t\tint tmp= Character.getNumericValue(n.charAt(i));\n//\t\t\tSystem.out.println(tmp);\n\t\t\tsum+=tmp;\n\t\t}\n//\t\tSystem.out.println(sum);\n\t\tif(sum%9==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n//\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"static int ans;",
"ans",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i<n.length();i++) {\n\t\t\tint tmp= Character.getNumericValue(n.charAt(i));\n//\t\t\tSystem.out.println(tmp);\n\t\t\tsum+=tmp;\n\t\t}\n//\t\tSystem.out.println(sum);\n\t\tif(sum%9==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n//\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i<n.length();i++) {\n\t\t\tint tmp= Character.getNumericValue(n.charAt(i));\n//\t\t\tSystem.out.println(tmp);\n\t\t\tsum+=tmp;\n\t\t}\n//\t\tSystem.out.println(sum);\n\t\tif(sum%9==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n//\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"int sum = 0;",
"sum",
"0",
"for(int i = 0; i<n.length();i++) {\n\t\t\tint tmp= Character.getNumericValue(n.charAt(i));\n//\t\t\tSystem.out.println(tmp);\n\t\t\tsum+=tmp;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint tmp= Character.getNumericValue(n.charAt(i));\n//\t\t\tSystem.out.println(tmp);\n\t\t\tsum+=tmp;\n\t\t}",
"{\n\t\t\tint tmp= Character.getNumericValue(n.charAt(i));\n//\t\t\tSystem.out.println(tmp);\n\t\t\tsum+=tmp;\n\t\t}",
"int tmp= Character.getNumericValue(n.charAt(i));",
"tmp",
"Character.getNumericValue(n.charAt(i))",
"Character.getNumericValue",
"Character",
"n.charAt(i)",
"n.charAt",
"n",
"i",
"sum+=tmp",
"sum",
"tmp",
"if(sum%9==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"sum%9==0",
"sum%9",
"sum",
"9",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tstatic int ans;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i<n.length();i++) {\n\t\t\tint tmp= Character.getNumericValue(n.charAt(i));\n//\t\t\tSystem.out.println(tmp);\n\t\t\tsum+=tmp;\n\t\t}\n//\t\tSystem.out.println(sum);\n\t\tif(sum%9==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n//\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\n\tstatic int ans;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i<n.length();i++) {\n\t\t\tint tmp= Character.getNumericValue(n.charAt(i));\n//\t\t\tSystem.out.println(tmp);\n\t\t\tsum+=tmp;\n\t\t}\n//\t\tSystem.out.println(sum);\n\t\tif(sum%9==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n//\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static int ans;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String n = sc.next();
int sum = 0;
for(int i = 0; i<n.length();i++) {
int tmp= Character.getNumericValue(n.charAt(i));
// System.out.println(tmp);
sum+=tmp;
}
// System.out.println(sum);
if(sum%9==0) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
// System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
14,
4,
18,
4,
18,
13,
20,
20,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
203,
35
],
[
203,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
45,
47
],
[
41,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
41,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
54,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
53,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
36,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
73,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
85,
86
],
[
73,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
90,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
89,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
73,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
73,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
73,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
73,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
159,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
143,
168
],
[
168,
169
],
[
141,
170
],
[
170,
171
],
[
73,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
184,
185
],
[
184,
186
],
[
179,
187
],
[
187,
188
],
[
188,
189
],
[
179,
190
],
[
191,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
196,
197
],
[
174,
198
],
[
198,
199
],
[
172,
200
],
[
200,
201
],
[
0,
202
],
[
202,
203
],
[
202,
204
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.util.Arrays; \nimport java.util.ArrayList; \nimport java.util.Collections; \nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\nimport java.util.StringTokenizer;\nimport java.math.BigInteger;\n\npublic class Main {\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n Scanner in = new Scanner(System.in); \n BigInteger n = in.nextBigInteger(); \n\n /*\n BigInteger sum = BigInteger.ZERO;\n while ((n.compareTo(new BigInteger(\"0\"))) == 1) {\n BigInteger mod = n.mod(new BigInteger(\"10\")); \n sum = sum.add(mod);\n n = n.divide(new BigInteger(\"10\"));\n }\n //out.println(sum);\n //out.println(sum.mod(new BigInteger(\"9\")));\n\n if((sum.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }*/\n\n if((n.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n\n\n\n\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }\n}\n\n\n\n\nclass FastScanner {\n private final BufferedReader br;\n private StringTokenizer st;\n \n FastScanner(InputStream InputStream) {\n br = new BufferedReader(new InputStreamReader(InputStream));\n }\n \n String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n\n \n ArrayList<Integer> nextIntList(int count) {\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }\n \n int[] nextIntArray(int count) {\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n Scanner in = new Scanner(System.in); \n BigInteger n = in.nextBigInteger(); \n\n /*\n BigInteger sum = BigInteger.ZERO;\n while ((n.compareTo(new BigInteger(\"0\"))) == 1) {\n BigInteger mod = n.mod(new BigInteger(\"10\")); \n sum = sum.add(mod);\n n = n.divide(new BigInteger(\"10\"));\n }\n //out.println(sum);\n //out.println(sum.mod(new BigInteger(\"9\")));\n\n if((sum.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }*/\n\n if((n.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n\n\n\n\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }\n}",
"Main",
"public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n Scanner in = new Scanner(System.in); \n BigInteger n = in.nextBigInteger(); \n\n /*\n BigInteger sum = BigInteger.ZERO;\n while ((n.compareTo(new BigInteger(\"0\"))) == 1) {\n BigInteger mod = n.mod(new BigInteger(\"10\")); \n sum = sum.add(mod);\n n = n.divide(new BigInteger(\"10\"));\n }\n //out.println(sum);\n //out.println(sum.mod(new BigInteger(\"9\")));\n\n if((sum.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }*/\n\n if((n.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n\n\n\n\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }",
"main",
"{\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n Scanner in = new Scanner(System.in); \n BigInteger n = in.nextBigInteger(); \n\n /*\n BigInteger sum = BigInteger.ZERO;\n while ((n.compareTo(new BigInteger(\"0\"))) == 1) {\n BigInteger mod = n.mod(new BigInteger(\"10\")); \n sum = sum.add(mod);\n n = n.divide(new BigInteger(\"10\"));\n }\n //out.println(sum);\n //out.println(sum.mod(new BigInteger(\"9\")));\n\n if((sum.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }*/\n\n if((n.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n\n\n\n\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }",
"try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n Scanner in = new Scanner(System.in); \n BigInteger n = in.nextBigInteger(); \n\n /*\n BigInteger sum = BigInteger.ZERO;\n while ((n.compareTo(new BigInteger(\"0\"))) == 1) {\n BigInteger mod = n.mod(new BigInteger(\"10\")); \n sum = sum.add(mod);\n n = n.divide(new BigInteger(\"10\"));\n }\n //out.println(sum);\n //out.println(sum.mod(new BigInteger(\"9\")));\n\n if((sum.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }*/\n\n if((n.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n\n\n\n\n\n\n\n\n } finally {\n //out.close();\n }",
"{\n //out.close();\n }",
"{\n Scanner in = new Scanner(System.in); \n BigInteger n = in.nextBigInteger(); \n\n /*\n BigInteger sum = BigInteger.ZERO;\n while ((n.compareTo(new BigInteger(\"0\"))) == 1) {\n BigInteger mod = n.mod(new BigInteger(\"10\")); \n sum = sum.add(mod);\n n = n.divide(new BigInteger(\"10\"));\n }\n //out.println(sum);\n //out.println(sum.mod(new BigInteger(\"9\")));\n\n if((sum.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }*/\n\n if((n.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n\n\n\n\n\n\n\n\n }",
"PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))",
"PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))",
"new PrintWriter(new BufferedOutputStream(System.out))",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"BigInteger n = in.nextBigInteger();",
"n",
"in.nextBigInteger()",
"in.nextBigInteger",
"in",
"if((n.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }",
"(n.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))",
"(n.mod(new BigInteger(\"9\"))).equals",
"(n.mod(new BigInteger(\"9\")))",
"n.mod",
"n",
"new BigInteger(\"9\")",
"new BigInteger(\"0\")",
"{\n out.println(\"Yes\");\n }",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"{\n out.println(\"No\");\n }",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"String[] args",
"args",
"class FastScanner {\n private final BufferedReader br;\n private StringTokenizer st;\n \n FastScanner(InputStream InputStream) {\n br = new BufferedReader(new InputStreamReader(InputStream));\n }\n \n String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n\n \n ArrayList<Integer> nextIntList(int count) {\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }\n \n int[] nextIntArray(int count) {\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }\n}",
"FastScanner",
"private final BufferedReader br;",
"br",
"private StringTokenizer st;",
"st",
"FastScanner(InputStream InputStream) {\n br = new BufferedReader(new InputStreamReader(InputStream));\n }",
"FastScanner",
"{\n br = new BufferedReader(new InputStreamReader(InputStream));\n }",
"br = new BufferedReader(new InputStreamReader(InputStream))",
"br",
"new BufferedReader(new InputStreamReader(InputStream))",
"InputStream InputStream",
"InputStream",
"String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"ArrayList<Integer> nextIntList(int count) {\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }",
"nextIntList",
"{\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }",
"ArrayList<Integer> array = new ArrayList<>();",
"array",
"new ArrayList<>()",
"for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < count",
"n",
"count",
"n++",
"n++",
"n",
"{\n int number = nextInt();\n array.add(number);\n }",
"{\n int number = nextInt();\n array.add(number);\n }",
"int number = nextInt();",
"number",
"nextInt()",
"nextInt",
"array.add(number)",
"array.add",
"array",
"number",
"return array;",
"array",
"int count",
"count",
"int[] nextIntArray(int count) {\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }",
"nextIntArray",
"{\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }",
"int[] array = new int[count];",
"array",
"new int[count]",
"count",
"for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < count",
"n",
"count",
"n++",
"n++",
"n",
"{\n array[n] = nextInt();\n }",
"{\n array[n] = nextInt();\n }",
"array[n] = nextInt()",
"array[n]",
"array",
"n",
"nextInt()",
"nextInt",
"return array;",
"array",
"int count",
"count",
"public class Main {\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n Scanner in = new Scanner(System.in); \n BigInteger n = in.nextBigInteger(); \n\n /*\n BigInteger sum = BigInteger.ZERO;\n while ((n.compareTo(new BigInteger(\"0\"))) == 1) {\n BigInteger mod = n.mod(new BigInteger(\"10\")); \n sum = sum.add(mod);\n n = n.divide(new BigInteger(\"10\"));\n }\n //out.println(sum);\n //out.println(sum.mod(new BigInteger(\"9\")));\n\n if((sum.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }*/\n\n if((n.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n\n\n\n\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n Scanner in = new Scanner(System.in); \n BigInteger n = in.nextBigInteger(); \n\n /*\n BigInteger sum = BigInteger.ZERO;\n while ((n.compareTo(new BigInteger(\"0\"))) == 1) {\n BigInteger mod = n.mod(new BigInteger(\"10\")); \n sum = sum.add(mod);\n n = n.divide(new BigInteger(\"10\"));\n }\n //out.println(sum);\n //out.println(sum.mod(new BigInteger(\"9\")));\n\n if((sum.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }*/\n\n if((n.mod(new BigInteger(\"9\"))).equals(new BigInteger(\"0\"))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n\n\n\n\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.InputStream;
import java.util.StringTokenizer;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) {
try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {
Scanner in = new Scanner(System.in);
BigInteger n = in.nextBigInteger();
/*
BigInteger sum = BigInteger.ZERO;
while ((n.compareTo(new BigInteger("0"))) == 1) {
BigInteger mod = n.mod(new BigInteger("10"));
sum = sum.add(mod);
n = n.divide(new BigInteger("10"));
}
//out.println(sum);
//out.println(sum.mod(new BigInteger("9")));
if((sum.mod(new BigInteger("9"))).equals(new BigInteger("0"))) {
out.println("Yes");
} else {
out.println("No");
}*/
if((n.mod(new BigInteger("9"))).equals(new BigInteger("0"))) {
out.println("Yes");
} else {
out.println("No");
}
} finally {
//out.close();
}
}
}
class FastScanner {
private final BufferedReader br;
private StringTokenizer st;
FastScanner(InputStream InputStream) {
br = new BufferedReader(new InputStreamReader(InputStream));
}
String next() {
while (st == null || !st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
ArrayList<Integer> nextIntList(int count) {
ArrayList<Integer> array = new ArrayList<>();
for (int n = 0; n < count; n++) {
int number = nextInt();
array.add(number);
}
return array;
}
int[] nextIntArray(int count) {
int[] array = new int[count];
for (int n = 0; n < count; n++) {
array[n] = nextInt();
}
return array;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
8,
2,
2,
13,
17,
17,
17,
17,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
194,
20
],
[
194,
21
],
[
21,
22
],
[
21,
23
],
[
194,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
40,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
26,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
55,
62
],
[
24,
63
],
[
63,
64
],
[
194,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
85,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
85,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
101,
103
],
[
85,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
67,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
65,
113
],
[
113,
114
],
[
194,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
126,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
131,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
125,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
115,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
153,
154
],
[
115,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
162,
170
],
[
170,
171
],
[
171,
172
],
[
162,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
178,
179
],
[
157,
180
],
[
180,
181
],
[
155,
182
],
[
182,
183
],
[
115,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
191,
192
],
[
0,
193
],
[
193,
194
],
[
193,
195
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.Random;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner1 sc = new Scanner1();\n\t\t\n\t\tchar[] line=sc.next().toCharArray();\n\t\tint sum=0;\n\t\tfor (char c:line)\t\t\n\t\t{ \n\t\t\tsum+=c-'0';\n\t\t}\n\t\t\n\t\tSystem.out.println(sum%9==0?\"Yes\":\"No\");\n\n\t}\n\n\tstatic final Random random = new Random();\n\n\tstatic void ruffleSort(int[] a) {\n\t\tint n = a.length;//shuffle, then sort \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint oi = random.nextInt(n), temp = a[oi];\n\t\t\ta[oi] = a[i];\n\t\t\ta[i] = temp;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\n\tstatic class Scanner1 {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\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",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Random;",
"Random",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner1 sc = new Scanner1();\n\t\t\n\t\tchar[] line=sc.next().toCharArray();\n\t\tint sum=0;\n\t\tfor (char c:line)\t\t\n\t\t{ \n\t\t\tsum+=c-'0';\n\t\t}\n\t\t\n\t\tSystem.out.println(sum%9==0?\"Yes\":\"No\");\n\n\t}\n\n\tstatic final Random random = new Random();\n\n\tstatic void ruffleSort(int[] a) {\n\t\tint n = a.length;//shuffle, then sort \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint oi = random.nextInt(n), temp = a[oi];\n\t\t\ta[oi] = a[i];\n\t\t\ta[i] = temp;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\n\tstatic class Scanner1 {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n}",
"Main",
"static final Random random = new Random();",
"random",
"new Random()",
"public static void main(String[] args) {\n\t\tScanner1 sc = new Scanner1();\n\t\t\n\t\tchar[] line=sc.next().toCharArray();\n\t\tint sum=0;\n\t\tfor (char c:line)\t\t\n\t\t{ \n\t\t\tsum+=c-'0';\n\t\t}\n\t\t\n\t\tSystem.out.println(sum%9==0?\"Yes\":\"No\");\n\n\t}",
"main",
"{\n\t\tScanner1 sc = new Scanner1();\n\t\t\n\t\tchar[] line=sc.next().toCharArray();\n\t\tint sum=0;\n\t\tfor (char c:line)\t\t\n\t\t{ \n\t\t\tsum+=c-'0';\n\t\t}\n\t\t\n\t\tSystem.out.println(sum%9==0?\"Yes\":\"No\");\n\n\t}",
"Scanner1 sc = new Scanner1();",
"sc",
"new Scanner1()",
"char[] line=sc.next().toCharArray();",
"line",
"sc.next().toCharArray()",
"sc.next().toCharArray",
"sc.next()",
"sc.next",
"sc",
"int sum=0;",
"sum",
"0",
"for (char c:line)\t\t\n\t\t{ \n\t\t\tsum+=c-'0';\n\t\t}",
"char c",
"line",
"{ \n\t\t\tsum+=c-'0';\n\t\t}",
"{ \n\t\t\tsum+=c-'0';\n\t\t}",
"sum+=c-'0'",
"sum",
"c-'0'",
"c",
"'0'",
"System.out.println(sum%9==0?\"Yes\":\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"sum%9==0?\"Yes\":\"No\"",
"sum%9==0",
"sum%9",
"sum",
"9",
"0",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"static void ruffleSort(int[] a) {\n\t\tint n = a.length;//shuffle, then sort \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint oi = random.nextInt(n), temp = a[oi];\n\t\t\ta[oi] = a[i];\n\t\t\ta[i] = temp;\n\t\t}\n\t\tArrays.sort(a);\n\t}",
"ruffleSort",
"{\n\t\tint n = a.length;//shuffle, then sort \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint oi = random.nextInt(n), temp = a[oi];\n\t\t\ta[oi] = a[i];\n\t\t\ta[i] = temp;\n\t\t}\n\t\tArrays.sort(a);\n\t}",
"int n = a.length;",
"n",
"a.length",
"a",
"a.length",
"for (int i = 0; i < n; i++) {\n\t\t\tint oi = random.nextInt(n), temp = a[oi];\n\t\t\ta[oi] = a[i];\n\t\t\ta[i] = temp;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint oi = random.nextInt(n), temp = a[oi];\n\t\t\ta[oi] = a[i];\n\t\t\ta[i] = temp;\n\t\t}",
"{\n\t\t\tint oi = random.nextInt(n), temp = a[oi];\n\t\t\ta[oi] = a[i];\n\t\t\ta[i] = temp;\n\t\t}",
"int oi = random.nextInt(n)",
"oi",
"random.nextInt(n)",
"random.nextInt",
"random",
"n",
"temp = a[oi];",
"temp",
"a[oi]",
"a",
"oi",
"a[oi] = a[i]",
"a[oi]",
"a",
"oi",
"a[i]",
"a",
"i",
"a[i] = temp",
"a[i]",
"a",
"i",
"temp",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"int[] a",
"a",
"static class Scanner1 {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}",
"Scanner1",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner1 sc = new Scanner1();\n\t\t\n\t\tchar[] line=sc.next().toCharArray();\n\t\tint sum=0;\n\t\tfor (char c:line)\t\t\n\t\t{ \n\t\t\tsum+=c-'0';\n\t\t}\n\t\t\n\t\tSystem.out.println(sum%9==0?\"Yes\":\"No\");\n\n\t}\n\n\tstatic final Random random = new Random();\n\n\tstatic void ruffleSort(int[] a) {\n\t\tint n = a.length;//shuffle, then sort \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint oi = random.nextInt(n), temp = a[oi];\n\t\t\ta[oi] = a[i];\n\t\t\ta[i] = temp;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\n\tstatic class Scanner1 {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner1 sc = new Scanner1();\n\t\t\n\t\tchar[] line=sc.next().toCharArray();\n\t\tint sum=0;\n\t\tfor (char c:line)\t\t\n\t\t{ \n\t\t\tsum+=c-'0';\n\t\t}\n\t\t\n\t\tSystem.out.println(sum%9==0?\"Yes\":\"No\");\n\n\t}\n\n\tstatic final Random random = new Random();\n\n\tstatic void ruffleSort(int[] a) {\n\t\tint n = a.length;//shuffle, then sort \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint oi = random.nextInt(n), temp = a[oi];\n\t\t\ta[oi] = a[i];\n\t\t\ta[i] = temp;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\n\tstatic class Scanner1 {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Random;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
Scanner1 sc = new Scanner1();
char[] line=sc.next().toCharArray();
int sum=0;
for (char c:line)
{
sum+=c-'0';
}
System.out.println(sum%9==0?"Yes":"No");
}
static final Random random = new Random();
static void ruffleSort(int[] a) {
int n = a.length;//shuffle, then sort
for (int i = 0; i < n; i++) {
int oi = random.nextInt(n), temp = a[oi];
a[oi] = a[i];
a[i] = temp;
}
Arrays.sort(a);
}
static class Scanner1 {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer("");
String next() {
while (!st.hasMoreTokens())
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
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,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
78,
8
],
[
78,
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
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
11,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
11,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
9,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n\n Scanner scan = new Scanner(System.in);\nString N = scan.next();\nint p=0;\nfor(int i=0;i<N.length();i++){\n p=p+Integer.parseInt(N.substring(i,i+1));\n}\np=p%9;\nif(p==0){System.out.println(\"Yes\");}\nelse{System.out.println(\"No\");}\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n\n Scanner scan = new Scanner(System.in);\nString N = scan.next();\nint p=0;\nfor(int i=0;i<N.length();i++){\n p=p+Integer.parseInt(N.substring(i,i+1));\n}\np=p%9;\nif(p==0){System.out.println(\"Yes\");}\nelse{System.out.println(\"No\");}\n }\n}",
"Main",
"public static void main(String[] args) {\n\t// write your code here\n\n Scanner scan = new Scanner(System.in);\nString N = scan.next();\nint p=0;\nfor(int i=0;i<N.length();i++){\n p=p+Integer.parseInt(N.substring(i,i+1));\n}\np=p%9;\nif(p==0){System.out.println(\"Yes\");}\nelse{System.out.println(\"No\");}\n }",
"main",
"{\n\t// write your code here\n\n Scanner scan = new Scanner(System.in);\nString N = scan.next();\nint p=0;\nfor(int i=0;i<N.length();i++){\n p=p+Integer.parseInt(N.substring(i,i+1));\n}\np=p%9;\nif(p==0){System.out.println(\"Yes\");}\nelse{System.out.println(\"No\");}\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String N = scan.next();",
"N",
"scan.next()",
"scan.next",
"scan",
"int p=0;",
"p",
"0",
"for(int i=0;i<N.length();i++){\n p=p+Integer.parseInt(N.substring(i,i+1));\n}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N.length()",
"i",
"N.length()",
"N.length",
"N",
"i++",
"i++",
"i",
"{\n p=p+Integer.parseInt(N.substring(i,i+1));\n}",
"{\n p=p+Integer.parseInt(N.substring(i,i+1));\n}",
"p=p+Integer.parseInt(N.substring(i,i+1))",
"p",
"p+Integer.parseInt(N.substring(i,i+1))",
"p",
"Integer.parseInt(N.substring(i,i+1))",
"Integer.parseInt",
"Integer",
"N.substring(i,i+1)",
"N.substring",
"N",
"i",
"i+1",
"i",
"1",
"p=p%9",
"p",
"p%9",
"p",
"9",
"if(p==0){System.out.println(\"Yes\");}\nelse{System.out.println(\"No\");}",
"p==0",
"p",
"0",
"{System.out.println(\"Yes\");}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{System.out.println(\"No\");}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n\n Scanner scan = new Scanner(System.in);\nString N = scan.next();\nint p=0;\nfor(int i=0;i<N.length();i++){\n p=p+Integer.parseInt(N.substring(i,i+1));\n}\np=p%9;\nif(p==0){System.out.println(\"Yes\");}\nelse{System.out.println(\"No\");}\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n\n Scanner scan = new Scanner(System.in);\nString N = scan.next();\nint p=0;\nfor(int i=0;i<N.length();i++){\n p=p+Integer.parseInt(N.substring(i,i+1));\n}\np=p%9;\nif(p==0){System.out.println(\"Yes\");}\nelse{System.out.println(\"No\");}\n }\n}",
"Main"
]
| import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// write your code here
Scanner scan = new Scanner(System.in);
String N = scan.next();
int p=0;
for(int i=0;i<N.length();i++){
p=p+Integer.parseInt(N.substring(i,i+1));
}
p=p%9;
if(p==0){System.out.println("Yes");}
else{System.out.println("No");}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
4,
18,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
17,
13,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
23,
30
],
[
30,
31
],
[
30,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
40,
46
],
[
37,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
53,
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.util.Scanner;\n public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String N = scan.next();\n String M = \"\";\n int cnt = 0;\n for(int i=N.length(); i>0; i--){\n M = N.substring(i-1,i);\n cnt += Integer.parseInt(M);\n }\n if(cnt%9==0){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\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 String N = scan.next();\n String M = \"\";\n int cnt = 0;\n for(int i=N.length(); i>0; i--){\n M = N.substring(i-1,i);\n cnt += Integer.parseInt(M);\n }\n if(cnt%9==0){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String N = scan.next();\n String M = \"\";\n int cnt = 0;\n for(int i=N.length(); i>0; i--){\n M = N.substring(i-1,i);\n cnt += Integer.parseInt(M);\n }\n if(cnt%9==0){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String N = scan.next();\n String M = \"\";\n int cnt = 0;\n for(int i=N.length(); i>0; i--){\n M = N.substring(i-1,i);\n cnt += Integer.parseInt(M);\n }\n if(cnt%9==0){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String N = scan.next();",
"N",
"scan.next()",
"scan.next",
"scan",
"String M = \"\";",
"M",
"\"\"",
"int cnt = 0;",
"cnt",
"0",
"for(int i=N.length(); i>0; i--){\n M = N.substring(i-1,i);\n cnt += Integer.parseInt(M);\n }",
"int i=N.length();",
"int i=N.length();",
"i",
"N.length()",
"N.length",
"N",
"i>0",
"i",
"0",
"i--",
"i--",
"i",
"{\n M = N.substring(i-1,i);\n cnt += Integer.parseInt(M);\n }",
"{\n M = N.substring(i-1,i);\n cnt += Integer.parseInt(M);\n }",
"M = N.substring(i-1,i)",
"M",
"N.substring(i-1,i)",
"N.substring",
"N",
"i-1",
"i",
"1",
"i",
"cnt += Integer.parseInt(M)",
"cnt",
"Integer.parseInt(M)",
"Integer.parseInt",
"Integer",
"M",
"if(cnt%9==0){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"cnt%9==0",
"cnt%9",
"cnt",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String N = scan.next();\n String M = \"\";\n int cnt = 0;\n for(int i=N.length(); i>0; i--){\n M = N.substring(i-1,i);\n cnt += Integer.parseInt(M);\n }\n if(cnt%9==0){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String N = scan.next();\n String M = \"\";\n int cnt = 0;\n for(int i=N.length(); i>0; i--){\n M = N.substring(i-1,i);\n cnt += Integer.parseInt(M);\n }\n if(cnt%9==0){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String N = scan.next();
String M = "";
int cnt = 0;
for(int i=N.length(); i>0; i--){
M = N.substring(i-1,i);
cnt += Integer.parseInt(M);
}
if(cnt%9==0){
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
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,
41,
13,
8,
2,
2,
13,
17,
17,
17,
17,
4,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
18,
20,
13,
13,
4,
18,
13,
4,
18,
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
],
[
90,
11
],
[
90,
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
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
48,
55
],
[
14,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
12,
60
],
[
60,
61
],
[
12,
62
],
[
62,
63
],
[
90,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
73,
77
],
[
66,
78
],
[
78,
79
],
[
79,
80
],
[
66,
81
],
[
81,
82
],
[
82,
83
],
[
66,
84
],
[
84,
85
],
[
85,
86
],
[
64,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n void solve(Scanner sc, PrintWriter pw) {\n String s = sc.next();\n int total = 0;\n for (int i = 0; i < s.length(); i++) {\n total += (s.charAt(i) - '0');\n }\n String result = (total % 9) == 0? \"Yes\" : \"No\";\n pw.println(result);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n void solve(Scanner sc, PrintWriter pw) {\n String s = sc.next();\n int total = 0;\n for (int i = 0; i < s.length(); i++) {\n total += (s.charAt(i) - '0');\n }\n String result = (total % 9) == 0? \"Yes\" : \"No\";\n pw.println(result);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"Main",
"void solve(Scanner sc, PrintWriter pw) {\n String s = sc.next();\n int total = 0;\n for (int i = 0; i < s.length(); i++) {\n total += (s.charAt(i) - '0');\n }\n String result = (total % 9) == 0? \"Yes\" : \"No\";\n pw.println(result);\n }",
"solve",
"{\n String s = sc.next();\n int total = 0;\n for (int i = 0; i < s.length(); i++) {\n total += (s.charAt(i) - '0');\n }\n String result = (total % 9) == 0? \"Yes\" : \"No\";\n pw.println(result);\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"int total = 0;",
"total",
"0",
"for (int i = 0; i < s.length(); i++) {\n total += (s.charAt(i) - '0');\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n total += (s.charAt(i) - '0');\n }",
"{\n total += (s.charAt(i) - '0');\n }",
"total += (s.charAt(i) - '0')",
"total",
"(s.charAt(i) - '0')",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'0'",
"String result = (total % 9) == 0? \"Yes\" : \"No\";",
"result",
"(total % 9) == 0? \"Yes\" : \"No\"",
"(total % 9) == 0",
"(total % 9)",
"total",
"9",
"0",
"\"Yes\"",
"\"No\"",
"pw.println(result)",
"pw.println",
"pw",
"result",
"Scanner sc",
"sc",
"PrintWriter pw",
"pw",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"new Main().solve(sc, pw)",
"new Main().solve",
"new Main()",
"sc",
"pw",
"pw.flush()",
"pw.flush",
"pw",
"pw.close()",
"pw.close",
"pw",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n void solve(Scanner sc, PrintWriter pw) {\n String s = sc.next();\n int total = 0;\n for (int i = 0; i < s.length(); i++) {\n total += (s.charAt(i) - '0');\n }\n String result = (total % 9) == 0? \"Yes\" : \"No\";\n pw.println(result);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"public class Main {\n void solve(Scanner sc, PrintWriter pw) {\n String s = sc.next();\n int total = 0;\n for (int i = 0; i < s.length(); i++) {\n total += (s.charAt(i) - '0');\n }\n String result = (total % 9) == 0? \"Yes\" : \"No\";\n pw.println(result);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"Main"
]
| import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
void solve(Scanner sc, PrintWriter pw) {
String s = sc.next();
int total = 0;
for (int i = 0; i < s.length(); i++) {
total += (s.charAt(i) - '0');
}
String result = (total % 9) == 0? "Yes" : "No";
pw.println(result);
}
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
PrintWriter pw = new PrintWriter(System.out);
new Main().solve(sc, pw);
pw.flush();
pw.close();
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
32,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
62,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.nextLine();\n String[] strs = num.split(\"\");\n int[] nums = new int[strs.length];\n int sum = 0;\n \n for (int i = 0; i < strs.length; i++) {\n nums[i] = Integer.parseInt(strs[i]);\n sum += nums[i];\n }\n \n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n \n scan.close();\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 String num = scan.nextLine();\n String[] strs = num.split(\"\");\n int[] nums = new int[strs.length];\n int sum = 0;\n \n for (int i = 0; i < strs.length; i++) {\n nums[i] = Integer.parseInt(strs[i]);\n sum += nums[i];\n }\n \n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n \n scan.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.nextLine();\n String[] strs = num.split(\"\");\n int[] nums = new int[strs.length];\n int sum = 0;\n \n for (int i = 0; i < strs.length; i++) {\n nums[i] = Integer.parseInt(strs[i]);\n sum += nums[i];\n }\n \n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n \n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String num = scan.nextLine();\n String[] strs = num.split(\"\");\n int[] nums = new int[strs.length];\n int sum = 0;\n \n for (int i = 0; i < strs.length; i++) {\n nums[i] = Integer.parseInt(strs[i]);\n sum += nums[i];\n }\n \n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n \n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String num = scan.nextLine();",
"num",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String[] strs = num.split(\"\");",
"strs",
"num.split(\"\")",
"num.split",
"num",
"\"\"",
"int[] nums = new int[strs.length];",
"nums",
"new int[strs.length]",
"strs.length",
"strs",
"strs.length",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < strs.length; i++) {\n nums[i] = Integer.parseInt(strs[i]);\n sum += nums[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < strs.length",
"i",
"strs.length",
"strs",
"strs.length",
"i++",
"i++",
"i",
"{\n nums[i] = Integer.parseInt(strs[i]);\n sum += nums[i];\n }",
"{\n nums[i] = Integer.parseInt(strs[i]);\n sum += nums[i];\n }",
"nums[i] = Integer.parseInt(strs[i])",
"nums[i]",
"nums",
"i",
"Integer.parseInt(strs[i])",
"Integer.parseInt",
"Integer",
"strs[i]",
"strs",
"i",
"sum += nums[i]",
"sum",
"nums[i]",
"nums",
"i",
"if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.nextLine();\n String[] strs = num.split(\"\");\n int[] nums = new int[strs.length];\n int sum = 0;\n \n for (int i = 0; i < strs.length; i++) {\n nums[i] = Integer.parseInt(strs[i]);\n sum += nums[i];\n }\n \n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n \n scan.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String num = scan.nextLine();\n String[] strs = num.split(\"\");\n int[] nums = new int[strs.length];\n int sum = 0;\n \n for (int i = 0; i < strs.length; i++) {\n nums[i] = Integer.parseInt(strs[i]);\n sum += nums[i];\n }\n \n if (sum % 9 == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n \n scan.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String num = scan.nextLine();
String[] strs = num.split("");
int[] nums = new int[strs.length];
int sum = 0;
for (int i = 0; i < strs.length; i++) {
nums[i] = Integer.parseInt(strs[i]);
sum += nums[i];
}
if (sum % 9 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
13,
42,
2,
13,
17,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
2,
13,
17,
0,
13,
2,
13,
17,
0,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
4,
18,
13,
13,
17,
14,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
4,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
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
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
16,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
6,
42
],
[
42,
43
],
[
4,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
46,
55
],
[
55,
56
],
[
55,
57
],
[
46,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
58,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
75,
82
],
[
46,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
88,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
83,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
114,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
114,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
44,
134
],
[
134,
135
]
]
| [
"import java.util.*;\nclass Main{\n static int help(int a){\n int s=a;\n while(s>91){\n int p=0;\n while(a>0){\n p=p+a%10;\n a=a/10;\n }\n s=p;\n }\n return s;\n }\n public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n String n=sc.nextLine();\n int a=0;\n for(int i=0;i<n.length();i++){\n a=a+n.charAt(i)-'0';\n \n }\n if(a<91){\n if(a%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }}\n \n else{\n int b=help(a);\n if(b%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }}}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n static int help(int a){\n int s=a;\n while(s>91){\n int p=0;\n while(a>0){\n p=p+a%10;\n a=a/10;\n }\n s=p;\n }\n return s;\n }\n public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n String n=sc.nextLine();\n int a=0;\n for(int i=0;i<n.length();i++){\n a=a+n.charAt(i)-'0';\n \n }\n if(a<91){\n if(a%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }}\n \n else{\n int b=help(a);\n if(b%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }}}",
"Main",
"static int help(int a){\n int s=a;\n while(s>91){\n int p=0;\n while(a>0){\n p=p+a%10;\n a=a/10;\n }\n s=p;\n }\n return s;\n }",
"help",
"{\n int s=a;\n while(s>91){\n int p=0;\n while(a>0){\n p=p+a%10;\n a=a/10;\n }\n s=p;\n }\n return s;\n }",
"int s=a;",
"s",
"a",
"while(s>91){\n int p=0;\n while(a>0){\n p=p+a%10;\n a=a/10;\n }\n s=p;\n }",
"s>91",
"s",
"91",
"{\n int p=0;\n while(a>0){\n p=p+a%10;\n a=a/10;\n }\n s=p;\n }",
"int p=0;",
"p",
"0",
"while(a>0){\n p=p+a%10;\n a=a/10;\n }",
"a>0",
"a",
"0",
"{\n p=p+a%10;\n a=a/10;\n }",
"p=p+a%10",
"p",
"p+a%10",
"p",
"a%10",
"a",
"10",
"a=a/10",
"a",
"a/10",
"a",
"10",
"s=p",
"s",
"p",
"return s;",
"s",
"int a",
"a",
"public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n String n=sc.nextLine();\n int a=0;\n for(int i=0;i<n.length();i++){\n a=a+n.charAt(i)-'0';\n \n }\n if(a<91){\n if(a%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }}\n \n else{\n int b=help(a);\n if(b%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }}",
"main",
"{\n Scanner sc=new Scanner(System.in);\n String n=sc.nextLine();\n int a=0;\n for(int i=0;i<n.length();i++){\n a=a+n.charAt(i)-'0';\n \n }\n if(a<91){\n if(a%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }}\n \n else{\n int b=help(a);\n if(b%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n=sc.nextLine();",
"n",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int a=0;",
"a",
"0",
"for(int i=0;i<n.length();i++){\n a=a+n.charAt(i)-'0';\n \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n a=a+n.charAt(i)-'0';\n \n }",
"{\n a=a+n.charAt(i)-'0';\n \n }",
"a=a+n.charAt(i)-'0'",
"a",
"a+n.charAt(i)-'0'",
"a+n.charAt(i)",
"a",
"n.charAt(i)",
"n.charAt",
"n",
"i",
"'0'",
"if(a<91){\n if(a%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }}\n \n else{\n int b=help(a);\n if(b%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }",
"a<91",
"a",
"91",
"{\n if(a%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }}",
"if(a%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"a%9==0",
"a%9",
"a",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n int b=help(a);\n if(b%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }",
"int b=help(a);",
"b",
"help(a)",
"help",
"a",
"if(b%9==0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"b%9==0",
"b%9",
"b",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args"
]
| import java.util.*;
class Main{
static int help(int a){
int s=a;
while(s>91){
int p=0;
while(a>0){
p=p+a%10;
a=a/10;
}
s=p;
}
return s;
}
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
String n=sc.nextLine();
int a=0;
for(int i=0;i<n.length();i++){
a=a+n.charAt(i)-'0';
}
if(a<91){
if(a%9==0){
System.out.println("Yes");
}else{
System.out.println("No");
}}
else{
int b=help(a);
if(b%9==0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}}}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
43,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
56,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
]
| [
"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\tString N = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < N.length(); i++) {\n\t\t\tsum += N.charAt(i)-'0';\n\t\t}\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else if(sum == 0){\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\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\t\tString N = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < N.length(); i++) {\n\t\t\tsum += N.charAt(i)-'0';\n\t\t}\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else if(sum == 0){\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString N = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < N.length(); i++) {\n\t\t\tsum += N.charAt(i)-'0';\n\t\t}\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else if(sum == 0){\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString N = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < N.length(); i++) {\n\t\t\tsum += N.charAt(i)-'0';\n\t\t}\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else if(sum == 0){\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String N = sc.next();",
"N",
"sc.next()",
"sc.next",
"sc",
"int sum = 0;",
"sum",
"0",
"for(int i = 0; i < N.length(); i++) {\n\t\t\tsum += N.charAt(i)-'0';\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N.length()",
"i",
"N.length()",
"N.length",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tsum += N.charAt(i)-'0';\n\t\t}",
"{\n\t\t\tsum += N.charAt(i)-'0';\n\t\t}",
"sum += N.charAt(i)-'0'",
"sum",
"N.charAt(i)-'0'",
"N.charAt(i)",
"N.charAt",
"N",
"i",
"'0'",
"if(sum % 9 == 0) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else if(sum == 0){\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"{\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"if(sum == 0){\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}",
"sum == 0",
"sum",
"0",
"{\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.print(\"No\");\n\t\t}",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString N = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < N.length(); i++) {\n\t\t\tsum += N.charAt(i)-'0';\n\t\t}\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else if(sum == 0){\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\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 N = sc.next();\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < N.length(); i++) {\n\t\t\tsum += N.charAt(i)-'0';\n\t\t}\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else if(sum == 0){\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\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 N = sc.next();
int sum = 0;
for(int i = 0; i < N.length(); i++) {
sum += N.charAt(i)-'0';
}
if(sum % 9 == 0) {
System.out.print("Yes");
}else if(sum == 0){
System.out.print("Yes");
}else {
System.out.print("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
22,
25
],
[
26,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char n[] = sc.nextLine().toCharArray();\n int sum = 0;\n for(char c: n){\n sum += Character.getNumericValue(c);\n }\n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\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 char n[] = sc.nextLine().toCharArray();\n int sum = 0;\n for(char c: n){\n sum += Character.getNumericValue(c);\n }\n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n } \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char n[] = sc.nextLine().toCharArray();\n int sum = 0;\n for(char c: n){\n sum += Character.getNumericValue(c);\n }\n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n char n[] = sc.nextLine().toCharArray();\n int sum = 0;\n for(char c: n){\n sum += Character.getNumericValue(c);\n }\n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"char n[] = sc.nextLine().toCharArray();",
"n",
"sc.nextLine().toCharArray()",
"sc.nextLine().toCharArray",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int sum = 0;",
"sum",
"0",
"for(char c: n){\n sum += Character.getNumericValue(c);\n }",
"char c",
"n",
"{\n sum += Character.getNumericValue(c);\n }",
"{\n sum += Character.getNumericValue(c);\n }",
"sum += Character.getNumericValue(c)",
"sum",
"Character.getNumericValue(c)",
"Character.getNumericValue",
"Character",
"c",
"if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char n[] = sc.nextLine().toCharArray();\n int sum = 0;\n for(char c: n){\n sum += Character.getNumericValue(c);\n }\n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n } \n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char n[] = sc.nextLine().toCharArray();\n int sum = 0;\n for(char c: n){\n sum += Character.getNumericValue(c);\n }\n if(sum % 9 == 0){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n } \n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char n[] = sc.nextLine().toCharArray();
int sum = 0;
for(char c: n){
sum += Character.getNumericValue(c);
}
if(sum % 9 == 0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
28,
13,
4,
18,
13,
30,
30,
41,
13,
4,
18,
13,
13,
0,
13,
13,
14,
2,
2,
13,
17,
17,
4,
18,
13,
17,
4,
18,
13,
17,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
191,
8
],
[
191,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
9,
39
],
[
39,
40
],
[
191,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
41,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
47,
56
],
[
56,
57
],
[
41,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
58,
67
],
[
67,
68
],
[
41,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
71,
87
],
[
87,
88
],
[
41,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
92,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
91,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
41,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
41,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
41,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
141,
142
],
[
191,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
147,
153
],
[
153,
154
],
[
153,
155
],
[
147,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
156,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
162,
169
],
[
169,
170
],
[
169,
171
],
[
147,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
172,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
172,
182
],
[
182,
183
],
[
183,
184
],
[
182,
185
],
[
145,
186
],
[
186,
187
],
[
145,
188
],
[
188,
189
],
[
0,
190
],
[
190,
191
],
[
190,
192
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String n=in.next();\n int sum=0;\n for(char a:n.toCharArray()){\n int c=Character.getNumericValue(a); \n sum+=c;\n }\n\n if(sum%9==0)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String n=in.next();\n int sum=0;\n for(char a:n.toCharArray()){\n int c=Character.getNumericValue(a); \n sum+=c;\n }\n\n if(sum%9==0)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }",
"main",
"{\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }",
"InputStream inputstream = System.in;",
"inputstream",
"System.in",
"System",
"System.in",
"OutputStream outputstream = System.out;",
"outputstream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputstream);",
"in",
"new InputReader(inputstream)",
"PrintWriter out = new PrintWriter(outputstream);",
"out",
"new PrintWriter(outputstream)",
"Task solver = new Task();",
"solver",
"new Task()",
"solver.solve(in, out)",
"solver.solve",
"solver",
"in",
"out",
"out.flush()",
"out.flush",
"out",
"String args[]",
"args",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tok;",
"tok",
"public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }",
"reader = new BufferedReader(new InputStreamReader(inputStream))",
"reader",
"new BufferedReader(new InputStreamReader(inputStream))",
"tok = null",
"tok",
"null",
"InputStream inputStream",
"inputStream",
"public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }",
"reader = new BufferedReader(new FileReader(inputFile))",
"reader",
"new BufferedReader(new FileReader(inputFile))",
"tok = null",
"tok",
"null",
"String inputFile",
"inputFile",
"public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }",
"nextLine",
"{\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }",
"String c = \"\";",
"c",
"\"\"",
"try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n c = reader.readLine();\n }",
"c = reader.readLine()",
"c",
"reader.readLine()",
"reader.readLine",
"reader",
"return c;",
"c",
"public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }",
"next",
"{\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }",
"while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"tok == null || !tok.hasMoreTokens()",
"tok == null",
"tok",
"null",
"!tok.hasMoreTokens()",
"tok.hasMoreTokens()",
"tok.hasMoreTokens",
"tok",
"{\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }",
"catch (Exception e) {\n throw new RuntimeException(e);\n }",
"Exception e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tok = new StringTokenizer(nextLine());\n }",
"tok = new StringTokenizer(nextLine())",
"tok",
"new StringTokenizer(nextLine())",
"return tok.nextToken();",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public double nextDouble(){\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String n=in.next();\n int sum=0;\n for(char a:n.toCharArray()){\n int c=Character.getNumericValue(a); \n sum+=c;\n }\n\n if(sum%9==0)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }",
"Task",
"public void solve(InputReader in, PrintWriter out) {\n String n=in.next();\n int sum=0;\n for(char a:n.toCharArray()){\n int c=Character.getNumericValue(a); \n sum+=c;\n }\n\n if(sum%9==0)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }",
"solve",
"{\n String n=in.next();\n int sum=0;\n for(char a:n.toCharArray()){\n int c=Character.getNumericValue(a); \n sum+=c;\n }\n\n if(sum%9==0)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }",
"String n=in.next();",
"n",
"in.next()",
"in.next",
"in",
"int sum=0;",
"sum",
"0",
"for(char a:n.toCharArray()){\n int c=Character.getNumericValue(a); \n sum+=c;\n }",
"char a",
"n.toCharArray()",
"n.toCharArray",
"n",
"{\n int c=Character.getNumericValue(a); \n sum+=c;\n }",
"{\n int c=Character.getNumericValue(a); \n sum+=c;\n }",
"int c=Character.getNumericValue(a);",
"c",
"Character.getNumericValue(a)",
"Character.getNumericValue",
"Character",
"a",
"sum+=c",
"sum",
"c",
"if(sum%9==0)\n out.println(\"Yes\");\n else\n out.println(\"No\");",
"sum%9==0",
"sum%9",
"sum",
"9",
"0",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"InputReader in",
"in",
"PrintWriter out",
"out",
"public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String n=in.next();\n int sum=0;\n for(char a:n.toCharArray()){\n int c=Character.getNumericValue(a); \n sum+=c;\n }\n\n if(sum%9==0)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n}",
"public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String n=in.next();\n int sum=0;\n for(char a:n.toCharArray()){\n int c=Character.getNumericValue(a); \n sum+=c;\n }\n\n if(sum%9==0)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
static class InputReader {
public BufferedReader reader;
public StringTokenizer tok;
public InputReader(InputStream inputStream) {
reader = new BufferedReader(new InputStreamReader(inputStream));
tok = null;
}
public InputReader(String inputFile) throws FileNotFoundException {
reader = new BufferedReader(new FileReader(inputFile));
tok = null;
}
public String nextLine() {
String c = "";
try {
c = reader.readLine();
} catch (IOException e) {
throw new RuntimeException(e);
}
return c;
}
public String next() {
while (tok == null || !tok.hasMoreTokens()) {
try {
tok = new StringTokenizer(nextLine());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
return tok.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong() {
return Long.parseLong(next());
}
public double nextDouble(){
return Double.parseDouble(next());
}
}
public static void main(String args[]) {
InputStream inputstream = System.in;
OutputStream outputstream = System.out;
InputReader in = new InputReader(inputstream);
PrintWriter out = new PrintWriter(outputstream);
Task solver = new Task();
solver.solve(in, out);
out.flush();
}
static class Task {
public void solve(InputReader in, PrintWriter out) {
String n=in.next();
int sum=0;
for(char a:n.toCharArray()){
int c=Character.getNumericValue(a);
sum+=c;
}
if(sum%9==0)
out.println("Yes");
else
out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
14,
2,
4,
18,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
17,
17,
0,
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
],
[
54,
8
],
[
54,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
25,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
24,
38
],
[
23,
39
],
[
39,
40
],
[
39,
41
],
[
23,
42
],
[
42,
43
],
[
42,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
9,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"/******************************************************************************\n\n Online Java Compiler.\n Code, Compile, Run and Debug java program online.\nWrite your code in this editor and press \"Run\" button to execute it.\n\n*******************************************************************************/\nimport java.math.BigInteger; \nimport java.util.Scanner; \npublic class Main\n{\n /*\n static String getSum(BigInteger N) \n { \n // Initialize result \n BigInteger f = new BigInteger(\"0\"); // Or BigInteger.ONE \n \n // Multiply f with 2, 3, ...N \n while(N.compareTo(BigInteger.valueOf(0))!=0)\n {\n f=(f.add(N.remainder(10))).remainder(9);\n N=N.divide(10);\n }\n string s;\n if(((f.remainder(9)).compareTo(0))==0)\n s=\"Yes\";\n else s=\"No\";\n return s; \n } \n */\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n BigInteger N = new BigInteger(sc.next());\n BigInteger f = new BigInteger(\"0\"); // Or BigInteger.ONE \n \n // Multiply f with 2, 3, ...N \n /*\n while(N.compareTo(BigInteger.valueOf(0))!=0)\n {\n f=(f.add(N.remainder(BigInteger.valueOf(10)))).remainder(BigInteger.valueOf(9));\n N=N.divide(BigInteger.valueOf(10));\n }\n */\n String s;\n if(((N.remainder(BigInteger.valueOf(9))).compareTo(BigInteger.valueOf(0)))==0)\n s=\"Yes\";\n else s=\"No\";\n\t//\tSystem.out.println(getSum(n)); \n\tSystem.out.println(s); \n\t}\n}",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n /*\n static String getSum(BigInteger N) \n { \n // Initialize result \n BigInteger f = new BigInteger(\"0\"); // Or BigInteger.ONE \n \n // Multiply f with 2, 3, ...N \n while(N.compareTo(BigInteger.valueOf(0))!=0)\n {\n f=(f.add(N.remainder(10))).remainder(9);\n N=N.divide(10);\n }\n string s;\n if(((f.remainder(9)).compareTo(0))==0)\n s=\"Yes\";\n else s=\"No\";\n return s; \n } \n */\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n BigInteger N = new BigInteger(sc.next());\n BigInteger f = new BigInteger(\"0\"); // Or BigInteger.ONE \n \n // Multiply f with 2, 3, ...N \n /*\n while(N.compareTo(BigInteger.valueOf(0))!=0)\n {\n f=(f.add(N.remainder(BigInteger.valueOf(10)))).remainder(BigInteger.valueOf(9));\n N=N.divide(BigInteger.valueOf(10));\n }\n */\n String s;\n if(((N.remainder(BigInteger.valueOf(9))).compareTo(BigInteger.valueOf(0)))==0)\n s=\"Yes\";\n else s=\"No\";\n\t//\tSystem.out.println(getSum(n)); \n\tSystem.out.println(s); \n\t}\n}",
"Main",
"/*\n static String getSum(BigInteger N) \n { \n // Initialize result \n BigInteger f = new BigInteger(\"0\"); // Or BigInteger.ONE \n \n // Multiply f with 2, 3, ...N \n while(N.compareTo(BigInteger.valueOf(0))!=0)\n {\n f=(f.add(N.remainder(10))).remainder(9);\n N=N.divide(10);\n }\n string s;\n if(((f.remainder(9)).compareTo(0))==0)\n s=\"Yes\";\n else s=\"No\";\n return s; \n } \n */\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n BigInteger N = new BigInteger(sc.next());\n BigInteger f = new BigInteger(\"0\"); // Or BigInteger.ONE \n \n // Multiply f with 2, 3, ...N \n /*\n while(N.compareTo(BigInteger.valueOf(0))!=0)\n {\n f=(f.add(N.remainder(BigInteger.valueOf(10)))).remainder(BigInteger.valueOf(9));\n N=N.divide(BigInteger.valueOf(10));\n }\n */\n String s;\n if(((N.remainder(BigInteger.valueOf(9))).compareTo(BigInteger.valueOf(0)))==0)\n s=\"Yes\";\n else s=\"No\";\n\t//\tSystem.out.println(getSum(n)); \n\tSystem.out.println(s); \n\t}",
"main",
"{\n\t Scanner sc = new Scanner(System.in);\n BigInteger N = new BigInteger(sc.next());\n BigInteger f = new BigInteger(\"0\"); // Or BigInteger.ONE \n \n // Multiply f with 2, 3, ...N \n /*\n while(N.compareTo(BigInteger.valueOf(0))!=0)\n {\n f=(f.add(N.remainder(BigInteger.valueOf(10)))).remainder(BigInteger.valueOf(9));\n N=N.divide(BigInteger.valueOf(10));\n }\n */\n String s;\n if(((N.remainder(BigInteger.valueOf(9))).compareTo(BigInteger.valueOf(0)))==0)\n s=\"Yes\";\n else s=\"No\";\n\t//\tSystem.out.println(getSum(n)); \n\tSystem.out.println(s); \n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"BigInteger N = new BigInteger(sc.next());",
"N",
"new BigInteger(sc.next())",
"BigInteger f = new BigInteger(\"0\");",
"f",
"new BigInteger(\"0\")",
"String s;",
"s",
"if(((N.remainder(BigInteger.valueOf(9))).compareTo(BigInteger.valueOf(0)))==0)\n s=\"Yes\";\n else s=\"No\";",
"((N.remainder(BigInteger.valueOf(9))).compareTo(BigInteger.valueOf(0)))==0",
"((N.remainder(BigInteger.valueOf(9))).compareTo(BigInteger.valueOf(0)))",
"(N.remainder(BigInteger.valueOf(9))).compareTo",
"(N.remainder(BigInteger.valueOf(9)))",
"N.remainder",
"N",
"BigInteger.valueOf(9)",
"BigInteger.valueOf",
"BigInteger",
"9",
"BigInteger.valueOf(0)",
"BigInteger.valueOf",
"BigInteger",
"0",
"0",
"s=\"Yes\"",
"s",
"\"Yes\"",
"s=\"No\"",
"s",
"\"No\"",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public class Main\n{\n /*\n static String getSum(BigInteger N) \n { \n // Initialize result \n BigInteger f = new BigInteger(\"0\"); // Or BigInteger.ONE \n \n // Multiply f with 2, 3, ...N \n while(N.compareTo(BigInteger.valueOf(0))!=0)\n {\n f=(f.add(N.remainder(10))).remainder(9);\n N=N.divide(10);\n }\n string s;\n if(((f.remainder(9)).compareTo(0))==0)\n s=\"Yes\";\n else s=\"No\";\n return s; \n } \n */\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n BigInteger N = new BigInteger(sc.next());\n BigInteger f = new BigInteger(\"0\"); // Or BigInteger.ONE \n \n // Multiply f with 2, 3, ...N \n /*\n while(N.compareTo(BigInteger.valueOf(0))!=0)\n {\n f=(f.add(N.remainder(BigInteger.valueOf(10)))).remainder(BigInteger.valueOf(9));\n N=N.divide(BigInteger.valueOf(10));\n }\n */\n String s;\n if(((N.remainder(BigInteger.valueOf(9))).compareTo(BigInteger.valueOf(0)))==0)\n s=\"Yes\";\n else s=\"No\";\n\t//\tSystem.out.println(getSum(n)); \n\tSystem.out.println(s); \n\t}\n}",
"public class Main\n{\n /*\n static String getSum(BigInteger N) \n { \n // Initialize result \n BigInteger f = new BigInteger(\"0\"); // Or BigInteger.ONE \n \n // Multiply f with 2, 3, ...N \n while(N.compareTo(BigInteger.valueOf(0))!=0)\n {\n f=(f.add(N.remainder(10))).remainder(9);\n N=N.divide(10);\n }\n string s;\n if(((f.remainder(9)).compareTo(0))==0)\n s=\"Yes\";\n else s=\"No\";\n return s; \n } \n */\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n BigInteger N = new BigInteger(sc.next());\n BigInteger f = new BigInteger(\"0\"); // Or BigInteger.ONE \n \n // Multiply f with 2, 3, ...N \n /*\n while(N.compareTo(BigInteger.valueOf(0))!=0)\n {\n f=(f.add(N.remainder(BigInteger.valueOf(10)))).remainder(BigInteger.valueOf(9));\n N=N.divide(BigInteger.valueOf(10));\n }\n */\n String s;\n if(((N.remainder(BigInteger.valueOf(9))).compareTo(BigInteger.valueOf(0)))==0)\n s=\"Yes\";\n else s=\"No\";\n\t//\tSystem.out.println(getSum(n)); \n\tSystem.out.println(s); \n\t}\n}",
"Main"
]
| /******************************************************************************
Online Java Compiler.
Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
import java.math.BigInteger;
import java.util.Scanner;
public class Main
{
/*
static String getSum(BigInteger N)
{
// Initialize result
BigInteger f = new BigInteger("0"); // Or BigInteger.ONE
// Multiply f with 2, 3, ...N
while(N.compareTo(BigInteger.valueOf(0))!=0)
{
f=(f.add(N.remainder(10))).remainder(9);
N=N.divide(10);
}
string s;
if(((f.remainder(9)).compareTo(0))==0)
s="Yes";
else s="No";
return s;
}
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
BigInteger N = new BigInteger(sc.next());
BigInteger f = new BigInteger("0"); // Or BigInteger.ONE
// Multiply f with 2, 3, ...N
/*
while(N.compareTo(BigInteger.valueOf(0))!=0)
{
f=(f.add(N.remainder(BigInteger.valueOf(10)))).remainder(BigInteger.valueOf(9));
N=N.divide(BigInteger.valueOf(10));
}
*/
String s;
if(((N.remainder(BigInteger.valueOf(9))).compareTo(BigInteger.valueOf(0)))==0)
s="Yes";
else s="No";
// System.out.println(getSum(n));
System.out.println(s);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
26,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
11,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
53,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
9,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"import java.util.*;\nimport java.lang.*;\n\npublic class Main{\n public static void main(String[]args){\n\tint ans=0;\n Scanner sc = new Scanner(System.in);\n String N=sc.next();\n\tint sum=0;\n\tfor(int i=0; i<N.length(); i++){\n\t sum+=Integer.parseInt(N.substring(i,i+1));\n\t}\n\t//N.charAt(i)\n if(sum%9==0){\n\t System.out.println(\"Yes\");\n\t}else{\n\t System.out.println(\"No\");\n\t}\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main{\n public static void main(String[]args){\n\tint ans=0;\n Scanner sc = new Scanner(System.in);\n String N=sc.next();\n\tint sum=0;\n\tfor(int i=0; i<N.length(); i++){\n\t sum+=Integer.parseInt(N.substring(i,i+1));\n\t}\n\t//N.charAt(i)\n if(sum%9==0){\n\t System.out.println(\"Yes\");\n\t}else{\n\t System.out.println(\"No\");\n\t}\n }\n}",
"Main",
"public static void main(String[]args){\n\tint ans=0;\n Scanner sc = new Scanner(System.in);\n String N=sc.next();\n\tint sum=0;\n\tfor(int i=0; i<N.length(); i++){\n\t sum+=Integer.parseInt(N.substring(i,i+1));\n\t}\n\t//N.charAt(i)\n if(sum%9==0){\n\t System.out.println(\"Yes\");\n\t}else{\n\t System.out.println(\"No\");\n\t}\n }",
"main",
"{\n\tint ans=0;\n Scanner sc = new Scanner(System.in);\n String N=sc.next();\n\tint sum=0;\n\tfor(int i=0; i<N.length(); i++){\n\t sum+=Integer.parseInt(N.substring(i,i+1));\n\t}\n\t//N.charAt(i)\n if(sum%9==0){\n\t System.out.println(\"Yes\");\n\t}else{\n\t System.out.println(\"No\");\n\t}\n }",
"int ans=0;",
"ans",
"0",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String N=sc.next();",
"N",
"sc.next()",
"sc.next",
"sc",
"int sum=0;",
"sum",
"0",
"for(int i=0; i<N.length(); i++){\n\t sum+=Integer.parseInt(N.substring(i,i+1));\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N.length()",
"i",
"N.length()",
"N.length",
"N",
"i++",
"i++",
"i",
"{\n\t sum+=Integer.parseInt(N.substring(i,i+1));\n\t}",
"{\n\t sum+=Integer.parseInt(N.substring(i,i+1));\n\t}",
"sum+=Integer.parseInt(N.substring(i,i+1))",
"sum",
"Integer.parseInt(N.substring(i,i+1))",
"Integer.parseInt",
"Integer",
"N.substring(i,i+1)",
"N.substring",
"N",
"i",
"i+1",
"i",
"1",
"if(sum%9==0){\n\t System.out.println(\"Yes\");\n\t}else{\n\t System.out.println(\"No\");\n\t}",
"sum%9==0",
"sum%9",
"sum",
"9",
"0",
"{\n\t System.out.println(\"Yes\");\n\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t System.out.println(\"No\");\n\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[]args",
"args",
"public class Main{\n public static void main(String[]args){\n\tint ans=0;\n Scanner sc = new Scanner(System.in);\n String N=sc.next();\n\tint sum=0;\n\tfor(int i=0; i<N.length(); i++){\n\t sum+=Integer.parseInt(N.substring(i,i+1));\n\t}\n\t//N.charAt(i)\n if(sum%9==0){\n\t System.out.println(\"Yes\");\n\t}else{\n\t System.out.println(\"No\");\n\t}\n }\n}",
"public class Main{\n public static void main(String[]args){\n\tint ans=0;\n Scanner sc = new Scanner(System.in);\n String N=sc.next();\n\tint sum=0;\n\tfor(int i=0; i<N.length(); i++){\n\t sum+=Integer.parseInt(N.substring(i,i+1));\n\t}\n\t//N.charAt(i)\n if(sum%9==0){\n\t System.out.println(\"Yes\");\n\t}else{\n\t System.out.println(\"No\");\n\t}\n }\n}",
"Main"
]
| import java.util.*;
import java.lang.*;
public class Main{
public static void main(String[]args){
int ans=0;
Scanner sc = new Scanner(System.in);
String N=sc.next();
int sum=0;
for(int i=0; i<N.length(); i++){
sum+=Integer.parseInt(N.substring(i,i+1));
}
//N.charAt(i)
if(sum%9==0){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
0,
13,
2,
18,
13,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
50,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString n = scan.next();\n\t\tint length = n.length();\n\t\tchar[] n_list = n.toCharArray();\n\t\tlong sum = 0;\n\n\t\tfor(int i = 0; i < length;i++) {\n\t\t\tsum += (int)n_list[i] - (int)'0';\n\t\t}\n\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\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\n\t\tString n = scan.next();\n\t\tint length = n.length();\n\t\tchar[] n_list = n.toCharArray();\n\t\tlong sum = 0;\n\n\t\tfor(int i = 0; i < length;i++) {\n\t\t\tsum += (int)n_list[i] - (int)'0';\n\t\t}\n\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString n = scan.next();\n\t\tint length = n.length();\n\t\tchar[] n_list = n.toCharArray();\n\t\tlong sum = 0;\n\n\t\tfor(int i = 0; i < length;i++) {\n\t\t\tsum += (int)n_list[i] - (int)'0';\n\t\t}\n\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString n = scan.next();\n\t\tint length = n.length();\n\t\tchar[] n_list = n.toCharArray();\n\t\tlong sum = 0;\n\n\t\tfor(int i = 0; i < length;i++) {\n\t\t\tsum += (int)n_list[i] - (int)'0';\n\t\t}\n\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String n = scan.next();",
"n",
"scan.next()",
"scan.next",
"scan",
"int length = n.length();",
"length",
"n.length()",
"n.length",
"n",
"char[] n_list = n.toCharArray();",
"n_list",
"n.toCharArray()",
"n.toCharArray",
"n",
"long sum = 0;",
"sum",
"0",
"for(int i = 0; i < length;i++) {\n\t\t\tsum += (int)n_list[i] - (int)'0';\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < length",
"i",
"length",
"i++",
"i++",
"i",
"{\n\t\t\tsum += (int)n_list[i] - (int)'0';\n\t\t}",
"{\n\t\t\tsum += (int)n_list[i] - (int)'0';\n\t\t}",
"sum += (int)n_list[i] - (int)'0'",
"sum",
"(int)n_list[i] - (int)'0'",
"(int)n_list[i]",
"n_list",
"i",
"(int)'0'",
"if(sum % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString n = scan.next();\n\t\tint length = n.length();\n\t\tchar[] n_list = n.toCharArray();\n\t\tlong sum = 0;\n\n\t\tfor(int i = 0; i < length;i++) {\n\t\t\tsum += (int)n_list[i] - (int)'0';\n\t\t}\n\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\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\n\t\tString n = scan.next();\n\t\tint length = n.length();\n\t\tchar[] n_list = n.toCharArray();\n\t\tlong sum = 0;\n\n\t\tfor(int i = 0; i < length;i++) {\n\t\t\tsum += (int)n_list[i] - (int)'0';\n\t\t}\n\n\t\tif(sum % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\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);
String n = scan.next();
int length = n.length();
char[] n_list = n.toCharArray();
long sum = 0;
for(int i = 0; i < length;i++) {
sum += (int)n_list[i] - (int)'0';
}
if(sum % 9 == 0) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
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,
4,
18,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
2,
13,
17,
41,
13,
8,
2,
2,
13,
17,
17,
17,
17,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
2,
40,
4,
13,
13,
2,
13,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
29,
2,
13,
4,
18,
13,
17,
4,
13,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
29,
2,
13,
4,
18,
13,
17,
4,
13,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
17,
0,
13,
2,
2,
13,
17,
13,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
13,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
4,
13,
6,
13,
12,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
522,
20
],
[
522,
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
],
[
34,
35
],
[
35,
36
],
[
23,
37
],
[
37,
38
],
[
37,
39
],
[
23,
40
],
[
40,
41
],
[
40,
42
],
[
40,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
23,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
52,
59
],
[
23,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
23,
64
],
[
64,
65
],
[
65,
66
],
[
21,
67
],
[
67,
68
],
[
522,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
69,
77
],
[
77,
78
],
[
69,
79
],
[
79,
80
],
[
69,
81
],
[
81,
82
],
[
69,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
83,
91
],
[
91,
92
],
[
69,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
96,
101
],
[
101,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
111,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
107,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
95,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
69,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
142,
144
],
[
138,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
145,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
138,
158
],
[
158,
159
],
[
69,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
162,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
162,
175
],
[
175,
176
],
[
175,
177
],
[
162,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
162,
191
],
[
191,
192
],
[
191,
193
],
[
162,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
205,
206
],
[
205,
207
],
[
200,
208
],
[
208,
209
],
[
199,
210
],
[
210,
211
],
[
210,
212
],
[
199,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
199,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
162,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
69,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
228,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
228,
241
],
[
241,
242
],
[
241,
243
],
[
228,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
248,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
228,
257
],
[
257,
258
],
[
257,
259
],
[
228,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
260,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
267,
271
],
[
271,
272
],
[
271,
273
],
[
266,
274
],
[
274,
275
],
[
265,
276
],
[
276,
277
],
[
276,
278
],
[
265,
279
],
[
279,
280
],
[
279,
281
],
[
281,
282
],
[
281,
283
],
[
265,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
228,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
69,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
297,
298
],
[
294,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
299,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
294,
307
],
[
307,
308
],
[
307,
309
],
[
294,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
314,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
294,
323
],
[
323,
324
],
[
323,
325
],
[
294,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
327,
332
],
[
332,
333
],
[
332,
334
],
[
326,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
338,
340
],
[
337,
341
],
[
341,
342
],
[
341,
343
],
[
336,
344
],
[
344,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
348,
349
],
[
347,
350
],
[
347,
351
],
[
351,
352
],
[
335,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
354,
358
],
[
358,
359
],
[
358,
360
],
[
353,
361
],
[
361,
362
],
[
335,
363
],
[
363,
364
],
[
363,
365
],
[
335,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
368,
370
],
[
335,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
294,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
375,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
382,
383
],
[
379,
384
],
[
384,
385
],
[
384,
386
],
[
379,
387
],
[
387,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
387,
392
],
[
392,
393
],
[
393,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
394,
398
],
[
398,
399
],
[
398,
400
],
[
393,
401
],
[
401,
402
],
[
402,
403
],
[
402,
404
],
[
404,
405
],
[
405,
406
],
[
404,
407
],
[
404,
408
],
[
408,
409
],
[
392,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
412,
414
],
[
411,
415
],
[
415,
416
],
[
415,
417
],
[
410,
418
],
[
418,
419
],
[
392,
420
],
[
420,
421
],
[
420,
422
],
[
392,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
425,
429
],
[
392,
430
],
[
430,
431
],
[
430,
432
],
[
432,
433
],
[
294,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
69,
438
],
[
438,
439
],
[
438,
440
],
[
440,
441
],
[
441,
442
],
[
441,
443
],
[
443,
444
],
[
440,
445
],
[
445,
446
],
[
446,
447
],
[
446,
448
],
[
445,
449
],
[
449,
450
],
[
449,
451
],
[
451,
452
],
[
440,
453
],
[
453,
454
],
[
453,
455
],
[
440,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
456,
461
],
[
461,
462
],
[
462,
463
],
[
463,
464
],
[
462,
465
],
[
461,
466
],
[
466,
467
],
[
466,
468
],
[
468,
469
],
[
440,
470
],
[
470,
471
],
[
471,
472
],
[
472,
473
],
[
69,
474
],
[
474,
475
],
[
474,
476
],
[
476,
477
],
[
477,
478
],
[
478,
479
],
[
478,
480
],
[
477,
481
],
[
481,
482
],
[
482,
483
],
[
483,
484
],
[
482,
485
],
[
476,
486
],
[
486,
487
],
[
490,
488
],
[
500,
489
],
[
497,
490
],
[
490,
491
],
[
491,
492
],
[
491,
493
],
[
490,
494
],
[
494,
495
],
[
494,
496
],
[
497,
497
],
[
497,
498
],
[
497,
499
],
[
500,
500
],
[
500,
501
],
[
500,
502
],
[
490,
503
],
[
503,
504
],
[
503,
505
],
[
505,
506
],
[
474,
507
],
[
507,
508
],
[
69,
509
],
[
509,
510
],
[
509,
511
],
[
511,
512
],
[
512,
513
],
[
513,
514
],
[
69,
515
],
[
515,
516
],
[
515,
517
],
[
517,
518
],
[
517,
519
],
[
519,
520
],
[
0,
521
],
[
521,
522
],
[
521,
523
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.*;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputReader sc = new InputReader(System.in);\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tchar[] num = sc.readString().toCharArray();\n\t\tint sum = 0;\n\t\tfor(char n : num){\n\t\t\tsum += (int)(n -'0');\n\t\t}\n\t\tString ans = (sum % 9 == 0) ? \"Yes\" : \"No\";\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}\n\t\n\t\n\tstatic class InputReader {\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[5];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\t\tprivate SpaceCharFilter filter;\n\n\t\tpublic InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n\t\t\tString stock = \"\";\n\t\t\ttry {\n\t\t\t\tstock = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn stock;\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\n\t\t\tint sgn = 1;\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String readString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\tif (filter != null)\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\treturn readString();\n\t\t}\n\n\t\tpublic interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputReader sc = new InputReader(System.in);\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tchar[] num = sc.readString().toCharArray();\n\t\tint sum = 0;\n\t\tfor(char n : num){\n\t\t\tsum += (int)(n -'0');\n\t\t}\n\t\tString ans = (sum % 9 == 0) ? \"Yes\" : \"No\";\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}\n\t\n\t\n\tstatic class InputReader {\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[5];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\t\tprivate SpaceCharFilter filter;\n\n\t\tpublic InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n\t\t\tString stock = \"\";\n\t\t\ttry {\n\t\t\t\tstock = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn stock;\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\n\t\t\tint sgn = 1;\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String readString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\tif (filter != null)\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\treturn readString();\n\t\t}\n\n\t\tpublic interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tInputReader sc = new InputReader(System.in);\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tchar[] num = sc.readString().toCharArray();\n\t\tint sum = 0;\n\t\tfor(char n : num){\n\t\t\tsum += (int)(n -'0');\n\t\t}\n\t\tString ans = (sum % 9 == 0) ? \"Yes\" : \"No\";\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}",
"main",
"{\n\t\tInputReader sc = new InputReader(System.in);\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tchar[] num = sc.readString().toCharArray();\n\t\tint sum = 0;\n\t\tfor(char n : num){\n\t\t\tsum += (int)(n -'0');\n\t\t}\n\t\tString ans = (sum % 9 == 0) ? \"Yes\" : \"No\";\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}",
"InputReader sc = new InputReader(System.in);",
"sc",
"new InputReader(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"char[] num = sc.readString().toCharArray();",
"num",
"sc.readString().toCharArray()",
"sc.readString().toCharArray",
"sc.readString()",
"sc.readString",
"sc",
"int sum = 0;",
"sum",
"0",
"for(char n : num){\n\t\t\tsum += (int)(n -'0');\n\t\t}",
"char n",
"num",
"{\n\t\t\tsum += (int)(n -'0');\n\t\t}",
"{\n\t\t\tsum += (int)(n -'0');\n\t\t}",
"sum += (int)(n -'0')",
"sum",
"(int)(n -'0')",
"n",
"'0'",
"String ans = (sum % 9 == 0) ? \"Yes\" : \"No\";",
"ans",
"(sum % 9 == 0) ? \"Yes\" : \"No\"",
"(sum % 9 == 0)",
"sum % 9",
"sum",
"9",
"0",
"\"Yes\"",
"\"No\"",
"pw.println(ans)",
"pw.println",
"pw",
"ans",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static class InputReader {\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[5];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\t\tprivate SpaceCharFilter filter;\n\n\t\tpublic InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n\t\t\tString stock = \"\";\n\t\t\ttry {\n\t\t\t\tstock = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn stock;\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\n\t\t\tint sgn = 1;\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String readString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\tif (filter != null)\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\treturn readString();\n\t\t}\n\n\t\tpublic interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}\n\t}",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[5];",
"buf",
"new byte[5]",
"5",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}",
"InputReader",
"{\n\t\t\tthis.stream = stream;\n\t\t}",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\treturn buf[curChar++];\n\t\t}",
"read",
"{\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\treturn buf[curChar++];\n\t\t}",
"if (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}",
"curChar >= numChars",
"curChar",
"numChars",
"{\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}",
"curChar = 0",
"curChar",
"0",
"try {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t}",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0)\n\t\t\t\t\treturn -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public String nextLine() {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n\t\t\tString stock = \"\";\n\t\t\ttry {\n\t\t\t\tstock = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn stock;\n\t\t}",
"nextLine",
"{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n\t\t\tString stock = \"\";\n\t\t\ttry {\n\t\t\t\tstock = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn stock;\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(stream));",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"String stock = \"\";",
"stock",
"\"\"",
"try {\n\t\t\t\tstock = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tstock = br.readLine();\n\t\t\t}",
"stock = br.readLine()",
"stock",
"br.readLine()",
"br.readLine",
"br",
"return stock;",
"stock",
"public int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\n\t\t\tint sgn = 1;\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res * sgn;\n\t\t}",
"nextInt",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\n\t\t\tint sgn = 1;\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res * sgn;\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n\t\t\t\tc = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}",
"if (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}",
"nextLong",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n\t\t\t\tc = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}",
"if (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}",
"nextDouble",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n\t\t\t\tc = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"double res = 0;",
"res",
"0",
"while (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}",
"!isSpaceChar(c) && c != '.'",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c != '.'",
"c",
"'.'",
"{\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}",
"if (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * Math.pow(10, nextInt());",
"c == 'e' || c == 'E'",
"c == 'e'",
"c",
"'e'",
"c == 'E'",
"c",
"'E'",
"return res * Math.pow(10, nextInt());",
"res * Math.pow(10, nextInt())",
"res",
"Math.pow(10, nextInt())",
"Math.pow",
"Math",
"10",
"nextInt()",
"nextInt",
"if (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"if (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}",
"c == '.'",
"c",
"'.'",
"{\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}",
"c = read()",
"c",
"read()",
"read",
"double m = 1;",
"m",
"1",
"while (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}",
"if (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());",
"c == 'e' || c == 'E'",
"c == 'e'",
"c",
"'e'",
"c == 'E'",
"c",
"'E'",
"return res * Math.pow(10, nextInt());",
"res * Math.pow(10, nextInt())",
"res",
"Math.pow(10, nextInt())",
"Math.pow",
"Math",
"10",
"nextInt()",
"nextInt",
"if (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"m /= 10",
"m",
"10",
"res += (c - '0') * m",
"res",
"(c - '0') * m",
"(c - '0')",
"c",
"'0'",
"m",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public String readString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res.toString();\n\t\t}",
"readString",
"{\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res.toString();\n\t\t}",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n\t\t\t\tc = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t}",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public boolean isSpaceChar(int c) {\n\t\t\tif (filter != null)\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}",
"isSpaceChar",
"{\n\t\t\tif (filter != null)\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}",
"if (filter != null)\n\t\t\t\treturn filter.isSpaceChar(c);",
"filter != null",
"filter",
"null",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public String next() {\n\t\t\treturn readString();\n\t\t}",
"next",
"{\n\t\t\treturn readString();\n\t\t}",
"return readString();",
"readString()",
"readString",
"public interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputReader sc = new InputReader(System.in);\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tchar[] num = sc.readString().toCharArray();\n\t\tint sum = 0;\n\t\tfor(char n : num){\n\t\t\tsum += (int)(n -'0');\n\t\t}\n\t\tString ans = (sum % 9 == 0) ? \"Yes\" : \"No\";\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}\n\t\n\t\n\tstatic class InputReader {\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[5];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\t\tprivate SpaceCharFilter filter;\n\n\t\tpublic InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n\t\t\tString stock = \"\";\n\t\t\ttry {\n\t\t\t\tstock = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn stock;\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\n\t\t\tint sgn = 1;\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String readString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\tif (filter != null)\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\treturn readString();\n\t\t}\n\n\t\tpublic interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputReader sc = new InputReader(System.in);\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tchar[] num = sc.readString().toCharArray();\n\t\tint sum = 0;\n\t\tfor(char n : num){\n\t\t\tsum += (int)(n -'0');\n\t\t}\n\t\tString ans = (sum % 9 == 0) ? \"Yes\" : \"No\";\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}\n\t\n\t\n\tstatic class InputReader {\n\t\tprivate InputStream stream;\n\t\tprivate byte[] buf = new byte[5];\n\t\tprivate int curChar;\n\t\tprivate int numChars;\n\t\tprivate SpaceCharFilter filter;\n\n\t\tpublic InputReader(InputStream stream) {\n\t\t\tthis.stream = stream;\n\t\t}\n\n\t\tpublic int read() {\n\t\t\tif (numChars == -1)\n\t\t\t\tthrow new InputMismatchException();\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\ttry {\n\t\t\t\t\tnumChars = stream.read(buf);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\n\t\t\t\tif (numChars <= 0)\n\t\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\treturn buf[curChar++];\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n\t\t\tString stock = \"\";\n\t\t\ttry {\n\t\t\t\tstock = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn stock;\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\n\t\t\tint sgn = 1;\n\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tlong res = 0;\n\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tint sgn = 1;\n\t\t\tif (c == '-') {\n\t\t\t\tsgn = -1;\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tdouble res = 0;\n\t\t\twhile (!isSpaceChar(c) && c != '.') {\n\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres *= 10;\n\t\t\t\tres += c - '0';\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\tif (c == '.') {\n\t\t\t\tc = read();\n\t\t\t\tdouble m = 1;\n\t\t\t\twhile (!isSpaceChar(c)) {\n\t\t\t\t\tif (c == 'e' || c == 'E')\n\t\t\t\t\t\treturn res * Math.pow(10, nextInt());\n\t\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t\tm /= 10;\n\t\t\t\t\tres += (c - '0') * m;\n\t\t\t\t\tc = read();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res * sgn;\n\t\t}\n\n\t\tpublic String readString() {\n\t\t\tint c = read();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = read();\n\t\t\tStringBuilder res = new StringBuilder();\n\t\t\tdo {\n\t\t\t\tres.appendCodePoint(c);\n\t\t\t\tc = read();\n\t\t\t} while (!isSpaceChar(c));\n\n\t\t\treturn res.toString();\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\tif (filter != null)\n\t\t\t\treturn filter.isSpaceChar(c);\n\t\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\treturn readString();\n\t\t}\n\n\t\tpublic interface SpaceCharFilter {\n\t\t\tpublic boolean isSpaceChar(int ch);\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;
public class Main {
public static void main(String[] args) {
InputReader sc = new InputReader(System.in);
PrintWriter pw = new PrintWriter(System.out);
char[] num = sc.readString().toCharArray();
int sum = 0;
for(char n : num){
sum += (int)(n -'0');
}
String ans = (sum % 9 == 0) ? "Yes" : "No";
pw.println(ans);
pw.close();
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[5];
private int curChar;
private int numChars;
private SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1)
throw new InputMismatchException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0)
return -1;
}
return buf[curChar++];
}
public String nextLine() {
BufferedReader br = new BufferedReader(new InputStreamReader(stream));
String stock = "";
try {
stock = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return stock;
}
public int nextInt() {
int c = read();
while (isSpaceChar(c))
c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
if (c < '0' || c > '9')
throw new InputMismatchException();
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public long nextLong() {
int c = read();
while (isSpaceChar(c))
c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
long res = 0;
do {
if (c < '0' || c > '9')
throw new InputMismatchException();
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public double nextDouble() {
int c = read();
while (isSpaceChar(c))
c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
double res = 0;
while (!isSpaceChar(c) && c != '.') {
if (c == 'e' || c == 'E')
return res * Math.pow(10, nextInt());
if (c < '0' || c > '9')
throw new InputMismatchException();
res *= 10;
res += c - '0';
c = read();
}
if (c == '.') {
c = read();
double m = 1;
while (!isSpaceChar(c)) {
if (c == 'e' || c == 'E')
return res * Math.pow(10, nextInt());
if (c < '0' || c > '9')
throw new InputMismatchException();
m /= 10;
res += (c - '0') * m;
c = read();
}
}
return res * sgn;
}
public String readString() {
int c = read();
while (isSpaceChar(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public boolean isSpaceChar(int c) {
if (filter != null)
return filter.isSpaceChar(c);
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public String next() {
return readString();
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
30,
4,
18,
18,
13,
13,
17,
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,
4,
18,
18,
13,
13,
8,
2,
2,
13,
17,
17,
17,
17,
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
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
18,
21
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
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
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
29,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
65,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n if (\"0\".equals(n)) {\n System.out.println(\"Yes\");\n } else {\n long sum = 0;\n for (int i = 0; i < n.length(); i++) {\n sum += Integer.parseInt(n.substring(i, i + 1));\n }\n System.out.println((sum % 9 == 0) ? \"Yes\" : \"No\");\n }\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n if (\"0\".equals(n)) {\n System.out.println(\"Yes\");\n } else {\n long sum = 0;\n for (int i = 0; i < n.length(); i++) {\n sum += Integer.parseInt(n.substring(i, i + 1));\n }\n System.out.println((sum % 9 == 0) ? \"Yes\" : \"No\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n if (\"0\".equals(n)) {\n System.out.println(\"Yes\");\n } else {\n long sum = 0;\n for (int i = 0; i < n.length(); i++) {\n sum += Integer.parseInt(n.substring(i, i + 1));\n }\n System.out.println((sum % 9 == 0) ? \"Yes\" : \"No\");\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n if (\"0\".equals(n)) {\n System.out.println(\"Yes\");\n } else {\n long sum = 0;\n for (int i = 0; i < n.length(); i++) {\n sum += Integer.parseInt(n.substring(i, i + 1));\n }\n System.out.println((sum % 9 == 0) ? \"Yes\" : \"No\");\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"if (\"0\".equals(n)) {\n System.out.println(\"Yes\");\n } else {\n long sum = 0;\n for (int i = 0; i < n.length(); i++) {\n sum += Integer.parseInt(n.substring(i, i + 1));\n }\n System.out.println((sum % 9 == 0) ? \"Yes\" : \"No\");\n }",
"\"0\".equals(n)",
"\"0\".equals",
"\"0\"",
"n",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n long sum = 0;\n for (int i = 0; i < n.length(); i++) {\n sum += Integer.parseInt(n.substring(i, i + 1));\n }\n System.out.println((sum % 9 == 0) ? \"Yes\" : \"No\");\n }",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < n.length(); i++) {\n sum += Integer.parseInt(n.substring(i, i + 1));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n sum += Integer.parseInt(n.substring(i, i + 1));\n }",
"{\n sum += Integer.parseInt(n.substring(i, i + 1));\n }",
"sum += Integer.parseInt(n.substring(i, i + 1))",
"sum",
"Integer.parseInt(n.substring(i, i + 1))",
"Integer.parseInt",
"Integer",
"n.substring(i, i + 1)",
"n.substring",
"n",
"i",
"i + 1",
"i",
"1",
"System.out.println((sum % 9 == 0) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(sum % 9 == 0) ? \"Yes\" : \"No\"",
"(sum % 9 == 0)",
"sum % 9",
"sum",
"9",
"0",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n if (\"0\".equals(n)) {\n System.out.println(\"Yes\");\n } else {\n long sum = 0;\n for (int i = 0; i < n.length(); i++) {\n sum += Integer.parseInt(n.substring(i, i + 1));\n }\n System.out.println((sum % 9 == 0) ? \"Yes\" : \"No\");\n }\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n if (\"0\".equals(n)) {\n System.out.println(\"Yes\");\n } else {\n long sum = 0;\n for (int i = 0; i < n.length(); i++) {\n sum += Integer.parseInt(n.substring(i, i + 1));\n }\n System.out.println((sum % 9 == 0) ? \"Yes\" : \"No\");\n }\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String n = sc.next();
if ("0".equals(n)) {
System.out.println("Yes");
} else {
long sum = 0;
for (int i = 0; i < n.length(); i++) {
sum += Integer.parseInt(n.substring(i, i + 1));
}
System.out.println((sum % 9 == 0) ? "Yes" : "No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
17,
42,
2,
40,
13,
17,
30,
4,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
28,
13,
4,
18,
13,
30,
30,
0,
13,
2,
13,
17,
4,
18,
13,
8,
2,
2,
13,
17,
17,
17,
17,
23,
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
],
[
114,
17
],
[
114,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
114,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
65,
68
],
[
53,
69
],
[
69,
70
],
[
53,
71
],
[
71,
72
],
[
53,
73
],
[
73,
74
],
[
51,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
77,
83
],
[
83,
84
],
[
83,
85
],
[
77,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
86,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
77,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
101,
108
],
[
75,
109
],
[
109,
110
],
[
75,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main\n{\n public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }\n\n private void solveOne(Scanner in, PrintWriter out)\n {\n String S = in.next();\n long sum = 0;\n for (char c : S.toCharArray())\n {\n sum += (c - '0');\n }\n out.print(sum % 9 == 0 ? \"Yes\" : \"No\");\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"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 public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }\n\n private void solveOne(Scanner in, PrintWriter out)\n {\n String S = in.next();\n long sum = 0;\n for (char c : S.toCharArray())\n {\n sum += (c - '0');\n }\n out.print(sum % 9 == 0 ? \"Yes\" : \"No\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskB solver = new TaskB();",
"solver",
"new TaskB()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskB\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }\n\n private void solveOne(Scanner in, PrintWriter out)\n {\n String S = in.next();\n long sum = 0;\n for (char c : S.toCharArray())\n {\n sum += (c - '0');\n }\n out.print(sum % 9 == 0 ? \"Yes\" : \"No\");\n }\n\n }",
"TaskB",
"public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }",
"solve",
"{\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }",
"int T = 1;",
"T",
"1",
"while (T-- > 0)\n {\n solveOne(in, out);\n }",
"T-- > 0",
"T--",
"T",
"0",
"{\n solveOne(in, out);\n }",
"solveOne(in, out)",
"solveOne",
"in",
"out",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"private void solveOne(Scanner in, PrintWriter out)\n {\n String S = in.next();\n long sum = 0;\n for (char c : S.toCharArray())\n {\n sum += (c - '0');\n }\n out.print(sum % 9 == 0 ? \"Yes\" : \"No\");\n }",
"solveOne",
"{\n String S = in.next();\n long sum = 0;\n for (char c : S.toCharArray())\n {\n sum += (c - '0');\n }\n out.print(sum % 9 == 0 ? \"Yes\" : \"No\");\n }",
"String S = in.next();",
"S",
"in.next()",
"in.next",
"in",
"long sum = 0;",
"sum",
"0",
"for (char c : S.toCharArray())\n {\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'",
"out.print(sum % 9 == 0 ? \"Yes\" : \"No\")",
"out.print",
"out",
"sum % 9 == 0 ? \"Yes\" : \"No\"",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"\"Yes\"",
"\"No\"",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main\n{\n public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }\n\n private void solveOne(Scanner in, PrintWriter out)\n {\n String S = in.next();\n long sum = 0;\n for (char c : S.toCharArray())\n {\n sum += (c - '0');\n }\n out.print(sum % 9 == 0 ? \"Yes\" : \"No\");\n }\n\n }\n}",
"public class Main\n{\n public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }\n\n private void solveOne(Scanner in, PrintWriter out)\n {\n String S = in.next();\n long sum = 0;\n for (char c : S.toCharArray())\n {\n sum += (c - '0');\n }\n out.print(sum % 9 == 0 ? \"Yes\" : \"No\");\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main
{
public static void main(String[] args)
{
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskB solver = new TaskB();
solver.solve(1, in, out);
out.close();
}
static class TaskB
{
public void solve(int testNumber, Scanner in, PrintWriter out)
{
int T = 1;
while (T-- > 0)
{
solveOne(in, out);
}
}
private void solveOne(Scanner in, PrintWriter out)
{
String S = in.next();
long sum = 0;
for (char c : S.toCharArray())
{
sum += (c - '0');
}
out.print(sum % 9 == 0 ? "Yes" : "No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
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,
4,
18,
13,
41,
13,
17,
28,
13,
4,
18,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
253,
35
],
[
253,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
38,
47
],
[
47,
48
],
[
47,
49
],
[
38,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
50,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
38,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
62,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
36,
80
],
[
80,
81
],
[
253,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
88,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
84,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
84,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
100,
110
],
[
110,
111
],
[
111,
112
],
[
100,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
82,
122
],
[
122,
123
],
[
253,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
135,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
140,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
134,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
124,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
162,
163
],
[
124,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
176,
178
],
[
171,
179
],
[
179,
180
],
[
180,
181
],
[
171,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
187,
188
],
[
166,
189
],
[
189,
190
],
[
164,
191
],
[
191,
192
],
[
124,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
200,
205
],
[
205,
206
],
[
205,
207
],
[
200,
208
],
[
208,
209
],
[
209,
210
],
[
200,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
216,
217
],
[
195,
218
],
[
218,
219
],
[
193,
220
],
[
220,
221
],
[
124,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
226,
229
],
[
229,
230
],
[
124,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
237,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
233,
250
],
[
250,
251
],
[
0,
252
],
[
252,
253
],
[
252,
254
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.PriorityQueue;\nimport java.util.StringTokenizer;\n\n\n//Main\npublic class Main{\n\t\n\n\n\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\t\n\t\tFastScanner sc=new FastScanner();\n\t\tString str = sc.next();\n\t\tint sum = 0;\n\t\tfor(char e : str.toCharArray()) {\n\t\t\tsum+=(e-'0');\n\t\t}\n\t\tif(sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t}\n\t\n\t\n\t\n\t\n \n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong[] readArrayLong(int n) {\n \tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n }\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tString nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\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.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.PriorityQueue;",
"PriorityQueue",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main{\n\t\n\n\n\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\t\n\t\tFastScanner sc=new FastScanner();\n\t\tString str = sc.next();\n\t\tint sum = 0;\n\t\tfor(char e : str.toCharArray()) {\n\t\t\tsum+=(e-'0');\n\t\t}\n\t\tif(sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t}\n\t\n\t\n\t\n\t\n \n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong[] readArrayLong(int n) {\n \tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n }\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tString nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\t\n\t\tFastScanner sc=new FastScanner();\n\t\tString str = sc.next();\n\t\tint sum = 0;\n\t\tfor(char e : str.toCharArray()) {\n\t\t\tsum+=(e-'0');\n\t\t}\n\t\tif(sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\t\n\t\tFastScanner sc=new FastScanner();\n\t\tString str = sc.next();\n\t\tint sum = 0;\n\t\tfor(char e : str.toCharArray()) {\n\t\t\tsum+=(e-'0');\n\t\t}\n\t\tif(sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t}",
"FastScanner sc=new FastScanner();",
"sc",
"new FastScanner()",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"int sum = 0;",
"sum",
"0",
"for(char e : str.toCharArray()) {\n\t\t\tsum+=(e-'0');\n\t\t}",
"char e",
"str.toCharArray()",
"str.toCharArray",
"str",
"{\n\t\t\tsum+=(e-'0');\n\t\t}",
"{\n\t\t\tsum+=(e-'0');\n\t\t}",
"sum+=(e-'0')",
"sum",
"(e-'0')",
"e",
"'0'",
"if(sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");",
"sum%9 == 0",
"sum%9",
"sum",
"9",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"static void sort(int[] a) {\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}",
"sort",
"{\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}",
"ArrayList<Integer> l=new ArrayList<>();",
"l",
"new ArrayList<>()",
"for (int i:a) l.add(i);",
"int i",
"a",
"l.add(i);",
"l.add(i)",
"l.add",
"l",
"i",
"Collections.sort(l)",
"Collections.sort",
"Collections",
"l",
"for (int i=0; i<a.length; i++) a[i]=l.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i]=l.get(i);",
"a[i]=l.get(i)",
"a[i]",
"a",
"i",
"l.get(i)",
"l.get",
"l",
"i",
"int[] a",
"a",
"static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong[] readArrayLong(int n) {\n \tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n }\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tString nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\t}",
"FastScanner",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st=new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a=new int[n];",
"a",
"new int[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long[] readArrayLong(int n) {\n \tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n }",
"readArrayLong",
"{\n \tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n }",
"long[] a=new long[n];",
"a",
"new long[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\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 str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main{\n\t\n\n\n\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\t\n\t\tFastScanner sc=new FastScanner();\n\t\tString str = sc.next();\n\t\tint sum = 0;\n\t\tfor(char e : str.toCharArray()) {\n\t\t\tsum+=(e-'0');\n\t\t}\n\t\tif(sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t}\n\t\n\t\n\t\n\t\n \n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong[] readArrayLong(int n) {\n \tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n }\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tString nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\t}\n}",
"public class Main{\n\t\n\n\n\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\t\n\t\tFastScanner sc=new FastScanner();\n\t\tString str = sc.next();\n\t\tint sum = 0;\n\t\tfor(char e : str.toCharArray()) {\n\t\t\tsum+=(e-'0');\n\t\t}\n\t\tif(sum%9 == 0)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t\t\n\t}\n\t\n\t\n\t\n\t\n \n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong[] readArrayLong(int n) {\n \tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n }\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tString nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\t}\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.PriorityQueue;
import java.util.StringTokenizer;
//Main
public class Main{
public static void main(String[] args) throws IOException {
FastScanner sc=new FastScanner();
String str = sc.next();
int sum = 0;
for(char e : str.toCharArray()) {
sum+=(e-'0');
}
if(sum%9 == 0)
System.out.println("Yes");
else
System.out.println("No");
}
static void sort(int[] a) {
ArrayList<Integer> l=new ArrayList<>();
for (int i:a) l.add(i);
Collections.sort(l);
for (int i=0; i<a.length; i++) a[i]=l.get(i);
}
static class FastScanner {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer("");
String next() {
while (!st.hasMoreTokens())
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a=new int[n];
for (int i=0; i<n; i++) a[i]=nextInt();
return a;
}
long[] readArrayLong(int n) {
long[] a=new long[n];
for (int i=0; i<n; i++) a[i]=nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
4,
13,
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,
13,
2,
13,
17,
0,
13,
2,
2,
13,
13,
17,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
4,
18,
13,
17,
42,
17,
30,
38,
5,
13,
30,
3,
30,
41,
13,
4,
18,
18,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
30,
3,
30,
4,
18,
13,
13,
12,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
29,
20,
12,
13,
30,
4,
13,
29,
20,
23,
13,
12,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
4,
13,
29,
20,
12,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
17,
30,
38,
5,
13,
30,
3,
30,
41,
13,
4,
18,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
40,
17,
30,
3,
12,
13,
30,
42,
17,
30,
38,
5,
13,
30,
3,
30,
41,
13,
4,
18,
18,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
3,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
285,
11
],
[
285,
12
],
[
12,
13
],
[
12,
14
],
[
285,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
20,
22
],
[
17,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
37,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
17,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
57,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
15,
75
],
[
75,
76
],
[
285,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
87,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
102,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
100,
113
],
[
113,
114
],
[
100,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
285,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
130,
131
],
[
285,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
141,
142
],
[
142,
143
],
[
138,
144
],
[
132,
145
],
[
145,
146
],
[
285,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
156,
157
],
[
157,
158
],
[
285,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
168,
169
],
[
169,
170
],
[
165,
171
],
[
159,
172
],
[
172,
173
],
[
285,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
179,
180
],
[
285,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
186,
187
],
[
181,
188
],
[
188,
189
],
[
285,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
196,
199
],
[
199,
200
],
[
200,
201
],
[
285,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
204,
207
],
[
207,
208
],
[
285,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
211,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
215,
218
],
[
218,
219
],
[
219,
220
],
[
285,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
227,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
232,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
240,
249
],
[
249,
250
],
[
285,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
257,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
262,
270
],
[
270,
271
],
[
272,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
276,
277
],
[
276,
278
],
[
272,
279
],
[
279,
280
],
[
279,
281
],
[
281,
282
],
[
270,
283
],
[
0,
284
],
[
284,
285
],
[
284,
286
]
]
| [
"import java.io.IOException;\nimport java.math.BigDecimal;\nimport java.math.BigInteger;\n\npublic class Main {\n private static final StringBuilder builder = new StringBuilder();\n public static void main(String[] args) {\n read();\n int c = 0;\n for (int i = 0; i < builder.length(); i++) {\n int n = Integer.parseInt(builder.substring(i, i + 1));\n c = (c + n) % 9;\n }\n\n if (c % 9 == 0) System.out.print(\"Yes\");\n else System.out.print(\"No\");\n }\n\n private static void read() {\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static int readInt() {\n read();\n return Integer.parseInt(builder.toString());\n }\n\n private static int readInt(int radix) {\n read();\n return Integer.parseInt(builder.toString(), radix);\n }\n\n private static long readLong() {\n read();\n return Long.parseLong(builder.toString());\n }\n\n private static long readLong(int radix) {\n read();\n return Long.parseLong(builder.toString(), radix);\n }\n\n private static BigInteger readBigInteger() {\n read();\n return new BigInteger(builder.toString());\n }\n\n private static BigInteger readBigInteger(int radix) {\n read();\n return new BigInteger(builder.toString(), radix);\n }\n\n private static double readDouble() {\n read();\n return Double.parseDouble(builder.toString());\n }\n\n private static BigDecimal readBigDecimal() {\n read();\n return new BigDecimal(builder.toString());\n }\n\n private static float readFloat() {\n read();\n return Float.parseFloat(builder.toString());\n }\n\n private static void skipLine() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static void skip() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }\n\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n private static final StringBuilder builder = new StringBuilder();\n public static void main(String[] args) {\n read();\n int c = 0;\n for (int i = 0; i < builder.length(); i++) {\n int n = Integer.parseInt(builder.substring(i, i + 1));\n c = (c + n) % 9;\n }\n\n if (c % 9 == 0) System.out.print(\"Yes\");\n else System.out.print(\"No\");\n }\n\n private static void read() {\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static int readInt() {\n read();\n return Integer.parseInt(builder.toString());\n }\n\n private static int readInt(int radix) {\n read();\n return Integer.parseInt(builder.toString(), radix);\n }\n\n private static long readLong() {\n read();\n return Long.parseLong(builder.toString());\n }\n\n private static long readLong(int radix) {\n read();\n return Long.parseLong(builder.toString(), radix);\n }\n\n private static BigInteger readBigInteger() {\n read();\n return new BigInteger(builder.toString());\n }\n\n private static BigInteger readBigInteger(int radix) {\n read();\n return new BigInteger(builder.toString(), radix);\n }\n\n private static double readDouble() {\n read();\n return Double.parseDouble(builder.toString());\n }\n\n private static BigDecimal readBigDecimal() {\n read();\n return new BigDecimal(builder.toString());\n }\n\n private static float readFloat() {\n read();\n return Float.parseFloat(builder.toString());\n }\n\n private static void skipLine() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static void skip() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }\n\n}",
"Main",
"private static final StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"public static void main(String[] args) {\n read();\n int c = 0;\n for (int i = 0; i < builder.length(); i++) {\n int n = Integer.parseInt(builder.substring(i, i + 1));\n c = (c + n) % 9;\n }\n\n if (c % 9 == 0) System.out.print(\"Yes\");\n else System.out.print(\"No\");\n }",
"main",
"{\n read();\n int c = 0;\n for (int i = 0; i < builder.length(); i++) {\n int n = Integer.parseInt(builder.substring(i, i + 1));\n c = (c + n) % 9;\n }\n\n if (c % 9 == 0) System.out.print(\"Yes\");\n else System.out.print(\"No\");\n }",
"read()",
"read",
"int c = 0;",
"c",
"0",
"for (int i = 0; i < builder.length(); i++) {\n int n = Integer.parseInt(builder.substring(i, i + 1));\n c = (c + n) % 9;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < builder.length()",
"i",
"builder.length()",
"builder.length",
"builder",
"i++",
"i++",
"i",
"{\n int n = Integer.parseInt(builder.substring(i, i + 1));\n c = (c + n) % 9;\n }",
"{\n int n = Integer.parseInt(builder.substring(i, i + 1));\n c = (c + n) % 9;\n }",
"int n = Integer.parseInt(builder.substring(i, i + 1));",
"n",
"Integer.parseInt(builder.substring(i, i + 1))",
"Integer.parseInt",
"Integer",
"builder.substring(i, i + 1)",
"builder.substring",
"builder",
"i",
"i + 1",
"i",
"1",
"c = (c + n) % 9",
"c",
"(c + n) % 9",
"(c + n)",
"c",
"n",
"9",
"if (c % 9 == 0) System.out.print(\"Yes\");\n else System.out.print(\"No\");",
"c % 9 == 0",
"c % 9",
"c",
"9",
"0",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"private static void read() {\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }",
"read",
"{\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }",
"builder.setLength(0)",
"builder.setLength",
"builder",
"0",
"while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }",
"true",
"{\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }",
"try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }",
"catch (IOException e) {\n break;\n }",
"IOException e",
"{\n break;\n }",
"break;",
"{\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n }",
"int b = System.in.read();",
"b",
"System.in.read()",
"System.in.read",
"System.in",
"System",
"System.in",
"if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }",
"b == ' ' || b == '\\n' || b == -1",
"b == ' ' || b == '\\n' || b == -1",
"b == ' '",
"b",
"' '",
"b == '\\n'",
"b",
"'\\n'",
"b == -1",
"b",
"-1",
"1",
"{\n break;\n }",
"break;",
"{\n builder.appendCodePoint(b);\n }",
"builder.appendCodePoint(b)",
"builder.appendCodePoint",
"builder",
"b",
"private static int readInt() {\n read();\n return Integer.parseInt(builder.toString());\n }",
"readInt",
"{\n read();\n return Integer.parseInt(builder.toString());\n }",
"read()",
"read",
"return Integer.parseInt(builder.toString());",
"Integer.parseInt(builder.toString())",
"Integer.parseInt",
"Integer",
"builder.toString()",
"builder.toString",
"builder",
"private static int readInt(int radix) {\n read();\n return Integer.parseInt(builder.toString(), radix);\n }",
"readInt",
"{\n read();\n return Integer.parseInt(builder.toString(), radix);\n }",
"read()",
"read",
"return Integer.parseInt(builder.toString(), radix);",
"Integer.parseInt(builder.toString(), radix)",
"Integer.parseInt",
"Integer",
"builder.toString()",
"builder.toString",
"builder",
"radix",
"int radix",
"radix",
"private static long readLong() {\n read();\n return Long.parseLong(builder.toString());\n }",
"readLong",
"{\n read();\n return Long.parseLong(builder.toString());\n }",
"read()",
"read",
"return Long.parseLong(builder.toString());",
"Long.parseLong(builder.toString())",
"Long.parseLong",
"Long",
"builder.toString()",
"builder.toString",
"builder",
"private static long readLong(int radix) {\n read();\n return Long.parseLong(builder.toString(), radix);\n }",
"readLong",
"{\n read();\n return Long.parseLong(builder.toString(), radix);\n }",
"read()",
"read",
"return Long.parseLong(builder.toString(), radix);",
"Long.parseLong(builder.toString(), radix)",
"Long.parseLong",
"Long",
"builder.toString()",
"builder.toString",
"builder",
"radix",
"int radix",
"radix",
"private static BigInteger readBigInteger() {\n read();\n return new BigInteger(builder.toString());\n }",
"readBigInteger",
"{\n read();\n return new BigInteger(builder.toString());\n }",
"read()",
"read",
"return new BigInteger(builder.toString());",
"new BigInteger(builder.toString())",
"private static BigInteger readBigInteger(int radix) {\n read();\n return new BigInteger(builder.toString(), radix);\n }",
"readBigInteger",
"{\n read();\n return new BigInteger(builder.toString(), radix);\n }",
"read()",
"read",
"return new BigInteger(builder.toString(), radix);",
"new BigInteger(builder.toString(), radix)",
"int radix",
"radix",
"private static double readDouble() {\n read();\n return Double.parseDouble(builder.toString());\n }",
"readDouble",
"{\n read();\n return Double.parseDouble(builder.toString());\n }",
"read()",
"read",
"return Double.parseDouble(builder.toString());",
"Double.parseDouble(builder.toString())",
"Double.parseDouble",
"Double",
"builder.toString()",
"builder.toString",
"builder",
"private static BigDecimal readBigDecimal() {\n read();\n return new BigDecimal(builder.toString());\n }",
"readBigDecimal",
"{\n read();\n return new BigDecimal(builder.toString());\n }",
"read()",
"read",
"return new BigDecimal(builder.toString());",
"new BigDecimal(builder.toString())",
"private static float readFloat() {\n read();\n return Float.parseFloat(builder.toString());\n }",
"readFloat",
"{\n read();\n return Float.parseFloat(builder.toString());\n }",
"read()",
"read",
"return Float.parseFloat(builder.toString());",
"Float.parseFloat(builder.toString())",
"Float.parseFloat",
"Float",
"builder.toString()",
"builder.toString",
"builder",
"private static void skipLine() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }",
"skipLine",
"{\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }",
"while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }",
"true",
"{\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }",
"try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }",
"catch (IOException e) {\n break;\n }",
"IOException e",
"{\n break;\n }",
"break;",
"{\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n }",
"int b = System.in.read();",
"b",
"System.in.read()",
"System.in.read",
"System.in",
"System",
"System.in",
"if (b == '\\n' || b == -1) {\n break;\n }",
"b == '\\n' || b == -1",
"b == '\\n'",
"b",
"'\\n'",
"b == -1",
"b",
"-1",
"1",
"{\n break;\n }",
"break;",
"private static void skip() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }",
"skip",
"{\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }",
"while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }",
"true",
"{\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }",
"try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }",
"catch (IOException e) {\n break;\n }",
"IOException e",
"{\n break;\n }",
"break;",
"{\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n }",
"int b = System.in.read();",
"b",
"System.in.read()",
"System.in.read",
"System.in",
"System",
"System.in",
"if (b == ' ' || b == '\\n' || b == -1) break;",
"b == ' ' || b == '\\n' || b == -1",
"b == ' ' || b == '\\n' || b == -1",
"b == ' '",
"b",
"' '",
"b == '\\n'",
"b",
"'\\n'",
"b == -1",
"b",
"-1",
"1",
"break;",
"public class Main {\n private static final StringBuilder builder = new StringBuilder();\n public static void main(String[] args) {\n read();\n int c = 0;\n for (int i = 0; i < builder.length(); i++) {\n int n = Integer.parseInt(builder.substring(i, i + 1));\n c = (c + n) % 9;\n }\n\n if (c % 9 == 0) System.out.print(\"Yes\");\n else System.out.print(\"No\");\n }\n\n private static void read() {\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static int readInt() {\n read();\n return Integer.parseInt(builder.toString());\n }\n\n private static int readInt(int radix) {\n read();\n return Integer.parseInt(builder.toString(), radix);\n }\n\n private static long readLong() {\n read();\n return Long.parseLong(builder.toString());\n }\n\n private static long readLong(int radix) {\n read();\n return Long.parseLong(builder.toString(), radix);\n }\n\n private static BigInteger readBigInteger() {\n read();\n return new BigInteger(builder.toString());\n }\n\n private static BigInteger readBigInteger(int radix) {\n read();\n return new BigInteger(builder.toString(), radix);\n }\n\n private static double readDouble() {\n read();\n return Double.parseDouble(builder.toString());\n }\n\n private static BigDecimal readBigDecimal() {\n read();\n return new BigDecimal(builder.toString());\n }\n\n private static float readFloat() {\n read();\n return Float.parseFloat(builder.toString());\n }\n\n private static void skipLine() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static void skip() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }\n\n}",
"public class Main {\n private static final StringBuilder builder = new StringBuilder();\n public static void main(String[] args) {\n read();\n int c = 0;\n for (int i = 0; i < builder.length(); i++) {\n int n = Integer.parseInt(builder.substring(i, i + 1));\n c = (c + n) % 9;\n }\n\n if (c % 9 == 0) System.out.print(\"Yes\");\n else System.out.print(\"No\");\n }\n\n private static void read() {\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static int readInt() {\n read();\n return Integer.parseInt(builder.toString());\n }\n\n private static int readInt(int radix) {\n read();\n return Integer.parseInt(builder.toString(), radix);\n }\n\n private static long readLong() {\n read();\n return Long.parseLong(builder.toString());\n }\n\n private static long readLong(int radix) {\n read();\n return Long.parseLong(builder.toString(), radix);\n }\n\n private static BigInteger readBigInteger() {\n read();\n return new BigInteger(builder.toString());\n }\n\n private static BigInteger readBigInteger(int radix) {\n read();\n return new BigInteger(builder.toString(), radix);\n }\n\n private static double readDouble() {\n read();\n return Double.parseDouble(builder.toString());\n }\n\n private static BigDecimal readBigDecimal() {\n read();\n return new BigDecimal(builder.toString());\n }\n\n private static float readFloat() {\n read();\n return Float.parseFloat(builder.toString());\n }\n\n private static void skipLine() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static void skip() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }\n\n}",
"Main"
]
| import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
public class Main {
private static final StringBuilder builder = new StringBuilder();
public static void main(String[] args) {
read();
int c = 0;
for (int i = 0; i < builder.length(); i++) {
int n = Integer.parseInt(builder.substring(i, i + 1));
c = (c + n) % 9;
}
if (c % 9 == 0) System.out.print("Yes");
else System.out.print("No");
}
private static void read() {
builder.setLength(0);
while (true) {
try {
int b = System.in.read();
if (b == ' ' || b == '\n' || b == -1) {
break;
} else {
builder.appendCodePoint(b);
}
} catch (IOException e) {
break;
}
}
}
private static int readInt() {
read();
return Integer.parseInt(builder.toString());
}
private static int readInt(int radix) {
read();
return Integer.parseInt(builder.toString(), radix);
}
private static long readLong() {
read();
return Long.parseLong(builder.toString());
}
private static long readLong(int radix) {
read();
return Long.parseLong(builder.toString(), radix);
}
private static BigInteger readBigInteger() {
read();
return new BigInteger(builder.toString());
}
private static BigInteger readBigInteger(int radix) {
read();
return new BigInteger(builder.toString(), radix);
}
private static double readDouble() {
read();
return Double.parseDouble(builder.toString());
}
private static BigDecimal readBigDecimal() {
read();
return new BigDecimal(builder.toString());
}
private static float readFloat() {
read();
return Float.parseFloat(builder.toString());
}
private static void skipLine() {
while (true) {
try {
int b = System.in.read();
if (b == '\n' || b == -1) {
break;
}
} catch (IOException e) {
break;
}
}
}
private static void skip() {
while (true) {
try {
int b = System.in.read();
if (b == ' ' || b == '\n' || b == -1) break;
} catch (IOException e) {
break;
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
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,
8,
2,
2,
13,
17,
17,
17,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
69,
8
],
[
69,
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
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
26,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
11,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
58,
65
],
[
9,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
]
| [
"import java.util.Scanner;\nimport java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString N = scan.next();\n\t\tscan.close();\n\n\t\tint sum = 0;\n\n\t\tfor (int i = 0 ;i < N.length() ;i++ ) {\n\t\t\tsum += Integer.parseInt(N.substring(i,i+1));\n\t\t}\n\n\t\tSystem.out.println(sum%9 == 0?\"Yes\":\"No\");\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString N = scan.next();\n\t\tscan.close();\n\n\t\tint sum = 0;\n\n\t\tfor (int i = 0 ;i < N.length() ;i++ ) {\n\t\t\tsum += Integer.parseInt(N.substring(i,i+1));\n\t\t}\n\n\t\tSystem.out.println(sum%9 == 0?\"Yes\":\"No\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString N = scan.next();\n\t\tscan.close();\n\n\t\tint sum = 0;\n\n\t\tfor (int i = 0 ;i < N.length() ;i++ ) {\n\t\t\tsum += Integer.parseInt(N.substring(i,i+1));\n\t\t}\n\n\t\tSystem.out.println(sum%9 == 0?\"Yes\":\"No\");\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString N = scan.next();\n\t\tscan.close();\n\n\t\tint sum = 0;\n\n\t\tfor (int i = 0 ;i < N.length() ;i++ ) {\n\t\t\tsum += Integer.parseInt(N.substring(i,i+1));\n\t\t}\n\n\t\tSystem.out.println(sum%9 == 0?\"Yes\":\"No\");\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String N = scan.next();",
"N",
"scan.next()",
"scan.next",
"scan",
"scan.close()",
"scan.close",
"scan",
"int sum = 0;",
"sum",
"0",
"for (int i = 0 ;i < N.length() ;i++ ) {\n\t\t\tsum += Integer.parseInt(N.substring(i,i+1));\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < N.length()",
"i",
"N.length()",
"N.length",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tsum += Integer.parseInt(N.substring(i,i+1));\n\t\t}",
"{\n\t\t\tsum += Integer.parseInt(N.substring(i,i+1));\n\t\t}",
"sum += Integer.parseInt(N.substring(i,i+1))",
"sum",
"Integer.parseInt(N.substring(i,i+1))",
"Integer.parseInt",
"Integer",
"N.substring(i,i+1)",
"N.substring",
"N",
"i",
"i+1",
"i",
"1",
"System.out.println(sum%9 == 0?\"Yes\":\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"sum%9 == 0?\"Yes\":\"No\"",
"sum%9 == 0",
"sum%9",
"sum",
"9",
"0",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString N = scan.next();\n\t\tscan.close();\n\n\t\tint sum = 0;\n\n\t\tfor (int i = 0 ;i < N.length() ;i++ ) {\n\t\t\tsum += Integer.parseInt(N.substring(i,i+1));\n\t\t}\n\n\t\tSystem.out.println(sum%9 == 0?\"Yes\":\"No\");\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString N = scan.next();\n\t\tscan.close();\n\n\t\tint sum = 0;\n\n\t\tfor (int i = 0 ;i < N.length() ;i++ ) {\n\t\t\tsum += Integer.parseInt(N.substring(i,i+1));\n\t\t}\n\n\t\tSystem.out.println(sum%9 == 0?\"Yes\":\"No\");\n\t}\n}",
"Main"
]
| import java.util.Scanner;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String N = scan.next();
scan.close();
int sum = 0;
for (int i = 0 ;i < N.length() ;i++ ) {
sum += Integer.parseInt(N.substring(i,i+1));
}
System.out.println(sum%9 == 0?"Yes":"No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
4,
18,
13,
18,
13,
13,
14,
2,
4,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
78,
5
],
[
78,
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
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
54,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
6,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"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\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tcnt= cnt+Character.getNumericValue(sChars[i]);\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.floorMod(cnt,9)==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\n\t\t\t}\n\t}\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\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tcnt= cnt+Character.getNumericValue(sChars[i]);\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.floorMod(cnt,9)==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\n\t\t\t}\n\t}\t\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tcnt= cnt+Character.getNumericValue(sChars[i]);\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.floorMod(cnt,9)==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\n\t\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tcnt= cnt+Character.getNumericValue(sChars[i]);\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.floorMod(cnt,9)==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\n\t\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"int len = s.length();",
"len",
"s.length()",
"s.length",
"s",
"int cnt = 0;",
"cnt",
"0",
"char[] sChars = s.toCharArray();",
"sChars",
"s.toCharArray()",
"s.toCharArray",
"s",
"for(int i=0;i<len;i++) {\n\t\t\t\tcnt= cnt+Character.getNumericValue(sChars[i]);\t\t\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<len",
"i",
"len",
"i++",
"i++",
"i",
"{\n\t\t\t\tcnt= cnt+Character.getNumericValue(sChars[i]);\t\t\n\t\t\t}",
"{\n\t\t\t\tcnt= cnt+Character.getNumericValue(sChars[i]);\t\t\n\t\t\t}",
"cnt= cnt+Character.getNumericValue(sChars[i])",
"cnt",
"cnt+Character.getNumericValue(sChars[i])",
"cnt",
"Character.getNumericValue(sChars[i])",
"Character.getNumericValue",
"Character",
"sChars[i]",
"sChars",
"i",
"if(Math.floorMod(cnt,9)==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\n\t\t\t}",
"Math.floorMod(cnt,9)==0",
"Math.floorMod(cnt,9)",
"Math.floorMod",
"Math",
"cnt",
"9",
"0",
"{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\n\t\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tcnt= cnt+Character.getNumericValue(sChars[i]);\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.floorMod(cnt,9)==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\n\t\t\t}\n\t}\t\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tcnt= cnt+Character.getNumericValue(sChars[i]);\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.floorMod(cnt,9)==0) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\n\t\t\t}\n\t}\t\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s = sc.next();
int len = s.length();
int cnt = 0;
char[] sChars = s.toCharArray();
for(int i=0;i<len;i++) {
cnt= cnt+Character.getNumericValue(sChars[i]);
}
if(Math.floorMod(cnt,9)==0) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
13,
0,
13,
2,
2,
13,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
180,
8
],
[
180,
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
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
37,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
11,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
54,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
9,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
75,
79
],
[
79,
80
],
[
75,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
81,
90
],
[
90,
91
],
[
75,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
95,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
94,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
120,
121
],
[
75,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
125,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
135,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
124,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
150,
151
],
[
75,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
155,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
165,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
154,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
0,
179
],
[
179,
180
],
[
179,
181
]
]
| [
"import java.io.*;\nimport java.util.*;\npublic class Main {\n public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n String n=in.next();\n int sum=0;\n for(int i=0;i<n.length();i++){\n int x=Character.getNumericValue(n.charAt(i));\n sum=(sum+x)%9;\n }\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");\n }\n}\nclass scan\n{\n public static BufferedReader reader;\n public static StringTokenizer token;\n\n scan(InputStream str)\n {\n reader=new BufferedReader(new InputStreamReader(str));\n token=null;\n }\n\n static int nextInt()\n {\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return Integer.parseInt(token.nextToken());\n }\n\n static long nextLong()\n {\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return Long.parseLong(token.nextToken());\n }\n\n static String next()\n {\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return token.nextToken();\n }\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n String n=in.next();\n int sum=0;\n for(int i=0;i<n.length();i++){\n int x=Character.getNumericValue(n.charAt(i));\n sum=(sum+x)%9;\n }\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n String n=in.next();\n int sum=0;\n for(int i=0;i<n.length();i++){\n int x=Character.getNumericValue(n.charAt(i));\n sum=(sum+x)%9;\n }\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner in=new Scanner(System.in);\n String n=in.next();\n int sum=0;\n for(int i=0;i<n.length();i++){\n int x=Character.getNumericValue(n.charAt(i));\n sum=(sum+x)%9;\n }\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");\n }",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String n=in.next();",
"n",
"in.next()",
"in.next",
"in",
"int sum=0;",
"sum",
"0",
"for(int i=0;i<n.length();i++){\n int x=Character.getNumericValue(n.charAt(i));\n sum=(sum+x)%9;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n.length()",
"i",
"n.length()",
"n.length",
"n",
"i++",
"i++",
"i",
"{\n int x=Character.getNumericValue(n.charAt(i));\n sum=(sum+x)%9;\n }",
"{\n int x=Character.getNumericValue(n.charAt(i));\n sum=(sum+x)%9;\n }",
"int x=Character.getNumericValue(n.charAt(i));",
"x",
"Character.getNumericValue(n.charAt(i))",
"Character.getNumericValue",
"Character",
"n.charAt(i)",
"n.charAt",
"n",
"i",
"sum=(sum+x)%9",
"sum",
"(sum+x)%9",
"(sum+x)",
"sum",
"x",
"9",
"if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");",
"sum%9==0",
"sum%9",
"sum",
"9",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args",
"class scan\n{\n public static BufferedReader reader;\n public static StringTokenizer token;\n\n scan(InputStream str)\n {\n reader=new BufferedReader(new InputStreamReader(str));\n token=null;\n }\n\n static int nextInt()\n {\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return Integer.parseInt(token.nextToken());\n }\n\n static long nextLong()\n {\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return Long.parseLong(token.nextToken());\n }\n\n static String next()\n {\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return token.nextToken();\n }\n\n}",
"scan",
"public static BufferedReader reader;",
"reader",
"public static StringTokenizer token;",
"token",
"scan(InputStream str)\n {\n reader=new BufferedReader(new InputStreamReader(str));\n token=null;\n }",
"scan",
"{\n reader=new BufferedReader(new InputStreamReader(str));\n token=null;\n }",
"reader=new BufferedReader(new InputStreamReader(str))",
"reader",
"new BufferedReader(new InputStreamReader(str))",
"token=null",
"token",
"null",
"InputStream str",
"str",
"static int nextInt()\n {\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return Integer.parseInt(token.nextToken());\n }",
"nextInt",
"{\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return Integer.parseInt(token.nextToken());\n }",
"while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }",
"token==null||!token.hasMoreTokens()",
"token==null",
"token",
"null",
"!token.hasMoreTokens()",
"token.hasMoreTokens()",
"token.hasMoreTokens",
"token",
"{\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }",
"try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }",
"catch(IOException e){ throw new RuntimeException(e); }",
"IOException e",
"{ throw new RuntimeException(e); }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{ token=new StringTokenizer(reader.readLine()); }",
"token=new StringTokenizer(reader.readLine())",
"token",
"new StringTokenizer(reader.readLine())",
"return Integer.parseInt(token.nextToken());",
"Integer.parseInt(token.nextToken())",
"Integer.parseInt",
"Integer",
"token.nextToken()",
"token.nextToken",
"token",
"static long nextLong()\n {\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return Long.parseLong(token.nextToken());\n }",
"nextLong",
"{\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return Long.parseLong(token.nextToken());\n }",
"while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }",
"token==null||!token.hasMoreTokens()",
"token==null",
"token",
"null",
"!token.hasMoreTokens()",
"token.hasMoreTokens()",
"token.hasMoreTokens",
"token",
"{\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }",
"try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }",
"catch(IOException e){ throw new RuntimeException(e); }",
"IOException e",
"{ throw new RuntimeException(e); }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{ token=new StringTokenizer(reader.readLine()); }",
"token=new StringTokenizer(reader.readLine())",
"token",
"new StringTokenizer(reader.readLine())",
"return Long.parseLong(token.nextToken());",
"Long.parseLong(token.nextToken())",
"Long.parseLong",
"Long",
"token.nextToken()",
"token.nextToken",
"token",
"static String next()\n {\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return token.nextToken();\n }",
"next",
"{\n while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }\n return token.nextToken();\n }",
"while(token==null||!token.hasMoreTokens())\n {\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }",
"token==null||!token.hasMoreTokens()",
"token==null",
"token",
"null",
"!token.hasMoreTokens()",
"token.hasMoreTokens()",
"token.hasMoreTokens",
"token",
"{\n try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }\n }",
"try { token=new StringTokenizer(reader.readLine()); }\n catch(IOException e){ throw new RuntimeException(e); }",
"catch(IOException e){ throw new RuntimeException(e); }",
"IOException e",
"{ throw new RuntimeException(e); }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{ token=new StringTokenizer(reader.readLine()); }",
"token=new StringTokenizer(reader.readLine())",
"token",
"new StringTokenizer(reader.readLine())",
"return token.nextToken();",
"token.nextToken()",
"token.nextToken",
"token",
"public class Main {\n public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n String n=in.next();\n int sum=0;\n for(int i=0;i<n.length();i++){\n int x=Character.getNumericValue(n.charAt(i));\n sum=(sum+x)%9;\n }\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");\n }\n}",
"public class Main {\n public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n String n=in.next();\n int sum=0;\n for(int i=0;i<n.length();i++){\n int x=Character.getNumericValue(n.charAt(i));\n sum=(sum+x)%9;\n }\n if(sum%9==0){\n System.out.println(\"Yes\");\n }\n else\n System.out.println(\"No\");\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner in=new Scanner(System.in);
String n=in.next();
int sum=0;
for(int i=0;i<n.length();i++){
int x=Character.getNumericValue(n.charAt(i));
sum=(sum+x)%9;
}
if(sum%9==0){
System.out.println("Yes");
}
else
System.out.println("No");
}
}
class scan
{
public static BufferedReader reader;
public static StringTokenizer token;
scan(InputStream str)
{
reader=new BufferedReader(new InputStreamReader(str));
token=null;
}
static int nextInt()
{
while(token==null||!token.hasMoreTokens())
{
try { token=new StringTokenizer(reader.readLine()); }
catch(IOException e){ throw new RuntimeException(e); }
}
return Integer.parseInt(token.nextToken());
}
static long nextLong()
{
while(token==null||!token.hasMoreTokens())
{
try { token=new StringTokenizer(reader.readLine()); }
catch(IOException e){ throw new RuntimeException(e); }
}
return Long.parseLong(token.nextToken());
}
static String next()
{
while(token==null||!token.hasMoreTokens())
{
try { token=new StringTokenizer(reader.readLine()); }
catch(IOException e){ throw new RuntimeException(e); }
}
return token.nextToken();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
46,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
6,
64
],
[
64,
65
]
]
| [
"import java.util.*;\n\nclass Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.nextLine();\n long sum = 0;\n int len = n.length();\n for(int i = 0;i<len;i++){\n sum += (int)n.charAt(i) - '0';\n }\n //System.out.println(sum);\n if(sum % 9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.nextLine();\n long sum = 0;\n int len = n.length();\n for(int i = 0;i<len;i++){\n sum += (int)n.charAt(i) - '0';\n }\n //System.out.println(sum);\n if(sum % 9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n = sc.nextLine();\n long sum = 0;\n int len = n.length();\n for(int i = 0;i<len;i++){\n sum += (int)n.charAt(i) - '0';\n }\n //System.out.println(sum);\n if(sum % 9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String n = sc.nextLine();\n long sum = 0;\n int len = n.length();\n for(int i = 0;i<len;i++){\n sum += (int)n.charAt(i) - '0';\n }\n //System.out.println(sum);\n if(sum % 9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n = sc.nextLine();",
"n",
"sc.nextLine()",
"sc.nextLine",
"sc",
"long sum = 0;",
"sum",
"0",
"int len = n.length();",
"len",
"n.length()",
"n.length",
"n",
"for(int i = 0;i<len;i++){\n sum += (int)n.charAt(i) - '0';\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<len",
"i",
"len",
"i++",
"i++",
"i",
"{\n sum += (int)n.charAt(i) - '0';\n }",
"{\n sum += (int)n.charAt(i) - '0';\n }",
"sum += (int)n.charAt(i) - '0'",
"sum",
"(int)n.charAt(i) - '0'",
"(int)n.charAt(i)",
"n.charAt",
"n",
"i",
"'0'",
"if(sum % 9 == 0)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String n = sc.nextLine();
long sum = 0;
int len = n.length();
for(int i = 0;i<len;i++){
sum += (int)n.charAt(i) - '0';
}
//System.out.println(sum);
if(sum % 9 == 0)
System.out.println("Yes");
else
System.out.println("No");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
2,
4,
18,
13,
13,
17,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
39,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
47,
60
],
[
60,
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 sc = new Scanner(System.in);\n\t\tString N = sc.next();\n\t\tint check_dev9 = 0;\n\t\tfor(int i=0;i<N.length();i++) {\n\t\t\tcheck_dev9 = check_dev9 + (int)(N.charAt(i) - '1' +1);\n\t\t}\n\n\t\tif(check_dev9 % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\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 N = sc.next();\n\t\tint check_dev9 = 0;\n\t\tfor(int i=0;i<N.length();i++) {\n\t\t\tcheck_dev9 = check_dev9 + (int)(N.charAt(i) - '1' +1);\n\t\t}\n\n\t\tif(check_dev9 % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString N = sc.next();\n\t\tint check_dev9 = 0;\n\t\tfor(int i=0;i<N.length();i++) {\n\t\t\tcheck_dev9 = check_dev9 + (int)(N.charAt(i) - '1' +1);\n\t\t}\n\n\t\tif(check_dev9 % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString N = sc.next();\n\t\tint check_dev9 = 0;\n\t\tfor(int i=0;i<N.length();i++) {\n\t\t\tcheck_dev9 = check_dev9 + (int)(N.charAt(i) - '1' +1);\n\t\t}\n\n\t\tif(check_dev9 % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String N = sc.next();",
"N",
"sc.next()",
"sc.next",
"sc",
"int check_dev9 = 0;",
"check_dev9",
"0",
"for(int i=0;i<N.length();i++) {\n\t\t\tcheck_dev9 = check_dev9 + (int)(N.charAt(i) - '1' +1);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N.length()",
"i",
"N.length()",
"N.length",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tcheck_dev9 = check_dev9 + (int)(N.charAt(i) - '1' +1);\n\t\t}",
"{\n\t\t\tcheck_dev9 = check_dev9 + (int)(N.charAt(i) - '1' +1);\n\t\t}",
"check_dev9 = check_dev9 + (int)(N.charAt(i) - '1' +1)",
"check_dev9",
"check_dev9 + (int)(N.charAt(i) - '1' +1)",
"check_dev9",
"(int)(N.charAt(i) - '1' +1)",
"N.charAt(i) - '1'",
"N.charAt(i)",
"N.charAt",
"N",
"i",
"'1'",
"1",
"if(check_dev9 % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"check_dev9 % 9 == 0",
"check_dev9 % 9",
"check_dev9",
"9",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString N = sc.next();\n\t\tint check_dev9 = 0;\n\t\tfor(int i=0;i<N.length();i++) {\n\t\t\tcheck_dev9 = check_dev9 + (int)(N.charAt(i) - '1' +1);\n\t\t}\n\n\t\tif(check_dev9 % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\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 N = sc.next();\n\t\tint check_dev9 = 0;\n\t\tfor(int i=0;i<N.length();i++) {\n\t\t\tcheck_dev9 = check_dev9 + (int)(N.charAt(i) - '1' +1);\n\t\t}\n\n\t\tif(check_dev9 % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\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 N = sc.next();
int check_dev9 = 0;
for(int i=0;i<N.length();i++) {
check_dev9 = check_dev9 + (int)(N.charAt(i) - '1' +1);
}
if(check_dev9 % 9 == 0) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
14,
2,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
41,
13,
4,
18,
13,
13,
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,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
98,
8
],
[
98,
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
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
26,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
11,
40
],
[
40,
41
],
[
40,
42
],
[
11,
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
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
57,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
11,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
81,
88
],
[
11,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
9,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
]
| [
"import java.math.BigDecimal;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tBigDecimal n = sc.nextBigDecimal();\n\t\tif (n == BigDecimal.ZERO) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\n\t\tString nn = String.valueOf(n);\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < nn.length(); i++) {\n\t\t\tcount += Integer.valueOf(nn.substring(i, i + 1));\n\t\t\tcount = count % 9;\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"No\");\n\n\t}\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tBigDecimal n = sc.nextBigDecimal();\n\t\tif (n == BigDecimal.ZERO) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\n\t\tString nn = String.valueOf(n);\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < nn.length(); i++) {\n\t\t\tcount += Integer.valueOf(nn.substring(i, i + 1));\n\t\t\tcount = count % 9;\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"No\");\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tBigDecimal n = sc.nextBigDecimal();\n\t\tif (n == BigDecimal.ZERO) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\n\t\tString nn = String.valueOf(n);\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < nn.length(); i++) {\n\t\t\tcount += Integer.valueOf(nn.substring(i, i + 1));\n\t\t\tcount = count % 9;\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"No\");\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tBigDecimal n = sc.nextBigDecimal();\n\t\tif (n == BigDecimal.ZERO) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\n\t\tString nn = String.valueOf(n);\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < nn.length(); i++) {\n\t\t\tcount += Integer.valueOf(nn.substring(i, i + 1));\n\t\t\tcount = count % 9;\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"No\");\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"BigDecimal n = sc.nextBigDecimal();",
"n",
"sc.nextBigDecimal()",
"sc.nextBigDecimal",
"sc",
"if (n == BigDecimal.ZERO) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}",
"n == BigDecimal.ZERO",
"n",
"BigDecimal.ZERO",
"BigDecimal",
"BigDecimal.ZERO",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"String nn = String.valueOf(n);",
"nn",
"String.valueOf(n)",
"String.valueOf",
"String",
"n",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < nn.length(); i++) {\n\t\t\tcount += Integer.valueOf(nn.substring(i, i + 1));\n\t\t\tcount = count % 9;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < nn.length()",
"i",
"nn.length()",
"nn.length",
"nn",
"i++",
"i++",
"i",
"{\n\t\t\tcount += Integer.valueOf(nn.substring(i, i + 1));\n\t\t\tcount = count % 9;\n\t\t}",
"{\n\t\t\tcount += Integer.valueOf(nn.substring(i, i + 1));\n\t\t\tcount = count % 9;\n\t\t}",
"count += Integer.valueOf(nn.substring(i, i + 1))",
"count",
"Integer.valueOf(nn.substring(i, i + 1))",
"Integer.valueOf",
"Integer",
"nn.substring(i, i + 1)",
"nn.substring",
"nn",
"i",
"i + 1",
"i",
"1",
"count = count % 9",
"count",
"count % 9",
"count",
"9",
"if (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}",
"count % 9 == 0",
"count % 9",
"count",
"9",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tBigDecimal n = sc.nextBigDecimal();\n\t\tif (n == BigDecimal.ZERO) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\n\t\tString nn = String.valueOf(n);\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < nn.length(); i++) {\n\t\t\tcount += Integer.valueOf(nn.substring(i, i + 1));\n\t\t\tcount = count % 9;\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"No\");\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tBigDecimal n = sc.nextBigDecimal();\n\t\tif (n == BigDecimal.ZERO) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\n\t\tString nn = String.valueOf(n);\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < nn.length(); i++) {\n\t\t\tcount += Integer.valueOf(nn.substring(i, i + 1));\n\t\t\tcount = count % 9;\n\t\t}\n\n\t\tif (count % 9 == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"No\");\n\n\t}\n}",
"Main"
]
| import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
BigDecimal n = sc.nextBigDecimal();
if (n == BigDecimal.ZERO) {
System.out.println("Yes");
return;
}
String nn = String.valueOf(n);
int count = 0;
for (int i = 0; i < nn.length(); i++) {
count += Integer.valueOf(nn.substring(i, i + 1));
count = count % 9;
}
if (count % 9 == 0) {
System.out.println("Yes");
return;
}
System.out.println("No");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
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,
14,
2,
2,
13,
17,
17,
4,
18,
13,
17,
4,
18,
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
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
26,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
11,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
9,
63
],
[
63,
64
]
]
| [
"import java.util.*;\nimport java.io.*;\nclass Main{\n\tpublic static void main(String[]args){\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tString str = in.nextLine();\n\t\tint sum = 0;\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tsum += str.charAt(i) - '0';\n\t\t}\n\t\tif(sum%9 == 0)\n\t\t\tout.println(\"Yes\");\n\t\telse\n\t\t\tout.println(\"No\");\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 in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tString str = in.nextLine();\n\t\tint sum = 0;\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tsum += str.charAt(i) - '0';\n\t\t}\n\t\tif(sum%9 == 0)\n\t\t\tout.println(\"Yes\");\n\t\telse\n\t\t\tout.println(\"No\");\n\t}\n}",
"Main",
"public static void main(String[]args){\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tString str = in.nextLine();\n\t\tint sum = 0;\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tsum += str.charAt(i) - '0';\n\t\t}\n\t\tif(sum%9 == 0)\n\t\t\tout.println(\"Yes\");\n\t\telse\n\t\t\tout.println(\"No\");\n\t}",
"main",
"{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tString str = in.nextLine();\n\t\tint sum = 0;\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tsum += str.charAt(i) - '0';\n\t\t}\n\t\tif(sum%9 == 0)\n\t\t\tout.println(\"Yes\");\n\t\telse\n\t\t\tout.println(\"No\");\n\t}",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"PrintWriter out = new PrintWriter(System.out, true);",
"out",
"new PrintWriter(System.out, true)",
"String str = in.nextLine();",
"str",
"in.nextLine()",
"in.nextLine",
"in",
"int sum = 0;",
"sum",
"0",
"for(int i=0;i<str.length();i++){\n\t\t\tsum += str.charAt(i) - '0';\n\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\tsum += str.charAt(i) - '0';\n\t\t}",
"{\n\t\t\tsum += str.charAt(i) - '0';\n\t\t}",
"sum += str.charAt(i) - '0'",
"sum",
"str.charAt(i) - '0'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'0'",
"if(sum%9 == 0)\n\t\t\tout.println(\"Yes\");\n\t\telse\n\t\t\tout.println(\"No\");",
"sum%9 == 0",
"sum%9",
"sum",
"9",
"0",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"String[]args",
"args"
]
| import java.util.*;
import java.io.*;
class Main{
public static void main(String[]args){
Scanner in=new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out, true);
String str = in.nextLine();
int sum = 0;
for(int i=0;i<str.length();i++){
sum += str.charAt(i) - '0';
}
if(sum%9 == 0)
out.println("Yes");
else
out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
4,
18,
18,
13,
13,
8,
2,
2,
13,
17,
17,
17,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
49,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner input = new Scanner(System.in);\n\t\tString number = input.next();\n\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < number.length(); i++){\n\t\t\tsum += Character.getNumericValue(number.charAt(i));\n\t\t}\n\t\tSystem.out.println(sum % 9 == 0 ? \"Yes\" : \"No\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner input = new Scanner(System.in);\n\t\tString number = input.next();\n\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < number.length(); i++){\n\t\t\tsum += Character.getNumericValue(number.charAt(i));\n\t\t}\n\t\tSystem.out.println(sum % 9 == 0 ? \"Yes\" : \"No\");\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner input = new Scanner(System.in);\n\t\tString number = input.next();\n\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < number.length(); i++){\n\t\t\tsum += Character.getNumericValue(number.charAt(i));\n\t\t}\n\t\tSystem.out.println(sum % 9 == 0 ? \"Yes\" : \"No\");\n\t}",
"main",
"{\n\t\tScanner input = new Scanner(System.in);\n\t\tString number = input.next();\n\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < number.length(); i++){\n\t\t\tsum += Character.getNumericValue(number.charAt(i));\n\t\t}\n\t\tSystem.out.println(sum % 9 == 0 ? \"Yes\" : \"No\");\n\t}",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"String number = input.next();",
"number",
"input.next()",
"input.next",
"input",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < number.length(); i++){\n\t\t\tsum += Character.getNumericValue(number.charAt(i));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < number.length()",
"i",
"number.length()",
"number.length",
"number",
"i++",
"i++",
"i",
"{\n\t\t\tsum += Character.getNumericValue(number.charAt(i));\n\t\t}",
"{\n\t\t\tsum += Character.getNumericValue(number.charAt(i));\n\t\t}",
"sum += Character.getNumericValue(number.charAt(i))",
"sum",
"Character.getNumericValue(number.charAt(i))",
"Character.getNumericValue",
"Character",
"number.charAt(i)",
"number.charAt",
"number",
"i",
"System.out.println(sum % 9 == 0 ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"sum % 9 == 0 ? \"Yes\" : \"No\"",
"sum % 9 == 0",
"sum % 9",
"sum",
"9",
"0",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner input = new Scanner(System.in);\n\t\tString number = input.next();\n\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < number.length(); i++){\n\t\t\tsum += Character.getNumericValue(number.charAt(i));\n\t\t}\n\t\tSystem.out.println(sum % 9 == 0 ? \"Yes\" : \"No\");\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner input = new Scanner(System.in);\n\t\tString number = input.next();\n\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < number.length(); i++){\n\t\t\tsum += Character.getNumericValue(number.charAt(i));\n\t\t}\n\t\tSystem.out.println(sum % 9 == 0 ? \"Yes\" : \"No\");\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
String number = input.next();
long sum = 0;
for (int i = 0; i < number.length(); i++){
sum += Character.getNumericValue(number.charAt(i));
}
System.out.println(sum % 9 == 0 ? "Yes" : "No");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
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,
18,
13,
13,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
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
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
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
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String strn = sc.next();\n sc.close();\n String str[] = strn.split(\"\");\n\n int sum = 0;\n for(int i = 0; i<strn.length(); i++){\n sum += Integer.parseInt(str[i]);\n }\n String ans = \"No\";\n if(sum%9==0){\n ans = \"Yes\";\n }\n System.out.println(ans);\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 strn = sc.next();\n sc.close();\n String str[] = strn.split(\"\");\n\n int sum = 0;\n for(int i = 0; i<strn.length(); i++){\n sum += Integer.parseInt(str[i]);\n }\n String ans = \"No\";\n if(sum%9==0){\n ans = \"Yes\";\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String strn = sc.next();\n sc.close();\n String str[] = strn.split(\"\");\n\n int sum = 0;\n for(int i = 0; i<strn.length(); i++){\n sum += Integer.parseInt(str[i]);\n }\n String ans = \"No\";\n if(sum%9==0){\n ans = \"Yes\";\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String strn = sc.next();\n sc.close();\n String str[] = strn.split(\"\");\n\n int sum = 0;\n for(int i = 0; i<strn.length(); i++){\n sum += Integer.parseInt(str[i]);\n }\n String ans = \"No\";\n if(sum%9==0){\n ans = \"Yes\";\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String strn = sc.next();",
"strn",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"String str[] = strn.split(\"\");",
"str",
"strn.split(\"\")",
"strn.split",
"strn",
"\"\"",
"int sum = 0;",
"sum",
"0",
"for(int i = 0; i<strn.length(); i++){\n sum += Integer.parseInt(str[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<strn.length()",
"i",
"strn.length()",
"strn.length",
"strn",
"i++",
"i++",
"i",
"{\n sum += Integer.parseInt(str[i]);\n }",
"{\n sum += Integer.parseInt(str[i]);\n }",
"sum += Integer.parseInt(str[i])",
"sum",
"Integer.parseInt(str[i])",
"Integer.parseInt",
"Integer",
"str[i]",
"str",
"i",
"String ans = \"No\";",
"ans",
"\"No\"",
"if(sum%9==0){\n ans = \"Yes\";\n }",
"sum%9==0",
"sum%9",
"sum",
"9",
"0",
"{\n ans = \"Yes\";\n }",
"ans = \"Yes\"",
"ans",
"\"Yes\"",
"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 Scanner sc = new Scanner(System.in);\n String strn = sc.next();\n sc.close();\n String str[] = strn.split(\"\");\n\n int sum = 0;\n for(int i = 0; i<strn.length(); i++){\n sum += Integer.parseInt(str[i]);\n }\n String ans = \"No\";\n if(sum%9==0){\n ans = \"Yes\";\n }\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String strn = sc.next();\n sc.close();\n String str[] = strn.split(\"\");\n\n int sum = 0;\n for(int i = 0; i<strn.length(); i++){\n sum += Integer.parseInt(str[i]);\n }\n String ans = \"No\";\n if(sum%9==0){\n ans = \"Yes\";\n }\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String strn = sc.next();
sc.close();
String str[] = strn.split("");
int sum = 0;
for(int i = 0; i<strn.length(); i++){
sum += Integer.parseInt(str[i]);
}
String ans = "No";
if(sum%9==0){
ans = "Yes";
}
System.out.println(ans);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.