node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 162, 5 ], [ 162, 6 ], [ 6, 7 ], [ 6, 8 ], [ 162, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 45, 46 ], [ 14, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 47, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 64, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 64, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 78, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 77, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 77, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 96, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 96, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 116, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 115, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 128, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 115, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 146, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 9, 159 ], [ 159, 160 ], [ 0, 161 ], [ 161, 162 ], [ 161, 163 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile (true) {\n\t\t\tint chuu = sc.nextInt();\n\t\t\tint kima = sc.nextInt();\n\t\t\tint sai = sc.nextInt();\n\t\t\tif (chuu==-1 && kima==-1 && sai==-1) {break;}\n\t\t\t\n\t\t\tif (chuu==-1 || kima==-1) {System.out.println(\"F\");}\n\t\t\telse if (chuu+kima >= 80) {System.out.println(\"A\");}\n\t\t\telse if (chuu+kima >= 65 && chuu+kima <80) {System.out.println(\"B\");}\n\t\t\telse if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile (true) {\n\t\t\tint chuu = sc.nextInt();\n\t\t\tint kima = sc.nextInt();\n\t\t\tint sai = sc.nextInt();\n\t\t\tif (chuu==-1 && kima==-1 && sai==-1) {break;}\n\t\t\t\n\t\t\tif (chuu==-1 || kima==-1) {System.out.println(\"F\");}\n\t\t\telse if (chuu+kima >= 80) {System.out.println(\"A\");}\n\t\t\telse if (chuu+kima >= 65 && chuu+kima <80) {System.out.println(\"B\");}\n\t\t\telse if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}\n\t\t}\n\t}\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n\t\twhile (true) {\n\t\t\tint chuu = sc.nextInt();\n\t\t\tint kima = sc.nextInt();\n\t\t\tint sai = sc.nextInt();\n\t\t\tif (chuu==-1 && kima==-1 && sai==-1) {break;}\n\t\t\t\n\t\t\tif (chuu==-1 || kima==-1) {System.out.println(\"F\");}\n\t\t\telse if (chuu+kima >= 80) {System.out.println(\"A\");}\n\t\t\telse if (chuu+kima >= 65 && chuu+kima <80) {System.out.println(\"B\");}\n\t\t\telse if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}\n\t\t}\n\t}", "main", "{\n\t\twhile (true) {\n\t\t\tint chuu = sc.nextInt();\n\t\t\tint kima = sc.nextInt();\n\t\t\tint sai = sc.nextInt();\n\t\t\tif (chuu==-1 && kima==-1 && sai==-1) {break;}\n\t\t\t\n\t\t\tif (chuu==-1 || kima==-1) {System.out.println(\"F\");}\n\t\t\telse if (chuu+kima >= 80) {System.out.println(\"A\");}\n\t\t\telse if (chuu+kima >= 65 && chuu+kima <80) {System.out.println(\"B\");}\n\t\t\telse if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}\n\t\t}\n\t}", "while (true) {\n\t\t\tint chuu = sc.nextInt();\n\t\t\tint kima = sc.nextInt();\n\t\t\tint sai = sc.nextInt();\n\t\t\tif (chuu==-1 && kima==-1 && sai==-1) {break;}\n\t\t\t\n\t\t\tif (chuu==-1 || kima==-1) {System.out.println(\"F\");}\n\t\t\telse if (chuu+kima >= 80) {System.out.println(\"A\");}\n\t\t\telse if (chuu+kima >= 65 && chuu+kima <80) {System.out.println(\"B\");}\n\t\t\telse if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}\n\t\t}", "true", "{\n\t\t\tint chuu = sc.nextInt();\n\t\t\tint kima = sc.nextInt();\n\t\t\tint sai = sc.nextInt();\n\t\t\tif (chuu==-1 && kima==-1 && sai==-1) {break;}\n\t\t\t\n\t\t\tif (chuu==-1 || kima==-1) {System.out.println(\"F\");}\n\t\t\telse if (chuu+kima >= 80) {System.out.println(\"A\");}\n\t\t\telse if (chuu+kima >= 65 && chuu+kima <80) {System.out.println(\"B\");}\n\t\t\telse if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}\n\t\t}", "int chuu = sc.nextInt();", "chuu", "sc.nextInt()", "sc.nextInt", "sc", "int kima = sc.nextInt();", "kima", "sc.nextInt()", "sc.nextInt", "sc", "int sai = sc.nextInt();", "sai", "sc.nextInt()", "sc.nextInt", "sc", "if (chuu==-1 && kima==-1 && sai==-1) {break;}", "chuu==-1 && kima==-1 && sai==-1", "chuu==-1 && kima==-1 && sai==-1", "chuu==-1", "chuu", "-1", "1", "kima==-1", "kima", "-1", "1", "sai==-1", "sai", "-1", "1", "{break;}", "break;", "if (chuu==-1 || kima==-1) {System.out.println(\"F\");}\n\t\t\telse if (chuu+kima >= 80) {System.out.println(\"A\");}\n\t\t\telse if (chuu+kima >= 65 && chuu+kima <80) {System.out.println(\"B\");}\n\t\t\telse if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}", "chuu==-1 || kima==-1", "chuu==-1", "chuu", "-1", "1", "kima==-1", "kima", "-1", "1", "{System.out.println(\"F\");}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (chuu+kima >= 80) {System.out.println(\"A\");}\n\t\t\telse if (chuu+kima >= 65 && chuu+kima <80) {System.out.println(\"B\");}\n\t\t\telse if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}", "chuu+kima >= 80", "chuu+kima", "chuu", "kima", "80", "{System.out.println(\"A\");}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (chuu+kima >= 65 && chuu+kima <80) {System.out.println(\"B\");}\n\t\t\telse if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}", "chuu+kima >= 65 && chuu+kima <80", "chuu+kima >= 65", "chuu+kima", "chuu", "kima", "65", "chuu+kima <80", "chuu+kima", "chuu", "kima", "80", "{System.out.println(\"B\");}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}", "chuu+kima >=50 && chuu+kima < 65", "chuu+kima >=50", "chuu+kima", "chuu", "kima", "50", "chuu+kima < 65", "chuu+kima", "chuu", "kima", "65", "{System.out.println(\"C\");}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}", "chuu+kima >=30 && chuu+kima <50", "chuu+kima >=30", "chuu+kima", "chuu", "kima", "30", "chuu+kima <50", "chuu+kima", "chuu", "kima", "50", "{\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}", "if (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}", "sai >= 50", "sai", "50", "{System.out.println(\"C\");}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{System.out.println(\"D\");}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if (chuu+kima < 30) {System.out.println(\"F\");}", "chuu+kima < 30", "chuu+kima", "chuu", "kima", "30", "{System.out.println(\"F\");}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile (true) {\n\t\t\tint chuu = sc.nextInt();\n\t\t\tint kima = sc.nextInt();\n\t\t\tint sai = sc.nextInt();\n\t\t\tif (chuu==-1 && kima==-1 && sai==-1) {break;}\n\t\t\t\n\t\t\tif (chuu==-1 || kima==-1) {System.out.println(\"F\");}\n\t\t\telse if (chuu+kima >= 80) {System.out.println(\"A\");}\n\t\t\telse if (chuu+kima >= 65 && chuu+kima <80) {System.out.println(\"B\");}\n\t\t\telse if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}\n\t\t}\n\t}\n}", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile (true) {\n\t\t\tint chuu = sc.nextInt();\n\t\t\tint kima = sc.nextInt();\n\t\t\tint sai = sc.nextInt();\n\t\t\tif (chuu==-1 && kima==-1 && sai==-1) {break;}\n\t\t\t\n\t\t\tif (chuu==-1 || kima==-1) {System.out.println(\"F\");}\n\t\t\telse if (chuu+kima >= 80) {System.out.println(\"A\");}\n\t\t\telse if (chuu+kima >= 65 && chuu+kima <80) {System.out.println(\"B\");}\n\t\t\telse if (chuu+kima >=50 && chuu+kima < 65) {System.out.println(\"C\");}\n\t\t\telse if (chuu+kima >=30 && chuu+kima <50) {\n\t\t\t\tif (sai >= 50) {System.out.println(\"C\");}\n\t\t\t\telse {System.out.println(\"D\");}\n\t\t\t}\n\t\t\telse if (chuu+kima < 30) {System.out.println(\"F\");}\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { while (true) { int chuu = sc.nextInt(); int kima = sc.nextInt(); int sai = sc.nextInt(); if (chuu==-1 && kima==-1 && sai==-1) {break;} if (chuu==-1 || kima==-1) {System.out.println("F");} else if (chuu+kima >= 80) {System.out.println("A");} else if (chuu+kima >= 65 && chuu+kima <80) {System.out.println("B");} else if (chuu+kima >=50 && chuu+kima < 65) {System.out.println("C");} else if (chuu+kima >=30 && chuu+kima <50) { if (sai >= 50) {System.out.println("C");} else {System.out.println("D");} } else if (chuu+kima < 30) {System.out.println("F");} } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 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 ], [ 167, 5 ], [ 167, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 23, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 23, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 23, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 23, 59 ], [ 59, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 61, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 59, 74 ], [ 74, 75 ], [ 23, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 76, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 76, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 93, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 93, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 106, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 119, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 119, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 132, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 139, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 132, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 158, 163 ], [ 6, 164 ], [ 164, 165 ], [ 0, 166 ], [ 166, 167 ], [ 166, 168 ] ]
[ "import java.io.*;\npublic class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tint m = 0,f=0,r=0;\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] i=str.split(\" \");\n\t\t\t\tm=Integer.parseInt(i[0]);\n\t\t\t\tf=Integer.parseInt(i[1]);\n\t\t\t\tr=Integer.parseInt(i[2]);\n\t\t\t\tif(m==(-1)&&f==(-1)&&r==(-1)){break;}\n\t\t\t\tif(m==(-1)||f==(-1)){System.out.println(\"F\");}\n\t\t\t\telse if(m+f>=80){System.out.println(\"A\");}\n\t\t\t\telse if(m+f>=65){System.out.println(\"B\");}\n\t\t\t\telse if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tint m = 0,f=0,r=0;\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] i=str.split(\" \");\n\t\t\t\tm=Integer.parseInt(i[0]);\n\t\t\t\tf=Integer.parseInt(i[1]);\n\t\t\t\tr=Integer.parseInt(i[2]);\n\t\t\t\tif(m==(-1)&&f==(-1)&&r==(-1)){break;}\n\t\t\t\tif(m==(-1)||f==(-1)){System.out.println(\"F\");}\n\t\t\t\telse if(m+f>=80){System.out.println(\"A\");}\n\t\t\t\telse if(m+f>=65){System.out.println(\"B\");}\n\t\t\t\telse if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args)throws IOException {\n\t\tint m = 0,f=0,r=0;\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] i=str.split(\" \");\n\t\t\t\tm=Integer.parseInt(i[0]);\n\t\t\t\tf=Integer.parseInt(i[1]);\n\t\t\t\tr=Integer.parseInt(i[2]);\n\t\t\t\tif(m==(-1)&&f==(-1)&&r==(-1)){break;}\n\t\t\t\tif(m==(-1)||f==(-1)){System.out.println(\"F\");}\n\t\t\t\telse if(m+f>=80){System.out.println(\"A\");}\n\t\t\t\telse if(m+f>=65){System.out.println(\"B\");}\n\t\t\t\telse if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}\n\t\t}\n\t}", "main", "{\n\t\tint m = 0,f=0,r=0;\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] i=str.split(\" \");\n\t\t\t\tm=Integer.parseInt(i[0]);\n\t\t\t\tf=Integer.parseInt(i[1]);\n\t\t\t\tr=Integer.parseInt(i[2]);\n\t\t\t\tif(m==(-1)&&f==(-1)&&r==(-1)){break;}\n\t\t\t\tif(m==(-1)||f==(-1)){System.out.println(\"F\");}\n\t\t\t\telse if(m+f>=80){System.out.println(\"A\");}\n\t\t\t\telse if(m+f>=65){System.out.println(\"B\");}\n\t\t\t\telse if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}\n\t\t}\n\t}", "int m = 0", "m", "0", "f=0", "f", "0", "r=0;", "r", "0", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] i=str.split(\" \");\n\t\t\t\tm=Integer.parseInt(i[0]);\n\t\t\t\tf=Integer.parseInt(i[1]);\n\t\t\t\tr=Integer.parseInt(i[2]);\n\t\t\t\tif(m==(-1)&&f==(-1)&&r==(-1)){break;}\n\t\t\t\tif(m==(-1)||f==(-1)){System.out.println(\"F\");}\n\t\t\t\telse if(m+f>=80){System.out.println(\"A\");}\n\t\t\t\telse if(m+f>=65){System.out.println(\"B\");}\n\t\t\t\telse if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}\n\t\t}", "true", "{\n\t\t\tString str = br.readLine();\n\t\t\tString[] i=str.split(\" \");\n\t\t\t\tm=Integer.parseInt(i[0]);\n\t\t\t\tf=Integer.parseInt(i[1]);\n\t\t\t\tr=Integer.parseInt(i[2]);\n\t\t\t\tif(m==(-1)&&f==(-1)&&r==(-1)){break;}\n\t\t\t\tif(m==(-1)||f==(-1)){System.out.println(\"F\");}\n\t\t\t\telse if(m+f>=80){System.out.println(\"A\");}\n\t\t\t\telse if(m+f>=65){System.out.println(\"B\");}\n\t\t\t\telse if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}\n\t\t}", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String[] i=str.split(\" \");", "i", "str.split(\" \")", "str.split", "str", "\" \"", "m=Integer.parseInt(i[0])", "m", "Integer.parseInt(i[0])", "Integer.parseInt", "Integer", "i[0]", "i", "0", "f=Integer.parseInt(i[1])", "f", "Integer.parseInt(i[1])", "Integer.parseInt", "Integer", "i[1]", "i", "1", "r=Integer.parseInt(i[2])", "r", "Integer.parseInt(i[2])", "Integer.parseInt", "Integer", "i[2]", "i", "2", "if(m==(-1)&&f==(-1)&&r==(-1)){break;}", "m==(-1)&&f==(-1)&&r==(-1)", "m==(-1)&&f==(-1)&&r==(-1)", "m==(-1)", "m", "(-1)", "1", "f==(-1)", "f", "(-1)", "1", "r==(-1)", "r", "(-1)", "1", "{break;}", "break;", "if(m==(-1)||f==(-1)){System.out.println(\"F\");}\n\t\t\t\telse if(m+f>=80){System.out.println(\"A\");}\n\t\t\t\telse if(m+f>=65){System.out.println(\"B\");}\n\t\t\t\telse if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}", "m==(-1)||f==(-1)", "m==(-1)", "m", "(-1)", "1", "f==(-1)", "f", "(-1)", "1", "{System.out.println(\"F\");}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(m+f>=80){System.out.println(\"A\");}\n\t\t\t\telse if(m+f>=65){System.out.println(\"B\");}\n\t\t\t\telse if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}", "m+f>=80", "m+f", "m", "f", "80", "{System.out.println(\"A\");}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(m+f>=65){System.out.println(\"B\");}\n\t\t\t\telse if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}", "m+f>=65", "m+f", "m", "f", "65", "{System.out.println(\"B\");}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}", "m+f>=50", "m+f", "m", "f", "50", "{System.out.println(\"C\");}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}", "m+f>=30", "m+f", "m", "f", "30", "{if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}", "if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}", "r>=50", "r", "50", "{System.out.println(\"C\");}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{System.out.println(\"D\");}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{System.out.println(\"F\");}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tint m = 0,f=0,r=0;\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] i=str.split(\" \");\n\t\t\t\tm=Integer.parseInt(i[0]);\n\t\t\t\tf=Integer.parseInt(i[1]);\n\t\t\t\tr=Integer.parseInt(i[2]);\n\t\t\t\tif(m==(-1)&&f==(-1)&&r==(-1)){break;}\n\t\t\t\tif(m==(-1)||f==(-1)){System.out.println(\"F\");}\n\t\t\t\telse if(m+f>=80){System.out.println(\"A\");}\n\t\t\t\telse if(m+f>=65){System.out.println(\"B\");}\n\t\t\t\telse if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tint m = 0,f=0,r=0;\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] i=str.split(\" \");\n\t\t\t\tm=Integer.parseInt(i[0]);\n\t\t\t\tf=Integer.parseInt(i[1]);\n\t\t\t\tr=Integer.parseInt(i[2]);\n\t\t\t\tif(m==(-1)&&f==(-1)&&r==(-1)){break;}\n\t\t\t\tif(m==(-1)||f==(-1)){System.out.println(\"F\");}\n\t\t\t\telse if(m+f>=80){System.out.println(\"A\");}\n\t\t\t\telse if(m+f>=65){System.out.println(\"B\");}\n\t\t\t\telse if(m+f>=50){System.out.println(\"C\");}\n\t\t\t\telse if(m+f>=30){if(r>=50){System.out.println(\"C\");}\n\t\t\t\t\t\t\t\t else{System.out.println(\"D\");}}\n\t\t\t\telse {System.out.println(\"F\");}\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args)throws IOException { int m = 0,f=0,r=0; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); while(true){ String str = br.readLine(); String[] i=str.split(" "); m=Integer.parseInt(i[0]); f=Integer.parseInt(i[1]); r=Integer.parseInt(i[2]); if(m==(-1)&&f==(-1)&&r==(-1)){break;} if(m==(-1)||f==(-1)){System.out.println("F");} else if(m+f>=80){System.out.println("A");} else if(m+f>=65){System.out.println("B");} else if(m+f>=50){System.out.println("C");} else if(m+f>=30){if(r>=50){System.out.println("C");} else{System.out.println("D");}} else {System.out.println("F");} } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 23, 39 ], [ 39, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 39, 54 ], [ 54, 55 ], [ 39, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 56, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 70, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 80, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 80, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 96, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 96, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 112, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 125, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 112, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 137, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 23, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 6, 153 ], [ 153, 154 ] ]
[ "import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int m,f,r;\n String rate=\"\";\n while(true){\n m=sc.nextInt();\n f=sc.nextInt();\n r=sc.nextInt();\n if(m==-1 && f==-1 && r==-1){\n break;\n }else if(m==-1 || f==-1){\n rate=\"F\";\n }else if(m+f>=80){\n rate=\"A\";\n }else if(m+f>=65 && m+f<80){\n rate=\"B\";\n }else if(m+f>=50 && m+f<65){\n rate=\"C\";\n }else if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }\n System.out.println(rate);\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 int m,f,r;\n String rate=\"\";\n while(true){\n m=sc.nextInt();\n f=sc.nextInt();\n r=sc.nextInt();\n if(m==-1 && f==-1 && r==-1){\n break;\n }else if(m==-1 || f==-1){\n rate=\"F\";\n }else if(m+f>=80){\n rate=\"A\";\n }else if(m+f>=65 && m+f<80){\n rate=\"B\";\n }else if(m+f>=50 && m+f<65){\n rate=\"C\";\n }else if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }\n System.out.println(rate);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int m,f,r;\n String rate=\"\";\n while(true){\n m=sc.nextInt();\n f=sc.nextInt();\n r=sc.nextInt();\n if(m==-1 && f==-1 && r==-1){\n break;\n }else if(m==-1 || f==-1){\n rate=\"F\";\n }else if(m+f>=80){\n rate=\"A\";\n }else if(m+f>=65 && m+f<80){\n rate=\"B\";\n }else if(m+f>=50 && m+f<65){\n rate=\"C\";\n }else if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }\n System.out.println(rate);\n }\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n int m,f,r;\n String rate=\"\";\n while(true){\n m=sc.nextInt();\n f=sc.nextInt();\n r=sc.nextInt();\n if(m==-1 && f==-1 && r==-1){\n break;\n }else if(m==-1 || f==-1){\n rate=\"F\";\n }else if(m+f>=80){\n rate=\"A\";\n }else if(m+f>=65 && m+f<80){\n rate=\"B\";\n }else if(m+f>=50 && m+f<65){\n rate=\"C\";\n }else if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }\n System.out.println(rate);\n }\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int m", "m", "f", "f", "r;", "r", "String rate=\"\";", "rate", "\"\"", "while(true){\n m=sc.nextInt();\n f=sc.nextInt();\n r=sc.nextInt();\n if(m==-1 && f==-1 && r==-1){\n break;\n }else if(m==-1 || f==-1){\n rate=\"F\";\n }else if(m+f>=80){\n rate=\"A\";\n }else if(m+f>=65 && m+f<80){\n rate=\"B\";\n }else if(m+f>=50 && m+f<65){\n rate=\"C\";\n }else if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }\n System.out.println(rate);\n }", "true", "{\n m=sc.nextInt();\n f=sc.nextInt();\n r=sc.nextInt();\n if(m==-1 && f==-1 && r==-1){\n break;\n }else if(m==-1 || f==-1){\n rate=\"F\";\n }else if(m+f>=80){\n rate=\"A\";\n }else if(m+f>=65 && m+f<80){\n rate=\"B\";\n }else if(m+f>=50 && m+f<65){\n rate=\"C\";\n }else if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }\n System.out.println(rate);\n }", "m=sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f=sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r=sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "if(m==-1 && f==-1 && r==-1){\n break;\n }else if(m==-1 || f==-1){\n rate=\"F\";\n }else if(m+f>=80){\n rate=\"A\";\n }else if(m+f>=65 && m+f<80){\n rate=\"B\";\n }else if(m+f>=50 && m+f<65){\n rate=\"C\";\n }else if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }", "m==-1 && f==-1 && r==-1", "m==-1 && f==-1 && r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "{\n break;\n }", "break;", "if(m==-1 || f==-1){\n rate=\"F\";\n }else if(m+f>=80){\n rate=\"A\";\n }else if(m+f>=65 && m+f<80){\n rate=\"B\";\n }else if(m+f>=50 && m+f<65){\n rate=\"C\";\n }else if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }", "m==-1 || f==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "{\n rate=\"F\";\n }", "rate=\"F\"", "rate", "\"F\"", "if(m+f>=80){\n rate=\"A\";\n }else if(m+f>=65 && m+f<80){\n rate=\"B\";\n }else if(m+f>=50 && m+f<65){\n rate=\"C\";\n }else if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }", "m+f>=80", "m+f", "m", "f", "80", "{\n rate=\"A\";\n }", "rate=\"A\"", "rate", "\"A\"", "if(m+f>=65 && m+f<80){\n rate=\"B\";\n }else if(m+f>=50 && m+f<65){\n rate=\"C\";\n }else if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }", "m+f>=65 && m+f<80", "m+f>=65", "m+f", "m", "f", "65", "m+f<80", "m+f", "m", "f", "80", "{\n rate=\"B\";\n }", "rate=\"B\"", "rate", "\"B\"", "if(m+f>=50 && m+f<65){\n rate=\"C\";\n }else if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }", "m+f>=50 && m+f<65", "m+f>=50", "m+f", "m", "f", "50", "m+f<65", "m+f", "m", "f", "65", "{\n rate=\"C\";\n }", "rate=\"C\"", "rate", "\"C\"", "if(m+f>=30 && m+f<50){\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }else if(m+f<30){\n rate=\"F\";\n }", "m+f>=30 && m+f<50", "m+f>=30", "m+f", "m", "f", "30", "m+f<50", "m+f", "m", "f", "50", "{\n if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }\n }", "if(r>=50){\n rate=\"C\";\n }else{\n rate=\"D\";\n }", "r>=50", "r", "50", "{\n rate=\"C\";\n }", "rate=\"C\"", "rate", "\"C\"", "{\n rate=\"D\";\n }", "rate=\"D\"", "rate", "\"D\"", "if(m+f<30){\n rate=\"F\";\n }", "m+f<30", "m+f", "m", "f", "30", "{\n rate=\"F\";\n }", "rate=\"F\"", "rate", "\"F\"", "System.out.println(rate)", "System.out.println", "System.out", "System", "System.out", "rate", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int m,f,r; String rate=""; while(true){ m=sc.nextInt(); f=sc.nextInt(); r=sc.nextInt(); if(m==-1 && f==-1 && r==-1){ break; }else if(m==-1 || f==-1){ rate="F"; }else if(m+f>=80){ rate="A"; }else if(m+f>=65 && m+f<80){ rate="B"; }else if(m+f>=50 && m+f<65){ rate="C"; }else if(m+f>=30 && m+f<50){ if(r>=50){ rate="C"; }else{ rate="D"; } }else if(m+f<30){ rate="F"; } System.out.println(rate); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 13, 14, 4, 18, 13, 17, 30, 3, 28, 13, 13, 30, 30, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 41, 13, 20, 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, 14, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 14, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 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 ], [ 240, 11 ], [ 240, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 14, 40 ], [ 40, 41 ], [ 40, 42 ], [ 40, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 50, 51 ], [ 44, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 44, 58 ], [ 58, 59 ], [ 58, 60 ], [ 44, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 62, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 44, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 88, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 87, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 87, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 108, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 108, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 132, 134 ], [ 127, 135 ], [ 126, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 141, 143 ], [ 136, 144 ], [ 125, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 125, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 159, 161 ], [ 154, 162 ], [ 153, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 168, 169 ], [ 168, 170 ], [ 163, 171 ], [ 152, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 173, 178 ], [ 152, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 186, 187 ], [ 186, 188 ], [ 181, 189 ], [ 180, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 191, 195 ], [ 195, 196 ], [ 195, 197 ], [ 190, 198 ], [ 179, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 201, 205 ], [ 200, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 207, 212 ], [ 200, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 214, 219 ], [ 179, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 222, 226 ], [ 226, 227 ], [ 226, 228 ], [ 221, 229 ], [ 220, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 231, 236 ], [ 12, 237 ], [ 237, 238 ], [ 0, 239 ], [ 239, 240 ], [ 239, 241 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> k = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tk.add(line);\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (String string : k) {\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] sei = string.split(\" \");\n\t\t\tint[] v = new int[3];\n\t\t\tfor (int i = 0; i < sei.length; i++) {\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}\n\t\t\tif (v[0] == -1 || v[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (v[0] + v[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> k = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tk.add(line);\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (String string : k) {\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] sei = string.split(\" \");\n\t\t\tint[] v = new int[3];\n\t\t\tfor (int i = 0; i < sei.length; i++) {\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}\n\t\t\tif (v[0] == -1 || v[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (v[0] + v[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> k = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tk.add(line);\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (String string : k) {\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] sei = string.split(\" \");\n\t\t\tint[] v = new int[3];\n\t\t\tfor (int i = 0; i < sei.length; i++) {\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}\n\t\t\tif (v[0] == -1 || v[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (v[0] + v[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> k = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tk.add(line);\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (String string : k) {\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] sei = string.split(\" \");\n\t\t\tint[] v = new int[3];\n\t\t\tfor (int i = 0; i < sei.length; i++) {\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}\n\t\t\tif (v[0] == -1 || v[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (v[0] + v[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "List<String> k = new ArrayList<String>();", "k", "new ArrayList<String>()", "while (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tk.add(line);\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString line = sc.nextLine();\n\t\t\tk.add(line);\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "k.add(line)", "k.add", "k", "line", "if (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}", "line.equals(\"-1 -1 -1\")", "line.equals", "line", "\"-1 -1 -1\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (String string : k) {\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] sei = string.split(\" \");\n\t\t\tint[] v = new int[3];\n\t\t\tfor (int i = 0; i < sei.length; i++) {\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}\n\t\t\tif (v[0] == -1 || v[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (v[0] + v[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}", "String string", "k", "{\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] sei = string.split(\" \");\n\t\t\tint[] v = new int[3];\n\t\t\tfor (int i = 0; i < sei.length; i++) {\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}\n\t\t\tif (v[0] == -1 || v[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (v[0] + v[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}", "{\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] sei = string.split(\" \");\n\t\t\tint[] v = new int[3];\n\t\t\tfor (int i = 0; i < sei.length; i++) {\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}\n\t\t\tif (v[0] == -1 || v[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (v[0] + v[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}", "if (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}", "string.equals(\"-1 -1 -1\")", "string.equals", "string", "\"-1 -1 -1\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] sei = string.split(\" \");", "sei", "string.split(\" \")", "string.split", "string", "\" \"", "int[] v = new int[3];", "v", "new int[3]", "3", "for (int i = 0; i < sei.length; i++) {\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < sei.length", "i", "sei.length", "sei", "sei.length", "i++", "i++", "i", "{\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}", "{\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}", "v[i] = Integer.parseInt(sei[i])", "v[i]", "v", "i", "Integer.parseInt(sei[i])", "Integer.parseInt", "Integer", "sei[i]", "sei", "i", "if (v[0] == -1 || v[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (v[0] + v[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "v[0] == -1 || v[1] == -1", "v[0] == -1", "v[0]", "v", "0", "-1", "1", "v[1] == -1", "v[1]", "v", "1", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (v[0] + v[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "v[0] + v[1] >= 80", "v[0] + v[1]", "v[0]", "v", "0", "v[1]", "v", "1", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "v[0] + v[1] < 80 && v[0] + v[1] >= 65", "v[0] + v[1] < 80", "v[0] + v[1]", "v[0]", "v", "0", "v[1]", "v", "1", "80", "v[0] + v[1] >= 65", "v[0] + v[1]", "v[0]", "v", "0", "v[1]", "v", "1", "65", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "v[0] + v[1] < 65 && v[0] + v[1] >= 50", "v[0] + v[1] < 65", "v[0] + v[1]", "v[0]", "v", "0", "v[1]", "v", "1", "65", "v[0] + v[1] >= 50", "v[0] + v[1]", "v[0]", "v", "0", "v[1]", "v", "1", "50", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "v[0] + v[1] < 50 && v[0] + v[1] >= 30", "v[0] + v[1] < 50", "v[0] + v[1]", "v[0]", "v", "0", "v[1]", "v", "1", "50", "v[0] + v[1] >= 30", "v[0] + v[1]", "v[0]", "v", "0", "v[1]", "v", "1", "30", "{\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}", "if (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "v[2] >= 50", "v[2]", "v", "2", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "v[0] + v[1] < 30", "v[0] + v[1]", "v[0]", "v", "0", "v[1]", "v", "1", "30", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] arges", "arges", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> k = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tk.add(line);\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (String string : k) {\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] sei = string.split(\" \");\n\t\t\tint[] v = new int[3];\n\t\t\tfor (int i = 0; i < sei.length; i++) {\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}\n\t\t\tif (v[0] == -1 || v[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (v[0] + v[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> k = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tk.add(line);\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (String string : k) {\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] sei = string.split(\" \");\n\t\t\tint[] v = new int[3];\n\t\t\tfor (int i = 0; i < sei.length; i++) {\n\t\t\t\tv[i] = Integer.parseInt(sei[i]);\n\t\t\t}\n\t\t\tif (v[0] == -1 || v[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (v[0] + v[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) {\n\t\t\t\tif (v[2] >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else if (v[0] + v[1] < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] arges) { Scanner sc = new Scanner(System.in); List<String> k = new ArrayList<String>(); while (true) { String line = sc.nextLine(); k.add(line); if (line.equals("-1 -1 -1")) { break; } } for (String string : k) { if (string.equals("-1 -1 -1")) { break; } String[] sei = string.split(" "); int[] v = new int[3]; for (int i = 0; i < sei.length; i++) { v[i] = Integer.parseInt(sei[i]); } if (v[0] == -1 || v[1] == -1) { System.out.println("F"); } else if (v[0] + v[1] >= 80) { System.out.println("A"); } else if (v[0] + v[1] < 80 && v[0] + v[1] >= 65) { System.out.println("B"); } else if (v[0] + v[1] < 65 && v[0] + v[1] >= 50) { System.out.println("C"); } else if (v[0] + v[1] < 50 && v[0] + v[1] >= 30) { if (v[2] >= 50) { System.out.println("C"); } else { System.out.println("D"); } } else if (v[0] + v[1] < 30) { System.out.println("F"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 11, 1, 0, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 14, 2, 2, 2, 18, 13, 13, 40, 17, 2, 18, 13, 13, 40, 17, 2, 18, 13, 13, 40, 17, 3, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 18, 13, 13, 18, 13, 13, 14, 2, 2, 18, 13, 13, 40, 17, 2, 18, 13, 13, 40, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 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 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 30, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 39, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 39, 61 ], [ 61, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 63, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 63, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 61, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 83, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 95, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 106, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 105, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 105, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 125, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 135, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 145, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 155, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 165, 170 ], [ 155, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 171, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 181, 186 ], [ 6, 187 ], [ 187, 188 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tint m[]=new int[51],f[]=new int[51],r[]=new int[51],i,j,s;\n\t\tfor(i=0;;i++){\n\t\t\tm[i]=stdIn.nextInt();\n\t\t\tf[i]=stdIn.nextInt();\n\t\t\tr[i]=stdIn.nextInt();\n\t\t\tif(m[i]==-1&&f[i]==-1&&r[i]==-1)break;\n\t\t}\n\t\t\n\t\tfor(j=0;j<i;j++){\n\t\t\ts=m[j]+f[j];\n\t\t\tif(m[j]==-1||f[j]==-1)System.out.println(\"F\");\n\t\t\telse if(s>=80)System.out.println(\"A\");\n\t\t\telse if(s>=65)System.out.println(\"B\");\n\t\t\telse if(s>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tint m[]=new int[51],f[]=new int[51],r[]=new int[51],i,j,s;\n\t\tfor(i=0;;i++){\n\t\t\tm[i]=stdIn.nextInt();\n\t\t\tf[i]=stdIn.nextInt();\n\t\t\tr[i]=stdIn.nextInt();\n\t\t\tif(m[i]==-1&&f[i]==-1&&r[i]==-1)break;\n\t\t}\n\t\t\n\t\tfor(j=0;j<i;j++){\n\t\t\ts=m[j]+f[j];\n\t\t\tif(m[j]==-1||f[j]==-1)System.out.println(\"F\");\n\t\t\telse if(s>=80)System.out.println(\"A\");\n\t\t\telse if(s>=65)System.out.println(\"B\");\n\t\t\telse if(s>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tint m[]=new int[51],f[]=new int[51],r[]=new int[51],i,j,s;\n\t\tfor(i=0;;i++){\n\t\t\tm[i]=stdIn.nextInt();\n\t\t\tf[i]=stdIn.nextInt();\n\t\t\tr[i]=stdIn.nextInt();\n\t\t\tif(m[i]==-1&&f[i]==-1&&r[i]==-1)break;\n\t\t}\n\t\t\n\t\tfor(j=0;j<i;j++){\n\t\t\ts=m[j]+f[j];\n\t\t\tif(m[j]==-1||f[j]==-1)System.out.println(\"F\");\n\t\t\telse if(s>=80)System.out.println(\"A\");\n\t\t\telse if(s>=65)System.out.println(\"B\");\n\t\t\telse if(s>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");\n\t\t}\n\t}", "main", "{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tint m[]=new int[51],f[]=new int[51],r[]=new int[51],i,j,s;\n\t\tfor(i=0;;i++){\n\t\t\tm[i]=stdIn.nextInt();\n\t\t\tf[i]=stdIn.nextInt();\n\t\t\tr[i]=stdIn.nextInt();\n\t\t\tif(m[i]==-1&&f[i]==-1&&r[i]==-1)break;\n\t\t}\n\t\t\n\t\tfor(j=0;j<i;j++){\n\t\t\ts=m[j]+f[j];\n\t\t\tif(m[j]==-1||f[j]==-1)System.out.println(\"F\");\n\t\t\telse if(s>=80)System.out.println(\"A\");\n\t\t\telse if(s>=65)System.out.println(\"B\");\n\t\t\telse if(s>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");\n\t\t}\n\t}", "Scanner stdIn=new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "int m[]=new int[51]", "m", "new int[51]", "51", "f[]=new int[51]", "f", "new int[51]", "51", "r[]=new int[51]", "r", "new int[51]", "51", "i", "i", "j", "j", "s;", "s", "for(i=0;;i++){\n\t\t\tm[i]=stdIn.nextInt();\n\t\t\tf[i]=stdIn.nextInt();\n\t\t\tr[i]=stdIn.nextInt();\n\t\t\tif(m[i]==-1&&f[i]==-1&&r[i]==-1)break;\n\t\t}", "i=0;", "i=0", "i", "0", "i++", "i++", "i", "{\n\t\t\tm[i]=stdIn.nextInt();\n\t\t\tf[i]=stdIn.nextInt();\n\t\t\tr[i]=stdIn.nextInt();\n\t\t\tif(m[i]==-1&&f[i]==-1&&r[i]==-1)break;\n\t\t}", "{\n\t\t\tm[i]=stdIn.nextInt();\n\t\t\tf[i]=stdIn.nextInt();\n\t\t\tr[i]=stdIn.nextInt();\n\t\t\tif(m[i]==-1&&f[i]==-1&&r[i]==-1)break;\n\t\t}", "m[i]=stdIn.nextInt()", "m[i]", "m", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "f[i]=stdIn.nextInt()", "f[i]", "f", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "r[i]=stdIn.nextInt()", "r[i]", "r", "i", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "if(m[i]==-1&&f[i]==-1&&r[i]==-1)break;", "m[i]==-1&&f[i]==-1&&r[i]==-1", "m[i]==-1&&f[i]==-1&&r[i]==-1", "m[i]==-1", "m[i]", "m", "i", "-1", "1", "f[i]==-1", "f[i]", "f", "i", "-1", "1", "r[i]==-1", "r[i]", "r", "i", "-1", "1", "break;", "for(j=0;j<i;j++){\n\t\t\ts=m[j]+f[j];\n\t\t\tif(m[j]==-1||f[j]==-1)System.out.println(\"F\");\n\t\t\telse if(s>=80)System.out.println(\"A\");\n\t\t\telse if(s>=65)System.out.println(\"B\");\n\t\t\telse if(s>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");\n\t\t}", "j=0;", "j=0", "j", "0", "j<i", "j", "i", "j++", "j++", "j", "{\n\t\t\ts=m[j]+f[j];\n\t\t\tif(m[j]==-1||f[j]==-1)System.out.println(\"F\");\n\t\t\telse if(s>=80)System.out.println(\"A\");\n\t\t\telse if(s>=65)System.out.println(\"B\");\n\t\t\telse if(s>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");\n\t\t}", "{\n\t\t\ts=m[j]+f[j];\n\t\t\tif(m[j]==-1||f[j]==-1)System.out.println(\"F\");\n\t\t\telse if(s>=80)System.out.println(\"A\");\n\t\t\telse if(s>=65)System.out.println(\"B\");\n\t\t\telse if(s>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");\n\t\t}", "s=m[j]+f[j]", "s", "m[j]+f[j]", "m[j]", "m", "j", "f[j]", "f", "j", "if(m[j]==-1||f[j]==-1)System.out.println(\"F\");\n\t\t\telse if(s>=80)System.out.println(\"A\");\n\t\t\telse if(s>=65)System.out.println(\"B\");\n\t\t\telse if(s>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");", "m[j]==-1||f[j]==-1", "m[j]==-1", "m[j]", "m", "j", "-1", "1", "f[j]==-1", "f[j]", "f", "j", "-1", "1", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(s>=80)System.out.println(\"A\");\n\t\t\telse if(s>=65)System.out.println(\"B\");\n\t\t\telse if(s>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");", "s>=80", "s", "80", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(s>=65)System.out.println(\"B\");\n\t\t\telse if(s>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");", "s>=65", "s", "65", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(s>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");", "s>=50", "s", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(s>=30&&r[j]>=50)System.out.println(\"C\");\n\t\t\telse if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");", "s>=30&&r[j]>=50", "s>=30", "s", "30", "r[j]>=50", "r[j]", "r", "j", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(s>=30)System.out.println(\"D\");\n\t\t\telse System.out.println(\"F\");", "s>=30", "s", "30", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn=new Scanner(System.in); int m[]=new int[51],f[]=new int[51],r[]=new int[51],i,j,s; for(i=0;;i++){ m[i]=stdIn.nextInt(); f[i]=stdIn.nextInt(); r[i]=stdIn.nextInt(); if(m[i]==-1&&f[i]==-1&&r[i]==-1)break; } for(j=0;j<i;j++){ s=m[j]+f[j]; if(m[j]==-1||f[j]==-1)System.out.println("F"); else if(s>=80)System.out.println("A"); else if(s>=65)System.out.println("B"); else if(s>=50)System.out.println("C"); else if(s>=30&&r[j]>=50)System.out.println("C"); else if(s>=30)System.out.println("D"); else System.out.println("F"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 4, 18, 18, 13, 13, 4, 13, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 17, 30, 29, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 14, 2, 13, 17, 30, 29, 17, 29, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 29, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 29, 17, 30, 29, 17, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 136, 5 ], [ 136, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 14, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 51, 54 ], [ 51, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 6, 59 ], [ 59, 60 ], [ 136, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 63, 69 ], [ 69, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 71, 80 ], [ 80, 81 ], [ 80, 82 ], [ 69, 83 ], [ 83, 84 ], [ 84, 85 ], [ 69, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 94, 102 ], [ 102, 103 ], [ 86, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 104, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 120, 122 ], [ 115, 123 ], [ 123, 124 ], [ 124, 125 ], [ 115, 126 ], [ 126, 127 ], [ 127, 128 ], [ 61, 129 ], [ 129, 130 ], [ 61, 131 ], [ 131, 132 ], [ 61, 133 ], [ 133, 134 ], [ 0, 135 ], [ 135, 136 ], [ 135, 137 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tSystem.out.println(grade(m, f, r));\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tprivate static char grade(int m, int f, int r) {\n\t\tint mf = m + f;\n\t\tif (m == -1 || f == -1 || mf < 30) {\n\t\t\treturn 'F';\n\t\t} else if (30 <= mf && mf < 50) {\n\t\t\tif (r >= 50) {\n\t\t\t\treturn 'C';\n\t\t\t}\n\t\t\treturn 'D';\n\t\t} else if (50 <= mf && mf < 65) {\n\t\t\treturn 'C';\n\t\t} else if (65 <= mf && mf < 80) {\n\t\t\treturn 'B';\n\t\t} else {\n\t\t\treturn 'A';\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\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tSystem.out.println(grade(m, f, r));\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tprivate static char grade(int m, int f, int r) {\n\t\tint mf = m + f;\n\t\tif (m == -1 || f == -1 || mf < 30) {\n\t\t\treturn 'F';\n\t\t} else if (30 <= mf && mf < 50) {\n\t\t\tif (r >= 50) {\n\t\t\t\treturn 'C';\n\t\t\t}\n\t\t\treturn 'D';\n\t\t} else if (50 <= mf && mf < 65) {\n\t\t\treturn 'C';\n\t\t} else if (65 <= mf && mf < 80) {\n\t\t\treturn 'B';\n\t\t} else {\n\t\t\treturn 'A';\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tSystem.out.println(grade(m, f, r));\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tSystem.out.println(grade(m, f, r));\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tSystem.out.println(grade(m, f, r));\n\t\t}", "true", "{\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tSystem.out.println(grade(m, f, r));\n\t\t}", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if (m == -1 && f == -1 && r == -1) break;", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "break;", "System.out.println(grade(m, f, r))", "System.out.println", "System.out", "System", "System.out", "grade(m, f, r)", "grade", "m", "f", "r", "sc.close()", "sc.close", "sc", "String[] args", "args", "private static char grade(int m, int f, int r) {\n\t\tint mf = m + f;\n\t\tif (m == -1 || f == -1 || mf < 30) {\n\t\t\treturn 'F';\n\t\t} else if (30 <= mf && mf < 50) {\n\t\t\tif (r >= 50) {\n\t\t\t\treturn 'C';\n\t\t\t}\n\t\t\treturn 'D';\n\t\t} else if (50 <= mf && mf < 65) {\n\t\t\treturn 'C';\n\t\t} else if (65 <= mf && mf < 80) {\n\t\t\treturn 'B';\n\t\t} else {\n\t\t\treturn 'A';\n\t\t}\n\t}", "grade", "{\n\t\tint mf = m + f;\n\t\tif (m == -1 || f == -1 || mf < 30) {\n\t\t\treturn 'F';\n\t\t} else if (30 <= mf && mf < 50) {\n\t\t\tif (r >= 50) {\n\t\t\t\treturn 'C';\n\t\t\t}\n\t\t\treturn 'D';\n\t\t} else if (50 <= mf && mf < 65) {\n\t\t\treturn 'C';\n\t\t} else if (65 <= mf && mf < 80) {\n\t\t\treturn 'B';\n\t\t} else {\n\t\t\treturn 'A';\n\t\t}\n\t}", "int mf = m + f;", "mf", "m + f", "m", "f", "if (m == -1 || f == -1 || mf < 30) {\n\t\t\treturn 'F';\n\t\t} else if (30 <= mf && mf < 50) {\n\t\t\tif (r >= 50) {\n\t\t\t\treturn 'C';\n\t\t\t}\n\t\t\treturn 'D';\n\t\t} else if (50 <= mf && mf < 65) {\n\t\t\treturn 'C';\n\t\t} else if (65 <= mf && mf < 80) {\n\t\t\treturn 'B';\n\t\t} else {\n\t\t\treturn 'A';\n\t\t}", "m == -1 || f == -1 || mf < 30", "m == -1 || f == -1 || mf < 30", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "mf < 30", "mf", "30", "{\n\t\t\treturn 'F';\n\t\t}", "return 'F';", "'F'", "if (30 <= mf && mf < 50) {\n\t\t\tif (r >= 50) {\n\t\t\t\treturn 'C';\n\t\t\t}\n\t\t\treturn 'D';\n\t\t} else if (50 <= mf && mf < 65) {\n\t\t\treturn 'C';\n\t\t} else if (65 <= mf && mf < 80) {\n\t\t\treturn 'B';\n\t\t} else {\n\t\t\treturn 'A';\n\t\t}", "30 <= mf && mf < 50", "30 <= mf", "30", "mf", "mf < 50", "mf", "50", "{\n\t\t\tif (r >= 50) {\n\t\t\t\treturn 'C';\n\t\t\t}\n\t\t\treturn 'D';\n\t\t}", "if (r >= 50) {\n\t\t\t\treturn 'C';\n\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\treturn 'C';\n\t\t\t}", "return 'C';", "'C'", "return 'D';", "'D'", "if (50 <= mf && mf < 65) {\n\t\t\treturn 'C';\n\t\t} else if (65 <= mf && mf < 80) {\n\t\t\treturn 'B';\n\t\t} else {\n\t\t\treturn 'A';\n\t\t}", "50 <= mf && mf < 65", "50 <= mf", "50", "mf", "mf < 65", "mf", "65", "{\n\t\t\treturn 'C';\n\t\t}", "return 'C';", "'C'", "if (65 <= mf && mf < 80) {\n\t\t\treturn 'B';\n\t\t} else {\n\t\t\treturn 'A';\n\t\t}", "65 <= mf && mf < 80", "65 <= mf", "65", "mf", "mf < 80", "mf", "80", "{\n\t\t\treturn 'B';\n\t\t}", "return 'B';", "'B'", "{\n\t\t\treturn 'A';\n\t\t}", "return 'A';", "'A'", "int m", "m", "int f", "f", "int r", "r", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tSystem.out.println(grade(m, f, r));\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tprivate static char grade(int m, int f, int r) {\n\t\tint mf = m + f;\n\t\tif (m == -1 || f == -1 || mf < 30) {\n\t\t\treturn 'F';\n\t\t} else if (30 <= mf && mf < 50) {\n\t\t\tif (r >= 50) {\n\t\t\t\treturn 'C';\n\t\t\t}\n\t\t\treturn 'D';\n\t\t} else if (50 <= mf && mf < 65) {\n\t\t\treturn 'C';\n\t\t} else if (65 <= mf && mf < 80) {\n\t\t\treturn 'B';\n\t\t} else {\n\t\t\treturn 'A';\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m == -1 && f == -1 && r == -1) break;\n\t\t\tSystem.out.println(grade(m, f, r));\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tprivate static char grade(int m, int f, int r) {\n\t\tint mf = m + f;\n\t\tif (m == -1 || f == -1 || mf < 30) {\n\t\t\treturn 'F';\n\t\t} else if (30 <= mf && mf < 50) {\n\t\t\tif (r >= 50) {\n\t\t\t\treturn 'C';\n\t\t\t}\n\t\t\treturn 'D';\n\t\t} else if (50 <= mf && mf < 65) {\n\t\t\treturn 'C';\n\t\t} else if (65 <= mf && mf < 80) {\n\t\t\treturn 'B';\n\t\t} else {\n\t\t\treturn 'A';\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); if (m == -1 && f == -1 && r == -1) break; System.out.println(grade(m, f, r)); } sc.close(); } private static char grade(int m, int f, int r) { int mf = m + f; if (m == -1 || f == -1 || mf < 30) { return 'F'; } else if (30 <= mf && mf < 50) { if (r >= 50) { return 'C'; } return 'D'; } else if (50 <= mf && mf < 65) { return 'C'; } else if (65 <= mf && mf < 80) { return 'B'; } else { return 'A'; } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 11, 1, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 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 ], [ 171, 8 ], [ 171, 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 ], [ 20, 22 ], [ 18, 23 ], [ 23, 24 ], [ 24, 25 ], [ 18, 26 ], [ 27, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 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 ], [ 49, 50 ], [ 49, 51 ], [ 37, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 37, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 65, 67 ], [ 37, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 68, 78 ], [ 78, 79 ], [ 68, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 80, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 97, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 110, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 110, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 123, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 136, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 143, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 136, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 9, 168 ], [ 168, 169 ], [ 0, 170 ], [ 170, 171 ], [ 170, 172 ] ]
[ "import java.util.Scanner;\nimport javax.sound.midi.SysexMessage;\n \npublic class Main{ \n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i = 1;\n for(;i<1000;i++){\n String str = sc.nextLine();\n if(str!=null){\n String[] str2 = str.split(\" \");\n int m = Integer.parseInt(str2[0]); \n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n\n if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }\n }\n } \n }\n} \n\n ", "import java.util.Scanner;", "Scanner", "java.util", "import javax.sound.midi.SysexMessage;", "SysexMessage", "javax.sound.midi", "public class Main{ \n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i = 1;\n for(;i<1000;i++){\n String str = sc.nextLine();\n if(str!=null){\n String[] str2 = str.split(\" \");\n int m = Integer.parseInt(str2[0]); \n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n\n if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }\n }\n } \n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i = 1;\n for(;i<1000;i++){\n String str = sc.nextLine();\n if(str!=null){\n String[] str2 = str.split(\" \");\n int m = Integer.parseInt(str2[0]); \n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n\n if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }\n }\n } \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int i = 1;\n for(;i<1000;i++){\n String str = sc.nextLine();\n if(str!=null){\n String[] str2 = str.split(\" \");\n int m = Integer.parseInt(str2[0]); \n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n\n if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }\n }\n } \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int i = 1;", "i", "1", "for(;i<1000;i++){\n String str = sc.nextLine();\n if(str!=null){\n String[] str2 = str.split(\" \");\n int m = Integer.parseInt(str2[0]); \n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n\n if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }\n }\n }", ";", "i<1000", "i", "1000", "i++", "i++", "i", "{\n String str = sc.nextLine();\n if(str!=null){\n String[] str2 = str.split(\" \");\n int m = Integer.parseInt(str2[0]); \n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n\n if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }\n }\n }", "{\n String str = sc.nextLine();\n if(str!=null){\n String[] str2 = str.split(\" \");\n int m = Integer.parseInt(str2[0]); \n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n\n if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }\n }\n }", "String str = sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "if(str!=null){\n String[] str2 = str.split(\" \");\n int m = Integer.parseInt(str2[0]); \n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n\n if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }\n }", "str!=null", "str", "null", "{\n String[] str2 = str.split(\" \");\n int m = Integer.parseInt(str2[0]); \n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n\n if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }\n }", "String[] str2 = str.split(\" \");", "str2", "str.split(\" \")", "str.split", "str", "\" \"", "int m = Integer.parseInt(str2[0]);", "m", "Integer.parseInt(str2[0])", "Integer.parseInt", "Integer", "str2[0]", "str2", "0", "int f = Integer.parseInt(str2[1]);", "f", "Integer.parseInt(str2[1])", "Integer.parseInt", "Integer", "str2[1]", "str2", "1", "int r = Integer.parseInt(str2[2]);", "r", "Integer.parseInt(str2[2])", "Integer.parseInt", "Integer", "str2[2]", "str2", "2", "if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }", "m == -1 && f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n break;\n }", "break;", "if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }", "m ==-1 || f == -1", "m ==-1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }", "m+f>=80", "m+f", "m", "f", "80", "{\n System.out.println(\"A\");\n }", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }", "m+f>=65", "m+f", "m", "f", "65", "{\n System.out.println(\"B\");\n }", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }", "m+f>=50", "m+f", "m", "f", "50", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }", "m+f>=30", "m+f", "m", "f", "30", "{\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }", "if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }", "r>=50", "r", "50", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n System.out.println(\"D\");\n }", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main{ \n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i = 1;\n for(;i<1000;i++){\n String str = sc.nextLine();\n if(str!=null){\n String[] str2 = str.split(\" \");\n int m = Integer.parseInt(str2[0]); \n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n\n if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }\n }\n } \n }\n}", "public class Main{ \n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i = 1;\n for(;i<1000;i++){\n String str = sc.nextLine();\n if(str!=null){\n String[] str2 = str.split(\" \");\n int m = Integer.parseInt(str2[0]); \n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n\n if(m == -1 && f == -1)\n {\n break;\n }\n else if(m ==-1 || f == -1)\n {\n System.out.println(\"F\");\n }\n else if(m+f>=80)\n {\n System.out.println(\"A\");\n }\n else if(m+f>=65)\n {\n System.out.println(\"B\");\n }\n else if(m+f>=50)\n {\n System.out.println(\"C\");\n }\n else if(m+f>=30)\n {\n if (r>=50) {\n System.out.println(\"C\");\n }\n else\n {\n System.out.println(\"D\");\n }\n }\n else\n {\n System.out.println(\"F\");\n }\n }\n } \n }\n}", "Main" ]
import java.util.Scanner; import javax.sound.midi.SysexMessage; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int i = 1; for(;i<1000;i++){ String str = sc.nextLine(); if(str!=null){ String[] str2 = str.split(" "); int m = Integer.parseInt(str2[0]); int f = Integer.parseInt(str2[1]); int r = Integer.parseInt(str2[2]); if(m == -1 && f == -1) { break; } else if(m ==-1 || f == -1) { System.out.println("F"); } else if(m+f>=80) { System.out.println("A"); } else if(m+f>=65) { System.out.println("B"); } else if(m+f>=50) { System.out.println("C"); } else if(m+f>=30) { if (r>=50) { System.out.println("C"); } else { System.out.println("D"); } } else { System.out.println("F"); } } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 40, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 13, 13, 28, 13, 13, 30, 30, 41, 13, 4, 13, 13, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 3, 4, 18, 4, 18, 13, 4, 13, 13, 13, 13, 17, 29, 4, 18, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 2, 13, 13, 30, 29, 18, 13, 13, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 29, 18, 13, 13, 14, 2, 13, 17, 30, 29, 18, 13, 13, 14, 2, 13, 17, 30, 29, 18, 13, 13, 14, 2, 13, 17, 30, 14, 2, 13, 17, 30, 29, 18, 13, 13, 29, 18, 13, 13, 29, 18, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 38, 5, 13, 30, 37, 20, 30, 14, 2, 13, 17, 30, 38, 5, 13, 30, 30, 4, 18, 13, 14, 2, 13, 17, 30, 38, 5, 13, 30, 30, 4, 18, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 4, 18, 4, 18, 13, 13, 17, 29, 4, 18, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 17, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 4, 13, 4, 13, 18, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 12, 12, 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 ], [ 324, 14 ], [ 324, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 324, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 21, 30 ], [ 30, 31 ], [ 30, 32 ], [ 30, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 34, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 34, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 34, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 34, 55 ], [ 55, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 64, 65 ], [ 64, 66 ], [ 55, 67 ], [ 67, 68 ], [ 34, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 74, 77 ], [ 74, 78 ], [ 69, 79 ], [ 21, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 19, 84 ], [ 84, 85 ], [ 324, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 89, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 88, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 88, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 88, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 88, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 88, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 138, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 88, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 86, 156 ], [ 156, 157 ], [ 86, 158 ], [ 158, 159 ], [ 86, 160 ], [ 160, 161 ], [ 324, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 168, 169 ], [ 168, 170 ], [ 164, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 171, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 177, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 191, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 196, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 171, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 208, 209 ], [ 208, 210 ], [ 204, 211 ], [ 211, 212 ], [ 211, 213 ], [ 204, 214 ], [ 214, 215 ], [ 204, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 217, 223 ], [ 216, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 227, 230 ], [ 225, 231 ], [ 204, 232 ], [ 232, 233 ], [ 233, 234 ], [ 234, 235 ], [ 162, 236 ], [ 236, 237 ], [ 324, 238 ], [ 238, 239 ], [ 238, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 243, 244 ], [ 242, 245 ], [ 238, 246 ], [ 246, 247 ], [ 324, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 254, 255 ], [ 253, 256 ], [ 250, 257 ], [ 257, 258 ], [ 257, 259 ], [ 260, 261 ], [ 260, 262 ], [ 250, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 265, 267 ], [ 263, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 270, 272 ], [ 263, 273 ], [ 273, 274 ], [ 274, 275 ], [ 263, 276 ], [ 277, 277 ], [ 277, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 278, 282 ], [ 282, 283 ], [ 283, 284 ], [ 282, 285 ], [ 285, 286 ], [ 285, 287 ], [ 250, 288 ], [ 288, 289 ], [ 248, 290 ], [ 290, 291 ], [ 324, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 295, 296 ], [ 296, 297 ], [ 297, 298 ], [ 297, 299 ], [ 295, 300 ], [ 300, 301 ], [ 300, 302 ], [ 302, 303 ], [ 302, 304 ], [ 304, 305 ], [ 304, 306 ], [ 292, 307 ], [ 307, 308 ], [ 324, 309 ], [ 309, 310 ], [ 309, 311 ], [ 311, 312 ], [ 309, 313 ], [ 313, 314 ], [ 309, 315 ], [ 315, 316 ], [ 309, 317 ], [ 317, 318 ], [ 309, 319 ], [ 319, 320 ], [ 309, 321 ], [ 309, 322 ], [ 0, 323 ], [ 323, 324 ], [ 323, 325 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n private static final int ABSENT = -1;\n\n protected static String process(String data) {\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n for (String line : lines) {\n final int[] split = split(line);\n\n final int midScore = split[0];\n final int finalScore = split[1];\n final int retestScore = split[2];\n\n if (midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT) {\n break;\n }\n\n sb.append(calcGrade(midScore, finalScore, retestScore)).append('\\n');\n }\n\n return sb.toString();\n }\n\n static Grade calcGrade(int midScore, int finalScore, int retestScore) {\n if (midScore == ABSENT || finalScore == ABSENT) {\n return Grade.F;\n }\n\n final int baseScore = midScore + finalScore;\n\n if (baseScore >= 80) {\n return Grade.A;\n }\n\n if (baseScore >= 65) {\n return Grade.B;\n }\n\n if (baseScore >= 50) {\n return Grade.C;\n }\n\n if (baseScore >= 30) {\n if (retestScore >= 50) {\n return Grade.C;\n }\n return Grade.D;\n }\n\n return Grade.F;\n }\n\n enum Grade {\n A, B, C, D, F\n }\n\n private static String readAll(InputStream is) {\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }\n\n private static String[] splitForLines(String lines) {\n return lines.split(\"\\\\n\");\n }\n\n private static int[] split(String s) {\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }\n\n public static void main(String[] args) {\n System.out.print(process(readAll(System.in)));\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", "public class Main {\n\n private static final int ABSENT = -1;\n\n protected static String process(String data) {\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n for (String line : lines) {\n final int[] split = split(line);\n\n final int midScore = split[0];\n final int finalScore = split[1];\n final int retestScore = split[2];\n\n if (midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT) {\n break;\n }\n\n sb.append(calcGrade(midScore, finalScore, retestScore)).append('\\n');\n }\n\n return sb.toString();\n }\n\n static Grade calcGrade(int midScore, int finalScore, int retestScore) {\n if (midScore == ABSENT || finalScore == ABSENT) {\n return Grade.F;\n }\n\n final int baseScore = midScore + finalScore;\n\n if (baseScore >= 80) {\n return Grade.A;\n }\n\n if (baseScore >= 65) {\n return Grade.B;\n }\n\n if (baseScore >= 50) {\n return Grade.C;\n }\n\n if (baseScore >= 30) {\n if (retestScore >= 50) {\n return Grade.C;\n }\n return Grade.D;\n }\n\n return Grade.F;\n }\n\n enum Grade {\n A, B, C, D, F\n }\n\n private static String readAll(InputStream is) {\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }\n\n private static String[] splitForLines(String lines) {\n return lines.split(\"\\\\n\");\n }\n\n private static int[] split(String s) {\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }\n\n public static void main(String[] args) {\n System.out.print(process(readAll(System.in)));\n }\n}", "Main", "private static final int ABSENT = -1;", "ABSENT", "-1", "1", "protected static String process(String data) {\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n for (String line : lines) {\n final int[] split = split(line);\n\n final int midScore = split[0];\n final int finalScore = split[1];\n final int retestScore = split[2];\n\n if (midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT) {\n break;\n }\n\n sb.append(calcGrade(midScore, finalScore, retestScore)).append('\\n');\n }\n\n return sb.toString();\n }", "process", "{\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n for (String line : lines) {\n final int[] split = split(line);\n\n final int midScore = split[0];\n final int finalScore = split[1];\n final int retestScore = split[2];\n\n if (midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT) {\n break;\n }\n\n sb.append(calcGrade(midScore, finalScore, retestScore)).append('\\n');\n }\n\n return sb.toString();\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "final String[] lines = splitForLines(data);", "lines", "splitForLines(data)", "splitForLines", "data", "for (String line : lines) {\n final int[] split = split(line);\n\n final int midScore = split[0];\n final int finalScore = split[1];\n final int retestScore = split[2];\n\n if (midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT) {\n break;\n }\n\n sb.append(calcGrade(midScore, finalScore, retestScore)).append('\\n');\n }", "String line", "lines", "{\n final int[] split = split(line);\n\n final int midScore = split[0];\n final int finalScore = split[1];\n final int retestScore = split[2];\n\n if (midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT) {\n break;\n }\n\n sb.append(calcGrade(midScore, finalScore, retestScore)).append('\\n');\n }", "{\n final int[] split = split(line);\n\n final int midScore = split[0];\n final int finalScore = split[1];\n final int retestScore = split[2];\n\n if (midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT) {\n break;\n }\n\n sb.append(calcGrade(midScore, finalScore, retestScore)).append('\\n');\n }", "final int[] split = split(line);", "split", "split(line)", "split", "line", "final int midScore = split[0];", "midScore", "split[0]", "split", "0", "final int finalScore = split[1];", "finalScore", "split[1]", "split", "1", "final int retestScore = split[2];", "retestScore", "split[2]", "split", "2", "if (midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT) {\n break;\n }", "midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT", "midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT", "midScore == ABSENT", "midScore", "ABSENT", "finalScore == ABSENT", "finalScore", "ABSENT", "retestScore == ABSENT", "retestScore", "ABSENT", "{\n break;\n }", "break;", "sb.append(calcGrade(midScore, finalScore, retestScore)).append('\\n')", "sb.append(calcGrade(midScore, finalScore, retestScore)).append", "sb.append(calcGrade(midScore, finalScore, retestScore))", "sb.append", "sb", "calcGrade(midScore, finalScore, retestScore)", "calcGrade", "midScore", "finalScore", "retestScore", "'\\n'", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "String data", "data", "static Grade calcGrade(int midScore, int finalScore, int retestScore) {\n if (midScore == ABSENT || finalScore == ABSENT) {\n return Grade.F;\n }\n\n final int baseScore = midScore + finalScore;\n\n if (baseScore >= 80) {\n return Grade.A;\n }\n\n if (baseScore >= 65) {\n return Grade.B;\n }\n\n if (baseScore >= 50) {\n return Grade.C;\n }\n\n if (baseScore >= 30) {\n if (retestScore >= 50) {\n return Grade.C;\n }\n return Grade.D;\n }\n\n return Grade.F;\n }", "calcGrade", "{\n if (midScore == ABSENT || finalScore == ABSENT) {\n return Grade.F;\n }\n\n final int baseScore = midScore + finalScore;\n\n if (baseScore >= 80) {\n return Grade.A;\n }\n\n if (baseScore >= 65) {\n return Grade.B;\n }\n\n if (baseScore >= 50) {\n return Grade.C;\n }\n\n if (baseScore >= 30) {\n if (retestScore >= 50) {\n return Grade.C;\n }\n return Grade.D;\n }\n\n return Grade.F;\n }", "if (midScore == ABSENT || finalScore == ABSENT) {\n return Grade.F;\n }", "midScore == ABSENT || finalScore == ABSENT", "midScore == ABSENT", "midScore", "ABSENT", "finalScore == ABSENT", "finalScore", "ABSENT", "{\n return Grade.F;\n }", "return Grade.F;", "Grade.F", "Grade", "Grade.F", "final int baseScore = midScore + finalScore;", "baseScore", "midScore + finalScore", "midScore", "finalScore", "if (baseScore >= 80) {\n return Grade.A;\n }", "baseScore >= 80", "baseScore", "80", "{\n return Grade.A;\n }", "return Grade.A;", "Grade.A", "Grade", "Grade.A", "if (baseScore >= 65) {\n return Grade.B;\n }", "baseScore >= 65", "baseScore", "65", "{\n return Grade.B;\n }", "return Grade.B;", "Grade.B", "Grade", "Grade.B", "if (baseScore >= 50) {\n return Grade.C;\n }", "baseScore >= 50", "baseScore", "50", "{\n return Grade.C;\n }", "return Grade.C;", "Grade.C", "Grade", "Grade.C", "if (baseScore >= 30) {\n if (retestScore >= 50) {\n return Grade.C;\n }\n return Grade.D;\n }", "baseScore >= 30", "baseScore", "30", "{\n if (retestScore >= 50) {\n return Grade.C;\n }\n return Grade.D;\n }", "if (retestScore >= 50) {\n return Grade.C;\n }", "retestScore >= 50", "retestScore", "50", "{\n return Grade.C;\n }", "return Grade.C;", "Grade.C", "Grade", "Grade.C", "return Grade.D;", "Grade.D", "Grade", "Grade.D", "return Grade.F;", "Grade.F", "Grade", "Grade.F", "int midScore", "midScore", "int finalScore", "finalScore", "int retestScore", "retestScore", "private static String readAll(InputStream is) {\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }", "readAll", "{\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }", "InputStreamReader r = null;", "r", "null", "BufferedReader br = null;", "br", "null", "try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\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 if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }", "if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }", "br != null", "br", "null", "{\n try {\n br.close();\n } catch (IOException e) {\n }\n }", "try {\n br.close();\n } catch (IOException e) {\n }", "catch (IOException e) {\n }", "IOException e", "{\n }", "{\n br.close();\n }", "br.close()", "br.close", "br", "if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }", "r != null", "r", "null", "{\n try {\n r.close();\n } catch (IOException e) {\n }\n }", "try {\n r.close();\n } catch (IOException e) {\n }", "catch (IOException e) {\n }", "IOException e", "{\n }", "{\n r.close();\n }", "r.close()", "r.close", "r", "{\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n }", "r = new InputStreamReader(is)", "r", "new InputStreamReader(is)", "br = new BufferedReader(r)", "br", "new BufferedReader(r)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String s;", "s", "while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }", "(s = br.readLine()) != null", "(s = br.readLine())", "s", "br.readLine()", "br.readLine", "br", "null", "{\n sb.append(s).append('\\n');\n }", "sb.append(s).append('\\n')", "sb.append(s).append", "sb.append(s)", "sb.append", "sb", "s", "'\\n'", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "InputStream is", "is", "private static String[] splitForLines(String lines) {\n return lines.split(\"\\\\n\");\n }", "splitForLines", "{\n return lines.split(\"\\\\n\");\n }", "return lines.split(\"\\\\n\");", "lines.split(\"\\\\n\")", "lines.split", "lines", "\"\\\\n\"", "String lines", "lines", "private static int[] split(String s) {\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }", "split", "{\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }", "final String[] s0 = s.split(\" \");", "s0", "s.split(\" \")", "s.split", "s", "\" \"", "int[] ia = new int[s0.length];", "ia", "new int[s0.length]", "s0.length", "s0", "s0.length", "for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s0.length", "i", "s0.length", "s0", "s0.length", "i++", "i++", "i", "{\n ia[i] = Integer.parseInt(s0[i]);\n }", "{\n ia[i] = Integer.parseInt(s0[i]);\n }", "ia[i] = Integer.parseInt(s0[i])", "ia[i]", "ia", "i", "Integer.parseInt(s0[i])", "Integer.parseInt", "Integer", "s0[i]", "s0", "i", "return ia;", "ia", "String s", "s", "public static void main(String[] args) {\n System.out.print(process(readAll(System.in)));\n }", "main", "{\n System.out.print(process(readAll(System.in)));\n }", "System.out.print(process(readAll(System.in)))", "System.out.print", "System.out", "System", "System.out", "process(readAll(System.in))", "process", "readAll(System.in)", "readAll", "System.in", "System", "System.in", "String[] args", "args", "enum Grade {\n A, B, C, D, F\n }", "Grade", "A", "A", "B", "B", "C", "C", "D", "D", "F", "F", "import java.io.BufferedReader;\nimp", "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport ja", "public class Main {\n\n private static final int ABSENT = -1;\n\n protected static String process(String data) {\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n for (String line : lines) {\n final int[] split = split(line);\n\n final int midScore = split[0];\n final int finalScore = split[1];\n final int retestScore = split[2];\n\n if (midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT) {\n break;\n }\n\n sb.append(calcGrade(midScore, finalScore, retestScore)).append('\\n');\n }\n\n return sb.toString();\n }\n\n static Grade calcGrade(int midScore, int finalScore, int retestScore) {\n if (midScore == ABSENT || finalScore == ABSENT) {\n return Grade.F;\n }\n\n final int baseScore = midScore + finalScore;\n\n if (baseScore >= 80) {\n return Grade.A;\n }\n\n if (baseScore >= 65) {\n return Grade.B;\n }\n\n if (baseScore >= 50) {\n return Grade.C;\n }\n\n if (baseScore >= 30) {\n if (retestScore >= 50) {\n return Grade.C;\n }\n return Grade.D;\n }\n\n return Grade.F;\n }\n\n enum Grade {\n A, B, C, D, F\n }\n\n private static String readAll(InputStream is) {\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }\n\n private static String[] splitForLines(String lines) {\n return lines.split(\"\\\\n\");\n }\n\n private static int[] split(String s) {\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }\n\n public static void main(String[] args) {\n System.out.print(process(readAll(System.in)));\n }\n}", "public class Main {\n\n private static final int ABSENT = -1;\n\n protected static String process(String data) {\n StringBuilder sb = new StringBuilder();\n final String[] lines = splitForLines(data);\n\n for (String line : lines) {\n final int[] split = split(line);\n\n final int midScore = split[0];\n final int finalScore = split[1];\n final int retestScore = split[2];\n\n if (midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT) {\n break;\n }\n\n sb.append(calcGrade(midScore, finalScore, retestScore)).append('\\n');\n }\n\n return sb.toString();\n }\n\n static Grade calcGrade(int midScore, int finalScore, int retestScore) {\n if (midScore == ABSENT || finalScore == ABSENT) {\n return Grade.F;\n }\n\n final int baseScore = midScore + finalScore;\n\n if (baseScore >= 80) {\n return Grade.A;\n }\n\n if (baseScore >= 65) {\n return Grade.B;\n }\n\n if (baseScore >= 50) {\n return Grade.C;\n }\n\n if (baseScore >= 30) {\n if (retestScore >= 50) {\n return Grade.C;\n }\n return Grade.D;\n }\n\n return Grade.F;\n }\n\n enum Grade {\n A, B, C, D, F\n }\n\n private static String readAll(InputStream is) {\n InputStreamReader r = null;\n BufferedReader br = null;\n\n try {\n r = new InputStreamReader(is);\n br = new BufferedReader(r);\n StringBuilder sb = new StringBuilder();\n String s;\n\n while ((s = br.readLine()) != null) {\n sb.append(s).append('\\n');\n }\n\n return sb.toString();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n }\n }\n if (r != null) {\n try {\n r.close();\n } catch (IOException e) {\n }\n }\n }\n }\n\n private static String[] splitForLines(String lines) {\n return lines.split(\"\\\\n\");\n }\n\n private static int[] split(String s) {\n final String[] s0 = s.split(\" \");\n int[] ia = new int[s0.length];\n\n for (int i = 0; i < s0.length; i++) {\n ia[i] = Integer.parseInt(s0[i]);\n }\n\n return ia;\n }\n\n public static void main(String[] args) {\n System.out.print(process(readAll(System.in)));\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class Main { private static final int ABSENT = -1; protected static String process(String data) { StringBuilder sb = new StringBuilder(); final String[] lines = splitForLines(data); for (String line : lines) { final int[] split = split(line); final int midScore = split[0]; final int finalScore = split[1]; final int retestScore = split[2]; if (midScore == ABSENT && finalScore == ABSENT && retestScore == ABSENT) { break; } sb.append(calcGrade(midScore, finalScore, retestScore)).append('\n'); } return sb.toString(); } static Grade calcGrade(int midScore, int finalScore, int retestScore) { if (midScore == ABSENT || finalScore == ABSENT) { return Grade.F; } final int baseScore = midScore + finalScore; if (baseScore >= 80) { return Grade.A; } if (baseScore >= 65) { return Grade.B; } if (baseScore >= 50) { return Grade.C; } if (baseScore >= 30) { if (retestScore >= 50) { return Grade.C; } return Grade.D; } return Grade.F; } enum Grade { A, B, C, D, F } private static String readAll(InputStream is) { InputStreamReader r = null; BufferedReader br = null; try { r = new InputStreamReader(is); br = new BufferedReader(r); StringBuilder sb = new StringBuilder(); String s; while ((s = br.readLine()) != null) { sb.append(s).append('\n'); } return sb.toString(); } catch (IOException e) { throw new RuntimeException(e); } finally { if (br != null) { try { br.close(); } catch (IOException e) { } } if (r != null) { try { r.close(); } catch (IOException e) { } } } } private static String[] splitForLines(String lines) { return lines.split("\\n"); } private static int[] split(String s) { final String[] s0 = s.split(" "); int[] ia = new int[s0.length]; for (int i = 0; i < s0.length; i++) { ia[i] = Integer.parseInt(s0[i]); } return ia; } public static void main(String[] args) { System.out.print(process(readAll(System.in))); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 176, 5 ], [ 176, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 28, 33 ], [ 25, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 25, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 25, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 25, 58 ], [ 58, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 60, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 58, 73 ], [ 25, 74 ], [ 74, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 76, 83 ], [ 83, 84 ], [ 83, 85 ], [ 74, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 87, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 87, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 101, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 101, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 112, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 112, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 123, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 135, 141 ], [ 141, 142 ], [ 141, 143 ], [ 134, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 145, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 155, 158 ], [ 134, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 8, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 8, 170 ], [ 170, 171 ], [ 171, 172 ], [ 6, 173 ], [ 173, 174 ], [ 0, 175 ], [ 175, 176 ], [ 175, 177 ] ]
[ "import java.io.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\n\t\tint m ;\n\t\tint f ;\n\t\tint r ;\n\t\tString[] str ;//m,f,r???????????????????????????????????????str????????????????????????\n\t\t\n\t\t\n\t\twhile(true) {\n\t //??\\???????????????????????????\t\t\n\t\t\t str = br.readLine().split(\" \");\n\t\t\t m = Integer.parseInt(str[0]);\n\t\t\t f = Integer.parseInt(str[1]);\n\t\t\t r = Integer.parseInt(str[2]);\n\t if(m == -1 & f == -1 & r == -1) break;\n\t \n\t //?????????????´¢????????????????????? \n\t if(m <= 50 | f <= 50 |r <= 100) {\n\t \t\n\t\t \t if(m == -1 | f == -1) output.append(\"F\\n\"); //1????¨????????????????????????´???\n\t\t \t \n\t\t \t else if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }\n\t\t }\n\t \n\t }\n\n System.out.print(output);\n\n\tbr.close();\n\t\t\t\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\n\t\tint m ;\n\t\tint f ;\n\t\tint r ;\n\t\tString[] str ;//m,f,r???????????????????????????????????????str????????????????????????\n\t\t\n\t\t\n\t\twhile(true) {\n\t //??\\???????????????????????????\t\t\n\t\t\t str = br.readLine().split(\" \");\n\t\t\t m = Integer.parseInt(str[0]);\n\t\t\t f = Integer.parseInt(str[1]);\n\t\t\t r = Integer.parseInt(str[2]);\n\t if(m == -1 & f == -1 & r == -1) break;\n\t \n\t //?????????????´¢????????????????????? \n\t if(m <= 50 | f <= 50 |r <= 100) {\n\t \t\n\t\t \t if(m == -1 | f == -1) output.append(\"F\\n\"); //1????¨????????????????????????´???\n\t\t \t \n\t\t \t else if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }\n\t\t }\n\t \n\t }\n\n System.out.print(output);\n\n\tbr.close();\n\t\t\t\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\n\t\tint m ;\n\t\tint f ;\n\t\tint r ;\n\t\tString[] str ;//m,f,r???????????????????????????????????????str????????????????????????\n\t\t\n\t\t\n\t\twhile(true) {\n\t //??\\???????????????????????????\t\t\n\t\t\t str = br.readLine().split(\" \");\n\t\t\t m = Integer.parseInt(str[0]);\n\t\t\t f = Integer.parseInt(str[1]);\n\t\t\t r = Integer.parseInt(str[2]);\n\t if(m == -1 & f == -1 & r == -1) break;\n\t \n\t //?????????????´¢????????????????????? \n\t if(m <= 50 | f <= 50 |r <= 100) {\n\t \t\n\t\t \t if(m == -1 | f == -1) output.append(\"F\\n\"); //1????¨????????????????????????´???\n\t\t \t \n\t\t \t else if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }\n\t\t }\n\t \n\t }\n\n System.out.print(output);\n\n\tbr.close();\n\t\t\t\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\n\t\tint m ;\n\t\tint f ;\n\t\tint r ;\n\t\tString[] str ;//m,f,r???????????????????????????????????????str????????????????????????\n\t\t\n\t\t\n\t\twhile(true) {\n\t //??\\???????????????????????????\t\t\n\t\t\t str = br.readLine().split(\" \");\n\t\t\t m = Integer.parseInt(str[0]);\n\t\t\t f = Integer.parseInt(str[1]);\n\t\t\t r = Integer.parseInt(str[2]);\n\t if(m == -1 & f == -1 & r == -1) break;\n\t \n\t //?????????????´¢????????????????????? \n\t if(m <= 50 | f <= 50 |r <= 100) {\n\t \t\n\t\t \t if(m == -1 | f == -1) output.append(\"F\\n\"); //1????¨????????????????????????´???\n\t\t \t \n\t\t \t else if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }\n\t\t }\n\t \n\t }\n\n System.out.print(output);\n\n\tbr.close();\n\t\t\t\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder output = new StringBuilder();", "output", "new StringBuilder()", "int m ;", "m", "int f ;", "f", "int r ;", "r", "String[] str ;", "str", "while(true) {\n\t //??\\???????????????????????????\t\t\n\t\t\t str = br.readLine().split(\" \");\n\t\t\t m = Integer.parseInt(str[0]);\n\t\t\t f = Integer.parseInt(str[1]);\n\t\t\t r = Integer.parseInt(str[2]);\n\t if(m == -1 & f == -1 & r == -1) break;\n\t \n\t //?????????????´¢????????????????????? \n\t if(m <= 50 | f <= 50 |r <= 100) {\n\t \t\n\t\t \t if(m == -1 | f == -1) output.append(\"F\\n\"); //1????¨????????????????????????´???\n\t\t \t \n\t\t \t else if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }\n\t\t }\n\t \n\t }", "true", "{\n\t //??\\???????????????????????????\t\t\n\t\t\t str = br.readLine().split(\" \");\n\t\t\t m = Integer.parseInt(str[0]);\n\t\t\t f = Integer.parseInt(str[1]);\n\t\t\t r = Integer.parseInt(str[2]);\n\t if(m == -1 & f == -1 & r == -1) break;\n\t \n\t //?????????????´¢????????????????????? \n\t if(m <= 50 | f <= 50 |r <= 100) {\n\t \t\n\t\t \t if(m == -1 | f == -1) output.append(\"F\\n\"); //1????¨????????????????????????´???\n\t\t \t \n\t\t \t else if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }\n\t\t }\n\t \n\t }", "str = br.readLine().split(\" \")", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "m = Integer.parseInt(str[0])", "m", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "f = Integer.parseInt(str[1])", "f", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "r = Integer.parseInt(str[2])", "r", "Integer.parseInt(str[2])", "Integer.parseInt", "Integer", "str[2]", "str", "2", "if(m == -1 & f == -1 & r == -1) break;", "m == -1 & f == -1 & r == -1", "m == -1 & f == -1 & r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "break;", "if(m <= 50 | f <= 50 |r <= 100) {\n\t \t\n\t\t \t if(m == -1 | f == -1) output.append(\"F\\n\"); //1????¨????????????????????????´???\n\t\t \t \n\t\t \t else if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }\n\t\t }", "m <= 50 | f <= 50 |r <= 100", "m <= 50 | f <= 50 |r <= 100", "m <= 50", "m", "50", "f <= 50", "f", "50", "r <= 100", "r", "100", "{\n\t \t\n\t\t \t if(m == -1 | f == -1) output.append(\"F\\n\"); //1????¨????????????????????????´???\n\t\t \t \n\t\t \t else if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }\n\t\t }", "if(m == -1 | f == -1) output.append(\"F\\n\"); //1????¨????????????????????????´???\n\t\t \t \n\t\t \t else if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }", "m == -1 | f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "output.append(\"F\\n\")", "output.append", "output", "\"F\\n\"", "if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }", "(m+f) >= 80", "(m+f)", "m", "f", "80", "{ \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }", "output.append(\"A\\n\")", "output.append", "output", "\"A\\n\"", "if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }", "(m+f) >= 65", "(m+f)", "m", "f", "65", "{\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }", "output.append(\"B\\n\")", "output.append", "output", "\"B\\n\"", "if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }", "(m+f) >= 50", "(m+f)", "m", "f", "50", "{\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }", "output.append(\"C\\n\")", "output.append", "output", "\"C\\n\"", "if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }", "(m+f) >= 30 | r >= 50", "(m+f) >= 30", "(m+f)", "m", "f", "30", "r >= 50", "r", "50", "{\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }", "if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }", "r >= 50", "r", "50", "{\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }", "output.append(\"C\\n\")", "output.append", "output", "\"C\\n\"", "{\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }", "output.append(\"D\\n\")", "output.append", "output", "\"D\\n\"", "{\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }", "output.append(\"F\\n\")", "output.append", "output", "\"F\\n\"", "System.out.print(output)", "System.out.print", "System.out", "System", "System.out", "output", "br.close()", "br.close", "br", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\n\t\tint m ;\n\t\tint f ;\n\t\tint r ;\n\t\tString[] str ;//m,f,r???????????????????????????????????????str????????????????????????\n\t\t\n\t\t\n\t\twhile(true) {\n\t //??\\???????????????????????????\t\t\n\t\t\t str = br.readLine().split(\" \");\n\t\t\t m = Integer.parseInt(str[0]);\n\t\t\t f = Integer.parseInt(str[1]);\n\t\t\t r = Integer.parseInt(str[2]);\n\t if(m == -1 & f == -1 & r == -1) break;\n\t \n\t //?????????????´¢????????????????????? \n\t if(m <= 50 | f <= 50 |r <= 100) {\n\t \t\n\t\t \t if(m == -1 | f == -1) output.append(\"F\\n\"); //1????¨????????????????????????´???\n\t\t \t \n\t\t \t else if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }\n\t\t }\n\t \n\t }\n\n System.out.print(output);\n\n\tbr.close();\n\t\t\t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder output = new StringBuilder();\n\n\t\tint m ;\n\t\tint f ;\n\t\tint r ;\n\t\tString[] str ;//m,f,r???????????????????????????????????????str????????????????????????\n\t\t\n\t\t\n\t\twhile(true) {\n\t //??\\???????????????????????????\t\t\n\t\t\t str = br.readLine().split(\" \");\n\t\t\t m = Integer.parseInt(str[0]);\n\t\t\t f = Integer.parseInt(str[1]);\n\t\t\t r = Integer.parseInt(str[2]);\n\t if(m == -1 & f == -1 & r == -1) break;\n\t \n\t //?????????????´¢????????????????????? \n\t if(m <= 50 | f <= 50 |r <= 100) {\n\t \t\n\t\t \t if(m == -1 | f == -1) output.append(\"F\\n\"); //1????¨????????????????????????´???\n\t\t \t \n\t\t \t else if((m+f) >= 80) { \n\t\t \t\t output.append(\"A\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 65) {\n\t\t \t\t output.append(\"B\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 50) {\n\t\t \t\t output.append(\"C\\n\");\n\t\t \t }\n\t\t \t else if((m+f) >= 30 | r >= 50) {\n\t\t \t\t if(r >= 50 ) {\n\t\t \t\t\t output.append(\"C\\n\");\n\t\t \t\t }else {\n\t\t \t\t output.append(\"D\\n\");\n\t\t \t\t }\n\t\t \t }\n\t\t \t else {\n\t\t \t\t output.append(\"F\\n\");\n\t\t \t }\n\t\t }\n\t \n\t }\n\n System.out.print(output);\n\n\tbr.close();\n\t\t\t\n\t}\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder output = new StringBuilder(); int m ; int f ; int r ; String[] str ;//m,f,r???????????????????????????????????????str???????????????????????? while(true) { //??\??????????????????????????? str = br.readLine().split(" "); m = Integer.parseInt(str[0]); f = Integer.parseInt(str[1]); r = Integer.parseInt(str[2]); if(m == -1 & f == -1 & r == -1) break; //?????????????´¢????????????????????? if(m <= 50 | f <= 50 |r <= 100) { if(m == -1 | f == -1) output.append("F\n"); //1????¨????????????????????????´??? else if((m+f) >= 80) { output.append("A\n"); } else if((m+f) >= 65) { output.append("B\n"); } else if((m+f) >= 50) { output.append("C\n"); } else if((m+f) >= 30 | r >= 50) { if(r >= 50 ) { output.append("C\n"); }else { output.append("D\n"); } } else { output.append("F\n"); } } } System.out.print(output); br.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 41, 13, 17, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 9, 0, 13, 8, 2, 13, 40, 17, 17, 13, 0, 13, 8, 2, 13, 40, 17, 17, 13, 0, 13, 8, 2, 13, 40, 17, 17, 13, 14, 2, 17, 2, 13, 13, 30, 0, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 14, 2, 17, 13, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 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 ], [ 203, 8 ], [ 203, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 17, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 17, 50 ], [ 50, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 52, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 50, 65 ], [ 17, 66 ], [ 66, 67 ], [ 66, 68 ], [ 17, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 79, 89 ], [ 17, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 92, 97 ], [ 92, 98 ], [ 17, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 101, 106 ], [ 101, 107 ], [ 17, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 110, 115 ], [ 110, 116 ], [ 17, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 117, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 117, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 128, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 127, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 127, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 147, 149 ], [ 144, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 143, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 143, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 163, 165 ], [ 160, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 159, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 172, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 159, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 185, 189 ], [ 184, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 17, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 194, 199 ], [ 9, 200 ], [ 200, 201 ], [ 0, 202 ], [ 202, 203 ], [ 202, 204 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t while (true) {\n\t\t String[] line = br.readLine().split(\" \");\n\n\t\t int m = Integer.parseInt(line[0]);\n\t\t int f = Integer.parseInt(line[1]);\n\t\t int r = Integer.parseInt(line[2]);\n\n\t\t if (m == -1 && f == -1 && r == -1) break;\n\n\t\t String rank = \"\";\n\t\t if (m == -1 || f == -1) {\n\t\t \trank = \"F\";\n\t\t \tSystem.out.println(rank);\n\t\t \tcontinue;\n\t\t }\n\n\t\t m = (m == -1) ? 0 : m;\n\t\t f = (f == -1) ? 0 : f;\n\t\t r = (r == -1) ? 0 : r;\n\n\t\t if (80 <= m + f) {\n\t\t \trank = \"A\";\n\t\t } else if (65 <= m + f && m + f < 80) {\n\t\t \trank = \"B\";\n\t\t } else if (50 <= m + f && m + f < 65) {\n\t\t \trank = \"C\";\n\t\t } else if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }\n\n\t\t System.out.println(rank);\n\t }\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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t while (true) {\n\t\t String[] line = br.readLine().split(\" \");\n\n\t\t int m = Integer.parseInt(line[0]);\n\t\t int f = Integer.parseInt(line[1]);\n\t\t int r = Integer.parseInt(line[2]);\n\n\t\t if (m == -1 && f == -1 && r == -1) break;\n\n\t\t String rank = \"\";\n\t\t if (m == -1 || f == -1) {\n\t\t \trank = \"F\";\n\t\t \tSystem.out.println(rank);\n\t\t \tcontinue;\n\t\t }\n\n\t\t m = (m == -1) ? 0 : m;\n\t\t f = (f == -1) ? 0 : f;\n\t\t r = (r == -1) ? 0 : r;\n\n\t\t if (80 <= m + f) {\n\t\t \trank = \"A\";\n\t\t } else if (65 <= m + f && m + f < 80) {\n\t\t \trank = \"B\";\n\t\t } else if (50 <= m + f && m + f < 65) {\n\t\t \trank = \"C\";\n\t\t } else if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }\n\n\t\t System.out.println(rank);\n\t }\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t while (true) {\n\t\t String[] line = br.readLine().split(\" \");\n\n\t\t int m = Integer.parseInt(line[0]);\n\t\t int f = Integer.parseInt(line[1]);\n\t\t int r = Integer.parseInt(line[2]);\n\n\t\t if (m == -1 && f == -1 && r == -1) break;\n\n\t\t String rank = \"\";\n\t\t if (m == -1 || f == -1) {\n\t\t \trank = \"F\";\n\t\t \tSystem.out.println(rank);\n\t\t \tcontinue;\n\t\t }\n\n\t\t m = (m == -1) ? 0 : m;\n\t\t f = (f == -1) ? 0 : f;\n\t\t r = (r == -1) ? 0 : r;\n\n\t\t if (80 <= m + f) {\n\t\t \trank = \"A\";\n\t\t } else if (65 <= m + f && m + f < 80) {\n\t\t \trank = \"B\";\n\t\t } else if (50 <= m + f && m + f < 65) {\n\t\t \trank = \"C\";\n\t\t } else if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }\n\n\t\t System.out.println(rank);\n\t }\n\t}", "main", "{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t while (true) {\n\t\t String[] line = br.readLine().split(\" \");\n\n\t\t int m = Integer.parseInt(line[0]);\n\t\t int f = Integer.parseInt(line[1]);\n\t\t int r = Integer.parseInt(line[2]);\n\n\t\t if (m == -1 && f == -1 && r == -1) break;\n\n\t\t String rank = \"\";\n\t\t if (m == -1 || f == -1) {\n\t\t \trank = \"F\";\n\t\t \tSystem.out.println(rank);\n\t\t \tcontinue;\n\t\t }\n\n\t\t m = (m == -1) ? 0 : m;\n\t\t f = (f == -1) ? 0 : f;\n\t\t r = (r == -1) ? 0 : r;\n\n\t\t if (80 <= m + f) {\n\t\t \trank = \"A\";\n\t\t } else if (65 <= m + f && m + f < 80) {\n\t\t \trank = \"B\";\n\t\t } else if (50 <= m + f && m + f < 65) {\n\t\t \trank = \"C\";\n\t\t } else if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }\n\n\t\t System.out.println(rank);\n\t }\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t String[] line = br.readLine().split(\" \");\n\n\t\t int m = Integer.parseInt(line[0]);\n\t\t int f = Integer.parseInt(line[1]);\n\t\t int r = Integer.parseInt(line[2]);\n\n\t\t if (m == -1 && f == -1 && r == -1) break;\n\n\t\t String rank = \"\";\n\t\t if (m == -1 || f == -1) {\n\t\t \trank = \"F\";\n\t\t \tSystem.out.println(rank);\n\t\t \tcontinue;\n\t\t }\n\n\t\t m = (m == -1) ? 0 : m;\n\t\t f = (f == -1) ? 0 : f;\n\t\t r = (r == -1) ? 0 : r;\n\n\t\t if (80 <= m + f) {\n\t\t \trank = \"A\";\n\t\t } else if (65 <= m + f && m + f < 80) {\n\t\t \trank = \"B\";\n\t\t } else if (50 <= m + f && m + f < 65) {\n\t\t \trank = \"C\";\n\t\t } else if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }\n\n\t\t System.out.println(rank);\n\t }", "true", "{\n\t\t String[] line = br.readLine().split(\" \");\n\n\t\t int m = Integer.parseInt(line[0]);\n\t\t int f = Integer.parseInt(line[1]);\n\t\t int r = Integer.parseInt(line[2]);\n\n\t\t if (m == -1 && f == -1 && r == -1) break;\n\n\t\t String rank = \"\";\n\t\t if (m == -1 || f == -1) {\n\t\t \trank = \"F\";\n\t\t \tSystem.out.println(rank);\n\t\t \tcontinue;\n\t\t }\n\n\t\t m = (m == -1) ? 0 : m;\n\t\t f = (f == -1) ? 0 : f;\n\t\t r = (r == -1) ? 0 : r;\n\n\t\t if (80 <= m + f) {\n\t\t \trank = \"A\";\n\t\t } else if (65 <= m + f && m + f < 80) {\n\t\t \trank = \"B\";\n\t\t } else if (50 <= m + f && m + f < 65) {\n\t\t \trank = \"C\";\n\t\t } else if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }\n\n\t\t System.out.println(rank);\n\t }", "String[] line = br.readLine().split(\" \");", "line", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int m = Integer.parseInt(line[0]);", "m", "Integer.parseInt(line[0])", "Integer.parseInt", "Integer", "line[0]", "line", "0", "int f = Integer.parseInt(line[1]);", "f", "Integer.parseInt(line[1])", "Integer.parseInt", "Integer", "line[1]", "line", "1", "int r = Integer.parseInt(line[2]);", "r", "Integer.parseInt(line[2])", "Integer.parseInt", "Integer", "line[2]", "line", "2", "if (m == -1 && f == -1 && r == -1) break;", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "break;", "String rank = \"\";", "rank", "\"\"", "if (m == -1 || f == -1) {\n\t\t \trank = \"F\";\n\t\t \tSystem.out.println(rank);\n\t\t \tcontinue;\n\t\t }", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t \trank = \"F\";\n\t\t \tSystem.out.println(rank);\n\t\t \tcontinue;\n\t\t }", "rank = \"F\"", "rank", "\"F\"", "System.out.println(rank)", "System.out.println", "System.out", "System", "System.out", "rank", "continue;", "m = (m == -1) ? 0 : m", "m", "(m == -1) ? 0 : m", "(m == -1)", "m", "-1", "1", "0", "m", "f = (f == -1) ? 0 : f", "f", "(f == -1) ? 0 : f", "(f == -1)", "f", "-1", "1", "0", "f", "r = (r == -1) ? 0 : r", "r", "(r == -1) ? 0 : r", "(r == -1)", "r", "-1", "1", "0", "r", "if (80 <= m + f) {\n\t\t \trank = \"A\";\n\t\t } else if (65 <= m + f && m + f < 80) {\n\t\t \trank = \"B\";\n\t\t } else if (50 <= m + f && m + f < 65) {\n\t\t \trank = \"C\";\n\t\t } else if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }", "80 <= m + f", "80", "m + f", "m", "f", "{\n\t\t \trank = \"A\";\n\t\t }", "rank = \"A\"", "rank", "\"A\"", "if (65 <= m + f && m + f < 80) {\n\t\t \trank = \"B\";\n\t\t } else if (50 <= m + f && m + f < 65) {\n\t\t \trank = \"C\";\n\t\t } else if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }", "65 <= m + f && m + f < 80", "65 <= m + f", "65", "m + f", "m", "f", "m + f < 80", "m + f", "m", "f", "80", "{\n\t\t \trank = \"B\";\n\t\t }", "rank = \"B\"", "rank", "\"B\"", "if (50 <= m + f && m + f < 65) {\n\t\t \trank = \"C\";\n\t\t } else if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }", "50 <= m + f && m + f < 65", "50 <= m + f", "50", "m + f", "m", "f", "m + f < 65", "m + f", "m", "f", "65", "{\n\t\t \trank = \"C\";\n\t\t }", "rank = \"C\"", "rank", "\"C\"", "if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }", "30 <= m + f && m + f < 50", "30 <= m + f", "30", "m + f", "m", "f", "m + f < 50", "m + f", "m", "f", "50", "{\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t }", "if (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}", "50 <= r", "50", "r", "{\n\t\t\t \trank = \"C\";\n\t\t \t}", "rank = \"C\"", "rank", "\"C\"", "{\n\t\t\t \trank = \"D\";\n\t\t \t}", "rank = \"D\"", "rank", "\"D\"", "if (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }", "m + f < 30", "m + f", "m", "f", "30", "{\n\t\t \trank = \"F\";\n\t\t }", "rank = \"F\"", "rank", "\"F\"", "System.out.println(rank)", "System.out.println", "System.out", "System", "System.out", "rank", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t while (true) {\n\t\t String[] line = br.readLine().split(\" \");\n\n\t\t int m = Integer.parseInt(line[0]);\n\t\t int f = Integer.parseInt(line[1]);\n\t\t int r = Integer.parseInt(line[2]);\n\n\t\t if (m == -1 && f == -1 && r == -1) break;\n\n\t\t String rank = \"\";\n\t\t if (m == -1 || f == -1) {\n\t\t \trank = \"F\";\n\t\t \tSystem.out.println(rank);\n\t\t \tcontinue;\n\t\t }\n\n\t\t m = (m == -1) ? 0 : m;\n\t\t f = (f == -1) ? 0 : f;\n\t\t r = (r == -1) ? 0 : r;\n\n\t\t if (80 <= m + f) {\n\t\t \trank = \"A\";\n\t\t } else if (65 <= m + f && m + f < 80) {\n\t\t \trank = \"B\";\n\t\t } else if (50 <= m + f && m + f < 65) {\n\t\t \trank = \"C\";\n\t\t } else if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }\n\n\t\t System.out.println(rank);\n\t }\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t while (true) {\n\t\t String[] line = br.readLine().split(\" \");\n\n\t\t int m = Integer.parseInt(line[0]);\n\t\t int f = Integer.parseInt(line[1]);\n\t\t int r = Integer.parseInt(line[2]);\n\n\t\t if (m == -1 && f == -1 && r == -1) break;\n\n\t\t String rank = \"\";\n\t\t if (m == -1 || f == -1) {\n\t\t \trank = \"F\";\n\t\t \tSystem.out.println(rank);\n\t\t \tcontinue;\n\t\t }\n\n\t\t m = (m == -1) ? 0 : m;\n\t\t f = (f == -1) ? 0 : f;\n\t\t r = (r == -1) ? 0 : r;\n\n\t\t if (80 <= m + f) {\n\t\t \trank = \"A\";\n\t\t } else if (65 <= m + f && m + f < 80) {\n\t\t \trank = \"B\";\n\t\t } else if (50 <= m + f && m + f < 65) {\n\t\t \trank = \"C\";\n\t\t } else if (30 <= m + f && m + f < 50) {\n\t\t \tif (50 <= r) {\n\t\t\t \trank = \"C\";\n\t\t \t} else {\n\t\t\t \trank = \"D\";\n\t\t \t}\n\t\t } else \tif (m + f < 30) {\n\t\t \trank = \"F\";\n\t\t }\n\n\t\t System.out.println(rank);\n\t }\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)); while (true) { String[] line = br.readLine().split(" "); int m = Integer.parseInt(line[0]); int f = Integer.parseInt(line[1]); int r = Integer.parseInt(line[2]); if (m == -1 && f == -1 && r == -1) break; String rank = ""; if (m == -1 || f == -1) { rank = "F"; System.out.println(rank); continue; } m = (m == -1) ? 0 : m; f = (f == -1) ? 0 : f; r = (r == -1) ? 0 : r; if (80 <= m + f) { rank = "A"; } else if (65 <= m + f && m + f < 80) { rank = "B"; } else if (50 <= m + f && m + f < 65) { rank = "C"; } else if (30 <= m + f && m + f < 50) { if (50 <= r) { rank = "C"; } else { rank = "D"; } } else if (m + f < 30) { rank = "F"; } System.out.println(rank); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 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 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 20, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 20, 41 ], [ 41, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 43, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 41, 56 ], [ 56, 57 ], [ 41, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 58, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 75, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 86, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 97, 112 ], [ 112, 113 ], [ 114, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 118, 120 ], [ 114, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 112, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 112, 132 ], [ 132, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 138, 140 ], [ 134, 141 ], [ 141, 142 ], [ 141, 143 ], [ 132, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 132, 151 ], [ 151, 152 ], [ 153, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 157, 159 ], [ 153, 160 ], [ 160, 161 ], [ 160, 162 ], [ 151, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 151, 170 ], [ 170, 171 ], [ 172, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 176, 177 ], [ 176, 178 ], [ 172, 179 ], [ 179, 180 ], [ 179, 181 ], [ 170, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 183, 188 ], [ 170, 189 ], [ 189, 190 ], [ 192, 191 ], [ 199, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 192, 196 ], [ 196, 197 ], [ 196, 198 ], [ 199, 199 ], [ 199, 200 ], [ 199, 201 ], [ 192, 202 ], [ 202, 203 ], [ 202, 204 ], [ 189, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 206, 211 ], [ 189, 212 ], [ 212, 213 ], [ 215, 214 ], [ 222, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 219, 220 ], [ 219, 221 ], [ 222, 222 ], [ 222, 223 ], [ 222, 224 ], [ 215, 225 ], [ 225, 226 ], [ 225, 227 ], [ 212, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 229, 234 ], [ 6, 235 ], [ 235, 236 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int m;\n int f;\n int r;\n\n while(true){\n\n \tm = scan.nextInt();\n \tf = scan.nextInt();\n \tr = scan.nextInt();\n \tint sum = m+f;\n\n \tif( m == -1 && f == -1 && r == -1){\n \t\tbreak;\n \t}\n \telse if(m == -1 || f == -1){\n \t\tSystem.out.println(\"F\");\n \t}else if(sum < 30 ){\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum >= 80){\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum >= 65 && sum < 80 ){\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n }\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int m;\n int f;\n int r;\n\n while(true){\n\n \tm = scan.nextInt();\n \tf = scan.nextInt();\n \tr = scan.nextInt();\n \tint sum = m+f;\n\n \tif( m == -1 && f == -1 && r == -1){\n \t\tbreak;\n \t}\n \telse if(m == -1 || f == -1){\n \t\tSystem.out.println(\"F\");\n \t}else if(sum < 30 ){\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum >= 80){\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum >= 65 && sum < 80 ){\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int m;\n int f;\n int r;\n\n while(true){\n\n \tm = scan.nextInt();\n \tf = scan.nextInt();\n \tr = scan.nextInt();\n \tint sum = m+f;\n\n \tif( m == -1 && f == -1 && r == -1){\n \t\tbreak;\n \t}\n \telse if(m == -1 || f == -1){\n \t\tSystem.out.println(\"F\");\n \t}else if(sum < 30 ){\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum >= 80){\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum >= 65 && sum < 80 ){\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n }\n\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n\n int m;\n int f;\n int r;\n\n while(true){\n\n \tm = scan.nextInt();\n \tf = scan.nextInt();\n \tr = scan.nextInt();\n \tint sum = m+f;\n\n \tif( m == -1 && f == -1 && r == -1){\n \t\tbreak;\n \t}\n \telse if(m == -1 || f == -1){\n \t\tSystem.out.println(\"F\");\n \t}else if(sum < 30 ){\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum >= 80){\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum >= 65 && sum < 80 ){\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n }\n\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int m;", "m", "int f;", "f", "int r;", "r", "while(true){\n\n \tm = scan.nextInt();\n \tf = scan.nextInt();\n \tr = scan.nextInt();\n \tint sum = m+f;\n\n \tif( m == -1 && f == -1 && r == -1){\n \t\tbreak;\n \t}\n \telse if(m == -1 || f == -1){\n \t\tSystem.out.println(\"F\");\n \t}else if(sum < 30 ){\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum >= 80){\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum >= 65 && sum < 80 ){\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n }", "true", "{\n\n \tm = scan.nextInt();\n \tf = scan.nextInt();\n \tr = scan.nextInt();\n \tint sum = m+f;\n\n \tif( m == -1 && f == -1 && r == -1){\n \t\tbreak;\n \t}\n \telse if(m == -1 || f == -1){\n \t\tSystem.out.println(\"F\");\n \t}else if(sum < 30 ){\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum >= 80){\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum >= 65 && sum < 80 ){\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n }", "m = scan.nextInt()", "m", "scan.nextInt()", "scan.nextInt", "scan", "f = scan.nextInt()", "f", "scan.nextInt()", "scan.nextInt", "scan", "r = scan.nextInt()", "r", "scan.nextInt()", "scan.nextInt", "scan", "int sum = m+f;", "sum", "m+f", "m", "f", "if( m == -1 && f == -1 && r == -1){\n \t\tbreak;\n \t}\n \telse if(m == -1 || f == -1){\n \t\tSystem.out.println(\"F\");\n \t}else if(sum < 30 ){\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum >= 80){\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum >= 65 && sum < 80 ){\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n \t\tbreak;\n \t}", "break;", "if(m == -1 || f == -1){\n \t\tSystem.out.println(\"F\");\n \t}else if(sum < 30 ){\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum >= 80){\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum >= 65 && sum < 80 ){\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n \t\tSystem.out.println(\"F\");\n \t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(sum < 30 ){\n \t\tSystem.out.println(\"F\");\n \t}\n \telse if(sum >= 80){\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum >= 65 && sum < 80 ){\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}", "sum < 30", "sum", "30", "{\n \t\tSystem.out.println(\"F\");\n \t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(sum >= 80){\n \t\tSystem.out.println(\"A\");\n \t}\n \telse if(sum >= 65 && sum < 80 ){\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}", "sum >= 80", "sum", "80", "{\n \t\tSystem.out.println(\"A\");\n \t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(sum >= 65 && sum < 80 ){\n \t\tSystem.out.println(\"B\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}", "sum >= 65 && sum < 80", "sum >= 65", "sum", "65", "sum < 80", "sum", "80", "{\n \t\tSystem.out.println(\"B\");\n \t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(sum >= 50 && sum < 65 && r == -1){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}", "sum >= 50 && sum < 65 && r == -1", "sum >= 50 && sum < 65 && r == -1", "sum >= 50", "sum", "50", "sum < 65", "sum", "65", "r == -1", "r", "-1", "1", "{\n \t\tSystem.out.println(\"C\");\n \t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(sum >= 50 && sum < 65 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}", "sum >= 50 && sum < 65 && r >= 50", "sum >= 50 && sum < 65 && r >= 50", "sum >= 50", "sum", "50", "sum < 65", "sum", "65", "r >= 50", "r", "50", "{\n \t\tSystem.out.println(\"C\");\n \t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(sum >= 30 && sum < 50 && r >= 50){\n \t\tSystem.out.println(\"C\");\n \t}\n \telse if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}", "sum >= 30 && sum < 50 && r >= 50", "sum >= 30 && sum < 50 && r >= 50", "sum >= 30", "sum", "30", "sum < 50", "sum", "50", "r >= 50", "r", "50", "{\n \t\tSystem.out.println(\"C\");\n \t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(sum >= 30 && sum < 50 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}", "sum >= 30 && sum < 50 && r < 50", "sum >= 30 && sum < 50 && r < 50", "sum >= 30", "sum", "30", "sum < 50", "sum", "50", "r < 50", "r", "50", "{\n \t\tSystem.out.println(\"D\");\n \t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if(sum >= 30 && sum < 50 && m == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}\n \telse if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}", "sum >= 30 && sum < 50 && m == 0 && r < 50", "m == 0", "sum >= 30 && sum < 50 && m == 0 && r < 50", "sum >= 30", "sum", "30", "sum < 50", "sum", "50", "m == 0", "m", "0", "r < 50", "r", "50", "{\n \t\tSystem.out.println(\"D\");\n \t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if(sum >= 30 && sum < 50 && f == 0 && r < 50){\n \t\tSystem.out.println(\"D\");\n \t}", "sum >= 30 && sum < 50 && f == 0 && r < 50", "f == 0", "sum >= 30 && sum < 50 && f == 0 && r < 50", "sum >= 30", "sum", "30", "sum < 50", "sum", "50", "f == 0", "f", "0", "r < 50", "r", "50", "{\n \t\tSystem.out.println(\"D\");\n \t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int m; int f; int r; while(true){ m = scan.nextInt(); f = scan.nextInt(); r = scan.nextInt(); int sum = m+f; if( m == -1 && f == -1 && r == -1){ break; } else if(m == -1 || f == -1){ System.out.println("F"); }else if(sum < 30 ){ System.out.println("F"); } else if(sum >= 80){ System.out.println("A"); } else if(sum >= 65 && sum < 80 ){ System.out.println("B"); } else if(sum >= 50 && sum < 65 && r == -1){ System.out.println("C"); } else if(sum >= 50 && sum < 65 && r >= 50){ System.out.println("C"); } else if(sum >= 30 && sum < 50 && r >= 50){ System.out.println("C"); } else if(sum >= 30 && sum < 50 && r < 50){ System.out.println("D"); } else if(sum >= 30 && sum < 50 && m == 0 && r < 50){ System.out.println("D"); } else if(sum >= 30 && sum < 50 && f == 0 && r < 50){ System.out.println("D"); } } } }
[ 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, 42, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 0, 13, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 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, 4, 18, 18, 13, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 150, 5 ], [ 150, 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 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 29, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 27, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 43, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 61, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 60, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 80, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 75, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 98, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 109, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 42, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 42, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 42, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 42, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 6, 147 ], [ 147, 148 ], [ 0, 149 ], [ 149, 150 ], [ 149, 151 ] ]
[ "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\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\twhile(m != -1 || f != -1 || r != -1){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if ((m=m+f)<30){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m<50){\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\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\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\twhile(m != -1 || f != -1 || r != -1){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if ((m=m+f)<30){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m<50){\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\twhile(m != -1 || f != -1 || r != -1){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if ((m=m+f)<30){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m<50){\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\twhile(m != -1 || f != -1 || r != -1){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if ((m=m+f)<30){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m<50){\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "while(m != -1 || f != -1 || r != -1){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if ((m=m+f)<30){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m<50){\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}", "m != -1 || f != -1 || r != -1", "m != -1 || f != -1 || r != -1", "m != -1", "m", "-1", "1", "f != -1", "f", "-1", "1", "r != -1", "r", "-1", "1", "{\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if ((m=m+f)<30){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m<50){\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}", "if(m == -1 || f == -1){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if ((m=m+f)<30){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m<50){\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}", "System.out.printf(\"F\")", "System.out.printf", "System.out", "System", "System.out", "\"F\"", "if ((m=m+f)<30){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m<50){\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}", "(m=m+f)<30", "(m=m+f)", "m", "m+f", "m", "f", "30", "{\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t}", "System.out.printf(\"F\")", "System.out.printf", "System.out", "System", "System.out", "\"F\"", "if (m<50){\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}", "m<50", "m", "50", "{\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t}", "if(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t}", "System.out.printf(\"C\")", "System.out.printf", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}", "System.out.printf(\"D\")", "System.out.printf", "System.out", "System", "System.out", "\"D\"", "if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}", "m<65", "m", "65", "{\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t}", "System.out.printf(\"C\")", "System.out.printf", "System.out", "System", "System.out", "\"C\"", "if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}", "m<80", "m", "80", "{\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t}", "System.out.printf(\"B\")", "System.out.printf", "System.out", "System", "System.out", "\"B\"", "{\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}", "System.out.printf(\"A\")", "System.out.printf", "System.out", "System", "System.out", "\"A\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\twhile(m != -1 || f != -1 || r != -1){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if ((m=m+f)<30){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m<50){\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\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\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\twhile(m != -1 || f != -1 || r != -1){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if ((m=m+f)<30){\n\t\t\t\tSystem.out.printf(\"F\");\n\t\t\t} else if (m<50){\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.printf(\"D\");\n\t\t\t\t}\n\t\t\t} else if (m<65){\n\t\t\t\tSystem.out.printf(\"C\");\n\t\t\t} else if (m<80){\n\t\t\t\tSystem.out.printf(\"B\");\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"A\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\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); int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); while(m != -1 || f != -1 || r != -1){ if(m == -1 || f == -1){ System.out.printf("F"); } else if ((m=m+f)<30){ System.out.printf("F"); } else if (m<50){ if(r >= 50) { System.out.printf("C"); } else { System.out.printf("D"); } } else if (m<65){ System.out.printf("C"); } else if (m<80){ System.out.printf("B"); } else { System.out.printf("A"); } System.out.println(); m = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 17, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 17, 50 ], [ 50, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 52, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 50, 65 ], [ 65, 66 ], [ 17, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 67, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 82, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 93, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 93, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 111, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 110, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 110, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 128, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 127, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 140, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 127, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 154, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 8, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 165, 170 ], [ 6, 171 ], [ 171, 172 ] ]
[ "import java.io.*;\nclass Main{\n\tpublic static void main(String[]args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString[] test=br.readLine().split(\" \");\n\t\t\tint m=Integer.parseInt(test[0]);\n\t\t\tint f=Integer.parseInt(test[1]);\n\t\t\tint r=Integer.parseInt(test[2]);\n\t\t\tif(m==-1&&f==-1&&r==-1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=65&&(m+f)<80){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=50&&(m+f)<65){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=30&&(m+f)<50){\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String[]args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString[] test=br.readLine().split(\" \");\n\t\t\tint m=Integer.parseInt(test[0]);\n\t\t\tint f=Integer.parseInt(test[1]);\n\t\t\tint r=Integer.parseInt(test[2]);\n\t\t\tif(m==-1&&f==-1&&r==-1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=65&&(m+f)<80){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=50&&(m+f)<65){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=30&&(m+f)<50){\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "Main", "public static void main(String[]args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString[] test=br.readLine().split(\" \");\n\t\t\tint m=Integer.parseInt(test[0]);\n\t\t\tint f=Integer.parseInt(test[1]);\n\t\t\tint r=Integer.parseInt(test[2]);\n\t\t\tif(m==-1&&f==-1&&r==-1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=65&&(m+f)<80){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=50&&(m+f)<65){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=30&&(m+f)<50){\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString[] test=br.readLine().split(\" \");\n\t\t\tint m=Integer.parseInt(test[0]);\n\t\t\tint f=Integer.parseInt(test[1]);\n\t\t\tint r=Integer.parseInt(test[2]);\n\t\t\tif(m==-1&&f==-1&&r==-1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=65&&(m+f)<80){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=50&&(m+f)<65){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=30&&(m+f)<50){\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while(true){\n\t\t\tString[] test=br.readLine().split(\" \");\n\t\t\tint m=Integer.parseInt(test[0]);\n\t\t\tint f=Integer.parseInt(test[1]);\n\t\t\tint r=Integer.parseInt(test[2]);\n\t\t\tif(m==-1&&f==-1&&r==-1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=65&&(m+f)<80){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=50&&(m+f)<65){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=30&&(m+f)<50){\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString[] test=br.readLine().split(\" \");\n\t\t\tint m=Integer.parseInt(test[0]);\n\t\t\tint f=Integer.parseInt(test[1]);\n\t\t\tint r=Integer.parseInt(test[2]);\n\t\t\tif(m==-1&&f==-1&&r==-1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=65&&(m+f)<80){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=50&&(m+f)<65){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=30&&(m+f)<50){\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}", "String[] test=br.readLine().split(\" \");", "test", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int m=Integer.parseInt(test[0]);", "m", "Integer.parseInt(test[0])", "Integer.parseInt", "Integer", "test[0]", "test", "0", "int f=Integer.parseInt(test[1]);", "f", "Integer.parseInt(test[1])", "Integer.parseInt", "Integer", "test[1]", "test", "1", "int r=Integer.parseInt(test[2]);", "r", "Integer.parseInt(test[2])", "Integer.parseInt", "Integer", "test[2]", "test", "2", "if(m==-1&&f==-1&&r==-1){\n\t\t\t\tbreak;\n\t\t\t}", "m==-1&&f==-1&&r==-1", "m==-1&&f==-1&&r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(m==-1||f==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=65&&(m+f)<80){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=50&&(m+f)<65){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=30&&(m+f)<50){\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "m==-1||f==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "sb.append(\"F\\n\")", "sb.append", "sb", "\"F\\n\"", "if((m+f)>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=65&&(m+f)<80){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=50&&(m+f)<65){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=30&&(m+f)<50){\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "(m+f)>=80", "(m+f)", "m", "f", "80", "{\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}", "sb.append(\"A\\n\")", "sb.append", "sb", "\"A\\n\"", "if((m+f)>=65&&(m+f)<80){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=50&&(m+f)<65){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=30&&(m+f)<50){\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "(m+f)>=65&&(m+f)<80", "(m+f)>=65", "(m+f)", "m", "f", "65", "(m+f)<80", "(m+f)", "m", "f", "80", "{\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}", "sb.append(\"B\\n\")", "sb.append", "sb", "\"B\\n\"", "if((m+f)>=50&&(m+f)<65){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((m+f)>=30&&(m+f)<50){\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "(m+f)>=50&&(m+f)<65", "(m+f)>=50", "(m+f)", "m", "f", "50", "(m+f)<65", "(m+f)", "m", "f", "65", "{\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}", "sb.append(\"C\\n\")", "sb.append", "sb", "\"C\\n\"", "if((m+f)>=30&&(m+f)<50){\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "(m+f)>=30&&(m+f)<50", "(m+f)>=30", "(m+f)", "m", "f", "30", "(m+f)<50", "(m+f)", "m", "f", "50", "{\n\t\t\t\tif(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}", "if(r>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}", "r>=50", "r", "50", "{\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}", "sb.append(\"C\\n\")", "sb.append", "sb", "\"C\\n\"", "{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}", "sb.append(\"D\\n\")", "sb.append", "sb", "\"D\\n\"", "if((m+f)<30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "(m+f)<30", "(m+f)", "m", "f", "30", "{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "sb.append(\"F\\n\")", "sb.append", "sb", "\"F\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[]args", "args" ]
import java.io.*; class Main{ public static void main(String[]args)throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while(true){ String[] test=br.readLine().split(" "); int m=Integer.parseInt(test[0]); int f=Integer.parseInt(test[1]); int r=Integer.parseInt(test[2]); if(m==-1&&f==-1&&r==-1){ break; } if(m==-1||f==-1){ sb.append("F\n"); } else if((m+f)>=80){ sb.append("A\n"); } else if((m+f)>=65&&(m+f)<80){ sb.append("B\n"); } else if((m+f)>=50&&(m+f)<65){ sb.append("C\n"); } else if((m+f)>=30&&(m+f)<50){ if(r>=50){ sb.append("C\n"); } else{ sb.append("D\n"); } } else if((m+f)<30){ sb.append("F\n"); } } System.out.print(sb); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 4, 18, 13, 4, 18, 13, 40, 17, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 9, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 9, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 9, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 9, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 9, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 9, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 206, 8 ], [ 206, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 15, 22 ], [ 22, 23 ], [ 23, 24 ], [ 15, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 12, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 47, 51 ], [ 44, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 44, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 65, 67 ], [ 44, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 44, 76 ], [ 76, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 78, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 76, 91 ], [ 91, 92 ], [ 44, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 94, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 103, 110 ], [ 44, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 44, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 120, 127 ], [ 44, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 133, 134 ], [ 133, 135 ], [ 128, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 137, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 136, 155 ], [ 44, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 161, 163 ], [ 156, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 165, 170 ], [ 164, 171 ], [ 44, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 173, 177 ], [ 177, 178 ], [ 177, 179 ], [ 172, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 181, 186 ], [ 180, 187 ], [ 44, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 188, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 193, 198 ], [ 192, 199 ], [ 30, 200 ], [ 200, 201 ], [ 201, 202 ], [ 9, 203 ], [ 203, 204 ], [ 0, 205 ], [ 205, 206 ], [ 205, 207 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int midtermExam = Integer.parseInt(input[0]);\n int finalExam = Integer.parseInt(input[1]);\n int additional = Integer.parseInt(input[2]);\n \n // ????????¨???-1????????????\n if(midtermExam == -1 && finalExam == -1 && additional == -1) {\n break;\n }\n \n // ???????????????????????????????????????????????´????????¶??????F\n if(midtermExam == -1 || finalExam == -1) {\n System.out.println(\"F\");\n continue;\n }\n \n int addScore = midtermExam + finalExam;\n \n // ????¨??????°???30?????????F\n if(addScore < 30) {\n System.out.println(\"F\");\n continue;\n }\n \n // ????¨??????°???30??\\???50????????§D\n // ??????????????????50??\\?????§C\n if(addScore >= 30 && addScore < 50) {\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }\n \n // ????¨??????°???50??\\???65????????§C\n if(addScore >= 50 && addScore < 65) {\n System.out.println(\"C\");\n continue;\n }\n \n // ????¨??????°???65??\\???80????????§B\n if(addScore >= 65 && addScore < 80) {\n System.out.println(\"B\");\n continue;\n }\n \n // ????¨??????°???80??\\?????§A\n if(addScore >= 80) {\n System.out.println(\"A\");\n continue;\n }\n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int midtermExam = Integer.parseInt(input[0]);\n int finalExam = Integer.parseInt(input[1]);\n int additional = Integer.parseInt(input[2]);\n \n // ????????¨???-1????????????\n if(midtermExam == -1 && finalExam == -1 && additional == -1) {\n break;\n }\n \n // ???????????????????????????????????????????????´????????¶??????F\n if(midtermExam == -1 || finalExam == -1) {\n System.out.println(\"F\");\n continue;\n }\n \n int addScore = midtermExam + finalExam;\n \n // ????¨??????°???30?????????F\n if(addScore < 30) {\n System.out.println(\"F\");\n continue;\n }\n \n // ????¨??????°???30??\\???50????????§D\n // ??????????????????50??\\?????§C\n if(addScore >= 30 && addScore < 50) {\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }\n \n // ????¨??????°???50??\\???65????????§C\n if(addScore >= 50 && addScore < 65) {\n System.out.println(\"C\");\n continue;\n }\n \n // ????¨??????°???65??\\???80????????§B\n if(addScore >= 65 && addScore < 80) {\n System.out.println(\"B\");\n continue;\n }\n \n // ????¨??????°???80??\\?????§A\n if(addScore >= 80) {\n System.out.println(\"A\");\n continue;\n }\n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}", "Main", "public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int midtermExam = Integer.parseInt(input[0]);\n int finalExam = Integer.parseInt(input[1]);\n int additional = Integer.parseInt(input[2]);\n \n // ????????¨???-1????????????\n if(midtermExam == -1 && finalExam == -1 && additional == -1) {\n break;\n }\n \n // ???????????????????????????????????????????????´????????¶??????F\n if(midtermExam == -1 || finalExam == -1) {\n System.out.println(\"F\");\n continue;\n }\n \n int addScore = midtermExam + finalExam;\n \n // ????¨??????°???30?????????F\n if(addScore < 30) {\n System.out.println(\"F\");\n continue;\n }\n \n // ????¨??????°???30??\\???50????????§D\n // ??????????????????50??\\?????§C\n if(addScore >= 30 && addScore < 50) {\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }\n \n // ????¨??????°???50??\\???65????????§C\n if(addScore >= 50 && addScore < 65) {\n System.out.println(\"C\");\n continue;\n }\n \n // ????¨??????°???65??\\???80????????§B\n if(addScore >= 65 && addScore < 80) {\n System.out.println(\"B\");\n continue;\n }\n \n // ????¨??????°???80??\\?????§A\n if(addScore >= 80) {\n System.out.println(\"A\");\n continue;\n }\n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }", "main", "{\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int midtermExam = Integer.parseInt(input[0]);\n int finalExam = Integer.parseInt(input[1]);\n int additional = Integer.parseInt(input[2]);\n \n // ????????¨???-1????????????\n if(midtermExam == -1 && finalExam == -1 && additional == -1) {\n break;\n }\n \n // ???????????????????????????????????????????????´????????¶??????F\n if(midtermExam == -1 || finalExam == -1) {\n System.out.println(\"F\");\n continue;\n }\n \n int addScore = midtermExam + finalExam;\n \n // ????¨??????°???30?????????F\n if(addScore < 30) {\n System.out.println(\"F\");\n continue;\n }\n \n // ????¨??????°???30??\\???50????????§D\n // ??????????????????50??\\?????§C\n if(addScore >= 30 && addScore < 50) {\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }\n \n // ????¨??????°???50??\\???65????????§C\n if(addScore >= 50 && addScore < 65) {\n System.out.println(\"C\");\n continue;\n }\n \n // ????¨??????°???65??\\???80????????§B\n if(addScore >= 65 && addScore < 80) {\n System.out.println(\"B\");\n continue;\n }\n \n // ????¨??????°???80??\\?????§A\n if(addScore >= 80) {\n System.out.println(\"A\");\n continue;\n }\n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }", "try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int midtermExam = Integer.parseInt(input[0]);\n int finalExam = Integer.parseInt(input[1]);\n int additional = Integer.parseInt(input[2]);\n \n // ????????¨???-1????????????\n if(midtermExam == -1 && finalExam == -1 && additional == -1) {\n break;\n }\n \n // ???????????????????????????????????????????????´????????¶??????F\n if(midtermExam == -1 || finalExam == -1) {\n System.out.println(\"F\");\n continue;\n }\n \n int addScore = midtermExam + finalExam;\n \n // ????¨??????°???30?????????F\n if(addScore < 30) {\n System.out.println(\"F\");\n continue;\n }\n \n // ????¨??????°???30??\\???50????????§D\n // ??????????????????50??\\?????§C\n if(addScore >= 30 && addScore < 50) {\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }\n \n // ????¨??????°???50??\\???65????????§C\n if(addScore >= 50 && addScore < 65) {\n System.out.println(\"C\");\n continue;\n }\n \n // ????¨??????°???65??\\???80????????§B\n if(addScore >= 65 && addScore < 80) {\n System.out.println(\"B\");\n continue;\n }\n \n // ????¨??????°???80??\\?????§A\n if(addScore >= 80) {\n System.out.println(\"A\");\n continue;\n }\n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }", "catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }", "Exception e", "{\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "e.getStackTrace()", "e.getStackTrace", "e", "System.exit(-1)", "System.exit", "System", "-1", "1", "{\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int midtermExam = Integer.parseInt(input[0]);\n int finalExam = Integer.parseInt(input[1]);\n int additional = Integer.parseInt(input[2]);\n \n // ????????¨???-1????????????\n if(midtermExam == -1 && finalExam == -1 && additional == -1) {\n break;\n }\n \n // ???????????????????????????????????????????????´????????¶??????F\n if(midtermExam == -1 || finalExam == -1) {\n System.out.println(\"F\");\n continue;\n }\n \n int addScore = midtermExam + finalExam;\n \n // ????¨??????°???30?????????F\n if(addScore < 30) {\n System.out.println(\"F\");\n continue;\n }\n \n // ????¨??????°???30??\\???50????????§D\n // ??????????????????50??\\?????§C\n if(addScore >= 30 && addScore < 50) {\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }\n \n // ????¨??????°???50??\\???65????????§C\n if(addScore >= 50 && addScore < 65) {\n System.out.println(\"C\");\n continue;\n }\n \n // ????¨??????°???65??\\???80????????§B\n if(addScore >= 65 && addScore < 80) {\n System.out.println(\"B\");\n continue;\n }\n \n // ????¨??????°???80??\\?????§A\n if(addScore >= 80) {\n System.out.println(\"A\");\n continue;\n }\n }\n stdReader.close();\n }", "BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));", "stdReader", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int midtermExam = Integer.parseInt(input[0]);\n int finalExam = Integer.parseInt(input[1]);\n int additional = Integer.parseInt(input[2]);\n \n // ????????¨???-1????????????\n if(midtermExam == -1 && finalExam == -1 && additional == -1) {\n break;\n }\n \n // ???????????????????????????????????????????????´????????¶??????F\n if(midtermExam == -1 || finalExam == -1) {\n System.out.println(\"F\");\n continue;\n }\n \n int addScore = midtermExam + finalExam;\n \n // ????¨??????°???30?????????F\n if(addScore < 30) {\n System.out.println(\"F\");\n continue;\n }\n \n // ????¨??????°???30??\\???50????????§D\n // ??????????????????50??\\?????§C\n if(addScore >= 30 && addScore < 50) {\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }\n \n // ????¨??????°???50??\\???65????????§C\n if(addScore >= 50 && addScore < 65) {\n System.out.println(\"C\");\n continue;\n }\n \n // ????¨??????°???65??\\???80????????§B\n if(addScore >= 65 && addScore < 80) {\n System.out.println(\"B\");\n continue;\n }\n \n // ????¨??????°???80??\\?????§A\n if(addScore >= 80) {\n System.out.println(\"A\");\n continue;\n }\n }", "(line = stdReader.readLine()) != null", "(line = stdReader.readLine())", "line", "stdReader.readLine()", "stdReader.readLine", "stdReader", "null", "{\n String[] input = line.split(\" \", 0);\n int midtermExam = Integer.parseInt(input[0]);\n int finalExam = Integer.parseInt(input[1]);\n int additional = Integer.parseInt(input[2]);\n \n // ????????¨???-1????????????\n if(midtermExam == -1 && finalExam == -1 && additional == -1) {\n break;\n }\n \n // ???????????????????????????????????????????????´????????¶??????F\n if(midtermExam == -1 || finalExam == -1) {\n System.out.println(\"F\");\n continue;\n }\n \n int addScore = midtermExam + finalExam;\n \n // ????¨??????°???30?????????F\n if(addScore < 30) {\n System.out.println(\"F\");\n continue;\n }\n \n // ????¨??????°???30??\\???50????????§D\n // ??????????????????50??\\?????§C\n if(addScore >= 30 && addScore < 50) {\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }\n \n // ????¨??????°???50??\\???65????????§C\n if(addScore >= 50 && addScore < 65) {\n System.out.println(\"C\");\n continue;\n }\n \n // ????¨??????°???65??\\???80????????§B\n if(addScore >= 65 && addScore < 80) {\n System.out.println(\"B\");\n continue;\n }\n \n // ????¨??????°???80??\\?????§A\n if(addScore >= 80) {\n System.out.println(\"A\");\n continue;\n }\n }", "String[] input = line.split(\" \", 0);", "input", "line.split(\" \", 0)", "line.split", "line", "\" \"", "0", "int midtermExam = Integer.parseInt(input[0]);", "midtermExam", "Integer.parseInt(input[0])", "Integer.parseInt", "Integer", "input[0]", "input", "0", "int finalExam = Integer.parseInt(input[1]);", "finalExam", "Integer.parseInt(input[1])", "Integer.parseInt", "Integer", "input[1]", "input", "1", "int additional = Integer.parseInt(input[2]);", "additional", "Integer.parseInt(input[2])", "Integer.parseInt", "Integer", "input[2]", "input", "2", "if(midtermExam == -1 && finalExam == -1 && additional == -1) {\n break;\n }", "midtermExam == -1 && finalExam == -1 && additional == -1", "midtermExam == -1 && finalExam == -1 && additional == -1", "midtermExam == -1", "midtermExam", "-1", "1", "finalExam == -1", "finalExam", "-1", "1", "additional == -1", "additional", "-1", "1", "{\n break;\n }", "break;", "if(midtermExam == -1 || finalExam == -1) {\n System.out.println(\"F\");\n continue;\n }", "midtermExam == -1 || finalExam == -1", "midtermExam == -1", "midtermExam", "-1", "1", "finalExam == -1", "finalExam", "-1", "1", "{\n System.out.println(\"F\");\n continue;\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "continue;", "int addScore = midtermExam + finalExam;", "addScore", "midtermExam + finalExam", "midtermExam", "finalExam", "if(addScore < 30) {\n System.out.println(\"F\");\n continue;\n }", "addScore < 30", "addScore", "30", "{\n System.out.println(\"F\");\n continue;\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "continue;", "if(addScore >= 30 && addScore < 50) {\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }", "addScore >= 30 && addScore < 50", "addScore >= 30", "addScore", "30", "addScore < 50", "addScore", "50", "{\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }", "if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }", "additional >= 50", "additional", "50", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n System.out.println(\"D\");\n }", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "continue;", "if(addScore >= 50 && addScore < 65) {\n System.out.println(\"C\");\n continue;\n }", "addScore >= 50 && addScore < 65", "addScore >= 50", "addScore", "50", "addScore < 65", "addScore", "65", "{\n System.out.println(\"C\");\n continue;\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "continue;", "if(addScore >= 65 && addScore < 80) {\n System.out.println(\"B\");\n continue;\n }", "addScore >= 65 && addScore < 80", "addScore >= 65", "addScore", "65", "addScore < 80", "addScore", "80", "{\n System.out.println(\"B\");\n continue;\n }", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "continue;", "if(addScore >= 80) {\n System.out.println(\"A\");\n continue;\n }", "addScore >= 80", "addScore", "80", "{\n System.out.println(\"A\");\n continue;\n }", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "continue;", "stdReader.close()", "stdReader.close", "stdReader", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int midtermExam = Integer.parseInt(input[0]);\n int finalExam = Integer.parseInt(input[1]);\n int additional = Integer.parseInt(input[2]);\n \n // ????????¨???-1????????????\n if(midtermExam == -1 && finalExam == -1 && additional == -1) {\n break;\n }\n \n // ???????????????????????????????????????????????´????????¶??????F\n if(midtermExam == -1 || finalExam == -1) {\n System.out.println(\"F\");\n continue;\n }\n \n int addScore = midtermExam + finalExam;\n \n // ????¨??????°???30?????????F\n if(addScore < 30) {\n System.out.println(\"F\");\n continue;\n }\n \n // ????¨??????°???30??\\???50????????§D\n // ??????????????????50??\\?????§C\n if(addScore >= 30 && addScore < 50) {\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }\n \n // ????¨??????°???50??\\???65????????§C\n if(addScore >= 50 && addScore < 65) {\n System.out.println(\"C\");\n continue;\n }\n \n // ????¨??????°???65??\\???80????????§B\n if(addScore >= 65 && addScore < 80) {\n System.out.println(\"B\");\n continue;\n }\n \n // ????¨??????°???80??\\?????§A\n if(addScore >= 80) {\n System.out.println(\"A\");\n continue;\n }\n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int midtermExam = Integer.parseInt(input[0]);\n int finalExam = Integer.parseInt(input[1]);\n int additional = Integer.parseInt(input[2]);\n \n // ????????¨???-1????????????\n if(midtermExam == -1 && finalExam == -1 && additional == -1) {\n break;\n }\n \n // ???????????????????????????????????????????????´????????¶??????F\n if(midtermExam == -1 || finalExam == -1) {\n System.out.println(\"F\");\n continue;\n }\n \n int addScore = midtermExam + finalExam;\n \n // ????¨??????°???30?????????F\n if(addScore < 30) {\n System.out.println(\"F\");\n continue;\n }\n \n // ????¨??????°???30??\\???50????????§D\n // ??????????????????50??\\?????§C\n if(addScore >= 30 && addScore < 50) {\n if(additional >= 50) {\n System.out.println(\"C\");\n } else {\n System.out.println(\"D\");\n }\n continue;\n }\n \n // ????¨??????°???50??\\???65????????§C\n if(addScore >= 50 && addScore < 65) {\n System.out.println(\"C\");\n continue;\n }\n \n // ????¨??????°???65??\\???80????????§B\n if(addScore >= 65 && addScore < 80) {\n System.out.println(\"B\");\n continue;\n }\n \n // ????¨??????°???80??\\?????§A\n if(addScore >= 80) {\n System.out.println(\"A\");\n continue;\n }\n }\n stdReader.close();\n } catch(Exception e) {\n System.out.println(e);\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); String line; while((line = stdReader.readLine()) != null) { String[] input = line.split(" ", 0); int midtermExam = Integer.parseInt(input[0]); int finalExam = Integer.parseInt(input[1]); int additional = Integer.parseInt(input[2]); // ????????¨???-1???????????? if(midtermExam == -1 && finalExam == -1 && additional == -1) { break; } // ???????????????????????????????????????????????´????????¶??????F if(midtermExam == -1 || finalExam == -1) { System.out.println("F"); continue; } int addScore = midtermExam + finalExam; // ????¨??????°???30?????????F if(addScore < 30) { System.out.println("F"); continue; } // ????¨??????°???30??\???50????????§D // ??????????????????50??\?????§C if(addScore >= 30 && addScore < 50) { if(additional >= 50) { System.out.println("C"); } else { System.out.println("D"); } continue; } // ????¨??????°???50??\???65????????§C if(addScore >= 50 && addScore < 65) { System.out.println("C"); continue; } // ????¨??????°???65??\???80????????§B if(addScore >= 65 && addScore < 80) { System.out.println("B"); continue; } // ????¨??????°???80??\?????§A if(addScore >= 80) { System.out.println("A"); continue; } } stdReader.close(); } catch(Exception e) { System.out.println(e); e.getStackTrace(); System.exit(-1); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 0, 13, 17, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 41, 13, 17, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 157, 5 ], [ 157, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 17, 19 ], [ 12, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 12, 24 ], [ 25, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 25, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 25, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 25, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 25, 61 ], [ 61, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 63, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 61, 76 ], [ 76, 77 ], [ 25, 78 ], [ 78, 79 ], [ 78, 80 ], [ 25, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 81, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 95, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 95, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 105, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 105, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 115, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 115, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 125, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 132, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 125, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 25, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 6, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int m = Integer.parseInt(l[0]);\n int f = Integer.parseInt(l[1]);\n int r = Integer.parseInt(l[2]);\n\n if(m == -1 && f == -1 && r == -1) {\n break;\n }\n\n char c = 0;\n if(m == -1 || f == -1) {\n c = 'F';\n } else if(m + f >= 80) {\n c = 'A';\n } else if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }\n\n System.out.println(c);\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\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int m = Integer.parseInt(l[0]);\n int f = Integer.parseInt(l[1]);\n int r = Integer.parseInt(l[2]);\n\n if(m == -1 && f == -1 && r == -1) {\n break;\n }\n\n char c = 0;\n if(m == -1 || f == -1) {\n c = 'F';\n } else if(m + f >= 80) {\n c = 'A';\n } else if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }\n\n System.out.println(c);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int m = Integer.parseInt(l[0]);\n int f = Integer.parseInt(l[1]);\n int r = Integer.parseInt(l[2]);\n\n if(m == -1 && f == -1 && r == -1) {\n break;\n }\n\n char c = 0;\n if(m == -1 || f == -1) {\n c = 'F';\n } else if(m + f >= 80) {\n c = 'A';\n } else if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }\n\n System.out.println(c);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int m = Integer.parseInt(l[0]);\n int f = Integer.parseInt(l[1]);\n int r = Integer.parseInt(l[2]);\n\n if(m == -1 && f == -1 && r == -1) {\n break;\n }\n\n char c = 0;\n if(m == -1 || f == -1) {\n c = 'F';\n } else if(m + f >= 80) {\n c = 'A';\n } else if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }\n\n System.out.println(c);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int m = Integer.parseInt(l[0]);\n int f = Integer.parseInt(l[1]);\n int r = Integer.parseInt(l[2]);\n\n if(m == -1 && f == -1 && r == -1) {\n break;\n }\n\n char c = 0;\n if(m == -1 || f == -1) {\n c = 'F';\n } else if(m + f >= 80) {\n c = 'A';\n } else if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }\n\n System.out.println(c);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 1", "i", "1", "i = 0", "i = 0", "i", "0", "{\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int m = Integer.parseInt(l[0]);\n int f = Integer.parseInt(l[1]);\n int r = Integer.parseInt(l[2]);\n\n if(m == -1 && f == -1 && r == -1) {\n break;\n }\n\n char c = 0;\n if(m == -1 || f == -1) {\n c = 'F';\n } else if(m + f >= 80) {\n c = 'A';\n } else if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }\n\n System.out.println(c);\n }", "{\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int m = Integer.parseInt(l[0]);\n int f = Integer.parseInt(l[1]);\n int r = Integer.parseInt(l[2]);\n\n if(m == -1 && f == -1 && r == -1) {\n break;\n }\n\n char c = 0;\n if(m == -1 || f == -1) {\n c = 'F';\n } else if(m + f >= 80) {\n c = 'A';\n } else if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }\n\n System.out.println(c);\n }", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "String[] l = line.split(\" \");", "l", "line.split(\" \")", "line.split", "line", "\" \"", "int m = Integer.parseInt(l[0]);", "m", "Integer.parseInt(l[0])", "Integer.parseInt", "Integer", "l[0]", "l", "0", "int f = Integer.parseInt(l[1]);", "f", "Integer.parseInt(l[1])", "Integer.parseInt", "Integer", "l[1]", "l", "1", "int r = Integer.parseInt(l[2]);", "r", "Integer.parseInt(l[2])", "Integer.parseInt", "Integer", "l[2]", "l", "2", "if(m == -1 && f == -1 && r == -1) {\n break;\n }", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n break;\n }", "break;", "char c = 0;", "c", "0", "if(m == -1 || f == -1) {\n c = 'F';\n } else if(m + f >= 80) {\n c = 'A';\n } else if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n c = 'F';\n }", "c = 'F'", "c", "'F'", "if(m + f >= 80) {\n c = 'A';\n } else if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }", "m + f >= 80", "m + f", "m", "f", "80", "{\n c = 'A';\n }", "c = 'A'", "c", "'A'", "if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }", "m + f >= 65", "m + f", "m", "f", "65", "{\n c = 'B';\n }", "c = 'B'", "c", "'B'", "if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }", "m + f >= 50", "m + f", "m", "f", "50", "{\n c = 'C';\n }", "c = 'C'", "c", "'C'", "if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }", "m + f >= 30", "m + f", "m", "f", "30", "{\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n }", "if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }", "r >= 50", "r", "50", "{\n c = 'C';\n }", "c = 'C'", "c", "'C'", "{\n c = 'D';\n }", "c = 'D'", "c", "'D'", "{\n c = 'F';\n }", "c = 'F'", "c", "'F'", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int m = Integer.parseInt(l[0]);\n int f = Integer.parseInt(l[1]);\n int r = Integer.parseInt(l[2]);\n\n if(m == -1 && f == -1 && r == -1) {\n break;\n }\n\n char c = 0;\n if(m == -1 || f == -1) {\n c = 'F';\n } else if(m + f >= 80) {\n c = 'A';\n } else if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }\n\n System.out.println(c);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 1; i = 0) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int m = Integer.parseInt(l[0]);\n int f = Integer.parseInt(l[1]);\n int r = Integer.parseInt(l[2]);\n\n if(m == -1 && f == -1 && r == -1) {\n break;\n }\n\n char c = 0;\n if(m == -1 || f == -1) {\n c = 'F';\n } else if(m + f >= 80) {\n c = 'A';\n } else if(m + f >= 65) {\n c = 'B';\n } else if(m + f >= 50) {\n c = 'C';\n } else if(m + f >= 30) {\n if(r >= 50) {\n c = 'C';\n } else {\n c = 'D';\n }\n } else {\n c = 'F';\n }\n\n System.out.println(c);\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for(int i = 0; i < 1; i = 0) { String line = sc.nextLine(); String[] l = line.split(" "); int m = Integer.parseInt(l[0]); int f = Integer.parseInt(l[1]); int r = Integer.parseInt(l[2]); if(m == -1 && f == -1 && r == -1) { break; } char c = 0; if(m == -1 || f == -1) { c = 'F'; } else if(m + f >= 80) { c = 'A'; } else if(m + f >= 65) { c = 'B'; } else if(m + f >= 50) { c = 'C'; } else if(m + f >= 30) { if(r >= 50) { c = 'C'; } else { c = 'D'; } } else { c = 'F'; } System.out.println(c); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 17, 9, 41, 13, 8, 2, 13, 17, 13, 17, 0, 13, 8, 2, 13, 17, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 160, 17 ], [ 160, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 31, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 39, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 51, 53 ], [ 39, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 39, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 39, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 78, 83 ], [ 39, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 86, 91 ], [ 39, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 94, 99 ], [ 39, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 100, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 109, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 118, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 132, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 127, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 39, 151 ], [ 151, 152 ], [ 152, 153 ], [ 20, 154 ], [ 154, 155 ], [ 155, 156 ], [ 18, 157 ], [ 157, 158 ], [ 0, 159 ], [ 159, 160 ], [ 159, 161 ] ]
[ "import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.IOException;\n\npublic class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"-1 -1 -1\")) {\n String[] st = input.split(\" \");\n int m = Integer.parseInt(st[0]);\n int f = Integer.parseInt(st[1]);\n int r = Integer.parseInt(st[2]);\n if (m < 0 || f < 0) {\n bw.append(\"F\\n\");\n continue;\n }\n\n int score = (m > 0 ? m : 0);\n score += (f > 0 ? f : 0);\n\n if (score >= 80) {\n bw.append(\"A\");\n } else if (score >= 65) {\n bw.append(\"B\");\n } else if (score >= 50) {\n bw.append(\"C\");\n } else if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }\n bw.newLine();\n }\n bw.flush();\n }\n\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.BufferedWriter;", "BufferedWriter", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.OutputStreamWriter;", "OutputStreamWriter", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"-1 -1 -1\")) {\n String[] st = input.split(\" \");\n int m = Integer.parseInt(st[0]);\n int f = Integer.parseInt(st[1]);\n int r = Integer.parseInt(st[2]);\n if (m < 0 || f < 0) {\n bw.append(\"F\\n\");\n continue;\n }\n\n int score = (m > 0 ? m : 0);\n score += (f > 0 ? f : 0);\n\n if (score >= 80) {\n bw.append(\"A\");\n } else if (score >= 65) {\n bw.append(\"B\");\n } else if (score >= 50) {\n bw.append(\"C\");\n } else if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }\n bw.newLine();\n }\n bw.flush();\n }\n\n\n}", "Main", "public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"-1 -1 -1\")) {\n String[] st = input.split(\" \");\n int m = Integer.parseInt(st[0]);\n int f = Integer.parseInt(st[1]);\n int r = Integer.parseInt(st[2]);\n if (m < 0 || f < 0) {\n bw.append(\"F\\n\");\n continue;\n }\n\n int score = (m > 0 ? m : 0);\n score += (f > 0 ? f : 0);\n\n if (score >= 80) {\n bw.append(\"A\");\n } else if (score >= 65) {\n bw.append(\"B\");\n } else if (score >= 50) {\n bw.append(\"C\");\n } else if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }\n bw.newLine();\n }\n bw.flush();\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"-1 -1 -1\")) {\n String[] st = input.split(\" \");\n int m = Integer.parseInt(st[0]);\n int f = Integer.parseInt(st[1]);\n int r = Integer.parseInt(st[2]);\n if (m < 0 || f < 0) {\n bw.append(\"F\\n\");\n continue;\n }\n\n int score = (m > 0 ? m : 0);\n score += (f > 0 ? f : 0);\n\n if (score >= 80) {\n bw.append(\"A\");\n } else if (score >= 65) {\n bw.append(\"B\");\n } else if (score >= 50) {\n bw.append(\"C\");\n } else if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }\n bw.newLine();\n }\n bw.flush();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));", "bw", "new BufferedWriter(new OutputStreamWriter(System.out))", "String input;", "input", "while (!(input = br.readLine()).equals(\"-1 -1 -1\")) {\n String[] st = input.split(\" \");\n int m = Integer.parseInt(st[0]);\n int f = Integer.parseInt(st[1]);\n int r = Integer.parseInt(st[2]);\n if (m < 0 || f < 0) {\n bw.append(\"F\\n\");\n continue;\n }\n\n int score = (m > 0 ? m : 0);\n score += (f > 0 ? f : 0);\n\n if (score >= 80) {\n bw.append(\"A\");\n } else if (score >= 65) {\n bw.append(\"B\");\n } else if (score >= 50) {\n bw.append(\"C\");\n } else if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }\n bw.newLine();\n }", "!(input = br.readLine()).equals(\"-1 -1 -1\")", "(input = br.readLine()).equals(\"-1 -1 -1\")", "(input = br.readLine()).equals", "(input = br.readLine())", "input", "br.readLine()", "br.readLine", "br", "\"-1 -1 -1\"", "{\n String[] st = input.split(\" \");\n int m = Integer.parseInt(st[0]);\n int f = Integer.parseInt(st[1]);\n int r = Integer.parseInt(st[2]);\n if (m < 0 || f < 0) {\n bw.append(\"F\\n\");\n continue;\n }\n\n int score = (m > 0 ? m : 0);\n score += (f > 0 ? f : 0);\n\n if (score >= 80) {\n bw.append(\"A\");\n } else if (score >= 65) {\n bw.append(\"B\");\n } else if (score >= 50) {\n bw.append(\"C\");\n } else if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }\n bw.newLine();\n }", "String[] st = input.split(\" \");", "st", "input.split(\" \")", "input.split", "input", "\" \"", "int m = Integer.parseInt(st[0]);", "m", "Integer.parseInt(st[0])", "Integer.parseInt", "Integer", "st[0]", "st", "0", "int f = Integer.parseInt(st[1]);", "f", "Integer.parseInt(st[1])", "Integer.parseInt", "Integer", "st[1]", "st", "1", "int r = Integer.parseInt(st[2]);", "r", "Integer.parseInt(st[2])", "Integer.parseInt", "Integer", "st[2]", "st", "2", "if (m < 0 || f < 0) {\n bw.append(\"F\\n\");\n continue;\n }", "m < 0 || f < 0", "m < 0", "m", "0", "f < 0", "f", "0", "{\n bw.append(\"F\\n\");\n continue;\n }", "bw.append(\"F\\n\")", "bw.append", "bw", "\"F\\n\"", "continue;", "int score = (m > 0 ? m : 0);", "score", "(m > 0 ? m : 0)", "m > 0", "m", "0", "m", "0", "score += (f > 0 ? f : 0)", "score", "(f > 0 ? f : 0)", "f > 0", "f", "0", "f", "0", "if (score >= 80) {\n bw.append(\"A\");\n } else if (score >= 65) {\n bw.append(\"B\");\n } else if (score >= 50) {\n bw.append(\"C\");\n } else if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }", "score >= 80", "score", "80", "{\n bw.append(\"A\");\n }", "bw.append(\"A\")", "bw.append", "bw", "\"A\"", "if (score >= 65) {\n bw.append(\"B\");\n } else if (score >= 50) {\n bw.append(\"C\");\n } else if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }", "score >= 65", "score", "65", "{\n bw.append(\"B\");\n }", "bw.append(\"B\")", "bw.append", "bw", "\"B\"", "if (score >= 50) {\n bw.append(\"C\");\n } else if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }", "score >= 50", "score", "50", "{\n bw.append(\"C\");\n }", "bw.append(\"C\")", "bw.append", "bw", "\"C\"", "if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }", "score >= 30", "score", "30", "{\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n }", "if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }", "r >= 50", "r", "50", "{\n bw.append(\"C\");\n }", "bw.append(\"C\")", "bw.append", "bw", "\"C\"", "{\n bw.append(\"D\");\n }", "bw.append(\"D\")", "bw.append", "bw", "\"D\"", "{\n bw.append(\"F\");\n }", "bw.append(\"F\")", "bw.append", "bw", "\"F\"", "bw.newLine()", "bw.newLine", "bw", "bw.flush()", "bw.flush", "bw", "String args[]", "args", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"-1 -1 -1\")) {\n String[] st = input.split(\" \");\n int m = Integer.parseInt(st[0]);\n int f = Integer.parseInt(st[1]);\n int r = Integer.parseInt(st[2]);\n if (m < 0 || f < 0) {\n bw.append(\"F\\n\");\n continue;\n }\n\n int score = (m > 0 ? m : 0);\n score += (f > 0 ? f : 0);\n\n if (score >= 80) {\n bw.append(\"A\");\n } else if (score >= 65) {\n bw.append(\"B\");\n } else if (score >= 50) {\n bw.append(\"C\");\n } else if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }\n bw.newLine();\n }\n bw.flush();\n }\n\n\n}", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String input;\n while (!(input = br.readLine()).equals(\"-1 -1 -1\")) {\n String[] st = input.split(\" \");\n int m = Integer.parseInt(st[0]);\n int f = Integer.parseInt(st[1]);\n int r = Integer.parseInt(st[2]);\n if (m < 0 || f < 0) {\n bw.append(\"F\\n\");\n continue;\n }\n\n int score = (m > 0 ? m : 0);\n score += (f > 0 ? f : 0);\n\n if (score >= 80) {\n bw.append(\"A\");\n } else if (score >= 65) {\n bw.append(\"B\");\n } else if (score >= 50) {\n bw.append(\"C\");\n } else if (score >= 30) {\n if (r >= 50) {\n bw.append(\"C\");\n } else {\n bw.append(\"D\");\n }\n } else {\n bw.append(\"F\");\n }\n bw.newLine();\n }\n bw.flush();\n }\n\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.IOException; public class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); String input; while (!(input = br.readLine()).equals("-1 -1 -1")) { String[] st = input.split(" "); int m = Integer.parseInt(st[0]); int f = Integer.parseInt(st[1]); int r = Integer.parseInt(st[2]); if (m < 0 || f < 0) { bw.append("F\n"); continue; } int score = (m > 0 ? m : 0); score += (f > 0 ? f : 0); if (score >= 80) { bw.append("A"); } else if (score >= 65) { bw.append("B"); } else if (score >= 50) { bw.append("C"); } else if (score >= 30) { if (r >= 50) { bw.append("C"); } else { bw.append("D"); } } else { bw.append("F"); } bw.newLine(); } bw.flush(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 40, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 187, 5 ], [ 187, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 22, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 41, 43 ], [ 14, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 14, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 63, 73 ], [ 73, 74 ], [ 63, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 52, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 82, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 96, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 82, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 116, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 115, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 82, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 135, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 134, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 147, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 82, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 166, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 165, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 178, 183 ], [ 6, 184 ], [ 184, 185 ], [ 0, 186 ], [ 186, 187 ], [ 186, 188 ] ]
[ "import java.io.*;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tString[] sarray = line.split(\" \", -1);\n\t\t\tint m = Integer.parseInt(sarray[0]);\n\t\t\tint f = Integer.parseInt(sarray[1]);\n\t\t\tint r = Integer.parseInt(sarray[2]);\n\t\t\t\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tif(m == -1 && f == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif((m + f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 65 && (m + f) < 80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 50 && (m + f) < 65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 30 && (m + f) < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 0 && (m + f) < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tString[] sarray = line.split(\" \", -1);\n\t\t\tint m = Integer.parseInt(sarray[0]);\n\t\t\tint f = Integer.parseInt(sarray[1]);\n\t\t\tint r = Integer.parseInt(sarray[2]);\n\t\t\t\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tif(m == -1 && f == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif((m + f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 65 && (m + f) < 80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 50 && (m + f) < 65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 30 && (m + f) < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 0 && (m + f) < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tString[] sarray = line.split(\" \", -1);\n\t\t\tint m = Integer.parseInt(sarray[0]);\n\t\t\tint f = Integer.parseInt(sarray[1]);\n\t\t\tint r = Integer.parseInt(sarray[2]);\n\t\t\t\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tif(m == -1 && f == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif((m + f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 65 && (m + f) < 80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 50 && (m + f) < 65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 30 && (m + f) < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 0 && (m + f) < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tString[] sarray = line.split(\" \", -1);\n\t\t\tint m = Integer.parseInt(sarray[0]);\n\t\t\tint f = Integer.parseInt(sarray[1]);\n\t\t\tint r = Integer.parseInt(sarray[2]);\n\t\t\t\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tif(m == -1 && f == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif((m + f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 65 && (m + f) < 80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 50 && (m + f) < 65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 30 && (m + f) < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 0 && (m + f) < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tString line = reader.readLine();\n\t\t\tString[] sarray = line.split(\" \", -1);\n\t\t\tint m = Integer.parseInt(sarray[0]);\n\t\t\tint f = Integer.parseInt(sarray[1]);\n\t\t\tint r = Integer.parseInt(sarray[2]);\n\t\t\t\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tif(m == -1 && f == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif((m + f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 65 && (m + f) < 80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 50 && (m + f) < 65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 30 && (m + f) < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 0 && (m + f) < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString line = reader.readLine();\n\t\t\tString[] sarray = line.split(\" \", -1);\n\t\t\tint m = Integer.parseInt(sarray[0]);\n\t\t\tint f = Integer.parseInt(sarray[1]);\n\t\t\tint r = Integer.parseInt(sarray[2]);\n\t\t\t\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tif(m == -1 && f == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif((m + f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 65 && (m + f) < 80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 50 && (m + f) < 65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 30 && (m + f) < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 0 && (m + f) < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String line = reader.readLine();", "line", "reader.readLine()", "reader.readLine", "reader", "String[] sarray = line.split(\" \", -1);", "sarray", "line.split(\" \", -1)", "line.split", "line", "\" \"", "-1", "1", "int m = Integer.parseInt(sarray[0]);", "m", "Integer.parseInt(sarray[0])", "Integer.parseInt", "Integer", "sarray[0]", "sarray", "0", "int f = Integer.parseInt(sarray[1]);", "f", "Integer.parseInt(sarray[1])", "Integer.parseInt", "Integer", "sarray[1]", "sarray", "1", "int r = Integer.parseInt(sarray[2]);", "r", "Integer.parseInt(sarray[2])", "Integer.parseInt", "Integer", "sarray[2]", "sarray", "2", "if(m == -1 || f == -1){\n\t\t\t\tif(m == -1 && f == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif((m + f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 65 && (m + f) < 80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 50 && (m + f) < 65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 30 && (m + f) < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 0 && (m + f) < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\tif(m == -1 && f == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}", "if(m == -1 && f == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m == -1 && f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "{\n\t\t\t\tif((m + f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 65 && (m + f) < 80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 50 && (m + f) < 65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 30 && (m + f) < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 0 && (m + f) < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}", "if((m + f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "(m + f) >= 80", "(m + f)", "m", "f", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if((m + f) >= 65 && (m + f) < 80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}", "(m + f) >= 65 && (m + f) < 80", "(m + f) >= 65", "(m + f)", "m", "f", "65", "(m + f) < 80", "(m + f)", "m", "f", "80", "{\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if((m + f) >= 50 && (m + f) < 65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "(m + f) >= 50 && (m + f) < 65", "(m + f) >= 50", "(m + f)", "m", "f", "50", "(m + f) < 65", "(m + f)", "m", "f", "65", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if((m + f) >= 30 && (m + f) < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}", "(m + f) >= 30 && (m + f) < 50", "(m + f) >= 30", "(m + f)", "m", "f", "30", "(m + f) < 50", "(m + f)", "m", "f", "50", "{\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if((m + f) >= 0 && (m + f) < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "(m + f) >= 0 && (m + f) < 30", "(m + f) >= 0", "(m + f)", "m", "f", "0", "(m + f) < 30", "(m + f)", "m", "f", "30", "{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tString[] sarray = line.split(\" \", -1);\n\t\t\tint m = Integer.parseInt(sarray[0]);\n\t\t\tint f = Integer.parseInt(sarray[1]);\n\t\t\tint r = Integer.parseInt(sarray[2]);\n\t\t\t\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tif(m == -1 && f == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif((m + f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 65 && (m + f) < 80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 50 && (m + f) < 65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 30 && (m + f) < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 0 && (m + f) < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = reader.readLine();\n\t\t\tString[] sarray = line.split(\" \", -1);\n\t\t\tint m = Integer.parseInt(sarray[0]);\n\t\t\tint f = Integer.parseInt(sarray[1]);\n\t\t\tint r = Integer.parseInt(sarray[2]);\n\t\t\t\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tif(m == -1 && f == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif((m + f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 65 && (m + f) < 80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 50 && (m + f) < 65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 30 && (m + f) < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif((m + f) >= 0 && (m + f) < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); while(true){ String line = reader.readLine(); String[] sarray = line.split(" ", -1); int m = Integer.parseInt(sarray[0]); int f = Integer.parseInt(sarray[1]); int r = Integer.parseInt(sarray[2]); if(m == -1 || f == -1){ if(m == -1 && f == -1){ break; }else{ System.out.println("F"); } }else{ if((m + f) >= 80){ System.out.println("A"); } if((m + f) >= 65 && (m + f) < 80){ System.out.println("B"); } if((m + f) >= 50 && (m + f) < 65){ System.out.println("C"); } if((m + f) >= 30 && (m + f) < 50){ if(r >= 50){ System.out.println("C"); }else{ System.out.println("D"); } } if((m + f) >= 0 && (m + f) < 30){ System.out.println("F"); } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 17, 41, 13, 17, 41, 13, 42, 17, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 14, 2, 2, 4, 18, 17, 18, 13, 17, 4, 18, 17, 18, 13, 17, 4, 18, 17, 18, 13, 17, 30, 3, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 14, 2, 2, 40, 17, 18, 13, 13, 2, 17, 13, 30, 0, 13, 18, 13, 13, 14, 2, 2, 2, 13, 17, 2, 40, 17, 18, 13, 17, 2, 40, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 17, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 14, 2, 17, 18, 13, 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 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 22, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 34, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 34, 46 ], [ 46, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 48, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 48, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 46, 67 ], [ 67, 68 ], [ 34, 69 ], [ 69, 70 ], [ 69, 71 ], [ 34, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 72, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 92, 94 ], [ 84, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 100, 102 ], [ 96, 103 ], [ 103, 104 ], [ 103, 105 ], [ 95, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 34, 112 ], [ 112, 113 ], [ 114, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 127, 128 ], [ 127, 129 ], [ 112, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 112, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 137, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 153, 155 ], [ 148, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 148, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 168, 169 ], [ 168, 170 ], [ 163, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 172, 177 ], [ 163, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 183, 184 ], [ 183, 185 ], [ 178, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 190, 192 ], [ 187, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 194, 199 ], [ 187, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 201, 206 ], [ 6, 207 ], [ 207, 208 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\n\t\t\tint[] mfr= new int[5];\n\t\t\tint sum=0;\n\t\t\tString[] tmpArray;\t\n\t\t\twhile( true ) {\n\t\t\t\tString str = kb.readLine();\n\t\t\t\ttmpArray = str.split( \" \" );\n\t\t\t\tif( \"-1\".equals( tmpArray[0] ) && \"-1\".equals( tmpArray[1] ) \n\t\t\t\t\t\t&& \"-1\".equals( tmpArray[2] ) ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsum=0;\n\t\t\t\tfor( int i=0; i<3; i++ ) {\n\t\t\t\t\tmfr[i]=Integer.parseInt( tmpArray[i] );\n\t\t\t\t\tif( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif( sum<30 || -1==mfr[0] || -1==mfr[1] ) {\n\t\t\t\t\tSystem.out.println( \"F\" );\n\t\t\t\t} else if( 80 <= sum ) {\n\t\t\t\t\tSystem.out.println( \"A\" );\n\t\t\t\t} else if( 65<=sum && sum<80 ) {\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t} else if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\n\t\t\tint[] mfr= new int[5];\n\t\t\tint sum=0;\n\t\t\tString[] tmpArray;\t\n\t\t\twhile( true ) {\n\t\t\t\tString str = kb.readLine();\n\t\t\t\ttmpArray = str.split( \" \" );\n\t\t\t\tif( \"-1\".equals( tmpArray[0] ) && \"-1\".equals( tmpArray[1] ) \n\t\t\t\t\t\t&& \"-1\".equals( tmpArray[2] ) ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsum=0;\n\t\t\t\tfor( int i=0; i<3; i++ ) {\n\t\t\t\t\tmfr[i]=Integer.parseInt( tmpArray[i] );\n\t\t\t\t\tif( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif( sum<30 || -1==mfr[0] || -1==mfr[1] ) {\n\t\t\t\t\tSystem.out.println( \"F\" );\n\t\t\t\t} else if( 80 <= sum ) {\n\t\t\t\t\tSystem.out.println( \"A\" );\n\t\t\t\t} else if( 65<=sum && sum<80 ) {\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t} else if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\n\t\t\tint[] mfr= new int[5];\n\t\t\tint sum=0;\n\t\t\tString[] tmpArray;\t\n\t\t\twhile( true ) {\n\t\t\t\tString str = kb.readLine();\n\t\t\t\ttmpArray = str.split( \" \" );\n\t\t\t\tif( \"-1\".equals( tmpArray[0] ) && \"-1\".equals( tmpArray[1] ) \n\t\t\t\t\t\t&& \"-1\".equals( tmpArray[2] ) ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsum=0;\n\t\t\t\tfor( int i=0; i<3; i++ ) {\n\t\t\t\t\tmfr[i]=Integer.parseInt( tmpArray[i] );\n\t\t\t\t\tif( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif( sum<30 || -1==mfr[0] || -1==mfr[1] ) {\n\t\t\t\t\tSystem.out.println( \"F\" );\n\t\t\t\t} else if( 80 <= sum ) {\n\t\t\t\t\tSystem.out.println( \"A\" );\n\t\t\t\t} else if( 65<=sum && sum<80 ) {\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t} else if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\n\t\t\tint[] mfr= new int[5];\n\t\t\tint sum=0;\n\t\t\tString[] tmpArray;\t\n\t\t\twhile( true ) {\n\t\t\t\tString str = kb.readLine();\n\t\t\t\ttmpArray = str.split( \" \" );\n\t\t\t\tif( \"-1\".equals( tmpArray[0] ) && \"-1\".equals( tmpArray[1] ) \n\t\t\t\t\t\t&& \"-1\".equals( tmpArray[2] ) ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsum=0;\n\t\t\t\tfor( int i=0; i<3; i++ ) {\n\t\t\t\t\tmfr[i]=Integer.parseInt( tmpArray[i] );\n\t\t\t\t\tif( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif( sum<30 || -1==mfr[0] || -1==mfr[1] ) {\n\t\t\t\t\tSystem.out.println( \"F\" );\n\t\t\t\t} else if( 80 <= sum ) {\n\t\t\t\t\tSystem.out.println( \"A\" );\n\t\t\t\t} else if( 65<=sum && sum<80 ) {\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t} else if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );", "kb", "new BufferedReader( new InputStreamReader( System.in ) )", "try {\n\t\t\n\t\t\tint[] mfr= new int[5];\n\t\t\tint sum=0;\n\t\t\tString[] tmpArray;\t\n\t\t\twhile( true ) {\n\t\t\t\tString str = kb.readLine();\n\t\t\t\ttmpArray = str.split( \" \" );\n\t\t\t\tif( \"-1\".equals( tmpArray[0] ) && \"-1\".equals( tmpArray[1] ) \n\t\t\t\t\t\t&& \"-1\".equals( tmpArray[2] ) ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsum=0;\n\t\t\t\tfor( int i=0; i<3; i++ ) {\n\t\t\t\t\tmfr[i]=Integer.parseInt( tmpArray[i] );\n\t\t\t\t\tif( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif( sum<30 || -1==mfr[0] || -1==mfr[1] ) {\n\t\t\t\t\tSystem.out.println( \"F\" );\n\t\t\t\t} else if( 80 <= sum ) {\n\t\t\t\t\tSystem.out.println( \"A\" );\n\t\t\t\t} else if( 65<=sum && sum<80 ) {\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t} else if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}", "catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}", "IOException e", "{\n\t\t\tSystem.err.println( e );\n\t\t}", "System.err.println( e )", "System.err.println", "System.err", "System", "System.err", "e", "{\n\t\t\n\t\t\tint[] mfr= new int[5];\n\t\t\tint sum=0;\n\t\t\tString[] tmpArray;\t\n\t\t\twhile( true ) {\n\t\t\t\tString str = kb.readLine();\n\t\t\t\ttmpArray = str.split( \" \" );\n\t\t\t\tif( \"-1\".equals( tmpArray[0] ) && \"-1\".equals( tmpArray[1] ) \n\t\t\t\t\t\t&& \"-1\".equals( tmpArray[2] ) ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsum=0;\n\t\t\t\tfor( int i=0; i<3; i++ ) {\n\t\t\t\t\tmfr[i]=Integer.parseInt( tmpArray[i] );\n\t\t\t\t\tif( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif( sum<30 || -1==mfr[0] || -1==mfr[1] ) {\n\t\t\t\t\tSystem.out.println( \"F\" );\n\t\t\t\t} else if( 80 <= sum ) {\n\t\t\t\t\tSystem.out.println( \"A\" );\n\t\t\t\t} else if( 65<=sum && sum<80 ) {\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t} else if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int[] mfr= new int[5];", "mfr", "new int[5]", "5", "int sum=0;", "sum", "0", "String[] tmpArray;", "tmpArray", "while( true ) {\n\t\t\t\tString str = kb.readLine();\n\t\t\t\ttmpArray = str.split( \" \" );\n\t\t\t\tif( \"-1\".equals( tmpArray[0] ) && \"-1\".equals( tmpArray[1] ) \n\t\t\t\t\t\t&& \"-1\".equals( tmpArray[2] ) ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsum=0;\n\t\t\t\tfor( int i=0; i<3; i++ ) {\n\t\t\t\t\tmfr[i]=Integer.parseInt( tmpArray[i] );\n\t\t\t\t\tif( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif( sum<30 || -1==mfr[0] || -1==mfr[1] ) {\n\t\t\t\t\tSystem.out.println( \"F\" );\n\t\t\t\t} else if( 80 <= sum ) {\n\t\t\t\t\tSystem.out.println( \"A\" );\n\t\t\t\t} else if( 65<=sum && sum<80 ) {\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t} else if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "true", "{\n\t\t\t\tString str = kb.readLine();\n\t\t\t\ttmpArray = str.split( \" \" );\n\t\t\t\tif( \"-1\".equals( tmpArray[0] ) && \"-1\".equals( tmpArray[1] ) \n\t\t\t\t\t\t&& \"-1\".equals( tmpArray[2] ) ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tsum=0;\n\t\t\t\tfor( int i=0; i<3; i++ ) {\n\t\t\t\t\tmfr[i]=Integer.parseInt( tmpArray[i] );\n\t\t\t\t\tif( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif( sum<30 || -1==mfr[0] || -1==mfr[1] ) {\n\t\t\t\t\tSystem.out.println( \"F\" );\n\t\t\t\t} else if( 80 <= sum ) {\n\t\t\t\t\tSystem.out.println( \"A\" );\n\t\t\t\t} else if( 65<=sum && sum<80 ) {\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t} else if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "String str = kb.readLine();", "str", "kb.readLine()", "kb.readLine", "kb", "tmpArray = str.split( \" \" )", "tmpArray", "str.split( \" \" )", "str.split", "str", "\" \"", "if( \"-1\".equals( tmpArray[0] ) && \"-1\".equals( tmpArray[1] ) \n\t\t\t\t\t\t&& \"-1\".equals( tmpArray[2] ) ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "\"-1\".equals( tmpArray[0] ) && \"-1\".equals( tmpArray[1] ) \n\t\t\t\t\t\t&& \"-1\".equals( tmpArray[2] )", "\"-1\".equals( tmpArray[0] ) && \"-1\".equals( tmpArray[1] ) \n\t\t\t\t\t\t&& \"-1\".equals( tmpArray[2] )", "\"-1\".equals( tmpArray[0] )", "\"-1\".equals", "\"-1\"", "tmpArray[0]", "tmpArray", "0", "\"-1\".equals( tmpArray[1] )", "\"-1\".equals", "\"-1\"", "tmpArray[1]", "tmpArray", "1", "\"-1\".equals( tmpArray[2] )", "\"-1\".equals", "\"-1\"", "tmpArray[2]", "tmpArray", "2", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "sum=0", "sum", "0", "for( int i=0; i<3; i++ ) {\n\t\t\t\t\tmfr[i]=Integer.parseInt( tmpArray[i] );\n\t\t\t\t\tif( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}\n\t\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n\t\t\t\t\tmfr[i]=Integer.parseInt( tmpArray[i] );\n\t\t\t\t\tif( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tmfr[i]=Integer.parseInt( tmpArray[i] );\n\t\t\t\t\tif( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}\n\t\t\t\t}", "mfr[i]=Integer.parseInt( tmpArray[i] )", "mfr[i]", "mfr", "i", "Integer.parseInt( tmpArray[i] )", "Integer.parseInt", "Integer", "tmpArray[i]", "tmpArray", "i", "if( -1 != mfr[i] && 2 != i ) {\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}", "-1 != mfr[i] && 2 != i", "-1 != mfr[i]", "-1", "1", "mfr[i]", "mfr", "i", "2 != i", "2", "i", "{\n\t\t\t\t\t\tsum+=mfr[i];\n\t\t\t\t\t}", "sum+=mfr[i]", "sum", "mfr[i]", "mfr", "i", "if( sum<30 || -1==mfr[0] || -1==mfr[1] ) {\n\t\t\t\t\tSystem.out.println( \"F\" );\n\t\t\t\t} else if( 80 <= sum ) {\n\t\t\t\t\tSystem.out.println( \"A\" );\n\t\t\t\t} else if( 65<=sum && sum<80 ) {\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t} else if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}", "sum<30 || -1==mfr[0] || -1==mfr[1]", "sum<30 || -1==mfr[0] || -1==mfr[1]", "sum<30", "sum", "30", "-1==mfr[0]", "-1", "1", "mfr[0]", "mfr", "0", "-1==mfr[1]", "-1", "1", "mfr[1]", "mfr", "1", "{\n\t\t\t\t\tSystem.out.println( \"F\" );\n\t\t\t\t}", "System.out.println( \"F\" )", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if( 80 <= sum ) {\n\t\t\t\t\tSystem.out.println( \"A\" );\n\t\t\t\t} else if( 65<=sum && sum<80 ) {\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t} else if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}", "80 <= sum", "80", "sum", "{\n\t\t\t\t\tSystem.out.println( \"A\" );\n\t\t\t\t}", "System.out.println( \"A\" )", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if( 65<=sum && sum<80 ) {\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t} else if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}", "65<=sum && sum<80", "65<=sum", "65", "sum", "sum<80", "sum", "80", "{\n\t\t\t\t\tSystem.out.println( \"B\" );\n\t\t\t\t}", "System.out.println( \"B\" )", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if( 50<=sum && sum<65 ) {\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t} else if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}", "50<=sum && sum<65", "50<=sum", "50", "sum", "sum<65", "sum", "65", "{\n\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t}", "System.out.println( \"C\" )", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if( 30<=sum && sum<50 ) {\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}", "30<=sum && sum<50", "30<=sum", "30", "sum", "sum<50", "sum", "50", "{\n\t\t\t\t\tif( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}\n\t\t\t\t}", "if( 50<=mfr[2] ) {\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}", "50<=mfr[2]", "50", "mfr[2]", "mfr", "2", "{\n\t\t\t\t\t\tSystem.out.println( \"C\" );\n\t\t\t\t\t}", "System.out.println( \"C\" )", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\t\tSystem.out.println( \"D\" );\n\t\t\t\t\t}", "System.out.println( \"D\" )", "System.out.println", "System.out", "System", "System.out", "\"D\"", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { int[] mfr= new int[5]; int sum=0; String[] tmpArray; while( true ) { String str = kb.readLine(); tmpArray = str.split( " " ); if( "-1".equals( tmpArray[0] ) && "-1".equals( tmpArray[1] ) && "-1".equals( tmpArray[2] ) ) { break; } sum=0; for( int i=0; i<3; i++ ) { mfr[i]=Integer.parseInt( tmpArray[i] ); if( -1 != mfr[i] && 2 != i ) { sum+=mfr[i]; } } if( sum<30 || -1==mfr[0] || -1==mfr[1] ) { System.out.println( "F" ); } else if( 80 <= sum ) { System.out.println( "A" ); } else if( 65<=sum && sum<80 ) { System.out.println( "B" ); } else if( 50<=sum && sum<65 ) { System.out.println( "C" ); } else if( 30<=sum && sum<50 ) { if( 50<=mfr[2] ) { System.out.println( "C" ); } else { System.out.println( "D" ); } } } } catch( IOException e ) { System.err.println( e ); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 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 ], [ 173, 8 ], [ 173, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 16, 31 ], [ 31, 32 ], [ 31, 33 ], [ 16, 34 ], [ 34, 35 ], [ 34, 36 ], [ 16, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 45, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 45, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 45, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 45, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 45, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 82, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 82, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 99, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 99, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 112, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 112, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 125, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 125, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 138, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 150, 155 ], [ 145, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 138, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 9, 170 ], [ 170, 171 ], [ 0, 172 ], [ 172, 173 ], [ 172, 174 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"-1 -1 -1\"))break;\n \tString[] str=line.split(\" \");\n \tint a=Integer.parseInt(str[0]);\n \tint b=Integer.parseInt(str[1]);\n \tint c=Integer.parseInt(str[2]);\n \tif(a==-1||b==-1){\n \t\tSystem.out.println(\"F\");\n \t}else if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}\n }\n }\n }\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"-1 -1 -1\"))break;\n \tString[] str=line.split(\" \");\n \tint a=Integer.parseInt(str[0]);\n \tint b=Integer.parseInt(str[1]);\n \tint c=Integer.parseInt(str[2]);\n \tif(a==-1||b==-1){\n \t\tSystem.out.println(\"F\");\n \t}else if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}\n }\n }\n }\n\n}", "Main", "public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"-1 -1 -1\"))break;\n \tString[] str=line.split(\" \");\n \tint a=Integer.parseInt(str[0]);\n \tint b=Integer.parseInt(str[1]);\n \tint c=Integer.parseInt(str[2]);\n \tif(a==-1||b==-1){\n \t\tSystem.out.println(\"F\");\n \t}else if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}\n }\n }\n }", "main", "{\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"-1 -1 -1\"))break;\n \tString[] str=line.split(\" \");\n \tint a=Integer.parseInt(str[0]);\n \tint b=Integer.parseInt(str[1]);\n \tint c=Integer.parseInt(str[2]);\n \tif(a==-1||b==-1){\n \t\tSystem.out.println(\"F\");\n \t}else if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}\n }\n }\n }", "boolean first=true;", "first", "true", "try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"-1 -1 -1\"))break;\n \tString[] str=line.split(\" \");\n \tint a=Integer.parseInt(str[0]);\n \tint b=Integer.parseInt(str[1]);\n \tint c=Integer.parseInt(str[2]);\n \tif(a==-1||b==-1){\n \t\tSystem.out.println(\"F\");\n \t}else if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}\n }\n }", "{\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"-1 -1 -1\"))break;\n \tString[] str=line.split(\" \");\n \tint a=Integer.parseInt(str[0]);\n \tint b=Integer.parseInt(str[1]);\n \tint c=Integer.parseInt(str[2]);\n \tif(a==-1||b==-1){\n \t\tSystem.out.println(\"F\");\n \t}else if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "int i=0", "i", "0", "n=0", "n", "0", "m=0;", "m", "0", "int[][] card=null;", "card", "null", "int[] mat=null;", "mat", "null", "while ((line = br.readLine()) != null) {\n \tif(line.equals(\"-1 -1 -1\"))break;\n \tString[] str=line.split(\" \");\n \tint a=Integer.parseInt(str[0]);\n \tint b=Integer.parseInt(str[1]);\n \tint c=Integer.parseInt(str[2]);\n \tif(a==-1||b==-1){\n \t\tSystem.out.println(\"F\");\n \t}else if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n \tif(line.equals(\"-1 -1 -1\"))break;\n \tString[] str=line.split(\" \");\n \tint a=Integer.parseInt(str[0]);\n \tint b=Integer.parseInt(str[1]);\n \tint c=Integer.parseInt(str[2]);\n \tif(a==-1||b==-1){\n \t\tSystem.out.println(\"F\");\n \t}else if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}\n }", "if(line.equals(\"-1 -1 -1\"))break;", "line.equals(\"-1 -1 -1\")", "line.equals", "line", "\"-1 -1 -1\"", "break;", "String[] str=line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "int a=Integer.parseInt(str[0]);", "a", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "int b=Integer.parseInt(str[1]);", "b", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "int c=Integer.parseInt(str[2]);", "c", "Integer.parseInt(str[2])", "Integer.parseInt", "Integer", "str[2]", "str", "2", "if(a==-1||b==-1){\n \t\tSystem.out.println(\"F\");\n \t}else if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}", "a==-1||b==-1", "a==-1", "a", "-1", "1", "b==-1", "b", "-1", "1", "{\n \t\tSystem.out.println(\"F\");\n \t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}", "a+b>=80", "a+b", "a", "b", "80", "{\n \t\tSystem.out.println(\"A\");\n \t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}", "a+b>=65", "a+b", "a", "b", "65", "{\n \t\tSystem.out.println(\"B\");\n \t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}", "a+b>=50", "a+b", "a", "b", "50", "{\n \t\tSystem.out.println(\"C\");\n \t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}", "a+b>=30", "a+b", "a", "b", "30", "{\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}", "if(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}", "c>=50", "c", "50", "{\n \t\t\tSystem.out.println(\"C\");\n \t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n \t\t\tSystem.out.println(\"D\");\n \t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n \t\tSystem.out.println(\"F\");\n \t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"-1 -1 -1\"))break;\n \tString[] str=line.split(\" \");\n \tint a=Integer.parseInt(str[0]);\n \tint b=Integer.parseInt(str[1]);\n \tint c=Integer.parseInt(str[2]);\n \tif(a==-1||b==-1){\n \t\tSystem.out.println(\"F\");\n \t}else if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}\n }\n }\n }\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int i=0,n=0,m=0;\n int[][] card=null;\n int[] mat=null;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"-1 -1 -1\"))break;\n \tString[] str=line.split(\" \");\n \tint a=Integer.parseInt(str[0]);\n \tint b=Integer.parseInt(str[1]);\n \tint c=Integer.parseInt(str[2]);\n \tif(a==-1||b==-1){\n \t\tSystem.out.println(\"F\");\n \t}else if(a+b>=80){\n \t\tSystem.out.println(\"A\");\n \t}else if(a+b>=65){\n \t\tSystem.out.println(\"B\");\n \t}else if(a+b>=50){\n \t\tSystem.out.println(\"C\");\n \t}else if(a+b>=30){\n \t\tif(c>=50){\n \t\t\tSystem.out.println(\"C\");\n \t\t}else{\n \t\t\tSystem.out.println(\"D\");\n \t\t}\n \t}else{\n \t\tSystem.out.println(\"F\");\n \t}\n }\n }\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? boolean first=true; try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String line; int i=0,n=0,m=0; int[][] card=null; int[] mat=null; while ((line = br.readLine()) != null) { if(line.equals("-1 -1 -1"))break; String[] str=line.split(" "); int a=Integer.parseInt(str[0]); int b=Integer.parseInt(str[1]); int c=Integer.parseInt(str[2]); if(a==-1||b==-1){ System.out.println("F"); }else if(a+b>=80){ System.out.println("A"); }else if(a+b>=65){ System.out.println("B"); }else if(a+b>=50){ System.out.println("C"); }else if(a+b>=30){ if(c>=50){ System.out.println("C"); }else{ System.out.println("D"); } }else{ System.out.println("F"); } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 30, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 117, 5 ], [ 117, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 34, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 32, 47 ], [ 14, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 14, 53 ], [ 53, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 55, 64 ], [ 64, 65 ], [ 64, 66 ], [ 53, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 53, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 14, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 6, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import 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\twhile(true) {\n\n\t\t\t// 入力\n\t\t\tint first = sc.nextInt();\n\t\t\tint mid = sc.nextInt();\n\t\t\tint re = sc.nextInt();\n\n\t\t\tString ach;\n\n\t\t\tif(first == -1 && mid == -1 && re == -1) break;\n\n\t\t\t// 成績判断\n\t\t\tint sumPoint = first + mid;\n\t\t\tif(first == -1 || mid == -1 || (sumPoint) < 30) {\n\t\t\t\tach = \"F\";\n\t\t\t} else if((sumPoint) >= 80) {\n\t\t\t\tach = \"A\";\n\t\t\t} else if((sumPoint) >= 65) {\n\t\t\t\tach = \"B\";\n\t\t\t} else if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ach);\n\n\t\t}\n\n\t}\n\n}\n", "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\twhile(true) {\n\n\t\t\t// 入力\n\t\t\tint first = sc.nextInt();\n\t\t\tint mid = sc.nextInt();\n\t\t\tint re = sc.nextInt();\n\n\t\t\tString ach;\n\n\t\t\tif(first == -1 && mid == -1 && re == -1) break;\n\n\t\t\t// 成績判断\n\t\t\tint sumPoint = first + mid;\n\t\t\tif(first == -1 || mid == -1 || (sumPoint) < 30) {\n\t\t\t\tach = \"F\";\n\t\t\t} else if((sumPoint) >= 80) {\n\t\t\t\tach = \"A\";\n\t\t\t} else if((sumPoint) >= 65) {\n\t\t\t\tach = \"B\";\n\t\t\t} else if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ach);\n\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\n\t\t\t// 入力\n\t\t\tint first = sc.nextInt();\n\t\t\tint mid = sc.nextInt();\n\t\t\tint re = sc.nextInt();\n\n\t\t\tString ach;\n\n\t\t\tif(first == -1 && mid == -1 && re == -1) break;\n\n\t\t\t// 成績判断\n\t\t\tint sumPoint = first + mid;\n\t\t\tif(first == -1 || mid == -1 || (sumPoint) < 30) {\n\t\t\t\tach = \"F\";\n\t\t\t} else if((sumPoint) >= 80) {\n\t\t\t\tach = \"A\";\n\t\t\t} else if((sumPoint) >= 65) {\n\t\t\t\tach = \"B\";\n\t\t\t} else if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ach);\n\n\t\t}\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\n\t\t\t// 入力\n\t\t\tint first = sc.nextInt();\n\t\t\tint mid = sc.nextInt();\n\t\t\tint re = sc.nextInt();\n\n\t\t\tString ach;\n\n\t\t\tif(first == -1 && mid == -1 && re == -1) break;\n\n\t\t\t// 成績判断\n\t\t\tint sumPoint = first + mid;\n\t\t\tif(first == -1 || mid == -1 || (sumPoint) < 30) {\n\t\t\t\tach = \"F\";\n\t\t\t} else if((sumPoint) >= 80) {\n\t\t\t\tach = \"A\";\n\t\t\t} else if((sumPoint) >= 65) {\n\t\t\t\tach = \"B\";\n\t\t\t} else if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ach);\n\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true) {\n\n\t\t\t// 入力\n\t\t\tint first = sc.nextInt();\n\t\t\tint mid = sc.nextInt();\n\t\t\tint re = sc.nextInt();\n\n\t\t\tString ach;\n\n\t\t\tif(first == -1 && mid == -1 && re == -1) break;\n\n\t\t\t// 成績判断\n\t\t\tint sumPoint = first + mid;\n\t\t\tif(first == -1 || mid == -1 || (sumPoint) < 30) {\n\t\t\t\tach = \"F\";\n\t\t\t} else if((sumPoint) >= 80) {\n\t\t\t\tach = \"A\";\n\t\t\t} else if((sumPoint) >= 65) {\n\t\t\t\tach = \"B\";\n\t\t\t} else if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ach);\n\n\t\t}", "true", "{\n\n\t\t\t// 入力\n\t\t\tint first = sc.nextInt();\n\t\t\tint mid = sc.nextInt();\n\t\t\tint re = sc.nextInt();\n\n\t\t\tString ach;\n\n\t\t\tif(first == -1 && mid == -1 && re == -1) break;\n\n\t\t\t// 成績判断\n\t\t\tint sumPoint = first + mid;\n\t\t\tif(first == -1 || mid == -1 || (sumPoint) < 30) {\n\t\t\t\tach = \"F\";\n\t\t\t} else if((sumPoint) >= 80) {\n\t\t\t\tach = \"A\";\n\t\t\t} else if((sumPoint) >= 65) {\n\t\t\t\tach = \"B\";\n\t\t\t} else if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ach);\n\n\t\t}", "int first = sc.nextInt();", "first", "sc.nextInt()", "sc.nextInt", "sc", "int mid = sc.nextInt();", "mid", "sc.nextInt()", "sc.nextInt", "sc", "int re = sc.nextInt();", "re", "sc.nextInt()", "sc.nextInt", "sc", "String ach;", "ach", "if(first == -1 && mid == -1 && re == -1) break;", "first == -1 && mid == -1 && re == -1", "first == -1 && mid == -1 && re == -1", "first == -1", "first", "-1", "1", "mid == -1", "mid", "-1", "1", "re == -1", "re", "-1", "1", "break;", "int sumPoint = first + mid;", "sumPoint", "first + mid", "first", "mid", "if(first == -1 || mid == -1 || (sumPoint) < 30) {\n\t\t\t\tach = \"F\";\n\t\t\t} else if((sumPoint) >= 80) {\n\t\t\t\tach = \"A\";\n\t\t\t} else if((sumPoint) >= 65) {\n\t\t\t\tach = \"B\";\n\t\t\t} else if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}", "first == -1 || mid == -1 || (sumPoint) < 30", "first == -1 || mid == -1 || (sumPoint) < 30", "first == -1", "first", "-1", "1", "mid == -1", "mid", "-1", "1", "(sumPoint) < 30", "(sumPoint)", "30", "{\n\t\t\t\tach = \"F\";\n\t\t\t}", "ach = \"F\"", "ach", "\"F\"", "if((sumPoint) >= 80) {\n\t\t\t\tach = \"A\";\n\t\t\t} else if((sumPoint) >= 65) {\n\t\t\t\tach = \"B\";\n\t\t\t} else if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}", "(sumPoint) >= 80", "(sumPoint)", "80", "{\n\t\t\t\tach = \"A\";\n\t\t\t}", "ach = \"A\"", "ach", "\"A\"", "if((sumPoint) >= 65) {\n\t\t\t\tach = \"B\";\n\t\t\t} else if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}", "(sumPoint) >= 65", "(sumPoint)", "65", "{\n\t\t\t\tach = \"B\";\n\t\t\t}", "ach = \"B\"", "ach", "\"B\"", "if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}", "(sumPoint) >= 50", "(sumPoint)", "50", "{\n\t\t\t\tach = \"C\";\n\t\t\t}", "ach = \"C\"", "ach", "\"C\"", "{\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}", "if(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}", "re >= 50", "re", "50", "{\n\t\t\t\t\tach = \"C\";\n\t\t\t\t}", "ach = \"C\"", "ach", "\"C\"", "{\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}", "ach = \"D\"", "ach", "\"D\"", "System.out.println(ach)", "System.out.println", "System.out", "System", "System.out", "ach", "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\twhile(true) {\n\n\t\t\t// 入力\n\t\t\tint first = sc.nextInt();\n\t\t\tint mid = sc.nextInt();\n\t\t\tint re = sc.nextInt();\n\n\t\t\tString ach;\n\n\t\t\tif(first == -1 && mid == -1 && re == -1) break;\n\n\t\t\t// 成績判断\n\t\t\tint sumPoint = first + mid;\n\t\t\tif(first == -1 || mid == -1 || (sumPoint) < 30) {\n\t\t\t\tach = \"F\";\n\t\t\t} else if((sumPoint) >= 80) {\n\t\t\t\tach = \"A\";\n\t\t\t} else if((sumPoint) >= 65) {\n\t\t\t\tach = \"B\";\n\t\t\t} else if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ach);\n\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\n\t\t\t// 入力\n\t\t\tint first = sc.nextInt();\n\t\t\tint mid = sc.nextInt();\n\t\t\tint re = sc.nextInt();\n\n\t\t\tString ach;\n\n\t\t\tif(first == -1 && mid == -1 && re == -1) break;\n\n\t\t\t// 成績判断\n\t\t\tint sumPoint = first + mid;\n\t\t\tif(first == -1 || mid == -1 || (sumPoint) < 30) {\n\t\t\t\tach = \"F\";\n\t\t\t} else if((sumPoint) >= 80) {\n\t\t\t\tach = \"A\";\n\t\t\t} else if((sumPoint) >= 65) {\n\t\t\t\tach = \"B\";\n\t\t\t} else if((sumPoint) >= 50) {\n\t\t\t\tach = \"C\";\n\t\t\t} else {\n\t\t\t\tif(re >= 50) {\n\t\t\t\t\tach = \"C\";\n\t\t\t\t} else {\n\t\t\t\t\tach = \"D\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(ach);\n\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); while(true) { // 入力 int first = sc.nextInt(); int mid = sc.nextInt(); int re = sc.nextInt(); String ach; if(first == -1 && mid == -1 && re == -1) break; // 成績判断 int sumPoint = first + mid; if(first == -1 || mid == -1 || (sumPoint) < 30) { ach = "F"; } else if((sumPoint) >= 80) { ach = "A"; } else if((sumPoint) >= 65) { ach = "B"; } else if((sumPoint) >= 50) { ach = "C"; } else { if(re >= 50) { ach = "C"; } else { ach = "D"; } } System.out.println(ach); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 20, 17, 42, 17, 30, 0, 13, 4, 18, 4, 18, 13, 17, 0, 13, 4, 13, 13, 14, 2, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 3, 14, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 14, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 25, 30 ], [ 22, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 22, 36 ], [ 36, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 38, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 36, 57 ], [ 22, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 59, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 58, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 58, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 79, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 79, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 96, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 96, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 114, 122 ], [ 113, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 113, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 136, 138 ], [ 131, 139 ], [ 130, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 141, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 141, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 130, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 6, 168 ], [ 168, 169 ], [ 4, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 176, 177 ], [ 176, 178 ], [ 172, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 179, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 186, 188 ], [ 179, 189 ], [ 189, 190 ], [ 190, 191 ], [ 179, 192 ], [ 193, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 194, 198 ], [ 198, 199 ], [ 199, 200 ], [ 198, 201 ], [ 201, 202 ], [ 201, 203 ], [ 172, 204 ], [ 204, 205 ], [ 170, 206 ], [ 206, 207 ] ]
[ "import java.io.*;\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[] = new String[3];\n\t\tint in[] = new int[3];\n\t\twhile(true){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tin = parseInts(str);\n\t\t\tif(in[0]==-1 && in[1]==-1 && in[2]==-1) break;\n\t\t\tif(in[0]==-1 || in[1]==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(in[0]+in[1]>=80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(in[0]+in[1]>=65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(in[0]+in[1]>=50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(in[0]+in[1]>=30){\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n\tstatic int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[] = new String[3];\n\t\tint in[] = new int[3];\n\t\twhile(true){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tin = parseInts(str);\n\t\t\tif(in[0]==-1 && in[1]==-1 && in[2]==-1) break;\n\t\t\tif(in[0]==-1 || in[1]==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(in[0]+in[1]>=80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(in[0]+in[1]>=65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(in[0]+in[1]>=50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(in[0]+in[1]>=30){\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n\tstatic int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}\n}", "Main", "public static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[] = new String[3];\n\t\tint in[] = new int[3];\n\t\twhile(true){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tin = parseInts(str);\n\t\t\tif(in[0]==-1 && in[1]==-1 && in[2]==-1) break;\n\t\t\tif(in[0]==-1 || in[1]==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(in[0]+in[1]>=80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(in[0]+in[1]>=65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(in[0]+in[1]>=50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(in[0]+in[1]>=30){\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str[] = new String[3];\n\t\tint in[] = new int[3];\n\t\twhile(true){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tin = parseInts(str);\n\t\t\tif(in[0]==-1 && in[1]==-1 && in[2]==-1) break;\n\t\t\tif(in[0]==-1 || in[1]==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(in[0]+in[1]>=80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(in[0]+in[1]>=65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(in[0]+in[1]>=50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(in[0]+in[1]>=30){\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str[] = new String[3];", "str", "new String[3]", "3", "int in[] = new int[3];", "in", "new int[3]", "3", "while(true){\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tin = parseInts(str);\n\t\t\tif(in[0]==-1 && in[1]==-1 && in[2]==-1) break;\n\t\t\tif(in[0]==-1 || in[1]==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(in[0]+in[1]>=80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(in[0]+in[1]>=65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(in[0]+in[1]>=50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(in[0]+in[1]>=30){\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tin = parseInts(str);\n\t\t\tif(in[0]==-1 && in[1]==-1 && in[2]==-1) break;\n\t\t\tif(in[0]==-1 || in[1]==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(in[0]+in[1]>=80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(in[0]+in[1]>=65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(in[0]+in[1]>=50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(in[0]+in[1]>=30){\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "str = br.readLine().split(\" \")", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "in = parseInts(str)", "in", "parseInts(str)", "parseInts", "str", "if(in[0]==-1 && in[1]==-1 && in[2]==-1) break;", "in[0]==-1 && in[1]==-1 && in[2]==-1", "in[0]==-1 && in[1]==-1 && in[2]==-1", "in[0]==-1", "in[0]", "in", "0", "-1", "1", "in[1]==-1", "in[1]", "in", "1", "-1", "1", "in[2]==-1", "in[2]", "in", "2", "-1", "1", "break;", "if(in[0]==-1 || in[1]==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(in[0]+in[1]>=80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(in[0]+in[1]>=65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(in[0]+in[1]>=50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(in[0]+in[1]>=30){\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "in[0]==-1 || in[1]==-1", "in[0]==-1", "in[0]", "in", "0", "-1", "1", "in[1]==-1", "in[1]", "in", "1", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(in[0]+in[1]>=80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(in[0]+in[1]>=65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(in[0]+in[1]>=50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(in[0]+in[1]>=30){\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "in[0]+in[1]>=80", "in[0]+in[1]", "in[0]", "in", "0", "in[1]", "in", "1", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(in[0]+in[1]>=65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(in[0]+in[1]>=50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(in[0]+in[1]>=30){\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "in[0]+in[1]>=65", "in[0]+in[1]", "in[0]", "in", "0", "in[1]", "in", "1", "65", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(in[0]+in[1]>=50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(in[0]+in[1]>=30){\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "in[0]+in[1]>=50", "in[0]+in[1]", "in[0]", "in", "0", "in[1]", "in", "1", "50", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(in[0]+in[1]>=30){\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "in[0]+in[1]>=30", "in[0]+in[1]", "in[0]", "in", "0", "in[1]", "in", "1", "30", "{\n\t\t\t\tif(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}", "if(in[2]>=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "in[2]>=50", "in[2]", "in", "2", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "static int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}", "parseInts", "{\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}", "int[] x = new int[s.length];", "x", "new int[s.length]", "s.length", "s", "s.length", "for(int i=0; i<s.length; i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}", "{\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}", "x[i] = Integer.parseInt(s[i])", "x[i]", "x", "i", "Integer.parseInt(s[i])", "Integer.parseInt", "Integer", "s[i]", "s", "i", "return x;", "x", "String[] s", "s" ]
import java.io.*; class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str[] = new String[3]; int in[] = new int[3]; while(true){ str = br.readLine().split(" "); in = parseInts(str); if(in[0]==-1 && in[1]==-1 && in[2]==-1) break; if(in[0]==-1 || in[1]==-1){ System.out.println("F"); }else if(in[0]+in[1]>=80){ System.out.println("A"); }else if(in[0]+in[1]>=65){ System.out.println("B"); }else if(in[0]+in[1]>=50){ System.out.println("C"); }else if(in[0]+in[1]>=30){ if(in[2]>=50){ System.out.println("C"); }else{ System.out.println("D"); } }else{ System.out.println("F"); } } } static int[] parseInts(String[] s){ int[] x = new int[s.length]; for(int i=0; i<s.length; i++){ x[i] = Integer.parseInt(s[i]); } return x; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 2, 17, 13, 4, 18, 18, 13, 13, 17, 14, 2, 17, 2, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 180, 5 ], [ 180, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 17, 19 ], [ 12, 20 ], [ 20, 21 ], [ 21, 22 ], [ 12, 23 ], [ 24, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 24, 40 ], [ 40, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 42, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 40, 55 ], [ 24, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 56, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 72, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 86, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 85, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 72, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 104, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 103, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 72, 121 ], [ 121, 122 ], [ 123, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 123, 134 ], [ 134, 135 ], [ 134, 136 ], [ 121, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 72, 143 ], [ 143, 144 ], [ 145, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 145, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 145, 156 ], [ 156, 157 ], [ 156, 158 ], [ 143, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 72, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 168, 170 ], [ 165, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 6, 177 ], [ 177, 178 ], [ 0, 179 ], [ 179, 180 ], [ 179, 181 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor(int i= 0;i<50;i++) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m==-1 && f==-1 && r==-1) break;\n\t\t\tif(m==-1 || f==-1) System.out.println(\"F\");\n\t\t\telse {\n\t\t\t\tif(m+f>=80) System.out.println(\"A\");\n\t\t\t\tif(80>m+f && m+f>=65) System.out.println(\"B\");\n\t\t\t\tif(65>m+f && m+f>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");\n\t\t\t\tif(30>m+f) System.out.println(\"F\");\n\t\t\t}\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\tScanner sc = new Scanner(System.in);\n\n\t\tfor(int i= 0;i<50;i++) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m==-1 && f==-1 && r==-1) break;\n\t\t\tif(m==-1 || f==-1) System.out.println(\"F\");\n\t\t\telse {\n\t\t\t\tif(m+f>=80) System.out.println(\"A\");\n\t\t\t\tif(80>m+f && m+f>=65) System.out.println(\"B\");\n\t\t\t\tif(65>m+f && m+f>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");\n\t\t\t\tif(30>m+f) System.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor(int i= 0;i<50;i++) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m==-1 && f==-1 && r==-1) break;\n\t\t\tif(m==-1 || f==-1) System.out.println(\"F\");\n\t\t\telse {\n\t\t\t\tif(m+f>=80) System.out.println(\"A\");\n\t\t\t\tif(80>m+f && m+f>=65) System.out.println(\"B\");\n\t\t\t\tif(65>m+f && m+f>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");\n\t\t\t\tif(30>m+f) System.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor(int i= 0;i<50;i++) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m==-1 && f==-1 && r==-1) break;\n\t\t\tif(m==-1 || f==-1) System.out.println(\"F\");\n\t\t\telse {\n\t\t\t\tif(m+f>=80) System.out.println(\"A\");\n\t\t\t\tif(80>m+f && m+f>=65) System.out.println(\"B\");\n\t\t\t\tif(65>m+f && m+f>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");\n\t\t\t\tif(30>m+f) System.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(int i= 0;i<50;i++) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m==-1 && f==-1 && r==-1) break;\n\t\t\tif(m==-1 || f==-1) System.out.println(\"F\");\n\t\t\telse {\n\t\t\t\tif(m+f>=80) System.out.println(\"A\");\n\t\t\t\tif(80>m+f && m+f>=65) System.out.println(\"B\");\n\t\t\t\tif(65>m+f && m+f>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");\n\t\t\t\tif(30>m+f) System.out.println(\"F\");\n\t\t\t}\n\t\t}", "int i= 0;", "int i= 0;", "i", "0", "i<50", "i", "50", "i++", "i++", "i", "{\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m==-1 && f==-1 && r==-1) break;\n\t\t\tif(m==-1 || f==-1) System.out.println(\"F\");\n\t\t\telse {\n\t\t\t\tif(m+f>=80) System.out.println(\"A\");\n\t\t\t\tif(80>m+f && m+f>=65) System.out.println(\"B\");\n\t\t\t\tif(65>m+f && m+f>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");\n\t\t\t\tif(30>m+f) System.out.println(\"F\");\n\t\t\t}\n\t\t}", "{\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m==-1 && f==-1 && r==-1) break;\n\t\t\tif(m==-1 || f==-1) System.out.println(\"F\");\n\t\t\telse {\n\t\t\t\tif(m+f>=80) System.out.println(\"A\");\n\t\t\t\tif(80>m+f && m+f>=65) System.out.println(\"B\");\n\t\t\t\tif(65>m+f && m+f>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");\n\t\t\t\tif(30>m+f) System.out.println(\"F\");\n\t\t\t}\n\t\t}", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if(m==-1 && f==-1 && r==-1) break;", "m==-1 && f==-1 && r==-1", "m==-1 && f==-1 && r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "break;", "if(m==-1 || f==-1) System.out.println(\"F\");\n\t\t\telse {\n\t\t\t\tif(m+f>=80) System.out.println(\"A\");\n\t\t\t\tif(80>m+f && m+f>=65) System.out.println(\"B\");\n\t\t\t\tif(65>m+f && m+f>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");\n\t\t\t\tif(30>m+f) System.out.println(\"F\");\n\t\t\t}", "m==-1 || f==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "{\n\t\t\t\tif(m+f>=80) System.out.println(\"A\");\n\t\t\t\tif(80>m+f && m+f>=65) System.out.println(\"B\");\n\t\t\t\tif(65>m+f && m+f>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");\n\t\t\t\tif(30>m+f) System.out.println(\"F\");\n\t\t\t}", "if(m+f>=80) System.out.println(\"A\");", "m+f>=80", "m+f", "m", "f", "80", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(80>m+f && m+f>=65) System.out.println(\"B\");", "80>m+f && m+f>=65", "80>m+f", "80", "m+f", "m", "f", "m+f>=65", "m+f", "m", "f", "65", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(65>m+f && m+f>=50) System.out.println(\"C\");", "65>m+f && m+f>=50", "65>m+f", "65", "m+f", "m", "f", "m+f>=50", "m+f", "m", "f", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");", "50>m+f && m+f>=30 && r>=50", "50>m+f && m+f>=30 && r>=50", "50>m+f", "50", "m+f", "m", "f", "m+f>=30", "m+f", "m", "f", "30", "r>=50", "r", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");", "50>m+f && m+f>=30 && 50>r", "50>m+f && m+f>=30 && 50>r", "50>m+f", "50", "m+f", "m", "f", "m+f>=30", "m+f", "m", "f", "30", "50>r", "50", "r", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if(30>m+f) System.out.println(\"F\");", "30>m+f", "30", "m+f", "m", "f", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor(int i= 0;i<50;i++) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m==-1 && f==-1 && r==-1) break;\n\t\t\tif(m==-1 || f==-1) System.out.println(\"F\");\n\t\t\telse {\n\t\t\t\tif(m+f>=80) System.out.println(\"A\");\n\t\t\t\tif(80>m+f && m+f>=65) System.out.println(\"B\");\n\t\t\t\tif(65>m+f && m+f>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");\n\t\t\t\tif(30>m+f) System.out.println(\"F\");\n\t\t\t}\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\n\t\tfor(int i= 0;i<50;i++) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m==-1 && f==-1 && r==-1) break;\n\t\t\tif(m==-1 || f==-1) System.out.println(\"F\");\n\t\t\telse {\n\t\t\t\tif(m+f>=80) System.out.println(\"A\");\n\t\t\t\tif(80>m+f && m+f>=65) System.out.println(\"B\");\n\t\t\t\tif(65>m+f && m+f>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && r>=50) System.out.println(\"C\");\n\t\t\t\tif(50>m+f && m+f>=30 && 50>r) System.out.println(\"D\");\n\t\t\t\tif(30>m+f) System.out.println(\"F\");\n\t\t\t}\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); for(int i= 0;i<50;i++) { int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); if(m==-1 && f==-1 && r==-1) break; if(m==-1 || f==-1) System.out.println("F"); else { if(m+f>=80) System.out.println("A"); if(80>m+f && m+f>=65) System.out.println("B"); if(65>m+f && m+f>=50) System.out.println("C"); if(50>m+f && m+f>=30 && r>=50) System.out.println("C"); if(50>m+f && m+f>=30 && 50>r) System.out.println("D"); if(30>m+f) System.out.println("F"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 2, 13, 13, 42, 40, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 41, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 2, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 14, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 33, 35 ], [ 8, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 51, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 49, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 71, 80 ], [ 80, 81 ], [ 80, 82 ], [ 69, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 69, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 87, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 108, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 108, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 125, 127 ], [ 120, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 120, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 65, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 65, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 144, 149 ], [ 65, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 155, 156 ], [ 155, 157 ], [ 65, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 163, 164 ], [ 163, 165 ], [ 65, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 171, 172 ], [ 171, 173 ], [ 65, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 176, 178 ], [ 6, 179 ], [ 179, 180 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] a=br.readLine().split(\" \");\n int m=Integer.parseInt(a[0]);\n int f=Integer.parseInt(a[1]);\n int r=Integer.parseInt(a[2]);\n\t\tint k=m+f;\n while(!(m==-1&&f==-1&&r==-1)){\n \t\tString g=null;\n \tif(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n System.out.println(g);\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n }\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] a=br.readLine().split(\" \");\n int m=Integer.parseInt(a[0]);\n int f=Integer.parseInt(a[1]);\n int r=Integer.parseInt(a[2]);\n\t\tint k=m+f;\n while(!(m==-1&&f==-1&&r==-1)){\n \t\tString g=null;\n \tif(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n System.out.println(g);\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n }\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] a=br.readLine().split(\" \");\n int m=Integer.parseInt(a[0]);\n int f=Integer.parseInt(a[1]);\n int r=Integer.parseInt(a[2]);\n\t\tint k=m+f;\n while(!(m==-1&&f==-1&&r==-1)){\n \t\tString g=null;\n \tif(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n System.out.println(g);\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n }\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] a=br.readLine().split(\" \");\n int m=Integer.parseInt(a[0]);\n int f=Integer.parseInt(a[1]);\n int r=Integer.parseInt(a[2]);\n\t\tint k=m+f;\n while(!(m==-1&&f==-1&&r==-1)){\n \t\tString g=null;\n \tif(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n System.out.println(g);\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n }\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String[] a=br.readLine().split(\" \");", "a", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int m=Integer.parseInt(a[0]);", "m", "Integer.parseInt(a[0])", "Integer.parseInt", "Integer", "a[0]", "a", "0", "int f=Integer.parseInt(a[1]);", "f", "Integer.parseInt(a[1])", "Integer.parseInt", "Integer", "a[1]", "a", "1", "int r=Integer.parseInt(a[2]);", "r", "Integer.parseInt(a[2])", "Integer.parseInt", "Integer", "a[2]", "a", "2", "int k=m+f;", "k", "m+f", "m", "f", "while(!(m==-1&&f==-1&&r==-1)){\n \t\tString g=null;\n \tif(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n System.out.println(g);\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n }", "!(m==-1&&f==-1&&r==-1)", "(m==-1&&f==-1&&r==-1)", "m==-1&&f==-1&&r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "{\n \t\tString g=null;\n \tif(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}\n System.out.println(g);\n \ta=br.readLine().split(\" \");\n m=Integer.parseInt(a[0]);\n f=Integer.parseInt(a[1]);\n r=Integer.parseInt(a[2]);\n k=m+f;\n }", "String g=null;", "g", "null", "if(m==-1||f==-1||k<30){\n \t\tg=\"F\";\n \t}else if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}", "m==-1||f==-1||k<30", "m==-1||f==-1||k<30", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "k<30", "k", "30", "{\n \t\tg=\"F\";\n \t}", "g=\"F\"", "g", "\"F\"", "if(30<=k&&k<50){\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}else if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}", "30<=k&&k<50", "30<=k", "30", "k", "k<50", "k", "50", "{\n \t\tif(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}\n \t}", "if(r>=50){\n \t\t\tg=\"C\";\n \t\t}else{\n \t\t\tg=\"D\";\n \t\t}", "r>=50", "r", "50", "{\n \t\t\tg=\"C\";\n \t\t}", "g=\"C\"", "g", "\"C\"", "{\n \t\t\tg=\"D\";\n \t\t}", "g=\"D\"", "g", "\"D\"", "if(50<=k&&k<65){\n \t\tg=\"C\";\n \t}else if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}", "50<=k&&k<65", "50<=k", "50", "k", "k<65", "k", "65", "{\n \t\tg=\"C\";\n \t}", "g=\"C\"", "g", "\"C\"", "if(65<=k&&k<80){\n \t\tg=\"B\";\n \t}else{\n \t\tg=\"A\";\n \t}", "65<=k&&k<80", "65<=k", "65", "k", "k<80", "k", "80", "{\n \t\tg=\"B\";\n \t}", "g=\"B\"", "g", "\"B\"", "{\n \t\tg=\"A\";\n \t}", "g=\"A\"", "g", "\"A\"", "System.out.println(g)", "System.out.println", "System.out", "System", "System.out", "g", "a=br.readLine().split(\" \")", "a", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "m=Integer.parseInt(a[0])", "m", "Integer.parseInt(a[0])", "Integer.parseInt", "Integer", "a[0]", "a", "0", "f=Integer.parseInt(a[1])", "f", "Integer.parseInt(a[1])", "Integer.parseInt", "Integer", "a[1]", "a", "1", "r=Integer.parseInt(a[2])", "r", "Integer.parseInt(a[2])", "Integer.parseInt", "Integer", "a[2]", "a", "2", "k=m+f", "k", "m+f", "m", "f", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] a=br.readLine().split(" "); int m=Integer.parseInt(a[0]); int f=Integer.parseInt(a[1]); int r=Integer.parseInt(a[2]); int k=m+f; while(!(m==-1&&f==-1&&r==-1)){ String g=null; if(m==-1||f==-1||k<30){ g="F"; }else if(30<=k&&k<50){ if(r>=50){ g="C"; }else{ g="D"; } }else if(50<=k&&k<65){ g="C"; }else if(65<=k&&k<80){ g="B"; }else{ g="A"; } System.out.println(g); a=br.readLine().split(" "); m=Integer.parseInt(a[0]); f=Integer.parseInt(a[1]); r=Integer.parseInt(a[2]); k=m+f; } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 41, 13, 17, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 0, 13, 17, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 18, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 18, 34 ], [ 34, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 36, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 34, 49 ], [ 18, 50 ], [ 50, 51 ], [ 50, 52 ], [ 18, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 53, 63 ], [ 63, 64 ], [ 63, 65 ], [ 53, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 66, 72 ], [ 72, 73 ], [ 72, 74 ], [ 66, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 75, 81 ], [ 81, 82 ], [ 81, 83 ], [ 75, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 90, 92 ], [ 84, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 93, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 100, 107 ], [ 107, 108 ], [ 107, 109 ], [ 93, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 18, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 9, 120 ], [ 120, 121 ] ]
[ "import java.util.*;\nimport java.text.*;\n\nclass Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1) break;\n String c = \"\";\n if(m == -1 || f == -1) c = \"F\";\n else if(m + f >= 80) c = \"A\";\n else if(m + f >= 65) c = \"B\";\n else if(m + f >= 50) c = \"C\";\n else if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }\n System.out.println(c);\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.text.*;", "text.*", "java", "class Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1) break;\n String c = \"\";\n if(m == -1 || f == -1) c = \"F\";\n else if(m + f >= 80) c = \"A\";\n else if(m + f >= 65) c = \"B\";\n else if(m + f >= 50) c = \"C\";\n else if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }\n System.out.println(c);\n }\n }\n}", "Main", "public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1) break;\n String c = \"\";\n if(m == -1 || f == -1) c = \"F\";\n else if(m + f >= 80) c = \"A\";\n else if(m + f >= 65) c = \"B\";\n else if(m + f >= 50) c = \"C\";\n else if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }\n System.out.println(c);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1) break;\n String c = \"\";\n if(m == -1 || f == -1) c = \"F\";\n else if(m + f >= 80) c = \"A\";\n else if(m + f >= 65) c = \"B\";\n else if(m + f >= 50) c = \"C\";\n else if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }\n System.out.println(c);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(;;) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1) break;\n String c = \"\";\n if(m == -1 || f == -1) c = \"F\";\n else if(m + f >= 80) c = \"A\";\n else if(m + f >= 65) c = \"B\";\n else if(m + f >= 50) c = \"C\";\n else if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }\n System.out.println(c);\n }", ";", "{\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1) break;\n String c = \"\";\n if(m == -1 || f == -1) c = \"F\";\n else if(m + f >= 80) c = \"A\";\n else if(m + f >= 65) c = \"B\";\n else if(m + f >= 50) c = \"C\";\n else if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }\n System.out.println(c);\n }", "{\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1) break;\n String c = \"\";\n if(m == -1 || f == -1) c = \"F\";\n else if(m + f >= 80) c = \"A\";\n else if(m + f >= 65) c = \"B\";\n else if(m + f >= 50) c = \"C\";\n else if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }\n System.out.println(c);\n }", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if(m == -1 && f == -1 && r == -1) break;", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "break;", "String c = \"\";", "c", "\"\"", "if(m == -1 || f == -1) c = \"F\";\n else if(m + f >= 80) c = \"A\";\n else if(m + f >= 65) c = \"B\";\n else if(m + f >= 50) c = \"C\";\n else if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "c = \"F\"", "c", "\"F\"", "if(m + f >= 80) c = \"A\";\n else if(m + f >= 65) c = \"B\";\n else if(m + f >= 50) c = \"C\";\n else if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }", "m + f >= 80", "m + f", "m", "f", "80", "c = \"A\"", "c", "\"A\"", "if(m + f >= 65) c = \"B\";\n else if(m + f >= 50) c = \"C\";\n else if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }", "m + f >= 65", "m + f", "m", "f", "65", "c = \"B\"", "c", "\"B\"", "if(m + f >= 50) c = \"C\";\n else if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }", "m + f >= 50", "m + f", "m", "f", "50", "c = \"C\"", "c", "\"C\"", "if(m + f >= 30) {\n if(r >= 50) c = \"C\";\n else c = \"D\";\n } else {\n c = \"F\";\n }", "m + f >= 30", "m + f", "m", "f", "30", "{\n if(r >= 50) c = \"C\";\n else c = \"D\";\n }", "if(r >= 50) c = \"C\";\n else c = \"D\";", "r >= 50", "r", "50", "c = \"C\"", "c", "\"C\"", "c = \"D\"", "c", "\"D\"", "{\n c = \"F\";\n }", "c = \"F\"", "c", "\"F\"", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[]args", "args" ]
import java.util.*; import java.text.*; class Main { public static void main(String[]args)throws Exception { Scanner sc = new Scanner(System.in); for(;;) { int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); if(m == -1 && f == -1 && r == -1) break; String c = ""; if(m == -1 || f == -1) c = "F"; else if(m + f >= 80) c = "A"; else if(m + f >= 65) c = "B"; else if(m + f >= 50) c = "C"; else if(m + f >= 30) { if(r >= 50) c = "C"; else c = "D"; } else { c = "F"; } System.out.println(c); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 14, 2, 2, 2, 13, 40, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 40, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 34, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 32, 47 ], [ 14, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 49, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 48, 66 ], [ 66, 67 ], [ 66, 68 ], [ 48, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 69, 75 ], [ 75, 76 ], [ 75, 77 ], [ 69, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 78, 84 ], [ 84, 85 ], [ 84, 86 ], [ 78, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 87, 93 ], [ 93, 94 ], [ 93, 95 ], [ 87, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 96, 102 ], [ 102, 103 ], [ 102, 104 ], [ 96, 105 ], [ 105, 106 ], [ 105, 107 ], [ 14, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 112, 114 ], [ 14, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 6, 121 ], [ 121, 122 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n final Scanner sc=new Scanner(System.in);\n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n char G;\n if(m==-1 && f==-1 && r==-1) break;\n if(m ==-1 && f>0 || m > 0 && f==-1)G='F';\n else if(m+f>=80) G='A';\n else if(m+f>=65) G='B';\n else if(m+f>=50) G='C';\n else if(m+f>=30) G='D';\n else G='F';\n if(r>=50)G='C';\n System.out.println(G);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n final Scanner sc=new Scanner(System.in);\n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n char G;\n if(m==-1 && f==-1 && r==-1) break;\n if(m ==-1 && f>0 || m > 0 && f==-1)G='F';\n else if(m+f>=80) G='A';\n else if(m+f>=65) G='B';\n else if(m+f>=50) G='C';\n else if(m+f>=30) G='D';\n else G='F';\n if(r>=50)G='C';\n System.out.println(G);\n }\n }\n}", "Main", "public static void main(String[] args){\n final Scanner sc=new Scanner(System.in);\n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n char G;\n if(m==-1 && f==-1 && r==-1) break;\n if(m ==-1 && f>0 || m > 0 && f==-1)G='F';\n else if(m+f>=80) G='A';\n else if(m+f>=65) G='B';\n else if(m+f>=50) G='C';\n else if(m+f>=30) G='D';\n else G='F';\n if(r>=50)G='C';\n System.out.println(G);\n }\n }", "main", "{\n final Scanner sc=new Scanner(System.in);\n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n char G;\n if(m==-1 && f==-1 && r==-1) break;\n if(m ==-1 && f>0 || m > 0 && f==-1)G='F';\n else if(m+f>=80) G='A';\n else if(m+f>=65) G='B';\n else if(m+f>=50) G='C';\n else if(m+f>=30) G='D';\n else G='F';\n if(r>=50)G='C';\n System.out.println(G);\n }\n }", "final Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n char G;\n if(m==-1 && f==-1 && r==-1) break;\n if(m ==-1 && f>0 || m > 0 && f==-1)G='F';\n else if(m+f>=80) G='A';\n else if(m+f>=65) G='B';\n else if(m+f>=50) G='C';\n else if(m+f>=30) G='D';\n else G='F';\n if(r>=50)G='C';\n System.out.println(G);\n }", "true", "{\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n char G;\n if(m==-1 && f==-1 && r==-1) break;\n if(m ==-1 && f>0 || m > 0 && f==-1)G='F';\n else if(m+f>=80) G='A';\n else if(m+f>=65) G='B';\n else if(m+f>=50) G='C';\n else if(m+f>=30) G='D';\n else G='F';\n if(r>=50)G='C';\n System.out.println(G);\n }", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "char G;", "G", "if(m==-1 && f==-1 && r==-1) break;", "m==-1 && f==-1 && r==-1", "m==-1 && f==-1 && r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "break;", "if(m ==-1 && f>0 || m > 0 && f==-1)G='F';\n else if(m+f>=80) G='A';\n else if(m+f>=65) G='B';\n else if(m+f>=50) G='C';\n else if(m+f>=30) G='D';\n else G='F';", "m ==-1 && f>0 || m > 0 && f==-1", "m ==-1 && f>0", "m ==-1", "m", "-1", "1", "f>0", "f", "0", "m > 0 && f==-1", "m > 0", "m", "0", "f==-1", "f", "-1", "1", "G='F'", "G", "'F'", "if(m+f>=80) G='A';\n else if(m+f>=65) G='B';\n else if(m+f>=50) G='C';\n else if(m+f>=30) G='D';\n else G='F';", "m+f>=80", "m+f", "m", "f", "80", "G='A'", "G", "'A'", "if(m+f>=65) G='B';\n else if(m+f>=50) G='C';\n else if(m+f>=30) G='D';\n else G='F';", "m+f>=65", "m+f", "m", "f", "65", "G='B'", "G", "'B'", "if(m+f>=50) G='C';\n else if(m+f>=30) G='D';\n else G='F';", "m+f>=50", "m+f", "m", "f", "50", "G='C'", "G", "'C'", "if(m+f>=30) G='D';\n else G='F';", "m+f>=30", "m+f", "m", "f", "30", "G='D'", "G", "'D'", "G='F'", "G", "'F'", "if(r>=50)G='C';", "r>=50", "r", "50", "G='C'", "G", "'C'", "System.out.println(G)", "System.out.println", "System.out", "System", "System.out", "G", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ final Scanner sc=new Scanner(System.in); while(true){ int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); char G; if(m==-1 && f==-1 && r==-1) break; if(m ==-1 && f>0 || m > 0 && f==-1)G='F'; else if(m+f>=80) G='A'; else if(m+f>=65) G='B'; else if(m+f>=50) G='C'; else if(m+f>=30) G='D'; else G='F'; if(r>=50)G='C'; System.out.println(G); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 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, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 131, 5 ], [ 131, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 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 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 45, 46 ], [ 14, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 14, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 53, 63 ], [ 63, 64 ], [ 63, 65 ], [ 52, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 52, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 78, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 73, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 96, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 107, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 8, 125 ], [ 125, 126 ], [ 126, 127 ], [ 6, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "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\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = m + f;\n\n\t\t\tif((m == -1 || f == -1) || sum < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(sum < 50) {\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(sum < 65) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\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\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = m + f;\n\n\t\t\tif((m == -1 || f == -1) || sum < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(sum < 50) {\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(sum < 65) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = m + f;\n\n\t\t\tif((m == -1 || f == -1) || sum < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(sum < 50) {\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(sum < 65) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = m + f;\n\n\t\t\tif((m == -1 || f == -1) || sum < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(sum < 50) {\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(sum < 65) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = m + f;\n\n\t\t\tif((m == -1 || f == -1) || sum < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(sum < 50) {\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(sum < 65) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = m + f;\n\n\t\t\tif((m == -1 || f == -1) || sum < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(sum < 50) {\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(sum < 65) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t}", "int m = scan.nextInt();", "m", "scan.nextInt()", "scan.nextInt", "scan", "int f = scan.nextInt();", "f", "scan.nextInt()", "scan.nextInt", "scan", "int r = scan.nextInt();", "r", "scan.nextInt()", "scan.nextInt", "scan", "if(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int sum = m + f;", "sum", "m + f", "m", "f", "if((m == -1 || f == -1) || sum < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(sum < 50) {\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(sum < 65) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "(m == -1 || f == -1) || sum < 30", "(m == -1 || f == -1)", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "sum < 30", "sum", "30", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(sum < 50) {\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(sum < 65) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "sum < 50", "sum", "50", "{\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}", "if(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if(sum < 65) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "sum < 65", "sum", "65", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "sum < 80", "sum", "80", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = m + f;\n\n\t\t\tif((m == -1 || f == -1) || sum < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(sum < 50) {\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(sum < 65) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint sum = m + f;\n\n\t\t\tif((m == -1 || f == -1) || sum < 30) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(sum < 50) {\n\t\t\t\tif(r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(sum < 65) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(sum < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t}\n\n\t\tscan.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(true) { int m = scan.nextInt(); int f = scan.nextInt(); int r = scan.nextInt(); if(m == -1 && f == -1 && r == -1) { break; } int sum = m + f; if((m == -1 || f == -1) || sum < 30) { System.out.println("F"); } else if(sum < 50) { if(r >= 50) { System.out.println("C"); } else { System.out.println("D"); } } else if(sum < 65) { System.out.println("C"); } else if(sum < 80) { System.out.println("B"); } else { System.out.println("A"); } } scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 41, 13, 17, 41, 13, 2, 13, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 17, 13, 30, 0, 13, 17, 14, 2, 17, 13, 30, 0, 13, 17, 14, 2, 17, 13, 30, 0, 13, 17, 14, 2, 17, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 123, 5 ], [ 123, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 20, 36 ], [ 36, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 38, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 36, 51 ], [ 20, 52 ], [ 52, 53 ], [ 52, 54 ], [ 20, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 20, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 60, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 90, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 20, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 6, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint m, f, r;\n\t\twhile(true) {\n\t\t\tm = in.nextInt();\n\t\t\tf = in.nextInt();\n\t\t\tr = in.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) break;\n\n\t\t\tchar ch = 'F';\n\t\t\tint mf = m+f;\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tch = 'F';\n\t\t\t}\n\t\t\telse if(mf >= 80) {\n\t\t\t\tch = 'A';\n\t\t\t}\n\t\t\telse if(65 <= mf) {\n\t\t\t\tch = 'B';\n\t\t\t}\n\t\t\telse if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ch);\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 in = new Scanner(System.in);\n\t\tint m, f, r;\n\t\twhile(true) {\n\t\t\tm = in.nextInt();\n\t\t\tf = in.nextInt();\n\t\t\tr = in.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) break;\n\n\t\t\tchar ch = 'F';\n\t\t\tint mf = m+f;\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tch = 'F';\n\t\t\t}\n\t\t\telse if(mf >= 80) {\n\t\t\t\tch = 'A';\n\t\t\t}\n\t\t\telse if(65 <= mf) {\n\t\t\t\tch = 'B';\n\t\t\t}\n\t\t\telse if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ch);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint m, f, r;\n\t\twhile(true) {\n\t\t\tm = in.nextInt();\n\t\t\tf = in.nextInt();\n\t\t\tr = in.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) break;\n\n\t\t\tchar ch = 'F';\n\t\t\tint mf = m+f;\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tch = 'F';\n\t\t\t}\n\t\t\telse if(mf >= 80) {\n\t\t\t\tch = 'A';\n\t\t\t}\n\t\t\telse if(65 <= mf) {\n\t\t\t\tch = 'B';\n\t\t\t}\n\t\t\telse if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ch);\n\t\t}\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tint m, f, r;\n\t\twhile(true) {\n\t\t\tm = in.nextInt();\n\t\t\tf = in.nextInt();\n\t\t\tr = in.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) break;\n\n\t\t\tchar ch = 'F';\n\t\t\tint mf = m+f;\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tch = 'F';\n\t\t\t}\n\t\t\telse if(mf >= 80) {\n\t\t\t\tch = 'A';\n\t\t\t}\n\t\t\telse if(65 <= mf) {\n\t\t\t\tch = 'B';\n\t\t\t}\n\t\t\telse if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ch);\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int m", "m", "f", "f", "r;", "r", "while(true) {\n\t\t\tm = in.nextInt();\n\t\t\tf = in.nextInt();\n\t\t\tr = in.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) break;\n\n\t\t\tchar ch = 'F';\n\t\t\tint mf = m+f;\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tch = 'F';\n\t\t\t}\n\t\t\telse if(mf >= 80) {\n\t\t\t\tch = 'A';\n\t\t\t}\n\t\t\telse if(65 <= mf) {\n\t\t\t\tch = 'B';\n\t\t\t}\n\t\t\telse if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ch);\n\t\t}", "true", "{\n\t\t\tm = in.nextInt();\n\t\t\tf = in.nextInt();\n\t\t\tr = in.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) break;\n\n\t\t\tchar ch = 'F';\n\t\t\tint mf = m+f;\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tch = 'F';\n\t\t\t}\n\t\t\telse if(mf >= 80) {\n\t\t\t\tch = 'A';\n\t\t\t}\n\t\t\telse if(65 <= mf) {\n\t\t\t\tch = 'B';\n\t\t\t}\n\t\t\telse if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ch);\n\t\t}", "m = in.nextInt()", "m", "in.nextInt()", "in.nextInt", "in", "f = in.nextInt()", "f", "in.nextInt()", "in.nextInt", "in", "r = in.nextInt()", "r", "in.nextInt()", "in.nextInt", "in", "if(m == -1 && f == -1 && r == -1) break;", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "break;", "char ch = 'F';", "ch", "'F'", "int mf = m+f;", "mf", "m+f", "m", "f", "if(m == -1 || f == -1) {\n\t\t\t\tch = 'F';\n\t\t\t}\n\t\t\telse if(mf >= 80) {\n\t\t\t\tch = 'A';\n\t\t\t}\n\t\t\telse if(65 <= mf) {\n\t\t\t\tch = 'B';\n\t\t\t}\n\t\t\telse if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\tch = 'F';\n\t\t\t}", "ch = 'F'", "ch", "'F'", "if(mf >= 80) {\n\t\t\t\tch = 'A';\n\t\t\t}\n\t\t\telse if(65 <= mf) {\n\t\t\t\tch = 'B';\n\t\t\t}\n\t\t\telse if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}", "mf >= 80", "mf", "80", "{\n\t\t\t\tch = 'A';\n\t\t\t}", "ch = 'A'", "ch", "'A'", "if(65 <= mf) {\n\t\t\t\tch = 'B';\n\t\t\t}\n\t\t\telse if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}", "65 <= mf", "65", "mf", "{\n\t\t\t\tch = 'B';\n\t\t\t}", "ch = 'B'", "ch", "'B'", "if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}", "50 <= mf", "50", "mf", "{\n\t\t\t\tch = 'C';\n\t\t\t}", "ch = 'C'", "ch", "'C'", "if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}", "30 <= mf", "30", "mf", "{\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}", "ch = 'D'", "ch", "'D'", "if(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}", "50 <= r", "50", "r", "{\n\t\t\t\t\tch = 'C';\n\t\t\t\t}", "ch = 'C'", "ch", "'C'", "System.out.println(ch)", "System.out.println", "System.out", "System", "System.out", "ch", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint m, f, r;\n\t\twhile(true) {\n\t\t\tm = in.nextInt();\n\t\t\tf = in.nextInt();\n\t\t\tr = in.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) break;\n\n\t\t\tchar ch = 'F';\n\t\t\tint mf = m+f;\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tch = 'F';\n\t\t\t}\n\t\t\telse if(mf >= 80) {\n\t\t\t\tch = 'A';\n\t\t\t}\n\t\t\telse if(65 <= mf) {\n\t\t\t\tch = 'B';\n\t\t\t}\n\t\t\telse if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ch);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint m, f, r;\n\t\twhile(true) {\n\t\t\tm = in.nextInt();\n\t\t\tf = in.nextInt();\n\t\t\tr = in.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) break;\n\n\t\t\tchar ch = 'F';\n\t\t\tint mf = m+f;\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tch = 'F';\n\t\t\t}\n\t\t\telse if(mf >= 80) {\n\t\t\t\tch = 'A';\n\t\t\t}\n\t\t\telse if(65 <= mf) {\n\t\t\t\tch = 'B';\n\t\t\t}\n\t\t\telse if(50 <= mf) {\n\t\t\t\tch = 'C';\n\t\t\t}\n\t\t\telse if(30 <= mf) {\n\t\t\t\tch = 'D';\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tch = 'C';\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ch);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int m, f, r; while(true) { m = in.nextInt(); f = in.nextInt(); r = in.nextInt(); if(m == -1 && f == -1 && r == -1) break; char ch = 'F'; int mf = m+f; if(m == -1 || f == -1) { ch = 'F'; } else if(mf >= 80) { ch = 'A'; } else if(65 <= mf) { ch = 'B'; } else if(50 <= mf) { ch = 'C'; } else if(30 <= mf) { ch = 'D'; if(50 <= r) { ch = 'C'; } } System.out.println(ch); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 20, 17, 42, 17, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 0, 18, 13, 17, 4, 18, 13, 18, 13, 17, 0, 18, 13, 17, 4, 18, 13, 18, 13, 17, 0, 18, 13, 17, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 30, 3, 0, 13, 4, 13, 18, 13, 17, 18, 13, 17, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 13, 41, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 29, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 188, 8 ], [ 188, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 25, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 44, 46 ], [ 25, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 25, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 25, 67 ], [ 67, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 69, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 69, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 67, 88 ], [ 88, 89 ], [ 25, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 100, 101 ], [ 100, 102 ], [ 25, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 9, 109 ], [ 109, 110 ], [ 188, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 113, 119 ], [ 119, 120 ], [ 113, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 121, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 121, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 135, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 143, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 151, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 159, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 113, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 113, 179 ], [ 179, 180 ], [ 111, 181 ], [ 181, 182 ], [ 111, 183 ], [ 183, 184 ], [ 111, 185 ], [ 185, 186 ], [ 0, 187 ], [ 187, 188 ], [ 187, 189 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n String judge;\n int[] score = new int[3];\n \n while (true) {\n line = br.readLine();\n \n String ary[] = line.split(\" \");\n score[0] = Integer.parseInt(ary[0]);\n score[1] = Integer.parseInt(ary[1]);\n score[2] = Integer.parseInt(ary[2]);\n \n if(score[0] == -1 && score[1] == -1 && score[2] == -1){\n break;\n }\n \n judge = judgeScore(score[0], score[1], score[2]);\n \n System.out.println(judge);\n }\n \n }\n \n static String judgeScore(int tyukan, int kimatu, int sai){\n int sum = tyukan + kimatu;\n String judge;\n \n if(tyukan == -1 || kimatu == -1){\n judge = \"F\";\n }else if(sum >= 80){\n judge = \"A\";\n }else if(sum >= 65){\n judge = \"B\";\n }else if(sum >= 50){\n judge = \"C\";\n }else if(sum >= 30){\n judge = \"D\";\n }else{\n judge = \"F\";\n }\n \n if(sai >= 50){\n judge = \"C\";\n }\n \n return judge;\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n String judge;\n int[] score = new int[3];\n \n while (true) {\n line = br.readLine();\n \n String ary[] = line.split(\" \");\n score[0] = Integer.parseInt(ary[0]);\n score[1] = Integer.parseInt(ary[1]);\n score[2] = Integer.parseInt(ary[2]);\n \n if(score[0] == -1 && score[1] == -1 && score[2] == -1){\n break;\n }\n \n judge = judgeScore(score[0], score[1], score[2]);\n \n System.out.println(judge);\n }\n \n }\n \n static String judgeScore(int tyukan, int kimatu, int sai){\n int sum = tyukan + kimatu;\n String judge;\n \n if(tyukan == -1 || kimatu == -1){\n judge = \"F\";\n }else if(sum >= 80){\n judge = \"A\";\n }else if(sum >= 65){\n judge = \"B\";\n }else if(sum >= 50){\n judge = \"C\";\n }else if(sum >= 30){\n judge = \"D\";\n }else{\n judge = \"F\";\n }\n \n if(sai >= 50){\n judge = \"C\";\n }\n \n return judge;\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n String judge;\n int[] score = new int[3];\n \n while (true) {\n line = br.readLine();\n \n String ary[] = line.split(\" \");\n score[0] = Integer.parseInt(ary[0]);\n score[1] = Integer.parseInt(ary[1]);\n score[2] = Integer.parseInt(ary[2]);\n \n if(score[0] == -1 && score[1] == -1 && score[2] == -1){\n break;\n }\n \n judge = judgeScore(score[0], score[1], score[2]);\n \n System.out.println(judge);\n }\n \n }", "main", "{\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n String judge;\n int[] score = new int[3];\n \n while (true) {\n line = br.readLine();\n \n String ary[] = line.split(\" \");\n score[0] = Integer.parseInt(ary[0]);\n score[1] = Integer.parseInt(ary[1]);\n score[2] = Integer.parseInt(ary[2]);\n \n if(score[0] == -1 && score[1] == -1 && score[2] == -1){\n break;\n }\n \n judge = judgeScore(score[0], score[1], score[2]);\n \n System.out.println(judge);\n }\n \n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "String judge;", "judge", "int[] score = new int[3];", "score", "new int[3]", "3", "while (true) {\n line = br.readLine();\n \n String ary[] = line.split(\" \");\n score[0] = Integer.parseInt(ary[0]);\n score[1] = Integer.parseInt(ary[1]);\n score[2] = Integer.parseInt(ary[2]);\n \n if(score[0] == -1 && score[1] == -1 && score[2] == -1){\n break;\n }\n \n judge = judgeScore(score[0], score[1], score[2]);\n \n System.out.println(judge);\n }", "true", "{\n line = br.readLine();\n \n String ary[] = line.split(\" \");\n score[0] = Integer.parseInt(ary[0]);\n score[1] = Integer.parseInt(ary[1]);\n score[2] = Integer.parseInt(ary[2]);\n \n if(score[0] == -1 && score[1] == -1 && score[2] == -1){\n break;\n }\n \n judge = judgeScore(score[0], score[1], score[2]);\n \n System.out.println(judge);\n }", "line = br.readLine()", "line", "br.readLine()", "br.readLine", "br", "String ary[] = line.split(\" \");", "ary", "line.split(\" \")", "line.split", "line", "\" \"", "score[0] = Integer.parseInt(ary[0])", "score[0]", "score", "0", "Integer.parseInt(ary[0])", "Integer.parseInt", "Integer", "ary[0]", "ary", "0", "score[1] = Integer.parseInt(ary[1])", "score[1]", "score", "1", "Integer.parseInt(ary[1])", "Integer.parseInt", "Integer", "ary[1]", "ary", "1", "score[2] = Integer.parseInt(ary[2])", "score[2]", "score", "2", "Integer.parseInt(ary[2])", "Integer.parseInt", "Integer", "ary[2]", "ary", "2", "if(score[0] == -1 && score[1] == -1 && score[2] == -1){\n break;\n }", "score[0] == -1 && score[1] == -1 && score[2] == -1", "score[0] == -1 && score[1] == -1 && score[2] == -1", "score[0] == -1", "score[0]", "score", "0", "-1", "1", "score[1] == -1", "score[1]", "score", "1", "-1", "1", "score[2] == -1", "score[2]", "score", "2", "-1", "1", "{\n break;\n }", "break;", "judge = judgeScore(score[0], score[1], score[2])", "judge", "judgeScore(score[0], score[1], score[2])", "judgeScore", "score[0]", "score", "0", "score[1]", "score", "1", "score[2]", "score", "2", "System.out.println(judge)", "System.out.println", "System.out", "System", "System.out", "judge", "String[] args", "args", "static String judgeScore(int tyukan, int kimatu, int sai){\n int sum = tyukan + kimatu;\n String judge;\n \n if(tyukan == -1 || kimatu == -1){\n judge = \"F\";\n }else if(sum >= 80){\n judge = \"A\";\n }else if(sum >= 65){\n judge = \"B\";\n }else if(sum >= 50){\n judge = \"C\";\n }else if(sum >= 30){\n judge = \"D\";\n }else{\n judge = \"F\";\n }\n \n if(sai >= 50){\n judge = \"C\";\n }\n \n return judge;\n }", "judgeScore", "{\n int sum = tyukan + kimatu;\n String judge;\n \n if(tyukan == -1 || kimatu == -1){\n judge = \"F\";\n }else if(sum >= 80){\n judge = \"A\";\n }else if(sum >= 65){\n judge = \"B\";\n }else if(sum >= 50){\n judge = \"C\";\n }else if(sum >= 30){\n judge = \"D\";\n }else{\n judge = \"F\";\n }\n \n if(sai >= 50){\n judge = \"C\";\n }\n \n return judge;\n }", "int sum = tyukan + kimatu;", "sum", "tyukan + kimatu", "tyukan", "kimatu", "String judge;", "judge", "if(tyukan == -1 || kimatu == -1){\n judge = \"F\";\n }else if(sum >= 80){\n judge = \"A\";\n }else if(sum >= 65){\n judge = \"B\";\n }else if(sum >= 50){\n judge = \"C\";\n }else if(sum >= 30){\n judge = \"D\";\n }else{\n judge = \"F\";\n }", "tyukan == -1 || kimatu == -1", "tyukan == -1", "tyukan", "-1", "1", "kimatu == -1", "kimatu", "-1", "1", "{\n judge = \"F\";\n }", "judge = \"F\"", "judge", "\"F\"", "if(sum >= 80){\n judge = \"A\";\n }else if(sum >= 65){\n judge = \"B\";\n }else if(sum >= 50){\n judge = \"C\";\n }else if(sum >= 30){\n judge = \"D\";\n }else{\n judge = \"F\";\n }", "sum >= 80", "sum", "80", "{\n judge = \"A\";\n }", "judge = \"A\"", "judge", "\"A\"", "if(sum >= 65){\n judge = \"B\";\n }else if(sum >= 50){\n judge = \"C\";\n }else if(sum >= 30){\n judge = \"D\";\n }else{\n judge = \"F\";\n }", "sum >= 65", "sum", "65", "{\n judge = \"B\";\n }", "judge = \"B\"", "judge", "\"B\"", "if(sum >= 50){\n judge = \"C\";\n }else if(sum >= 30){\n judge = \"D\";\n }else{\n judge = \"F\";\n }", "sum >= 50", "sum", "50", "{\n judge = \"C\";\n }", "judge = \"C\"", "judge", "\"C\"", "if(sum >= 30){\n judge = \"D\";\n }else{\n judge = \"F\";\n }", "sum >= 30", "sum", "30", "{\n judge = \"D\";\n }", "judge = \"D\"", "judge", "\"D\"", "{\n judge = \"F\";\n }", "judge = \"F\"", "judge", "\"F\"", "if(sai >= 50){\n judge = \"C\";\n }", "sai >= 50", "sai", "50", "{\n judge = \"C\";\n }", "judge = \"C\"", "judge", "\"C\"", "return judge;", "judge", "int tyukan", "tyukan", "int kimatu", "kimatu", "int sai", "sai", "public class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n String judge;\n int[] score = new int[3];\n \n while (true) {\n line = br.readLine();\n \n String ary[] = line.split(\" \");\n score[0] = Integer.parseInt(ary[0]);\n score[1] = Integer.parseInt(ary[1]);\n score[2] = Integer.parseInt(ary[2]);\n \n if(score[0] == -1 && score[1] == -1 && score[2] == -1){\n break;\n }\n \n judge = judgeScore(score[0], score[1], score[2]);\n \n System.out.println(judge);\n }\n \n }\n \n static String judgeScore(int tyukan, int kimatu, int sai){\n int sum = tyukan + kimatu;\n String judge;\n \n if(tyukan == -1 || kimatu == -1){\n judge = \"F\";\n }else if(sum >= 80){\n judge = \"A\";\n }else if(sum >= 65){\n judge = \"B\";\n }else if(sum >= 50){\n judge = \"C\";\n }else if(sum >= 30){\n judge = \"D\";\n }else{\n judge = \"F\";\n }\n \n if(sai >= 50){\n judge = \"C\";\n }\n \n return judge;\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line;\n String judge;\n int[] score = new int[3];\n \n while (true) {\n line = br.readLine();\n \n String ary[] = line.split(\" \");\n score[0] = Integer.parseInt(ary[0]);\n score[1] = Integer.parseInt(ary[1]);\n score[2] = Integer.parseInt(ary[2]);\n \n if(score[0] == -1 && score[1] == -1 && score[2] == -1){\n break;\n }\n \n judge = judgeScore(score[0], score[1], score[2]);\n \n System.out.println(judge);\n }\n \n }\n \n static String judgeScore(int tyukan, int kimatu, int sai){\n int sum = tyukan + kimatu;\n String judge;\n \n if(tyukan == -1 || kimatu == -1){\n judge = \"F\";\n }else if(sum >= 80){\n judge = \"A\";\n }else if(sum >= 65){\n judge = \"B\";\n }else if(sum >= 50){\n judge = \"C\";\n }else if(sum >= 30){\n judge = \"D\";\n }else{\n judge = \"F\";\n }\n \n if(sai >= 50){\n judge = \"C\";\n }\n \n return judge;\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // Here your code ! BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line; String judge; int[] score = new int[3]; while (true) { line = br.readLine(); String ary[] = line.split(" "); score[0] = Integer.parseInt(ary[0]); score[1] = Integer.parseInt(ary[1]); score[2] = Integer.parseInt(ary[2]); if(score[0] == -1 && score[1] == -1 && score[2] == -1){ break; } judge = judgeScore(score[0], score[1], score[2]); System.out.println(judge); } } static String judgeScore(int tyukan, int kimatu, int sai){ int sum = tyukan + kimatu; String judge; if(tyukan == -1 || kimatu == -1){ judge = "F"; }else if(sum >= 80){ judge = "A"; }else if(sum >= 65){ judge = "B"; }else if(sum >= 50){ judge = "C"; }else if(sum >= 30){ judge = "D"; }else{ judge = "F"; } if(sai >= 50){ judge = "C"; } return judge; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 20, 13, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 41, 13, 2, 18, 13, 17, 18, 13, 17, 14, 2, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 30, 3, 14, 2, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 18, 13, 17, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 33, 38 ], [ 30, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 30, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 30, 71 ], [ 71, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 73, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 73, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 71, 92 ], [ 92, 93 ], [ 30, 94 ], [ 94, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 96, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 96, 109 ], [ 109, 110 ], [ 109, 111 ], [ 94, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 94, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 122, 124 ], [ 117, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 126, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 126, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 117, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 147, 149 ], [ 142, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 142, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 160, 162 ], [ 155, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 164, 167 ], [ 155, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 30, 177 ], [ 177, 178 ], [ 178, 179 ], [ 177, 180 ], [ 14, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 181, 186 ], [ 12, 187 ], [ 187, 188 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\nclass Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal int test_num = 3;\n\t\tint[] score = new int[test_num];\n\n\t\twhile(true){\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < test_num; i++){\n\t\t\t\tscore[i] = Integer.parseInt(token[i]);\n\t\t\t}\n\n\t\t\tint total_score = score[0] + score[1];\n\n\t\t\tif(score[0] == -1 && score[1] == -1 && score[2] == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(score[0] == -1 || score[1] == -1 || total_score < 30){\n\t\t\t\tsb.append(\"F\");\n\t\t\t}else if(total_score >= 30 && total_score < 50){\n\n\t\t\t\tif(score[2] < 50){\n\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"C\");\n\t\t\t\t}\n\n\t\t\t}else if(total_score >= 50 && total_score < 65){\n\t\t\t\tsb.append(\"C\");\n\t\t\t}else if(total_score >=65 && total_score < 80){\n\t\t\t\tsb.append(\"B\");\n\t\t\t}else if(total_score >= 80){\n\t\t\t\tsb.append(\"A\");\n\t\t\t}\n\n\t\t\tsb.append(\"\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "class Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal int test_num = 3;\n\t\tint[] score = new int[test_num];\n\n\t\twhile(true){\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < test_num; i++){\n\t\t\t\tscore[i] = Integer.parseInt(token[i]);\n\t\t\t}\n\n\t\t\tint total_score = score[0] + score[1];\n\n\t\t\tif(score[0] == -1 && score[1] == -1 && score[2] == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(score[0] == -1 || score[1] == -1 || total_score < 30){\n\t\t\t\tsb.append(\"F\");\n\t\t\t}else if(total_score >= 30 && total_score < 50){\n\n\t\t\t\tif(score[2] < 50){\n\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"C\");\n\t\t\t\t}\n\n\t\t\t}else if(total_score >= 50 && total_score < 65){\n\t\t\t\tsb.append(\"C\");\n\t\t\t}else if(total_score >=65 && total_score < 80){\n\t\t\t\tsb.append(\"B\");\n\t\t\t}else if(total_score >= 80){\n\t\t\t\tsb.append(\"A\");\n\t\t\t}\n\n\t\t\tsb.append(\"\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal int test_num = 3;\n\t\tint[] score = new int[test_num];\n\n\t\twhile(true){\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < test_num; i++){\n\t\t\t\tscore[i] = Integer.parseInt(token[i]);\n\t\t\t}\n\n\t\t\tint total_score = score[0] + score[1];\n\n\t\t\tif(score[0] == -1 && score[1] == -1 && score[2] == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(score[0] == -1 || score[1] == -1 || total_score < 30){\n\t\t\t\tsb.append(\"F\");\n\t\t\t}else if(total_score >= 30 && total_score < 50){\n\n\t\t\t\tif(score[2] < 50){\n\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"C\");\n\t\t\t\t}\n\n\t\t\t}else if(total_score >= 50 && total_score < 65){\n\t\t\t\tsb.append(\"C\");\n\t\t\t}else if(total_score >=65 && total_score < 80){\n\t\t\t\tsb.append(\"B\");\n\t\t\t}else if(total_score >= 80){\n\t\t\t\tsb.append(\"A\");\n\t\t\t}\n\n\t\t\tsb.append(\"\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal int test_num = 3;\n\t\tint[] score = new int[test_num];\n\n\t\twhile(true){\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < test_num; i++){\n\t\t\t\tscore[i] = Integer.parseInt(token[i]);\n\t\t\t}\n\n\t\t\tint total_score = score[0] + score[1];\n\n\t\t\tif(score[0] == -1 && score[1] == -1 && score[2] == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(score[0] == -1 || score[1] == -1 || total_score < 30){\n\t\t\t\tsb.append(\"F\");\n\t\t\t}else if(total_score >= 30 && total_score < 50){\n\n\t\t\t\tif(score[2] < 50){\n\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"C\");\n\t\t\t\t}\n\n\t\t\t}else if(total_score >= 50 && total_score < 65){\n\t\t\t\tsb.append(\"C\");\n\t\t\t}else if(total_score >=65 && total_score < 80){\n\t\t\t\tsb.append(\"B\");\n\t\t\t}else if(total_score >= 80){\n\t\t\t\tsb.append(\"A\");\n\t\t\t}\n\n\t\t\tsb.append(\"\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "final int test_num = 3;", "test_num", "3", "int[] score = new int[test_num];", "score", "new int[test_num]", "test_num", "while(true){\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < test_num; i++){\n\t\t\t\tscore[i] = Integer.parseInt(token[i]);\n\t\t\t}\n\n\t\t\tint total_score = score[0] + score[1];\n\n\t\t\tif(score[0] == -1 && score[1] == -1 && score[2] == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(score[0] == -1 || score[1] == -1 || total_score < 30){\n\t\t\t\tsb.append(\"F\");\n\t\t\t}else if(total_score >= 30 && total_score < 50){\n\n\t\t\t\tif(score[2] < 50){\n\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"C\");\n\t\t\t\t}\n\n\t\t\t}else if(total_score >= 50 && total_score < 65){\n\t\t\t\tsb.append(\"C\");\n\t\t\t}else if(total_score >=65 && total_score < 80){\n\t\t\t\tsb.append(\"B\");\n\t\t\t}else if(total_score >= 80){\n\t\t\t\tsb.append(\"A\");\n\t\t\t}\n\n\t\t\tsb.append(\"\\n\");\n\n\t\t}", "true", "{\n\n\t\t\tString[] token = br.readLine().split(\" \");\n\n\t\t\tfor(int i = 0; i < test_num; i++){\n\t\t\t\tscore[i] = Integer.parseInt(token[i]);\n\t\t\t}\n\n\t\t\tint total_score = score[0] + score[1];\n\n\t\t\tif(score[0] == -1 && score[1] == -1 && score[2] == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(score[0] == -1 || score[1] == -1 || total_score < 30){\n\t\t\t\tsb.append(\"F\");\n\t\t\t}else if(total_score >= 30 && total_score < 50){\n\n\t\t\t\tif(score[2] < 50){\n\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"C\");\n\t\t\t\t}\n\n\t\t\t}else if(total_score >= 50 && total_score < 65){\n\t\t\t\tsb.append(\"C\");\n\t\t\t}else if(total_score >=65 && total_score < 80){\n\t\t\t\tsb.append(\"B\");\n\t\t\t}else if(total_score >= 80){\n\t\t\t\tsb.append(\"A\");\n\t\t\t}\n\n\t\t\tsb.append(\"\\n\");\n\n\t\t}", "String[] token = br.readLine().split(\" \");", "token", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "for(int i = 0; i < test_num; i++){\n\t\t\t\tscore[i] = Integer.parseInt(token[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < test_num", "i", "test_num", "i++", "i++", "i", "{\n\t\t\t\tscore[i] = Integer.parseInt(token[i]);\n\t\t\t}", "{\n\t\t\t\tscore[i] = Integer.parseInt(token[i]);\n\t\t\t}", "score[i] = Integer.parseInt(token[i])", "score[i]", "score", "i", "Integer.parseInt(token[i])", "Integer.parseInt", "Integer", "token[i]", "token", "i", "int total_score = score[0] + score[1];", "total_score", "score[0] + score[1]", "score[0]", "score", "0", "score[1]", "score", "1", "if(score[0] == -1 && score[1] == -1 && score[2] == -1){\n\t\t\t\tbreak;\n\t\t\t}", "score[0] == -1 && score[1] == -1 && score[2] == -1", "score[0] == -1 && score[1] == -1 && score[2] == -1", "score[0] == -1", "score[0]", "score", "0", "-1", "1", "score[1] == -1", "score[1]", "score", "1", "-1", "1", "score[2] == -1", "score[2]", "score", "2", "-1", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(score[0] == -1 || score[1] == -1 || total_score < 30){\n\t\t\t\tsb.append(\"F\");\n\t\t\t}else if(total_score >= 30 && total_score < 50){\n\n\t\t\t\tif(score[2] < 50){\n\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"C\");\n\t\t\t\t}\n\n\t\t\t}else if(total_score >= 50 && total_score < 65){\n\t\t\t\tsb.append(\"C\");\n\t\t\t}else if(total_score >=65 && total_score < 80){\n\t\t\t\tsb.append(\"B\");\n\t\t\t}else if(total_score >= 80){\n\t\t\t\tsb.append(\"A\");\n\t\t\t}", "score[0] == -1 || score[1] == -1 || total_score < 30", "score[0] == -1 || score[1] == -1 || total_score < 30", "score[0] == -1", "score[0]", "score", "0", "-1", "1", "score[1] == -1", "score[1]", "score", "1", "-1", "1", "total_score < 30", "total_score", "30", "{\n\t\t\t\tsb.append(\"F\");\n\t\t\t}", "sb.append(\"F\")", "sb.append", "sb", "\"F\"", "if(total_score >= 30 && total_score < 50){\n\n\t\t\t\tif(score[2] < 50){\n\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"C\");\n\t\t\t\t}\n\n\t\t\t}else if(total_score >= 50 && total_score < 65){\n\t\t\t\tsb.append(\"C\");\n\t\t\t}else if(total_score >=65 && total_score < 80){\n\t\t\t\tsb.append(\"B\");\n\t\t\t}else if(total_score >= 80){\n\t\t\t\tsb.append(\"A\");\n\t\t\t}", "total_score >= 30 && total_score < 50", "total_score >= 30", "total_score", "30", "total_score < 50", "total_score", "50", "{\n\n\t\t\t\tif(score[2] < 50){\n\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"C\");\n\t\t\t\t}\n\n\t\t\t}", "if(score[2] < 50){\n\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"C\");\n\t\t\t\t}", "score[2] < 50", "score[2]", "score", "2", "50", "{\n\t\t\t\t\tsb.append(\"D\");\n\t\t\t\t}", "sb.append(\"D\")", "sb.append", "sb", "\"D\"", "{\n\t\t\t\t\tsb.append(\"C\");\n\t\t\t\t}", "sb.append(\"C\")", "sb.append", "sb", "\"C\"", "if(total_score >= 50 && total_score < 65){\n\t\t\t\tsb.append(\"C\");\n\t\t\t}else if(total_score >=65 && total_score < 80){\n\t\t\t\tsb.append(\"B\");\n\t\t\t}else if(total_score >= 80){\n\t\t\t\tsb.append(\"A\");\n\t\t\t}", "total_score >= 50 && total_score < 65", "total_score >= 50", "total_score", "50", "total_score < 65", "total_score", "65", "{\n\t\t\t\tsb.append(\"C\");\n\t\t\t}", "sb.append(\"C\")", "sb.append", "sb", "\"C\"", "if(total_score >=65 && total_score < 80){\n\t\t\t\tsb.append(\"B\");\n\t\t\t}else if(total_score >= 80){\n\t\t\t\tsb.append(\"A\");\n\t\t\t}", "total_score >=65 && total_score < 80", "total_score >=65", "total_score", "65", "total_score < 80", "total_score", "80", "{\n\t\t\t\tsb.append(\"B\");\n\t\t\t}", "sb.append(\"B\")", "sb.append", "sb", "\"B\"", "if(total_score >= 80){\n\t\t\t\tsb.append(\"A\");\n\t\t\t}", "total_score >= 80", "total_score", "80", "{\n\t\t\t\tsb.append(\"A\");\n\t\t\t}", "sb.append(\"A\")", "sb.append", "sb", "\"A\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); final int test_num = 3; int[] score = new int[test_num]; while(true){ String[] token = br.readLine().split(" "); for(int i = 0; i < test_num; i++){ score[i] = Integer.parseInt(token[i]); } int total_score = score[0] + score[1]; if(score[0] == -1 && score[1] == -1 && score[2] == -1){ break; } if(score[0] == -1 || score[1] == -1 || total_score < 30){ sb.append("F"); }else if(total_score >= 30 && total_score < 50){ if(score[2] < 50){ sb.append("D"); }else{ sb.append("C"); } }else if(total_score >= 50 && total_score < 65){ sb.append("C"); }else if(total_score >=65 && total_score < 80){ sb.append("B"); }else if(total_score >= 80){ sb.append("A"); } sb.append("\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 11, 1, 41, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 14, 2, 2, 2, 4, 18, 13, 13, 40, 17, 2, 4, 18, 13, 13, 40, 17, 2, 4, 18, 13, 13, 40, 17, 3, 11, 1, 41, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 4, 18, 13, 13, 40, 17, 2, 4, 18, 13, 13, 40, 17, 2, 4, 18, 13, 13, 40, 17, 3, 4, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 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 ], [ 224, 11 ], [ 224, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 14, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 27, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 36, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 36, 58 ], [ 58, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 61, 66 ], [ 66, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 73, 74 ], [ 60, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 75, 80 ], [ 80, 81 ], [ 58, 82 ], [ 14, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 89, 90 ], [ 83, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 96, 101 ], [ 101, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 103, 108 ], [ 108, 109 ], [ 95, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 110, 115 ], [ 115, 116 ], [ 93, 117 ], [ 92, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 118, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 118, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 12, 132 ], [ 132, 133 ], [ 224, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 138, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 137, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 137, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 154, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 154, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 167, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 167, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 181, 187 ], [ 187, 188 ], [ 187, 189 ], [ 180, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 191, 196 ], [ 180, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 198, 202 ], [ 197, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 204, 209 ], [ 197, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 211, 216 ], [ 134, 217 ], [ 217, 218 ], [ 134, 219 ], [ 219, 220 ], [ 134, 221 ], [ 221, 222 ], [ 0, 223 ], [ 223, 224 ], [ 223, 225 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> m = new ArrayList<Integer>();\n\t\tList<Integer> f = new ArrayList<Integer>();\n\t\tList<Integer> r = new ArrayList<Integer>();\n\n\t\t for(int i=0;;i++){\n\t\t\t m.add(i, scan.nextInt());\n\t\t\t f.add(i, scan.nextInt());\n\t\t\t r.add(i, scan.nextInt());\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t\tjudgeGrade(m.get(i),f.get(i),r.get(i));\n\t\t }\n\t}\n\n\tstatic void judgeGrade(int mid,int last,int re){\n\t\tif(mid==-1 || last==-1){\n\t\t\tSystem.out.println(\"F\");\n\t\t}else if(mid+last >= 80){\n\t\t\tSystem.out.println(\"A\");\n\t\t}else if(mid+last >= 65){\n\t\t\tSystem.out.println(\"B\");\n\t\t}else if(mid+last >= 50 || re >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t}else if(mid+last >= 30){\n\t\t\tSystem.out.println(\"D\");\n\t\t}else{\n\t\t\tSystem.out.println(\"F\");\n\t\t}\n\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> m = new ArrayList<Integer>();\n\t\tList<Integer> f = new ArrayList<Integer>();\n\t\tList<Integer> r = new ArrayList<Integer>();\n\n\t\t for(int i=0;;i++){\n\t\t\t m.add(i, scan.nextInt());\n\t\t\t f.add(i, scan.nextInt());\n\t\t\t r.add(i, scan.nextInt());\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t\tjudgeGrade(m.get(i),f.get(i),r.get(i));\n\t\t }\n\t}\n\n\tstatic void judgeGrade(int mid,int last,int re){\n\t\tif(mid==-1 || last==-1){\n\t\t\tSystem.out.println(\"F\");\n\t\t}else if(mid+last >= 80){\n\t\t\tSystem.out.println(\"A\");\n\t\t}else if(mid+last >= 65){\n\t\t\tSystem.out.println(\"B\");\n\t\t}else if(mid+last >= 50 || re >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t}else if(mid+last >= 30){\n\t\t\tSystem.out.println(\"D\");\n\t\t}else{\n\t\t\tSystem.out.println(\"F\");\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> m = new ArrayList<Integer>();\n\t\tList<Integer> f = new ArrayList<Integer>();\n\t\tList<Integer> r = new ArrayList<Integer>();\n\n\t\t for(int i=0;;i++){\n\t\t\t m.add(i, scan.nextInt());\n\t\t\t f.add(i, scan.nextInt());\n\t\t\t r.add(i, scan.nextInt());\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t\tjudgeGrade(m.get(i),f.get(i),r.get(i));\n\t\t }\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> m = new ArrayList<Integer>();\n\t\tList<Integer> f = new ArrayList<Integer>();\n\t\tList<Integer> r = new ArrayList<Integer>();\n\n\t\t for(int i=0;;i++){\n\t\t\t m.add(i, scan.nextInt());\n\t\t\t f.add(i, scan.nextInt());\n\t\t\t r.add(i, scan.nextInt());\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t\tjudgeGrade(m.get(i),f.get(i),r.get(i));\n\t\t }\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "List<Integer> m = new ArrayList<Integer>();", "m", "new ArrayList<Integer>()", "List<Integer> f = new ArrayList<Integer>();", "f", "new ArrayList<Integer>()", "List<Integer> r = new ArrayList<Integer>();", "r", "new ArrayList<Integer>()", "for(int i=0;;i++){\n\t\t\t m.add(i, scan.nextInt());\n\t\t\t f.add(i, scan.nextInt());\n\t\t\t r.add(i, scan.nextInt());\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t }", "int i=0;", "int i=0;", "i", "0", "i++", "i++", "i", "{\n\t\t\t m.add(i, scan.nextInt());\n\t\t\t f.add(i, scan.nextInt());\n\t\t\t r.add(i, scan.nextInt());\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t }", "{\n\t\t\t m.add(i, scan.nextInt());\n\t\t\t f.add(i, scan.nextInt());\n\t\t\t r.add(i, scan.nextInt());\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t }", "m.add(i, scan.nextInt())", "m.add", "m", "i", "scan.nextInt()", "scan.nextInt", "scan", "f.add(i, scan.nextInt())", "f.add", "f", "i", "scan.nextInt()", "scan.nextInt", "scan", "r.add(i, scan.nextInt())", "r.add", "r", "i", "scan.nextInt()", "scan.nextInt", "scan", "if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;", "m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1", "m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1", "m.get(i)==-1", "m.get(i)", "m.get", "m", "i", "-1", "1", "f.get(i)==-1", "f.get(i)", "f.get", "f", "i", "-1", "1", "r.get(i)==-1", "r.get(i)", "r.get", "r", "i", "-1", "1", "break;", "for(int i=0;;i++){\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t\tjudgeGrade(m.get(i),f.get(i),r.get(i));\n\t\t }", "int i=0;", "int i=0;", "i", "0", "i++", "i++", "i", "{\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t\tjudgeGrade(m.get(i),f.get(i),r.get(i));\n\t\t }", "{\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t\tjudgeGrade(m.get(i),f.get(i),r.get(i));\n\t\t }", "if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;", "m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1", "m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1", "m.get(i)==-1", "m.get(i)", "m.get", "m", "i", "-1", "1", "f.get(i)==-1", "f.get(i)", "f.get", "f", "i", "-1", "1", "r.get(i)==-1", "r.get(i)", "r.get", "r", "i", "-1", "1", "break;", "judgeGrade(m.get(i),f.get(i),r.get(i))", "judgeGrade", "m.get(i)", "m.get", "m", "i", "f.get(i)", "f.get", "f", "i", "r.get(i)", "r.get", "r", "i", "String[] args", "args", "static void judgeGrade(int mid,int last,int re){\n\t\tif(mid==-1 || last==-1){\n\t\t\tSystem.out.println(\"F\");\n\t\t}else if(mid+last >= 80){\n\t\t\tSystem.out.println(\"A\");\n\t\t}else if(mid+last >= 65){\n\t\t\tSystem.out.println(\"B\");\n\t\t}else if(mid+last >= 50 || re >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t}else if(mid+last >= 30){\n\t\t\tSystem.out.println(\"D\");\n\t\t}else{\n\t\t\tSystem.out.println(\"F\");\n\t\t}\n\n\t}", "judgeGrade", "{\n\t\tif(mid==-1 || last==-1){\n\t\t\tSystem.out.println(\"F\");\n\t\t}else if(mid+last >= 80){\n\t\t\tSystem.out.println(\"A\");\n\t\t}else if(mid+last >= 65){\n\t\t\tSystem.out.println(\"B\");\n\t\t}else if(mid+last >= 50 || re >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t}else if(mid+last >= 30){\n\t\t\tSystem.out.println(\"D\");\n\t\t}else{\n\t\t\tSystem.out.println(\"F\");\n\t\t}\n\n\t}", "if(mid==-1 || last==-1){\n\t\t\tSystem.out.println(\"F\");\n\t\t}else if(mid+last >= 80){\n\t\t\tSystem.out.println(\"A\");\n\t\t}else if(mid+last >= 65){\n\t\t\tSystem.out.println(\"B\");\n\t\t}else if(mid+last >= 50 || re >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t}else if(mid+last >= 30){\n\t\t\tSystem.out.println(\"D\");\n\t\t}else{\n\t\t\tSystem.out.println(\"F\");\n\t\t}", "mid==-1 || last==-1", "mid==-1", "mid", "-1", "1", "last==-1", "last", "-1", "1", "{\n\t\t\tSystem.out.println(\"F\");\n\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(mid+last >= 80){\n\t\t\tSystem.out.println(\"A\");\n\t\t}else if(mid+last >= 65){\n\t\t\tSystem.out.println(\"B\");\n\t\t}else if(mid+last >= 50 || re >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t}else if(mid+last >= 30){\n\t\t\tSystem.out.println(\"D\");\n\t\t}else{\n\t\t\tSystem.out.println(\"F\");\n\t\t}", "mid+last >= 80", "mid+last", "mid", "last", "80", "{\n\t\t\tSystem.out.println(\"A\");\n\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(mid+last >= 65){\n\t\t\tSystem.out.println(\"B\");\n\t\t}else if(mid+last >= 50 || re >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t}else if(mid+last >= 30){\n\t\t\tSystem.out.println(\"D\");\n\t\t}else{\n\t\t\tSystem.out.println(\"F\");\n\t\t}", "mid+last >= 65", "mid+last", "mid", "last", "65", "{\n\t\t\tSystem.out.println(\"B\");\n\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(mid+last >= 50 || re >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t}else if(mid+last >= 30){\n\t\t\tSystem.out.println(\"D\");\n\t\t}else{\n\t\t\tSystem.out.println(\"F\");\n\t\t}", "mid+last >= 50 || re >= 50", "mid+last >= 50", "mid+last", "mid", "last", "50", "re >= 50", "re", "50", "{\n\t\t\tSystem.out.println(\"C\");\n\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(mid+last >= 30){\n\t\t\tSystem.out.println(\"D\");\n\t\t}else{\n\t\t\tSystem.out.println(\"F\");\n\t\t}", "mid+last >= 30", "mid+last", "mid", "last", "30", "{\n\t\t\tSystem.out.println(\"D\");\n\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t\tSystem.out.println(\"F\");\n\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "int mid", "mid", "int last", "last", "int re", "re", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> m = new ArrayList<Integer>();\n\t\tList<Integer> f = new ArrayList<Integer>();\n\t\tList<Integer> r = new ArrayList<Integer>();\n\n\t\t for(int i=0;;i++){\n\t\t\t m.add(i, scan.nextInt());\n\t\t\t f.add(i, scan.nextInt());\n\t\t\t r.add(i, scan.nextInt());\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t\tjudgeGrade(m.get(i),f.get(i),r.get(i));\n\t\t }\n\t}\n\n\tstatic void judgeGrade(int mid,int last,int re){\n\t\tif(mid==-1 || last==-1){\n\t\t\tSystem.out.println(\"F\");\n\t\t}else if(mid+last >= 80){\n\t\t\tSystem.out.println(\"A\");\n\t\t}else if(mid+last >= 65){\n\t\t\tSystem.out.println(\"B\");\n\t\t}else if(mid+last >= 50 || re >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t}else if(mid+last >= 30){\n\t\t\tSystem.out.println(\"D\");\n\t\t}else{\n\t\t\tSystem.out.println(\"F\");\n\t\t}\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> m = new ArrayList<Integer>();\n\t\tList<Integer> f = new ArrayList<Integer>();\n\t\tList<Integer> r = new ArrayList<Integer>();\n\n\t\t for(int i=0;;i++){\n\t\t\t m.add(i, scan.nextInt());\n\t\t\t f.add(i, scan.nextInt());\n\t\t\t r.add(i, scan.nextInt());\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\t if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break;\n\t\t\tjudgeGrade(m.get(i),f.get(i),r.get(i));\n\t\t }\n\t}\n\n\tstatic void judgeGrade(int mid,int last,int re){\n\t\tif(mid==-1 || last==-1){\n\t\t\tSystem.out.println(\"F\");\n\t\t}else if(mid+last >= 80){\n\t\t\tSystem.out.println(\"A\");\n\t\t}else if(mid+last >= 65){\n\t\t\tSystem.out.println(\"B\");\n\t\t}else if(mid+last >= 50 || re >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t}else if(mid+last >= 30){\n\t\t\tSystem.out.println(\"D\");\n\t\t}else{\n\t\t\tSystem.out.println(\"F\");\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); List<Integer> m = new ArrayList<Integer>(); List<Integer> f = new ArrayList<Integer>(); List<Integer> r = new ArrayList<Integer>(); for(int i=0;;i++){ m.add(i, scan.nextInt()); f.add(i, scan.nextInt()); r.add(i, scan.nextInt()); if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break; } for(int i=0;;i++){ if(m.get(i)==-1 && f.get(i)==-1 && r.get(i)==-1) break; judgeGrade(m.get(i),f.get(i),r.get(i)); } } static void judgeGrade(int mid,int last,int re){ if(mid==-1 || last==-1){ System.out.println("F"); }else if(mid+last >= 80){ System.out.println("A"); }else if(mid+last >= 65){ System.out.println("B"); }else if(mid+last >= 50 || re >= 50) { System.out.println("C"); }else if(mid+last >= 30){ System.out.println("D"); }else{ System.out.println("F"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 40, 17, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 204, 8 ], [ 204, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 16, 19 ], [ 19, 20 ], [ 12, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 35, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 35, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 35, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 35, 66 ], [ 66, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 68, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 66, 81 ], [ 81, 82 ], [ 35, 83 ], [ 83, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 85, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 83, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 83, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 106, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 120, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 119, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 119, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 140, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 139, 151 ], [ 151, 152 ], [ 151, 153 ], [ 138, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 138, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 162, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 161, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 161, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 181, 185 ], [ 180, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 187, 192 ], [ 35, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 21, 198 ], [ 198, 199 ], [ 199, 200 ], [ 9, 201 ], [ 201, 202 ], [ 0, 203 ], [ 203, 204 ], [ 203, 205 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n/**\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_7_A\n * \n * @author chrone\n * \n */\npublic class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int m = Integer.valueOf(inputs[0]);\n int f = Integer.valueOf(inputs[1]);\n int r = Integer.valueOf(inputs[2]);\n \n if (m == -1 && f == -1 && r == -1) {\n break;\n // nothing to do.\n }\n \n if (m==-1 || f == -1 || (m+f <30)) {\n // F\n System.out.print(\"F\");\n } else if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }\n System.out.println();\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int m = Integer.valueOf(inputs[0]);\n int f = Integer.valueOf(inputs[1]);\n int r = Integer.valueOf(inputs[2]);\n \n if (m == -1 && f == -1 && r == -1) {\n break;\n // nothing to do.\n }\n \n if (m==-1 || f == -1 || (m+f <30)) {\n // F\n System.out.print(\"F\");\n } else if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }\n System.out.println();\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}", "Main", "public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int m = Integer.valueOf(inputs[0]);\n int f = Integer.valueOf(inputs[1]);\n int r = Integer.valueOf(inputs[2]);\n \n if (m == -1 && f == -1 && r == -1) {\n break;\n // nothing to do.\n }\n \n if (m==-1 || f == -1 || (m+f <30)) {\n // F\n System.out.print(\"F\");\n } else if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }\n System.out.println();\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }", "main", "{\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int m = Integer.valueOf(inputs[0]);\n int f = Integer.valueOf(inputs[1]);\n int r = Integer.valueOf(inputs[2]);\n \n if (m == -1 && f == -1 && r == -1) {\n break;\n // nothing to do.\n }\n \n if (m==-1 || f == -1 || (m+f <30)) {\n // F\n System.out.print(\"F\");\n } else if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }\n System.out.println();\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }", "try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int m = Integer.valueOf(inputs[0]);\n int f = Integer.valueOf(inputs[1]);\n int r = Integer.valueOf(inputs[2]);\n \n if (m == -1 && f == -1 && r == -1) {\n break;\n // nothing to do.\n }\n \n if (m==-1 || f == -1 || (m+f <30)) {\n // F\n System.out.print(\"F\");\n } else if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }\n System.out.println();\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }", "catch (Exception e) {\n System.exit(-1);\n }", "Exception e", "{\n System.exit(-1);\n }", "System.exit(-1)", "System.exit", "System", "-1", "1", "{\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int m = Integer.valueOf(inputs[0]);\n int f = Integer.valueOf(inputs[1]);\n int r = Integer.valueOf(inputs[2]);\n \n if (m == -1 && f == -1 && r == -1) {\n break;\n // nothing to do.\n }\n \n if (m==-1 || f == -1 || (m+f <30)) {\n // F\n System.out.print(\"F\");\n } else if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }\n System.out.println();\n }\n\n stdReader.close();\n }", "BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));", "stdReader", "new BufferedReader(\n new InputStreamReader(System.in))", "String sStr;", "sStr", "while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int m = Integer.valueOf(inputs[0]);\n int f = Integer.valueOf(inputs[1]);\n int r = Integer.valueOf(inputs[2]);\n \n if (m == -1 && f == -1 && r == -1) {\n break;\n // nothing to do.\n }\n \n if (m==-1 || f == -1 || (m+f <30)) {\n // F\n System.out.print(\"F\");\n } else if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }\n System.out.println();\n }", "(sStr = stdReader.readLine()) != null", "(sStr = stdReader.readLine())", "sStr", "stdReader.readLine()", "stdReader.readLine", "stdReader", "null", "{\n String[] inputs = sStr.split(\" \");\n \n int m = Integer.valueOf(inputs[0]);\n int f = Integer.valueOf(inputs[1]);\n int r = Integer.valueOf(inputs[2]);\n \n if (m == -1 && f == -1 && r == -1) {\n break;\n // nothing to do.\n }\n \n if (m==-1 || f == -1 || (m+f <30)) {\n // F\n System.out.print(\"F\");\n } else if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }\n System.out.println();\n }", "String[] inputs = sStr.split(\" \");", "inputs", "sStr.split(\" \")", "sStr.split", "sStr", "\" \"", "int m = Integer.valueOf(inputs[0]);", "m", "Integer.valueOf(inputs[0])", "Integer.valueOf", "Integer", "inputs[0]", "inputs", "0", "int f = Integer.valueOf(inputs[1]);", "f", "Integer.valueOf(inputs[1])", "Integer.valueOf", "Integer", "inputs[1]", "inputs", "1", "int r = Integer.valueOf(inputs[2]);", "r", "Integer.valueOf(inputs[2])", "Integer.valueOf", "Integer", "inputs[2]", "inputs", "2", "if (m == -1 && f == -1 && r == -1) {\n break;\n // nothing to do.\n }", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n break;\n // nothing to do.\n }", "break;", "if (m==-1 || f == -1 || (m+f <30)) {\n // F\n System.out.print(\"F\");\n } else if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }", "m==-1 || f == -1 || (m+f <30)", "m==-1 || f == -1 || (m+f <30)", "m==-1", "m", "-1", "1", "f == -1", "f", "-1", "1", "(m+f <30)", "m+f", "m", "f", "30", "{\n // F\n System.out.print(\"F\");\n }", "System.out.print(\"F\")", "System.out.print", "System.out", "System", "System.out", "\"F\"", "if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }", "m+f >= 80", "m+f", "m", "f", "80", "{\n // A\n System.out.print(\"A\");\n }", "System.out.print(\"A\")", "System.out.print", "System.out", "System", "System.out", "\"A\"", "if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }", "m+f < 80 && m+f >=65", "m+f < 80", "m+f", "m", "f", "80", "m+f >=65", "m+f", "m", "f", "65", "{\n // B\n System.out.print(\"B\");\n }", "System.out.print(\"B\")", "System.out.print", "System.out", "System", "System.out", "\"B\"", "if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }", "(m+f >=50 && m+f < 65) || r>=50", "(m+f >=50 && m+f < 65)", "m+f >=50", "m+f", "m", "f", "50", "m+f < 65", "m+f", "m", "f", "65", "r>=50", "r", "50", "{\n // C\n System.out.print(\"C\");\n }", "System.out.print(\"C\")", "System.out.print", "System.out", "System", "System.out", "\"C\"", "if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }", "m+f>=30 && m+f<50", "m+f>=30", "m+f", "m", "f", "30", "m+f<50", "m+f", "m", "f", "50", "{\n // D\n System.out.print(\"D\");\n }", "System.out.print(\"D\")", "System.out.print", "System.out", "System", "System.out", "\"D\"", "if (m+f<30) {\n // F\n System.out.print(\"F\");\n }", "m+f<30", "m+f", "m", "f", "30", "{\n // F\n System.out.print(\"F\");\n }", "System.out.print(\"F\")", "System.out.print", "System.out", "System", "System.out", "\"F\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "stdReader.close()", "stdReader.close", "stdReader", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int m = Integer.valueOf(inputs[0]);\n int f = Integer.valueOf(inputs[1]);\n int r = Integer.valueOf(inputs[2]);\n \n if (m == -1 && f == -1 && r == -1) {\n break;\n // nothing to do.\n }\n \n if (m==-1 || f == -1 || (m+f <30)) {\n // F\n System.out.print(\"F\");\n } else if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }\n System.out.println();\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int m = Integer.valueOf(inputs[0]);\n int f = Integer.valueOf(inputs[1]);\n int r = Integer.valueOf(inputs[2]);\n \n if (m == -1 && f == -1 && r == -1) {\n break;\n // nothing to do.\n }\n \n if (m==-1 || f == -1 || (m+f <30)) {\n // F\n System.out.print(\"F\");\n } else if ( m+f >= 80) {\n // A\n System.out.print(\"A\");\n } else if (m+f < 80 && m+f >=65) {\n // B\n System.out.print(\"B\");\n } else if ( (m+f >=50 && m+f < 65) || r>=50) {\n // C\n System.out.print(\"C\");\n } else if (m+f>=30 && m+f<50) {\n // D\n System.out.print(\"D\");\n } else if (m+f<30) {\n // F\n System.out.print(\"F\");\n }\n System.out.println();\n }\n\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; /** * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_7_A * * @author chrone * */ public class Main { public static void main(String[] args) { try { BufferedReader stdReader = new BufferedReader( new InputStreamReader(System.in)); String sStr; while ((sStr = stdReader.readLine()) != null) { String[] inputs = sStr.split(" "); int m = Integer.valueOf(inputs[0]); int f = Integer.valueOf(inputs[1]); int r = Integer.valueOf(inputs[2]); if (m == -1 && f == -1 && r == -1) { break; // nothing to do. } if (m==-1 || f == -1 || (m+f <30)) { // F System.out.print("F"); } else if ( m+f >= 80) { // A System.out.print("A"); } else if (m+f < 80 && m+f >=65) { // B System.out.print("B"); } else if ( (m+f >=50 && m+f < 65) || r>=50) { // C System.out.print("C"); } else if (m+f>=30 && m+f<50) { // D System.out.print("D"); } else if (m+f<30) { // F System.out.print("F"); } System.out.println(); } stdReader.close(); } catch (Exception e) { System.exit(-1); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 30, 14, 2, 13, 17, 4, 18, 13, 30, 0, 13, 20, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 40, 17, 3, 41, 13, 2, 13, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 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 ], [ 151, 5 ], [ 151, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 12, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 21, 29 ], [ 29, 30 ], [ 21, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 33, 49 ], [ 49, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 51, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 49, 62 ], [ 33, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 33, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 68, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 85, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 96, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 107, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 123, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 118, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 6, 148 ], [ 148, 149 ], [ 0, 150 ], [ 150, 151 ], [ 150, 152 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\twhile(true){\n\t\t\t\tm = scan.nextInt();\n\t\t\t\tf = scan.nextInt();\n\t\t\t\tr = scan.nextInt();\n\t\t\t\tif((m == f) &&(f == r) &&(m == -1))break;\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan !=null)scan.close();\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 = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\twhile(true){\n\t\t\t\tm = scan.nextInt();\n\t\t\t\tf = scan.nextInt();\n\t\t\t\tr = scan.nextInt();\n\t\t\t\tif((m == f) &&(f == r) &&(m == -1))break;\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan !=null)scan.close();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\twhile(true){\n\t\t\t\tm = scan.nextInt();\n\t\t\t\tf = scan.nextInt();\n\t\t\t\tr = scan.nextInt();\n\t\t\t\tif((m == f) &&(f == r) &&(m == -1))break;\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan !=null)scan.close();\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\twhile(true){\n\t\t\t\tm = scan.nextInt();\n\t\t\t\tf = scan.nextInt();\n\t\t\t\tr = scan.nextInt();\n\t\t\t\tif((m == f) &&(f == r) &&(m == -1))break;\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan !=null)scan.close();\n\t\t}\n\t}", "Scanner scan = null;", "scan", "null", "try{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\twhile(true){\n\t\t\t\tm = scan.nextInt();\n\t\t\t\tf = scan.nextInt();\n\t\t\t\tr = scan.nextInt();\n\t\t\t\tif((m == f) &&(f == r) &&(m == -1))break;\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan !=null)scan.close();\n\t\t}", "{\n\t\t\tif(scan !=null)scan.close();\n\t\t}", "if(scan !=null)scan.close();", "scan !=null", "scan", "null", "scan.close()", "scan.close", "scan", "{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\twhile(true){\n\t\t\t\tm = scan.nextInt();\n\t\t\t\tf = scan.nextInt();\n\t\t\t\tr = scan.nextInt();\n\t\t\t\tif((m == f) &&(f == r) &&(m == -1))break;\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "scan = new Scanner(System.in)", "scan", "new Scanner(System.in)", "int m", "m", "f", "f", "r;", "r", "while(true){\n\t\t\t\tm = scan.nextInt();\n\t\t\t\tf = scan.nextInt();\n\t\t\t\tr = scan.nextInt();\n\t\t\t\tif((m == f) &&(f == r) &&(m == -1))break;\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}", "true", "{\n\t\t\t\tm = scan.nextInt();\n\t\t\t\tf = scan.nextInt();\n\t\t\t\tr = scan.nextInt();\n\t\t\t\tif((m == f) &&(f == r) &&(m == -1))break;\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}", "m = scan.nextInt()", "m", "scan.nextInt()", "scan.nextInt", "scan", "f = scan.nextInt()", "f", "scan.nextInt()", "scan.nextInt", "scan", "r = scan.nextInt()", "r", "scan.nextInt()", "scan.nextInt", "scan", "if((m == f) &&(f == r) &&(m == -1))break;", "(m == f) &&(f == r) &&(m == -1)", "(m == f) &&(f == r) &&(m == -1)", "(m == f)", "m", "f", "(f == r)", "f", "r", "(m == -1)", "m", "-1", "1", "break;", "int sum = m + f;", "sum", "m + f", "m", "f", "if(m == -1 || f == -1){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "sum >= 80", "sum", "80", "{\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "sum >=65", "sum", "65", "{\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "sum >=50", "sum", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "sum >=30", "sum", "30", "{\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "r >=50", "r", "50", "{\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\twhile(true){\n\t\t\t\tm = scan.nextInt();\n\t\t\t\tf = scan.nextInt();\n\t\t\t\tr = scan.nextInt();\n\t\t\t\tif((m == f) &&(f == r) &&(m == -1))break;\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan !=null)scan.close();\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\twhile(true){\n\t\t\t\tm = scan.nextInt();\n\t\t\t\tf = scan.nextInt();\n\t\t\t\tr = scan.nextInt();\n\t\t\t\tif((m == f) &&(f == r) &&(m == -1))break;\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(sum >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(sum >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(sum >=50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(sum >=30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan !=null)scan.close();\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = null; try{ scan = new Scanner(System.in); int m,f,r; while(true){ m = scan.nextInt(); f = scan.nextInt(); r = scan.nextInt(); if((m == f) &&(f == r) &&(m == -1))break; int sum = m + f; if(m == -1 || f == -1){ System.out.println("F"); }else if(sum >= 80){ System.out.println("A"); }else if(sum >=65){ System.out.println("B"); }else if(sum >=50){ System.out.println("C"); }else if(sum >=30){ if(r >=50){ System.out.println("C"); }else{ System.out.println("D"); } }else{ System.out.println("F"); } } }finally{ if(scan !=null)scan.close(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 42, 17, 30, 41, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 30, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 194, 8 ], [ 194, 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 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 32, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 32, 51 ], [ 51, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 53, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 51, 66 ], [ 66, 67 ], [ 51, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 69, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 84, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 95, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 95, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 112, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 112, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 130, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 129, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 142, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 129, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 156, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 11, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 167, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 167, 177 ], [ 177, 178 ], [ 178, 179 ], [ 167, 180 ], [ 181, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 182, 187 ], [ 187, 188 ], [ 188, 189 ], [ 187, 190 ], [ 9, 191 ], [ 191, 192 ], [ 0, 193 ], [ 193, 194 ], [ 193, 195 ] ]
[ "import java.util.Scanner;\nimport java.util.ArrayList;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\tint count = 0;\n\t\tArrayList<String> e = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tint i = 0;\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}else if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < e.size(); j++){\n\t\t\tSystem.out.println(e.get(j));\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\tint count = 0;\n\t\tArrayList<String> e = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tint i = 0;\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}else if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < e.size(); j++){\n\t\t\tSystem.out.println(e.get(j));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\tint count = 0;\n\t\tArrayList<String> e = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tint i = 0;\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}else if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < e.size(); j++){\n\t\t\tSystem.out.println(e.get(j));\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\tint count = 0;\n\t\tArrayList<String> e = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tint i = 0;\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}else if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < e.size(); j++){\n\t\t\tSystem.out.println(e.get(j));\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int m = 0;", "m", "0", "int f = 0;", "f", "0", "int r = 0;", "r", "0", "int count = 0;", "count", "0", "ArrayList<String> e = new ArrayList<String>();", "e", "new ArrayList<String>()", "while(true){\n\t\t\tint i = 0;\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}else if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tint i = 0;\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}else if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "i", "0", "m = scan.nextInt()", "m", "scan.nextInt()", "scan.nextInt", "scan", "f = scan.nextInt()", "f", "scan.nextInt()", "scan.nextInt", "scan", "r = scan.nextInt()", "r", "scan.nextInt()", "scan.nextInt", "scan", "if(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}else if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}\n\t\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}else if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}\n\t\t\t}", "if(m == -1 || f == -1){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}else if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}", "e.add(\"F\")", "e.add", "e", "\"F\"", "if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}", "m + f >= 80", "m + f", "m", "f", "80", "{\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}", "e.add(\"A\")", "e.add", "e", "\"A\"", "if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}", "m + f >= 65 && m + f < 80", "m + f >= 65", "m + f", "m", "f", "65", "m + f < 80", "m + f", "m", "f", "80", "{\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}", "e.add(\"B\")", "e.add", "e", "\"B\"", "if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}", "m + f >= 50 && m + f < 65", "m + f >= 50", "m + f", "m", "f", "50", "m + f < 65", "m + f", "m", "f", "65", "{\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}", "e.add(\"C\")", "e.add", "e", "\"C\"", "if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}", "m + f >= 30 && m + f < 50", "m + f >= 30", "m + f", "m", "f", "30", "m + f < 50", "m + f", "m", "f", "50", "{\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}", "e.add(\"C\")", "e.add", "e", "\"C\"", "{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}", "e.add(\"D\")", "e.add", "e", "\"D\"", "if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}", "m + f < 30", "m + f", "m", "f", "30", "{\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}", "e.add(\"F\")", "e.add", "e", "\"F\"", "for(int j = 0; j < e.size(); j++){\n\t\t\tSystem.out.println(e.get(j));\n\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < e.size()", "j", "e.size()", "e.size", "e", "j++", "j++", "j", "{\n\t\t\tSystem.out.println(e.get(j));\n\t\t}", "{\n\t\t\tSystem.out.println(e.get(j));\n\t\t}", "System.out.println(e.get(j))", "System.out.println", "System.out", "System", "System.out", "e.get(j)", "e.get", "e", "j", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\tint count = 0;\n\t\tArrayList<String> e = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tint i = 0;\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}else if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < e.size(); j++){\n\t\t\tSystem.out.println(e.get(j));\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\tint count = 0;\n\t\tArrayList<String> e = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tint i = 0;\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tif(m == -1 || f == -1){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}else if(m + f >= 80){\n\t\t\t\t\te.add(\"A\");\n\t\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\t\te.add(\"B\");\n\t\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\t\te.add(\"C\");\n\t\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\te.add(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.add(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\te.add(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j = 0; j < e.size(); j++){\n\t\t\tSystem.out.println(e.get(j));\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int m = 0; int f = 0; int r = 0; int count = 0; ArrayList<String> e = new ArrayList<String>(); while(true){ int i = 0; m = scan.nextInt(); f = scan.nextInt(); r = scan.nextInt(); if(m == -1 && f == -1 && r == -1){ break; }else{ if(m == -1 || f == -1){ e.add("F"); }else if(m + f >= 80){ e.add("A"); }else if(m + f >= 65 && m + f < 80){ e.add("B"); }else if(m + f >= 50 && m + f < 65){ e.add("C"); }else if(m + f >= 30 && m + f < 50){ if(r >= 50){ e.add("C"); }else{ e.add("D"); } }else if(m + f < 30){ e.add("F"); } } } for(int j = 0; j < e.size(); j++){ System.out.println(e.get(j)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 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 ], [ 164, 5 ], [ 164, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 14, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 46, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 63, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 76, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 76, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 95, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 95, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 115, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 114, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 127, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 114, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 145, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 8, 158 ], [ 158, 159 ], [ 159, 160 ], [ 6, 161 ], [ 161, 162 ], [ 0, 163 ], [ 163, 164 ], [ 163, 165 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????\\???\n\t\twhile (true) {\n\n\t\t\tint mid = sc.nextInt();\n\t\t\tint fnl = sc.nextInt();\n\t\t\tint ret = sc.nextInt();\n\n\t\t\tif(mid == -1 && fnl == -1 && ret == -1)\n\t\t\t\tbreak;\n\n\t\t\tif( mid == -1 || fnl == -1){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else if(mid + fnl >= 80){\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t} else if (mid + fnl < 80 && mid + fnl >= 65){\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t} else if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????\\???\n\t\twhile (true) {\n\n\t\t\tint mid = sc.nextInt();\n\t\t\tint fnl = sc.nextInt();\n\t\t\tint ret = sc.nextInt();\n\n\t\t\tif(mid == -1 && fnl == -1 && ret == -1)\n\t\t\t\tbreak;\n\n\t\t\tif( mid == -1 || fnl == -1){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else if(mid + fnl >= 80){\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t} else if (mid + fnl < 80 && mid + fnl >= 65){\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t} else if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????\\???\n\t\twhile (true) {\n\n\t\t\tint mid = sc.nextInt();\n\t\t\tint fnl = sc.nextInt();\n\t\t\tint ret = sc.nextInt();\n\n\t\t\tif(mid == -1 && fnl == -1 && ret == -1)\n\t\t\t\tbreak;\n\n\t\t\tif( mid == -1 || fnl == -1){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else if(mid + fnl >= 80){\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t} else if (mid + fnl < 80 && mid + fnl >= 65){\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t} else if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????\\???\n\t\twhile (true) {\n\n\t\t\tint mid = sc.nextInt();\n\t\t\tint fnl = sc.nextInt();\n\t\t\tint ret = sc.nextInt();\n\n\t\t\tif(mid == -1 && fnl == -1 && ret == -1)\n\t\t\t\tbreak;\n\n\t\t\tif( mid == -1 || fnl == -1){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else if(mid + fnl >= 80){\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t} else if (mid + fnl < 80 && mid + fnl >= 65){\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t} else if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\n\t\t\tint mid = sc.nextInt();\n\t\t\tint fnl = sc.nextInt();\n\t\t\tint ret = sc.nextInt();\n\n\t\t\tif(mid == -1 && fnl == -1 && ret == -1)\n\t\t\t\tbreak;\n\n\t\t\tif( mid == -1 || fnl == -1){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else if(mid + fnl >= 80){\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t} else if (mid + fnl < 80 && mid + fnl >= 65){\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t} else if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}", "true", "{\n\n\t\t\tint mid = sc.nextInt();\n\t\t\tint fnl = sc.nextInt();\n\t\t\tint ret = sc.nextInt();\n\n\t\t\tif(mid == -1 && fnl == -1 && ret == -1)\n\t\t\t\tbreak;\n\n\t\t\tif( mid == -1 || fnl == -1){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else if(mid + fnl >= 80){\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t} else if (mid + fnl < 80 && mid + fnl >= 65){\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t} else if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}", "int mid = sc.nextInt();", "mid", "sc.nextInt()", "sc.nextInt", "sc", "int fnl = sc.nextInt();", "fnl", "sc.nextInt()", "sc.nextInt", "sc", "int ret = sc.nextInt();", "ret", "sc.nextInt()", "sc.nextInt", "sc", "if(mid == -1 && fnl == -1 && ret == -1)\n\t\t\t\tbreak;", "mid == -1 && fnl == -1 && ret == -1", "mid == -1 && fnl == -1 && ret == -1", "mid == -1", "mid", "-1", "1", "fnl == -1", "fnl", "-1", "1", "ret == -1", "ret", "-1", "1", "break;", "if( mid == -1 || fnl == -1){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else if(mid + fnl >= 80){\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t} else if (mid + fnl < 80 && mid + fnl >= 65){\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t} else if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "mid == -1 || fnl == -1", "mid == -1", "mid", "-1", "1", "fnl == -1", "fnl", "-1", "1", "{\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(mid + fnl >= 80){\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t} else if (mid + fnl < 80 && mid + fnl >= 65){\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t} else if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "mid + fnl >= 80", "mid + fnl", "mid", "fnl", "80", "{\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (mid + fnl < 80 && mid + fnl >= 65){\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t} else if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "mid + fnl < 80 && mid + fnl >= 65", "mid + fnl < 80", "mid + fnl", "mid", "fnl", "80", "mid + fnl >= 65", "mid + fnl", "mid", "fnl", "65", "{\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "mid + fnl < 65 && mid + fnl >= 50", "mid + fnl < 65", "mid + fnl", "mid", "fnl", "65", "mid + fnl >= 50", "mid + fnl", "mid", "fnl", "50", "{\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "mid + fnl < 50 && mid + fnl >= 30", "mid + fnl < 50", "mid + fnl", "mid", "fnl", "50", "mid + fnl >= 30", "mid + fnl", "mid", "fnl", "30", "{\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}", "if(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}", "ret >= 50", "ret", "50", "{\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "mid + fnl < 30", "mid + fnl", "mid", "fnl", "30", "{\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????\\???\n\t\twhile (true) {\n\n\t\t\tint mid = sc.nextInt();\n\t\t\tint fnl = sc.nextInt();\n\t\t\tint ret = sc.nextInt();\n\n\t\t\tif(mid == -1 && fnl == -1 && ret == -1)\n\t\t\t\tbreak;\n\n\t\t\tif( mid == -1 || fnl == -1){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else if(mid + fnl >= 80){\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t} else if (mid + fnl < 80 && mid + fnl >= 65){\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t} else if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????\\???\n\t\twhile (true) {\n\n\t\t\tint mid = sc.nextInt();\n\t\t\tint fnl = sc.nextInt();\n\t\t\tint ret = sc.nextInt();\n\n\t\t\tif(mid == -1 && fnl == -1 && ret == -1)\n\t\t\t\tbreak;\n\n\t\t\tif( mid == -1 || fnl == -1){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else if(mid + fnl >= 80){\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t} else if (mid + fnl < 80 && mid + fnl >= 65){\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t} else if (mid + fnl < 65 && mid + fnl >= 50){\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t} else if (mid + fnl < 50 && mid + fnl >= 30){\n\n\t\t\t\tif(ret >= 50){\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t} else if (mid + fnl < 30){\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?????????????????\???????????? Scanner sc = new Scanner(System.in); // ?????°?????\??? while (true) { int mid = sc.nextInt(); int fnl = sc.nextInt(); int ret = sc.nextInt(); if(mid == -1 && fnl == -1 && ret == -1) break; if( mid == -1 || fnl == -1){ System.out.println("F"); } else if(mid + fnl >= 80){ System.out.println("A"); } else if (mid + fnl < 80 && mid + fnl >= 65){ System.out.println("B"); } else if (mid + fnl < 65 && mid + fnl >= 50){ System.out.println("C"); } else if (mid + fnl < 50 && mid + fnl >= 30){ if(ret >= 50){ System.out.println("C"); } else { System.out.println("D"); } } else if (mid + fnl < 30){ System.out.println("F"); } } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 151, 5 ], [ 151, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 37, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 35, 50 ], [ 50, 51 ], [ 35, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 52, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 80, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 95, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 119, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 110, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 6, 148 ], [ 148, 149 ], [ 0, 150 ], [ 150, 151 ], [ 150, 152 ] ]
[ "\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\n\t\t\tint middle = in.nextInt();\n\t\t\tint term_end = in.nextInt();\n\t\t\tint retest = in.nextInt();\n\t\t\tint sum = middle + term_end;\n\n\t\t\tif(middle == -1 && term_end == -1 && retest == -1) {\n\n\t\t\t\tbreak;\n\n\t\t\t}else if(middle == -1 || term_end == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}else if(sum >= 80) {\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}else if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\n\t\t\tint middle = in.nextInt();\n\t\t\tint term_end = in.nextInt();\n\t\t\tint retest = in.nextInt();\n\t\t\tint sum = middle + term_end;\n\n\t\t\tif(middle == -1 && term_end == -1 && retest == -1) {\n\n\t\t\t\tbreak;\n\n\t\t\t}else if(middle == -1 || term_end == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}else if(sum >= 80) {\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}else if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\n\t\t\tint middle = in.nextInt();\n\t\t\tint term_end = in.nextInt();\n\t\t\tint retest = in.nextInt();\n\t\t\tint sum = middle + term_end;\n\n\t\t\tif(middle == -1 && term_end == -1 && retest == -1) {\n\n\t\t\t\tbreak;\n\n\t\t\t}else if(middle == -1 || term_end == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}else if(sum >= 80) {\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}else if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\n\t\t\tint middle = in.nextInt();\n\t\t\tint term_end = in.nextInt();\n\t\t\tint retest = in.nextInt();\n\t\t\tint sum = middle + term_end;\n\n\t\t\tif(middle == -1 && term_end == -1 && retest == -1) {\n\n\t\t\t\tbreak;\n\n\t\t\t}else if(middle == -1 || term_end == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}else if(sum >= 80) {\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}else if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(true) {\n\n\t\t\tint middle = in.nextInt();\n\t\t\tint term_end = in.nextInt();\n\t\t\tint retest = in.nextInt();\n\t\t\tint sum = middle + term_end;\n\n\t\t\tif(middle == -1 && term_end == -1 && retest == -1) {\n\n\t\t\t\tbreak;\n\n\t\t\t}else if(middle == -1 || term_end == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}else if(sum >= 80) {\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}else if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}", "true", "{\n\n\t\t\tint middle = in.nextInt();\n\t\t\tint term_end = in.nextInt();\n\t\t\tint retest = in.nextInt();\n\t\t\tint sum = middle + term_end;\n\n\t\t\tif(middle == -1 && term_end == -1 && retest == -1) {\n\n\t\t\t\tbreak;\n\n\t\t\t}else if(middle == -1 || term_end == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}else if(sum >= 80) {\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}else if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}", "int middle = in.nextInt();", "middle", "in.nextInt()", "in.nextInt", "in", "int term_end = in.nextInt();", "term_end", "in.nextInt()", "in.nextInt", "in", "int retest = in.nextInt();", "retest", "in.nextInt()", "in.nextInt", "in", "int sum = middle + term_end;", "sum", "middle + term_end", "middle", "term_end", "if(middle == -1 && term_end == -1 && retest == -1) {\n\n\t\t\t\tbreak;\n\n\t\t\t}else if(middle == -1 || term_end == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}else if(sum >= 80) {\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}else if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "middle == -1 && term_end == -1 && retest == -1", "middle == -1 && term_end == -1 && retest == -1", "middle == -1", "middle", "-1", "1", "term_end == -1", "term_end", "-1", "1", "retest == -1", "retest", "-1", "1", "{\n\n\t\t\t\tbreak;\n\n\t\t\t}", "break;", "if(middle == -1 || term_end == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}else if(sum >= 80) {\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}else if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "middle == -1 || term_end == -1", "middle == -1", "middle", "-1", "1", "term_end == -1", "term_end", "-1", "1", "{\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(sum >= 80) {\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}else if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "sum >= 80", "sum", "80", "{\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "sum < 80 && sum >= 65", "sum < 80", "sum", "80", "sum >= 65", "sum", "65", "{\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "sum < 65 && sum >= 50", "sum < 65", "sum", "65", "sum >= 50", "sum", "50", "{\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "sum < 50 && sum >= 30", "sum < 50", "sum", "50", "sum >= 30", "sum", "30", "{\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}", "if(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}", "retest >= 50", "retest", "50", "{\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "sum < 30", "sum", "30", "{\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\n\t\t\tint middle = in.nextInt();\n\t\t\tint term_end = in.nextInt();\n\t\t\tint retest = in.nextInt();\n\t\t\tint sum = middle + term_end;\n\n\t\t\tif(middle == -1 && term_end == -1 && retest == -1) {\n\n\t\t\t\tbreak;\n\n\t\t\t}else if(middle == -1 || term_end == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}else if(sum >= 80) {\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}else if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile(true) {\n\n\t\t\tint middle = in.nextInt();\n\t\t\tint term_end = in.nextInt();\n\t\t\tint retest = in.nextInt();\n\t\t\tint sum = middle + term_end;\n\n\t\t\tif(middle == -1 && term_end == -1 && retest == -1) {\n\n\t\t\t\tbreak;\n\n\t\t\t}else if(middle == -1 || term_end == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}else if(sum >= 80) {\n\n\t\t\t\tSystem.out.println(\"A\");\n\n\t\t\t}else if(sum < 80 && sum >= 65) {\n\n\t\t\t\tSystem.out.println(\"B\");\n\n\t\t\t}else if(sum < 65 && sum >= 50) {\n\n\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t}else if(sum < 50 && sum >= 30) {\n\n\t\t\t\tif(retest >= 50) {\n\n\t\t\t\t\tSystem.out.println(\"C\");\n\n\t\t\t\t}else {\n\n\t\t\t\t\tSystem.out.println(\"D\");\n\n\t\t\t\t}\n\n\t\t\t}else if(sum < 30) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while(true) { int middle = in.nextInt(); int term_end = in.nextInt(); int retest = in.nextInt(); int sum = middle + term_end; if(middle == -1 && term_end == -1 && retest == -1) { break; }else if(middle == -1 || term_end == -1) { System.out.println("F"); }else if(sum >= 80) { System.out.println("A"); }else if(sum < 80 && sum >= 65) { System.out.println("B"); }else if(sum < 65 && sum >= 50) { System.out.println("C"); }else if(sum < 50 && sum >= 30) { if(retest >= 50) { System.out.println("C"); }else { System.out.println("D"); } }else if(sum < 30) { System.out.println("F"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 11, 1, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 14, 2, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 3, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 14, 2, 18, 13, 17, 17, 0, 13, 17, 14, 2, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 0, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 19, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 40, 41 ], [ 19, 42 ], [ 42, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 44, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 44, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 42, 63 ], [ 19, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 64, 84 ], [ 84, 85 ], [ 84, 86 ], [ 19, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 89, 97 ], [ 88, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 87, 107 ], [ 107, 108 ], [ 107, 109 ], [ 19, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 112, 120 ], [ 111, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 126, 128 ], [ 121, 129 ], [ 110, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 131, 137 ], [ 137, 138 ], [ 137, 139 ], [ 130, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 140, 146 ], [ 146, 147 ], [ 146, 148 ], [ 19, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 150, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 149, 163 ], [ 163, 164 ], [ 163, 165 ], [ 19, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 172, 173 ], [ 172, 174 ], [ 167, 175 ], [ 166, 176 ], [ 176, 177 ], [ 176, 178 ], [ 19, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 179, 184 ], [ 6, 185 ], [ 185, 186 ] ]
[ "\nimport java.util.*;\n\nclass Main{\npublic static void main(String[] args){\nScanner sc = new Scanner(System.in);\nint []t = new int[3];\nfor(;;){\n\tString rank =\"A\";\n\tfor(int i=0; i<3; i++) t[i] =sc.nextInt();\n\tif(t[0]==-1 && t[1]==-1 && t[2]==-1) break;\n\n\tif((t[0]+t[1])>=65 && (t[0]+t[1])<80) rank =\"B\";\n\tif((t[0]+t[1])>=50 && (t[0]+t[1])<65) rank =\"C\";\n\tif((t[0]+t[1])>=30 && (t[0]+t[1])<50){\n\t\tif(t[2]<50) rank =\"D\";\n\t\tif(t[2]>=50)rank =\"C\";\n\t}\n\tif(t[0]== -1 || t[1]== -1 ) rank =\"F\";\n\tif(t[0]+t[1]<30) rank =\"F\";\n\tSystem.out.println(rank);\n}\n}\n}", "import java.util.*;", "util.*", "java", "class Main{\npublic static void main(String[] args){\nScanner sc = new Scanner(System.in);\nint []t = new int[3];\nfor(;;){\n\tString rank =\"A\";\n\tfor(int i=0; i<3; i++) t[i] =sc.nextInt();\n\tif(t[0]==-1 && t[1]==-1 && t[2]==-1) break;\n\n\tif((t[0]+t[1])>=65 && (t[0]+t[1])<80) rank =\"B\";\n\tif((t[0]+t[1])>=50 && (t[0]+t[1])<65) rank =\"C\";\n\tif((t[0]+t[1])>=30 && (t[0]+t[1])<50){\n\t\tif(t[2]<50) rank =\"D\";\n\t\tif(t[2]>=50)rank =\"C\";\n\t}\n\tif(t[0]== -1 || t[1]== -1 ) rank =\"F\";\n\tif(t[0]+t[1]<30) rank =\"F\";\n\tSystem.out.println(rank);\n}\n}\n}", "Main", "public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nint []t = new int[3];\nfor(;;){\n\tString rank =\"A\";\n\tfor(int i=0; i<3; i++) t[i] =sc.nextInt();\n\tif(t[0]==-1 && t[1]==-1 && t[2]==-1) break;\n\n\tif((t[0]+t[1])>=65 && (t[0]+t[1])<80) rank =\"B\";\n\tif((t[0]+t[1])>=50 && (t[0]+t[1])<65) rank =\"C\";\n\tif((t[0]+t[1])>=30 && (t[0]+t[1])<50){\n\t\tif(t[2]<50) rank =\"D\";\n\t\tif(t[2]>=50)rank =\"C\";\n\t}\n\tif(t[0]== -1 || t[1]== -1 ) rank =\"F\";\n\tif(t[0]+t[1]<30) rank =\"F\";\n\tSystem.out.println(rank);\n}\n}", "main", "{\nScanner sc = new Scanner(System.in);\nint []t = new int[3];\nfor(;;){\n\tString rank =\"A\";\n\tfor(int i=0; i<3; i++) t[i] =sc.nextInt();\n\tif(t[0]==-1 && t[1]==-1 && t[2]==-1) break;\n\n\tif((t[0]+t[1])>=65 && (t[0]+t[1])<80) rank =\"B\";\n\tif((t[0]+t[1])>=50 && (t[0]+t[1])<65) rank =\"C\";\n\tif((t[0]+t[1])>=30 && (t[0]+t[1])<50){\n\t\tif(t[2]<50) rank =\"D\";\n\t\tif(t[2]>=50)rank =\"C\";\n\t}\n\tif(t[0]== -1 || t[1]== -1 ) rank =\"F\";\n\tif(t[0]+t[1]<30) rank =\"F\";\n\tSystem.out.println(rank);\n}\n}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int []t = new int[3];", "t", "new int[3]", "3", "for(;;){\n\tString rank =\"A\";\n\tfor(int i=0; i<3; i++) t[i] =sc.nextInt();\n\tif(t[0]==-1 && t[1]==-1 && t[2]==-1) break;\n\n\tif((t[0]+t[1])>=65 && (t[0]+t[1])<80) rank =\"B\";\n\tif((t[0]+t[1])>=50 && (t[0]+t[1])<65) rank =\"C\";\n\tif((t[0]+t[1])>=30 && (t[0]+t[1])<50){\n\t\tif(t[2]<50) rank =\"D\";\n\t\tif(t[2]>=50)rank =\"C\";\n\t}\n\tif(t[0]== -1 || t[1]== -1 ) rank =\"F\";\n\tif(t[0]+t[1]<30) rank =\"F\";\n\tSystem.out.println(rank);\n}", ";", "{\n\tString rank =\"A\";\n\tfor(int i=0; i<3; i++) t[i] =sc.nextInt();\n\tif(t[0]==-1 && t[1]==-1 && t[2]==-1) break;\n\n\tif((t[0]+t[1])>=65 && (t[0]+t[1])<80) rank =\"B\";\n\tif((t[0]+t[1])>=50 && (t[0]+t[1])<65) rank =\"C\";\n\tif((t[0]+t[1])>=30 && (t[0]+t[1])<50){\n\t\tif(t[2]<50) rank =\"D\";\n\t\tif(t[2]>=50)rank =\"C\";\n\t}\n\tif(t[0]== -1 || t[1]== -1 ) rank =\"F\";\n\tif(t[0]+t[1]<30) rank =\"F\";\n\tSystem.out.println(rank);\n}", "{\n\tString rank =\"A\";\n\tfor(int i=0; i<3; i++) t[i] =sc.nextInt();\n\tif(t[0]==-1 && t[1]==-1 && t[2]==-1) break;\n\n\tif((t[0]+t[1])>=65 && (t[0]+t[1])<80) rank =\"B\";\n\tif((t[0]+t[1])>=50 && (t[0]+t[1])<65) rank =\"C\";\n\tif((t[0]+t[1])>=30 && (t[0]+t[1])<50){\n\t\tif(t[2]<50) rank =\"D\";\n\t\tif(t[2]>=50)rank =\"C\";\n\t}\n\tif(t[0]== -1 || t[1]== -1 ) rank =\"F\";\n\tif(t[0]+t[1]<30) rank =\"F\";\n\tSystem.out.println(rank);\n}", "String rank =\"A\";", "rank", "\"A\"", "for(int i=0; i<3; i++) t[i] =sc.nextInt();", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "t[i] =sc.nextInt();", "t[i] =sc.nextInt()", "t[i]", "t", "i", "sc.nextInt()", "sc.nextInt", "sc", "if(t[0]==-1 && t[1]==-1 && t[2]==-1) break;", "t[0]==-1 && t[1]==-1 && t[2]==-1", "t[0]==-1 && t[1]==-1 && t[2]==-1", "t[0]==-1", "t[0]", "t", "0", "-1", "1", "t[1]==-1", "t[1]", "t", "1", "-1", "1", "t[2]==-1", "t[2]", "t", "2", "-1", "1", "break;", "if((t[0]+t[1])>=65 && (t[0]+t[1])<80) rank =\"B\";", "(t[0]+t[1])>=65 && (t[0]+t[1])<80", "(t[0]+t[1])>=65", "(t[0]+t[1])", "t[0]", "t", "0", "t[1]", "t", "1", "65", "(t[0]+t[1])<80", "(t[0]+t[1])", "t[0]", "t", "0", "t[1]", "t", "1", "80", "rank =\"B\"", "rank", "\"B\"", "if((t[0]+t[1])>=50 && (t[0]+t[1])<65) rank =\"C\";", "(t[0]+t[1])>=50 && (t[0]+t[1])<65", "(t[0]+t[1])>=50", "(t[0]+t[1])", "t[0]", "t", "0", "t[1]", "t", "1", "50", "(t[0]+t[1])<65", "(t[0]+t[1])", "t[0]", "t", "0", "t[1]", "t", "1", "65", "rank =\"C\"", "rank", "\"C\"", "if((t[0]+t[1])>=30 && (t[0]+t[1])<50){\n\t\tif(t[2]<50) rank =\"D\";\n\t\tif(t[2]>=50)rank =\"C\";\n\t}", "(t[0]+t[1])>=30 && (t[0]+t[1])<50", "(t[0]+t[1])>=30", "(t[0]+t[1])", "t[0]", "t", "0", "t[1]", "t", "1", "30", "(t[0]+t[1])<50", "(t[0]+t[1])", "t[0]", "t", "0", "t[1]", "t", "1", "50", "{\n\t\tif(t[2]<50) rank =\"D\";\n\t\tif(t[2]>=50)rank =\"C\";\n\t}", "if(t[2]<50) rank =\"D\";", "t[2]<50", "t[2]", "t", "2", "50", "rank =\"D\"", "rank", "\"D\"", "if(t[2]>=50)rank =\"C\";", "t[2]>=50", "t[2]", "t", "2", "50", "rank =\"C\"", "rank", "\"C\"", "if(t[0]== -1 || t[1]== -1 ) rank =\"F\";", "t[0]== -1 || t[1]== -1", "t[0]== -1", "t[0]", "t", "0", "-1", "1", "t[1]== -1", "t[1]", "t", "1", "-1", "1", "rank =\"F\"", "rank", "\"F\"", "if(t[0]+t[1]<30) rank =\"F\";", "t[0]+t[1]<30", "t[0]+t[1]", "t[0]", "t", "0", "t[1]", "t", "1", "30", "rank =\"F\"", "rank", "\"F\"", "System.out.println(rank)", "System.out.println", "System.out", "System", "System.out", "rank", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int []t = new int[3]; for(;;){ String rank ="A"; for(int i=0; i<3; i++) t[i] =sc.nextInt(); if(t[0]==-1 && t[1]==-1 && t[2]==-1) break; if((t[0]+t[1])>=65 && (t[0]+t[1])<80) rank ="B"; if((t[0]+t[1])>=50 && (t[0]+t[1])<65) rank ="C"; if((t[0]+t[1])>=30 && (t[0]+t[1])<50){ if(t[2]<50) rank ="D"; if(t[2]>=50)rank ="C"; } if(t[0]== -1 || t[1]== -1 ) rank ="F"; if(t[0]+t[1]<30) rank ="F"; System.out.println(rank); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 42, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 164, 8 ], [ 164, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 11, 36 ], [ 36, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 38, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 36, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 51, 57 ], [ 57, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 59, 68 ], [ 68, 69 ], [ 68, 70 ], [ 57, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 57, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 87, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 78, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 110, 112 ], [ 105, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 105, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 125, 127 ], [ 120, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 120, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 51, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 149, 150 ], [ 51, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 51, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 9, 161 ], [ 161, 162 ], [ 0, 163 ], [ 163, 164 ], [ 163, 165 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\t\n\t\t\twhile(m!=-1 || f!=-1 || r!=-1){\n\t\t\t\tint x=m+f;\n\t\t\t\tif(m==-1 || f==-1 || x<30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(x>=30 && x<50){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(x>=50 && x<65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t}\n\t}\n\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\t\n\t\t\twhile(m!=-1 || f!=-1 || r!=-1){\n\t\t\t\tint x=m+f;\n\t\t\t\tif(m==-1 || f==-1 || x<30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(x>=30 && x<50){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(x>=50 && x<65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\t\n\t\t\twhile(m!=-1 || f!=-1 || r!=-1){\n\t\t\t\tint x=m+f;\n\t\t\t\tif(m==-1 || f==-1 || x<30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(x>=30 && x<50){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(x>=50 && x<65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\t\n\t\t\twhile(m!=-1 || f!=-1 || r!=-1){\n\t\t\t\tint x=m+f;\n\t\t\t\tif(m==-1 || f==-1 || x<30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(x>=30 && x<50){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(x>=50 && x<65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int m", "m", "f", "f", "r;", "r", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "while(m!=-1 || f!=-1 || r!=-1){\n\t\t\t\tint x=m+f;\n\t\t\t\tif(m==-1 || f==-1 || x<30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(x>=30 && x<50){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(x>=50 && x<65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t}", "m!=-1 || f!=-1 || r!=-1", "m!=-1 || f!=-1 || r!=-1", "m!=-1", "m", "-1", "1", "f!=-1", "f", "-1", "1", "r!=-1", "r", "-1", "1", "{\n\t\t\t\tint x=m+f;\n\t\t\t\tif(m==-1 || f==-1 || x<30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(x>=30 && x<50){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(x>=50 && x<65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t}", "int x=m+f;", "x", "m+f", "m", "f", "if(m==-1 || f==-1 || x<30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(x>=30 && x<50){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(x>=50 && x<65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "m==-1 || f==-1 || x<30", "m==-1 || f==-1 || x<30", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "x<30", "x", "30", "{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(x>=30 && x<50){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(x>=50 && x<65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "x>=30 && x<50", "x>=30", "x", "30", "x<50", "x", "50", "{\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "r>=50", "r", "50", "{\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if(x>=50 && x<65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "x>=50 && x<65", "x>=50", "x", "50", "x<65", "x", "65", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "x>=65 && x<80", "x>=65", "x", "65", "x<80", "x", "80", "{\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "x>=80", "x", "80", "{\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\t\n\t\t\twhile(m!=-1 || f!=-1 || r!=-1){\n\t\t\t\tint x=m+f;\n\t\t\t\tif(m==-1 || f==-1 || x<30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(x>=30 && x<50){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(x>=50 && x<65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint m,f,r;\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\t\n\t\t\twhile(m!=-1 || f!=-1 || r!=-1){\n\t\t\t\tint x=m+f;\n\t\t\t\tif(m==-1 || f==-1 || x<30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}else if(x>=30 && x<50){\n\t\t\t\t\tif(r>=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else if(x>=50 && x<65){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(x>=65 && x<80){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(x>=80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t}\n\t}\n\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int m,f,r; m = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); while(m!=-1 || f!=-1 || r!=-1){ int x=m+f; if(m==-1 || f==-1 || x<30){ System.out.println("F"); }else if(x>=30 && x<50){ if(r>=50){ System.out.println("C"); }else{ System.out.println("D"); } }else if(x>=50 && x<65){ System.out.println("C"); }else if(x>=65 && x<80){ System.out.println("B"); }else if(x>=80){ System.out.println("A"); } m = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 13, 14, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 8, 34 ], [ 34, 35 ], [ 34, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 6, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\tString[] input_data = new String[3]; // 入力された中間、期末、再テストの得点を一時的にString型で格納する配列\n\t\tint MAX_DATA = 50;\n\t\tint data_count = 0;\n\t\tint m = 0; // 中間テストの得点\n\t\tint f = 0; // 期末テストの得点\n\t\tint r = 0; // 再テストの得点\n\t\tint sum = 0; // 中間テストと期末テストの合計の得点\n\t\tboolean judge = true; // 入力されたデータが条件範囲内に収まっているかを判定するための変数\n\n\t\tString[] output = new String[MAX_DATA];\n\n\t\tout: for (int i = 0; i < MAX_DATA; i++) {\n\t\t\tinput = sc.nextLine();\n\t\t\tinput_data = input.split(\" \");\n\t\t\tsum = 0;\n\t\t\tm = Integer.parseInt(input_data[0]);\n\t\t\tf = Integer.parseInt(input_data[1]);\n\t\t\tr = Integer.parseInt(input_data[2]);\n\n\t\t\t// 入力の終わりを示しているのかのチェック\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 中間試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (m < -1 && m > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 期末試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (f < -1 && f > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 再試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (r < -1 && r > 100) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tdata_count++; // 入力値に問題がなければデータを1つカウントする\n\n\t\t\t// 成績の判定\n\t\t\tsum = m + f;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t} else if (sum >= 80) {\n\t\t\t\toutput[i] = \"A\";\n\t\t\t} else if ((sum >= 65 && sum < 80)) {\n\t\t\t\toutput[i] = \"B\";\n\t\t\t} else if (sum >= 50 && sum < 65) {\n\t\t\t\toutput[i] = \"C\";\n\t\t\t} else if (sum >= 30 && sum < 50) {\n\t\t\t\toutput[i] = \"D\";\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\toutput[i] = \"C\";\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t}\n\n\t\t} // out: for文ここまで\n\t\tif (judge == true) {\n\t\t\tfor (int j = 0; j < data_count; j++) {\n\t\t\t\tSystem.out.println(output[j]);\n\n\t\t\t}\n\t\t}\n\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\tString[] input_data = new String[3]; // 入力された中間、期末、再テストの得点を一時的にString型で格納する配列\n\t\tint MAX_DATA = 50;\n\t\tint data_count = 0;\n\t\tint m = 0; // 中間テストの得点\n\t\tint f = 0; // 期末テストの得点\n\t\tint r = 0; // 再テストの得点\n\t\tint sum = 0; // 中間テストと期末テストの合計の得点\n\t\tboolean judge = true; // 入力されたデータが条件範囲内に収まっているかを判定するための変数\n\n\t\tString[] output = new String[MAX_DATA];\n\n\t\tout: for (int i = 0; i < MAX_DATA; i++) {\n\t\t\tinput = sc.nextLine();\n\t\t\tinput_data = input.split(\" \");\n\t\t\tsum = 0;\n\t\t\tm = Integer.parseInt(input_data[0]);\n\t\t\tf = Integer.parseInt(input_data[1]);\n\t\t\tr = Integer.parseInt(input_data[2]);\n\n\t\t\t// 入力の終わりを示しているのかのチェック\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 中間試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (m < -1 && m > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 期末試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (f < -1 && f > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 再試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (r < -1 && r > 100) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tdata_count++; // 入力値に問題がなければデータを1つカウントする\n\n\t\t\t// 成績の判定\n\t\t\tsum = m + f;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t} else if (sum >= 80) {\n\t\t\t\toutput[i] = \"A\";\n\t\t\t} else if ((sum >= 65 && sum < 80)) {\n\t\t\t\toutput[i] = \"B\";\n\t\t\t} else if (sum >= 50 && sum < 65) {\n\t\t\t\toutput[i] = \"C\";\n\t\t\t} else if (sum >= 30 && sum < 50) {\n\t\t\t\toutput[i] = \"D\";\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\toutput[i] = \"C\";\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t}\n\n\t\t} // out: for文ここまで\n\t\tif (judge == true) {\n\t\t\tfor (int j = 0; j < data_count; j++) {\n\t\t\t\tSystem.out.println(output[j]);\n\n\t\t\t}\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\tString[] input_data = new String[3]; // 入力された中間、期末、再テストの得点を一時的にString型で格納する配列\n\t\tint MAX_DATA = 50;\n\t\tint data_count = 0;\n\t\tint m = 0; // 中間テストの得点\n\t\tint f = 0; // 期末テストの得点\n\t\tint r = 0; // 再テストの得点\n\t\tint sum = 0; // 中間テストと期末テストの合計の得点\n\t\tboolean judge = true; // 入力されたデータが条件範囲内に収まっているかを判定するための変数\n\n\t\tString[] output = new String[MAX_DATA];\n\n\t\tout: for (int i = 0; i < MAX_DATA; i++) {\n\t\t\tinput = sc.nextLine();\n\t\t\tinput_data = input.split(\" \");\n\t\t\tsum = 0;\n\t\t\tm = Integer.parseInt(input_data[0]);\n\t\t\tf = Integer.parseInt(input_data[1]);\n\t\t\tr = Integer.parseInt(input_data[2]);\n\n\t\t\t// 入力の終わりを示しているのかのチェック\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 中間試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (m < -1 && m > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 期末試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (f < -1 && f > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 再試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (r < -1 && r > 100) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tdata_count++; // 入力値に問題がなければデータを1つカウントする\n\n\t\t\t// 成績の判定\n\t\t\tsum = m + f;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t} else if (sum >= 80) {\n\t\t\t\toutput[i] = \"A\";\n\t\t\t} else if ((sum >= 65 && sum < 80)) {\n\t\t\t\toutput[i] = \"B\";\n\t\t\t} else if (sum >= 50 && sum < 65) {\n\t\t\t\toutput[i] = \"C\";\n\t\t\t} else if (sum >= 30 && sum < 50) {\n\t\t\t\toutput[i] = \"D\";\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\toutput[i] = \"C\";\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t}\n\n\t\t} // out: for文ここまで\n\t\tif (judge == true) {\n\t\t\tfor (int j = 0; j < data_count; j++) {\n\t\t\t\tSystem.out.println(output[j]);\n\n\t\t\t}\n\t\t}\n\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\tString[] input_data = new String[3]; // 入力された中間、期末、再テストの得点を一時的にString型で格納する配列\n\t\tint MAX_DATA = 50;\n\t\tint data_count = 0;\n\t\tint m = 0; // 中間テストの得点\n\t\tint f = 0; // 期末テストの得点\n\t\tint r = 0; // 再テストの得点\n\t\tint sum = 0; // 中間テストと期末テストの合計の得点\n\t\tboolean judge = true; // 入力されたデータが条件範囲内に収まっているかを判定するための変数\n\n\t\tString[] output = new String[MAX_DATA];\n\n\t\tout: for (int i = 0; i < MAX_DATA; i++) {\n\t\t\tinput = sc.nextLine();\n\t\t\tinput_data = input.split(\" \");\n\t\t\tsum = 0;\n\t\t\tm = Integer.parseInt(input_data[0]);\n\t\t\tf = Integer.parseInt(input_data[1]);\n\t\t\tr = Integer.parseInt(input_data[2]);\n\n\t\t\t// 入力の終わりを示しているのかのチェック\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 中間試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (m < -1 && m > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 期末試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (f < -1 && f > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 再試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (r < -1 && r > 100) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tdata_count++; // 入力値に問題がなければデータを1つカウントする\n\n\t\t\t// 成績の判定\n\t\t\tsum = m + f;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t} else if (sum >= 80) {\n\t\t\t\toutput[i] = \"A\";\n\t\t\t} else if ((sum >= 65 && sum < 80)) {\n\t\t\t\toutput[i] = \"B\";\n\t\t\t} else if (sum >= 50 && sum < 65) {\n\t\t\t\toutput[i] = \"C\";\n\t\t\t} else if (sum >= 30 && sum < 50) {\n\t\t\t\toutput[i] = \"D\";\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\toutput[i] = \"C\";\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t}\n\n\t\t} // out: for文ここまで\n\t\tif (judge == true) {\n\t\t\tfor (int j = 0; j < data_count; j++) {\n\t\t\t\tSystem.out.println(output[j]);\n\n\t\t\t}\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String input = \"\";", "input", "\"\"", "String[] input_data = new String[3];", "input_data", "new String[3]", "3", "int MAX_DATA = 50;", "MAX_DATA", "50", "int data_count = 0;", "data_count", "0", "int m = 0;", "m", "0", "int f = 0;", "f", "0", "int r = 0;", "r", "0", "int sum = 0;", "sum", "0", "boolean judge = true;", "judge", "true", "String[] output = new String[MAX_DATA];", "output", "new String[MAX_DATA]", "MAX_DATA", "if (judge == true) {\n\t\t\tfor (int j = 0; j < data_count; j++) {\n\t\t\t\tSystem.out.println(output[j]);\n\n\t\t\t}\n\t\t}", "judge == true", "judge", "true", "{\n\t\t\tfor (int j = 0; j < data_count; j++) {\n\t\t\t\tSystem.out.println(output[j]);\n\n\t\t\t}\n\t\t}", "for (int j = 0; j < data_count; j++) {\n\t\t\t\tSystem.out.println(output[j]);\n\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < data_count", "j", "data_count", "j++", "j++", "j", "{\n\t\t\t\tSystem.out.println(output[j]);\n\n\t\t\t}", "{\n\t\t\t\tSystem.out.println(output[j]);\n\n\t\t\t}", "System.out.println(output[j])", "System.out.println", "System.out", "System", "System.out", "output[j]", "output", "j", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\tString[] input_data = new String[3]; // 入力された中間、期末、再テストの得点を一時的にString型で格納する配列\n\t\tint MAX_DATA = 50;\n\t\tint data_count = 0;\n\t\tint m = 0; // 中間テストの得点\n\t\tint f = 0; // 期末テストの得点\n\t\tint r = 0; // 再テストの得点\n\t\tint sum = 0; // 中間テストと期末テストの合計の得点\n\t\tboolean judge = true; // 入力されたデータが条件範囲内に収まっているかを判定するための変数\n\n\t\tString[] output = new String[MAX_DATA];\n\n\t\tout: for (int i = 0; i < MAX_DATA; i++) {\n\t\t\tinput = sc.nextLine();\n\t\t\tinput_data = input.split(\" \");\n\t\t\tsum = 0;\n\t\t\tm = Integer.parseInt(input_data[0]);\n\t\t\tf = Integer.parseInt(input_data[1]);\n\t\t\tr = Integer.parseInt(input_data[2]);\n\n\t\t\t// 入力の終わりを示しているのかのチェック\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 中間試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (m < -1 && m > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 期末試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (f < -1 && f > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 再試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (r < -1 && r > 100) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tdata_count++; // 入力値に問題がなければデータを1つカウントする\n\n\t\t\t// 成績の判定\n\t\t\tsum = m + f;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t} else if (sum >= 80) {\n\t\t\t\toutput[i] = \"A\";\n\t\t\t} else if ((sum >= 65 && sum < 80)) {\n\t\t\t\toutput[i] = \"B\";\n\t\t\t} else if (sum >= 50 && sum < 65) {\n\t\t\t\toutput[i] = \"C\";\n\t\t\t} else if (sum >= 30 && sum < 50) {\n\t\t\t\toutput[i] = \"D\";\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\toutput[i] = \"C\";\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t}\n\n\t\t} // out: for文ここまで\n\t\tif (judge == true) {\n\t\t\tfor (int j = 0; j < data_count; j++) {\n\t\t\t\tSystem.out.println(output[j]);\n\n\t\t\t}\n\t\t}\n\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\tString[] input_data = new String[3]; // 入力された中間、期末、再テストの得点を一時的にString型で格納する配列\n\t\tint MAX_DATA = 50;\n\t\tint data_count = 0;\n\t\tint m = 0; // 中間テストの得点\n\t\tint f = 0; // 期末テストの得点\n\t\tint r = 0; // 再テストの得点\n\t\tint sum = 0; // 中間テストと期末テストの合計の得点\n\t\tboolean judge = true; // 入力されたデータが条件範囲内に収まっているかを判定するための変数\n\n\t\tString[] output = new String[MAX_DATA];\n\n\t\tout: for (int i = 0; i < MAX_DATA; i++) {\n\t\t\tinput = sc.nextLine();\n\t\t\tinput_data = input.split(\" \");\n\t\t\tsum = 0;\n\t\t\tm = Integer.parseInt(input_data[0]);\n\t\t\tf = Integer.parseInt(input_data[1]);\n\t\t\tr = Integer.parseInt(input_data[2]);\n\n\t\t\t// 入力の終わりを示しているのかのチェック\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 中間試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (m < -1 && m > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 期末試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (f < -1 && f > 50) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\n\t\t\t// 再試験の得点が条件範囲内に収まっているかのチェック\n\t\t\tif (r < -1 && r > 100) {\n\t\t\t\tjudge = false;\n\t\t\t\tbreak out;\n\t\t\t}\n\t\t\tdata_count++; // 入力値に問題がなければデータを1つカウントする\n\n\t\t\t// 成績の判定\n\t\t\tsum = m + f;\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t} else if (sum >= 80) {\n\t\t\t\toutput[i] = \"A\";\n\t\t\t} else if ((sum >= 65 && sum < 80)) {\n\t\t\t\toutput[i] = \"B\";\n\t\t\t} else if (sum >= 50 && sum < 65) {\n\t\t\t\toutput[i] = \"C\";\n\t\t\t} else if (sum >= 30 && sum < 50) {\n\t\t\t\toutput[i] = \"D\";\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\toutput[i] = \"C\";\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\toutput[i] = \"F\";\n\t\t\t}\n\n\t\t} // out: for文ここまで\n\t\tif (judge == true) {\n\t\t\tfor (int j = 0; j < data_count; j++) {\n\t\t\t\tSystem.out.println(output[j]);\n\n\t\t\t}\n\t\t}\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); String input = ""; String[] input_data = new String[3]; // 入力された中間、期末、再テストの得点を一時的にString型で格納する配列 int MAX_DATA = 50; int data_count = 0; int m = 0; // 中間テストの得点 int f = 0; // 期末テストの得点 int r = 0; // 再テストの得点 int sum = 0; // 中間テストと期末テストの合計の得点 boolean judge = true; // 入力されたデータが条件範囲内に収まっているかを判定するための変数 String[] output = new String[MAX_DATA]; out: for (int i = 0; i < MAX_DATA; i++) { input = sc.nextLine(); input_data = input.split(" "); sum = 0; m = Integer.parseInt(input_data[0]); f = Integer.parseInt(input_data[1]); r = Integer.parseInt(input_data[2]); // 入力の終わりを示しているのかのチェック if (m == -1 && f == -1 && r == -1) { break out; } // 中間試験の得点が条件範囲内に収まっているかのチェック if (m < -1 && m > 50) { judge = false; break out; } // 期末試験の得点が条件範囲内に収まっているかのチェック if (f < -1 && f > 50) { judge = false; break out; } // 再試験の得点が条件範囲内に収まっているかのチェック if (r < -1 && r > 100) { judge = false; break out; } data_count++; // 入力値に問題がなければデータを1つカウントする // 成績の判定 sum = m + f; if (m == -1 || f == -1) { output[i] = "F"; } else if (sum >= 80) { output[i] = "A"; } else if ((sum >= 65 && sum < 80)) { output[i] = "B"; } else if (sum >= 50 && sum < 65) { output[i] = "C"; } else if (sum >= 30 && sum < 50) { output[i] = "D"; if (r >= 50) { output[i] = "C"; } } else { output[i] = "F"; } } // out: for文ここまで if (judge == true) { for (int j = 0; j < data_count; j++) { System.out.println(output[j]); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 4, 18, 18, 13, 13, 4, 13, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 29, 17, 14, 2, 17, 2, 13, 13, 29, 17, 14, 2, 17, 2, 13, 13, 29, 17, 14, 2, 17, 2, 13, 13, 29, 17, 14, 2, 17, 2, 13, 13, 29, 8, 2, 17, 13, 17, 17, 29, 17, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 22, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 30, 31 ], [ 31, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 39, 40 ], [ 16, 41 ], [ 41, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 43, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 41, 56 ], [ 16, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 62, 65 ], [ 62, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 6, 70 ], [ 70, 71 ], [ 133, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 75, 85 ], [ 85, 86 ], [ 74, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 93, 94 ], [ 74, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 95, 101 ], [ 101, 102 ], [ 74, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 109, 110 ], [ 74, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 111, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 118, 123 ], [ 74, 124 ], [ 124, 125 ], [ 72, 126 ], [ 126, 127 ], [ 72, 128 ], [ 128, 129 ], [ 72, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tint m = Integer.parseInt(scanner.next());\n\t\t\tint t = Integer.parseInt(scanner.next());\n\t\t\tint r = Integer.parseInt(scanner.next());\n\t\t\tif (m == -1 && t == -1 && r == -1) break;\n\t\t\tSystem.out.println(Judge(m, t, r));\n\t\t}\n\t\tscanner.close();\n\t}\n\tpublic static char Judge(int m, int t, int r) {\n\t\tif (m == -1 || t == -1) return 'F';\n\t\tif (80 <= m + t) return 'A';\n\t\tif (65 <= m + t) return 'B';\n\t\tif (50 <= m + t) return 'C';\n\t\tif (30 <= m + t) return 50 <= r ? 'C': 'D';\n\t\treturn 'F';\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tint m = Integer.parseInt(scanner.next());\n\t\t\tint t = Integer.parseInt(scanner.next());\n\t\t\tint r = Integer.parseInt(scanner.next());\n\t\t\tif (m == -1 && t == -1 && r == -1) break;\n\t\t\tSystem.out.println(Judge(m, t, r));\n\t\t}\n\t\tscanner.close();\n\t}\n\tpublic static char Judge(int m, int t, int r) {\n\t\tif (m == -1 || t == -1) return 'F';\n\t\tif (80 <= m + t) return 'A';\n\t\tif (65 <= m + t) return 'B';\n\t\tif (50 <= m + t) return 'C';\n\t\tif (30 <= m + t) return 50 <= r ? 'C': 'D';\n\t\treturn 'F';\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tint m = Integer.parseInt(scanner.next());\n\t\t\tint t = Integer.parseInt(scanner.next());\n\t\t\tint r = Integer.parseInt(scanner.next());\n\t\t\tif (m == -1 && t == -1 && r == -1) break;\n\t\t\tSystem.out.println(Judge(m, t, r));\n\t\t}\n\t\tscanner.close();\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tint m = Integer.parseInt(scanner.next());\n\t\t\tint t = Integer.parseInt(scanner.next());\n\t\t\tint r = Integer.parseInt(scanner.next());\n\t\t\tif (m == -1 && t == -1 && r == -1) break;\n\t\t\tSystem.out.println(Judge(m, t, r));\n\t\t}\n\t\tscanner.close();\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while (scanner.hasNext()) {\n\t\t\tint m = Integer.parseInt(scanner.next());\n\t\t\tint t = Integer.parseInt(scanner.next());\n\t\t\tint r = Integer.parseInt(scanner.next());\n\t\t\tif (m == -1 && t == -1 && r == -1) break;\n\t\t\tSystem.out.println(Judge(m, t, r));\n\t\t}", "scanner.hasNext()", "scanner.hasNext", "scanner", "{\n\t\t\tint m = Integer.parseInt(scanner.next());\n\t\t\tint t = Integer.parseInt(scanner.next());\n\t\t\tint r = Integer.parseInt(scanner.next());\n\t\t\tif (m == -1 && t == -1 && r == -1) break;\n\t\t\tSystem.out.println(Judge(m, t, r));\n\t\t}", "int m = Integer.parseInt(scanner.next());", "m", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "int t = Integer.parseInt(scanner.next());", "t", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "int r = Integer.parseInt(scanner.next());", "r", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "if (m == -1 && t == -1 && r == -1) break;", "m == -1 && t == -1 && r == -1", "m == -1 && t == -1 && r == -1", "m == -1", "m", "-1", "1", "t == -1", "t", "-1", "1", "r == -1", "r", "-1", "1", "break;", "System.out.println(Judge(m, t, r))", "System.out.println", "System.out", "System", "System.out", "Judge(m, t, r)", "Judge", "m", "t", "r", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public static char Judge(int m, int t, int r) {\n\t\tif (m == -1 || t == -1) return 'F';\n\t\tif (80 <= m + t) return 'A';\n\t\tif (65 <= m + t) return 'B';\n\t\tif (50 <= m + t) return 'C';\n\t\tif (30 <= m + t) return 50 <= r ? 'C': 'D';\n\t\treturn 'F';\n\t}", "Judge", "{\n\t\tif (m == -1 || t == -1) return 'F';\n\t\tif (80 <= m + t) return 'A';\n\t\tif (65 <= m + t) return 'B';\n\t\tif (50 <= m + t) return 'C';\n\t\tif (30 <= m + t) return 50 <= r ? 'C': 'D';\n\t\treturn 'F';\n\t}", "if (m == -1 || t == -1) return 'F';", "m == -1 || t == -1", "m == -1", "m", "-1", "1", "t == -1", "t", "-1", "1", "return 'F';", "'F'", "if (80 <= m + t) return 'A';", "80 <= m + t", "80", "m + t", "m", "t", "return 'A';", "'A'", "if (65 <= m + t) return 'B';", "65 <= m + t", "65", "m + t", "m", "t", "return 'B';", "'B'", "if (50 <= m + t) return 'C';", "50 <= m + t", "50", "m + t", "m", "t", "return 'C';", "'C'", "if (30 <= m + t) return 50 <= r ? 'C': 'D';", "30 <= m + t", "30", "m + t", "m", "t", "return 50 <= r ? 'C': 'D';", "50 <= r ? 'C': 'D'", "50 <= r", "50", "r", "'C'", "'D'", "return 'F';", "'F'", "int m", "m", "int t", "t", "int r", "r", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tint m = Integer.parseInt(scanner.next());\n\t\t\tint t = Integer.parseInt(scanner.next());\n\t\t\tint r = Integer.parseInt(scanner.next());\n\t\t\tif (m == -1 && t == -1 && r == -1) break;\n\t\t\tSystem.out.println(Judge(m, t, r));\n\t\t}\n\t\tscanner.close();\n\t}\n\tpublic static char Judge(int m, int t, int r) {\n\t\tif (m == -1 || t == -1) return 'F';\n\t\tif (80 <= m + t) return 'A';\n\t\tif (65 <= m + t) return 'B';\n\t\tif (50 <= m + t) return 'C';\n\t\tif (30 <= m + t) return 50 <= r ? 'C': 'D';\n\t\treturn 'F';\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tint m = Integer.parseInt(scanner.next());\n\t\t\tint t = Integer.parseInt(scanner.next());\n\t\t\tint r = Integer.parseInt(scanner.next());\n\t\t\tif (m == -1 && t == -1 && r == -1) break;\n\t\t\tSystem.out.println(Judge(m, t, r));\n\t\t}\n\t\tscanner.close();\n\t}\n\tpublic static char Judge(int m, int t, int r) {\n\t\tif (m == -1 || t == -1) return 'F';\n\t\tif (80 <= m + t) return 'A';\n\t\tif (65 <= m + t) return 'B';\n\t\tif (50 <= m + t) return 'C';\n\t\tif (30 <= m + t) return 50 <= r ? 'C': 'D';\n\t\treturn 'F';\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { int m = Integer.parseInt(scanner.next()); int t = Integer.parseInt(scanner.next()); int r = Integer.parseInt(scanner.next()); if (m == -1 && t == -1 && r == -1) break; System.out.println(Judge(m, t, r)); } scanner.close(); } public static char Judge(int m, int t, int r) { if (m == -1 || t == -1) return 'F'; if (80 <= m + t) return 'A'; if (65 <= m + t) return 'B'; if (50 <= m + t) return 'C'; if (30 <= m + t) return 50 <= r ? 'C': 'D'; return 'F'; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 42, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 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 ], [ 147, 5 ], [ 147, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 17, 33 ], [ 33, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 35, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 33, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 33, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 52, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 70, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 70, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 90, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 83, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 108, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 108, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 121, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 121, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 8, 141 ], [ 141, 142 ], [ 142, 143 ], [ 6, 144 ], [ 144, 145 ], [ 0, 146 ], [ 146, 147 ], [ 146, 148 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\t/*\n\t * あなたの課題は、あるクラスの数学の成績を付けるプログラムを作成することです。\n\t *\n\t * プログラムは複数の学生のテストの点数を読み込みます。\n\t *\n\t * テストの点数は、中間試験の点数 m、期末試験の点数 f、再試験の点数 r で構成されています。\n\t *\n\t * 中間試験と期末試験は 50 点満点(m, f ? 50)、再試験は 100 点満点 (r ? 100)です。\n\t *\n\t * 試験を受けていない場合は点数を -1 とします。\n\t *\n\t * 以下の手順で成績が付けられます:\n\t *\n\t * 中間試験、期末試験のいずれかを欠席した場合成績は F。 中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t * 中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。 中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t * 中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t * 中間試験と期末試験の合計点数が 30 未満ならば成績は F。 Input\n\t * 複数のデータセットが入力として与えられます。各データセットでは、空白で区切られた m、f、r が 1 行に与えられます。\n\t *\n\t * m、f、r がすべて -1 のとき入力の終わりとします。\n\t *\n\t * Output 各データセットについて、成績(A、B、C、D、または F)を1行に出力して下さい。\n\t *\n\t * Sample Input 40 42 -1 20 30 -1 0 2 -1 -1 -1 -1 Sample Output A C F\n\t */\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tboolean flg = true;\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (flg) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\n\t\t\t\tflg = false;\n\n\t\t\t} else if (m == -1 || f == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else {\n\n\t\t\t\tif (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t/*\n\t * あなたの課題は、あるクラスの数学の成績を付けるプログラムを作成することです。\n\t *\n\t * プログラムは複数の学生のテストの点数を読み込みます。\n\t *\n\t * テストの点数は、中間試験の点数 m、期末試験の点数 f、再試験の点数 r で構成されています。\n\t *\n\t * 中間試験と期末試験は 50 点満点(m, f ? 50)、再試験は 100 点満点 (r ? 100)です。\n\t *\n\t * 試験を受けていない場合は点数を -1 とします。\n\t *\n\t * 以下の手順で成績が付けられます:\n\t *\n\t * 中間試験、期末試験のいずれかを欠席した場合成績は F。 中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t * 中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。 中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t * 中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t * 中間試験と期末試験の合計点数が 30 未満ならば成績は F。 Input\n\t * 複数のデータセットが入力として与えられます。各データセットでは、空白で区切られた m、f、r が 1 行に与えられます。\n\t *\n\t * m、f、r がすべて -1 のとき入力の終わりとします。\n\t *\n\t * Output 各データセットについて、成績(A、B、C、D、または F)を1行に出力して下さい。\n\t *\n\t * Sample Input 40 42 -1 20 30 -1 0 2 -1 -1 -1 -1 Sample Output A C F\n\t */\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tboolean flg = true;\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (flg) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\n\t\t\t\tflg = false;\n\n\t\t\t} else if (m == -1 || f == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else {\n\n\t\t\t\tif (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main", "/*\n\t * あなたの課題は、あるクラスの数学の成績を付けるプログラムを作成することです。\n\t *\n\t * プログラムは複数の学生のテストの点数を読み込みます。\n\t *\n\t * テストの点数は、中間試験の点数 m、期末試験の点数 f、再試験の点数 r で構成されています。\n\t *\n\t * 中間試験と期末試験は 50 点満点(m, f ? 50)、再試験は 100 点満点 (r ? 100)です。\n\t *\n\t * 試験を受けていない場合は点数を -1 とします。\n\t *\n\t * 以下の手順で成績が付けられます:\n\t *\n\t * 中間試験、期末試験のいずれかを欠席した場合成績は F。 中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t * 中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。 中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t * 中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t * 中間試験と期末試験の合計点数が 30 未満ならば成績は F。 Input\n\t * 複数のデータセットが入力として与えられます。各データセットでは、空白で区切られた m、f、r が 1 行に与えられます。\n\t *\n\t * m、f、r がすべて -1 のとき入力の終わりとします。\n\t *\n\t * Output 各データセットについて、成績(A、B、C、D、または F)を1行に出力して下さい。\n\t *\n\t * Sample Input 40 42 -1 20 30 -1 0 2 -1 -1 -1 -1 Sample Output A C F\n\t */\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tboolean flg = true;\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (flg) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\n\t\t\t\tflg = false;\n\n\t\t\t} else if (m == -1 || f == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else {\n\n\t\t\t\tif (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\n\t\tboolean flg = true;\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (flg) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\n\t\t\t\tflg = false;\n\n\t\t\t} else if (m == -1 || f == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else {\n\n\t\t\t\tif (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t}", "boolean flg = true;", "flg", "true", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (flg) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\n\t\t\t\tflg = false;\n\n\t\t\t} else if (m == -1 || f == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else {\n\n\t\t\t\tif (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "flg", "{\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\n\t\t\t\tflg = false;\n\n\t\t\t} else if (m == -1 || f == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else {\n\n\t\t\t\tif (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if (m == -1 && f == -1 && r == -1) {\n\n\t\t\t\tflg = false;\n\n\t\t\t} else if (m == -1 || f == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else {\n\n\t\t\t\tif (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\n\t\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\n\t\t\t\tflg = false;\n\n\t\t\t}", "flg = false", "flg", "false", "if (m == -1 || f == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else {\n\n\t\t\t\tif (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\n\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "{\n\n\t\t\t\tif (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\n\t\t\t}", "if (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "m + f < 30", "m + f", "m", "f", "30", "{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "m + f < 50", "m + f", "m", "f", "50", "{\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}", "if (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "m + f < 65", "m + f", "m", "f", "65", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "m + f < 80", "m + f", "m", "f", "80", "{\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "{\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\t/*\n\t * あなたの課題は、あるクラスの数学の成績を付けるプログラムを作成することです。\n\t *\n\t * プログラムは複数の学生のテストの点数を読み込みます。\n\t *\n\t * テストの点数は、中間試験の点数 m、期末試験の点数 f、再試験の点数 r で構成されています。\n\t *\n\t * 中間試験と期末試験は 50 点満点(m, f ? 50)、再試験は 100 点満点 (r ? 100)です。\n\t *\n\t * 試験を受けていない場合は点数を -1 とします。\n\t *\n\t * 以下の手順で成績が付けられます:\n\t *\n\t * 中間試験、期末試験のいずれかを欠席した場合成績は F。 中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t * 中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。 中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t * 中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t * 中間試験と期末試験の合計点数が 30 未満ならば成績は F。 Input\n\t * 複数のデータセットが入力として与えられます。各データセットでは、空白で区切られた m、f、r が 1 行に与えられます。\n\t *\n\t * m、f、r がすべて -1 のとき入力の終わりとします。\n\t *\n\t * Output 各データセットについて、成績(A、B、C、D、または F)を1行に出力して下さい。\n\t *\n\t * Sample Input 40 42 -1 20 30 -1 0 2 -1 -1 -1 -1 Sample Output A C F\n\t */\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tboolean flg = true;\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (flg) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\n\t\t\t\tflg = false;\n\n\t\t\t} else if (m == -1 || f == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else {\n\n\t\t\t\tif (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t}\n}", "public class Main {\n\t/*\n\t * あなたの課題は、あるクラスの数学の成績を付けるプログラムを作成することです。\n\t *\n\t * プログラムは複数の学生のテストの点数を読み込みます。\n\t *\n\t * テストの点数は、中間試験の点数 m、期末試験の点数 f、再試験の点数 r で構成されています。\n\t *\n\t * 中間試験と期末試験は 50 点満点(m, f ? 50)、再試験は 100 点満点 (r ? 100)です。\n\t *\n\t * 試験を受けていない場合は点数を -1 とします。\n\t *\n\t * 以下の手順で成績が付けられます:\n\t *\n\t * 中間試験、期末試験のいずれかを欠席した場合成績は F。 中間試験と期末試験の合計点数が 80 以上ならば成績は A 。\n\t * 中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。 中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n\t * 中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n\t * 中間試験と期末試験の合計点数が 30 未満ならば成績は F。 Input\n\t * 複数のデータセットが入力として与えられます。各データセットでは、空白で区切られた m、f、r が 1 行に与えられます。\n\t *\n\t * m、f、r がすべて -1 のとき入力の終わりとします。\n\t *\n\t * Output 各データセットについて、成績(A、B、C、D、または F)を1行に出力して下さい。\n\t *\n\t * Sample Input 40 42 -1 20 30 -1 0 2 -1 -1 -1 -1 Sample Output A C F\n\t */\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tboolean flg = true;\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (flg) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\n\t\t\t\tflg = false;\n\n\t\t\t} else if (m == -1 || f == -1) {\n\n\t\t\t\tSystem.out.println(\"F\");\n\n\t\t\t} else {\n\n\t\t\t\tif (m + f < 30) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t} else if (m + f < 50) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t} else if (m + f < 65) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { /* * あなたの課題は、あるクラスの数学の成績を付けるプログラムを作成することです。 * * プログラムは複数の学生のテストの点数を読み込みます。 * * テストの点数は、中間試験の点数 m、期末試験の点数 f、再試験の点数 r で構成されています。 * * 中間試験と期末試験は 50 点満点(m, f ? 50)、再試験は 100 点満点 (r ? 100)です。 * * 試験を受けていない場合は点数を -1 とします。 * * 以下の手順で成績が付けられます: * * 中間試験、期末試験のいずれかを欠席した場合成績は F。 中間試験と期末試験の合計点数が 80 以上ならば成績は A 。 * 中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。 中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。 * 中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。 * 中間試験と期末試験の合計点数が 30 未満ならば成績は F。 Input * 複数のデータセットが入力として与えられます。各データセットでは、空白で区切られた m、f、r が 1 行に与えられます。 * * m、f、r がすべて -1 のとき入力の終わりとします。 * * Output 各データセットについて、成績(A、B、C、D、または F)を1行に出力して下さい。 * * Sample Input 40 42 -1 20 30 -1 0 2 -1 -1 -1 -1 Sample Output A C F */ public static void main(String[] args) throws Exception { boolean flg = true; Scanner sc = new Scanner(System.in); while (flg) { int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); if (m == -1 && f == -1 && r == -1) { flg = false; } else if (m == -1 || f == -1) { System.out.println("F"); } else { if (m + f < 30) { System.out.println("F"); } else if (m + f < 50) { if (r >= 50) { System.out.println("C"); } else { System.out.println("D"); } } else if (m + f < 65) { System.out.println("C"); } else if (m + f < 80) { System.out.println("B"); } else { System.out.println("A"); } } } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 30, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 141, 5 ], [ 141, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 29, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 47, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 61, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 61, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 71, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 71, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 91, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 91, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 46, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 46, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 46, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 46, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 8, 135 ], [ 135, 136 ], [ 136, 137 ], [ 6, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tchar result;\n\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\n\t\tfor (; m != -1 || f != -1 || r != -1;) {\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tresult = 'F';\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tresult = 'A';\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tchar result;\n\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\n\t\tfor (; m != -1 || f != -1 || r != -1;) {\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tresult = 'F';\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tresult = 'A';\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tchar result;\n\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\n\t\tfor (; m != -1 || f != -1 || r != -1;) {\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tresult = 'F';\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tresult = 'A';\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tchar result;\n\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\n\t\tfor (; m != -1 || f != -1 || r != -1;) {\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tresult = 'F';\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tresult = 'A';\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "char result;", "result", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "for (; m != -1 || f != -1 || r != -1;) {\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tresult = 'F';\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tresult = 'A';\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}", ";", "m != -1 || f != -1 || r != -1", "m != -1 || f != -1 || r != -1", "m != -1", "m", "-1", "1", "f != -1", "f", "-1", "1", "r != -1", "r", "-1", "1", "{\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tresult = 'F';\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tresult = 'A';\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}", "{\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tresult = 'F';\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tresult = 'A';\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}", "if (m == -1 || f == -1) {\n\t\t\t\tresult = 'F';\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tresult = 'A';\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\tresult = 'F';\n\t\t\t}", "result = 'F'", "result", "'F'", "if (m + f >= 80) {\n\t\t\t\tresult = 'A';\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}", "m + f >= 80", "m + f", "m", "f", "80", "{\n\t\t\t\tresult = 'A';\n\t\t\t}", "result = 'A'", "result", "'A'", "if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}", "m + f >= 65", "m + f", "m", "f", "65", "{\n\t\t\t\tresult = 'B';\n\t\t\t}", "result = 'B'", "result", "'B'", "if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}", "m + f >= 50", "m + f", "m", "f", "50", "{\n\t\t\t\tresult = 'C';\n\t\t\t}", "result = 'C'", "result", "'C'", "if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}", "m + f >= 30", "m + f", "m", "f", "30", "{\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t}", "if (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\tresult = 'C';\n\t\t\t\t}", "result = 'C'", "result", "'C'", "{\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}", "result = 'D'", "result", "'D'", "{\n\t\t\t\tresult = 'F';\n\t\t\t}", "result = 'F'", "result", "'F'", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tchar result;\n\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\n\t\tfor (; m != -1 || f != -1 || r != -1;) {\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tresult = 'F';\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tresult = 'A';\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tchar result;\n\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\n\t\tfor (; m != -1 || f != -1 || r != -1;) {\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tresult = 'F';\n\t\t\t} else if (m + f >= 80) {\n\t\t\t\tresult = 'A';\n\t\t\t} else if (m + f >= 65) {\n\t\t\t\tresult = 'B';\n\t\t\t} else if (m + f >= 50) {\n\t\t\t\tresult = 'C';\n\t\t\t} else if (m + f >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tresult = 'C';\n\t\t\t\t} else {\n\t\t\t\t\tresult = 'D';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult = 'F';\n\t\t\t}\n\n\t\t\tSystem.out.println(result);\n\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char result; int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); for (; m != -1 || f != -1 || r != -1;) { if (m == -1 || f == -1) { result = 'F'; } else if (m + f >= 80) { result = 'A'; } else if (m + f >= 65) { result = 'B'; } else if (m + f >= 50) { result = 'C'; } else if (m + f >= 30) { if (r >= 50) { result = 'C'; } else { result = 'D'; } } else { result = 'F'; } System.out.println(result); m = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 11, 1, 0, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 20, 40, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 20, 4, 18, 13, 20, 14, 2, 2, 4, 18, 13, 20, 40, 17, 2, 4, 18, 13, 20, 40, 17, 4, 18, 13, 17, 14, 2, 13, 17, 4, 18, 13, 17, 14, 2, 13, 17, 4, 18, 13, 17, 14, 2, 2, 13, 17, 2, 4, 18, 13, 20, 17, 4, 18, 13, 17, 14, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 11, 1, 0, 13, 17, 2, 2, 13, 17, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 13, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 217, 8 ], [ 217, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 11, 33 ], [ 33, 34 ], [ 33, 35 ], [ 11, 36 ], [ 36, 37 ], [ 36, 38 ], [ 11, 39 ], [ 39, 40 ], [ 39, 41 ], [ 11, 42 ], [ 42, 43 ], [ 42, 44 ], [ 11, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 57, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 57, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 57, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 57, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 57, 85 ], [ 85, 86 ], [ 57, 87 ], [ 87, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 89, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 87, 102 ], [ 11, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 108, 109 ], [ 108, 110 ], [ 103, 111 ], [ 111, 112 ], [ 112, 113 ], [ 103, 114 ], [ 115, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 118, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 115, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 129, 134 ], [ 134, 135 ], [ 128, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 136, 141 ], [ 141, 142 ], [ 127, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 127, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 147, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 160, 161 ], [ 159, 162 ], [ 155, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 169, 172 ], [ 168, 173 ], [ 163, 174 ], [ 174, 175 ], [ 175, 176 ], [ 174, 177 ], [ 163, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 182, 183 ], [ 183, 184 ], [ 182, 185 ], [ 178, 186 ], [ 186, 187 ], [ 187, 188 ], [ 186, 189 ], [ 11, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 190, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 195, 199 ], [ 190, 200 ], [ 200, 201 ], [ 201, 202 ], [ 190, 203 ], [ 204, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 205, 210 ], [ 210, 211 ], [ 211, 212 ], [ 210, 213 ], [ 9, 214 ], [ 214, 215 ], [ 0, 216 ], [ 216, 217 ], [ 216, 218 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n int i, m, f, r, gou, flg = 0, cnt = 0;\n\tString seiseki;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> mid = new ArrayList<Integer>(); //??????????¨?????????°??¨\n\tArrayList<Integer> fin = new ArrayList<Integer>(); //???????????????????????°??¨\n\tArrayList<Integer> rit = new ArrayList<Integer>(); //???????¨?????????°??¨\n\tArrayList<Character> sei = new ArrayList<Character>(); //????????¨\n\n\t//??\\?????????\n\tfor(i = 0; flg == 0; i++){\n \t m = sc.nextInt();\n \t mid.add(new Integer(m));\n \t f = sc.nextInt();\n\t fin.add(new Integer(f));\n \t r = sc.nextInt();\n \t rit.add(new Integer(r));\n\t cnt++;\n\t if(m == -1 && f == -1 && r == -1)\n\t\tbreak;\n }\n\t//??????????????????\n for(i = 0; cnt != i; i++){\n\t gou = fin.get(new Integer(i)) + mid.get(new Integer(i));\n\t if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)\n\t\tsei.add('F');\n\t else if(gou >= 80)\n\t\tsei.add('A');\n\t else if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');\n\t}\n\tfor(i = 0; cnt - 1 != i; i++){\n\t System.out.println(sei.get(new Integer(i)));\n\t}\n }\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n int i, m, f, r, gou, flg = 0, cnt = 0;\n\tString seiseki;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> mid = new ArrayList<Integer>(); //??????????¨?????????°??¨\n\tArrayList<Integer> fin = new ArrayList<Integer>(); //???????????????????????°??¨\n\tArrayList<Integer> rit = new ArrayList<Integer>(); //???????¨?????????°??¨\n\tArrayList<Character> sei = new ArrayList<Character>(); //????????¨\n\n\t//??\\?????????\n\tfor(i = 0; flg == 0; i++){\n \t m = sc.nextInt();\n \t mid.add(new Integer(m));\n \t f = sc.nextInt();\n\t fin.add(new Integer(f));\n \t r = sc.nextInt();\n \t rit.add(new Integer(r));\n\t cnt++;\n\t if(m == -1 && f == -1 && r == -1)\n\t\tbreak;\n }\n\t//??????????????????\n for(i = 0; cnt != i; i++){\n\t gou = fin.get(new Integer(i)) + mid.get(new Integer(i));\n\t if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)\n\t\tsei.add('F');\n\t else if(gou >= 80)\n\t\tsei.add('A');\n\t else if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');\n\t}\n\tfor(i = 0; cnt - 1 != i; i++){\n\t System.out.println(sei.get(new Integer(i)));\n\t}\n }\n}", "Main", "public static void main(String[] args) {\n int i, m, f, r, gou, flg = 0, cnt = 0;\n\tString seiseki;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> mid = new ArrayList<Integer>(); //??????????¨?????????°??¨\n\tArrayList<Integer> fin = new ArrayList<Integer>(); //???????????????????????°??¨\n\tArrayList<Integer> rit = new ArrayList<Integer>(); //???????¨?????????°??¨\n\tArrayList<Character> sei = new ArrayList<Character>(); //????????¨\n\n\t//??\\?????????\n\tfor(i = 0; flg == 0; i++){\n \t m = sc.nextInt();\n \t mid.add(new Integer(m));\n \t f = sc.nextInt();\n\t fin.add(new Integer(f));\n \t r = sc.nextInt();\n \t rit.add(new Integer(r));\n\t cnt++;\n\t if(m == -1 && f == -1 && r == -1)\n\t\tbreak;\n }\n\t//??????????????????\n for(i = 0; cnt != i; i++){\n\t gou = fin.get(new Integer(i)) + mid.get(new Integer(i));\n\t if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)\n\t\tsei.add('F');\n\t else if(gou >= 80)\n\t\tsei.add('A');\n\t else if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');\n\t}\n\tfor(i = 0; cnt - 1 != i; i++){\n\t System.out.println(sei.get(new Integer(i)));\n\t}\n }", "main", "{\n int i, m, f, r, gou, flg = 0, cnt = 0;\n\tString seiseki;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> mid = new ArrayList<Integer>(); //??????????¨?????????°??¨\n\tArrayList<Integer> fin = new ArrayList<Integer>(); //???????????????????????°??¨\n\tArrayList<Integer> rit = new ArrayList<Integer>(); //???????¨?????????°??¨\n\tArrayList<Character> sei = new ArrayList<Character>(); //????????¨\n\n\t//??\\?????????\n\tfor(i = 0; flg == 0; i++){\n \t m = sc.nextInt();\n \t mid.add(new Integer(m));\n \t f = sc.nextInt();\n\t fin.add(new Integer(f));\n \t r = sc.nextInt();\n \t rit.add(new Integer(r));\n\t cnt++;\n\t if(m == -1 && f == -1 && r == -1)\n\t\tbreak;\n }\n\t//??????????????????\n for(i = 0; cnt != i; i++){\n\t gou = fin.get(new Integer(i)) + mid.get(new Integer(i));\n\t if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)\n\t\tsei.add('F');\n\t else if(gou >= 80)\n\t\tsei.add('A');\n\t else if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');\n\t}\n\tfor(i = 0; cnt - 1 != i; i++){\n\t System.out.println(sei.get(new Integer(i)));\n\t}\n }", "int i", "i", "m", "m", "f", "f", "r", "r", "gou", "gou", "flg = 0", "flg", "0", "cnt = 0;", "cnt", "0", "String seiseki;", "seiseki", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<Integer> mid = new ArrayList<Integer>();", "mid", "new ArrayList<Integer>()", "ArrayList<Integer> fin = new ArrayList<Integer>();", "fin", "new ArrayList<Integer>()", "ArrayList<Integer> rit = new ArrayList<Integer>();", "rit", "new ArrayList<Integer>()", "ArrayList<Character> sei = new ArrayList<Character>();", "sei", "new ArrayList<Character>()", "for(i = 0; flg == 0; i++){\n \t m = sc.nextInt();\n \t mid.add(new Integer(m));\n \t f = sc.nextInt();\n\t fin.add(new Integer(f));\n \t r = sc.nextInt();\n \t rit.add(new Integer(r));\n\t cnt++;\n\t if(m == -1 && f == -1 && r == -1)\n\t\tbreak;\n }", "i = 0;", "i = 0", "i", "0", "flg == 0", "flg", "0", "i++", "i++", "i", "{\n \t m = sc.nextInt();\n \t mid.add(new Integer(m));\n \t f = sc.nextInt();\n\t fin.add(new Integer(f));\n \t r = sc.nextInt();\n \t rit.add(new Integer(r));\n\t cnt++;\n\t if(m == -1 && f == -1 && r == -1)\n\t\tbreak;\n }", "{\n \t m = sc.nextInt();\n \t mid.add(new Integer(m));\n \t f = sc.nextInt();\n\t fin.add(new Integer(f));\n \t r = sc.nextInt();\n \t rit.add(new Integer(r));\n\t cnt++;\n\t if(m == -1 && f == -1 && r == -1)\n\t\tbreak;\n }", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "mid.add(new Integer(m))", "mid.add", "mid", "new Integer(m)", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "fin.add(new Integer(f))", "fin.add", "fin", "new Integer(f)", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "rit.add(new Integer(r))", "rit.add", "rit", "new Integer(r)", "cnt++", "cnt", "if(m == -1 && f == -1 && r == -1)\n\t\tbreak;", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "break;", "for(i = 0; cnt != i; i++){\n\t gou = fin.get(new Integer(i)) + mid.get(new Integer(i));\n\t if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)\n\t\tsei.add('F');\n\t else if(gou >= 80)\n\t\tsei.add('A');\n\t else if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');\n\t}", "i = 0;", "i = 0", "i", "0", "cnt != i", "cnt", "i", "i++", "i++", "i", "{\n\t gou = fin.get(new Integer(i)) + mid.get(new Integer(i));\n\t if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)\n\t\tsei.add('F');\n\t else if(gou >= 80)\n\t\tsei.add('A');\n\t else if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');\n\t}", "{\n\t gou = fin.get(new Integer(i)) + mid.get(new Integer(i));\n\t if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)\n\t\tsei.add('F');\n\t else if(gou >= 80)\n\t\tsei.add('A');\n\t else if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');\n\t}", "gou = fin.get(new Integer(i)) + mid.get(new Integer(i))", "gou", "fin.get(new Integer(i)) + mid.get(new Integer(i))", "fin.get(new Integer(i))", "fin.get", "fin", "new Integer(i)", "mid.get(new Integer(i))", "mid.get", "mid", "new Integer(i)", "if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)\n\t\tsei.add('F');\n\t else if(gou >= 80)\n\t\tsei.add('A');\n\t else if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');", "fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1", "fin.get(new Integer(i)) == -1", "fin.get(new Integer(i))", "fin.get", "fin", "new Integer(i)", "-1", "1", "mid.get(new Integer(i)) == -1", "mid.get(new Integer(i))", "mid.get", "mid", "new Integer(i)", "-1", "1", "sei.add('F')", "sei.add", "sei", "'F'", "if(gou >= 80)\n\t\tsei.add('A');\n\t else if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');", "gou >= 80", "gou", "80", "sei.add('A')", "sei.add", "sei", "'A'", "if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');", "gou >= 65", "gou", "65", "sei.add('B')", "sei.add", "sei", "'B'", "if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');", "gou >= 50 || rit.get(new Integer(i)) >= 50", "gou >= 50", "gou", "50", "rit.get(new Integer(i)) >= 50", "rit.get(new Integer(i))", "rit.get", "rit", "new Integer(i)", "50", "sei.add('C')", "sei.add", "sei", "'C'", "if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');", "gou >= 30", "gou", "30", "sei.add('D')", "sei.add", "sei", "'D'", "sei.add('F')", "sei.add", "sei", "'F'", "for(i = 0; cnt - 1 != i; i++){\n\t System.out.println(sei.get(new Integer(i)));\n\t}", "i = 0;", "i = 0", "i", "0", "cnt - 1 != i", "cnt - 1", "cnt", "1", "i", "i++", "i++", "i", "{\n\t System.out.println(sei.get(new Integer(i)));\n\t}", "{\n\t System.out.println(sei.get(new Integer(i)));\n\t}", "System.out.println(sei.get(new Integer(i)))", "System.out.println", "System.out", "System", "System.out", "sei.get(new Integer(i))", "sei.get", "sei", "new Integer(i)", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n int i, m, f, r, gou, flg = 0, cnt = 0;\n\tString seiseki;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> mid = new ArrayList<Integer>(); //??????????¨?????????°??¨\n\tArrayList<Integer> fin = new ArrayList<Integer>(); //???????????????????????°??¨\n\tArrayList<Integer> rit = new ArrayList<Integer>(); //???????¨?????????°??¨\n\tArrayList<Character> sei = new ArrayList<Character>(); //????????¨\n\n\t//??\\?????????\n\tfor(i = 0; flg == 0; i++){\n \t m = sc.nextInt();\n \t mid.add(new Integer(m));\n \t f = sc.nextInt();\n\t fin.add(new Integer(f));\n \t r = sc.nextInt();\n \t rit.add(new Integer(r));\n\t cnt++;\n\t if(m == -1 && f == -1 && r == -1)\n\t\tbreak;\n }\n\t//??????????????????\n for(i = 0; cnt != i; i++){\n\t gou = fin.get(new Integer(i)) + mid.get(new Integer(i));\n\t if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)\n\t\tsei.add('F');\n\t else if(gou >= 80)\n\t\tsei.add('A');\n\t else if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');\n\t}\n\tfor(i = 0; cnt - 1 != i; i++){\n\t System.out.println(sei.get(new Integer(i)));\n\t}\n }\n}", "public class Main {\n public static void main(String[] args) {\n int i, m, f, r, gou, flg = 0, cnt = 0;\n\tString seiseki;\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> mid = new ArrayList<Integer>(); //??????????¨?????????°??¨\n\tArrayList<Integer> fin = new ArrayList<Integer>(); //???????????????????????°??¨\n\tArrayList<Integer> rit = new ArrayList<Integer>(); //???????¨?????????°??¨\n\tArrayList<Character> sei = new ArrayList<Character>(); //????????¨\n\n\t//??\\?????????\n\tfor(i = 0; flg == 0; i++){\n \t m = sc.nextInt();\n \t mid.add(new Integer(m));\n \t f = sc.nextInt();\n\t fin.add(new Integer(f));\n \t r = sc.nextInt();\n \t rit.add(new Integer(r));\n\t cnt++;\n\t if(m == -1 && f == -1 && r == -1)\n\t\tbreak;\n }\n\t//??????????????????\n for(i = 0; cnt != i; i++){\n\t gou = fin.get(new Integer(i)) + mid.get(new Integer(i));\n\t if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1)\n\t\tsei.add('F');\n\t else if(gou >= 80)\n\t\tsei.add('A');\n\t else if(gou >= 65)\n\t\tsei.add('B');\n\t else if(gou >= 50 || rit.get(new Integer(i)) >= 50)\n\t\tsei.add('C');\n\t else if(gou >= 30)\n\t\tsei.add('D');\n\t else\n\t\tsei.add('F');\n\t}\n\tfor(i = 0; cnt - 1 != i; i++){\n\t System.out.println(sei.get(new Integer(i)));\n\t}\n }\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { int i, m, f, r, gou, flg = 0, cnt = 0; String seiseki; Scanner sc = new Scanner(System.in); ArrayList<Integer> mid = new ArrayList<Integer>(); //??????????¨?????????°??¨ ArrayList<Integer> fin = new ArrayList<Integer>(); //???????????????????????°??¨ ArrayList<Integer> rit = new ArrayList<Integer>(); //???????¨?????????°??¨ ArrayList<Character> sei = new ArrayList<Character>(); //????????¨ //??\????????? for(i = 0; flg == 0; i++){ m = sc.nextInt(); mid.add(new Integer(m)); f = sc.nextInt(); fin.add(new Integer(f)); r = sc.nextInt(); rit.add(new Integer(r)); cnt++; if(m == -1 && f == -1 && r == -1) break; } //?????????????????? for(i = 0; cnt != i; i++){ gou = fin.get(new Integer(i)) + mid.get(new Integer(i)); if(fin.get(new Integer(i)) == -1 || mid.get(new Integer(i)) == -1) sei.add('F'); else if(gou >= 80) sei.add('A'); else if(gou >= 65) sei.add('B'); else if(gou >= 50 || rit.get(new Integer(i)) >= 50) sei.add('C'); else if(gou >= 30) sei.add('D'); else sei.add('F'); } for(i = 0; cnt - 1 != i; i++){ System.out.println(sei.get(new Integer(i))); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 14, 2, 2, 2, 4, 18, 13, 18, 13, 13, 40, 17, 2, 4, 18, 13, 18, 13, 13, 40, 17, 2, 4, 18, 13, 18, 13, 13, 40, 17, 30, 3, 0, 13, 4, 18, 13, 18, 13, 13, 0, 13, 4, 18, 13, 18, 13, 13, 0, 13, 4, 18, 13, 18, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 217, 11 ], [ 217, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 14, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 43, 55 ], [ 55, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 58, 65 ], [ 65, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 67, 74 ], [ 74, 75 ], [ 57, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 76, 83 ], [ 83, 84 ], [ 55, 85 ], [ 85, 86 ], [ 43, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 92, 94 ], [ 43, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 100, 102 ], [ 43, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 108, 109 ], [ 108, 110 ], [ 43, 111 ], [ 111, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 113, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 111, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 111, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 132, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 132, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 144, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 143, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 156, 159 ], [ 143, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 161, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 160, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 160, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 178, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 184, 188 ], [ 177, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 195, 198 ], [ 190, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 200, 203 ], [ 43, 204 ], [ 204, 205 ], [ 205, 206 ], [ 204, 207 ], [ 14, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 208, 213 ], [ 12, 214 ], [ 214, 215 ], [ 0, 216 ], [ 216, 217 ], [ 216, 218 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String[] columns;\n int ZENKI = 0;\n int KOUKI = 1;\n int SAITEST = 2;\n\n int score1 = 0;\n int score2 = 0;\n int score3 = 0;\n\n while (true) {\n\n String line = reader.readLine();\n columns = line.split(\" \");\n if (Integer.parseInt(columns[ZENKI]) == -1\n && Integer.parseInt(columns[KOUKI]) == -1\n && Integer.parseInt(columns[SAITEST]) == -1) {\n break;\n }\n score1 = Integer.parseInt(columns[ZENKI]);\n score2 = Integer.parseInt(columns[KOUKI]);\n score3 = Integer.parseInt(columns[SAITEST]);\n\n if (score1 == -1 || score2 == -1 || score1 + score2 < 30) {\n builder.append(\"F\");\n } else if ((score1 + score2) >= 80) {\n builder.append(\"A\");\n } else if (score1 + score2 < 80 && score1 + score2 >= 65) {\n builder.append(\"B\");\n } else if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }\n builder.append(\"\\n\");\n }\n System.out.print(builder);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String[] columns;\n int ZENKI = 0;\n int KOUKI = 1;\n int SAITEST = 2;\n\n int score1 = 0;\n int score2 = 0;\n int score3 = 0;\n\n while (true) {\n\n String line = reader.readLine();\n columns = line.split(\" \");\n if (Integer.parseInt(columns[ZENKI]) == -1\n && Integer.parseInt(columns[KOUKI]) == -1\n && Integer.parseInt(columns[SAITEST]) == -1) {\n break;\n }\n score1 = Integer.parseInt(columns[ZENKI]);\n score2 = Integer.parseInt(columns[KOUKI]);\n score3 = Integer.parseInt(columns[SAITEST]);\n\n if (score1 == -1 || score2 == -1 || score1 + score2 < 30) {\n builder.append(\"F\");\n } else if ((score1 + score2) >= 80) {\n builder.append(\"A\");\n } else if (score1 + score2 < 80 && score1 + score2 >= 65) {\n builder.append(\"B\");\n } else if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }\n builder.append(\"\\n\");\n }\n System.out.print(builder);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String[] columns;\n int ZENKI = 0;\n int KOUKI = 1;\n int SAITEST = 2;\n\n int score1 = 0;\n int score2 = 0;\n int score3 = 0;\n\n while (true) {\n\n String line = reader.readLine();\n columns = line.split(\" \");\n if (Integer.parseInt(columns[ZENKI]) == -1\n && Integer.parseInt(columns[KOUKI]) == -1\n && Integer.parseInt(columns[SAITEST]) == -1) {\n break;\n }\n score1 = Integer.parseInt(columns[ZENKI]);\n score2 = Integer.parseInt(columns[KOUKI]);\n score3 = Integer.parseInt(columns[SAITEST]);\n\n if (score1 == -1 || score2 == -1 || score1 + score2 < 30) {\n builder.append(\"F\");\n } else if ((score1 + score2) >= 80) {\n builder.append(\"A\");\n } else if (score1 + score2 < 80 && score1 + score2 >= 65) {\n builder.append(\"B\");\n } else if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }\n builder.append(\"\\n\");\n }\n System.out.print(builder);\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String[] columns;\n int ZENKI = 0;\n int KOUKI = 1;\n int SAITEST = 2;\n\n int score1 = 0;\n int score2 = 0;\n int score3 = 0;\n\n while (true) {\n\n String line = reader.readLine();\n columns = line.split(\" \");\n if (Integer.parseInt(columns[ZENKI]) == -1\n && Integer.parseInt(columns[KOUKI]) == -1\n && Integer.parseInt(columns[SAITEST]) == -1) {\n break;\n }\n score1 = Integer.parseInt(columns[ZENKI]);\n score2 = Integer.parseInt(columns[KOUKI]);\n score3 = Integer.parseInt(columns[SAITEST]);\n\n if (score1 == -1 || score2 == -1 || score1 + score2 < 30) {\n builder.append(\"F\");\n } else if ((score1 + score2) >= 80) {\n builder.append(\"A\");\n } else if (score1 + score2 < 80 && score1 + score2 >= 65) {\n builder.append(\"B\");\n } else if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }\n builder.append(\"\\n\");\n }\n System.out.print(builder);\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "String[] columns;", "columns", "int ZENKI = 0;", "ZENKI", "0", "int KOUKI = 1;", "KOUKI", "1", "int SAITEST = 2;", "SAITEST", "2", "int score1 = 0;", "score1", "0", "int score2 = 0;", "score2", "0", "int score3 = 0;", "score3", "0", "while (true) {\n\n String line = reader.readLine();\n columns = line.split(\" \");\n if (Integer.parseInt(columns[ZENKI]) == -1\n && Integer.parseInt(columns[KOUKI]) == -1\n && Integer.parseInt(columns[SAITEST]) == -1) {\n break;\n }\n score1 = Integer.parseInt(columns[ZENKI]);\n score2 = Integer.parseInt(columns[KOUKI]);\n score3 = Integer.parseInt(columns[SAITEST]);\n\n if (score1 == -1 || score2 == -1 || score1 + score2 < 30) {\n builder.append(\"F\");\n } else if ((score1 + score2) >= 80) {\n builder.append(\"A\");\n } else if (score1 + score2 < 80 && score1 + score2 >= 65) {\n builder.append(\"B\");\n } else if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }\n builder.append(\"\\n\");\n }", "true", "{\n\n String line = reader.readLine();\n columns = line.split(\" \");\n if (Integer.parseInt(columns[ZENKI]) == -1\n && Integer.parseInt(columns[KOUKI]) == -1\n && Integer.parseInt(columns[SAITEST]) == -1) {\n break;\n }\n score1 = Integer.parseInt(columns[ZENKI]);\n score2 = Integer.parseInt(columns[KOUKI]);\n score3 = Integer.parseInt(columns[SAITEST]);\n\n if (score1 == -1 || score2 == -1 || score1 + score2 < 30) {\n builder.append(\"F\");\n } else if ((score1 + score2) >= 80) {\n builder.append(\"A\");\n } else if (score1 + score2 < 80 && score1 + score2 >= 65) {\n builder.append(\"B\");\n } else if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }\n builder.append(\"\\n\");\n }", "String line = reader.readLine();", "line", "reader.readLine()", "reader.readLine", "reader", "columns = line.split(\" \")", "columns", "line.split(\" \")", "line.split", "line", "\" \"", "if (Integer.parseInt(columns[ZENKI]) == -1\n && Integer.parseInt(columns[KOUKI]) == -1\n && Integer.parseInt(columns[SAITEST]) == -1) {\n break;\n }", "Integer.parseInt(columns[ZENKI]) == -1\n && Integer.parseInt(columns[KOUKI]) == -1\n && Integer.parseInt(columns[SAITEST]) == -1", "Integer.parseInt(columns[ZENKI]) == -1\n && Integer.parseInt(columns[KOUKI]) == -1\n && Integer.parseInt(columns[SAITEST]) == -1", "Integer.parseInt(columns[ZENKI]) == -1", "Integer.parseInt(columns[ZENKI])", "Integer.parseInt", "Integer", "columns[ZENKI]", "columns", "ZENKI", "-1", "1", "Integer.parseInt(columns[KOUKI]) == -1", "Integer.parseInt(columns[KOUKI])", "Integer.parseInt", "Integer", "columns[KOUKI]", "columns", "KOUKI", "-1", "1", "Integer.parseInt(columns[SAITEST]) == -1", "Integer.parseInt(columns[SAITEST])", "Integer.parseInt", "Integer", "columns[SAITEST]", "columns", "SAITEST", "-1", "1", "{\n break;\n }", "break;", "score1 = Integer.parseInt(columns[ZENKI])", "score1", "Integer.parseInt(columns[ZENKI])", "Integer.parseInt", "Integer", "columns[ZENKI]", "columns", "ZENKI", "score2 = Integer.parseInt(columns[KOUKI])", "score2", "Integer.parseInt(columns[KOUKI])", "Integer.parseInt", "Integer", "columns[KOUKI]", "columns", "KOUKI", "score3 = Integer.parseInt(columns[SAITEST])", "score3", "Integer.parseInt(columns[SAITEST])", "Integer.parseInt", "Integer", "columns[SAITEST]", "columns", "SAITEST", "if (score1 == -1 || score2 == -1 || score1 + score2 < 30) {\n builder.append(\"F\");\n } else if ((score1 + score2) >= 80) {\n builder.append(\"A\");\n } else if (score1 + score2 < 80 && score1 + score2 >= 65) {\n builder.append(\"B\");\n } else if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }", "score1 == -1 || score2 == -1 || score1 + score2 < 30", "score1 == -1 || score2 == -1 || score1 + score2 < 30", "score1 == -1", "score1", "-1", "1", "score2 == -1", "score2", "-1", "1", "score1 + score2 < 30", "score1 + score2", "score1", "score2", "30", "{\n builder.append(\"F\");\n }", "builder.append(\"F\")", "builder.append", "builder", "\"F\"", "if ((score1 + score2) >= 80) {\n builder.append(\"A\");\n } else if (score1 + score2 < 80 && score1 + score2 >= 65) {\n builder.append(\"B\");\n } else if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }", "(score1 + score2) >= 80", "(score1 + score2)", "score1", "score2", "80", "{\n builder.append(\"A\");\n }", "builder.append(\"A\")", "builder.append", "builder", "\"A\"", "if (score1 + score2 < 80 && score1 + score2 >= 65) {\n builder.append(\"B\");\n } else if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }", "score1 + score2 < 80 && score1 + score2 >= 65", "score1 + score2 < 80", "score1 + score2", "score1", "score2", "80", "score1 + score2 >= 65", "score1 + score2", "score1", "score2", "65", "{\n builder.append(\"B\");\n }", "builder.append(\"B\")", "builder.append", "builder", "\"B\"", "if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }", "score1 + score2 < 65 && score1 + score2 >= 50", "score1 + score2 < 65", "score1 + score2", "score1", "score2", "65", "score1 + score2 >= 50", "score1 + score2", "score1", "score2", "50", "{\n builder.append(\"C\");\n }", "builder.append(\"C\")", "builder.append", "builder", "\"C\"", "if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }", "score1 + score2 < 50 && score1 + score2 >= 30", "score1 + score2 < 50", "score1 + score2", "score1", "score2", "50", "score1 + score2 >= 30", "score1 + score2", "score1", "score2", "30", "{\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }", "if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }", "score3 >= 50", "score3", "50", "{\n builder.append(\"C\");\n }", "builder.append(\"C\")", "builder.append", "builder", "\"C\"", "{\n builder.append(\"D\");\n }", "builder.append(\"D\")", "builder.append", "builder", "\"D\"", "builder.append(\"\\n\")", "builder.append", "builder", "\"\\n\"", "System.out.print(builder)", "System.out.print", "System.out", "System", "System.out", "builder", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String[] columns;\n int ZENKI = 0;\n int KOUKI = 1;\n int SAITEST = 2;\n\n int score1 = 0;\n int score2 = 0;\n int score3 = 0;\n\n while (true) {\n\n String line = reader.readLine();\n columns = line.split(\" \");\n if (Integer.parseInt(columns[ZENKI]) == -1\n && Integer.parseInt(columns[KOUKI]) == -1\n && Integer.parseInt(columns[SAITEST]) == -1) {\n break;\n }\n score1 = Integer.parseInt(columns[ZENKI]);\n score2 = Integer.parseInt(columns[KOUKI]);\n score3 = Integer.parseInt(columns[SAITEST]);\n\n if (score1 == -1 || score2 == -1 || score1 + score2 < 30) {\n builder.append(\"F\");\n } else if ((score1 + score2) >= 80) {\n builder.append(\"A\");\n } else if (score1 + score2 < 80 && score1 + score2 >= 65) {\n builder.append(\"B\");\n } else if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }\n builder.append(\"\\n\");\n }\n System.out.print(builder);\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String[] columns;\n int ZENKI = 0;\n int KOUKI = 1;\n int SAITEST = 2;\n\n int score1 = 0;\n int score2 = 0;\n int score3 = 0;\n\n while (true) {\n\n String line = reader.readLine();\n columns = line.split(\" \");\n if (Integer.parseInt(columns[ZENKI]) == -1\n && Integer.parseInt(columns[KOUKI]) == -1\n && Integer.parseInt(columns[SAITEST]) == -1) {\n break;\n }\n score1 = Integer.parseInt(columns[ZENKI]);\n score2 = Integer.parseInt(columns[KOUKI]);\n score3 = Integer.parseInt(columns[SAITEST]);\n\n if (score1 == -1 || score2 == -1 || score1 + score2 < 30) {\n builder.append(\"F\");\n } else if ((score1 + score2) >= 80) {\n builder.append(\"A\");\n } else if (score1 + score2 < 80 && score1 + score2 >= 65) {\n builder.append(\"B\");\n } else if (score1 + score2 < 65 && score1 + score2 >= 50) {\n builder.append(\"C\");\n } else if (score1 + score2 < 50 && score1 + score2 >= 30) {\n if (score3 >= 50) {\n builder.append(\"C\");\n }\n else {\n builder.append(\"D\");\n }\n }\n builder.append(\"\\n\");\n }\n System.out.print(builder);\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 reader = new BufferedReader(new InputStreamReader(System.in)); StringBuilder builder = new StringBuilder(); String[] columns; int ZENKI = 0; int KOUKI = 1; int SAITEST = 2; int score1 = 0; int score2 = 0; int score3 = 0; while (true) { String line = reader.readLine(); columns = line.split(" "); if (Integer.parseInt(columns[ZENKI]) == -1 && Integer.parseInt(columns[KOUKI]) == -1 && Integer.parseInt(columns[SAITEST]) == -1) { break; } score1 = Integer.parseInt(columns[ZENKI]); score2 = Integer.parseInt(columns[KOUKI]); score3 = Integer.parseInt(columns[SAITEST]); if (score1 == -1 || score2 == -1 || score1 + score2 < 30) { builder.append("F"); } else if ((score1 + score2) >= 80) { builder.append("A"); } else if (score1 + score2 < 80 && score1 + score2 >= 65) { builder.append("B"); } else if (score1 + score2 < 65 && score1 + score2 >= 50) { builder.append("C"); } else if (score1 + score2 < 50 && score1 + score2 >= 30) { if (score3 >= 50) { builder.append("C"); } else { builder.append("D"); } } builder.append("\n"); } System.out.print(builder); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 17, 14, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 17, 2, 13, 13, 30, 0, 13, 17, 14, 2, 17, 2, 13, 13, 30, 0, 13, 17, 14, 2, 17, 2, 13, 13, 30, 0, 13, 17, 14, 2, 17, 2, 13, 13, 30, 0, 13, 17, 14, 2, 17, 13, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 13, 13, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 196, 14 ], [ 196, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 24, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 24, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 49, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 49, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 49, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 81, 83 ], [ 49, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 49, 92 ], [ 92, 93 ], [ 92, 94 ], [ 49, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 95, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 49, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 104, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 49, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 113, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 123, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 136, 138 ], [ 133, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 133, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 143, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 143, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 49, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 49, 169 ], [ 169, 170 ], [ 43, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 176, 177 ], [ 176, 178 ], [ 171, 179 ], [ 179, 180 ], [ 180, 181 ], [ 171, 182 ], [ 183, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 184, 189 ], [ 189, 190 ], [ 190, 191 ], [ 189, 192 ], [ 15, 193 ], [ 193, 194 ], [ 0, 195 ], [ 195, 196 ], [ 195, 197 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\n/**\n * Lesson7A あなたの課題は、あるクラスの数学の成績を付けるプログラムを作成することです。\n *\n * プログラムは複数の学生のテストの点数を読み込みます。\n *\n * テストの点数は、中間試験の点数 m、期末試験の点数 f、再試験の点数 r で構成されています。\n *\n * 中間試験と期末試験は 50 点満点(m, f ? 50)、再試験は 100 点満点 (r ? 100)です。\n *\n * 試験を受けていない場合は点数を -1 とします。\n *\n * 以下の手順で成績が付けられます: ?中間試験、期末試験のいずれかを欠席した場合成績は F。 ?中間試験と期末試験の合計点数が 80 以上ならば成績は A\n * 。 ?中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。 ?中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。\n * ?中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。\n * ?中間試験と期末試験の合計点数が 30 未満ならば成績は F。\n *\n * @author Internship\n *\n */\npublic class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答え\n\t\tArrayList<Character> chaAnswer = new ArrayList<Character>();\n\n\t\t//答えがいくつあるかカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1列づつ読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\n\n\t\t\twhile (true) {\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t//終了条件\n\t\t\t\tif(strLine.equals(\"-1 -1 -1\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ばらけさせる\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// int型にキャスト\n\t\t\t\t// 中間テスト\n\t\t\t\tint IntermediateTest = Integer.parseInt(strAryLine[0]);\n\n\t\t\t\t// 期末テスト\n\t\t\t\tint intYearEndTest = Integer.parseInt(strAryLine[1]);\n\n\t\t\t\t// 追試\n\t\t\t\tint intAdditionalTest = Integer.parseInt(strAryLine[2]);\n\n\t\t\t\t// 答えのストック A?F以外で初期化\n\t\t\t\tchar chaAnswerStock = 'G';\n\n\t\t\t\t//-1は受けてないので中間テストと期末テストは0点とする\n\t\t\t\tif(IntermediateTest == -1) {\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}\n\n\t\t\t\tif(intYearEndTest == -1) {\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}\n\n\t\t\t\t// 成績の判断\n\t\t\t\tif (80 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t} else if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}\n\t\t\t\tchaAnswer.add(chaAnswerStock);\n\t\t\t\tintAnwer++;\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tfor(int i = 0; i < intAnwer; i++) {\n\t\t\t\tSystem.out.println(chaAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答え\n\t\tArrayList<Character> chaAnswer = new ArrayList<Character>();\n\n\t\t//答えがいくつあるかカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1列づつ読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\n\n\t\t\twhile (true) {\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t//終了条件\n\t\t\t\tif(strLine.equals(\"-1 -1 -1\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ばらけさせる\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// int型にキャスト\n\t\t\t\t// 中間テスト\n\t\t\t\tint IntermediateTest = Integer.parseInt(strAryLine[0]);\n\n\t\t\t\t// 期末テスト\n\t\t\t\tint intYearEndTest = Integer.parseInt(strAryLine[1]);\n\n\t\t\t\t// 追試\n\t\t\t\tint intAdditionalTest = Integer.parseInt(strAryLine[2]);\n\n\t\t\t\t// 答えのストック A?F以外で初期化\n\t\t\t\tchar chaAnswerStock = 'G';\n\n\t\t\t\t//-1は受けてないので中間テストと期末テストは0点とする\n\t\t\t\tif(IntermediateTest == -1) {\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}\n\n\t\t\t\tif(intYearEndTest == -1) {\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}\n\n\t\t\t\t// 成績の判断\n\t\t\t\tif (80 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t} else if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}\n\t\t\t\tchaAnswer.add(chaAnswerStock);\n\t\t\t\tintAnwer++;\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tfor(int i = 0; i < intAnwer; i++) {\n\t\t\t\tSystem.out.println(chaAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}", "Main", "/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答え\n\t\tArrayList<Character> chaAnswer = new ArrayList<Character>();\n\n\t\t//答えがいくつあるかカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1列づつ読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\n\n\t\t\twhile (true) {\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t//終了条件\n\t\t\t\tif(strLine.equals(\"-1 -1 -1\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ばらけさせる\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// int型にキャスト\n\t\t\t\t// 中間テスト\n\t\t\t\tint IntermediateTest = Integer.parseInt(strAryLine[0]);\n\n\t\t\t\t// 期末テスト\n\t\t\t\tint intYearEndTest = Integer.parseInt(strAryLine[1]);\n\n\t\t\t\t// 追試\n\t\t\t\tint intAdditionalTest = Integer.parseInt(strAryLine[2]);\n\n\t\t\t\t// 答えのストック A?F以外で初期化\n\t\t\t\tchar chaAnswerStock = 'G';\n\n\t\t\t\t//-1は受けてないので中間テストと期末テストは0点とする\n\t\t\t\tif(IntermediateTest == -1) {\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}\n\n\t\t\t\tif(intYearEndTest == -1) {\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}\n\n\t\t\t\t// 成績の判断\n\t\t\t\tif (80 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t} else if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}\n\t\t\t\tchaAnswer.add(chaAnswerStock);\n\t\t\t\tintAnwer++;\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tfor(int i = 0; i < intAnwer; i++) {\n\t\t\t\tSystem.out.println(chaAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}", "main", "{\n\n\t\t// 答え\n\t\tArrayList<Character> chaAnswer = new ArrayList<Character>();\n\n\t\t//答えがいくつあるかカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1列づつ読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\n\n\t\t\twhile (true) {\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t//終了条件\n\t\t\t\tif(strLine.equals(\"-1 -1 -1\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ばらけさせる\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// int型にキャスト\n\t\t\t\t// 中間テスト\n\t\t\t\tint IntermediateTest = Integer.parseInt(strAryLine[0]);\n\n\t\t\t\t// 期末テスト\n\t\t\t\tint intYearEndTest = Integer.parseInt(strAryLine[1]);\n\n\t\t\t\t// 追試\n\t\t\t\tint intAdditionalTest = Integer.parseInt(strAryLine[2]);\n\n\t\t\t\t// 答えのストック A?F以外で初期化\n\t\t\t\tchar chaAnswerStock = 'G';\n\n\t\t\t\t//-1は受けてないので中間テストと期末テストは0点とする\n\t\t\t\tif(IntermediateTest == -1) {\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}\n\n\t\t\t\tif(intYearEndTest == -1) {\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}\n\n\t\t\t\t// 成績の判断\n\t\t\t\tif (80 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t} else if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}\n\t\t\t\tchaAnswer.add(chaAnswerStock);\n\t\t\t\tintAnwer++;\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tfor(int i = 0; i < intAnwer; i++) {\n\t\t\t\tSystem.out.println(chaAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}", "ArrayList<Character> chaAnswer = new ArrayList<Character>();", "chaAnswer", "new ArrayList<Character>()", "int intAnwer = 0;", "intAnwer", "0", "try {\n\t\t\tBufferedReader insBR = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\n\n\t\t\twhile (true) {\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t//終了条件\n\t\t\t\tif(strLine.equals(\"-1 -1 -1\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ばらけさせる\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// int型にキャスト\n\t\t\t\t// 中間テスト\n\t\t\t\tint IntermediateTest = Integer.parseInt(strAryLine[0]);\n\n\t\t\t\t// 期末テスト\n\t\t\t\tint intYearEndTest = Integer.parseInt(strAryLine[1]);\n\n\t\t\t\t// 追試\n\t\t\t\tint intAdditionalTest = Integer.parseInt(strAryLine[2]);\n\n\t\t\t\t// 答えのストック A?F以外で初期化\n\t\t\t\tchar chaAnswerStock = 'G';\n\n\t\t\t\t//-1は受けてないので中間テストと期末テストは0点とする\n\t\t\t\tif(IntermediateTest == -1) {\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}\n\n\t\t\t\tif(intYearEndTest == -1) {\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}\n\n\t\t\t\t// 成績の判断\n\t\t\t\tif (80 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t} else if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}\n\t\t\t\tchaAnswer.add(chaAnswerStock);\n\t\t\t\tintAnwer++;\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tfor(int i = 0; i < intAnwer; i++) {\n\t\t\t\tSystem.out.println(chaAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}", "catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.println(e);\n\t\t}", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}", "NumberFormatException e", "{\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}", "System.out.println(\"数字で入力して下さい\")", "System.out.println", "System.out", "System", "System.out", "\"数字で入力して下さい\"", "{\n\t\t\tBufferedReader insBR = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\n\n\t\t\twhile (true) {\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t//終了条件\n\t\t\t\tif(strLine.equals(\"-1 -1 -1\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ばらけさせる\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// int型にキャスト\n\t\t\t\t// 中間テスト\n\t\t\t\tint IntermediateTest = Integer.parseInt(strAryLine[0]);\n\n\t\t\t\t// 期末テスト\n\t\t\t\tint intYearEndTest = Integer.parseInt(strAryLine[1]);\n\n\t\t\t\t// 追試\n\t\t\t\tint intAdditionalTest = Integer.parseInt(strAryLine[2]);\n\n\t\t\t\t// 答えのストック A?F以外で初期化\n\t\t\t\tchar chaAnswerStock = 'G';\n\n\t\t\t\t//-1は受けてないので中間テストと期末テストは0点とする\n\t\t\t\tif(IntermediateTest == -1) {\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}\n\n\t\t\t\tif(intYearEndTest == -1) {\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}\n\n\t\t\t\t// 成績の判断\n\t\t\t\tif (80 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t} else if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}\n\t\t\t\tchaAnswer.add(chaAnswerStock);\n\t\t\t\tintAnwer++;\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tfor(int i = 0; i < intAnwer; i++) {\n\t\t\t\tSystem.out.println(chaAnswer.get(i));\n\t\t\t}\n\n\t\t}", "BufferedReader insBR = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));", "insBR", "new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in))", "while (true) {\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t//終了条件\n\t\t\t\tif(strLine.equals(\"-1 -1 -1\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ばらけさせる\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// int型にキャスト\n\t\t\t\t// 中間テスト\n\t\t\t\tint IntermediateTest = Integer.parseInt(strAryLine[0]);\n\n\t\t\t\t// 期末テスト\n\t\t\t\tint intYearEndTest = Integer.parseInt(strAryLine[1]);\n\n\t\t\t\t// 追試\n\t\t\t\tint intAdditionalTest = Integer.parseInt(strAryLine[2]);\n\n\t\t\t\t// 答えのストック A?F以外で初期化\n\t\t\t\tchar chaAnswerStock = 'G';\n\n\t\t\t\t//-1は受けてないので中間テストと期末テストは0点とする\n\t\t\t\tif(IntermediateTest == -1) {\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}\n\n\t\t\t\tif(intYearEndTest == -1) {\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}\n\n\t\t\t\t// 成績の判断\n\t\t\t\tif (80 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t} else if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}\n\t\t\t\tchaAnswer.add(chaAnswerStock);\n\t\t\t\tintAnwer++;\n\t\t\t}", "true", "{\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t//終了条件\n\t\t\t\tif(strLine.equals(\"-1 -1 -1\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ばらけさせる\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// int型にキャスト\n\t\t\t\t// 中間テスト\n\t\t\t\tint IntermediateTest = Integer.parseInt(strAryLine[0]);\n\n\t\t\t\t// 期末テスト\n\t\t\t\tint intYearEndTest = Integer.parseInt(strAryLine[1]);\n\n\t\t\t\t// 追試\n\t\t\t\tint intAdditionalTest = Integer.parseInt(strAryLine[2]);\n\n\t\t\t\t// 答えのストック A?F以外で初期化\n\t\t\t\tchar chaAnswerStock = 'G';\n\n\t\t\t\t//-1は受けてないので中間テストと期末テストは0点とする\n\t\t\t\tif(IntermediateTest == -1) {\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}\n\n\t\t\t\tif(intYearEndTest == -1) {\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}\n\n\t\t\t\t// 成績の判断\n\t\t\t\tif (80 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t} else if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}\n\t\t\t\tchaAnswer.add(chaAnswerStock);\n\t\t\t\tintAnwer++;\n\t\t\t}", "String strLine = insBR.readLine();", "strLine", "insBR.readLine()", "insBR.readLine", "insBR", "if(strLine.equals(\"-1 -1 -1\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "strLine.equals(\"-1 -1 -1\")", "strLine.equals", "strLine", "\"-1 -1 -1\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "String[] strAryLine = strLine.split(\" \");", "strAryLine", "strLine.split(\" \")", "strLine.split", "strLine", "\" \"", "int IntermediateTest = Integer.parseInt(strAryLine[0]);", "IntermediateTest", "Integer.parseInt(strAryLine[0])", "Integer.parseInt", "Integer", "strAryLine[0]", "strAryLine", "0", "int intYearEndTest = Integer.parseInt(strAryLine[1]);", "intYearEndTest", "Integer.parseInt(strAryLine[1])", "Integer.parseInt", "Integer", "strAryLine[1]", "strAryLine", "1", "int intAdditionalTest = Integer.parseInt(strAryLine[2]);", "intAdditionalTest", "Integer.parseInt(strAryLine[2])", "Integer.parseInt", "Integer", "strAryLine[2]", "strAryLine", "2", "char chaAnswerStock = 'G';", "chaAnswerStock", "'G'", "if(IntermediateTest == -1) {\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}", "IntermediateTest == -1", "IntermediateTest", "-1", "1", "{\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}", "intYearEndTest = 0", "intYearEndTest", "0", "if(intYearEndTest == -1) {\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}", "intYearEndTest == -1", "intYearEndTest", "-1", "1", "{\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}", "IntermediateTest = 0", "IntermediateTest", "0", "if (80 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t} else if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}", "80 <= (IntermediateTest + intYearEndTest)", "80", "(IntermediateTest + intYearEndTest)", "IntermediateTest", "intYearEndTest", "{\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t}", "chaAnswerStock = 'A'", "chaAnswerStock", "'A'", "if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}", "65 <= (IntermediateTest + intYearEndTest)", "65", "(IntermediateTest + intYearEndTest)", "IntermediateTest", "intYearEndTest", "{\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t}", "chaAnswerStock = 'B'", "chaAnswerStock", "'B'", "if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}", "50 <= (IntermediateTest + intYearEndTest)", "50", "(IntermediateTest + intYearEndTest)", "IntermediateTest", "intYearEndTest", "{\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t}", "chaAnswerStock = 'C'", "chaAnswerStock", "'C'", "if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}", "30 <= (IntermediateTest + intYearEndTest)", "30", "(IntermediateTest + intYearEndTest)", "IntermediateTest", "intYearEndTest", "{\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t}", "chaAnswerStock = 'D'", "chaAnswerStock", "'D'", "if (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}", "50 <= intAdditionalTest", "50", "intAdditionalTest", "{\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}", "chaAnswerStock = 'C'", "chaAnswerStock", "'C'", "{\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}", "chaAnswerStock = 'F'", "chaAnswerStock", "'F'", "chaAnswer.add(chaAnswerStock)", "chaAnswer.add", "chaAnswer", "chaAnswerStock", "intAnwer++", "intAnwer", "for(int i = 0; i < intAnwer; i++) {\n\t\t\t\tSystem.out.println(chaAnswer.get(i));\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intAnwer", "i", "intAnwer", "i++", "i++", "i", "{\n\t\t\t\tSystem.out.println(chaAnswer.get(i));\n\t\t\t}", "{\n\t\t\t\tSystem.out.println(chaAnswer.get(i));\n\t\t\t}", "System.out.println(chaAnswer.get(i))", "System.out.println", "System.out", "System", "System.out", "chaAnswer.get(i)", "chaAnswer.get", "chaAnswer", "i", "String[] args", "args", "public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答え\n\t\tArrayList<Character> chaAnswer = new ArrayList<Character>();\n\n\t\t//答えがいくつあるかカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1列づつ読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\n\n\t\t\twhile (true) {\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t//終了条件\n\t\t\t\tif(strLine.equals(\"-1 -1 -1\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ばらけさせる\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// int型にキャスト\n\t\t\t\t// 中間テスト\n\t\t\t\tint IntermediateTest = Integer.parseInt(strAryLine[0]);\n\n\t\t\t\t// 期末テスト\n\t\t\t\tint intYearEndTest = Integer.parseInt(strAryLine[1]);\n\n\t\t\t\t// 追試\n\t\t\t\tint intAdditionalTest = Integer.parseInt(strAryLine[2]);\n\n\t\t\t\t// 答えのストック A?F以外で初期化\n\t\t\t\tchar chaAnswerStock = 'G';\n\n\t\t\t\t//-1は受けてないので中間テストと期末テストは0点とする\n\t\t\t\tif(IntermediateTest == -1) {\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}\n\n\t\t\t\tif(intYearEndTest == -1) {\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}\n\n\t\t\t\t// 成績の判断\n\t\t\t\tif (80 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t} else if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}\n\t\t\t\tchaAnswer.add(chaAnswerStock);\n\t\t\t\tintAnwer++;\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tfor(int i = 0; i < intAnwer; i++) {\n\t\t\t\tSystem.out.println(chaAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}", "public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答え\n\t\tArrayList<Character> chaAnswer = new ArrayList<Character>();\n\n\t\t//答えがいくつあるかカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1列づつ読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\n\n\t\t\twhile (true) {\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\t//終了条件\n\t\t\t\tif(strLine.equals(\"-1 -1 -1\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// ばらけさせる\n\t\t\t\tString[] strAryLine = strLine.split(\" \");\n\n\t\t\t\t// int型にキャスト\n\t\t\t\t// 中間テスト\n\t\t\t\tint IntermediateTest = Integer.parseInt(strAryLine[0]);\n\n\t\t\t\t// 期末テスト\n\t\t\t\tint intYearEndTest = Integer.parseInt(strAryLine[1]);\n\n\t\t\t\t// 追試\n\t\t\t\tint intAdditionalTest = Integer.parseInt(strAryLine[2]);\n\n\t\t\t\t// 答えのストック A?F以外で初期化\n\t\t\t\tchar chaAnswerStock = 'G';\n\n\t\t\t\t//-1は受けてないので中間テストと期末テストは0点とする\n\t\t\t\tif(IntermediateTest == -1) {\n\t\t\t\t\tintYearEndTest = 0;\n\t\t\t\t}\n\n\t\t\t\tif(intYearEndTest == -1) {\n\t\t\t\t\tIntermediateTest = 0;\n\t\t\t\t}\n\n\t\t\t\t// 成績の判断\n\t\t\t\tif (80 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'A';\n\t\t\t\t} else if (65 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'B';\n\t\t\t\t} else if (50 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t} else if (30 <= (IntermediateTest + intYearEndTest)) {\n\t\t\t\t\tchaAnswerStock = 'D';\n\n\t\t\t\t\tif (50 <= intAdditionalTest) {\n\t\t\t\t\t\tchaAnswerStock = 'C';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchaAnswerStock = 'F';\n\t\t\t\t}\n\t\t\t\tchaAnswer.add(chaAnswerStock);\n\t\t\t\tintAnwer++;\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tfor(int i = 0; i < intAnwer; i++) {\n\t\t\t\tSystem.out.println(chaAnswer.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /** * Lesson7A あなたの課題は、あるクラスの数学の成績を付けるプログラムを作成することです。 * * プログラムは複数の学生のテストの点数を読み込みます。 * * テストの点数は、中間試験の点数 m、期末試験の点数 f、再試験の点数 r で構成されています。 * * 中間試験と期末試験は 50 点満点(m, f ? 50)、再試験は 100 点満点 (r ? 100)です。 * * 試験を受けていない場合は点数を -1 とします。 * * 以下の手順で成績が付けられます: ?中間試験、期末試験のいずれかを欠席した場合成績は F。 ?中間試験と期末試験の合計点数が 80 以上ならば成績は A * 。 ?中間試験と期末試験の合計点数が 65 以上 80 未満ならば成績は B。 ?中間試験と期末試験の合計点数が 50 以上 65 未満ならば成績は C。 * ?中間試験と期末試験の合計点数が 30 以上 50 未満ならば成績は D。 ただし、再試験の点数が 50 以上ならば成績は C。 * ?中間試験と期末試験の合計点数が 30 未満ならば成績は F。 * * @author Internship * */ public class Main{ /** * プログラムのエントリポイント * * @param args */ public static void main(String[] args) { // 答え ArrayList<Character> chaAnswer = new ArrayList<Character>(); //答えがいくつあるかカウント int intAnwer = 0; // 1列づつ読み込む try { BufferedReader insBR = new BufferedReader( new InputStreamReader(System.in)); while (true) { String strLine = insBR.readLine(); //終了条件 if(strLine.equals("-1 -1 -1")) { break; } // ばらけさせる String[] strAryLine = strLine.split(" "); // int型にキャスト // 中間テスト int IntermediateTest = Integer.parseInt(strAryLine[0]); // 期末テスト int intYearEndTest = Integer.parseInt(strAryLine[1]); // 追試 int intAdditionalTest = Integer.parseInt(strAryLine[2]); // 答えのストック A?F以外で初期化 char chaAnswerStock = 'G'; //-1は受けてないので中間テストと期末テストは0点とする if(IntermediateTest == -1) { intYearEndTest = 0; } if(intYearEndTest == -1) { IntermediateTest = 0; } // 成績の判断 if (80 <= (IntermediateTest + intYearEndTest)) { chaAnswerStock = 'A'; } else if (65 <= (IntermediateTest + intYearEndTest)) { chaAnswerStock = 'B'; } else if (50 <= (IntermediateTest + intYearEndTest)) { chaAnswerStock = 'C'; } else if (30 <= (IntermediateTest + intYearEndTest)) { chaAnswerStock = 'D'; if (50 <= intAdditionalTest) { chaAnswerStock = 'C'; } } else { chaAnswerStock = 'F'; } chaAnswer.add(chaAnswerStock); intAnwer++; } // 出力 for(int i = 0; i < intAnwer; i++) { System.out.println(chaAnswer.get(i)); } } catch (IOException e) { System.out.println(e); } catch (NumberFormatException e) { System.out.println("数字で入力して下さい"); } } }
[ 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, 20, 41, 13, 20, 41, 13, 20, 17, 41, 13, 20, 17, 42, 17, 30, 0, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 18, 13, 17, 40, 17, 3, 4, 18, 13, 18, 13, 17, 4, 18, 13, 18, 13, 17, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 9, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 9, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 9, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 9, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 9, 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 ], [ 259, 14 ], [ 259, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 17, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 43, 48 ], [ 40, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 40, 71 ], [ 71, 72 ], [ 72, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 74, 81 ], [ 81, 82 ], [ 81, 83 ], [ 72, 84 ], [ 84, 85 ], [ 71, 86 ], [ 40, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 40, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 40, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 17, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 17, 110 ], [ 110, 111 ], [ 17, 112 ], [ 112, 113 ], [ 17, 114 ], [ 114, 115 ], [ 17, 116 ], [ 116, 117 ], [ 17, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 123, 125 ], [ 118, 126 ], [ 126, 127 ], [ 127, 128 ], [ 118, 129 ], [ 130, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 130, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 130, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 130, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 151, 153 ], [ 130, 154 ], [ 154, 155 ], [ 156, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 156, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 156, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 169, 170 ], [ 169, 171 ], [ 154, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 173, 178 ], [ 172, 179 ], [ 154, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 185, 190 ], [ 184, 191 ], [ 180, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 193, 197 ], [ 197, 198 ], [ 197, 199 ], [ 192, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 201, 206 ], [ 200, 207 ], [ 192, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 210, 214 ], [ 214, 215 ], [ 214, 216 ], [ 209, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 222, 223 ], [ 222, 224 ], [ 217, 225 ], [ 225, 226 ], [ 225, 227 ], [ 208, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 229, 234 ], [ 228, 235 ], [ 208, 236 ], [ 236, 237 ], [ 238, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 238, 242 ], [ 242, 243 ], [ 242, 244 ], [ 238, 245 ], [ 245, 246 ], [ 245, 247 ], [ 236, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 251, 253 ], [ 249, 254 ], [ 248, 255 ], [ 15, 256 ], [ 256, 257 ], [ 0, 258 ], [ 258, 259 ], [ 258, 260 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\npublic class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t?????????3?¨?????????????????????????\n\t\tArrayList<Integer> mid = new ArrayList<Integer>();\n\t\tArrayList<Integer> fin = new ArrayList<Integer>();\n\t\tArrayList<Integer> re = new ArrayList<Integer>();\n\t\tString[] strs = new String[3];\n\t\tint[] buf = new int[3];\n\t\twhile(true)//?????????-1?????\\?????????????????§?????????\n\t\t{\n\t\t\tstrs = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<3; i++)\tbuf[i] = Integer.parseInt(strs[i]);\n\t\t\tif(buf[0]+buf[1]+buf[2]==-3) break;\n\t\t\tmid.add(buf[0]);\n\t\t\tfin.add(buf[1]);\n\t\t\tre.add(buf[2]);\n\t\t}\n\t\t\n\t\tint stu = mid.size();\n\t\tint m, f, r, mix;\n\t\tfor(int i=0; i<stu; i++)\n\t\t{\n\t\t\tm = mid.get(i);\n\t\t\tf = fin.get(i);\n\t\t\tr = re.get(i);\n\t\t\tmix = m + f;\n//\t\t??????????¨??????????????¨????????????????????¬????????????´???????????? F??? \n\t\t\tif(m==-1 || f==-1 ||(mix>=0 &&mix<30)) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\telse if(mix>=80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\telse if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\t\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t?????????3?¨?????????????????????????\n\t\tArrayList<Integer> mid = new ArrayList<Integer>();\n\t\tArrayList<Integer> fin = new ArrayList<Integer>();\n\t\tArrayList<Integer> re = new ArrayList<Integer>();\n\t\tString[] strs = new String[3];\n\t\tint[] buf = new int[3];\n\t\twhile(true)//?????????-1?????\\?????????????????§?????????\n\t\t{\n\t\t\tstrs = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<3; i++)\tbuf[i] = Integer.parseInt(strs[i]);\n\t\t\tif(buf[0]+buf[1]+buf[2]==-3) break;\n\t\t\tmid.add(buf[0]);\n\t\t\tfin.add(buf[1]);\n\t\t\tre.add(buf[2]);\n\t\t}\n\t\t\n\t\tint stu = mid.size();\n\t\tint m, f, r, mix;\n\t\tfor(int i=0; i<stu; i++)\n\t\t{\n\t\t\tm = mid.get(i);\n\t\t\tf = fin.get(i);\n\t\t\tr = re.get(i);\n\t\t\tmix = m + f;\n//\t\t??????????¨??????????????¨????????????????????¬????????????´???????????? F??? \n\t\t\tif(m==-1 || f==-1 ||(mix>=0 &&mix<30)) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\telse if(mix>=80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\telse if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\t\n\t}\n}", "Main", "public static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t?????????3?¨?????????????????????????\n\t\tArrayList<Integer> mid = new ArrayList<Integer>();\n\t\tArrayList<Integer> fin = new ArrayList<Integer>();\n\t\tArrayList<Integer> re = new ArrayList<Integer>();\n\t\tString[] strs = new String[3];\n\t\tint[] buf = new int[3];\n\t\twhile(true)//?????????-1?????\\?????????????????§?????????\n\t\t{\n\t\t\tstrs = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<3; i++)\tbuf[i] = Integer.parseInt(strs[i]);\n\t\t\tif(buf[0]+buf[1]+buf[2]==-3) break;\n\t\t\tmid.add(buf[0]);\n\t\t\tfin.add(buf[1]);\n\t\t\tre.add(buf[2]);\n\t\t}\n\t\t\n\t\tint stu = mid.size();\n\t\tint m, f, r, mix;\n\t\tfor(int i=0; i<stu; i++)\n\t\t{\n\t\t\tm = mid.get(i);\n\t\t\tf = fin.get(i);\n\t\t\tr = re.get(i);\n\t\t\tmix = m + f;\n//\t\t??????????¨??????????????¨????????????????????¬????????????´???????????? F??? \n\t\t\tif(m==-1 || f==-1 ||(mix>=0 &&mix<30)) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\telse if(mix>=80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\telse if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\t\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t?????????3?¨?????????????????????????\n\t\tArrayList<Integer> mid = new ArrayList<Integer>();\n\t\tArrayList<Integer> fin = new ArrayList<Integer>();\n\t\tArrayList<Integer> re = new ArrayList<Integer>();\n\t\tString[] strs = new String[3];\n\t\tint[] buf = new int[3];\n\t\twhile(true)//?????????-1?????\\?????????????????§?????????\n\t\t{\n\t\t\tstrs = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<3; i++)\tbuf[i] = Integer.parseInt(strs[i]);\n\t\t\tif(buf[0]+buf[1]+buf[2]==-3) break;\n\t\t\tmid.add(buf[0]);\n\t\t\tfin.add(buf[1]);\n\t\t\tre.add(buf[2]);\n\t\t}\n\t\t\n\t\tint stu = mid.size();\n\t\tint m, f, r, mix;\n\t\tfor(int i=0; i<stu; i++)\n\t\t{\n\t\t\tm = mid.get(i);\n\t\t\tf = fin.get(i);\n\t\t\tr = re.get(i);\n\t\t\tmix = m + f;\n//\t\t??????????¨??????????????¨????????????????????¬????????????´???????????? F??? \n\t\t\tif(m==-1 || f==-1 ||(mix>=0 &&mix<30)) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\telse if(mix>=80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\telse if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\t\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "ArrayList<Integer> mid = new ArrayList<Integer>();", "mid", "new ArrayList<Integer>()", "ArrayList<Integer> fin = new ArrayList<Integer>();", "fin", "new ArrayList<Integer>()", "ArrayList<Integer> re = new ArrayList<Integer>();", "re", "new ArrayList<Integer>()", "String[] strs = new String[3];", "strs", "new String[3]", "3", "int[] buf = new int[3];", "buf", "new int[3]", "3", "while(true)//?????????-1?????\\?????????????????§?????????\n\t\t{\n\t\t\tstrs = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<3; i++)\tbuf[i] = Integer.parseInt(strs[i]);\n\t\t\tif(buf[0]+buf[1]+buf[2]==-3) break;\n\t\t\tmid.add(buf[0]);\n\t\t\tfin.add(buf[1]);\n\t\t\tre.add(buf[2]);\n\t\t}", "true", "{\n\t\t\tstrs = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<3; i++)\tbuf[i] = Integer.parseInt(strs[i]);\n\t\t\tif(buf[0]+buf[1]+buf[2]==-3) break;\n\t\t\tmid.add(buf[0]);\n\t\t\tfin.add(buf[1]);\n\t\t\tre.add(buf[2]);\n\t\t}", "strs = br.readLine().split(\" \")", "strs", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "for(int i=0; i<3; i++)\tbuf[i] = Integer.parseInt(strs[i]);", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "buf[i] = Integer.parseInt(strs[i]);", "buf[i] = Integer.parseInt(strs[i])", "buf[i]", "buf", "i", "Integer.parseInt(strs[i])", "Integer.parseInt", "Integer", "strs[i]", "strs", "i", "if(buf[0]+buf[1]+buf[2]==-3) break;", "buf[0]+buf[1]+buf[2]==-3", "buf[0]+buf[1]+buf[2]", "buf[0]+buf[1]+buf[2]", "buf[0]", "buf", "0", "buf[1]", "buf", "1", "buf[2]", "buf", "2", "-3", "3", "break;", "mid.add(buf[0])", "mid.add", "mid", "buf[0]", "buf", "0", "fin.add(buf[1])", "fin.add", "fin", "buf[1]", "buf", "1", "re.add(buf[2])", "re.add", "re", "buf[2]", "buf", "2", "int stu = mid.size();", "stu", "mid.size()", "mid.size", "mid", "int m", "m", "f", "f", "r", "r", "mix;", "mix", "for(int i=0; i<stu; i++)\n\t\t{\n\t\t\tm = mid.get(i);\n\t\t\tf = fin.get(i);\n\t\t\tr = re.get(i);\n\t\t\tmix = m + f;\n//\t\t??????????¨??????????????¨????????????????????¬????????????´???????????? F??? \n\t\t\tif(m==-1 || f==-1 ||(mix>=0 &&mix<30)) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\telse if(mix>=80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\telse if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<stu", "i", "stu", "i++", "i++", "i", "{\n\t\t\tm = mid.get(i);\n\t\t\tf = fin.get(i);\n\t\t\tr = re.get(i);\n\t\t\tmix = m + f;\n//\t\t??????????¨??????????????¨????????????????????¬????????????´???????????? F??? \n\t\t\tif(m==-1 || f==-1 ||(mix>=0 &&mix<30)) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\telse if(mix>=80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\telse if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}", "{\n\t\t\tm = mid.get(i);\n\t\t\tf = fin.get(i);\n\t\t\tr = re.get(i);\n\t\t\tmix = m + f;\n//\t\t??????????¨??????????????¨????????????????????¬????????????´???????????? F??? \n\t\t\tif(m==-1 || f==-1 ||(mix>=0 &&mix<30)) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\telse if(mix>=80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\telse if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}", "m = mid.get(i)", "m", "mid.get(i)", "mid.get", "mid", "i", "f = fin.get(i)", "f", "fin.get(i)", "fin.get", "fin", "i", "r = re.get(i)", "r", "re.get(i)", "re.get", "re", "i", "mix = m + f", "mix", "m + f", "m", "f", "if(m==-1 || f==-1 ||(mix>=0 &&mix<30)) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\telse if(mix>=80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\telse if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}", "m==-1 || f==-1 ||(mix>=0 &&mix<30)", "m==-1 || f==-1 ||(mix>=0 &&mix<30)", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "(mix>=0 &&mix<30)", "mix>=0", "mix", "0", "mix<30", "mix", "30", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tcontinue;\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "continue;", "if(mix>=80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\telse if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}", "mix>=80", "mix", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "continue;", "if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}", "mix>=65&&mix<80", "mix>=65", "mix", "65", "mix<80", "mix", "80", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "continue;", "if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}", "(mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50)", "(mix>=50&&mix<65)", "mix>=50", "mix", "50", "mix<65", "mix", "65", "(mix>=30&&mix<50&&r>=50)", "mix>=30&&mix<50&&r>=50", "mix>=30", "mix", "30", "mix<50", "mix", "50", "r>=50", "r", "50", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "continue;", "if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}", "mix>=30&&mix<50&&r<50", "mix>=30&&mix<50&&r<50", "mix>=30", "mix", "30", "mix<50", "mix", "50", "r<50", "r", "50", "{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "continue;", "String[] args", "args", "public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t?????????3?¨?????????????????????????\n\t\tArrayList<Integer> mid = new ArrayList<Integer>();\n\t\tArrayList<Integer> fin = new ArrayList<Integer>();\n\t\tArrayList<Integer> re = new ArrayList<Integer>();\n\t\tString[] strs = new String[3];\n\t\tint[] buf = new int[3];\n\t\twhile(true)//?????????-1?????\\?????????????????§?????????\n\t\t{\n\t\t\tstrs = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<3; i++)\tbuf[i] = Integer.parseInt(strs[i]);\n\t\t\tif(buf[0]+buf[1]+buf[2]==-3) break;\n\t\t\tmid.add(buf[0]);\n\t\t\tfin.add(buf[1]);\n\t\t\tre.add(buf[2]);\n\t\t}\n\t\t\n\t\tint stu = mid.size();\n\t\tint m, f, r, mix;\n\t\tfor(int i=0; i<stu; i++)\n\t\t{\n\t\t\tm = mid.get(i);\n\t\t\tf = fin.get(i);\n\t\t\tr = re.get(i);\n\t\t\tmix = m + f;\n//\t\t??????????¨??????????????¨????????????????????¬????????????´???????????? F??? \n\t\t\tif(m==-1 || f==-1 ||(mix>=0 &&mix<30)) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\telse if(mix>=80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\telse if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\t\n\t}\n}", "public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\t?????????3?¨?????????????????????????\n\t\tArrayList<Integer> mid = new ArrayList<Integer>();\n\t\tArrayList<Integer> fin = new ArrayList<Integer>();\n\t\tArrayList<Integer> re = new ArrayList<Integer>();\n\t\tString[] strs = new String[3];\n\t\tint[] buf = new int[3];\n\t\twhile(true)//?????????-1?????\\?????????????????§?????????\n\t\t{\n\t\t\tstrs = br.readLine().split(\" \");\n\t\t\tfor(int i=0; i<3; i++)\tbuf[i] = Integer.parseInt(strs[i]);\n\t\t\tif(buf[0]+buf[1]+buf[2]==-3) break;\n\t\t\tmid.add(buf[0]);\n\t\t\tfin.add(buf[1]);\n\t\t\tre.add(buf[2]);\n\t\t}\n\t\t\n\t\tint stu = mid.size();\n\t\tint m, f, r, mix;\n\t\tfor(int i=0; i<stu; i++)\n\t\t{\n\t\t\tm = mid.get(i);\n\t\t\tf = fin.get(i);\n\t\t\tr = re.get(i);\n\t\t\tmix = m + f;\n//\t\t??????????¨??????????????¨????????????????????¬????????????´???????????? F??? \n\t\t\tif(m==-1 || f==-1 ||(mix>=0 &&mix<30)) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\telse if(mix>=80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\telse if(mix>=65&&mix<80)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\telse if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tcontinue;\n\t\t\t}\n//\t\t??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D???\n\t\t\telse if(mix>=30&&mix<50&&r<50)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\t\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { public static void main(String[] args)throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // ?????????3?¨????????????????????????? ArrayList<Integer> mid = new ArrayList<Integer>(); ArrayList<Integer> fin = new ArrayList<Integer>(); ArrayList<Integer> re = new ArrayList<Integer>(); String[] strs = new String[3]; int[] buf = new int[3]; while(true)//?????????-1?????\?????????????????§????????? { strs = br.readLine().split(" "); for(int i=0; i<3; i++) buf[i] = Integer.parseInt(strs[i]); if(buf[0]+buf[1]+buf[2]==-3) break; mid.add(buf[0]); fin.add(buf[1]); re.add(buf[2]); } int stu = mid.size(); int m, f, r, mix; for(int i=0; i<stu; i++) { m = mid.get(i); f = fin.get(i); r = re.get(i); mix = m + f; // ??????????¨??????????????¨????????????????????¬????????????´???????????? F??? if(m==-1 || f==-1 ||(mix>=0 &&mix<30)) { System.out.println("F"); continue; } // ??????????¨???¨??????????¨????????¨??????°??? 80 ??\???????????°????????? A ??? else if(mix>=80) { System.out.println("A"); continue; } // ??????????¨???¨??????????¨????????¨??????°??? 65 ??\??? 80 ??????????????°????????? B??? else if(mix>=65&&mix<80) { System.out.println("B"); continue; } // ??????????¨???¨??????????¨????????¨??????°??? 50 ??\??? 65 ??????????????°????????? C??? else if((mix>=50&&mix<65)||(mix>=30&&mix<50&&r>=50)) { System.out.println("C"); continue; } // ??????????¨???¨??????????¨????????¨??????°??? 30 ??\??? 50 ??????????????°????????? D??? else if(mix>=30&&mix<50&&r<50) { System.out.println("D"); continue; } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 20, 17, 41, 13, 20, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 29, 30, 0, 13, 4, 18, 4, 18, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 13, 17, 30, 0, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 13, 17, 30, 0, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 18, 13, 13, 17, 30, 0, 18, 13, 13, 17, 40, 13, 0, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 35, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 46, 51 ], [ 43, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 54, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 54, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 54, 79 ], [ 79, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 81, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 79, 94 ], [ 94, 95 ], [ 54, 96 ], [ 96, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 98, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 96, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 96, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 117, 123 ], [ 123, 124 ], [ 123, 125 ], [ 116, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 116, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 132, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 132, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 144, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 144, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 54, 162 ], [ 162, 163 ], [ 54, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 166, 171 ], [ 11, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 172, 177 ], [ 177, 178 ], [ 177, 179 ], [ 172, 180 ], [ 180, 181 ], [ 181, 182 ], [ 172, 183 ], [ 184, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 185, 190 ], [ 190, 191 ], [ 190, 192 ], [ 9, 193 ], [ 193, 194 ] ]
[ "import java.io.*;\nimport java.io.IOException;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint \tm,\n\t\t\t\tf,\n\t\t\t\tr,\n\t\t\t\tnum=0;\n\t\t\n\t\tString[] input = new String[3];\n\t\tString[] grade = new String[50];\n\t\t\n\t\ttry{\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tm = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\t\n\t\t\t\t//終了判定\n\t\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//成績判定\n\t\t\t\tif(m < 0 || f < 0 || m + f < 30){\n\t\t\t\t\tgrade[num] = \"F\";\n\t\t\t\t}else if(m + f < 50 && r < 50){\n\t\t\t\t\tgrade[num] = \"D\";\n\t\t\t\t}else if(m + f < 65){\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}else if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}\n\t\t\t\tnum++;\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//出力\n\t\tfor(int i=0;i<num;i++){\n\t\t\tSystem.out.println(grade[i]);\n\t\t}\n\t\t\n\t}\n}\n", "import java.io.*;", "io.*", "java", "import java.io.IOException;", "IOException", "java.io", "class Main{\n\tpublic static void main(String args[]){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint \tm,\n\t\t\t\tf,\n\t\t\t\tr,\n\t\t\t\tnum=0;\n\t\t\n\t\tString[] input = new String[3];\n\t\tString[] grade = new String[50];\n\t\t\n\t\ttry{\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tm = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\t\n\t\t\t\t//終了判定\n\t\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//成績判定\n\t\t\t\tif(m < 0 || f < 0 || m + f < 30){\n\t\t\t\t\tgrade[num] = \"F\";\n\t\t\t\t}else if(m + f < 50 && r < 50){\n\t\t\t\t\tgrade[num] = \"D\";\n\t\t\t\t}else if(m + f < 65){\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}else if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}\n\t\t\t\tnum++;\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//出力\n\t\tfor(int i=0;i<num;i++){\n\t\t\tSystem.out.println(grade[i]);\n\t\t}\n\t\t\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint \tm,\n\t\t\t\tf,\n\t\t\t\tr,\n\t\t\t\tnum=0;\n\t\t\n\t\tString[] input = new String[3];\n\t\tString[] grade = new String[50];\n\t\t\n\t\ttry{\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tm = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\t\n\t\t\t\t//終了判定\n\t\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//成績判定\n\t\t\t\tif(m < 0 || f < 0 || m + f < 30){\n\t\t\t\t\tgrade[num] = \"F\";\n\t\t\t\t}else if(m + f < 50 && r < 50){\n\t\t\t\t\tgrade[num] = \"D\";\n\t\t\t\t}else if(m + f < 65){\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}else if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}\n\t\t\t\tnum++;\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//出力\n\t\tfor(int i=0;i<num;i++){\n\t\t\tSystem.out.println(grade[i]);\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint \tm,\n\t\t\t\tf,\n\t\t\t\tr,\n\t\t\t\tnum=0;\n\t\t\n\t\tString[] input = new String[3];\n\t\tString[] grade = new String[50];\n\t\t\n\t\ttry{\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tm = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\t\n\t\t\t\t//終了判定\n\t\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//成績判定\n\t\t\t\tif(m < 0 || f < 0 || m + f < 30){\n\t\t\t\t\tgrade[num] = \"F\";\n\t\t\t\t}else if(m + f < 50 && r < 50){\n\t\t\t\t\tgrade[num] = \"D\";\n\t\t\t\t}else if(m + f < 65){\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}else if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}\n\t\t\t\tnum++;\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//出力\n\t\tfor(int i=0;i<num;i++){\n\t\t\tSystem.out.println(grade[i]);\n\t\t}\n\t\t\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int \tm", "m", "f", "f", "r", "r", "num=0;", "num", "0", "String[] input = new String[3];", "input", "new String[3]", "3", "String[] grade = new String[50];", "grade", "new String[50]", "50", "try{\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tm = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\t\n\t\t\t\t//終了判定\n\t\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//成績判定\n\t\t\t\tif(m < 0 || f < 0 || m + f < 30){\n\t\t\t\t\tgrade[num] = \"F\";\n\t\t\t\t}else if(m + f < 50 && r < 50){\n\t\t\t\t\tgrade[num] = \"D\";\n\t\t\t\t}else if(m + f < 65){\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}else if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}\n\t\t\t\tnum++;\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}", "catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.println(e);\n\t\t\treturn;\n\t\t}", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "return;", "{\n\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tm = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\t\n\t\t\t\t//終了判定\n\t\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//成績判定\n\t\t\t\tif(m < 0 || f < 0 || m + f < 30){\n\t\t\t\t\tgrade[num] = \"F\";\n\t\t\t\t}else if(m + f < 50 && r < 50){\n\t\t\t\t\tgrade[num] = \"D\";\n\t\t\t\t}else if(m + f < 65){\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}else if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}\n\t\t\t\tnum++;\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t}\n\t\t}", "input = br.readLine().split(\"[\\\\s]+\")", "input", "br.readLine().split(\"[\\\\s]+\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"[\\\\s]+\"", "while(true){\n\t\t\t\tm = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\t\n\t\t\t\t//終了判定\n\t\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//成績判定\n\t\t\t\tif(m < 0 || f < 0 || m + f < 30){\n\t\t\t\t\tgrade[num] = \"F\";\n\t\t\t\t}else if(m + f < 50 && r < 50){\n\t\t\t\t\tgrade[num] = \"D\";\n\t\t\t\t}else if(m + f < 65){\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}else if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}\n\t\t\t\tnum++;\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t}", "true", "{\n\t\t\t\tm = Integer.parseInt(input[0]);\n\t\t\t\tf = Integer.parseInt(input[1]);\n\t\t\t\tr = Integer.parseInt(input[2]);\n\t\t\t\t\n\t\t\t\t//終了判定\n\t\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//成績判定\n\t\t\t\tif(m < 0 || f < 0 || m + f < 30){\n\t\t\t\t\tgrade[num] = \"F\";\n\t\t\t\t}else if(m + f < 50 && r < 50){\n\t\t\t\t\tgrade[num] = \"D\";\n\t\t\t\t}else if(m + f < 65){\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}else if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}\n\t\t\t\tnum++;\n\t\t\t\tinput = br.readLine().split(\"[\\\\s]+\");\n\t\t\t}", "m = Integer.parseInt(input[0])", "m", "Integer.parseInt(input[0])", "Integer.parseInt", "Integer", "input[0]", "input", "0", "f = Integer.parseInt(input[1])", "f", "Integer.parseInt(input[1])", "Integer.parseInt", "Integer", "input[1]", "input", "1", "r = Integer.parseInt(input[2])", "r", "Integer.parseInt(input[2])", "Integer.parseInt", "Integer", "input[2]", "input", "2", "if(m == -1 && f == -1 && r == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "if(m < 0 || f < 0 || m + f < 30){\n\t\t\t\t\tgrade[num] = \"F\";\n\t\t\t\t}else if(m + f < 50 && r < 50){\n\t\t\t\t\tgrade[num] = \"D\";\n\t\t\t\t}else if(m + f < 65){\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}else if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}", "m < 0 || f < 0 || m + f < 30", "m < 0 || f < 0 || m + f < 30", "m < 0", "m", "0", "f < 0", "f", "0", "m + f < 30", "m + f", "m", "f", "30", "{\n\t\t\t\t\tgrade[num] = \"F\";\n\t\t\t\t}", "grade[num] = \"F\"", "grade[num]", "grade", "num", "\"F\"", "if(m + f < 50 && r < 50){\n\t\t\t\t\tgrade[num] = \"D\";\n\t\t\t\t}else if(m + f < 65){\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}else if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}", "m + f < 50 && r < 50", "m + f < 50", "m + f", "m", "f", "50", "r < 50", "r", "50", "{\n\t\t\t\t\tgrade[num] = \"D\";\n\t\t\t\t}", "grade[num] = \"D\"", "grade[num]", "grade", "num", "\"D\"", "if(m + f < 65){\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}else if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}", "m + f < 65", "m + f", "m", "f", "65", "{\n\t\t\t\t\tgrade[num] = \"C\";\n\t\t\t\t}", "grade[num] = \"C\"", "grade[num]", "grade", "num", "\"C\"", "if(m + f < 80){\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}else{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}", "m + f < 80", "m + f", "m", "f", "80", "{\n\t\t\t\t\tgrade[num] = \"B\";\n\t\t\t\t}", "grade[num] = \"B\"", "grade[num]", "grade", "num", "\"B\"", "{\n\t\t\t\t\tgrade[num] = \"A\";\n\t\t\t\t}", "grade[num] = \"A\"", "grade[num]", "grade", "num", "\"A\"", "num++", "num", "input = br.readLine().split(\"[\\\\s]+\")", "input", "br.readLine().split(\"[\\\\s]+\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"[\\\\s]+\"", "for(int i=0;i<num;i++){\n\t\t\tSystem.out.println(grade[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\tSystem.out.println(grade[i]);\n\t\t}", "{\n\t\t\tSystem.out.println(grade[i]);\n\t\t}", "System.out.println(grade[i])", "System.out.println", "System.out", "System", "System.out", "grade[i]", "grade", "i", "String args[]", "args" ]
import java.io.*; import java.io.IOException; class Main{ public static void main(String args[]){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int m, f, r, num=0; String[] input = new String[3]; String[] grade = new String[50]; try{ input = br.readLine().split("[\\s]+"); while(true){ m = Integer.parseInt(input[0]); f = Integer.parseInt(input[1]); r = Integer.parseInt(input[2]); //終了判定 if(m == -1 && f == -1 && r == -1){ break; } //成績判定 if(m < 0 || f < 0 || m + f < 30){ grade[num] = "F"; }else if(m + f < 50 && r < 50){ grade[num] = "D"; }else if(m + f < 65){ grade[num] = "C"; }else if(m + f < 80){ grade[num] = "B"; }else{ grade[num] = "A"; } num++; input = br.readLine().split("[\\s]+"); } }catch(IOException e){ System.out.println(e); return; } //出力 for(int i=0;i<num;i++){ System.out.println(grade[i]); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 34, 36 ], [ 17, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 17, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 17, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 17, 58 ], [ 58, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 60, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 58, 73 ], [ 73, 74 ], [ 58, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 75, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 75, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 90, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 99, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 112, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 130, 132 ], [ 125, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 134, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 125, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 153, 156 ], [ 8, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 6, 163 ], [ 163, 164 ] ]
[ "import java.io.*;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n while(true) {\n String str1 = br.readLine();\n String[] str2 = str1.split(\" \");\n int m = Integer.parseInt(str2[0]);\n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n int sum = m + f;\n\n if(m == -1 && f == -1 && r == -1) {break;}\n else if(m == -1 || f == -1){\n sb.append(\"F\\n\");\n }\n else if(sum >= 80){\n sb.append(\"A\\n\");\n }\n else if(sum >= 65 && sum < 80){\n sb.append(\"B\\n\");\n }\n else if(sum >= 50 && sum < 65){\n sb.append(\"C\\n\");\n }\n else if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }\n }\n System.out.print(sb);\n }\n}", "import java.io.*;", "io.*", "java", "class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n while(true) {\n String str1 = br.readLine();\n String[] str2 = str1.split(\" \");\n int m = Integer.parseInt(str2[0]);\n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n int sum = m + f;\n\n if(m == -1 && f == -1 && r == -1) {break;}\n else if(m == -1 || f == -1){\n sb.append(\"F\\n\");\n }\n else if(sum >= 80){\n sb.append(\"A\\n\");\n }\n else if(sum >= 65 && sum < 80){\n sb.append(\"B\\n\");\n }\n else if(sum >= 50 && sum < 65){\n sb.append(\"C\\n\");\n }\n else if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }\n }\n System.out.print(sb);\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n while(true) {\n String str1 = br.readLine();\n String[] str2 = str1.split(\" \");\n int m = Integer.parseInt(str2[0]);\n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n int sum = m + f;\n\n if(m == -1 && f == -1 && r == -1) {break;}\n else if(m == -1 || f == -1){\n sb.append(\"F\\n\");\n }\n else if(sum >= 80){\n sb.append(\"A\\n\");\n }\n else if(sum >= 65 && sum < 80){\n sb.append(\"B\\n\");\n }\n else if(sum >= 50 && sum < 65){\n sb.append(\"C\\n\");\n }\n else if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }\n }\n System.out.print(sb);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n while(true) {\n String str1 = br.readLine();\n String[] str2 = str1.split(\" \");\n int m = Integer.parseInt(str2[0]);\n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n int sum = m + f;\n\n if(m == -1 && f == -1 && r == -1) {break;}\n else if(m == -1 || f == -1){\n sb.append(\"F\\n\");\n }\n else if(sum >= 80){\n sb.append(\"A\\n\");\n }\n else if(sum >= 65 && sum < 80){\n sb.append(\"B\\n\");\n }\n else if(sum >= 50 && sum < 65){\n sb.append(\"C\\n\");\n }\n else if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }\n }\n System.out.print(sb);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while(true) {\n String str1 = br.readLine();\n String[] str2 = str1.split(\" \");\n int m = Integer.parseInt(str2[0]);\n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n int sum = m + f;\n\n if(m == -1 && f == -1 && r == -1) {break;}\n else if(m == -1 || f == -1){\n sb.append(\"F\\n\");\n }\n else if(sum >= 80){\n sb.append(\"A\\n\");\n }\n else if(sum >= 65 && sum < 80){\n sb.append(\"B\\n\");\n }\n else if(sum >= 50 && sum < 65){\n sb.append(\"C\\n\");\n }\n else if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }\n }", "true", "{\n String str1 = br.readLine();\n String[] str2 = str1.split(\" \");\n int m = Integer.parseInt(str2[0]);\n int f = Integer.parseInt(str2[1]);\n int r = Integer.parseInt(str2[2]);\n int sum = m + f;\n\n if(m == -1 && f == -1 && r == -1) {break;}\n else if(m == -1 || f == -1){\n sb.append(\"F\\n\");\n }\n else if(sum >= 80){\n sb.append(\"A\\n\");\n }\n else if(sum >= 65 && sum < 80){\n sb.append(\"B\\n\");\n }\n else if(sum >= 50 && sum < 65){\n sb.append(\"C\\n\");\n }\n else if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }\n }", "String str1 = br.readLine();", "str1", "br.readLine()", "br.readLine", "br", "String[] str2 = str1.split(\" \");", "str2", "str1.split(\" \")", "str1.split", "str1", "\" \"", "int m = Integer.parseInt(str2[0]);", "m", "Integer.parseInt(str2[0])", "Integer.parseInt", "Integer", "str2[0]", "str2", "0", "int f = Integer.parseInt(str2[1]);", "f", "Integer.parseInt(str2[1])", "Integer.parseInt", "Integer", "str2[1]", "str2", "1", "int r = Integer.parseInt(str2[2]);", "r", "Integer.parseInt(str2[2])", "Integer.parseInt", "Integer", "str2[2]", "str2", "2", "int sum = m + f;", "sum", "m + f", "m", "f", "if(m == -1 && f == -1 && r == -1) {break;}\n else if(m == -1 || f == -1){\n sb.append(\"F\\n\");\n }\n else if(sum >= 80){\n sb.append(\"A\\n\");\n }\n else if(sum >= 65 && sum < 80){\n sb.append(\"B\\n\");\n }\n else if(sum >= 50 && sum < 65){\n sb.append(\"C\\n\");\n }\n else if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{break;}", "break;", "if(m == -1 || f == -1){\n sb.append(\"F\\n\");\n }\n else if(sum >= 80){\n sb.append(\"A\\n\");\n }\n else if(sum >= 65 && sum < 80){\n sb.append(\"B\\n\");\n }\n else if(sum >= 50 && sum < 65){\n sb.append(\"C\\n\");\n }\n else if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n sb.append(\"F\\n\");\n }", "sb.append(\"F\\n\")", "sb.append", "sb", "\"F\\n\"", "if(sum >= 80){\n sb.append(\"A\\n\");\n }\n else if(sum >= 65 && sum < 80){\n sb.append(\"B\\n\");\n }\n else if(sum >= 50 && sum < 65){\n sb.append(\"C\\n\");\n }\n else if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }", "sum >= 80", "sum", "80", "{\n sb.append(\"A\\n\");\n }", "sb.append(\"A\\n\")", "sb.append", "sb", "\"A\\n\"", "if(sum >= 65 && sum < 80){\n sb.append(\"B\\n\");\n }\n else if(sum >= 50 && sum < 65){\n sb.append(\"C\\n\");\n }\n else if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }", "sum >= 65 && sum < 80", "sum >= 65", "sum", "65", "sum < 80", "sum", "80", "{\n sb.append(\"B\\n\");\n }", "sb.append(\"B\\n\")", "sb.append", "sb", "\"B\\n\"", "if(sum >= 50 && sum < 65){\n sb.append(\"C\\n\");\n }\n else if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }", "sum >= 50 && sum < 65", "sum >= 50", "sum", "50", "sum < 65", "sum", "65", "{\n sb.append(\"C\\n\");\n }", "sb.append(\"C\\n\")", "sb.append", "sb", "\"C\\n\"", "if(sum >= 30 && sum < 50){\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }\n else if (sum < 30){\n sb.append(\"F\\n\");\n }", "sum >= 30 && sum < 50", "sum >= 30", "sum", "30", "sum < 50", "sum", "50", "{\n if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }\n }", "if(r >= 50){\n sb.append(\"C\\n\");\n }\n else{\n sb.append(\"D\\n\");\n }", "r >= 50", "r", "50", "{\n sb.append(\"C\\n\");\n }", "sb.append(\"C\\n\")", "sb.append", "sb", "\"C\\n\"", "{\n sb.append(\"D\\n\");\n }", "sb.append(\"D\\n\")", "sb.append", "sb", "\"D\\n\"", "if (sum < 30){\n sb.append(\"F\\n\");\n }", "sum < 30", "sum", "30", "{\n sb.append(\"F\\n\");\n }", "sb.append(\"F\\n\")", "sb.append", "sb", "\"F\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args" ]
import java.io.*; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while(true) { String str1 = br.readLine(); String[] str2 = str1.split(" "); int m = Integer.parseInt(str2[0]); int f = Integer.parseInt(str2[1]); int r = Integer.parseInt(str2[2]); int sum = m + f; if(m == -1 && f == -1 && r == -1) {break;} else if(m == -1 || f == -1){ sb.append("F\n"); } else if(sum >= 80){ sb.append("A\n"); } else if(sum >= 65 && sum < 80){ sb.append("B\n"); } else if(sum >= 50 && sum < 65){ sb.append("C\n"); } else if(sum >= 30 && sum < 50){ if(r >= 50){ sb.append("C\n"); } else{ sb.append("D\n"); } } else if (sum < 30){ sb.append("F\n"); } } System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 41, 13, 4, 13, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 29, 17, 14, 2, 2, 13, 13, 17, 29, 17, 14, 2, 2, 13, 13, 17, 29, 17, 14, 2, 2, 13, 13, 17, 29, 17, 14, 2, 2, 2, 13, 13, 17, 2, 13, 17, 29, 17, 14, 2, 2, 13, 13, 17, 29, 17, 29, 17, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 129, 5 ], [ 129, 6 ], [ 6, 7 ], [ 6, 8 ], [ 129, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 14, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 48, 51 ], [ 48, 52 ], [ 14, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 9, 59 ], [ 59, 60 ], [ 129, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 64, 74 ], [ 74, 75 ], [ 63, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 82, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 92, 98 ], [ 98, 99 ], [ 92, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 101, 107 ], [ 107, 108 ], [ 107, 109 ], [ 100, 110 ], [ 110, 111 ], [ 100, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 112, 118 ], [ 118, 119 ], [ 112, 120 ], [ 120, 121 ], [ 61, 122 ], [ 122, 123 ], [ 61, 124 ], [ 124, 125 ], [ 61, 126 ], [ 126, 127 ], [ 0, 128 ], [ 128, 129 ], [ 128, 130 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tpublic static void main (String[] args){\n\t\twhile(true){\n\t\t\tint m=sc.nextInt();\n\t\t\tint f=sc.nextInt();\n\t\t\tint r=sc.nextInt();\n\t\t\tif(m==-1&&f==-1&&r==-1) break;\n\t\t\tchar result=judge(m,f,r);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n\tprivate static char judge(int m,int f,int r){\n\t\tif(m==-1||f==-1) return 'F';\n\t\tif(m+f>=80) return 'A';\n\t\telse if(m+f>=65) return 'B';\n\t\telse if(m+f>=50) return 'C';\n\t\telse if(m+f>=30&&r>=50) return 'C';\n\t\telse if(m+f>=30) return 'D';\n\t\telse return 'F';\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tpublic static void main (String[] args){\n\t\twhile(true){\n\t\t\tint m=sc.nextInt();\n\t\t\tint f=sc.nextInt();\n\t\t\tint r=sc.nextInt();\n\t\t\tif(m==-1&&f==-1&&r==-1) break;\n\t\t\tchar result=judge(m,f,r);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n\tprivate static char judge(int m,int f,int r){\n\t\tif(m==-1||f==-1) return 'F';\n\t\tif(m+f>=80) return 'A';\n\t\telse if(m+f>=65) return 'B';\n\t\telse if(m+f>=50) return 'C';\n\t\telse if(m+f>=30&&r>=50) return 'C';\n\t\telse if(m+f>=30) return 'D';\n\t\telse return 'F';\n\t}\n}", "Main", "private static Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main (String[] args){\n\t\twhile(true){\n\t\t\tint m=sc.nextInt();\n\t\t\tint f=sc.nextInt();\n\t\t\tint r=sc.nextInt();\n\t\t\tif(m==-1&&f==-1&&r==-1) break;\n\t\t\tchar result=judge(m,f,r);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}", "main", "{\n\t\twhile(true){\n\t\t\tint m=sc.nextInt();\n\t\t\tint f=sc.nextInt();\n\t\t\tint r=sc.nextInt();\n\t\t\tif(m==-1&&f==-1&&r==-1) break;\n\t\t\tchar result=judge(m,f,r);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}", "while(true){\n\t\t\tint m=sc.nextInt();\n\t\t\tint f=sc.nextInt();\n\t\t\tint r=sc.nextInt();\n\t\t\tif(m==-1&&f==-1&&r==-1) break;\n\t\t\tchar result=judge(m,f,r);\n\t\t\tSystem.out.println(result);\n\t\t}", "true", "{\n\t\t\tint m=sc.nextInt();\n\t\t\tint f=sc.nextInt();\n\t\t\tint r=sc.nextInt();\n\t\t\tif(m==-1&&f==-1&&r==-1) break;\n\t\t\tchar result=judge(m,f,r);\n\t\t\tSystem.out.println(result);\n\t\t}", "int m=sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f=sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r=sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if(m==-1&&f==-1&&r==-1) break;", "m==-1&&f==-1&&r==-1", "m==-1&&f==-1&&r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "break;", "char result=judge(m,f,r);", "result", "judge(m,f,r)", "judge", "m", "f", "r", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "private static char judge(int m,int f,int r){\n\t\tif(m==-1||f==-1) return 'F';\n\t\tif(m+f>=80) return 'A';\n\t\telse if(m+f>=65) return 'B';\n\t\telse if(m+f>=50) return 'C';\n\t\telse if(m+f>=30&&r>=50) return 'C';\n\t\telse if(m+f>=30) return 'D';\n\t\telse return 'F';\n\t}", "judge", "{\n\t\tif(m==-1||f==-1) return 'F';\n\t\tif(m+f>=80) return 'A';\n\t\telse if(m+f>=65) return 'B';\n\t\telse if(m+f>=50) return 'C';\n\t\telse if(m+f>=30&&r>=50) return 'C';\n\t\telse if(m+f>=30) return 'D';\n\t\telse return 'F';\n\t}", "if(m==-1||f==-1) return 'F';", "m==-1||f==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "return 'F';", "'F'", "if(m+f>=80) return 'A';\n\t\telse if(m+f>=65) return 'B';\n\t\telse if(m+f>=50) return 'C';\n\t\telse if(m+f>=30&&r>=50) return 'C';\n\t\telse if(m+f>=30) return 'D';\n\t\telse return 'F';", "m+f>=80", "m+f", "m", "f", "80", "return 'A';", "'A'", "if(m+f>=65) return 'B';\n\t\telse if(m+f>=50) return 'C';\n\t\telse if(m+f>=30&&r>=50) return 'C';\n\t\telse if(m+f>=30) return 'D';\n\t\telse return 'F';", "m+f>=65", "m+f", "m", "f", "65", "return 'B';", "'B'", "if(m+f>=50) return 'C';\n\t\telse if(m+f>=30&&r>=50) return 'C';\n\t\telse if(m+f>=30) return 'D';\n\t\telse return 'F';", "m+f>=50", "m+f", "m", "f", "50", "return 'C';", "'C'", "if(m+f>=30&&r>=50) return 'C';\n\t\telse if(m+f>=30) return 'D';\n\t\telse return 'F';", "m+f>=30&&r>=50", "m+f>=30", "m+f", "m", "f", "30", "r>=50", "r", "50", "return 'C';", "'C'", "if(m+f>=30) return 'D';\n\t\telse return 'F';", "m+f>=30", "m+f", "m", "f", "30", "return 'D';", "'D'", "return 'F';", "'F'", "int m", "m", "int f", "f", "int r", "r", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tpublic static void main (String[] args){\n\t\twhile(true){\n\t\t\tint m=sc.nextInt();\n\t\t\tint f=sc.nextInt();\n\t\t\tint r=sc.nextInt();\n\t\t\tif(m==-1&&f==-1&&r==-1) break;\n\t\t\tchar result=judge(m,f,r);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n\tprivate static char judge(int m,int f,int r){\n\t\tif(m==-1||f==-1) return 'F';\n\t\tif(m+f>=80) return 'A';\n\t\telse if(m+f>=65) return 'B';\n\t\telse if(m+f>=50) return 'C';\n\t\telse if(m+f>=30&&r>=50) return 'C';\n\t\telse if(m+f>=30) return 'D';\n\t\telse return 'F';\n\t}\n}", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tpublic static void main (String[] args){\n\t\twhile(true){\n\t\t\tint m=sc.nextInt();\n\t\t\tint f=sc.nextInt();\n\t\t\tint r=sc.nextInt();\n\t\t\tif(m==-1&&f==-1&&r==-1) break;\n\t\t\tchar result=judge(m,f,r);\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}\n\tprivate static char judge(int m,int f,int r){\n\t\tif(m==-1||f==-1) return 'F';\n\t\tif(m+f>=80) return 'A';\n\t\telse if(m+f>=65) return 'B';\n\t\telse if(m+f>=50) return 'C';\n\t\telse if(m+f>=30&&r>=50) return 'C';\n\t\telse if(m+f>=30) return 'D';\n\t\telse return 'F';\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { private static Scanner sc=new Scanner(System.in); public static void main (String[] args){ while(true){ int m=sc.nextInt(); int f=sc.nextInt(); int r=sc.nextInt(); if(m==-1&&f==-1&&r==-1) break; char result=judge(m,f,r); System.out.println(result); } } private static char judge(int m,int f,int r){ if(m==-1||f==-1) return 'F'; if(m+f>=80) return 'A'; else if(m+f>=65) return 'B'; else if(m+f>=50) return 'C'; else if(m+f>=30&&r>=50) return 'C'; else if(m+f>=30) return 'D'; else return 'F'; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 13, 17, 14, 2, 17, 2, 13, 13, 30, 4, 18, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 14, 2, 17, 13, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 28, 13, 13, 30, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 170, 11 ], [ 170, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 21, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 25, 41 ], [ 41, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 43, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 41, 56 ], [ 56, 57 ], [ 25, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 58, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 73, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 84, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 84, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 102, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 101, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 101, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 119, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 118, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 131, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 118, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 145, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 14, 156 ], [ 156, 157 ], [ 156, 158 ], [ 156, 159 ], [ 160, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 12, 167 ], [ 167, 168 ], [ 0, 169 ], [ 169, 170 ], [ 169, 171 ] ]
[ "\nimport java.util.ArrayList;\nimport java.util.List;\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\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t//\tSystem.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t\telse if(80 <= m + f) {\n\t\t\t\tlist.add(\"A\");\n\t\t\t}\n\t\t\telse if(65 <= m + f && m + f < 80) {\n\t\t\t\tlist.add(\"B\");\n\t\t\t}\n\t\t\telse if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "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\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t//\tSystem.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t\telse if(80 <= m + f) {\n\t\t\t\tlist.add(\"A\");\n\t\t\t}\n\t\t\telse if(65 <= m + f && m + f < 80) {\n\t\t\t\tlist.add(\"B\");\n\t\t\t}\n\t\t\telse if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t//\tSystem.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t\telse if(80 <= m + f) {\n\t\t\t\tlist.add(\"A\");\n\t\t\t}\n\t\t\telse if(65 <= m + f && m + f < 80) {\n\t\t\t\tlist.add(\"B\");\n\t\t\t}\n\t\t\telse if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t//\tSystem.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t\telse if(80 <= m + f) {\n\t\t\t\tlist.add(\"A\");\n\t\t\t}\n\t\t\telse if(65 <= m + f && m + f < 80) {\n\t\t\t\tlist.add(\"B\");\n\t\t\t}\n\t\t\telse if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "List<String> list = new ArrayList<String>();", "list", "new ArrayList<String>()", "while(sc.hasNext()) {\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t//\tSystem.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t\telse if(80 <= m + f) {\n\t\t\t\tlist.add(\"A\");\n\t\t\t}\n\t\t\telse if(65 <= m + f && m + f < 80) {\n\t\t\t\tlist.add(\"B\");\n\t\t\t}\n\t\t\telse if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t//\tSystem.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t\telse if(80 <= m + f) {\n\t\t\t\tlist.add(\"A\");\n\t\t\t}\n\t\t\telse if(65 <= m + f && m + f < 80) {\n\t\t\t\tlist.add(\"B\");\n\t\t\t}\n\t\t\telse if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t}", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if(m == -1 && f == -1 && r == -1) {\n\t\t\t//\tSystem.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t\t//\tSystem.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(m == -1 || f == -1) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t\telse if(80 <= m + f) {\n\t\t\t\tlist.add(\"A\");\n\t\t\t}\n\t\t\telse if(65 <= m + f && m + f < 80) {\n\t\t\t\tlist.add(\"B\");\n\t\t\t}\n\t\t\telse if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\tlist.add(\"F\");\n\t\t\t}", "list.add(\"F\")", "list.add", "list", "\"F\"", "if(80 <= m + f) {\n\t\t\t\tlist.add(\"A\");\n\t\t\t}\n\t\t\telse if(65 <= m + f && m + f < 80) {\n\t\t\t\tlist.add(\"B\");\n\t\t\t}\n\t\t\telse if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}", "80 <= m + f", "80", "m + f", "m", "f", "{\n\t\t\t\tlist.add(\"A\");\n\t\t\t}", "list.add(\"A\")", "list.add", "list", "\"A\"", "if(65 <= m + f && m + f < 80) {\n\t\t\t\tlist.add(\"B\");\n\t\t\t}\n\t\t\telse if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}", "65 <= m + f && m + f < 80", "65 <= m + f", "65", "m + f", "m", "f", "m + f < 80", "m + f", "m", "f", "80", "{\n\t\t\t\tlist.add(\"B\");\n\t\t\t}", "list.add(\"B\")", "list.add", "list", "\"B\"", "if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}", "50 <= m + f && m + f < 65", "50 <= m + f", "50", "m + f", "m", "f", "m + f < 65", "m + f", "m", "f", "65", "{\n\t\t\t\tlist.add(\"C\");\n\t\t\t}", "list.add(\"C\")", "list.add", "list", "\"C\"", "if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}", "30 <= m + f && m + f < 50", "30 <= m + f", "30", "m + f", "m", "f", "m + f < 50", "m + f", "m", "f", "50", "{\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}", "if(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}", "50 <= r", "50", "r", "{\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}", "list.add(\"C\")", "list.add", "list", "\"C\"", "{\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}", "list.add(\"D\")", "list.add", "list", "\"D\"", "if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}", "m + f < 30", "m + f", "m", "f", "30", "{\n\t\t\t\tlist.add(\"F\");\n\t\t\t}", "list.add(\"F\")", "list.add", "list", "\"F\"", "for(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}", "String s", "list", "{\n\t\t\tSystem.out.println(s);\n\t\t}", "{\n\t\t\tSystem.out.println(s);\n\t\t}", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t//\tSystem.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t\telse if(80 <= m + f) {\n\t\t\t\tlist.add(\"A\");\n\t\t\t}\n\t\t\telse if(65 <= m + f && m + f < 80) {\n\t\t\t\tlist.add(\"B\");\n\t\t\t}\n\t\t\telse if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\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\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t//\tSystem.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(m == -1 || f == -1) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t\telse if(80 <= m + f) {\n\t\t\t\tlist.add(\"A\");\n\t\t\t}\n\t\t\telse if(65 <= m + f && m + f < 80) {\n\t\t\t\tlist.add(\"B\");\n\t\t\t}\n\t\t\telse if(50 <= m + f && m + f < 65) {\n\t\t\t\tlist.add(\"C\");\n\t\t\t}\n\t\t\telse if(30 <= m + f && m + f < 50) {\n\t\t\t\tif(50 <= r) {\n\t\t\t\t\tlist.add(\"C\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlist.add(\"D\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30) {\n\t\t\t\tlist.add(\"F\");\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<String> list = new ArrayList<String>(); while(sc.hasNext()) { int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); if(m == -1 && f == -1 && r == -1) { // System.out.println("??????????????????"); break; } if(m == -1 || f == -1) { list.add("F"); } else if(80 <= m + f) { list.add("A"); } else if(65 <= m + f && m + f < 80) { list.add("B"); } else if(50 <= m + f && m + f < 65) { list.add("C"); } else if(30 <= m + f && m + f < 50) { if(50 <= r) { list.add("C"); } else { list.add("D"); } } else if(m + f < 30) { list.add("F"); } } for(String s : list) { System.out.println(s); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 4, 18, 13, 13, 40, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 14, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 17, 2, 2, 2, 18, 13, 17, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 18, 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 ], [ 206, 8 ], [ 206, 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 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 23, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 23, 40 ], [ 40, 41 ], [ 11, 42 ], [ 42, 43 ], [ 42, 44 ], [ 11, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 46, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 61, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 88, 90 ], [ 58, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 92, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 91, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 91, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 118, 120 ], [ 113, 121 ], [ 112, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 112, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 135, 136 ], [ 135, 137 ], [ 130, 138 ], [ 129, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 129, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 153, 155 ], [ 148, 156 ], [ 147, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 163, 165 ], [ 158, 166 ], [ 157, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 146, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 173, 178 ], [ 146, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 181, 185 ], [ 185, 186 ], [ 185, 187 ], [ 180, 188 ], [ 179, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 190, 195 ], [ 179, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 197, 202 ], [ 9, 203 ], [ 203, 204 ], [ 0, 205 ], [ 205, 206 ], [ 205, 207 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = sc.nextLine();\n\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tint[] gr = new int[3];\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tString[] kari = lines.get(i).split(\" \");\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}\n\n\t\t\tif (gr[0] == -1 || gr[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (gr[0] + gr[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = sc.nextLine();\n\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tint[] gr = new int[3];\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tString[] kari = lines.get(i).split(\" \");\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}\n\n\t\t\tif (gr[0] == -1 || gr[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (gr[0] + gr[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = sc.nextLine();\n\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tint[] gr = new int[3];\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tString[] kari = lines.get(i).split(\" \");\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}\n\n\t\t\tif (gr[0] == -1 || gr[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (gr[0] + gr[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = sc.nextLine();\n\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tint[] gr = new int[3];\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tString[] kari = lines.get(i).split(\" \");\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}\n\n\t\t\tif (gr[0] == -1 || gr[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (gr[0] + gr[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<String> lines = new ArrayList<String>();", "lines", "new ArrayList<String>()", "int in = 0;", "in", "0", "while (true) {\n\t\t\tString string = sc.nextLine();\n\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}", "true", "{\n\t\t\tString string = sc.nextLine();\n\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}", "String string = sc.nextLine();", "string", "sc.nextLine()", "sc.nextLine", "sc", "if (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}", "string.equals(\"-1 -1 -1\")", "string.equals", "string", "\"-1 -1 -1\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "lines.add(string)", "lines.add", "lines", "string", "in++", "in", "int[] gr = new int[3];", "gr", "new int[3]", "3", "for (int i = 0; i < in; i++) {\n\t\t\tString[] kari = lines.get(i).split(\" \");\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}\n\n\t\t\tif (gr[0] == -1 || gr[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (gr[0] + gr[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < in", "i", "in", "i++", "i++", "i", "{\n\t\t\tString[] kari = lines.get(i).split(\" \");\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}\n\n\t\t\tif (gr[0] == -1 || gr[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (gr[0] + gr[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "{\n\t\t\tString[] kari = lines.get(i).split(\" \");\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}\n\n\t\t\tif (gr[0] == -1 || gr[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (gr[0] + gr[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "String[] kari = lines.get(i).split(\" \");", "kari", "lines.get(i).split(\" \")", "lines.get(i).split", "lines.get(i)", "lines.get", "lines", "i", "\" \"", "for (int j = 0; j < 3; j++) {\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}", "{\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}", "gr[j] = Integer.parseInt(kari[j])", "gr[j]", "gr", "j", "Integer.parseInt(kari[j])", "Integer.parseInt", "Integer", "kari[j]", "kari", "j", "if (gr[0] == -1 || gr[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (gr[0] + gr[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "gr[0] == -1 || gr[1] == -1", "gr[0] == -1", "gr[0]", "gr", "0", "-1", "1", "gr[1] == -1", "gr[1]", "gr", "1", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (gr[0] + gr[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "gr[0] + gr[1] >= 80", "gr[0] + gr[1]", "gr[0]", "gr", "0", "gr[1]", "gr", "1", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "gr[0] + gr[1] >= 65", "gr[0] + gr[1]", "gr[0]", "gr", "0", "gr[1]", "gr", "1", "65", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)", "gr[0] + gr[1] >= 50", "gr[0] + gr[1]", "gr[0]", "gr", "0", "gr[1]", "gr", "1", "50", "(gr[0] + gr[1] >= 30 && gr[2] >= 50)", "gr[0] + gr[1] >= 30", "gr[0] + gr[1]", "gr[0]", "gr", "0", "gr[1]", "gr", "1", "30", "gr[2] >= 50", "gr[2]", "gr", "2", "50", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "gr[0] + gr[1] >= 30", "gr[0] + gr[1]", "gr[0]", "gr", "0", "gr[1]", "gr", "1", "30", "{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = sc.nextLine();\n\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tint[] gr = new int[3];\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tString[] kari = lines.get(i).split(\" \");\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}\n\n\t\t\tif (gr[0] == -1 || gr[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (gr[0] + gr[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = sc.nextLine();\n\n\t\t\tif (string.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tint[] gr = new int[3];\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tString[] kari = lines.get(i).split(\" \");\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tgr[j] = Integer.parseInt(kari[j]);\n\t\t\t}\n\n\t\t\tif (gr[0] == -1 || gr[1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (gr[0] + gr[1] >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (gr[0] + gr[1] >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (gr[0] + gr[1] >= 50\n\t\t\t\t\t|| (gr[0] + gr[1] >= 30 && gr[2] >= 50)) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (gr[0] + gr[1] >= 30) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); ArrayList<String> lines = new ArrayList<String>(); int in = 0; while (true) { String string = sc.nextLine(); if (string.equals("-1 -1 -1")) { break; } lines.add(string); in++; } int[] gr = new int[3]; for (int i = 0; i < in; i++) { String[] kari = lines.get(i).split(" "); for (int j = 0; j < 3; j++) { gr[j] = Integer.parseInt(kari[j]); } if (gr[0] == -1 || gr[1] == -1) { System.out.println("F"); } else if (gr[0] + gr[1] >= 80) { System.out.println("A"); } else if (gr[0] + gr[1] >= 65) { System.out.println("B"); } else if (gr[0] + gr[1] >= 50 || (gr[0] + gr[1] >= 30 && gr[2] >= 50)) { System.out.println("C"); } else if (gr[0] + gr[1] >= 30) { System.out.println("D"); } else { System.out.println("F"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 2, 13, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 162, 11 ], [ 162, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 17, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 28, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 28, 42 ], [ 42, 43 ], [ 28, 44 ], [ 44, 45 ], [ 28, 46 ], [ 46, 47 ], [ 28, 48 ], [ 48, 49 ], [ 28, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 28, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 28, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 28, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 28, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 79, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 79, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 96, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 107, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 118, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 134, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 129, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 12, 159 ], [ 159, 160 ], [ 0, 161 ], [ 161, 162 ], [ 161, 163 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint m, f, r, sum;\n\t\t\tm = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tsum = m + f;\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint m, f, r, sum;\n\t\t\tm = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tsum = m + f;\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint m, f, r, sum;\n\t\t\tm = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tsum = m + f;\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint m, f, r, sum;\n\t\t\tm = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tsum = m + f;\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "String line;", "line", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint m, f, r, sum;\n\t\t\tm = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tsum = m + f;\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint m, f, r, sum;\n\t\t\tm = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tsum = m + f;\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "if (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}", "line.equals(\"-1 -1 -1\")", "line.equals", "line", "\"-1 -1 -1\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] token = line.split(\" \");", "token", "line.split(\" \")", "line.split", "line", "\" \"", "int m", "m", "f", "f", "r", "r", "sum;", "sum", "m = Integer.parseInt(token[0])", "m", "Integer.parseInt(token[0])", "Integer.parseInt", "Integer", "token[0]", "token", "0", "f = Integer.parseInt(token[1])", "f", "Integer.parseInt(token[1])", "Integer.parseInt", "Integer", "token[1]", "token", "1", "r = Integer.parseInt(token[2])", "r", "Integer.parseInt(token[2])", "Integer.parseInt", "Integer", "token[2]", "token", "2", "sum = m + f", "sum", "m + f", "m", "f", "if (m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "sum >= 80", "sum", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "sum >= 65", "sum", "65", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "sum >= 50", "sum", "50", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "sum >= 30", "sum", "30", "{\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}", "if (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint m, f, r, sum;\n\t\t\tm = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tsum = m + f;\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tString line;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] token = line.split(\" \");\n\t\t\tint m, f, r, sum;\n\t\t\tm = Integer.parseInt(token[0]);\n\t\t\tf = Integer.parseInt(token[1]);\n\t\t\tr = Integer.parseInt(token[2]);\n\t\t\tsum = m + f;\n\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (sum >= 30) {\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub String line; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while ((line = br.readLine()) != null) { if (line.equals("-1 -1 -1")) { break; } String[] token = line.split(" "); int m, f, r, sum; m = Integer.parseInt(token[0]); f = Integer.parseInt(token[1]); r = Integer.parseInt(token[2]); sum = m + f; if (m == -1 || f == -1) { System.out.println("F"); } else if (sum >= 80) { System.out.println("A"); } else if (sum >= 65) { System.out.println("B"); } else if (sum >= 50) { System.out.println("C"); } else if (sum >= 30) { if (r >= 50) { System.out.println("C"); } else { System.out.println("D"); } } else { System.out.println("F"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 30, 4, 13, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 170, 5 ], [ 170, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 45, 46 ], [ 30, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 48, 51 ], [ 48, 52 ], [ 6, 53 ], [ 53, 54 ], [ 170, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 63, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 63, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 80, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 91, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 91, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 111, 113 ], [ 106, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 106, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 126, 128 ], [ 121, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 130, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 121, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 153, 155 ], [ 148, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 55, 163 ], [ 163, 164 ], [ 55, 165 ], [ 165, 166 ], [ 55, 167 ], [ 167, 168 ], [ 0, 169 ], [ 169, 170 ], [ 169, 171 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[]args){\n Scanner scn = new Scanner(System.in);\n \n while(true){\n int m=scn.nextInt();\n int f=scn.nextInt();\n int r=scn.nextInt();\n \n if(m==-1 && f==-1 && r==-1){\n break;\n } else {\n transcript(m,f,r);\n }\n }\n }\n\n private static void transcript(int m, int f, int r) {\n int sum=m+f;\n if(m==-1 || f==-1){\n System.out.println(\"F\");\n }else if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[]args){\n Scanner scn = new Scanner(System.in);\n \n while(true){\n int m=scn.nextInt();\n int f=scn.nextInt();\n int r=scn.nextInt();\n \n if(m==-1 && f==-1 && r==-1){\n break;\n } else {\n transcript(m,f,r);\n }\n }\n }\n\n private static void transcript(int m, int f, int r) {\n int sum=m+f;\n if(m==-1 || f==-1){\n System.out.println(\"F\");\n }else if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }\n }\n}", "Main", "public static void main(String[]args){\n Scanner scn = new Scanner(System.in);\n \n while(true){\n int m=scn.nextInt();\n int f=scn.nextInt();\n int r=scn.nextInt();\n \n if(m==-1 && f==-1 && r==-1){\n break;\n } else {\n transcript(m,f,r);\n }\n }\n }", "main", "{\n Scanner scn = new Scanner(System.in);\n \n while(true){\n int m=scn.nextInt();\n int f=scn.nextInt();\n int r=scn.nextInt();\n \n if(m==-1 && f==-1 && r==-1){\n break;\n } else {\n transcript(m,f,r);\n }\n }\n }", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "while(true){\n int m=scn.nextInt();\n int f=scn.nextInt();\n int r=scn.nextInt();\n \n if(m==-1 && f==-1 && r==-1){\n break;\n } else {\n transcript(m,f,r);\n }\n }", "true", "{\n int m=scn.nextInt();\n int f=scn.nextInt();\n int r=scn.nextInt();\n \n if(m==-1 && f==-1 && r==-1){\n break;\n } else {\n transcript(m,f,r);\n }\n }", "int m=scn.nextInt();", "m", "scn.nextInt()", "scn.nextInt", "scn", "int f=scn.nextInt();", "f", "scn.nextInt()", "scn.nextInt", "scn", "int r=scn.nextInt();", "r", "scn.nextInt()", "scn.nextInt", "scn", "if(m==-1 && f==-1 && r==-1){\n break;\n } else {\n transcript(m,f,r);\n }", "m==-1 && f==-1 && r==-1", "m==-1 && f==-1 && r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "{\n break;\n }", "break;", "{\n transcript(m,f,r);\n }", "transcript(m,f,r)", "transcript", "m", "f", "r", "String[]args", "args", "private static void transcript(int m, int f, int r) {\n int sum=m+f;\n if(m==-1 || f==-1){\n System.out.println(\"F\");\n }else if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }\n }", "transcript", "{\n int sum=m+f;\n if(m==-1 || f==-1){\n System.out.println(\"F\");\n }else if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }\n }", "int sum=m+f;", "sum", "m+f", "m", "f", "if(m==-1 || f==-1){\n System.out.println(\"F\");\n }else if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }", "m==-1 || f==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }", "sum >= 80", "sum", "80", "{\n System.out.println(\"A\");\n }", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }", "sum>=65 && sum<80", "sum>=65", "sum", "65", "sum<80", "sum", "80", "{\n System.out.println(\"B\");\n }", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }", "sum>=50 && sum<65", "sum>=50", "sum", "50", "sum<65", "sum", "65", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }", "sum>=30 && sum<50", "sum>=30", "sum", "30", "sum<50", "sum", "50", "{\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }", "if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }", "r>=50", "r", "50", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n System.out.println(\"D\");\n }", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }", "sum>=0 && sum<30", "sum>=0", "sum", "0", "sum<30", "sum", "30", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "int m", "m", "int f", "f", "int r", "r", "public class Main{\n public static void main(String[]args){\n Scanner scn = new Scanner(System.in);\n \n while(true){\n int m=scn.nextInt();\n int f=scn.nextInt();\n int r=scn.nextInt();\n \n if(m==-1 && f==-1 && r==-1){\n break;\n } else {\n transcript(m,f,r);\n }\n }\n }\n\n private static void transcript(int m, int f, int r) {\n int sum=m+f;\n if(m==-1 || f==-1){\n System.out.println(\"F\");\n }else if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }\n }\n}", "public class Main{\n public static void main(String[]args){\n Scanner scn = new Scanner(System.in);\n \n while(true){\n int m=scn.nextInt();\n int f=scn.nextInt();\n int r=scn.nextInt();\n \n if(m==-1 && f==-1 && r==-1){\n break;\n } else {\n transcript(m,f,r);\n }\n }\n }\n\n private static void transcript(int m, int f, int r) {\n int sum=m+f;\n if(m==-1 || f==-1){\n System.out.println(\"F\");\n }else if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else if(sum>=0 && sum<30){\n System.out.println(\"F\");\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scn = new Scanner(System.in); while(true){ int m=scn.nextInt(); int f=scn.nextInt(); int r=scn.nextInt(); if(m==-1 && f==-1 && r==-1){ break; } else { transcript(m,f,r); } } } private static void transcript(int m, int f, int r) { int sum=m+f; if(m==-1 || f==-1){ System.out.println("F"); }else if(sum >= 80){ System.out.println("A"); }else if(sum>=65 && sum<80){ System.out.println("B"); }else if(sum>=50 && sum<65){ System.out.println("C"); }else if(sum>=30 && sum<50){ if(r>=50){ System.out.println("C"); }else{ System.out.println("D"); } }else if(sum>=0 && sum<30){ System.out.println("F"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 30, 0, 13, 2, 13, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 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 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 28, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 28, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 28, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 28, 59 ], [ 59, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 61, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 59, 74 ], [ 74, 75 ], [ 59, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 82, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 98, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 109, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 129, 131 ], [ 124, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 124, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 144, 146 ], [ 139, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 148, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 139, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 167, 172 ], [ 9, 173 ], [ 173, 174 ] ]
[ "import java.util.*;\nimport java.io.*;\n\nclass Main{\n public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s;\n int sum=0;\n while((s = br.readLine())!=null){\n String[] str = s.split(\" \");\n int m = Integer.parseInt(str[0]);\n int f = Integer.parseInt(str[1]);\n int r = Integer.parseInt(str[2]);\n if(m==-1 && f==-1 && r==-1){\n break;\n }else{\n sum = m + f;\n if(m<0 || f<0){\n System.out.println(\"F\");\n }else{\n if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main{\n public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s;\n int sum=0;\n while((s = br.readLine())!=null){\n String[] str = s.split(\" \");\n int m = Integer.parseInt(str[0]);\n int f = Integer.parseInt(str[1]);\n int r = Integer.parseInt(str[2]);\n if(m==-1 && f==-1 && r==-1){\n break;\n }else{\n sum = m + f;\n if(m<0 || f<0){\n System.out.println(\"F\");\n }else{\n if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }\n }\n }\n}", "Main", "public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s;\n int sum=0;\n while((s = br.readLine())!=null){\n String[] str = s.split(\" \");\n int m = Integer.parseInt(str[0]);\n int f = Integer.parseInt(str[1]);\n int r = Integer.parseInt(str[2]);\n if(m==-1 && f==-1 && r==-1){\n break;\n }else{\n sum = m + f;\n if(m<0 || f<0){\n System.out.println(\"F\");\n }else{\n if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s;\n int sum=0;\n while((s = br.readLine())!=null){\n String[] str = s.split(\" \");\n int m = Integer.parseInt(str[0]);\n int f = Integer.parseInt(str[1]);\n int r = Integer.parseInt(str[2]);\n if(m==-1 && f==-1 && r==-1){\n break;\n }else{\n sum = m + f;\n if(m<0 || f<0){\n System.out.println(\"F\");\n }else{\n if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String s;", "s", "int sum=0;", "sum", "0", "while((s = br.readLine())!=null){\n String[] str = s.split(\" \");\n int m = Integer.parseInt(str[0]);\n int f = Integer.parseInt(str[1]);\n int r = Integer.parseInt(str[2]);\n if(m==-1 && f==-1 && r==-1){\n break;\n }else{\n sum = m + f;\n if(m<0 || f<0){\n System.out.println(\"F\");\n }else{\n if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }\n }", "(s = br.readLine())!=null", "(s = br.readLine())", "s", "br.readLine()", "br.readLine", "br", "null", "{\n String[] str = s.split(\" \");\n int m = Integer.parseInt(str[0]);\n int f = Integer.parseInt(str[1]);\n int r = Integer.parseInt(str[2]);\n if(m==-1 && f==-1 && r==-1){\n break;\n }else{\n sum = m + f;\n if(m<0 || f<0){\n System.out.println(\"F\");\n }else{\n if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }\n }", "String[] str = s.split(\" \");", "str", "s.split(\" \")", "s.split", "s", "\" \"", "int m = Integer.parseInt(str[0]);", "m", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "int f = Integer.parseInt(str[1]);", "f", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "int r = Integer.parseInt(str[2]);", "r", "Integer.parseInt(str[2])", "Integer.parseInt", "Integer", "str[2]", "str", "2", "if(m==-1 && f==-1 && r==-1){\n break;\n }else{\n sum = m + f;\n if(m<0 || f<0){\n System.out.println(\"F\");\n }else{\n if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }", "m==-1 && f==-1 && r==-1", "m==-1 && f==-1 && r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "{\n break;\n }", "break;", "{\n sum = m + f;\n if(m<0 || f<0){\n System.out.println(\"F\");\n }else{\n if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }", "sum = m + f", "sum", "m + f", "m", "f", "if(m<0 || f<0){\n System.out.println(\"F\");\n }else{\n if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }", "m<0 || f<0", "m<0", "m", "0", "f<0", "f", "0", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "{\n if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }", "if(sum >= 80){\n System.out.println(\"A\");\n }else if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }", "sum >= 80", "sum", "80", "{\n System.out.println(\"A\");\n }", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(sum>=65 && sum<80){\n System.out.println(\"B\");\n }else if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }", "sum>=65 && sum<80", "sum>=65", "sum", "65", "sum<80", "sum", "80", "{\n System.out.println(\"B\");\n }", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(sum>=50 && sum<65){\n System.out.println(\"C\");\n }else if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }", "sum>=50 && sum<65", "sum>=50", "sum", "50", "sum<65", "sum", "65", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(sum>=30 && sum<50){\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }", "sum>=30 && sum<50", "sum>=30", "sum", "30", "sum<50", "sum", "50", "{\n if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }", "if(r>=50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }", "r>=50", "r", "50", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n System.out.println(\"D\");\n }", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String args[]", "args" ]
import java.util.*; import java.io.*; class Main{ public static void main(String args[])throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s; int sum=0; while((s = br.readLine())!=null){ String[] str = s.split(" "); int m = Integer.parseInt(str[0]); int f = Integer.parseInt(str[1]); int r = Integer.parseInt(str[2]); if(m==-1 && f==-1 && r==-1){ break; }else{ sum = m + f; if(m<0 || f<0){ System.out.println("F"); }else{ if(sum >= 80){ System.out.println("A"); }else if(sum>=65 && sum<80){ System.out.println("B"); }else if(sum>=50 && sum<65){ System.out.println("C"); }else if(sum>=30 && sum<50){ if(r>=50){ System.out.println("C"); }else{ System.out.println("D"); } }else{ System.out.println("F"); } } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 2, 13, 40, 17, 2, 13, 40, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 16, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 16, 37 ], [ 37, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 39, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 37, 52 ], [ 37, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 54, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 64, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 87, 89 ], [ 78, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 78, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 96, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 96, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 116, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\n\t while(sc.hasNext()){\n\t int a = sc.nextInt();\n\t int b = sc.nextInt();\n\t int c = sc.nextInt();\n\t int d = a+b;\n\n\t if((a==-1)&&(b==-1)&&(c==-1))\n\t break;\n else{\n if(d>=80)\n System.out.print(\"A\\n\");\n else if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");\n\n }\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\n\t while(sc.hasNext()){\n\t int a = sc.nextInt();\n\t int b = sc.nextInt();\n\t int c = sc.nextInt();\n\t int d = a+b;\n\n\t if((a==-1)&&(b==-1)&&(c==-1))\n\t break;\n else{\n if(d>=80)\n System.out.print(\"A\\n\");\n else if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");\n\n }\n }\n }\n}", "Main", "public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\n\t while(sc.hasNext()){\n\t int a = sc.nextInt();\n\t int b = sc.nextInt();\n\t int c = sc.nextInt();\n\t int d = a+b;\n\n\t if((a==-1)&&(b==-1)&&(c==-1))\n\t break;\n else{\n if(d>=80)\n System.out.print(\"A\\n\");\n else if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");\n\n }\n }\n }", "main", "{\n\t Scanner sc = new Scanner(System.in);\n\n\t while(sc.hasNext()){\n\t int a = sc.nextInt();\n\t int b = sc.nextInt();\n\t int c = sc.nextInt();\n\t int d = a+b;\n\n\t if((a==-1)&&(b==-1)&&(c==-1))\n\t break;\n else{\n if(d>=80)\n System.out.print(\"A\\n\");\n else if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");\n\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNext()){\n\t int a = sc.nextInt();\n\t int b = sc.nextInt();\n\t int c = sc.nextInt();\n\t int d = a+b;\n\n\t if((a==-1)&&(b==-1)&&(c==-1))\n\t break;\n else{\n if(d>=80)\n System.out.print(\"A\\n\");\n else if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");\n\n }\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t int a = sc.nextInt();\n\t int b = sc.nextInt();\n\t int c = sc.nextInt();\n\t int d = a+b;\n\n\t if((a==-1)&&(b==-1)&&(c==-1))\n\t break;\n else{\n if(d>=80)\n System.out.print(\"A\\n\");\n else if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");\n\n }\n }", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int c = sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "int d = a+b;", "d", "a+b", "a", "b", "if((a==-1)&&(b==-1)&&(c==-1))\n\t break;\n else{\n if(d>=80)\n System.out.print(\"A\\n\");\n else if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");\n\n }", "(a==-1)&&(b==-1)&&(c==-1)", "(a==-1)&&(b==-1)&&(c==-1)", "(a==-1)", "a", "-1", "1", "(b==-1)", "b", "-1", "1", "(c==-1)", "c", "-1", "1", "break;", "{\n if(d>=80)\n System.out.print(\"A\\n\");\n else if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");\n\n }", "if(d>=80)\n System.out.print(\"A\\n\");\n else if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");", "d>=80", "d", "80", "System.out.print(\"A\\n\")", "System.out.print", "System.out", "System", "System.out", "\"A\\n\"", "if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");", "d>=65&&d<80", "d>=65", "d", "65", "d<80", "d", "80", "System.out.print(\"B\\n\")", "System.out.print", "System.out", "System", "System.out", "\"B\\n\"", "if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");", "(d>=50&&d<65)||c>=50", "(d>=50&&d<65)", "d>=50", "d", "50", "d<65", "d", "65", "c>=50", "c", "50", "System.out.print(\"C\\n\")", "System.out.print", "System.out", "System", "System.out", "\"C\\n\"", "if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");", "(d<30)||((a==-1||b==-1))", "(d<30)", "d", "30", "((a==-1||b==-1))", "a==-1", "a", "-1", "1", "b==-1", "b", "-1", "1", "System.out.print(\"F\\n\")", "System.out.print", "System.out", "System", "System.out", "\"F\\n\"", "if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");", "(d>=30)&&(d<50)", "(d>=30)", "d", "30", "(d<50)", "d", "50", "System.out.print(\"D\\n\")", "System.out.print", "System.out", "System", "System.out", "\"D\\n\"", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\n\t while(sc.hasNext()){\n\t int a = sc.nextInt();\n\t int b = sc.nextInt();\n\t int c = sc.nextInt();\n\t int d = a+b;\n\n\t if((a==-1)&&(b==-1)&&(c==-1))\n\t break;\n else{\n if(d>=80)\n System.out.print(\"A\\n\");\n else if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");\n\n }\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\n\t while(sc.hasNext()){\n\t int a = sc.nextInt();\n\t int b = sc.nextInt();\n\t int c = sc.nextInt();\n\t int d = a+b;\n\n\t if((a==-1)&&(b==-1)&&(c==-1))\n\t break;\n else{\n if(d>=80)\n System.out.print(\"A\\n\");\n else if(d>=65&&d<80)\n System.out.print(\"B\\n\");\n else if((d>=50&&d<65)||c>=50)\n System.out.print(\"C\\n\");\n else if((d<30)||((a==-1||b==-1)))\n System.out.print(\"F\\n\");\n else if((d>=30)&&(d<50))\n System.out.print(\"D\\n\");\n\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = a+b; if((a==-1)&&(b==-1)&&(c==-1)) break; else{ if(d>=80) System.out.print("A\n"); else if(d>=65&&d<80) System.out.print("B\n"); else if((d>=50&&d<65)||c>=50) System.out.print("C\n"); else if((d<30)||((a==-1||b==-1))) System.out.print("F\n"); else if((d>=30)&&(d<50)) System.out.print("D\n"); } } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 29, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 141, 5 ], [ 141, 6 ], [ 6, 7 ], [ 141, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 10, 16 ], [ 16, 17 ], [ 10, 18 ], [ 18, 19 ], [ 10, 20 ], [ 20, 21 ], [ 10, 22 ], [ 22, 23 ], [ 22, 24 ], [ 10, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 27, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 27, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 48, 58 ], [ 58, 59 ], [ 48, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 60, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 80, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 92, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 104, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 27, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 8, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "import java.util.Scanner;\n\n/**\n * Structured Program II\n */\npublic class Main {\n private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n // 中間試験の点数 m、期末試験の点数 f、再試験の点数 r\n int m,f,r, sum;\n String seiseki = \"\";\n while (true) {\n m = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n sum = m + f;\n if (m == -1 && f == -1) {\n return;\n } else if (m < 0 || f < 0) {\n seiseki = \"F\";\n } else if (sum >= 80) {\n seiseki = \"A\";\n } else if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }\n System.out.println(seiseki);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n // 中間試験の点数 m、期末試験の点数 f、再試験の点数 r\n int m,f,r, sum;\n String seiseki = \"\";\n while (true) {\n m = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n sum = m + f;\n if (m == -1 && f == -1) {\n return;\n } else if (m < 0 || f < 0) {\n seiseki = \"F\";\n } else if (sum >= 80) {\n seiseki = \"A\";\n } else if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }\n System.out.println(seiseki);\n }\n }\n}", "Main", "private static Scanner scan;", "scan", "public static void main(String[] args) {\n scan = new Scanner(System.in);\n // 中間試験の点数 m、期末試験の点数 f、再試験の点数 r\n int m,f,r, sum;\n String seiseki = \"\";\n while (true) {\n m = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n sum = m + f;\n if (m == -1 && f == -1) {\n return;\n } else if (m < 0 || f < 0) {\n seiseki = \"F\";\n } else if (sum >= 80) {\n seiseki = \"A\";\n } else if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }\n System.out.println(seiseki);\n }\n }", "main", "{\n scan = new Scanner(System.in);\n // 中間試験の点数 m、期末試験の点数 f、再試験の点数 r\n int m,f,r, sum;\n String seiseki = \"\";\n while (true) {\n m = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n sum = m + f;\n if (m == -1 && f == -1) {\n return;\n } else if (m < 0 || f < 0) {\n seiseki = \"F\";\n } else if (sum >= 80) {\n seiseki = \"A\";\n } else if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }\n System.out.println(seiseki);\n }\n }", "scan = new Scanner(System.in)", "scan", "new Scanner(System.in)", "int m", "m", "f", "f", "r", "r", "sum;", "sum", "String seiseki = \"\";", "seiseki", "\"\"", "while (true) {\n m = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n sum = m + f;\n if (m == -1 && f == -1) {\n return;\n } else if (m < 0 || f < 0) {\n seiseki = \"F\";\n } else if (sum >= 80) {\n seiseki = \"A\";\n } else if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }\n System.out.println(seiseki);\n }", "true", "{\n m = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n sum = m + f;\n if (m == -1 && f == -1) {\n return;\n } else if (m < 0 || f < 0) {\n seiseki = \"F\";\n } else if (sum >= 80) {\n seiseki = \"A\";\n } else if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }\n System.out.println(seiseki);\n }", "m = scan.nextInt()", "m", "scan.nextInt()", "scan.nextInt", "scan", "f = scan.nextInt()", "f", "scan.nextInt()", "scan.nextInt", "scan", "r = scan.nextInt()", "r", "scan.nextInt()", "scan.nextInt", "scan", "sum = m + f", "sum", "m + f", "m", "f", "if (m == -1 && f == -1) {\n return;\n } else if (m < 0 || f < 0) {\n seiseki = \"F\";\n } else if (sum >= 80) {\n seiseki = \"A\";\n } else if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }", "m == -1 && f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n return;\n }", "return;", "if (m < 0 || f < 0) {\n seiseki = \"F\";\n } else if (sum >= 80) {\n seiseki = \"A\";\n } else if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }", "m < 0 || f < 0", "m < 0", "m", "0", "f < 0", "f", "0", "{\n seiseki = \"F\";\n }", "seiseki = \"F\"", "seiseki", "\"F\"", "if (sum >= 80) {\n seiseki = \"A\";\n } else if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }", "sum >= 80", "sum", "80", "{\n seiseki = \"A\";\n }", "seiseki = \"A\"", "seiseki", "\"A\"", "if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }", "sum >= 65 && sum < 80", "sum >= 65", "sum", "65", "sum < 80", "sum", "80", "{\n seiseki = \"B\";\n }", "seiseki = \"B\"", "seiseki", "\"B\"", "if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }", "sum >= 50 && sum < 65", "sum >= 50", "sum", "50", "sum < 65", "sum", "65", "{\n seiseki = \"C\";\n }", "seiseki = \"C\"", "seiseki", "\"C\"", "if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }", "sum >= 30 && sum < 50", "sum >= 30", "sum", "30", "sum < 50", "sum", "50", "{\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n }", "seiseki = \"D\"", "seiseki", "\"D\"", "if (r >= 50) {\n seiseki = \"C\";\n }", "r >= 50", "r", "50", "{\n seiseki = \"C\";\n }", "seiseki = \"C\"", "seiseki", "\"C\"", "if (sum < 30) {\n seiseki = \"F\";\n }", "sum < 30", "sum", "30", "{\n seiseki = \"F\";\n }", "seiseki = \"F\"", "seiseki", "\"F\"", "System.out.println(seiseki)", "System.out.println", "System.out", "System", "System.out", "seiseki", "String[] args", "args", "public class Main {\n private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n // 中間試験の点数 m、期末試験の点数 f、再試験の点数 r\n int m,f,r, sum;\n String seiseki = \"\";\n while (true) {\n m = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n sum = m + f;\n if (m == -1 && f == -1) {\n return;\n } else if (m < 0 || f < 0) {\n seiseki = \"F\";\n } else if (sum >= 80) {\n seiseki = \"A\";\n } else if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }\n System.out.println(seiseki);\n }\n }\n}", "public class Main {\n private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n // 中間試験の点数 m、期末試験の点数 f、再試験の点数 r\n int m,f,r, sum;\n String seiseki = \"\";\n while (true) {\n m = scan.nextInt();\n f = scan.nextInt();\n r = scan.nextInt();\n sum = m + f;\n if (m == -1 && f == -1) {\n return;\n } else if (m < 0 || f < 0) {\n seiseki = \"F\";\n } else if (sum >= 80) {\n seiseki = \"A\";\n } else if (sum >= 65 && sum < 80) {\n seiseki = \"B\";\n } else if (sum >= 50 && sum < 65) {\n seiseki = \"C\";\n } else if (sum >= 30 && sum < 50) {\n seiseki = \"D\";\n if (r >= 50) {\n seiseki = \"C\";\n }\n } else if (sum < 30) {\n seiseki = \"F\";\n }\n System.out.println(seiseki);\n }\n }\n}", "Main" ]
import java.util.Scanner; /** * Structured Program II */ public class Main { private static Scanner scan; public static void main(String[] args) { scan = new Scanner(System.in); // 中間試験の点数 m、期末試験の点数 f、再試験の点数 r int m,f,r, sum; String seiseki = ""; while (true) { m = scan.nextInt(); f = scan.nextInt(); r = scan.nextInt(); sum = m + f; if (m == -1 && f == -1) { return; } else if (m < 0 || f < 0) { seiseki = "F"; } else if (sum >= 80) { seiseki = "A"; } else if (sum >= 65 && sum < 80) { seiseki = "B"; } else if (sum >= 50 && sum < 65) { seiseki = "C"; } else if (sum >= 30 && sum < 50) { seiseki = "D"; if (r >= 50) { seiseki = "C"; } } else if (sum < 30) { seiseki = "F"; } System.out.println(seiseki); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 42, 17, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 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 ], [ 178, 5 ], [ 178, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 19, 24 ], [ 24, 25 ], [ 24, 26 ], [ 19, 27 ], [ 27, 28 ], [ 28, 29 ], [ 19, 30 ], [ 31, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 18, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 18, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 18, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 18, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 18, 59 ], [ 59, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 61, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 59, 74 ], [ 74, 75 ], [ 59, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 76, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 76, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 93, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 104, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 124, 126 ], [ 119, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 119, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 139, 141 ], [ 134, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 143, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 134, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 8, 172 ], [ 172, 173 ], [ 173, 174 ], [ 6, 175 ], [ 175, 176 ], [ 0, 177 ], [ 177, 178 ], [ 177, 179 ] ]
[ "import 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\tint[] arr = new int[3];\n\n\t\tdo {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tint m = arr[0];\n\t\t\tint f = arr[1];\n\t\t\tint r = arr[2];\n\n\t\t\tint s = m + f;\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (s >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\n\n\t\t}while(true);\n\n\t\tsc.close();\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[] arr = new int[3];\n\n\t\tdo {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tint m = arr[0];\n\t\t\tint f = arr[1];\n\t\t\tint r = arr[2];\n\n\t\t\tint s = m + f;\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (s >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\n\n\t\t}while(true);\n\n\t\tsc.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[] arr = new int[3];\n\n\t\tdo {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tint m = arr[0];\n\t\t\tint f = arr[1];\n\t\t\tint r = arr[2];\n\n\t\t\tint s = m + f;\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (s >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\n\n\t\t}while(true);\n\n\t\tsc.close();\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[] arr = new int[3];\n\n\t\tdo {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tint m = arr[0];\n\t\t\tint f = arr[1];\n\t\t\tint r = arr[2];\n\n\t\t\tint s = m + f;\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (s >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\n\n\t\t}while(true);\n\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int[] arr = new int[3];", "arr", "new int[3]", "3", "do {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tint m = arr[0];\n\t\t\tint f = arr[1];\n\t\t\tint r = arr[2];\n\n\t\t\tint s = m + f;\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (s >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\n\n\t\t}while(true);", "true", "{\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tint m = arr[0];\n\t\t\tint f = arr[1];\n\t\t\tint r = arr[2];\n\n\t\t\tint s = m + f;\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (s >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\n\n\t\t}", "for(int i = 0; i < 3; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}", "{\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}", "arr[i] = sc.nextInt()", "arr[i]", "arr", "i", "sc.nextInt()", "sc.nextInt", "sc", "int m = arr[0];", "m", "arr[0]", "arr", "0", "int f = arr[1];", "f", "arr[1]", "arr", "1", "int r = arr[2];", "r", "arr[2]", "arr", "2", "int s = m + f;", "s", "m + f", "m", "f", "if (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (s >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if (m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (s >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (s >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "s >= 80", "s", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "s >= 65 && s < 80", "s >= 65", "s", "65", "s < 80", "s", "80", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "s >= 50 && s < 65", "s >= 50", "s", "50", "s < 65", "s", "65", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "s >= 30 && s < 50", "s >= 30", "s", "30", "s < 50", "s", "50", "{\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t}", "if (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "s < 30", "s", "30", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "sc.close()", "sc.close", "sc", "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\tint[] arr = new int[3];\n\n\t\tdo {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tint m = arr[0];\n\t\t\tint f = arr[1];\n\t\t\tint r = arr[2];\n\n\t\t\tint s = m + f;\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (s >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\n\n\t\t}while(true);\n\n\t\tsc.close();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[] arr = new int[3];\n\n\t\tdo {\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tint m = arr[0];\n\t\t\tint f = arr[1];\n\t\t\tint r = arr[2];\n\n\t\t\tint s = m + f;\n\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else if (m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (s >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (s >= 65 && s < 80 ){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (s >= 50 && s < 65 ){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else if (s >= 30 && s < 50 ){\n\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\n\t\t\t} else if ( s < 30 ){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\n\n\t\t}while(true);\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); int[] arr = new int[3]; do { for(int i = 0; i < 3; i++) { arr[i] = sc.nextInt(); } int m = arr[0]; int f = arr[1]; int r = arr[2]; int s = m + f; if (m == -1 && f == -1 && r == -1) { break; } else if (m == -1 || f == -1){ System.out.println("F"); } else if (s >= 80){ System.out.println("A"); } else if (s >= 65 && s < 80 ){ System.out.println("B"); } else if (s >= 50 && s < 65 ){ System.out.println("C"); } else if (s >= 30 && s < 50 ){ if (r >= 50) { System.out.println("C"); } else { System.out.println("D"); } } else if ( s < 30 ){ System.out.println("F"); } }while(true); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 4, 18, 13, 4, 18, 13, 14, 4, 18, 4, 18, 13, 2, 4, 18, 13, 17, 17, 30, 3, 41, 13, 20, 2, 4, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 18, 18, 13, 13, 13, 17, 1, 40, 13, 30, 30, 0, 13, 18, 18, 13, 13, 13, 14, 2, 2, 18, 18, 13, 13, 17, 40, 17, 2, 18, 18, 13, 13, 17, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 14, 2, 18, 18, 13, 13, 17, 17, 30, 4, 18, 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 ], [ 245, 8 ], [ 245, 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 ], [ 22, 23 ], [ 21, 24 ], [ 24, 25 ], [ 25, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 33, 37 ], [ 28, 38 ], [ 27, 39 ], [ 39, 40 ], [ 11, 41 ], [ 41, 42 ], [ 41, 43 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 44, 48 ], [ 11, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 57, 61 ], [ 50, 62 ], [ 62, 63 ], [ 63, 64 ], [ 50, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 66, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 66, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 79, 89 ], [ 89, 90 ], [ 90, 91 ], [ 79, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 103, 105 ], [ 11, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 106, 116 ], [ 116, 117 ], [ 117, 118 ], [ 106, 119 ], [ 120, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 131, 137 ], [ 124, 138 ], [ 138, 139 ], [ 139, 140 ], [ 124, 141 ], [ 142, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 120, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 152, 158 ], [ 158, 159 ], [ 151, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 160, 166 ], [ 166, 167 ], [ 150, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 169, 174 ], [ 150, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 175, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 180, 185 ], [ 175, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 191, 196 ], [ 186, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 197, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 202, 207 ], [ 197, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 214, 220 ], [ 213, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 222, 227 ], [ 213, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 229, 234 ], [ 208, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 236, 241 ], [ 9, 242 ], [ 242, 243 ], [ 0, 244 ], [ 244, 245 ], [ 244, 246 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//-1 -1 -1?????\\?????????????????§??°?????????\n\t\twhile(true) {\n\t\t\t\n\t\t\t//list???????´???????\n\t\t\tlist.add(sc.nextLine());\n\t\t\tif(list.get(list.size() - 1).equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±???int???????????????2?¬??????????????§?????????????\n\t\tint [][] data = new int[list.size() - 1][3];\n\t\tfor(int i = 0; i < list.size() - 1; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \");\n\t\t\tfor(int j = 0; j < ary.length; j++) {\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//???????????¨?????????\n\t\tfor(int i = 0; i < data.length; i++) {\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < data[i].length - 1; j++) {\n\t\t\t\tsum += data[i][j];\n\t\t\t}\n\t\t\tif(data[i][0] == -1 || data[i][1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//-1 -1 -1?????\\?????????????????§??°?????????\n\t\twhile(true) {\n\t\t\t\n\t\t\t//list???????´???????\n\t\t\tlist.add(sc.nextLine());\n\t\t\tif(list.get(list.size() - 1).equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±???int???????????????2?¬??????????????§?????????????\n\t\tint [][] data = new int[list.size() - 1][3];\n\t\tfor(int i = 0; i < list.size() - 1; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \");\n\t\t\tfor(int j = 0; j < ary.length; j++) {\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//???????????¨?????????\n\t\tfor(int i = 0; i < data.length; i++) {\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < data[i].length - 1; j++) {\n\t\t\t\tsum += data[i][j];\n\t\t\t}\n\t\t\tif(data[i][0] == -1 || data[i][1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//-1 -1 -1?????\\?????????????????§??°?????????\n\t\twhile(true) {\n\t\t\t\n\t\t\t//list???????´???????\n\t\t\tlist.add(sc.nextLine());\n\t\t\tif(list.get(list.size() - 1).equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±???int???????????????2?¬??????????????§?????????????\n\t\tint [][] data = new int[list.size() - 1][3];\n\t\tfor(int i = 0; i < list.size() - 1; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \");\n\t\t\tfor(int j = 0; j < ary.length; j++) {\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//???????????¨?????????\n\t\tfor(int i = 0; i < data.length; i++) {\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < data[i].length - 1; j++) {\n\t\t\t\tsum += data[i][j];\n\t\t\t}\n\t\t\tif(data[i][0] == -1 || data[i][1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//-1 -1 -1?????\\?????????????????§??°?????????\n\t\twhile(true) {\n\t\t\t\n\t\t\t//list???????´???????\n\t\t\tlist.add(sc.nextLine());\n\t\t\tif(list.get(list.size() - 1).equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±???int???????????????2?¬??????????????§?????????????\n\t\tint [][] data = new int[list.size() - 1][3];\n\t\tfor(int i = 0; i < list.size() - 1; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \");\n\t\t\tfor(int j = 0; j < ary.length; j++) {\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//???????????¨?????????\n\t\tfor(int i = 0; i < data.length; i++) {\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < data[i].length - 1; j++) {\n\t\t\t\tsum += data[i][j];\n\t\t\t}\n\t\t\tif(data[i][0] == -1 || data[i][1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<String> list = new ArrayList<String>();", "list", "new ArrayList<String>()", "while(true) {\n\t\t\t\n\t\t\t//list???????´???????\n\t\t\tlist.add(sc.nextLine());\n\t\t\tif(list.get(list.size() - 1).equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\t\n\t\t\t//list???????´???????\n\t\t\tlist.add(sc.nextLine());\n\t\t\tif(list.get(list.size() - 1).equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "list.add(sc.nextLine())", "list.add", "list", "sc.nextLine()", "sc.nextLine", "sc", "if(list.get(list.size() - 1).equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}", "list.get(list.size() - 1).equals(\"-1 -1 -1\")", "list.get(list.size() - 1).equals", "list.get(list.size() - 1)", "list.get", "list", "list.size() - 1", "list.size()", "list.size", "list", "1", "\"-1 -1 -1\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int [][] data = new int[list.size() - 1][3];", "data", "new int[list.size() - 1][3]", "list.size() - 1", "list.size()", "list.size", "list", "1", "3", "for(int i = 0; i < list.size() - 1; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \");\n\t\t\tfor(int j = 0; j < ary.length; j++) {\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < list.size() - 1", "i", "list.size() - 1", "list.size()", "list.size", "list", "1", "i++", "i++", "i", "{\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \");\n\t\t\tfor(int j = 0; j < ary.length; j++) {\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}", "{\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \");\n\t\t\tfor(int j = 0; j < ary.length; j++) {\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}", "String s = list.get(i);", "s", "list.get(i)", "list.get", "list", "i", "String [] ary = s.split(\" \");", "ary", "s.split(\" \")", "s.split", "s", "\" \"", "for(int j = 0; j < ary.length; j++) {\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < ary.length", "j", "ary.length", "ary", "ary.length", "j++", "j++", "j", "{\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}", "{\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}", "data[i][j] = Integer.parseInt(ary[j])", "data[i][j]", "data[i]", "data", "i", "j", "Integer.parseInt(ary[j])", "Integer.parseInt", "Integer", "ary[j]", "ary", "j", "for(int i = 0; i < data.length; i++) {\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < data[i].length - 1; j++) {\n\t\t\t\tsum += data[i][j];\n\t\t\t}\n\t\t\tif(data[i][0] == -1 || data[i][1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < data.length", "i", "data.length", "data", "data.length", "i++", "i++", "i", "{\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < data[i].length - 1; j++) {\n\t\t\t\tsum += data[i][j];\n\t\t\t}\n\t\t\tif(data[i][0] == -1 || data[i][1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "{\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < data[i].length - 1; j++) {\n\t\t\t\tsum += data[i][j];\n\t\t\t}\n\t\t\tif(data[i][0] == -1 || data[i][1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "int sum = 0;", "sum", "0", "for(int j = 0; j < data[i].length - 1; j++) {\n\t\t\t\tsum += data[i][j];\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < data[i].length - 1", "j", "data[i].length - 1", "data[i].length", "data[i]", "data", "i", "data[i].length", "1", "j++", "j++", "j", "{\n\t\t\t\tsum += data[i][j];\n\t\t\t}", "{\n\t\t\t\tsum += data[i][j];\n\t\t\t}", "sum += data[i][j]", "sum", "data[i][j]", "data[i]", "data", "i", "j", "if(data[i][0] == -1 || data[i][1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "data[i][0] == -1 || data[i][1] == -1", "data[i][0] == -1", "data[i][0]", "data[i]", "data", "i", "0", "-1", "1", "data[i][1] == -1", "data[i][1]", "data[i]", "data", "i", "1", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "sum >= 80", "sum", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "sum >= 65", "sum", "65", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "sum >= 50", "sum", "50", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "sum >= 30", "sum", "30", "{\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}", "if(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "data[i][2] >= 50", "data[i][2]", "data[i]", "data", "i", "2", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//-1 -1 -1?????\\?????????????????§??°?????????\n\t\twhile(true) {\n\t\t\t\n\t\t\t//list???????´???????\n\t\t\tlist.add(sc.nextLine());\n\t\t\tif(list.get(list.size() - 1).equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±???int???????????????2?¬??????????????§?????????????\n\t\tint [][] data = new int[list.size() - 1][3];\n\t\tfor(int i = 0; i < list.size() - 1; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \");\n\t\t\tfor(int j = 0; j < ary.length; j++) {\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//???????????¨?????????\n\t\tfor(int i = 0; i < data.length; i++) {\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < data[i].length - 1; j++) {\n\t\t\t\tsum += data[i][j];\n\t\t\t}\n\t\t\tif(data[i][0] == -1 || data[i][1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//-1 -1 -1?????\\?????????????????§??°?????????\n\t\twhile(true) {\n\t\t\t\n\t\t\t//list???????´???????\n\t\t\tlist.add(sc.nextLine());\n\t\t\tif(list.get(list.size() - 1).equals(\"-1 -1 -1\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//?????±???int???????????????2?¬??????????????§?????????????\n\t\tint [][] data = new int[list.size() - 1][3];\n\t\tfor(int i = 0; i < list.size() - 1; i++) {\n\t\t\tString s = list.get(i);\n\t\t\tString [] ary = s.split(\" \");\n\t\t\tfor(int j = 0; j < ary.length; j++) {\n\t\t\t\tdata[i][j] = Integer.parseInt(ary[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//???????????¨?????????\n\t\tfor(int i = 0; i < data.length; i++) {\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < data[i].length - 1; j++) {\n\t\t\t\tsum += data[i][j];\n\t\t\t}\n\t\t\tif(data[i][0] == -1 || data[i][1] == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if(sum >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(sum >= 65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(sum >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(sum >= 30){\n\t\t\t\tif(data[i][2] >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<String> list = new ArrayList<String>(); //-1 -1 -1?????\?????????????????§??°????????? while(true) { //list???????´??????? list.add(sc.nextLine()); if(list.get(list.size() - 1).equals("-1 -1 -1")) { break; } } //?????±???int???????????????2?¬??????????????§????????????? int [][] data = new int[list.size() - 1][3]; for(int i = 0; i < list.size() - 1; i++) { String s = list.get(i); String [] ary = s.split(" "); for(int j = 0; j < ary.length; j++) { data[i][j] = Integer.parseInt(ary[j]); } } //???????????¨????????? for(int i = 0; i < data.length; i++) { int sum = 0; for(int j = 0; j < data[i].length - 1; j++) { sum += data[i][j]; } if(data[i][0] == -1 || data[i][1] == -1) { System.out.println("F"); }else if(sum >= 80) { System.out.println("A"); }else if(sum >= 65) { System.out.println("B"); }else if(sum >= 50) { System.out.println("C"); }else if(sum >= 30){ if(data[i][2] >= 50){ System.out.println("C"); }else { System.out.println("D"); } }else { System.out.println("F"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 4, 18, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 4, 18, 13, 8, 2, 13, 17, 17, 17, 4, 18, 13, 17, 4, 18, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 164, 14 ], [ 164, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 164, 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 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 43, 48 ], [ 40, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 40, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 40, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 40, 73 ], [ 73, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 75, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 73, 88 ], [ 40, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 90, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 89, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 103, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 103, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 113, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 123, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 133, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 142, 147 ], [ 133, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 23, 152 ], [ 152, 153 ], [ 153, 154 ], [ 164, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 155, 161 ], [ 161, 162 ], [ 0, 163 ], [ 163, 164 ], [ 163, 165 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n\npublic class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString[] s;\n \tint m,f,r;\n \twhile(true) {\n \t\ts = br.readLine().split(\" \");\n \t\tm = Integer.parseInt(s[0]);\n f = Integer.parseInt(s[1]);\n r = Integer.parseInt(s[2]);\n if(m == -1 && f == -1 && r == -1)\n \tbreak;\n if(m == -1 || f == -1)\n \tout.println(\"F\");\n else if (m + f >= 80)\n \tout.println(\"A\");\n else if (m + f >= 65)\n \tout.println(\"B\");\n else if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");\n \t}\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "public class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString[] s;\n \tint m,f,r;\n \twhile(true) {\n \t\ts = br.readLine().split(\" \");\n \t\tm = Integer.parseInt(s[0]);\n f = Integer.parseInt(s[1]);\n r = Integer.parseInt(s[2]);\n if(m == -1 && f == -1 && r == -1)\n \tbreak;\n if(m == -1 || f == -1)\n \tout.println(\"F\");\n else if (m + f >= 80)\n \tout.println(\"A\");\n else if (m + f >= 65)\n \tout.println(\"B\");\n else if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");\n \t}\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "Main", "public static final String EOL = System.getProperty(\"line.separator\");", "EOL", "System.getProperty(\"line.separator\")", "System.getProperty", "System", "\"line.separator\"", "public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString[] s;\n \tint m,f,r;\n \twhile(true) {\n \t\ts = br.readLine().split(\" \");\n \t\tm = Integer.parseInt(s[0]);\n f = Integer.parseInt(s[1]);\n r = Integer.parseInt(s[2]);\n if(m == -1 && f == -1 && r == -1)\n \tbreak;\n if(m == -1 || f == -1)\n \tout.println(\"F\");\n else if (m + f >= 80)\n \tout.println(\"A\");\n else if (m + f >= 65)\n \tout.println(\"B\");\n else if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");\n \t}\n out.flush();\n }", "exec", "{\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString[] s;\n \tint m,f,r;\n \twhile(true) {\n \t\ts = br.readLine().split(\" \");\n \t\tm = Integer.parseInt(s[0]);\n f = Integer.parseInt(s[1]);\n r = Integer.parseInt(s[2]);\n if(m == -1 && f == -1 && r == -1)\n \tbreak;\n if(m == -1 || f == -1)\n \tout.println(\"F\");\n else if (m + f >= 80)\n \tout.println(\"A\");\n else if (m + f >= 65)\n \tout.println(\"B\");\n else if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");\n \t}\n out.flush();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "String[] s;", "s", "int m", "m", "f", "f", "r;", "r", "while(true) {\n \t\ts = br.readLine().split(\" \");\n \t\tm = Integer.parseInt(s[0]);\n f = Integer.parseInt(s[1]);\n r = Integer.parseInt(s[2]);\n if(m == -1 && f == -1 && r == -1)\n \tbreak;\n if(m == -1 || f == -1)\n \tout.println(\"F\");\n else if (m + f >= 80)\n \tout.println(\"A\");\n else if (m + f >= 65)\n \tout.println(\"B\");\n else if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");\n \t}", "true", "{\n \t\ts = br.readLine().split(\" \");\n \t\tm = Integer.parseInt(s[0]);\n f = Integer.parseInt(s[1]);\n r = Integer.parseInt(s[2]);\n if(m == -1 && f == -1 && r == -1)\n \tbreak;\n if(m == -1 || f == -1)\n \tout.println(\"F\");\n else if (m + f >= 80)\n \tout.println(\"A\");\n else if (m + f >= 65)\n \tout.println(\"B\");\n else if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");\n \t}", "s = br.readLine().split(\" \")", "s", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "m = Integer.parseInt(s[0])", "m", "Integer.parseInt(s[0])", "Integer.parseInt", "Integer", "s[0]", "s", "0", "f = Integer.parseInt(s[1])", "f", "Integer.parseInt(s[1])", "Integer.parseInt", "Integer", "s[1]", "s", "1", "r = Integer.parseInt(s[2])", "r", "Integer.parseInt(s[2])", "Integer.parseInt", "Integer", "s[2]", "s", "2", "if(m == -1 && f == -1 && r == -1)\n \tbreak;", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "break;", "if(m == -1 || f == -1)\n \tout.println(\"F\");\n else if (m + f >= 80)\n \tout.println(\"A\");\n else if (m + f >= 65)\n \tout.println(\"B\");\n else if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "out.println(\"F\")", "out.println", "out", "\"F\"", "if (m + f >= 80)\n \tout.println(\"A\");\n else if (m + f >= 65)\n \tout.println(\"B\");\n else if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");", "m + f >= 80", "m + f", "m", "f", "80", "out.println(\"A\")", "out.println", "out", "\"A\"", "if (m + f >= 65)\n \tout.println(\"B\");\n else if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");", "m + f >= 65", "m + f", "m", "f", "65", "out.println(\"B\")", "out.println", "out", "\"B\"", "if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");", "m + f >= 50", "m + f", "m", "f", "50", "out.println(\"C\")", "out.println", "out", "\"C\"", "if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");", "m + f >= 30", "m + f", "m", "f", "30", "out.println(r>=50 ? \"C\" : \"D\")", "out.println", "out", "r>=50 ? \"C\" : \"D\"", "r>=50", "r", "50", "\"C\"", "\"D\"", "out.println(\"F\")", "out.println", "out", "\"F\"", "out.flush()", "out.flush", "out", "public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }", "main", "{\n \tnew Main().exec();\n }", "new Main().exec()", "new Main().exec", "new Main()", "String[] args", "args", "public class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString[] s;\n \tint m,f,r;\n \twhile(true) {\n \t\ts = br.readLine().split(\" \");\n \t\tm = Integer.parseInt(s[0]);\n f = Integer.parseInt(s[1]);\n r = Integer.parseInt(s[2]);\n if(m == -1 && f == -1 && r == -1)\n \tbreak;\n if(m == -1 || f == -1)\n \tout.println(\"F\");\n else if (m + f >= 80)\n \tout.println(\"A\");\n else if (m + f >= 65)\n \tout.println(\"B\");\n else if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");\n \t}\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "public class Main {\n\tpublic static final String EOL = System.getProperty(\"line.separator\");\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString[] s;\n \tint m,f,r;\n \twhile(true) {\n \t\ts = br.readLine().split(\" \");\n \t\tm = Integer.parseInt(s[0]);\n f = Integer.parseInt(s[1]);\n r = Integer.parseInt(s[2]);\n if(m == -1 && f == -1 && r == -1)\n \tbreak;\n if(m == -1 || f == -1)\n \tout.println(\"F\");\n else if (m + f >= 80)\n \tout.println(\"A\");\n else if (m + f >= 65)\n \tout.println(\"B\");\n else if (m + f >= 50)\n \tout.println(\"C\");\n else if (m + f >= 30)\n \tout.println(r>=50 ? \"C\" : \"D\");\n else\n \tout.println(\"F\");\n \t}\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; public class Main { public static final String EOL = System.getProperty("line.separator"); public void exec() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); String[] s; int m,f,r; while(true) { s = br.readLine().split(" "); m = Integer.parseInt(s[0]); f = Integer.parseInt(s[1]); r = Integer.parseInt(s[2]); if(m == -1 && f == -1 && r == -1) break; if(m == -1 || f == -1) out.println("F"); else if (m + f >= 80) out.println("A"); else if (m + f >= 65) out.println("B"); else if (m + f >= 50) out.println("C"); else if (m + f >= 30) out.println(r>=50 ? "C" : "D"); else out.println("F"); } out.flush(); } public static void main(String[] args) throws IOException { new Main().exec(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 41, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 17, 30, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 151, 17 ], [ 151, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 29, 34 ], [ 26, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 26, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 26, 59 ], [ 59, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 61, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 59, 74 ], [ 74, 75 ], [ 26, 76 ], [ 76, 77 ], [ 26, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 78, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 106, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 114, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 122, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 26, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 18, 148 ], [ 148, 149 ], [ 0, 150 ], [ 150, 151 ], [ 150, 152 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.HashMap;\n\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n//\t\tfor(int i = 0; i < n; i++){\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(tmpArray[0]);\n\t\t\tint f = Integer.parseInt(tmpArray[1]);\n\t\t\tint r = Integer.parseInt(tmpArray[2]);\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString grade;\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tgrade =\"F\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(sum >= 80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(grade);\n\t\t\t\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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\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.HashMap;", "HashMap", "java.util", "public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n//\t\tfor(int i = 0; i < n; i++){\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(tmpArray[0]);\n\t\t\tint f = Integer.parseInt(tmpArray[1]);\n\t\t\tint r = Integer.parseInt(tmpArray[2]);\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString grade;\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tgrade =\"F\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(sum >= 80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(grade);\n\t\t\t\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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\n}", "Main", "/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n//\t\tfor(int i = 0; i < n; i++){\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(tmpArray[0]);\n\t\t\tint f = Integer.parseInt(tmpArray[1]);\n\t\t\tint r = Integer.parseInt(tmpArray[2]);\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString grade;\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tgrade =\"F\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(sum >= 80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(grade);\n\t\t\t\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n//\t\tfor(int i = 0; i < n; i++){\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(tmpArray[0]);\n\t\t\tint f = Integer.parseInt(tmpArray[1]);\n\t\t\tint r = Integer.parseInt(tmpArray[2]);\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString grade;\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tgrade =\"F\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(sum >= 80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(grade);\n\t\t\t\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(tmpArray[0]);\n\t\t\tint f = Integer.parseInt(tmpArray[1]);\n\t\t\tint r = Integer.parseInt(tmpArray[2]);\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString grade;\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tgrade =\"F\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(sum >= 80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(grade);\n\t\t\t\n\t\t}", "true", "{\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(tmpArray[0]);\n\t\t\tint f = Integer.parseInt(tmpArray[1]);\n\t\t\tint r = Integer.parseInt(tmpArray[2]);\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString grade;\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tgrade =\"F\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(sum >= 80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(grade);\n\t\t\t\n\t\t}", "String[] tmpArray = br.readLine().split(\" \");", "tmpArray", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int m = Integer.parseInt(tmpArray[0]);", "m", "Integer.parseInt(tmpArray[0])", "Integer.parseInt", "Integer", "tmpArray[0]", "tmpArray", "0", "int f = Integer.parseInt(tmpArray[1]);", "f", "Integer.parseInt(tmpArray[1])", "Integer.parseInt", "Integer", "tmpArray[1]", "tmpArray", "1", "int r = Integer.parseInt(tmpArray[2]);", "r", "Integer.parseInt(tmpArray[2])", "Integer.parseInt", "Integer", "tmpArray[2]", "tmpArray", "2", "if(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String grade;", "grade", "if(m == -1 || f == -1){\n\t\t\t\tgrade =\"F\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(sum >= 80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\tgrade =\"F\";\n\t\t\t}", "grade =\"F\"", "grade", "\"F\"", "{\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(sum >= 80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}", "int sum = m + f;", "sum", "m + f", "m", "f", "if(sum >= 80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}", "sum >= 80", "sum", "80", "{\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}", "grade = \"A\"", "grade", "\"A\"", "if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}", "sum >= 65", "sum", "65", "{\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}", "grade = \"B\"", "grade", "\"B\"", "if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}", "sum >= 50", "sum", "50", "{\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}", "grade = \"C\"", "grade", "\"C\"", "if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}", "sum >= 30", "sum", "30", "{\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}", "grade = \"D\"", "grade", "\"D\"", "if(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}", "grade = \"C\"", "grade", "\"C\"", "{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}", "grade = \"F\"", "grade", "\"F\"", "System.out.println(grade)", "System.out.println", "System.out", "System", "System.out", "grade", "String[] args", "args", "public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n//\t\tfor(int i = 0; i < n; i++){\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(tmpArray[0]);\n\t\t\tint f = Integer.parseInt(tmpArray[1]);\n\t\t\tint r = Integer.parseInt(tmpArray[2]);\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString grade;\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tgrade =\"F\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(sum >= 80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(grade);\n\t\t\t\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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\n}", "public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\t\t//String[] tmpArray = br.readLine().split(\" \");\n\t\t//int[] input = new int[n];\n//\t\tfor(int i = 0; i < n; i++){\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(tmpArray[0]);\n\t\t\tint f = Integer.parseInt(tmpArray[1]);\n\t\t\tint r = Integer.parseInt(tmpArray[2]);\n//\t\t\tint v = Integer.parseInt(tmpArray[3]);\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString grade;\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tgrade =\"F\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint sum = m + f;\n\t\t\t\tif(sum >= 80){\n\t\t\t\t\tgrade = \"A\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 65){\n\t\t\t\t\tgrade = \"B\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 50){\n\t\t\t\t\tgrade = \"C\";\n\t\t\t\t}\n\t\t\t\telse if(sum >= 30){\n\t\t\t\t\tgrade = \"D\";\n\t\t\t\t\tif(r >= 50){\n\t\t\t\t\t\tgrade = \"C\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tgrade = \"F\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(grade);\n\t\t\t\n\t\t}\n\t\t\t\n//\t\tSystem.out.print(input[0]);\n//\t\tfor(int i = 1 ; i < n; i++){\n//\t\t\tSystem.out.print(\" \"+ input[i]);\n//\t\t}\n//\t\tSystem.out.println();\n////\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\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\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.HashMap; public class Main { /** * @param args * @throws IOException * @throws NumberFormatException */ public static void main(String[] args) throws NumberFormatException, IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // String[] tmpArray = br.readLine().split(" "); // int n = Integer.parseInt(tmpArray[0]); // int m = Integer.parseInt(tmpArray[1]); // int c = Integer.parseInt(tmpArray[2]); // int y = Integer.parseInt(tmpArray[3]); // int r = Integer.parseInt(tmpArray[4]); //String[] tmpArray = br.readLine().split(" "); //int[] input = new int[n]; // for(int i = 0; i < n; i++){ while(true){ String[] tmpArray = br.readLine().split(" "); int m = Integer.parseInt(tmpArray[0]); int f = Integer.parseInt(tmpArray[1]); int r = Integer.parseInt(tmpArray[2]); // int v = Integer.parseInt(tmpArray[3]); if(m == -1 && f == -1 && r == -1){ break; } String grade; if(m == -1 || f == -1){ grade ="F"; } else { int sum = m + f; if(sum >= 80){ grade = "A"; } else if(sum >= 65){ grade = "B"; } else if(sum >= 50){ grade = "C"; } else if(sum >= 30){ grade = "D"; if(r >= 50){ grade = "C"; } } else{ grade = "F"; } } System.out.println(grade); } // System.out.print(input[0]); // for(int i = 1 ; i < n; i++){ // System.out.print(" "+ input[i]); // } // System.out.println(); //// // Arrays.sort(input); // System.out.printf("%d %d %d\n", input[0], input[input.length - 1], sum); // // while(true){ // String[] tmpArray = br.readLine().split(" "); // int a = Integer.parseInt(tmpArray[0]); // int b = Integer.parseInt(tmpArray[1]); // if(a == 0 && b == 0){ // break; // } // // for(int i = 0; i < a; i++){ // for(int j = 0; j < b; j++){ // if((i + j)%2 == 1){ // System.out.print("."); // } // else{ // System.out.print("#"); // } // } // System.out.println(); // } // System.out.println(); // } // int[] array = new int[3]; // array[0] = a; array[1] = b; array[2] = c; // // Arrays.sort(array); // System.out.printf("%d %d %d\n", array[0], array[1], array[2]); /* if(a < b && b < c){ System.out.println("Yes"); } else{ System.out.println("No"); }*/ } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 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 ], [ 138, 5 ], [ 138, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 45, 46 ], [ 14, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 47, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 64, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 64, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 77, 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 ], [ 105, 107 ], [ 104, 108 ], [ 103, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 110, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 103, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 6, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m==-1 && f==-1 && r==-1){\n break;\n }\n\n if(m==-1 || f==-1){\n System.out.printf(\"F\\n\");\n }else if(m+f>=80){\n System.out.printf(\"A\\n\");\n }else if(m+f>=65){\n System.out.printf(\"B\\n\");\n }else if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m==-1 && f==-1 && r==-1){\n break;\n }\n\n if(m==-1 || f==-1){\n System.out.printf(\"F\\n\");\n }else if(m+f>=80){\n System.out.printf(\"A\\n\");\n }else if(m+f>=65){\n System.out.printf(\"B\\n\");\n }else if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m==-1 && f==-1 && r==-1){\n break;\n }\n\n if(m==-1 || f==-1){\n System.out.printf(\"F\\n\");\n }else if(m+f>=80){\n System.out.printf(\"A\\n\");\n }else if(m+f>=65){\n System.out.printf(\"B\\n\");\n }else if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m==-1 && f==-1 && r==-1){\n break;\n }\n\n if(m==-1 || f==-1){\n System.out.printf(\"F\\n\");\n }else if(m+f>=80){\n System.out.printf(\"A\\n\");\n }else if(m+f>=65){\n System.out.printf(\"B\\n\");\n }else if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m==-1 && f==-1 && r==-1){\n break;\n }\n\n if(m==-1 || f==-1){\n System.out.printf(\"F\\n\");\n }else if(m+f>=80){\n System.out.printf(\"A\\n\");\n }else if(m+f>=65){\n System.out.printf(\"B\\n\");\n }else if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }\n }", "true", "{\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m==-1 && f==-1 && r==-1){\n break;\n }\n\n if(m==-1 || f==-1){\n System.out.printf(\"F\\n\");\n }else if(m+f>=80){\n System.out.printf(\"A\\n\");\n }else if(m+f>=65){\n System.out.printf(\"B\\n\");\n }else if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }\n }", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if(m==-1 && f==-1 && r==-1){\n break;\n }", "m==-1 && f==-1 && r==-1", "m==-1 && f==-1 && r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "{\n break;\n }", "break;", "if(m==-1 || f==-1){\n System.out.printf(\"F\\n\");\n }else if(m+f>=80){\n System.out.printf(\"A\\n\");\n }else if(m+f>=65){\n System.out.printf(\"B\\n\");\n }else if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }", "m==-1 || f==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "{\n System.out.printf(\"F\\n\");\n }", "System.out.printf(\"F\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"F\\n\"", "if(m+f>=80){\n System.out.printf(\"A\\n\");\n }else if(m+f>=65){\n System.out.printf(\"B\\n\");\n }else if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }", "m+f>=80", "m+f", "m", "f", "80", "{\n System.out.printf(\"A\\n\");\n }", "System.out.printf(\"A\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"A\\n\"", "if(m+f>=65){\n System.out.printf(\"B\\n\");\n }else if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }", "m+f>=65", "m+f", "m", "f", "65", "{\n System.out.printf(\"B\\n\");\n }", "System.out.printf(\"B\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"B\\n\"", "if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }", "m+f>=50", "m+f", "m", "f", "50", "{\n System.out.printf(\"C\\n\");\n }", "System.out.printf(\"C\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"C\\n\"", "if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }", "m+f>=30", "m+f", "m", "f", "30", "{\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }", "if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }", "r>=50", "r", "50", "{\n System.out.printf(\"C\\n\");\n }", "System.out.printf(\"C\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"C\\n\"", "{\n System.out.printf(\"D\\n\");\n }", "System.out.printf(\"D\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"D\\n\"", "{\n System.out.printf(\"F\\n\");\n }", "System.out.printf(\"F\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"F\\n\"", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m==-1 && f==-1 && r==-1){\n break;\n }\n\n if(m==-1 || f==-1){\n System.out.printf(\"F\\n\");\n }else if(m+f>=80){\n System.out.printf(\"A\\n\");\n }else if(m+f>=65){\n System.out.printf(\"B\\n\");\n }else if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m==-1 && f==-1 && r==-1){\n break;\n }\n\n if(m==-1 || f==-1){\n System.out.printf(\"F\\n\");\n }else if(m+f>=80){\n System.out.printf(\"A\\n\");\n }else if(m+f>=65){\n System.out.printf(\"B\\n\");\n }else if(m+f>=50){\n System.out.printf(\"C\\n\");\n }else if(m+f>=30){\n if(r>=50){\n System.out.printf(\"C\\n\");\n }else{\n System.out.printf(\"D\\n\");\n }\n }else{\n System.out.printf(\"F\\n\");\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); if(m==-1 && f==-1 && r==-1){ break; } if(m==-1 || f==-1){ System.out.printf("F\n"); }else if(m+f>=80){ System.out.printf("A\n"); }else if(m+f>=65){ System.out.printf("B\n"); }else if(m+f>=50){ System.out.printf("C\n"); }else if(m+f>=30){ if(r>=50){ System.out.printf("C\n"); }else{ System.out.printf("D\n"); } }else{ System.out.printf("F\n"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 13, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 31, 37 ], [ 37, 38 ], [ 30, 39 ], [ 39, 40 ], [ 30, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 41, 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 ], [ 58, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 71, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 71, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 84, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 104, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 97, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 6, 129 ], [ 129, 130 ] ]
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tif((m+f+r) == -3){\n\t\t\t\tbreak;\n\t\t\t}else if(m==-1 || f ==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if((m+f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if((m+f) >= 65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if((m+f) >= 50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tif((m+f+r) == -3){\n\t\t\t\tbreak;\n\t\t\t}else if(m==-1 || f ==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if((m+f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if((m+f) >= 65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if((m+f) >= 50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tif((m+f+r) == -3){\n\t\t\t\tbreak;\n\t\t\t}else if(m==-1 || f ==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if((m+f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if((m+f) >= 65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if((m+f) >= 50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint m = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tif((m+f+r) == -3){\n\t\t\t\tbreak;\n\t\t\t}else if(m==-1 || f ==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if((m+f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if((m+f) >= 65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if((m+f) >= 50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "while (true) {\n\t\t\tint m = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tif((m+f+r) == -3){\n\t\t\t\tbreak;\n\t\t\t}else if(m==-1 || f ==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if((m+f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if((m+f) >= 65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if((m+f) >= 50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}", "true", "{\n\t\t\tint m = stdIn.nextInt();\n\t\t\tint f = stdIn.nextInt();\n\t\t\tint r = stdIn.nextInt();\n\t\t\tif((m+f+r) == -3){\n\t\t\t\tbreak;\n\t\t\t}else if(m==-1 || f ==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if((m+f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if((m+f) >= 65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if((m+f) >= 50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\n\t\t}", "int m = stdIn.nextInt();", "m", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int f = stdIn.nextInt();", "f", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int r = stdIn.nextInt();", "r", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "if((m+f+r) == -3){\n\t\t\t\tbreak;\n\t\t\t}else if(m==-1 || f ==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if((m+f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if((m+f) >= 65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if((m+f) >= 50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "(m+f+r) == -3", "(m+f+r)", "m+f+r", "m", "f", "r", "-3", "3", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(m==-1 || f ==-1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}else if((m+f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if((m+f) >= 65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if((m+f) >= 50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m==-1 || f ==-1", "m==-1", "m", "-1", "1", "f ==-1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if((m+f) >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if((m+f) >= 65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if((m+f) >= 50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "(m+f) >= 80", "(m+f)", "m", "f", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if((m+f) >= 65){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if((m+f) >= 50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "(m+f) >= 65", "(m+f)", "m", "f", "65", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if((m+f) >= 50){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "(m+f) >= 50", "(m+f)", "m", "f", "50", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if((m+f) >= 30){\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "(m+f) >= 30", "(m+f)", "m", "f", "30", "{\n\t\t\t\tif (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}", "if (r >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); while (true) { int m = stdIn.nextInt(); int f = stdIn.nextInt(); int r = stdIn.nextInt(); if((m+f+r) == -3){ break; }else if(m==-1 || f ==-1){ System.out.println("F"); }else if((m+f) >= 80){ System.out.println("A"); }else if((m+f) >= 65){ System.out.println("B"); }else if((m+f) >= 50){ System.out.println("C"); }else if((m+f) >= 30){ if (r >= 50) { System.out.println("C"); }else{ System.out.println("D"); } }else{ System.out.println("F"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 42, 17, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 4, 18, 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, 14, 2, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 3, 14, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 30, 0, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 14, 2, 18, 13, 17, 17, 30, 0, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 17, 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 ], [ 199, 11 ], [ 199, 12 ], [ 12, 13 ], [ 12, 14 ], [ 199, 15 ], [ 15, 16 ], [ 15, 17 ], [ 199, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 28 ], [ 28, 29 ], [ 28, 30 ], [ 20, 32 ], [ 32, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 37, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 47, 52 ], [ 44, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 75, 77 ], [ 44, 78 ], [ 78, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 80, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 80, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 78, 99 ], [ 44, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 101, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 100, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 100, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 124, 126 ], [ 119, 127 ], [ 118, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 118, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 138, 140 ], [ 133, 141 ], [ 132, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 132, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 152, 154 ], [ 147, 155 ], [ 146, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 146, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 166, 167 ], [ 166, 168 ], [ 161, 169 ], [ 160, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 171, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 171, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 160, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 44, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 189, 194 ], [ 189, 195 ], [ 18, 196 ], [ 196, 197 ], [ 0, 198 ], [ 198, 199 ], [ 198, 200 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer[] = new String[3];\n\t\tint array[] = new int[3];\n\t\tString ans;\n\n\t\twhile(true){\n\n\n\t\t\ttry {\n\t\t\t\tbuffer = br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int i = 0; i < buffer.length; i++){\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}\n\t\t\t\tif(array[0] == -1 && array[1] == -1 && array[2] == -1)break;\n\n\t\t\t\tif(array[0] == -1 || array[1] == -1){\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}else if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%s\\n\", ans);\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}\n\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer[] = new String[3];\n\t\tint array[] = new int[3];\n\t\tString ans;\n\n\t\twhile(true){\n\n\n\t\t\ttry {\n\t\t\t\tbuffer = br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int i = 0; i < buffer.length; i++){\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}\n\t\t\t\tif(array[0] == -1 && array[1] == -1 && array[2] == -1)break;\n\n\t\t\t\tif(array[0] == -1 || array[1] == -1){\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}else if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%s\\n\", ans);\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static final int BIG_NUM = 2000000000;", "BIG_NUM", "2000000000", "public static final int MOD = 1000000007;", "MOD", "1000000007", "public static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer[] = new String[3];\n\t\tint array[] = new int[3];\n\t\tString ans;\n\n\t\twhile(true){\n\n\n\t\t\ttry {\n\t\t\t\tbuffer = br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int i = 0; i < buffer.length; i++){\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}\n\t\t\t\tif(array[0] == -1 && array[1] == -1 && array[2] == -1)break;\n\n\t\t\t\tif(array[0] == -1 || array[1] == -1){\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}else if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%s\\n\", ans);\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer[] = new String[3];\n\t\tint array[] = new int[3];\n\t\tString ans;\n\n\t\twhile(true){\n\n\n\t\t\ttry {\n\t\t\t\tbuffer = br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int i = 0; i < buffer.length; i++){\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}\n\t\t\t\tif(array[0] == -1 && array[1] == -1 && array[2] == -1)break;\n\n\t\t\t\tif(array[0] == -1 || array[1] == -1){\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}else if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%s\\n\", ans);\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String buffer[] = new String[3];", "buffer", "new String[3]", "3", "int array[] = new int[3];", "array", "new int[3]", "3", "String ans;", "ans", "while(true){\n\n\n\t\t\ttry {\n\t\t\t\tbuffer = br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int i = 0; i < buffer.length; i++){\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}\n\t\t\t\tif(array[0] == -1 && array[1] == -1 && array[2] == -1)break;\n\n\t\t\t\tif(array[0] == -1 || array[1] == -1){\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}else if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%s\\n\", ans);\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "true", "{\n\n\n\t\t\ttry {\n\t\t\t\tbuffer = br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int i = 0; i < buffer.length; i++){\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}\n\t\t\t\tif(array[0] == -1 && array[1] == -1 && array[2] == -1)break;\n\n\t\t\t\tif(array[0] == -1 || array[1] == -1){\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}else if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%s\\n\", ans);\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "try {\n\t\t\t\tbuffer = br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int i = 0; i < buffer.length; i++){\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}\n\t\t\t\tif(array[0] == -1 && array[1] == -1 && array[2] == -1)break;\n\n\t\t\t\tif(array[0] == -1 || array[1] == -1){\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}else if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%s\\n\", ans);\n\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\tbuffer = br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int i = 0; i < buffer.length; i++){\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}\n\t\t\t\tif(array[0] == -1 && array[1] == -1 && array[2] == -1)break;\n\n\t\t\t\tif(array[0] == -1 || array[1] == -1){\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}else if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%s\\n\", ans);\n\n\t\t\t}", "buffer = br.readLine().split(\"\\\\s+\")", "buffer", "br.readLine().split(\"\\\\s+\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"\\\\s+\"", "for(int i = 0; i < buffer.length; i++){\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < buffer.length", "i", "buffer.length", "buffer", "buffer.length", "i++", "i++", "i", "{\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}", "{\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}", "array[i] = Integer.parseInt(buffer[i])", "array[i]", "array", "i", "Integer.parseInt(buffer[i])", "Integer.parseInt", "Integer", "buffer[i]", "buffer", "i", "if(array[0] == -1 && array[1] == -1 && array[2] == -1)break;", "array[0] == -1 && array[1] == -1 && array[2] == -1", "array[0] == -1 && array[1] == -1 && array[2] == -1", "array[0] == -1", "array[0]", "array", "0", "-1", "1", "array[1] == -1", "array[1]", "array", "1", "-1", "1", "array[2] == -1", "array[2]", "array", "2", "-1", "1", "break;", "if(array[0] == -1 || array[1] == -1){\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}else if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}", "array[0] == -1 || array[1] == -1", "array[0] == -1", "array[0]", "array", "0", "-1", "1", "array[1] == -1", "array[1]", "array", "1", "-1", "1", "{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}", "ans = \"F\"", "ans", "\"F\"", "if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}", "array[0]+array[1] >= 80", "array[0]+array[1]", "array[0]", "array", "0", "array[1]", "array", "1", "80", "{\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}", "ans = \"A\"", "ans", "\"A\"", "if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}", "array[0]+array[1] >= 65", "array[0]+array[1]", "array[0]", "array", "0", "array[1]", "array", "1", "65", "{\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}", "ans = \"B\"", "ans", "\"B\"", "if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}", "array[0]+array[1] >= 50", "array[0]+array[1]", "array[0]", "array", "0", "array[1]", "array", "1", "50", "{\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}", "ans = \"C\"", "ans", "\"C\"", "if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}", "array[0]+array[1] >= 30", "array[0]+array[1]", "array[0]", "array", "0", "array[1]", "array", "1", "30", "{\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}", "if(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}", "array[2] >= 50", "array[2]", "array", "2", "50", "{\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}", "ans = \"C\"", "ans", "\"C\"", "{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}", "ans = \"D\"", "ans", "\"D\"", "{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}", "ans = \"F\"", "ans", "\"F\"", "System.out.printf(\"%s\\n\", ans)", "System.out.printf", "System.out", "System", "System.out", "\"%s\\n\"", "ans", "String[] args", "args", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer[] = new String[3];\n\t\tint array[] = new int[3];\n\t\tString ans;\n\n\t\twhile(true){\n\n\n\t\t\ttry {\n\t\t\t\tbuffer = br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int i = 0; i < buffer.length; i++){\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}\n\t\t\t\tif(array[0] == -1 && array[1] == -1 && array[2] == -1)break;\n\n\t\t\t\tif(array[0] == -1 || array[1] == -1){\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}else if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%s\\n\", ans);\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer[] = new String[3];\n\t\tint array[] = new int[3];\n\t\tString ans;\n\n\t\twhile(true){\n\n\n\t\t\ttry {\n\t\t\t\tbuffer = br.readLine().split(\"\\\\s+\");\n\t\t\t\tfor(int i = 0; i < buffer.length; i++){\n\t\t\t\t\tarray[i] = Integer.parseInt(buffer[i]);\n\t\t\t\t}\n\t\t\t\tif(array[0] == -1 && array[1] == -1 && array[2] == -1)break;\n\n\t\t\t\tif(array[0] == -1 || array[1] == -1){\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}else if(array[0]+array[1] >= 80){\n\t\t\t\t\tans = \"A\";\n\t\t\t\t}else if(array[0]+array[1] >= 65){\n\t\t\t\t\tans = \"B\";\n\t\t\t\t}else if(array[0]+array[1] >= 50){\n\t\t\t\t\tans = \"C\";\n\t\t\t\t}else if(array[0]+array[1] >= 30){\n\t\t\t\t\tif(array[2] >= 50){\n\t\t\t\t\t\tans = \"C\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tans = \"D\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tans = \"F\";\n\t\t\t\t}\n\n\t\t\t\tSystem.out.printf(\"%s\\n\", ans);\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static final int BIG_NUM = 2000000000; public static final int MOD = 1000000007; public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String buffer[] = new String[3]; int array[] = new int[3]; String ans; while(true){ try { buffer = br.readLine().split("\\s+"); for(int i = 0; i < buffer.length; i++){ array[i] = Integer.parseInt(buffer[i]); } if(array[0] == -1 && array[1] == -1 && array[2] == -1)break; if(array[0] == -1 || array[1] == -1){ ans = "F"; }else if(array[0]+array[1] >= 80){ ans = "A"; }else if(array[0]+array[1] >= 65){ ans = "B"; }else if(array[0]+array[1] >= 50){ ans = "C"; }else if(array[0]+array[1] >= 30){ if(array[2] >= 50){ ans = "C"; }else{ ans = "D"; } }else{ ans = "F"; } System.out.printf("%s\n", ans); } catch (IOException e) { e.printStackTrace(); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 13, 14, 2, 2, 4, 18, 13, 13, 40, 17, 2, 4, 18, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 13, 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 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 39 ], [ 39, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 39, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 54, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 54, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 54, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 54, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 14, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 89, 93 ], [ 82, 94 ], [ 94, 95 ], [ 95, 96 ], [ 82, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 98, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 112, 117 ], [ 117, 118 ], [ 111, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 119, 124 ], [ 124, 125 ], [ 110, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 110, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 133, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 144, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 155, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 167, 172 ], [ 166, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 166, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 185, 190 ], [ 180, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 192, 197 ], [ 12, 198 ], [ 198, 199 ] ]
[ "import java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Integer> mid = new ArrayList<Integer>();\n\t\tArrayList<Integer> fin = new ArrayList<Integer>();\n\t\tArrayList<Integer> rex = new ArrayList<Integer>();\n//\t\tint n =scan.nextInt();\n//\t\tint m =scan.nextInt();\n\t\tint m=0;\n\t\tint f=0;\n\t\tint r=0;\n\t\tint score =0;\n\t\twhile(m != -1 || f!= -1 || r != -1){\n\t\t\tm =scan.nextInt();\n\t\t\tf =scan.nextInt();\n\t\t\tr =scan.nextInt();\n\t\t\tmid.add(m);\n\t\t\tfin.add(f);\n\t\t\trex.add(r);\n//\t\t\tSystem.out.println(\"scaning\");\n\t\t}\n//\t\tSystem.out.println(\"finir\");\n\t\tfor (int i=0;i<mid.size()-1;i++){\n\t\t\tscore = mid.get(i) + fin.get(i);\n\t\t\tif (mid.get(i) == -1 ||fin.get(i) == -1){\t//??????????¨??????????????¨????????????????????¬????????????´???????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(score >= 80){\t//??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\telse if(score >= 65){\t//??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse if(score >= 50){\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Integer> mid = new ArrayList<Integer>();\n\t\tArrayList<Integer> fin = new ArrayList<Integer>();\n\t\tArrayList<Integer> rex = new ArrayList<Integer>();\n//\t\tint n =scan.nextInt();\n//\t\tint m =scan.nextInt();\n\t\tint m=0;\n\t\tint f=0;\n\t\tint r=0;\n\t\tint score =0;\n\t\twhile(m != -1 || f!= -1 || r != -1){\n\t\t\tm =scan.nextInt();\n\t\t\tf =scan.nextInt();\n\t\t\tr =scan.nextInt();\n\t\t\tmid.add(m);\n\t\t\tfin.add(f);\n\t\t\trex.add(r);\n//\t\t\tSystem.out.println(\"scaning\");\n\t\t}\n//\t\tSystem.out.println(\"finir\");\n\t\tfor (int i=0;i<mid.size()-1;i++){\n\t\t\tscore = mid.get(i) + fin.get(i);\n\t\t\tif (mid.get(i) == -1 ||fin.get(i) == -1){\t//??????????¨??????????????¨????????????????????¬????????????´???????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(score >= 80){\t//??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\telse if(score >= 65){\t//??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse if(score >= 50){\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Integer> mid = new ArrayList<Integer>();\n\t\tArrayList<Integer> fin = new ArrayList<Integer>();\n\t\tArrayList<Integer> rex = new ArrayList<Integer>();\n//\t\tint n =scan.nextInt();\n//\t\tint m =scan.nextInt();\n\t\tint m=0;\n\t\tint f=0;\n\t\tint r=0;\n\t\tint score =0;\n\t\twhile(m != -1 || f!= -1 || r != -1){\n\t\t\tm =scan.nextInt();\n\t\t\tf =scan.nextInt();\n\t\t\tr =scan.nextInt();\n\t\t\tmid.add(m);\n\t\t\tfin.add(f);\n\t\t\trex.add(r);\n//\t\t\tSystem.out.println(\"scaning\");\n\t\t}\n//\t\tSystem.out.println(\"finir\");\n\t\tfor (int i=0;i<mid.size()-1;i++){\n\t\t\tscore = mid.get(i) + fin.get(i);\n\t\t\tif (mid.get(i) == -1 ||fin.get(i) == -1){\t//??????????¨??????????????¨????????????????????¬????????????´???????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(score >= 80){\t//??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\telse if(score >= 65){\t//??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse if(score >= 50){\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Integer> mid = new ArrayList<Integer>();\n\t\tArrayList<Integer> fin = new ArrayList<Integer>();\n\t\tArrayList<Integer> rex = new ArrayList<Integer>();\n//\t\tint n =scan.nextInt();\n//\t\tint m =scan.nextInt();\n\t\tint m=0;\n\t\tint f=0;\n\t\tint r=0;\n\t\tint score =0;\n\t\twhile(m != -1 || f!= -1 || r != -1){\n\t\t\tm =scan.nextInt();\n\t\t\tf =scan.nextInt();\n\t\t\tr =scan.nextInt();\n\t\t\tmid.add(m);\n\t\t\tfin.add(f);\n\t\t\trex.add(r);\n//\t\t\tSystem.out.println(\"scaning\");\n\t\t}\n//\t\tSystem.out.println(\"finir\");\n\t\tfor (int i=0;i<mid.size()-1;i++){\n\t\t\tscore = mid.get(i) + fin.get(i);\n\t\t\tif (mid.get(i) == -1 ||fin.get(i) == -1){\t//??????????¨??????????????¨????????????????????¬????????????´???????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(score >= 80){\t//??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\telse if(score >= 65){\t//??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse if(score >= 50){\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "ArrayList<Integer> mid = new ArrayList<Integer>();", "mid", "new ArrayList<Integer>()", "ArrayList<Integer> fin = new ArrayList<Integer>();", "fin", "new ArrayList<Integer>()", "ArrayList<Integer> rex = new ArrayList<Integer>();", "rex", "new ArrayList<Integer>()", "int m=0;", "m", "0", "int f=0;", "f", "0", "int r=0;", "r", "0", "int score =0;", "score", "0", "while(m != -1 || f!= -1 || r != -1){\n\t\t\tm =scan.nextInt();\n\t\t\tf =scan.nextInt();\n\t\t\tr =scan.nextInt();\n\t\t\tmid.add(m);\n\t\t\tfin.add(f);\n\t\t\trex.add(r);\n//\t\t\tSystem.out.println(\"scaning\");\n\t\t}", "m != -1 || f!= -1 || r != -1", "m != -1 || f!= -1 || r != -1", "m != -1", "m", "-1", "1", "f!= -1", "f", "-1", "1", "r != -1", "r", "-1", "1", "{\n\t\t\tm =scan.nextInt();\n\t\t\tf =scan.nextInt();\n\t\t\tr =scan.nextInt();\n\t\t\tmid.add(m);\n\t\t\tfin.add(f);\n\t\t\trex.add(r);\n//\t\t\tSystem.out.println(\"scaning\");\n\t\t}", "m =scan.nextInt()", "m", "scan.nextInt()", "scan.nextInt", "scan", "f =scan.nextInt()", "f", "scan.nextInt()", "scan.nextInt", "scan", "r =scan.nextInt()", "r", "scan.nextInt()", "scan.nextInt", "scan", "mid.add(m)", "mid.add", "mid", "m", "fin.add(f)", "fin.add", "fin", "f", "rex.add(r)", "rex.add", "rex", "r", "for (int i=0;i<mid.size()-1;i++){\n\t\t\tscore = mid.get(i) + fin.get(i);\n\t\t\tif (mid.get(i) == -1 ||fin.get(i) == -1){\t//??????????¨??????????????¨????????????????????¬????????????´???????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(score >= 80){\t//??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\telse if(score >= 65){\t//??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse if(score >= 50){\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<mid.size()-1", "i", "mid.size()-1", "mid.size()", "mid.size", "mid", "1", "i++", "i++", "i", "{\n\t\t\tscore = mid.get(i) + fin.get(i);\n\t\t\tif (mid.get(i) == -1 ||fin.get(i) == -1){\t//??????????¨??????????????¨????????????????????¬????????????´???????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(score >= 80){\t//??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\telse if(score >= 65){\t//??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse if(score >= 50){\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "{\n\t\t\tscore = mid.get(i) + fin.get(i);\n\t\t\tif (mid.get(i) == -1 ||fin.get(i) == -1){\t//??????????¨??????????????¨????????????????????¬????????????´???????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(score >= 80){\t//??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\telse if(score >= 65){\t//??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse if(score >= 50){\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "score = mid.get(i) + fin.get(i)", "score", "mid.get(i) + fin.get(i)", "mid.get(i)", "mid.get", "mid", "i", "fin.get(i)", "fin.get", "fin", "i", "if (mid.get(i) == -1 ||fin.get(i) == -1){\t//??????????¨??????????????¨????????????????????¬????????????´???????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\telse if(score >= 80){\t//??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\telse if(score >= 65){\t//??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse if(score >= 50){\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "mid.get(i) == -1 ||fin.get(i) == -1", "mid.get(i) == -1", "mid.get(i)", "mid.get", "mid", "i", "-1", "1", "fin.get(i) == -1", "fin.get(i)", "fin.get", "fin", "i", "-1", "1", "{\t//??????????¨??????????????¨????????????????????¬????????????´???????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(score >= 80){\t//??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\telse if(score >= 65){\t//??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse if(score >= 50){\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "score >= 80", "score", "80", "{\t//??????????¨???¨??????????¨????????¨??????°??? 80 ??\\???????????°????????? A ???\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(score >= 65){\t//??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\telse if(score >= 50){\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "score >= 65", "score", "65", "{\t//??????????¨???¨??????????¨????????¨??????°??? 65 ??\\??? 80 ??????????????°????????? B???\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(score >= 50){\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "score >= 50", "score", "50", "{\t//??????????¨???¨??????????¨????????¨??????°??? 50 ??\\??? 65 ??????????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(rex.get(i) >=50){\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\telse if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "rex.get(i) >=50", "rex.get(i)", "rex.get", "rex", "i", "50", "{\t//???????¨?????????°??? 50 ??\\???????????°????????? C???\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(score >= 30){\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "score >= 30", "score", "30", "{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??\\??? 50 ??????????????°????????? D\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\t//??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F???\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args" ]
import java.io.IOException; import java.util.ArrayList; import java.util.Scanner; class Main{ public static void main(String[] args)throws NumberFormatException, IOException{ //System.out.print(" "); Scanner scan = new Scanner(System.in); ArrayList<Integer> mid = new ArrayList<Integer>(); ArrayList<Integer> fin = new ArrayList<Integer>(); ArrayList<Integer> rex = new ArrayList<Integer>(); // int n =scan.nextInt(); // int m =scan.nextInt(); int m=0; int f=0; int r=0; int score =0; while(m != -1 || f!= -1 || r != -1){ m =scan.nextInt(); f =scan.nextInt(); r =scan.nextInt(); mid.add(m); fin.add(f); rex.add(r); // System.out.println("scaning"); } // System.out.println("finir"); for (int i=0;i<mid.size()-1;i++){ score = mid.get(i) + fin.get(i); if (mid.get(i) == -1 ||fin.get(i) == -1){ //??????????¨??????????????¨????????????????????¬????????????´???????????? F??? System.out.println("F"); } else if(score >= 80){ //??????????¨???¨??????????¨????????¨??????°??? 80 ??\???????????°????????? A ??? System.out.println("A"); } else if(score >= 65){ //??????????¨???¨??????????¨????????¨??????°??? 65 ??\??? 80 ??????????????°????????? B??? System.out.println("B"); } else if(score >= 50){ //??????????¨???¨??????????¨????????¨??????°??? 50 ??\??? 65 ??????????????°????????? C??? System.out.println("C"); } else if(rex.get(i) >=50){ //???????¨?????????°??? 50 ??\???????????°????????? C??? System.out.println("C"); } else if(score >= 30){ //??????????¨???¨??????????¨????????¨??????°??? 30 ??\??? 50 ??????????????°????????? D System.out.println("D"); } else{ //??????????¨???¨??????????¨????????¨??????°??? 30 ??????????????°????????? F??? System.out.println("F"); } } } }
[ 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, 4, 18, 13, 42, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 46, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 63, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 76, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 76, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 95, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 95, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 115, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 114, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 127, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 114, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 145, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 45, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 45, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 166, 167 ], [ 45, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 9, 173 ], [ 173, 174 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n \n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n \n while (m != -1 || f != -1 || r != -1) {\n if (m == -1 || f == -1) {\n System.out.println(\"F\");\n }\n else if (m + f >= 80) {\n System.out.println(\"A\");\n }\n else if (m + f >= 65 && m + f < 80) {\n System.out.println(\"B\");\n }\n else if (m + f >= 50 && m + f < 65) {\n System.out.println(\"C\");\n }\n else if (m + f >= 30 && m + f < 50) {\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }\n else if (m + f < 30) {\n System.out.println(\"F\");\n }\n \n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n \n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n \n while (m != -1 || f != -1 || r != -1) {\n if (m == -1 || f == -1) {\n System.out.println(\"F\");\n }\n else if (m + f >= 80) {\n System.out.println(\"A\");\n }\n else if (m + f >= 65 && m + f < 80) {\n System.out.println(\"B\");\n }\n else if (m + f >= 50 && m + f < 65) {\n System.out.println(\"C\");\n }\n else if (m + f >= 30 && m + f < 50) {\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }\n else if (m + f < 30) {\n System.out.println(\"F\");\n }\n \n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n }\n }\n}", "Main", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n \n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n \n while (m != -1 || f != -1 || r != -1) {\n if (m == -1 || f == -1) {\n System.out.println(\"F\");\n }\n else if (m + f >= 80) {\n System.out.println(\"A\");\n }\n else if (m + f >= 65 && m + f < 80) {\n System.out.println(\"B\");\n }\n else if (m + f >= 50 && m + f < 65) {\n System.out.println(\"C\");\n }\n else if (m + f >= 30 && m + f < 50) {\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }\n else if (m + f < 30) {\n System.out.println(\"F\");\n }\n \n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n \n while (m != -1 || f != -1 || r != -1) {\n if (m == -1 || f == -1) {\n System.out.println(\"F\");\n }\n else if (m + f >= 80) {\n System.out.println(\"A\");\n }\n else if (m + f >= 65 && m + f < 80) {\n System.out.println(\"B\");\n }\n else if (m + f >= 50 && m + f < 65) {\n System.out.println(\"C\");\n }\n else if (m + f >= 30 && m + f < 50) {\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }\n else if (m + f < 30) {\n System.out.println(\"F\");\n }\n \n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "while (m != -1 || f != -1 || r != -1) {\n if (m == -1 || f == -1) {\n System.out.println(\"F\");\n }\n else if (m + f >= 80) {\n System.out.println(\"A\");\n }\n else if (m + f >= 65 && m + f < 80) {\n System.out.println(\"B\");\n }\n else if (m + f >= 50 && m + f < 65) {\n System.out.println(\"C\");\n }\n else if (m + f >= 30 && m + f < 50) {\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }\n else if (m + f < 30) {\n System.out.println(\"F\");\n }\n \n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n }", "m != -1 || f != -1 || r != -1", "m != -1 || f != -1 || r != -1", "m != -1", "m", "-1", "1", "f != -1", "f", "-1", "1", "r != -1", "r", "-1", "1", "{\n if (m == -1 || f == -1) {\n System.out.println(\"F\");\n }\n else if (m + f >= 80) {\n System.out.println(\"A\");\n }\n else if (m + f >= 65 && m + f < 80) {\n System.out.println(\"B\");\n }\n else if (m + f >= 50 && m + f < 65) {\n System.out.println(\"C\");\n }\n else if (m + f >= 30 && m + f < 50) {\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }\n else if (m + f < 30) {\n System.out.println(\"F\");\n }\n \n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n }", "if (m == -1 || f == -1) {\n System.out.println(\"F\");\n }\n else if (m + f >= 80) {\n System.out.println(\"A\");\n }\n else if (m + f >= 65 && m + f < 80) {\n System.out.println(\"B\");\n }\n else if (m + f >= 50 && m + f < 65) {\n System.out.println(\"C\");\n }\n else if (m + f >= 30 && m + f < 50) {\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }\n else if (m + f < 30) {\n System.out.println(\"F\");\n }", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (m + f >= 80) {\n System.out.println(\"A\");\n }\n else if (m + f >= 65 && m + f < 80) {\n System.out.println(\"B\");\n }\n else if (m + f >= 50 && m + f < 65) {\n System.out.println(\"C\");\n }\n else if (m + f >= 30 && m + f < 50) {\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }\n else if (m + f < 30) {\n System.out.println(\"F\");\n }", "m + f >= 80", "m + f", "m", "f", "80", "{\n System.out.println(\"A\");\n }", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (m + f >= 65 && m + f < 80) {\n System.out.println(\"B\");\n }\n else if (m + f >= 50 && m + f < 65) {\n System.out.println(\"C\");\n }\n else if (m + f >= 30 && m + f < 50) {\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }\n else if (m + f < 30) {\n System.out.println(\"F\");\n }", "m + f >= 65 && m + f < 80", "m + f >= 65", "m + f", "m", "f", "65", "m + f < 80", "m + f", "m", "f", "80", "{\n System.out.println(\"B\");\n }", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (m + f >= 50 && m + f < 65) {\n System.out.println(\"C\");\n }\n else if (m + f >= 30 && m + f < 50) {\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }\n else if (m + f < 30) {\n System.out.println(\"F\");\n }", "m + f >= 50 && m + f < 65", "m + f >= 50", "m + f", "m", "f", "50", "m + f < 65", "m + f", "m", "f", "65", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (m + f >= 30 && m + f < 50) {\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }\n else if (m + f < 30) {\n System.out.println(\"F\");\n }", "m + f >= 30 && m + f < 50", "m + f >= 30", "m + f", "m", "f", "30", "m + f < 50", "m + f", "m", "f", "50", "{\n if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }\n }", "if (r >= 50) {\n System.out.println(\"C\");\n }\n else {\n System.out.println(\"D\");\n }", "r >= 50", "r", "50", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n System.out.println(\"D\");\n }", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if (m + f < 30) {\n System.out.println(\"F\");\n }", "m + f < 30", "m + f", "m", "f", "30", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "String[] args", "args" ]
import java.io.*; import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); while (m != -1 || f != -1 || r != -1) { if (m == -1 || f == -1) { System.out.println("F"); } else if (m + f >= 80) { System.out.println("A"); } else if (m + f >= 65 && m + f < 80) { System.out.println("B"); } else if (m + f >= 50 && m + f < 65) { System.out.println("C"); } else if (m + f >= 30 && m + f < 50) { if (r >= 50) { System.out.println("C"); } else { System.out.println("D"); } } else if (m + f < 30) { System.out.println("F"); } m = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 13, 40, 17, 30, 3, 14, 2, 2, 2, 13, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 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 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 17, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 17, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 17, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 55, 62 ], [ 62, 63 ], [ 17, 64 ], [ 64, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 66, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 64, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 64, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 85, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 101, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 85, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 85, 124 ], [ 124, 125 ], [ 126, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 130, 132 ], [ 126, 133 ], [ 133, 134 ], [ 133, 135 ], [ 124, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 85, 142 ], [ 142, 143 ], [ 144, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 148, 149 ], [ 148, 150 ], [ 144, 151 ], [ 151, 152 ], [ 151, 153 ], [ 142, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 9, 160 ], [ 160, 161 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile (true) {\n\t\t\tString [] line = scanner.nextLine().split(\" \");\n\t\t\tint m = Integer.parseInt(line[0]);\n\t\t\tint f = Integer.parseInt(line[1]);\n\t\t\tint totalTest = m + f;\n\t\t\tint r = Integer.parseInt(line[2]);\n\t\t\tif (totalTest + r == -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (totalTest < 30 ||m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else {\n\t\t\t\tif (totalTest >= 80)\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tif (totalTest < 80 && totalTest >= 65)\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tif (totalTest < 65 && totalTest >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r < 50)\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile (true) {\n\t\t\tString [] line = scanner.nextLine().split(\" \");\n\t\t\tint m = Integer.parseInt(line[0]);\n\t\t\tint f = Integer.parseInt(line[1]);\n\t\t\tint totalTest = m + f;\n\t\t\tint r = Integer.parseInt(line[2]);\n\t\t\tif (totalTest + r == -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (totalTest < 30 ||m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else {\n\t\t\t\tif (totalTest >= 80)\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tif (totalTest < 80 && totalTest >= 65)\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tif (totalTest < 65 && totalTest >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r < 50)\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile (true) {\n\t\t\tString [] line = scanner.nextLine().split(\" \");\n\t\t\tint m = Integer.parseInt(line[0]);\n\t\t\tint f = Integer.parseInt(line[1]);\n\t\t\tint totalTest = m + f;\n\t\t\tint r = Integer.parseInt(line[2]);\n\t\t\tif (totalTest + r == -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (totalTest < 30 ||m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else {\n\t\t\t\tif (totalTest >= 80)\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tif (totalTest < 80 && totalTest >= 65)\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tif (totalTest < 65 && totalTest >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r < 50)\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile (true) {\n\t\t\tString [] line = scanner.nextLine().split(\" \");\n\t\t\tint m = Integer.parseInt(line[0]);\n\t\t\tint f = Integer.parseInt(line[1]);\n\t\t\tint totalTest = m + f;\n\t\t\tint r = Integer.parseInt(line[2]);\n\t\t\tif (totalTest + r == -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (totalTest < 30 ||m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else {\n\t\t\t\tif (totalTest >= 80)\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tif (totalTest < 80 && totalTest >= 65)\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tif (totalTest < 65 && totalTest >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r < 50)\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while (true) {\n\t\t\tString [] line = scanner.nextLine().split(\" \");\n\t\t\tint m = Integer.parseInt(line[0]);\n\t\t\tint f = Integer.parseInt(line[1]);\n\t\t\tint totalTest = m + f;\n\t\t\tint r = Integer.parseInt(line[2]);\n\t\t\tif (totalTest + r == -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (totalTest < 30 ||m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else {\n\t\t\t\tif (totalTest >= 80)\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tif (totalTest < 80 && totalTest >= 65)\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tif (totalTest < 65 && totalTest >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r < 50)\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString [] line = scanner.nextLine().split(\" \");\n\t\t\tint m = Integer.parseInt(line[0]);\n\t\t\tint f = Integer.parseInt(line[1]);\n\t\t\tint totalTest = m + f;\n\t\t\tint r = Integer.parseInt(line[2]);\n\t\t\tif (totalTest + r == -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (totalTest < 30 ||m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else {\n\t\t\t\tif (totalTest >= 80)\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tif (totalTest < 80 && totalTest >= 65)\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tif (totalTest < 65 && totalTest >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r < 50)\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}", "String [] line = scanner.nextLine().split(\" \");", "line", "scanner.nextLine().split(\" \")", "scanner.nextLine().split", "scanner.nextLine()", "scanner.nextLine", "scanner", "\" \"", "int m = Integer.parseInt(line[0]);", "m", "Integer.parseInt(line[0])", "Integer.parseInt", "Integer", "line[0]", "line", "0", "int f = Integer.parseInt(line[1]);", "f", "Integer.parseInt(line[1])", "Integer.parseInt", "Integer", "line[1]", "line", "1", "int totalTest = m + f;", "totalTest", "m + f", "m", "f", "int r = Integer.parseInt(line[2]);", "r", "Integer.parseInt(line[2])", "Integer.parseInt", "Integer", "line[2]", "line", "2", "if (totalTest + r == -3) {\n\t\t\t\tbreak;\n\t\t\t}", "totalTest + r == -3", "totalTest + r", "totalTest", "r", "-3", "3", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if (totalTest < 30 ||m == -1 || f == -1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else {\n\t\t\t\tif (totalTest >= 80)\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tif (totalTest < 80 && totalTest >= 65)\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tif (totalTest < 65 && totalTest >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r < 50)\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "totalTest < 30 ||m == -1 || f == -1", "totalTest < 30 ||m == -1 || f == -1", "totalTest < 30", "totalTest", "30", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "{\n\t\t\t\tif (totalTest >= 80)\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\tif (totalTest < 80 && totalTest >= 65)\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\tif (totalTest < 65 && totalTest >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\tif (totalTest >= 30 && totalTest < 50 && r < 50)\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "if (totalTest >= 80)\n\t\t\t\t\tSystem.out.println(\"A\");", "totalTest >= 80", "totalTest", "80", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (totalTest < 80 && totalTest >= 65)\n\t\t\t\t\tSystem.out.println(\"B\");", "totalTest < 80 && totalTest >= 65", "totalTest < 80", "totalTest", "80", "totalTest >= 65", "totalTest", "65", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (totalTest < 65 && totalTest >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");", "totalTest < 65 && totalTest >= 50", "totalTest < 65", "totalTest", "65", "totalTest >= 50", "totalTest", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (totalTest >= 30 && totalTest < 50 && r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");", "totalTest >= 30 && totalTest < 50 && r >= 50", "totalTest >= 30 && totalTest < 50 && r >= 50", "totalTest >= 30", "totalTest", "30", "totalTest < 50", "totalTest", "50", "r >= 50", "r", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (totalTest >= 30 && totalTest < 50 && r < 50)\n\t\t\t\t\tSystem.out.println(\"D\");", "totalTest >= 30 && totalTest < 50 && r < 50", "totalTest >= 30 && totalTest < 50 && r < 50", "totalTest >= 30", "totalTest", "30", "totalTest < 50", "totalTest", "50", "r < 50", "r", "50", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "String[] args", "args" ]
import java.io.IOException; import java.util.Scanner; class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); while (true) { String [] line = scanner.nextLine().split(" "); int m = Integer.parseInt(line[0]); int f = Integer.parseInt(line[1]); int totalTest = m + f; int r = Integer.parseInt(line[2]); if (totalTest + r == -3) { break; } if (totalTest < 30 ||m == -1 || f == -1) { System.out.println("F"); } else { if (totalTest >= 80) System.out.println("A"); if (totalTest < 80 && totalTest >= 65) System.out.println("B"); if (totalTest < 65 && totalTest >= 50) System.out.println("C"); if (totalTest >= 30 && totalTest < 50 && r >= 50) System.out.println("C"); if (totalTest >= 30 && totalTest < 50 && r < 50) System.out.println("D"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 23, 39 ], [ 39, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 39, 54 ], [ 23, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 64, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 64, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 78, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 77, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 77, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 98, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 97, 109 ], [ 109, 110 ], [ 109, 111 ], [ 96, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 96, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 120, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 119, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 119, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 138, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 55, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 6, 158 ], [ 158, 159 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint m = 0, f = 0, r = 0;\n\t\twhile(true){\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1)break;\n\t\t\t\n\t\t\tif(m >= 0 && f >= 0){\n\t\t\t\tif(m + f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m + f < 80 && m + f >= 65){\n\t\t\t\t\tSystem.out.println(\"B\");\t\t\t\t\t\n\t\t\t\t}else if(m + f < 65 && m + f >= 50 || r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}\n}\t", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint m = 0, f = 0, r = 0;\n\t\twhile(true){\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1)break;\n\t\t\t\n\t\t\tif(m >= 0 && f >= 0){\n\t\t\t\tif(m + f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m + f < 80 && m + f >= 65){\n\t\t\t\t\tSystem.out.println(\"B\");\t\t\t\t\t\n\t\t\t\t}else if(m + f < 65 && m + f >= 50 || r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}\n}", "Main", "public static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint m = 0, f = 0, r = 0;\n\t\twhile(true){\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1)break;\n\t\t\t\n\t\t\tif(m >= 0 && f >= 0){\n\t\t\t\tif(m + f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m + f < 80 && m + f >= 65){\n\t\t\t\t\tSystem.out.println(\"B\");\t\t\t\t\t\n\t\t\t\t}else if(m + f < 65 && m + f >= 50 || r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "main", "{\t\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint m = 0, f = 0, r = 0;\n\t\twhile(true){\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1)break;\n\t\t\t\n\t\t\tif(m >= 0 && f >= 0){\n\t\t\t\tif(m + f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m + f < 80 && m + f >= 65){\n\t\t\t\t\tSystem.out.println(\"B\");\t\t\t\t\t\n\t\t\t\t}else if(m + f < 65 && m + f >= 50 || r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int m = 0", "m", "0", "f = 0", "f", "0", "r = 0;", "r", "0", "while(true){\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1)break;\n\t\t\t\n\t\t\tif(m >= 0 && f >= 0){\n\t\t\t\tif(m + f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m + f < 80 && m + f >= 65){\n\t\t\t\t\tSystem.out.println(\"B\");\t\t\t\t\t\n\t\t\t\t}else if(m + f < 65 && m + f >= 50 || r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tm = scan.nextInt();\n\t\t\tf = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\t\t\t\n\t\t\tif(m == -1 && f == -1 && r == -1)break;\n\t\t\t\n\t\t\tif(m >= 0 && f >= 0){\n\t\t\t\tif(m + f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m + f < 80 && m + f >= 65){\n\t\t\t\t\tSystem.out.println(\"B\");\t\t\t\t\t\n\t\t\t\t}else if(m + f < 65 && m + f >= 50 || r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "m = scan.nextInt()", "m", "scan.nextInt()", "scan.nextInt", "scan", "f = scan.nextInt()", "f", "scan.nextInt()", "scan.nextInt", "scan", "r = scan.nextInt()", "r", "scan.nextInt()", "scan.nextInt", "scan", "if(m == -1 && f == -1 && r == -1)break;", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "break;", "if(m >= 0 && f >= 0){\n\t\t\t\tif(m + f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m + f < 80 && m + f >= 65){\n\t\t\t\t\tSystem.out.println(\"B\");\t\t\t\t\t\n\t\t\t\t}else if(m + f < 65 && m + f >= 50 || r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m >= 0 && f >= 0", "m >= 0", "m", "0", "f >= 0", "f", "0", "{\n\t\t\t\tif(m + f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m + f < 80 && m + f >= 65){\n\t\t\t\t\tSystem.out.println(\"B\");\t\t\t\t\t\n\t\t\t\t}else if(m + f < 65 && m + f >= 50 || r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}", "if(m + f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m + f < 80 && m + f >= 65){\n\t\t\t\t\tSystem.out.println(\"B\");\t\t\t\t\t\n\t\t\t\t}else if(m + f < 65 && m + f >= 50 || r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m + f >= 80", "m + f", "m", "f", "80", "{\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(m + f < 80 && m + f >= 65){\n\t\t\t\t\tSystem.out.println(\"B\");\t\t\t\t\t\n\t\t\t\t}else if(m + f < 65 && m + f >= 50 || r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m + f < 80 && m + f >= 65", "m + f < 80", "m + f", "m", "f", "80", "m + f >= 65", "m + f", "m", "f", "65", "{\n\t\t\t\t\tSystem.out.println(\"B\");\t\t\t\t\t\n\t\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(m + f < 65 && m + f >= 50 || r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m + f < 65 && m + f >= 50 || r >= 50", "m + f < 65 && m + f >= 50", "m + f < 65", "m + f", "m", "f", "65", "m + f >= 50", "m + f", "m", "f", "50", "r >= 50", "r", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(m + f < 50 && m + f >= 30){\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}else if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m + f < 50 && m + f >= 30", "m + f < 50", "m + f", "m", "f", "50", "m + f >= 30", "m + f", "m", "f", "30", "{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if(m + f < 30){\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m + f < 30", "m + f", "m", "f", "30", "{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]){ Scanner scan = new Scanner(System.in); int m = 0, f = 0, r = 0; while(true){ m = scan.nextInt(); f = scan.nextInt(); r = scan.nextInt(); if(m == -1 && f == -1 && r == -1)break; if(m >= 0 && f >= 0){ if(m + f >= 80){ System.out.println("A"); }else if(m + f < 80 && m + f >= 65){ System.out.println("B"); }else if(m + f < 65 && m + f >= 50 || r >= 50){ System.out.println("C"); }else if(m + f < 50 && m + f >= 30){ System.out.println("D"); }else if(m + f < 30){ System.out.println("F"); } }else{ System.out.println("F"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 30, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 0, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 0, 13, 17, 30, 30, 14, 2, 2, 4, 18, 13, 2, 13, 17, 40, 17, 2, 4, 18, 13, 2, 13, 17, 40, 17, 30, 4, 18, 13, 17, 40, 13, 14, 2, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 17, 30, 4, 18, 13, 17, 40, 13, 14, 2, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 17, 30, 4, 18, 13, 17, 40, 13, 14, 2, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 17, 30, 4, 18, 13, 17, 40, 13, 14, 2, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 17, 30, 14, 2, 4, 18, 13, 13, 17, 30, 4, 18, 13, 17, 40, 13, 30, 4, 18, 13, 17, 40, 13, 14, 2, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 17, 30, 4, 18, 13, 17, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 293, 5 ], [ 293, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 45, 61 ], [ 61, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 63, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 61, 76 ], [ 76, 77 ], [ 61, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 78, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 78, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 78, 91 ], [ 91, 92 ], [ 91, 93 ], [ 8, 94 ], [ 94, 95 ], [ 94, 96 ], [ 8, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 97, 109 ], [ 110, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 117, 118 ], [ 117, 119 ], [ 113, 120 ], [ 120, 121 ], [ 112, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 126, 127 ], [ 126, 128 ], [ 122, 129 ], [ 129, 130 ], [ 111, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 131, 136 ], [ 136, 137 ], [ 111, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 144, 145 ], [ 144, 146 ], [ 140, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 150, 151 ], [ 150, 152 ], [ 139, 153 ], [ 138, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 155, 158 ], [ 154, 159 ], [ 159, 160 ], [ 138, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 164, 167 ], [ 167, 168 ], [ 167, 169 ], [ 163, 170 ], [ 170, 171 ], [ 171, 172 ], [ 170, 173 ], [ 173, 174 ], [ 173, 175 ], [ 162, 176 ], [ 161, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 178, 181 ], [ 177, 182 ], [ 182, 183 ], [ 161, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 187, 190 ], [ 190, 191 ], [ 190, 192 ], [ 186, 193 ], [ 193, 194 ], [ 194, 195 ], [ 193, 196 ], [ 196, 197 ], [ 196, 198 ], [ 185, 199 ], [ 184, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 201, 204 ], [ 200, 205 ], [ 205, 206 ], [ 184, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 210, 213 ], [ 213, 214 ], [ 213, 215 ], [ 209, 216 ], [ 216, 217 ], [ 217, 218 ], [ 216, 219 ], [ 219, 220 ], [ 219, 221 ], [ 208, 222 ], [ 207, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 226, 229 ], [ 225, 230 ], [ 224, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 232, 235 ], [ 231, 236 ], [ 236, 237 ], [ 224, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 239, 242 ], [ 238, 243 ], [ 243, 244 ], [ 207, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 248, 251 ], [ 251, 252 ], [ 251, 253 ], [ 247, 254 ], [ 254, 255 ], [ 255, 256 ], [ 254, 257 ], [ 257, 258 ], [ 257, 259 ], [ 246, 260 ], [ 245, 261 ], [ 261, 262 ], [ 262, 263 ], [ 263, 264 ], [ 262, 265 ], [ 261, 266 ], [ 266, 267 ], [ 8, 268 ], [ 268, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 268, 273 ], [ 273, 274 ], [ 273, 275 ], [ 268, 276 ], [ 276, 277 ], [ 277, 278 ], [ 268, 279 ], [ 280, 280 ], [ 280, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 281, 286 ], [ 286, 287 ], [ 287, 288 ], [ 286, 289 ], [ 6, 290 ], [ 290, 291 ], [ 0, 292 ], [ 292, 293 ], [ 292, 294 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tLinkedList<Integer> pit = new LinkedList<>();\n\t\tLinkedList<String> pfm = new LinkedList<>();\n\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\t//???????????\\???\n\t\tint cnt = 0;\n\t\twhile(m != -1 || f != -1 || r != -1) {\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tpit.add(m);\n\t\t\t\tpit.add(f);\n\t\t\t\tpit.add(r);\n\t\t\t\tcnt+=3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint k = 0;\n\t\tfor(int i = 2; i < cnt; i+=3) {\n\t\t\tif(pit.get(i-2) == -1 || pit.get(i-1) == -1) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 80) {\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tSystem.out.println(pfm.get(i));\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tLinkedList<Integer> pit = new LinkedList<>();\n\t\tLinkedList<String> pfm = new LinkedList<>();\n\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\t//???????????\\???\n\t\tint cnt = 0;\n\t\twhile(m != -1 || f != -1 || r != -1) {\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tpit.add(m);\n\t\t\t\tpit.add(f);\n\t\t\t\tpit.add(r);\n\t\t\t\tcnt+=3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint k = 0;\n\t\tfor(int i = 2; i < cnt; i+=3) {\n\t\t\tif(pit.get(i-2) == -1 || pit.get(i-1) == -1) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 80) {\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tSystem.out.println(pfm.get(i));\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\tLinkedList<Integer> pit = new LinkedList<>();\n\t\tLinkedList<String> pfm = new LinkedList<>();\n\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\t//???????????\\???\n\t\tint cnt = 0;\n\t\twhile(m != -1 || f != -1 || r != -1) {\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tpit.add(m);\n\t\t\t\tpit.add(f);\n\t\t\t\tpit.add(r);\n\t\t\t\tcnt+=3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint k = 0;\n\t\tfor(int i = 2; i < cnt; i+=3) {\n\t\t\tif(pit.get(i-2) == -1 || pit.get(i-1) == -1) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 80) {\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tSystem.out.println(pfm.get(i));\n\t\t}\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tLinkedList<Integer> pit = new LinkedList<>();\n\t\tLinkedList<String> pfm = new LinkedList<>();\n\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\t//???????????\\???\n\t\tint cnt = 0;\n\t\twhile(m != -1 || f != -1 || r != -1) {\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tpit.add(m);\n\t\t\t\tpit.add(f);\n\t\t\t\tpit.add(r);\n\t\t\t\tcnt+=3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint k = 0;\n\t\tfor(int i = 2; i < cnt; i+=3) {\n\t\t\tif(pit.get(i-2) == -1 || pit.get(i-1) == -1) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 80) {\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tSystem.out.println(pfm.get(i));\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "LinkedList<Integer> pit = new LinkedList<>();", "pit", "new LinkedList<>()", "LinkedList<String> pfm = new LinkedList<>();", "pfm", "new LinkedList<>()", "int m = 0;", "m", "0", "int f = 0;", "f", "0", "int r = 0;", "r", "0", "int cnt = 0;", "cnt", "0", "while(m != -1 || f != -1 || r != -1) {\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tpit.add(m);\n\t\t\t\tpit.add(f);\n\t\t\t\tpit.add(r);\n\t\t\t\tcnt+=3;\n\t\t\t}\n\t\t}", "m != -1 || f != -1 || r != -1", "m != -1 || f != -1 || r != -1", "m != -1", "m", "-1", "1", "f != -1", "f", "-1", "1", "r != -1", "r", "-1", "1", "{\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tpit.add(m);\n\t\t\t\tpit.add(f);\n\t\t\t\tpit.add(r);\n\t\t\t\tcnt+=3;\n\t\t\t}\n\t\t}", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "if(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tpit.add(m);\n\t\t\t\tpit.add(f);\n\t\t\t\tpit.add(r);\n\t\t\t\tcnt+=3;\n\t\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tpit.add(m);\n\t\t\t\tpit.add(f);\n\t\t\t\tpit.add(r);\n\t\t\t\tcnt+=3;\n\t\t\t}", "pit.add(m)", "pit.add", "pit", "m", "pit.add(f)", "pit.add", "pit", "f", "pit.add(r)", "pit.add", "pit", "r", "cnt+=3", "cnt", "3", "int k = 0;", "k", "0", "for(int i = 2; i < cnt; i+=3) {\n\t\t\tif(pit.get(i-2) == -1 || pit.get(i-1) == -1) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 80) {\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}\n\t\t}", "int i = 2;", "int i = 2;", "i", "2", "i < cnt", "i", "cnt", "i+=3", "i+=3", "i", "3", "{\n\t\t\tif(pit.get(i-2) == -1 || pit.get(i-1) == -1) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 80) {\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(pit.get(i-2) == -1 || pit.get(i-1) == -1) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 80) {\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}\n\t\t}", "if(pit.get(i-2) == -1 || pit.get(i-1) == -1) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 80) {\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}", "pit.get(i-2) == -1 || pit.get(i-1) == -1", "pit.get(i-2) == -1", "pit.get(i-2)", "pit.get", "pit", "i-2", "i", "2", "-1", "1", "pit.get(i-1) == -1", "pit.get(i-1)", "pit.get", "pit", "i-1", "i", "1", "-1", "1", "{\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}", "pfm.add(\"F\")", "pfm.add", "pfm", "\"F\"", "k++", "k", "if(pit.get(i-2) + pit.get(i-1) >= 80) {\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}", "pit.get(i-2) + pit.get(i-1) >= 80", "pit.get(i-2) + pit.get(i-1)", "pit.get(i-2)", "pit.get", "pit", "i-2", "i", "2", "pit.get(i-1)", "pit.get", "pit", "i-1", "i", "1", "80", "{\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t}", "pfm.add(\"A\")", "pfm.add", "pfm", "\"A\"", "k++", "k", "if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}", "pit.get(i-2) + pit.get(i-1) >= 65", "pit.get(i-2) + pit.get(i-1)", "pit.get(i-2)", "pit.get", "pit", "i-2", "i", "2", "pit.get(i-1)", "pit.get", "pit", "i-1", "i", "1", "65", "{\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t}", "pfm.add(\"B\")", "pfm.add", "pfm", "\"B\"", "k++", "k", "if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}", "pit.get(i-2) + pit.get(i-1) >= 50", "pit.get(i-2) + pit.get(i-1)", "pit.get(i-2)", "pit.get", "pit", "i-2", "i", "2", "pit.get(i-1)", "pit.get", "pit", "i-1", "i", "1", "50", "{\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t}", "pfm.add(\"C\")", "pfm.add", "pfm", "\"C\"", "k++", "k", "if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}", "pit.get(i-2) + pit.get(i-1) >= 30", "pit.get(i-2) + pit.get(i-1)", "pit.get(i-2)", "pit.get", "pit", "i-2", "i", "2", "pit.get(i-1)", "pit.get", "pit", "i-1", "i", "1", "30", "{\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}", "if(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}", "pit.get(i) >= 50", "pit.get(i)", "pit.get", "pit", "i", "50", "{\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t}", "pfm.add(\"C\")", "pfm.add", "pfm", "\"C\"", "k++", "k", "{\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}", "pfm.add(\"D\")", "pfm.add", "pfm", "\"D\"", "k++", "k", "if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}", "pit.get(i-2) + pit.get(i-1) < 30", "pit.get(i-2) + pit.get(i-1)", "pit.get(i-2)", "pit.get", "pit", "i-2", "i", "2", "pit.get(i-1)", "pit.get", "pit", "i-1", "i", "1", "30", "{\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}", "pfm.add(\"F\")", "pfm.add", "pfm", "\"F\"", "k++", "k", "for(int i = 0; i < k; i++) {\n\t\t\tSystem.out.println(pfm.get(i));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < k", "i", "k", "i++", "i++", "i", "{\n\t\t\tSystem.out.println(pfm.get(i));\n\t\t}", "{\n\t\t\tSystem.out.println(pfm.get(i));\n\t\t}", "System.out.println(pfm.get(i))", "System.out.println", "System.out", "System", "System.out", "pfm.get(i)", "pfm.get", "pfm", "i", "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\tLinkedList<Integer> pit = new LinkedList<>();\n\t\tLinkedList<String> pfm = new LinkedList<>();\n\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\t//???????????\\???\n\t\tint cnt = 0;\n\t\twhile(m != -1 || f != -1 || r != -1) {\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tpit.add(m);\n\t\t\t\tpit.add(f);\n\t\t\t\tpit.add(r);\n\t\t\t\tcnt+=3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint k = 0;\n\t\tfor(int i = 2; i < cnt; i+=3) {\n\t\t\tif(pit.get(i-2) == -1 || pit.get(i-1) == -1) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 80) {\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tSystem.out.println(pfm.get(i));\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\tLinkedList<Integer> pit = new LinkedList<>();\n\t\tLinkedList<String> pfm = new LinkedList<>();\n\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\t//???????????\\???\n\t\tint cnt = 0;\n\t\twhile(m != -1 || f != -1 || r != -1) {\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tpit.add(m);\n\t\t\t\tpit.add(f);\n\t\t\t\tpit.add(r);\n\t\t\t\tcnt+=3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint k = 0;\n\t\tfor(int i = 2; i < cnt; i+=3) {\n\t\t\tif(pit.get(i-2) == -1 || pit.get(i-1) == -1) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 80) {\n\t\t\t\tpfm.add(\"A\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 65) {\n\t\t\t\tpfm.add(\"B\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 50) {\n\t\t\t\tpfm.add(\"C\");\n\t\t\t\tk++;\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) >= 30) {\n\t\t\t\tif(pit.get(i) >= 50) {\n\t\t\t\t\tpfm.add(\"C\");\n\t\t\t\t\tk++;\n\t\t\t\t} else {\n\t\t\t\t\tpfm.add(\"D\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t} else if(pit.get(i-2) + pit.get(i-1) < 30) {\n\t\t\t\tpfm.add(\"F\");\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tSystem.out.println(pfm.get(i));\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); LinkedList<Integer> pit = new LinkedList<>(); LinkedList<String> pfm = new LinkedList<>(); int m = 0; int f = 0; int r = 0; //???????????\??? int cnt = 0; while(m != -1 || f != -1 || r != -1) { m = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); if(m == -1 && f == -1 && r == -1) { break; } else { pit.add(m); pit.add(f); pit.add(r); cnt+=3; } } int k = 0; for(int i = 2; i < cnt; i+=3) { if(pit.get(i-2) == -1 || pit.get(i-1) == -1) { pfm.add("F"); k++; } else if(pit.get(i-2) + pit.get(i-1) >= 80) { pfm.add("A"); k++; } else if(pit.get(i-2) + pit.get(i-1) >= 65) { pfm.add("B"); k++; } else if(pit.get(i-2) + pit.get(i-1) >= 50) { pfm.add("C"); k++; } else if(pit.get(i-2) + pit.get(i-1) >= 30) { if(pit.get(i) >= 50) { pfm.add("C"); k++; } else { pfm.add("D"); k++; } } else if(pit.get(i-2) + pit.get(i-1) < 30) { pfm.add("F"); k++; } } for(int i = 0; i < k; i++) { System.out.println(pfm.get(i)); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 17, 42, 2, 13, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 17, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 4, 8 ], [ 8, 9 ], [ 4, 10 ], [ 10, 11 ], [ 4, 12 ], [ 12, 13 ], [ 4, 14 ], [ 14, 15 ], [ 4, 16 ], [ 16, 17 ], [ 4, 18 ], [ 18, 19 ], [ 4, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 34, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 34, 50 ], [ 50, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 52, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 50, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 50, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 70, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 84, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 94, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 104, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 104, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 115, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 114, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 128, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 128, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 34, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 4, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 148, 154 ], [ 154, 155 ] ]
[ "import java.util.Scanner;\nclass Main{\n int f,r,m,x,y;\n boolean a;\n String b;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n while(a == false){\n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1){\n a = true;\n break;\n }else if(m == -1 || f == -1){\n b = \"F\";\n }else if(m + f >= 80){\n b = \"A\";\n }else if(m + f >= 65){\n b = \"B\";\n }else if(m + f >= 50){\n b = \"C\";\n }else if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }\n System.out.println(b);\n }\n }\n public static void main(String[] args){\n new Main().solve();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n int f,r,m,x,y;\n boolean a;\n String b;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n while(a == false){\n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1){\n a = true;\n break;\n }else if(m == -1 || f == -1){\n b = \"F\";\n }else if(m + f >= 80){\n b = \"A\";\n }else if(m + f >= 65){\n b = \"B\";\n }else if(m + f >= 50){\n b = \"C\";\n }else if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }\n System.out.println(b);\n }\n }\n public static void main(String[] args){\n new Main().solve();\n }\n}", "Main", "int f", "f", "r", "r", "m", "m", "x", "x", "y;", "y", "boolean a;", "a", "String b;", "b", "public void solve(){\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n while(a == false){\n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1){\n a = true;\n break;\n }else if(m == -1 || f == -1){\n b = \"F\";\n }else if(m + f >= 80){\n b = \"A\";\n }else if(m + f >= 65){\n b = \"B\";\n }else if(m + f >= 50){\n b = \"C\";\n }else if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }\n System.out.println(b);\n }\n }", "solve", "{\n Scanner sc = new Scanner(System.in);\n sc.useDelimiter(\"\\\\s\");\n while(a == false){\n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1){\n a = true;\n break;\n }else if(m == -1 || f == -1){\n b = \"F\";\n }else if(m + f >= 80){\n b = \"A\";\n }else if(m + f >= 65){\n b = \"B\";\n }else if(m + f >= 50){\n b = \"C\";\n }else if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }\n System.out.println(b);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "sc.useDelimiter(\"\\\\s\")", "sc.useDelimiter", "sc", "\"\\\\s\"", "while(a == false){\n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1){\n a = true;\n break;\n }else if(m == -1 || f == -1){\n b = \"F\";\n }else if(m + f >= 80){\n b = \"A\";\n }else if(m + f >= 65){\n b = \"B\";\n }else if(m + f >= 50){\n b = \"C\";\n }else if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }\n System.out.println(b);\n }", "a == false", "a", "false", "{\n m = sc.nextInt();\n f = sc.nextInt();\n r = sc.nextInt();\n if(m == -1 && f == -1 && r == -1){\n a = true;\n break;\n }else if(m == -1 || f == -1){\n b = \"F\";\n }else if(m + f >= 80){\n b = \"A\";\n }else if(m + f >= 65){\n b = \"B\";\n }else if(m + f >= 50){\n b = \"C\";\n }else if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }\n System.out.println(b);\n }", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "if(m == -1 && f == -1 && r == -1){\n a = true;\n break;\n }else if(m == -1 || f == -1){\n b = \"F\";\n }else if(m + f >= 80){\n b = \"A\";\n }else if(m + f >= 65){\n b = \"B\";\n }else if(m + f >= 50){\n b = \"C\";\n }else if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n a = true;\n break;\n }", "a = true", "a", "true", "break;", "if(m == -1 || f == -1){\n b = \"F\";\n }else if(m + f >= 80){\n b = \"A\";\n }else if(m + f >= 65){\n b = \"B\";\n }else if(m + f >= 50){\n b = \"C\";\n }else if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n b = \"F\";\n }", "b = \"F\"", "b", "\"F\"", "if(m + f >= 80){\n b = \"A\";\n }else if(m + f >= 65){\n b = \"B\";\n }else if(m + f >= 50){\n b = \"C\";\n }else if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }", "m + f >= 80", "m + f", "m", "f", "80", "{\n b = \"A\";\n }", "b = \"A\"", "b", "\"A\"", "if(m + f >= 65){\n b = \"B\";\n }else if(m + f >= 50){\n b = \"C\";\n }else if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }", "m + f >= 65", "m + f", "m", "f", "65", "{\n b = \"B\";\n }", "b = \"B\"", "b", "\"B\"", "if(m + f >= 50){\n b = \"C\";\n }else if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }", "m + f >= 50", "m + f", "m", "f", "50", "{\n b = \"C\";\n }", "b = \"C\"", "b", "\"C\"", "if(m + f >= 30 && r >= 50){\n b = \"C\";\n }else if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }", "m + f >= 30 && r >= 50", "m + f >= 30", "m + f", "m", "f", "30", "r >= 50", "r", "50", "{\n b = \"C\";\n }", "b = \"C\"", "b", "\"C\"", "if(m + f >= 30){\n b = \"D\";\n }else{\n b = \"F\";\n }", "m + f >= 30", "m + f", "m", "f", "30", "{\n b = \"D\";\n }", "b = \"D\"", "b", "\"D\"", "{\n b = \"F\";\n }", "b = \"F\"", "b", "\"F\"", "System.out.println(b)", "System.out.println", "System.out", "System", "System.out", "b", "public static void main(String[] args){\n new Main().solve();\n }", "main", "{\n new Main().solve();\n }", "new Main().solve()", "new Main().solve", "new Main()", "String[] args", "args" ]
import java.util.Scanner; class Main{ int f,r,m,x,y; boolean a; String b; public void solve(){ Scanner sc = new Scanner(System.in); sc.useDelimiter("\\s"); while(a == false){ m = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); if(m == -1 && f == -1 && r == -1){ a = true; break; }else if(m == -1 || f == -1){ b = "F"; }else if(m + f >= 80){ b = "A"; }else if(m + f >= 65){ b = "B"; }else if(m + f >= 50){ b = "C"; }else if(m + f >= 30 && r >= 50){ b = "C"; }else if(m + f >= 30){ b = "D"; }else{ b = "F"; } System.out.println(b); } } public static void main(String[] args){ new Main().solve(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 20, 11, 1, 30, 30, 0, 13, 4, 18, 4, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 40, 17, 3, 14, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 17, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 17, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 14, 2, 17, 2, 18, 13, 17, 18, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 14, 16 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 28, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 31, 36 ], [ 28, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 28, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 60, 75 ], [ 28, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 77, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 76, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 76, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 96, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 96, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 129, 131 ], [ 124, 132 ], [ 113, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 112, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 112, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 153, 155 ], [ 146, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 161, 163 ], [ 156, 164 ], [ 145, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 144, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 144, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 184, 185 ], [ 184, 186 ], [ 177, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 188, 192 ], [ 192, 193 ], [ 192, 194 ], [ 187, 195 ], [ 176, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 196, 201 ], [ 176, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 206, 210 ], [ 210, 211 ], [ 210, 212 ], [ 203, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 214, 218 ], [ 218, 219 ], [ 218, 220 ], [ 213, 221 ], [ 202, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 222, 227 ], [ 202, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 231, 235 ], [ 235, 236 ], [ 235, 237 ], [ 228, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 238, 243 ], [ 11, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 9, 249 ], [ 249, 250 ] ]
[ "import java.io.*;\nimport java.util.Arrays;\nclass Main{\n public static void main(String[] args) throws IOException {\n int i;\n int[] n = new int[990];\n String[] str = new String[990];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine().split(\" \");\n for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]);\n }\n if(n[0]==n[1] && n[0]==-1) break;\n if((n[0]==-1) || (n[1]==-1)) \n System.out.println(\"F\");\n else if(n[0]+n[1]<30) \n System.out.println(\"F\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50) \n System.out.println(\"D\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) \n System.out.println(\"C\");\n else if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\"); \n } \n System.out.flush();\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "class Main{\n public static void main(String[] args) throws IOException {\n int i;\n int[] n = new int[990];\n String[] str = new String[990];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine().split(\" \");\n for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]);\n }\n if(n[0]==n[1] && n[0]==-1) break;\n if((n[0]==-1) || (n[1]==-1)) \n System.out.println(\"F\");\n else if(n[0]+n[1]<30) \n System.out.println(\"F\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50) \n System.out.println(\"D\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) \n System.out.println(\"C\");\n else if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\"); \n } \n System.out.flush();\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n int i;\n int[] n = new int[990];\n String[] str = new String[990];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine().split(\" \");\n for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]);\n }\n if(n[0]==n[1] && n[0]==-1) break;\n if((n[0]==-1) || (n[1]==-1)) \n System.out.println(\"F\");\n else if(n[0]+n[1]<30) \n System.out.println(\"F\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50) \n System.out.println(\"D\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) \n System.out.println(\"C\");\n else if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\"); \n } \n System.out.flush();\n }", "main", "{\n int i;\n int[] n = new int[990];\n String[] str = new String[990];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine().split(\" \");\n for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]);\n }\n if(n[0]==n[1] && n[0]==-1) break;\n if((n[0]==-1) || (n[1]==-1)) \n System.out.println(\"F\");\n else if(n[0]+n[1]<30) \n System.out.println(\"F\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50) \n System.out.println(\"D\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) \n System.out.println(\"C\");\n else if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\"); \n } \n System.out.flush();\n }", "int i;", "i", "int[] n = new int[990];", "n", "new int[990]", "990", "String[] str = new String[990];", "str", "new String[990]", "990", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "for(;;){\n str = in.readLine().split(\" \");\n for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]);\n }\n if(n[0]==n[1] && n[0]==-1) break;\n if((n[0]==-1) || (n[1]==-1)) \n System.out.println(\"F\");\n else if(n[0]+n[1]<30) \n System.out.println(\"F\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50) \n System.out.println(\"D\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) \n System.out.println(\"C\");\n else if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\"); \n }", ";", "{\n str = in.readLine().split(\" \");\n for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]);\n }\n if(n[0]==n[1] && n[0]==-1) break;\n if((n[0]==-1) || (n[1]==-1)) \n System.out.println(\"F\");\n else if(n[0]+n[1]<30) \n System.out.println(\"F\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50) \n System.out.println(\"D\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) \n System.out.println(\"C\");\n else if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\"); \n }", "{\n str = in.readLine().split(\" \");\n for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]);\n }\n if(n[0]==n[1] && n[0]==-1) break;\n if((n[0]==-1) || (n[1]==-1)) \n System.out.println(\"F\");\n else if(n[0]+n[1]<30) \n System.out.println(\"F\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50) \n System.out.println(\"D\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) \n System.out.println(\"C\");\n else if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\"); \n }", "str = in.readLine().split(\" \")", "str", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "for(i=0;i<3;i++){\n n[i]=Integer.parseInt(str[i]);\n }", "i=0;", "i=0", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n n[i]=Integer.parseInt(str[i]);\n }", "{\n n[i]=Integer.parseInt(str[i]);\n }", "n[i]=Integer.parseInt(str[i])", "n[i]", "n", "i", "Integer.parseInt(str[i])", "Integer.parseInt", "Integer", "str[i]", "str", "i", "if(n[0]==n[1] && n[0]==-1) break;", "n[0]==n[1] && n[0]==-1", "n[0]==n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "n[0]==-1", "n[0]", "n", "0", "-1", "1", "break;", "if((n[0]==-1) || (n[1]==-1)) \n System.out.println(\"F\");\n else if(n[0]+n[1]<30) \n System.out.println(\"F\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50) \n System.out.println(\"D\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) \n System.out.println(\"C\");\n else if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\");", "(n[0]==-1) || (n[1]==-1)", "(n[0]==-1)", "n[0]", "n", "0", "-1", "1", "(n[1]==-1)", "n[1]", "n", "1", "-1", "1", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(n[0]+n[1]<30) \n System.out.println(\"F\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50) \n System.out.println(\"D\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) \n System.out.println(\"C\");\n else if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\");", "n[0]+n[1]<30", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "30", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50) \n System.out.println(\"D\");\n else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) \n System.out.println(\"C\");\n else if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\");", "(30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50", "(30<=n[0]+n[1] && n[0]+n[1]<50)", "30<=n[0]+n[1]", "30", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "n[0]+n[1]<50", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "50", "n[2]<50", "n[2]", "n", "2", "50", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) \n System.out.println(\"C\");\n else if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\");", "(30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50", "(30<=n[0]+n[1] && n[0]+n[1]<50)", "30<=n[0]+n[1]", "30", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "n[0]+n[1]<50", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "50", "n[2]>=50", "n[2]", "n", "2", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if((50<=n[0]+n[1] && n[0]+n[1]<65)) \n System.out.println(\"C\");\n else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\");", "(50<=n[0]+n[1] && n[0]+n[1]<65)", "50<=n[0]+n[1]", "50", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "n[0]+n[1]<65", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "65", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) \n System.out.println(\"B\");\n else if(80<=n[0]+n[1]) \n System.out.println(\"A\");", "(65<=n[0]+n[1]) && (n[0]+n[1]<80)", "(65<=n[0]+n[1])", "65", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "(n[0]+n[1]<80)", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "80", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(80<=n[0]+n[1]) \n System.out.println(\"A\");", "80<=n[0]+n[1]", "80", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "System.out.flush()", "System.out.flush", "System.out", "System", "System.out", "String[] args", "args" ]
import java.io.*; import java.util.Arrays; class Main{ public static void main(String[] args) throws IOException { int i; int[] n = new int[990]; String[] str = new String[990]; BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); for(;;){ str = in.readLine().split(" "); for(i=0;i<3;i++){ n[i]=Integer.parseInt(str[i]); } if(n[0]==n[1] && n[0]==-1) break; if((n[0]==-1) || (n[1]==-1)) System.out.println("F"); else if(n[0]+n[1]<30) System.out.println("F"); else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]<50) System.out.println("D"); else if((30<=n[0]+n[1] && n[0]+n[1]<50) && n[2]>=50) System.out.println("C"); else if((50<=n[0]+n[1] && n[0]+n[1]<65)) System.out.println("C"); else if((65<=n[0]+n[1]) && (n[0]+n[1]<80)) System.out.println("B"); else if(80<=n[0]+n[1]) System.out.println("A"); } System.out.flush(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 17, 41, 13, 20, 17, 42, 17, 30, 0, 13, 4, 18, 4, 18, 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, 14, 2, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 30, 3, 14, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 30, 4, 18, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 4, 18, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 4, 18, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 4, 18, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 30, 14, 2, 18, 13, 17, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 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 ], [ 190, 8 ], [ 190, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 31, 36 ], [ 28, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 37, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 28, 62 ], [ 62, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 64, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 64, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 62, 83 ], [ 83, 84 ], [ 62, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 86, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 85, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 85, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 110, 112 ], [ 105, 113 ], [ 104, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 104, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 125, 127 ], [ 120, 128 ], [ 119, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 119, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 140, 141 ], [ 140, 142 ], [ 135, 143 ], [ 134, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 134, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 155, 157 ], [ 150, 158 ], [ 149, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 160, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 160, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 172, 175 ], [ 149, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 177, 180 ], [ 11, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 181, 186 ], [ 9, 187 ], [ 187, 188 ], [ 0, 189 ], [ 189, 190 ], [ 189, 191 ] ]
[ "import java.util.*;\nimport java.lang.StringBuilder;\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] st = new String[3];\n\t\tint[] n = new int[3];\n\t\tdo{\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int i = 0;i<st.length;i++){\n\t\t\t\tn[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tif(n[0]==-1&&n[1]==-1&&n[2]==-1){\n\t\t\t\tbreak;\n\t\t\t}else if(n[0]==-1||n[1]==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}else if(n[0]+n[1]>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}else if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}while(true);\n\t\t\tSystem.out.print(sb);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.StringBuilder;", "StringBuilder", "java.lang", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] st = new String[3];\n\t\tint[] n = new int[3];\n\t\tdo{\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int i = 0;i<st.length;i++){\n\t\t\t\tn[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tif(n[0]==-1&&n[1]==-1&&n[2]==-1){\n\t\t\t\tbreak;\n\t\t\t}else if(n[0]==-1||n[1]==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}else if(n[0]+n[1]>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}else if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}while(true);\n\t\t\tSystem.out.print(sb);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] st = new String[3];\n\t\tint[] n = new int[3];\n\t\tdo{\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int i = 0;i<st.length;i++){\n\t\t\t\tn[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tif(n[0]==-1&&n[1]==-1&&n[2]==-1){\n\t\t\t\tbreak;\n\t\t\t}else if(n[0]==-1||n[1]==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}else if(n[0]+n[1]>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}else if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}while(true);\n\t\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] st = new String[3];\n\t\tint[] n = new int[3];\n\t\tdo{\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int i = 0;i<st.length;i++){\n\t\t\t\tn[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tif(n[0]==-1&&n[1]==-1&&n[2]==-1){\n\t\t\t\tbreak;\n\t\t\t}else if(n[0]==-1||n[1]==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}else if(n[0]+n[1]>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}else if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}while(true);\n\t\t\tSystem.out.print(sb);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String[] st = new String[3];", "st", "new String[3]", "3", "int[] n = new int[3];", "n", "new int[3]", "3", "do{\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int i = 0;i<st.length;i++){\n\t\t\t\tn[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tif(n[0]==-1&&n[1]==-1&&n[2]==-1){\n\t\t\t\tbreak;\n\t\t\t}else if(n[0]==-1||n[1]==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}else if(n[0]+n[1]>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}else if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}while(true);", "true", "{\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int i = 0;i<st.length;i++){\n\t\t\t\tn[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tif(n[0]==-1&&n[1]==-1&&n[2]==-1){\n\t\t\t\tbreak;\n\t\t\t}else if(n[0]==-1||n[1]==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}else if(n[0]+n[1]>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}else if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}", "st = sc.nextLine().split(\" \")", "st", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "for(int i = 0;i<st.length;i++){\n\t\t\t\tn[i] = Integer.parseInt(st[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<st.length", "i", "st.length", "st", "st.length", "i++", "i++", "i", "{\n\t\t\t\tn[i] = Integer.parseInt(st[i]);\n\t\t\t}", "{\n\t\t\t\tn[i] = Integer.parseInt(st[i]);\n\t\t\t}", "n[i] = Integer.parseInt(st[i])", "n[i]", "n", "i", "Integer.parseInt(st[i])", "Integer.parseInt", "Integer", "st[i]", "st", "i", "if(n[0]==-1&&n[1]==-1&&n[2]==-1){\n\t\t\t\tbreak;\n\t\t\t}else if(n[0]==-1||n[1]==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}else if(n[0]+n[1]>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}else if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "n[0]==-1&&n[1]==-1&&n[2]==-1", "n[0]==-1&&n[1]==-1&&n[2]==-1", "n[0]==-1", "n[0]", "n", "0", "-1", "1", "n[1]==-1", "n[1]", "n", "1", "-1", "1", "n[2]==-1", "n[2]", "n", "2", "-1", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(n[0]==-1||n[1]==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}else if(n[0]+n[1]>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}else if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "n[0]==-1||n[1]==-1", "n[0]==-1", "n[0]", "n", "0", "-1", "1", "n[1]==-1", "n[1]", "n", "1", "-1", "1", "{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "sb.append(\"F\\n\")", "sb.append", "sb", "\"F\\n\"", "if(n[0]+n[1]>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}else if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "n[0]+n[1]>=80", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "80", "{\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}", "sb.append(\"A\\n\")", "sb.append", "sb", "\"A\\n\"", "if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "n[0]+n[1]>=65", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "65", "{\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}", "sb.append(\"B\\n\")", "sb.append", "sb", "\"B\\n\"", "if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "n[0]+n[1]>=50", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "50", "{\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}", "sb.append(\"C\\n\")", "sb.append", "sb", "\"C\\n\"", "if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "n[0]+n[1]>=30", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "30", "{\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}", "if(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}", "n[2]>=50", "n[2]", "n", "2", "50", "{\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}", "sb.append(\"C\\n\")", "sb.append", "sb", "\"C\\n\"", "{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}", "sb.append(\"D\\n\")", "sb.append", "sb", "\"D\\n\"", "{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "sb.append(\"F\\n\")", "sb.append", "sb", "\"F\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] st = new String[3];\n\t\tint[] n = new int[3];\n\t\tdo{\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int i = 0;i<st.length;i++){\n\t\t\t\tn[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tif(n[0]==-1&&n[1]==-1&&n[2]==-1){\n\t\t\t\tbreak;\n\t\t\t}else if(n[0]==-1||n[1]==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}else if(n[0]+n[1]>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}else if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}while(true);\n\t\t\tSystem.out.print(sb);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] st = new String[3];\n\t\tint[] n = new int[3];\n\t\tdo{\n\t\t\tst = sc.nextLine().split(\" \");\n\t\t\tfor(int i = 0;i<st.length;i++){\n\t\t\t\tn[i] = Integer.parseInt(st[i]);\n\t\t\t}\n\t\t\tif(n[0]==-1&&n[1]==-1&&n[2]==-1){\n\t\t\t\tbreak;\n\t\t\t}else if(n[0]==-1||n[1]==-1){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}else if(n[0]+n[1]>=80){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}else if(n[0]+n[1]>=65){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}else if(n[0]+n[1]>=50){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}else if(n[0]+n[1]>=30){\n\t\t\t\tif(n[2]>=50){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}while(true);\n\t\t\tSystem.out.print(sb);\n\t}\n}", "Main" ]
import java.util.*; import java.lang.StringBuilder; public class Main { public static void main(String[] args) throws Exception{ Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); String[] st = new String[3]; int[] n = new int[3]; do{ st = sc.nextLine().split(" "); for(int i = 0;i<st.length;i++){ n[i] = Integer.parseInt(st[i]); } if(n[0]==-1&&n[1]==-1&&n[2]==-1){ break; }else if(n[0]==-1||n[1]==-1){ sb.append("F\n"); }else if(n[0]+n[1]>=80){ sb.append("A\n"); }else if(n[0]+n[1]>=65){ sb.append("B\n"); }else if(n[0]+n[1]>=50){ sb.append("C\n"); }else if(n[0]+n[1]>=30){ if(n[2]>=50){ sb.append("C\n"); }else{ sb.append("D\n"); } }else{ sb.append("F\n"); } }while(true); System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 41, 13, 2, 13, 13, 41, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 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 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 14, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 14, 51 ], [ 51, 52 ], [ 14, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 53, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 75, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 87, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 108, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 99, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 14, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a == -1 && b == -1 && c == -1) break;\n \n int sum = a + b;\n \n char grade;\n \n if(a == -1 || b == -1){\n grade = 'F';\n }else if(sum >= 80){\n grade = 'A';\n }else if(sum >= 65 && sum < 80){\n grade = 'B';\n }else if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }\n System.out.println(grade);\n \n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a == -1 && b == -1 && c == -1) break;\n \n int sum = a + b;\n \n char grade;\n \n if(a == -1 || b == -1){\n grade = 'F';\n }else if(sum >= 80){\n grade = 'A';\n }else if(sum >= 65 && sum < 80){\n grade = 'B';\n }else if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }\n System.out.println(grade);\n \n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a == -1 && b == -1 && c == -1) break;\n \n int sum = a + b;\n \n char grade;\n \n if(a == -1 || b == -1){\n grade = 'F';\n }else if(sum >= 80){\n grade = 'A';\n }else if(sum >= 65 && sum < 80){\n grade = 'B';\n }else if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }\n System.out.println(grade);\n \n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a == -1 && b == -1 && c == -1) break;\n \n int sum = a + b;\n \n char grade;\n \n if(a == -1 || b == -1){\n grade = 'F';\n }else if(sum >= 80){\n grade = 'A';\n }else if(sum >= 65 && sum < 80){\n grade = 'B';\n }else if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }\n System.out.println(grade);\n \n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a == -1 && b == -1 && c == -1) break;\n \n int sum = a + b;\n \n char grade;\n \n if(a == -1 || b == -1){\n grade = 'F';\n }else if(sum >= 80){\n grade = 'A';\n }else if(sum >= 65 && sum < 80){\n grade = 'B';\n }else if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }\n System.out.println(grade);\n \n }", "true", "{\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a == -1 && b == -1 && c == -1) break;\n \n int sum = a + b;\n \n char grade;\n \n if(a == -1 || b == -1){\n grade = 'F';\n }else if(sum >= 80){\n grade = 'A';\n }else if(sum >= 65 && sum < 80){\n grade = 'B';\n }else if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }\n System.out.println(grade);\n \n }", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int c = sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "if(a == -1 && b == -1 && c == -1) break;", "a == -1 && b == -1 && c == -1", "a == -1 && b == -1 && c == -1", "a == -1", "a", "-1", "1", "b == -1", "b", "-1", "1", "c == -1", "c", "-1", "1", "break;", "int sum = a + b;", "sum", "a + b", "a", "b", "char grade;", "grade", "if(a == -1 || b == -1){\n grade = 'F';\n }else if(sum >= 80){\n grade = 'A';\n }else if(sum >= 65 && sum < 80){\n grade = 'B';\n }else if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }", "a == -1 || b == -1", "a == -1", "a", "-1", "1", "b == -1", "b", "-1", "1", "{\n grade = 'F';\n }", "grade = 'F'", "grade", "'F'", "if(sum >= 80){\n grade = 'A';\n }else if(sum >= 65 && sum < 80){\n grade = 'B';\n }else if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }", "sum >= 80", "sum", "80", "{\n grade = 'A';\n }", "grade = 'A'", "grade", "'A'", "if(sum >= 65 && sum < 80){\n grade = 'B';\n }else if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }", "sum >= 65 && sum < 80", "sum >= 65", "sum", "65", "sum < 80", "sum", "80", "{\n grade = 'B';\n }", "grade = 'B'", "grade", "'B'", "if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }", "sum >= 50 && sum < 65", "sum >= 50", "sum", "50", "sum < 65", "sum", "65", "{\n grade = 'C';\n }", "grade = 'C'", "grade", "'C'", "if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }", "sum >= 30 && sum < 50", "sum >= 30", "sum", "30", "sum < 50", "sum", "50", "{\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }", "if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }", "c >= 50", "c", "50", "{\n grade = 'C';\n }", "grade = 'C'", "grade", "'C'", "{\n grade = 'D';\n }", "grade = 'D'", "grade", "'D'", "{\n grade = 'F';\n }", "grade = 'F'", "grade", "'F'", "System.out.println(grade)", "System.out.println", "System.out", "System", "System.out", "grade", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a == -1 && b == -1 && c == -1) break;\n \n int sum = a + b;\n \n char grade;\n \n if(a == -1 || b == -1){\n grade = 'F';\n }else if(sum >= 80){\n grade = 'A';\n }else if(sum >= 65 && sum < 80){\n grade = 'B';\n }else if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }\n System.out.println(grade);\n \n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a == -1 && b == -1 && c == -1) break;\n \n int sum = a + b;\n \n char grade;\n \n if(a == -1 || b == -1){\n grade = 'F';\n }else if(sum >= 80){\n grade = 'A';\n }else if(sum >= 65 && sum < 80){\n grade = 'B';\n }else if(sum >= 50 && sum < 65){\n grade = 'C';\n }else if(sum >= 30 && sum < 50){\n if(c >= 50){\n grade = 'C';\n }else{\n grade = 'D';\n }\n }else{\n grade = 'F';\n }\n System.out.println(grade);\n \n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(a == -1 && b == -1 && c == -1) break; int sum = a + b; char grade; if(a == -1 || b == -1){ grade = 'F'; }else if(sum >= 80){ grade = 'A'; }else if(sum >= 65 && sum < 80){ grade = 'B'; }else if(sum >= 50 && sum < 65){ grade = 'C'; }else if(sum >= 30 && sum < 50){ if(c >= 50){ grade = 'C'; }else{ grade = 'D'; } }else{ grade = 'F'; } System.out.println(grade); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 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 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 43, 44 ], [ 20, 45 ], [ 45, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 47, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 45, 60 ], [ 20, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 61, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 61, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 85, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 84, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 97, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 84, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 116, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 115, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 115, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 135, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 134, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 134, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 12, 160 ], [ 160, 161 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n\n while(true){\n int m=Integer.parseInt(scan.next());\n int f=Integer.parseInt(scan.next());\n int r=Integer.parseInt(scan.next());\n if(m==-1 && f==-1 && r==-1)break;\n if((m==-1 || f==-1) || (m+f)<30){\n System.out.println('F');\n }else if((m+f)>=30 && (m+f)<50){\n if(r>=50){\n System.out.println('C');\n }else{\n System.out.println('D');\n }\n }else if((m+f)>=50 && (m+f)<65){\n System.out.println('C');\n }else if((m+f)>=65 && (m+f)<80){\n System.out.println('B');\n }else{\n System.out.println('A');\n }\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "class Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n\n while(true){\n int m=Integer.parseInt(scan.next());\n int f=Integer.parseInt(scan.next());\n int r=Integer.parseInt(scan.next());\n if(m==-1 && f==-1 && r==-1)break;\n if((m==-1 || f==-1) || (m+f)<30){\n System.out.println('F');\n }else if((m+f)>=30 && (m+f)<50){\n if(r>=50){\n System.out.println('C');\n }else{\n System.out.println('D');\n }\n }else if((m+f)>=50 && (m+f)<65){\n System.out.println('C');\n }else if((m+f)>=65 && (m+f)<80){\n System.out.println('B');\n }else{\n System.out.println('A');\n }\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n\n while(true){\n int m=Integer.parseInt(scan.next());\n int f=Integer.parseInt(scan.next());\n int r=Integer.parseInt(scan.next());\n if(m==-1 && f==-1 && r==-1)break;\n if((m==-1 || f==-1) || (m+f)<30){\n System.out.println('F');\n }else if((m+f)>=30 && (m+f)<50){\n if(r>=50){\n System.out.println('C');\n }else{\n System.out.println('D');\n }\n }else if((m+f)>=50 && (m+f)<65){\n System.out.println('C');\n }else if((m+f)>=65 && (m+f)<80){\n System.out.println('B');\n }else{\n System.out.println('A');\n }\n }\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n\n while(true){\n int m=Integer.parseInt(scan.next());\n int f=Integer.parseInt(scan.next());\n int r=Integer.parseInt(scan.next());\n if(m==-1 && f==-1 && r==-1)break;\n if((m==-1 || f==-1) || (m+f)<30){\n System.out.println('F');\n }else if((m+f)>=30 && (m+f)<50){\n if(r>=50){\n System.out.println('C');\n }else{\n System.out.println('D');\n }\n }else if((m+f)>=50 && (m+f)<65){\n System.out.println('C');\n }else if((m+f)>=65 && (m+f)<80){\n System.out.println('B');\n }else{\n System.out.println('A');\n }\n }\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n int m=Integer.parseInt(scan.next());\n int f=Integer.parseInt(scan.next());\n int r=Integer.parseInt(scan.next());\n if(m==-1 && f==-1 && r==-1)break;\n if((m==-1 || f==-1) || (m+f)<30){\n System.out.println('F');\n }else if((m+f)>=30 && (m+f)<50){\n if(r>=50){\n System.out.println('C');\n }else{\n System.out.println('D');\n }\n }else if((m+f)>=50 && (m+f)<65){\n System.out.println('C');\n }else if((m+f)>=65 && (m+f)<80){\n System.out.println('B');\n }else{\n System.out.println('A');\n }\n }", "true", "{\n int m=Integer.parseInt(scan.next());\n int f=Integer.parseInt(scan.next());\n int r=Integer.parseInt(scan.next());\n if(m==-1 && f==-1 && r==-1)break;\n if((m==-1 || f==-1) || (m+f)<30){\n System.out.println('F');\n }else if((m+f)>=30 && (m+f)<50){\n if(r>=50){\n System.out.println('C');\n }else{\n System.out.println('D');\n }\n }else if((m+f)>=50 && (m+f)<65){\n System.out.println('C');\n }else if((m+f)>=65 && (m+f)<80){\n System.out.println('B');\n }else{\n System.out.println('A');\n }\n }", "int m=Integer.parseInt(scan.next());", "m", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "int f=Integer.parseInt(scan.next());", "f", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "int r=Integer.parseInt(scan.next());", "r", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "if(m==-1 && f==-1 && r==-1)break;", "m==-1 && f==-1 && r==-1", "m==-1 && f==-1 && r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "break;", "if((m==-1 || f==-1) || (m+f)<30){\n System.out.println('F');\n }else if((m+f)>=30 && (m+f)<50){\n if(r>=50){\n System.out.println('C');\n }else{\n System.out.println('D');\n }\n }else if((m+f)>=50 && (m+f)<65){\n System.out.println('C');\n }else if((m+f)>=65 && (m+f)<80){\n System.out.println('B');\n }else{\n System.out.println('A');\n }", "(m==-1 || f==-1) || (m+f)<30", "(m==-1 || f==-1)", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "(m+f)<30", "(m+f)", "m", "f", "30", "{\n System.out.println('F');\n }", "System.out.println('F')", "System.out.println", "System.out", "System", "System.out", "'F'", "if((m+f)>=30 && (m+f)<50){\n if(r>=50){\n System.out.println('C');\n }else{\n System.out.println('D');\n }\n }else if((m+f)>=50 && (m+f)<65){\n System.out.println('C');\n }else if((m+f)>=65 && (m+f)<80){\n System.out.println('B');\n }else{\n System.out.println('A');\n }", "(m+f)>=30 && (m+f)<50", "(m+f)>=30", "(m+f)", "m", "f", "30", "(m+f)<50", "(m+f)", "m", "f", "50", "{\n if(r>=50){\n System.out.println('C');\n }else{\n System.out.println('D');\n }\n }", "if(r>=50){\n System.out.println('C');\n }else{\n System.out.println('D');\n }", "r>=50", "r", "50", "{\n System.out.println('C');\n }", "System.out.println('C')", "System.out.println", "System.out", "System", "System.out", "'C'", "{\n System.out.println('D');\n }", "System.out.println('D')", "System.out.println", "System.out", "System", "System.out", "'D'", "if((m+f)>=50 && (m+f)<65){\n System.out.println('C');\n }else if((m+f)>=65 && (m+f)<80){\n System.out.println('B');\n }else{\n System.out.println('A');\n }", "(m+f)>=50 && (m+f)<65", "(m+f)>=50", "(m+f)", "m", "f", "50", "(m+f)<65", "(m+f)", "m", "f", "65", "{\n System.out.println('C');\n }", "System.out.println('C')", "System.out.println", "System.out", "System", "System.out", "'C'", "if((m+f)>=65 && (m+f)<80){\n System.out.println('B');\n }else{\n System.out.println('A');\n }", "(m+f)>=65 && (m+f)<80", "(m+f)>=65", "(m+f)", "m", "f", "65", "(m+f)<80", "(m+f)", "m", "f", "80", "{\n System.out.println('B');\n }", "System.out.println('B')", "System.out.println", "System.out", "System", "System.out", "'B'", "{\n System.out.println('A');\n }", "System.out.println('A')", "System.out.println", "System.out", "System", "System.out", "'A'", "String[] args", "args" ]
import java.io.*; import java.util.*; import java.lang.*; class Main{ public static void main(String[] args) throws IOException{ Scanner scan=new Scanner(System.in); while(true){ int m=Integer.parseInt(scan.next()); int f=Integer.parseInt(scan.next()); int r=Integer.parseInt(scan.next()); if(m==-1 && f==-1 && r==-1)break; if((m==-1 || f==-1) || (m+f)<30){ System.out.println('F'); }else if((m+f)>=30 && (m+f)<50){ if(r>=50){ System.out.println('C'); }else{ System.out.println('D'); } }else if((m+f)>=50 && (m+f)<65){ System.out.println('C'); }else if((m+f)>=65 && (m+f)<80){ System.out.println('B'); }else{ System.out.println('A'); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 2, 13, 13, 17, 2, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 27, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 34, 40 ], [ 40, 41 ], [ 34, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 49, 54 ], [ 46, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 46, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 46, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 46, 79 ], [ 79, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 81, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 79, 94 ], [ 94, 95 ], [ 79, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 97, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 96, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 96, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 118, 124 ], [ 124, 125 ], [ 124, 126 ], [ 117, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 117, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 134, 140 ], [ 140, 141 ], [ 140, 142 ], [ 133, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 132, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 132, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 153, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 153, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 34, 169 ], [ 169, 170 ], [ 169, 171 ], [ 169, 172 ], [ 173, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 18, 180 ], [ 180, 181 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.LinkedList;\nimport java.util.List;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<String> ret = new LinkedList<String>();\n\t\t\tint m, f, r;\n\t\t\tdo {\n\t\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\t\tm = Integer.parseInt(inputList[0]);\n\t\t\t\tf = Integer.parseInt(inputList[1]);\n\t\t\t\tr = Integer.parseInt(inputList[2]);\n\t\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else if ((m == -1 || f == -1) || m + f < 30) {\n\t\t\t\t\tret.add(\"F\");\n\t\t\t\t} else if (m + f < 50 && r < 50) {\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t} else if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}\n\t\t\t} while (true);\n\t\t\tfor (String text : ret) {\n\t\t\t\tSystem.out.println(text);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.LinkedList;", "LinkedList", "java.util", "import java.util.List;", "List", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<String> ret = new LinkedList<String>();\n\t\t\tint m, f, r;\n\t\t\tdo {\n\t\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\t\tm = Integer.parseInt(inputList[0]);\n\t\t\t\tf = Integer.parseInt(inputList[1]);\n\t\t\t\tr = Integer.parseInt(inputList[2]);\n\t\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else if ((m == -1 || f == -1) || m + f < 30) {\n\t\t\t\t\tret.add(\"F\");\n\t\t\t\t} else if (m + f < 50 && r < 50) {\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t} else if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}\n\t\t\t} while (true);\n\t\t\tfor (String text : ret) {\n\t\t\t\tSystem.out.println(text);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<String> ret = new LinkedList<String>();\n\t\t\tint m, f, r;\n\t\t\tdo {\n\t\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\t\tm = Integer.parseInt(inputList[0]);\n\t\t\t\tf = Integer.parseInt(inputList[1]);\n\t\t\t\tr = Integer.parseInt(inputList[2]);\n\t\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else if ((m == -1 || f == -1) || m + f < 30) {\n\t\t\t\t\tret.add(\"F\");\n\t\t\t\t} else if (m + f < 50 && r < 50) {\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t} else if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}\n\t\t\t} while (true);\n\t\t\tfor (String text : ret) {\n\t\t\t\tSystem.out.println(text);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tList<String> ret = new LinkedList<String>();\n\t\t\tint m, f, r;\n\t\t\tdo {\n\t\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\t\tm = Integer.parseInt(inputList[0]);\n\t\t\t\tf = Integer.parseInt(inputList[1]);\n\t\t\t\tr = Integer.parseInt(inputList[2]);\n\t\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else if ((m == -1 || f == -1) || m + f < 30) {\n\t\t\t\t\tret.add(\"F\");\n\t\t\t\t} else if (m + f < 50 && r < 50) {\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t} else if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}\n\t\t\t} while (true);\n\t\t\tfor (String text : ret) {\n\t\t\t\tSystem.out.println(text);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "try {\n\t\t\tList<String> ret = new LinkedList<String>();\n\t\t\tint m, f, r;\n\t\t\tdo {\n\t\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\t\tm = Integer.parseInt(inputList[0]);\n\t\t\t\tf = Integer.parseInt(inputList[1]);\n\t\t\t\tr = Integer.parseInt(inputList[2]);\n\t\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else if ((m == -1 || f == -1) || m + f < 30) {\n\t\t\t\t\tret.add(\"F\");\n\t\t\t\t} else if (m + f < 50 && r < 50) {\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t} else if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}\n\t\t\t} while (true);\n\t\t\tfor (String text : ret) {\n\t\t\t\tSystem.out.println(text);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tList<String> ret = new LinkedList<String>();\n\t\t\tint m, f, r;\n\t\t\tdo {\n\t\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\t\tm = Integer.parseInt(inputList[0]);\n\t\t\t\tf = Integer.parseInt(inputList[1]);\n\t\t\t\tr = Integer.parseInt(inputList[2]);\n\t\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else if ((m == -1 || f == -1) || m + f < 30) {\n\t\t\t\t\tret.add(\"F\");\n\t\t\t\t} else if (m + f < 50 && r < 50) {\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t} else if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}\n\t\t\t} while (true);\n\t\t\tfor (String text : ret) {\n\t\t\t\tSystem.out.println(text);\n\t\t\t}\n\t\t}", "List<String> ret = new LinkedList<String>();", "ret", "new LinkedList<String>()", "int m", "m", "f", "f", "r;", "r", "do {\n\t\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\t\tm = Integer.parseInt(inputList[0]);\n\t\t\t\tf = Integer.parseInt(inputList[1]);\n\t\t\t\tr = Integer.parseInt(inputList[2]);\n\t\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else if ((m == -1 || f == -1) || m + f < 30) {\n\t\t\t\t\tret.add(\"F\");\n\t\t\t\t} else if (m + f < 50 && r < 50) {\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t} else if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}\n\t\t\t} while (true);", "true", "{\n\t\t\t\tString[] inputList = br.readLine().split(\" \");\n\t\t\t\tm = Integer.parseInt(inputList[0]);\n\t\t\t\tf = Integer.parseInt(inputList[1]);\n\t\t\t\tr = Integer.parseInt(inputList[2]);\n\t\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else if ((m == -1 || f == -1) || m + f < 30) {\n\t\t\t\t\tret.add(\"F\");\n\t\t\t\t} else if (m + f < 50 && r < 50) {\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t} else if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}\n\t\t\t}", "String[] inputList = br.readLine().split(\" \");", "inputList", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "m = Integer.parseInt(inputList[0])", "m", "Integer.parseInt(inputList[0])", "Integer.parseInt", "Integer", "inputList[0]", "inputList", "0", "f = Integer.parseInt(inputList[1])", "f", "Integer.parseInt(inputList[1])", "Integer.parseInt", "Integer", "inputList[1]", "inputList", "1", "r = Integer.parseInt(inputList[2])", "r", "Integer.parseInt(inputList[2])", "Integer.parseInt", "Integer", "inputList[2]", "inputList", "2", "if (m == -1 && f == -1 && r == -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else if ((m == -1 || f == -1) || m + f < 30) {\n\t\t\t\t\tret.add(\"F\");\n\t\t\t\t} else if (m + f < 50 && r < 50) {\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t} else if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "if ((m == -1 || f == -1) || m + f < 30) {\n\t\t\t\t\tret.add(\"F\");\n\t\t\t\t} else if (m + f < 50 && r < 50) {\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t} else if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}", "(m == -1 || f == -1) || m + f < 30", "(m == -1 || f == -1)", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "m + f < 30", "m + f", "m", "f", "30", "{\n\t\t\t\t\tret.add(\"F\");\n\t\t\t\t}", "ret.add(\"F\")", "ret.add", "ret", "\"F\"", "if (m + f < 50 && r < 50) {\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t} else if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}", "m + f < 50 && r < 50", "m + f < 50", "m + f", "m", "f", "50", "r < 50", "r", "50", "{\n\t\t\t\t\tret.add(\"D\");\n\t\t\t\t}", "ret.add(\"D\")", "ret.add", "ret", "\"D\"", "if ((m + f < 50 && r >= 50) || m + f < 65) {\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t} else if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}", "(m + f < 50 && r >= 50) || m + f < 65", "(m + f < 50 && r >= 50)", "m + f < 50", "m + f", "m", "f", "50", "r >= 50", "r", "50", "m + f < 65", "m + f", "m", "f", "65", "{\n\t\t\t\t\tret.add(\"C\");\n\t\t\t\t}", "ret.add(\"C\")", "ret.add", "ret", "\"C\"", "if (m + f < 80) {\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t} else {\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}", "m + f < 80", "m + f", "m", "f", "80", "{\n\t\t\t\t\tret.add(\"B\");\n\t\t\t\t}", "ret.add(\"B\")", "ret.add", "ret", "\"B\"", "{\n\t\t\t\t\tret.add(\"A\");\n\t\t\t\t}", "ret.add(\"A\")", "ret.add", "ret", "\"A\"", "for (String text : ret) {\n\t\t\t\tSystem.out.println(text);\n\t\t\t}", "String text", "ret", "{\n\t\t\t\tSystem.out.println(text);\n\t\t\t}", "{\n\t\t\t\tSystem.out.println(text);\n\t\t\t}", "System.out.println(text)", "System.out.println", "System.out", "System", "System.out", "text", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.LinkedList; import java.util.List; class Main { public static void main(String[] args) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); try { List<String> ret = new LinkedList<String>(); int m, f, r; do { String[] inputList = br.readLine().split(" "); m = Integer.parseInt(inputList[0]); f = Integer.parseInt(inputList[1]); r = Integer.parseInt(inputList[2]); if (m == -1 && f == -1 && r == -1) { break; } else if ((m == -1 || f == -1) || m + f < 30) { ret.add("F"); } else if (m + f < 50 && r < 50) { ret.add("D"); } else if ((m + f < 50 && r >= 50) || m + f < 65) { ret.add("C"); } else if (m + f < 80) { ret.add("B"); } else { ret.add("A"); } } while (true); for (String text : ret) { System.out.println(text); } } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 42, 40, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 9, 14, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 13, 40, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 208, 5 ], [ 208, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 35, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 33, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 60, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 60, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 60, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 60, 82 ], [ 49, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 83, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 49, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 92, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 49, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 101, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 101, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 115, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 114, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 114, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 134, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 133, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 133, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 153, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 152, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 165, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 177, 182 ], [ 152, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 184, 189 ], [ 49, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 193, 194 ], [ 49, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 198, 199 ], [ 49, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 203, 204 ], [ 6, 205 ], [ 205, 206 ], [ 0, 207 ], [ 207, 208 ], [ 207, 209 ] ]
[ "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\tint m,f,r;\n\t\tm = sc.nextInt();\n\t\tf = sc.nextInt();\n\t\tr = sc.nextInt();\n\t\twhile(!(m == -1 && f == -1 && r == -1)){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(m == -1){\n\t\t\t\tm = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(f == -1){\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t\tif(m + f >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\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\tint m,f,r;\n\t\tm = sc.nextInt();\n\t\tf = sc.nextInt();\n\t\tr = sc.nextInt();\n\t\twhile(!(m == -1 && f == -1 && r == -1)){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(m == -1){\n\t\t\t\tm = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(f == -1){\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t\tif(m + f >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t}\n}", "Main", "public static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m,f,r;\n\t\tm = sc.nextInt();\n\t\tf = sc.nextInt();\n\t\tr = sc.nextInt();\n\t\twhile(!(m == -1 && f == -1 && r == -1)){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(m == -1){\n\t\t\t\tm = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(f == -1){\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t\tif(m + f >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m,f,r;\n\t\tm = sc.nextInt();\n\t\tf = sc.nextInt();\n\t\tr = sc.nextInt();\n\t\twhile(!(m == -1 && f == -1 && r == -1)){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(m == -1){\n\t\t\t\tm = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(f == -1){\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t\tif(m + f >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int m", "m", "f", "f", "r;", "r", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "while(!(m == -1 && f == -1 && r == -1)){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(m == -1){\n\t\t\t\tm = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(f == -1){\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t\tif(m + f >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}", "!(m == -1 && f == -1 && r == -1)", "(m == -1 && f == -1 && r == -1)", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(m == -1){\n\t\t\t\tm = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(f == -1){\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t\tif(m + f >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\n\t\t}", "if(m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t\tcontinue;\n\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t\tcontinue;\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "continue;", "if(m == -1){\n\t\t\t\tm = 0;\n\t\t\t}", "m == -1", "m", "-1", "1", "{\n\t\t\t\tm = 0;\n\t\t\t}", "m = 0", "m", "0", "if(f == -1){\n\t\t\t\tf = 0;\n\t\t\t}", "f == -1", "f", "-1", "1", "{\n\t\t\t\tf = 0;\n\t\t\t}", "f = 0", "f", "0", "if(m + f >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m + f >= 80", "m + f", "m", "f", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(m + f >= 65 && m + f < 80){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m + f >= 65 && m + f < 80", "m + f >= 65", "m + f", "m", "f", "65", "m + f < 80", "m + f", "m", "f", "80", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(m + f >= 50 && m + f < 65){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m + f >= 50 && m + f < 65", "m + f >= 50", "m + f", "m", "f", "50", "m + f < 65", "m + f", "m", "f", "65", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m + f >= 30 && m + f < 50", "m + f >= 30", "m + f", "m", "f", "30", "m + f < 50", "m + f", "m", "f", "50", "{\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}", "if(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "String [] args", "args", "public class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m,f,r;\n\t\tm = sc.nextInt();\n\t\tf = sc.nextInt();\n\t\tr = sc.nextInt();\n\t\twhile(!(m == -1 && f == -1 && r == -1)){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(m == -1){\n\t\t\t\tm = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(f == -1){\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t\tif(m + f >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\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\tint m,f,r;\n\t\tm = sc.nextInt();\n\t\tf = sc.nextInt();\n\t\tr = sc.nextInt();\n\t\twhile(!(m == -1 && f == -1 && r == -1)){\n\t\t\tif(m == -1 || f == -1){\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tf = sc.nextInt();\n\t\t\t\tr = sc.nextInt();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(m == -1){\n\t\t\t\tm = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(f == -1){\n\t\t\t\tf = 0;\n\t\t\t}\n\t\t\tif(m + f >= 80){\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m + f >= 65 && m + f < 80){\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m + f >= 50 && m + f < 65){\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m + f >= 30 && m + f < 50){\n\t\t\t\tif(r >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tm = sc.nextInt();\n\t\t\tf = sc.nextInt();\n\t\t\tr = sc.nextInt();\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); int m,f,r; m = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); while(!(m == -1 && f == -1 && r == -1)){ if(m == -1 || f == -1){ System.out.println("F"); m = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); continue; } if(m == -1){ m = 0; } if(f == -1){ f = 0; } if(m + f >= 80){ System.out.println("A"); }else if(m + f >= 65 && m + f < 80){ System.out.println("B"); }else if(m + f >= 50 && m + f < 65){ System.out.println("C"); }else if(m + f >= 30 && m + f < 50){ if(r >= 50){ System.out.println("C"); }else{ System.out.println("D"); } }else{ System.out.println("F"); } m = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 41, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 124, 8 ], [ 124, 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 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 20, 36 ], [ 36, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 38, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 36, 51 ], [ 20, 52 ], [ 52, 53 ], [ 20, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 54, 64 ], [ 64, 65 ], [ 64, 66 ], [ 54, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 67, 73 ], [ 73, 74 ], [ 73, 75 ], [ 67, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 82, 83 ], [ 82, 84 ], [ 76, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 85, 91 ], [ 91, 92 ], [ 91, 93 ], [ 85, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 101, 108 ], [ 108, 109 ], [ 108, 110 ], [ 94, 111 ], [ 111, 112 ], [ 111, 113 ], [ 20, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 11, 118 ], [ 118, 119 ], [ 119, 120 ], [ 9, 121 ], [ 121, 122 ], [ 0, 123 ], [ 123, 124 ], [ 123, 125 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint mid=in.nextInt(),fin=in.nextInt(),re=in.nextInt();\n\t\t\tif(mid==-1 && fin==-1 && re==-1)break;\n\t\t\tchar jd;\n\t\t\tif(mid==-1 || fin==-1)jd='F';\n\t\t\telse if(mid+fin>=80)jd='A';\n\t\t\telse if(mid+fin>=65)jd='B';\n\t\t\telse if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';\n\t\t\tout.println(jd);\n\t\t}\n\t\tout.flush();\n\t}\n\n}\n", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint mid=in.nextInt(),fin=in.nextInt(),re=in.nextInt();\n\t\t\tif(mid==-1 && fin==-1 && re==-1)break;\n\t\t\tchar jd;\n\t\t\tif(mid==-1 || fin==-1)jd='F';\n\t\t\telse if(mid+fin>=80)jd='A';\n\t\t\telse if(mid+fin>=65)jd='B';\n\t\t\telse if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';\n\t\t\tout.println(jd);\n\t\t}\n\t\tout.flush();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint mid=in.nextInt(),fin=in.nextInt(),re=in.nextInt();\n\t\t\tif(mid==-1 && fin==-1 && re==-1)break;\n\t\t\tchar jd;\n\t\t\tif(mid==-1 || fin==-1)jd='F';\n\t\t\telse if(mid+fin>=80)jd='A';\n\t\t\telse if(mid+fin>=65)jd='B';\n\t\t\telse if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';\n\t\t\tout.println(jd);\n\t\t}\n\t\tout.flush();\n\t}", "main", "{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint mid=in.nextInt(),fin=in.nextInt(),re=in.nextInt();\n\t\t\tif(mid==-1 && fin==-1 && re==-1)break;\n\t\t\tchar jd;\n\t\t\tif(mid==-1 || fin==-1)jd='F';\n\t\t\telse if(mid+fin>=80)jd='A';\n\t\t\telse if(mid+fin>=65)jd='B';\n\t\t\telse if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';\n\t\t\tout.println(jd);\n\t\t}\n\t\tout.flush();\n\t}", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "PrintWriter out=new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "while(true) {\n\t\t\tint mid=in.nextInt(),fin=in.nextInt(),re=in.nextInt();\n\t\t\tif(mid==-1 && fin==-1 && re==-1)break;\n\t\t\tchar jd;\n\t\t\tif(mid==-1 || fin==-1)jd='F';\n\t\t\telse if(mid+fin>=80)jd='A';\n\t\t\telse if(mid+fin>=65)jd='B';\n\t\t\telse if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';\n\t\t\tout.println(jd);\n\t\t}", "true", "{\n\t\t\tint mid=in.nextInt(),fin=in.nextInt(),re=in.nextInt();\n\t\t\tif(mid==-1 && fin==-1 && re==-1)break;\n\t\t\tchar jd;\n\t\t\tif(mid==-1 || fin==-1)jd='F';\n\t\t\telse if(mid+fin>=80)jd='A';\n\t\t\telse if(mid+fin>=65)jd='B';\n\t\t\telse if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';\n\t\t\tout.println(jd);\n\t\t}", "int mid=in.nextInt()", "mid", "in.nextInt()", "in.nextInt", "in", "fin=in.nextInt()", "fin", "in.nextInt()", "in.nextInt", "in", "re=in.nextInt();", "re", "in.nextInt()", "in.nextInt", "in", "if(mid==-1 && fin==-1 && re==-1)break;", "mid==-1 && fin==-1 && re==-1", "mid==-1 && fin==-1 && re==-1", "mid==-1", "mid", "-1", "1", "fin==-1", "fin", "-1", "1", "re==-1", "re", "-1", "1", "break;", "char jd;", "jd", "if(mid==-1 || fin==-1)jd='F';\n\t\t\telse if(mid+fin>=80)jd='A';\n\t\t\telse if(mid+fin>=65)jd='B';\n\t\t\telse if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';", "mid==-1 || fin==-1", "mid==-1", "mid", "-1", "1", "fin==-1", "fin", "-1", "1", "jd='F'", "jd", "'F'", "if(mid+fin>=80)jd='A';\n\t\t\telse if(mid+fin>=65)jd='B';\n\t\t\telse if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';", "mid+fin>=80", "mid+fin", "mid", "fin", "80", "jd='A'", "jd", "'A'", "if(mid+fin>=65)jd='B';\n\t\t\telse if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';", "mid+fin>=65", "mid+fin", "mid", "fin", "65", "jd='B'", "jd", "'B'", "if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';", "mid+fin>=50", "mid+fin", "mid", "fin", "50", "jd='C'", "jd", "'C'", "if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';", "mid+fin>=30", "mid+fin", "mid", "fin", "30", "{\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}", "if(re>=50)jd='C';\n\t\t\t\telse jd='D';", "re>=50", "re", "50", "jd='C'", "jd", "'C'", "jd='D'", "jd", "'D'", "jd='F'", "jd", "'F'", "out.println(jd)", "out.println", "out", "jd", "out.flush()", "out.flush", "out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint mid=in.nextInt(),fin=in.nextInt(),re=in.nextInt();\n\t\t\tif(mid==-1 && fin==-1 && re==-1)break;\n\t\t\tchar jd;\n\t\t\tif(mid==-1 || fin==-1)jd='F';\n\t\t\telse if(mid+fin>=80)jd='A';\n\t\t\telse if(mid+fin>=65)jd='B';\n\t\t\telse if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';\n\t\t\tout.println(jd);\n\t\t}\n\t\tout.flush();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tint mid=in.nextInt(),fin=in.nextInt(),re=in.nextInt();\n\t\t\tif(mid==-1 && fin==-1 && re==-1)break;\n\t\t\tchar jd;\n\t\t\tif(mid==-1 || fin==-1)jd='F';\n\t\t\telse if(mid+fin>=80)jd='A';\n\t\t\telse if(mid+fin>=65)jd='B';\n\t\t\telse if(mid+fin>=50)jd='C';\n\t\t\telse if(mid+fin>=30) {\n\t\t\t\tif(re>=50)jd='C';\n\t\t\t\telse jd='D';\n\t\t\t}\n\t\t\telse jd='F';\n\t\t\tout.println(jd);\n\t\t}\n\t\tout.flush();\n\t}\n\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); PrintWriter out=new PrintWriter(System.out); while(true) { int mid=in.nextInt(),fin=in.nextInt(),re=in.nextInt(); if(mid==-1 && fin==-1 && re==-1)break; char jd; if(mid==-1 || fin==-1)jd='F'; else if(mid+fin>=80)jd='A'; else if(mid+fin>=65)jd='B'; else if(mid+fin>=50)jd='C'; else if(mid+fin>=30) { if(re>=50)jd='C'; else jd='D'; } else jd='F'; out.println(jd); } out.flush(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 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 ], [ 149, 5 ], [ 149, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 17, 19 ], [ 12, 20 ], [ 20, 21 ], [ 21, 22 ], [ 12, 23 ], [ 24, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 24, 40 ], [ 40, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 42, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 40, 55 ], [ 55, 56 ], [ 24, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 68, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 68, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 81, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 94, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 107, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 114, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 107, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 57, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 6, 146 ], [ 146, 147 ], [ 0, 148 ], [ 148, 149 ], [ 148, 150 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int a = 1;a>0;a++){\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tif(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int a = 1;a>0;a++){\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tif(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int a = 1;a>0;a++){\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tif(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int a = 1;a>0;a++){\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tif(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "for(int a = 1;a>0;a++){\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tif(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "int a = 1;", "int a = 1;", "a", "1", "a>0", "a", "0", "a++", "a++", "a", "{\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tif(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "{\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tif(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "int m = scan.nextInt();", "m", "scan.nextInt()", "scan.nextInt", "scan", "int f = scan.nextInt();", "f", "scan.nextInt()", "scan.nextInt", "scan", "int r = scan.nextInt();", "r", "scan.nextInt()", "scan.nextInt", "scan", "if(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(m != -1 && f != -1){\n\t\t\t\tif(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m != -1 && f != -1", "m != -1", "m", "-1", "1", "f != -1", "f", "-1", "1", "{\n\t\t\t\tif(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}", "if(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m+f >= 80", "m+f", "m", "f", "80", "{\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m+f >=65", "m+f", "m", "f", "65", "{\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m+f >= 50", "m+f", "m", "f", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m+f >= 30", "m+f", "m", "f", "30", "{\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "r >=50", "r", "50", "{\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int a = 1;a>0;a++){\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tif(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int a = 1;a>0;a++){\n\t\t\tint m = scan.nextInt();\n\t\t\tint f = scan.nextInt();\n\t\t\tint r = scan.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m != -1 && f != -1){\n\t\t\t\tif(m+f >= 80){\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}else if(m+f >=65){\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}else if(m+f >= 50){\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else if(m+f >= 30){\n\t\t\t\t\tif(r >=50){\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); for(int a = 1;a>0;a++){ int m = scan.nextInt(); int f = scan.nextInt(); int r = scan.nextInt(); if(m == -1 && f == -1 && r == -1){ break; } if(m != -1 && f != -1){ if(m+f >= 80){ System.out.println("A"); }else if(m+f >=65){ System.out.println("B"); }else if(m+f >= 50){ System.out.println("C"); }else if(m+f >= 30){ if(r >=50){ System.out.println("C"); }else{ System.out.println("D"); } }else{ System.out.println("F"); } }else{ System.out.println("F"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 3, 41, 13, 2, 13, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 17, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 14, 2, 17, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 161, 5 ], [ 161, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 23, 39 ], [ 39, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 41, 48 ], [ 48, 49 ], [ 48, 50 ], [ 39, 51 ], [ 51, 52 ], [ 23, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 23, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 58, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 75, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 86, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 101, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 116, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 125, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 116, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 148, 149 ], [ 148, 150 ], [ 143, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 6, 158 ], [ 158, 159 ], [ 0, 160 ], [ 160, 161 ], [ 160, 162 ] ]
[ "import java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main ( String[] args ) {\n\t\tScanner sc = new Scanner ( System.in );\n\t\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\twhile ( true ) {\n\t\t\tm = sc.nextInt ();\n\t\t\tf = sc.nextInt ();\n\t\t\tr = sc.nextInt ();\n\t\t\t\n\t\t\tif ( m < 0 && f < 0 && r < 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint sum = m + f;\n\t\t\t\n\t\t\tif ( m == -1 || f == -1 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t} else if ( 80 <= sum ) {\n\t\t\t\tSystem.out.println ( \"A\" );\n\t\t\t} else if ( 65 <= sum && sum < 80 ) {\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t} else if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}\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\tScanner sc = new Scanner ( System.in );\n\t\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\twhile ( true ) {\n\t\t\tm = sc.nextInt ();\n\t\t\tf = sc.nextInt ();\n\t\t\tr = sc.nextInt ();\n\t\t\t\n\t\t\tif ( m < 0 && f < 0 && r < 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint sum = m + f;\n\t\t\t\n\t\t\tif ( m == -1 || f == -1 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t} else if ( 80 <= sum ) {\n\t\t\t\tSystem.out.println ( \"A\" );\n\t\t\t} else if ( 65 <= sum && sum < 80 ) {\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t} else if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main ( String[] args ) {\n\t\tScanner sc = new Scanner ( System.in );\n\t\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\twhile ( true ) {\n\t\t\tm = sc.nextInt ();\n\t\t\tf = sc.nextInt ();\n\t\t\tr = sc.nextInt ();\n\t\t\t\n\t\t\tif ( m < 0 && f < 0 && r < 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint sum = m + f;\n\t\t\t\n\t\t\tif ( m == -1 || f == -1 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t} else if ( 80 <= sum ) {\n\t\t\t\tSystem.out.println ( \"A\" );\n\t\t\t} else if ( 65 <= sum && sum < 80 ) {\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t} else if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner ( System.in );\n\t\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\twhile ( true ) {\n\t\t\tm = sc.nextInt ();\n\t\t\tf = sc.nextInt ();\n\t\t\tr = sc.nextInt ();\n\t\t\t\n\t\t\tif ( m < 0 && f < 0 && r < 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint sum = m + f;\n\t\t\t\n\t\t\tif ( m == -1 || f == -1 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t} else if ( 80 <= sum ) {\n\t\t\t\tSystem.out.println ( \"A\" );\n\t\t\t} else if ( 65 <= sum && sum < 80 ) {\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t} else if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner ( System.in );", "sc", "new Scanner ( System.in )", "int m = 0;", "m", "0", "int f = 0;", "f", "0", "int r = 0;", "r", "0", "while ( true ) {\n\t\t\tm = sc.nextInt ();\n\t\t\tf = sc.nextInt ();\n\t\t\tr = sc.nextInt ();\n\t\t\t\n\t\t\tif ( m < 0 && f < 0 && r < 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint sum = m + f;\n\t\t\t\n\t\t\tif ( m == -1 || f == -1 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t} else if ( 80 <= sum ) {\n\t\t\t\tSystem.out.println ( \"A\" );\n\t\t\t} else if ( 65 <= sum && sum < 80 ) {\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t} else if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tm = sc.nextInt ();\n\t\t\tf = sc.nextInt ();\n\t\t\tr = sc.nextInt ();\n\t\t\t\n\t\t\tif ( m < 0 && f < 0 && r < 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint sum = m + f;\n\t\t\t\n\t\t\tif ( m == -1 || f == -1 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t} else if ( 80 <= sum ) {\n\t\t\t\tSystem.out.println ( \"A\" );\n\t\t\t} else if ( 65 <= sum && sum < 80 ) {\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t} else if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}\n\t\t}", "m = sc.nextInt ()", "m", "sc.nextInt ()", "sc.nextInt", "sc", "f = sc.nextInt ()", "f", "sc.nextInt ()", "sc.nextInt", "sc", "r = sc.nextInt ()", "r", "sc.nextInt ()", "sc.nextInt", "sc", "if ( m < 0 && f < 0 && r < 0 ) {\n\t\t\t\tbreak;\n\t\t\t}", "m < 0 && f < 0 && r < 0", "m < 0 && f < 0 && r < 0", "m < 0", "m", "0", "f < 0", "f", "0", "r < 0", "r", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int sum = m + f;", "sum", "m + f", "m", "f", "if ( m == -1 || f == -1 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t} else if ( 80 <= sum ) {\n\t\t\t\tSystem.out.println ( \"A\" );\n\t\t\t} else if ( 65 <= sum && sum < 80 ) {\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t} else if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}", "System.out.println ( \"F\" )", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if ( 80 <= sum ) {\n\t\t\t\tSystem.out.println ( \"A\" );\n\t\t\t} else if ( 65 <= sum && sum < 80 ) {\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t} else if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}", "80 <= sum", "80", "sum", "{\n\t\t\t\tSystem.out.println ( \"A\" );\n\t\t\t}", "System.out.println ( \"A\" )", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if ( 65 <= sum && sum < 80 ) {\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t} else if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}", "65 <= sum && sum < 80", "65 <= sum", "65", "sum", "sum < 80", "sum", "80", "{\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t}", "System.out.println ( \"B\" )", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}", "50 <= sum && sum < 65", "50 <= sum", "50", "sum", "sum < 65", "sum", "65", "{\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t}", "System.out.println ( \"C\" )", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}", "30 <= sum && sum < 50", "30 <= sum", "30", "sum", "sum < 50", "sum", "50", "{\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t}", "if ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}", "50 <= r", "50", "r", "{\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t}", "System.out.println ( \"C\" )", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}", "System.out.println ( \"D\" )", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}", "0 <= sum && sum < 30", "0 <= sum", "0", "sum", "sum < 30", "sum", "30", "{\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}", "System.out.println ( \"F\" )", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main\n{\n\tpublic static void main ( String[] args ) {\n\t\tScanner sc = new Scanner ( System.in );\n\t\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\twhile ( true ) {\n\t\t\tm = sc.nextInt ();\n\t\t\tf = sc.nextInt ();\n\t\t\tr = sc.nextInt ();\n\t\t\t\n\t\t\tif ( m < 0 && f < 0 && r < 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint sum = m + f;\n\t\t\t\n\t\t\tif ( m == -1 || f == -1 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t} else if ( 80 <= sum ) {\n\t\t\t\tSystem.out.println ( \"A\" );\n\t\t\t} else if ( 65 <= sum && sum < 80 ) {\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t} else if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}\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\t\n\t\tint m = 0;\n\t\tint f = 0;\n\t\tint r = 0;\n\t\t\n\t\twhile ( true ) {\n\t\t\tm = sc.nextInt ();\n\t\t\tf = sc.nextInt ();\n\t\t\tr = sc.nextInt ();\n\t\t\t\n\t\t\tif ( m < 0 && f < 0 && r < 0 ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint sum = m + f;\n\t\t\t\n\t\t\tif ( m == -1 || f == -1 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t} else if ( 80 <= sum ) {\n\t\t\t\tSystem.out.println ( \"A\" );\n\t\t\t} else if ( 65 <= sum && sum < 80 ) {\n\t\t\t\tSystem.out.println ( \"B\" );\n\t\t\t} else if ( 50 <= sum && sum < 65 ) {\n\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t} else if ( 30 <= sum && sum < 50 ) {\n\t\t\t\tif ( 50 <= r ) {\n\t\t\t\t\tSystem.out.println ( \"C\" );\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println ( \"D\" );\n\t\t\t\t}\n\t\t\t} else if ( 0 <= sum && sum < 30 ) {\n\t\t\t\tSystem.out.println ( \"F\" );\n\t\t\t}\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 ); int m = 0; int f = 0; int r = 0; while ( true ) { m = sc.nextInt (); f = sc.nextInt (); r = sc.nextInt (); if ( m < 0 && f < 0 && r < 0 ) { break; } int sum = m + f; if ( m == -1 || f == -1 ) { System.out.println ( "F" ); } else if ( 80 <= sum ) { System.out.println ( "A" ); } else if ( 65 <= sum && sum < 80 ) { System.out.println ( "B" ); } else if ( 50 <= sum && sum < 65 ) { System.out.println ( "C" ); } else if ( 30 <= sum && sum < 50 ) { if ( 50 <= r ) { System.out.println ( "C" ); } else { System.out.println ( "D" ); } } else if ( 0 <= sum && sum < 30 ) { System.out.println ( "F" ); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 37, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 35, 50 ], [ 50, 51 ], [ 14, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 52, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 80, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 95, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 119, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 110, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 6, 144 ], [ 144, 145 ] ]
[ "import java.util.Scanner; \nclass Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(true){\n int m = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int g = m+f;\n if(m == -1 && f == -1 && r == -1){\n break;\n }\n if(m == -1 | f == -1){\n System.out.println(\"F\");\n }else if(g >= 80 ){\n System.out.println(\"A\");\n }else if(g >= 65 && g <= 79){\n System.out.println(\"B\");\n }else if(g >= 50 && g <= 64){\n System.out.println(\"C\");\n }else if(g >= 30 && g <= 49){\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }\n} ", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(true){\n int m = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int g = m+f;\n if(m == -1 && f == -1 && r == -1){\n break;\n }\n if(m == -1 | f == -1){\n System.out.println(\"F\");\n }else if(g >= 80 ){\n System.out.println(\"A\");\n }else if(g >= 65 && g <= 79){\n System.out.println(\"B\");\n }else if(g >= 50 && g <= 64){\n System.out.println(\"C\");\n }else if(g >= 30 && g <= 49){\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(true){\n int m = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int g = m+f;\n if(m == -1 && f == -1 && r == -1){\n break;\n }\n if(m == -1 | f == -1){\n System.out.println(\"F\");\n }else if(g >= 80 ){\n System.out.println(\"A\");\n }else if(g >= 65 && g <= 79){\n System.out.println(\"B\");\n }else if(g >= 50 && g <= 64){\n System.out.println(\"C\");\n }else if(g >= 30 && g <= 49){\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }", "main", "{\n Scanner in = new Scanner(System.in);\n while(true){\n int m = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int g = m+f;\n if(m == -1 && f == -1 && r == -1){\n break;\n }\n if(m == -1 | f == -1){\n System.out.println(\"F\");\n }else if(g >= 80 ){\n System.out.println(\"A\");\n }else if(g >= 65 && g <= 79){\n System.out.println(\"B\");\n }else if(g >= 50 && g <= 64){\n System.out.println(\"C\");\n }else if(g >= 30 && g <= 49){\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(true){\n int m = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int g = m+f;\n if(m == -1 && f == -1 && r == -1){\n break;\n }\n if(m == -1 | f == -1){\n System.out.println(\"F\");\n }else if(g >= 80 ){\n System.out.println(\"A\");\n }else if(g >= 65 && g <= 79){\n System.out.println(\"B\");\n }else if(g >= 50 && g <= 64){\n System.out.println(\"C\");\n }else if(g >= 30 && g <= 49){\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }", "true", "{\n int m = in.nextInt();\n int f = in.nextInt();\n int r = in.nextInt();\n int g = m+f;\n if(m == -1 && f == -1 && r == -1){\n break;\n }\n if(m == -1 | f == -1){\n System.out.println(\"F\");\n }else if(g >= 80 ){\n System.out.println(\"A\");\n }else if(g >= 65 && g <= 79){\n System.out.println(\"B\");\n }else if(g >= 50 && g <= 64){\n System.out.println(\"C\");\n }else if(g >= 30 && g <= 49){\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }\n }", "int m = in.nextInt();", "m", "in.nextInt()", "in.nextInt", "in", "int f = in.nextInt();", "f", "in.nextInt()", "in.nextInt", "in", "int r = in.nextInt();", "r", "in.nextInt()", "in.nextInt", "in", "int g = m+f;", "g", "m+f", "m", "f", "if(m == -1 && f == -1 && r == -1){\n break;\n }", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n break;\n }", "break;", "if(m == -1 | f == -1){\n System.out.println(\"F\");\n }else if(g >= 80 ){\n System.out.println(\"A\");\n }else if(g >= 65 && g <= 79){\n System.out.println(\"B\");\n }else if(g >= 50 && g <= 64){\n System.out.println(\"C\");\n }else if(g >= 30 && g <= 49){\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }", "m == -1 | f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(g >= 80 ){\n System.out.println(\"A\");\n }else if(g >= 65 && g <= 79){\n System.out.println(\"B\");\n }else if(g >= 50 && g <= 64){\n System.out.println(\"C\");\n }else if(g >= 30 && g <= 49){\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }", "g >= 80", "g", "80", "{\n System.out.println(\"A\");\n }", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(g >= 65 && g <= 79){\n System.out.println(\"B\");\n }else if(g >= 50 && g <= 64){\n System.out.println(\"C\");\n }else if(g >= 30 && g <= 49){\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }", "g >= 65 && g <= 79", "g >= 65", "g", "65", "g <= 79", "g", "79", "{\n System.out.println(\"B\");\n }", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(g >= 50 && g <= 64){\n System.out.println(\"C\");\n }else if(g >= 30 && g <= 49){\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }", "g >= 50 && g <= 64", "g >= 50", "g", "50", "g <= 64", "g", "64", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(g >= 30 && g <= 49){\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }else{\n System.out.println(\"F\");\n }", "g >= 30 && g <= 49", "g >= 30", "g", "30", "g <= 49", "g", "49", "{\n if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }\n }", "if(r >= 50){\n System.out.println(\"C\");\n }else{\n System.out.println(\"D\");\n }", "r >= 50", "r", "50", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n System.out.println(\"D\");\n }", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); while(true){ int m = in.nextInt(); int f = in.nextInt(); int r = in.nextInt(); int g = m+f; if(m == -1 && f == -1 && r == -1){ break; } if(m == -1 | f == -1){ System.out.println("F"); }else if(g >= 80 ){ System.out.println("A"); }else if(g >= 65 && g <= 79){ System.out.println("B"); }else if(g >= 50 && g <= 64){ System.out.println("C"); }else if(g >= 30 && g <= 49){ if(r >= 50){ System.out.println("C"); }else{ System.out.println("D"); } }else{ System.out.println("F"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 13, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 4, 18, 13, 17, 17, 14, 2, 17, 13, 30, 4, 18, 4, 18, 13, 17, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 4, 18, 4, 18, 13, 17, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 4, 18, 4, 18, 13, 17, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 14, 2, 17, 13, 30, 4, 18, 4, 18, 13, 17, 17, 30, 4, 18, 4, 18, 13, 17, 17, 30, 4, 18, 4, 18, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 174, 8 ], [ 174, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 11, 24 ], [ 24, 25 ], [ 11, 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 ], [ 41, 42 ], [ 42, 43 ], [ 28, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 28, 49 ], [ 49, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 51, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 49, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 64, 71 ], [ 28, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 72, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 83, 89 ], [ 72, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 95, 101 ], [ 90, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 102, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 111, 117 ], [ 102, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 123, 125 ], [ 118, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 127, 133 ], [ 118, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 139, 141 ], [ 134, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 148, 154 ], [ 143, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 156, 162 ], [ 134, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 166, 169 ], [ 164, 170 ], [ 9, 171 ], [ 171, 172 ], [ 0, 173 ], [ 173, 174 ], [ 173, 175 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main (String args[]) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tStringBuffer buf =new StringBuffer();\n \tint m,f,r,u;\n \twhile(true){\n \t m = sc.nextInt();\n \t f = sc.nextInt();\n \t r = sc.nextInt();\n \t u = m+f;\n \t if(m==-1&&f==-1&&r==-1){\n \t \tSystem.out.print(buf);\n \t break;\n \t }\n\n\n\n \t if(m==-1||f==-1){\n \t buf.append(\"F\").append(\"\\n\");\n \t }else if(80<=u){\n \t \tbuf.append(\"A\").append(\"\\n\");\n \t }else if(65<=u&&u<80){\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }else if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }\n }\n}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main (String args[]) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tStringBuffer buf =new StringBuffer();\n \tint m,f,r,u;\n \twhile(true){\n \t m = sc.nextInt();\n \t f = sc.nextInt();\n \t r = sc.nextInt();\n \t u = m+f;\n \t if(m==-1&&f==-1&&r==-1){\n \t \tSystem.out.print(buf);\n \t break;\n \t }\n\n\n\n \t if(m==-1||f==-1){\n \t buf.append(\"F\").append(\"\\n\");\n \t }else if(80<=u){\n \t \tbuf.append(\"A\").append(\"\\n\");\n \t }else if(65<=u&&u<80){\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }else if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }\n }\n}\n}", "Main", "public static void main (String args[]) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tStringBuffer buf =new StringBuffer();\n \tint m,f,r,u;\n \twhile(true){\n \t m = sc.nextInt();\n \t f = sc.nextInt();\n \t r = sc.nextInt();\n \t u = m+f;\n \t if(m==-1&&f==-1&&r==-1){\n \t \tSystem.out.print(buf);\n \t break;\n \t }\n\n\n\n \t if(m==-1||f==-1){\n \t buf.append(\"F\").append(\"\\n\");\n \t }else if(80<=u){\n \t \tbuf.append(\"A\").append(\"\\n\");\n \t }else if(65<=u&&u<80){\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }else if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }\n }\n}", "main", "{\n \tScanner sc = new Scanner(System.in);\n \tStringBuffer buf =new StringBuffer();\n \tint m,f,r,u;\n \twhile(true){\n \t m = sc.nextInt();\n \t f = sc.nextInt();\n \t r = sc.nextInt();\n \t u = m+f;\n \t if(m==-1&&f==-1&&r==-1){\n \t \tSystem.out.print(buf);\n \t break;\n \t }\n\n\n\n \t if(m==-1||f==-1){\n \t buf.append(\"F\").append(\"\\n\");\n \t }else if(80<=u){\n \t \tbuf.append(\"A\").append(\"\\n\");\n \t }else if(65<=u&&u<80){\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }else if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }\n }\n}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringBuffer buf =new StringBuffer();", "buf", "new StringBuffer()", "int m", "m", "f", "f", "r", "r", "u;", "u", "while(true){\n \t m = sc.nextInt();\n \t f = sc.nextInt();\n \t r = sc.nextInt();\n \t u = m+f;\n \t if(m==-1&&f==-1&&r==-1){\n \t \tSystem.out.print(buf);\n \t break;\n \t }\n\n\n\n \t if(m==-1||f==-1){\n \t buf.append(\"F\").append(\"\\n\");\n \t }else if(80<=u){\n \t \tbuf.append(\"A\").append(\"\\n\");\n \t }else if(65<=u&&u<80){\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }else if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }\n }", "true", "{\n \t m = sc.nextInt();\n \t f = sc.nextInt();\n \t r = sc.nextInt();\n \t u = m+f;\n \t if(m==-1&&f==-1&&r==-1){\n \t \tSystem.out.print(buf);\n \t break;\n \t }\n\n\n\n \t if(m==-1||f==-1){\n \t buf.append(\"F\").append(\"\\n\");\n \t }else if(80<=u){\n \t \tbuf.append(\"A\").append(\"\\n\");\n \t }else if(65<=u&&u<80){\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }else if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }\n }", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "f = sc.nextInt()", "f", "sc.nextInt()", "sc.nextInt", "sc", "r = sc.nextInt()", "r", "sc.nextInt()", "sc.nextInt", "sc", "u = m+f", "u", "m+f", "m", "f", "if(m==-1&&f==-1&&r==-1){\n \t \tSystem.out.print(buf);\n \t break;\n \t }", "m==-1&&f==-1&&r==-1", "m==-1&&f==-1&&r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "{\n \t \tSystem.out.print(buf);\n \t break;\n \t }", "System.out.print(buf)", "System.out.print", "System.out", "System", "System.out", "buf", "break;", "if(m==-1||f==-1){\n \t buf.append(\"F\").append(\"\\n\");\n \t }else if(80<=u){\n \t \tbuf.append(\"A\").append(\"\\n\");\n \t }else if(65<=u&&u<80){\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }else if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }", "m==-1||f==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "{\n \t buf.append(\"F\").append(\"\\n\");\n \t }", "buf.append(\"F\").append(\"\\n\")", "buf.append(\"F\").append", "buf.append(\"F\")", "buf.append", "buf", "\"F\"", "\"\\n\"", "if(80<=u){\n \t \tbuf.append(\"A\").append(\"\\n\");\n \t }else if(65<=u&&u<80){\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }else if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }", "80<=u", "80", "u", "{\n \t \tbuf.append(\"A\").append(\"\\n\");\n \t }", "buf.append(\"A\").append(\"\\n\")", "buf.append(\"A\").append", "buf.append(\"A\")", "buf.append", "buf", "\"A\"", "\"\\n\"", "if(65<=u&&u<80){\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }else if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }", "65<=u&&u<80", "65<=u", "65", "u", "u<80", "u", "80", "{\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }", "buf.append(\"B\").append(\"\\n\")", "buf.append(\"B\").append", "buf.append(\"B\")", "buf.append", "buf", "\"B\"", "\"\\n\"", "if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }", "50<=u&&u<65", "50<=u", "50", "u", "u<65", "u", "65", "{\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }", "buf.append(\"C\").append(\"\\n\")", "buf.append(\"C\").append", "buf.append(\"C\")", "buf.append", "buf", "\"C\"", "\"\\n\"", "if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }", "30<=u&&u<50", "30<=u", "30", "u", "u<50", "u", "50", "{\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }", "if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }", "50<=r", "50", "r", "{\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }", "buf.append(\"C\").append(\"\\n\")", "buf.append(\"C\").append", "buf.append(\"C\")", "buf.append", "buf", "\"C\"", "\"\\n\"", "{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }", "buf.append(\"D\").append(\"\\n\")", "buf.append(\"D\").append", "buf.append(\"D\")", "buf.append", "buf", "\"D\"", "\"\\n\"", "{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }", "buf.append(\"F\").append(\"\\n\")", "buf.append(\"F\").append", "buf.append(\"F\")", "buf.append", "buf", "\"F\"", "\"\\n\"", "String args[]", "args", "public class Main {\n public static void main (String args[]) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tStringBuffer buf =new StringBuffer();\n \tint m,f,r,u;\n \twhile(true){\n \t m = sc.nextInt();\n \t f = sc.nextInt();\n \t r = sc.nextInt();\n \t u = m+f;\n \t if(m==-1&&f==-1&&r==-1){\n \t \tSystem.out.print(buf);\n \t break;\n \t }\n\n\n\n \t if(m==-1||f==-1){\n \t buf.append(\"F\").append(\"\\n\");\n \t }else if(80<=u){\n \t \tbuf.append(\"A\").append(\"\\n\");\n \t }else if(65<=u&&u<80){\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }else if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }\n }\n}\n}", "public class Main {\n public static void main (String args[]) throws IOException {\n \tScanner sc = new Scanner(System.in);\n \tStringBuffer buf =new StringBuffer();\n \tint m,f,r,u;\n \twhile(true){\n \t m = sc.nextInt();\n \t f = sc.nextInt();\n \t r = sc.nextInt();\n \t u = m+f;\n \t if(m==-1&&f==-1&&r==-1){\n \t \tSystem.out.print(buf);\n \t break;\n \t }\n\n\n\n \t if(m==-1||f==-1){\n \t buf.append(\"F\").append(\"\\n\");\n \t }else if(80<=u){\n \t \tbuf.append(\"A\").append(\"\\n\");\n \t }else if(65<=u&&u<80){\n \t \tbuf.append(\"B\").append(\"\\n\");\n \t }else if(50<=u&&u<65){\n \t \tbuf.append(\"C\").append(\"\\n\");\n \t }else if(30<=u&&u<50){\n \t if(50<=r){\n \t \t buf.append(\"C\").append(\"\\n\");\n \t }else{\n \t \t buf.append(\"D\").append(\"\\n\");\n \t }\n \t }else{\n \t \tbuf.append(\"F\").append(\"\\n\");\n \t }\n }\n}\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); StringBuffer buf =new StringBuffer(); int m,f,r,u; while(true){ m = sc.nextInt(); f = sc.nextInt(); r = sc.nextInt(); u = m+f; if(m==-1&&f==-1&&r==-1){ System.out.print(buf); break; } if(m==-1||f==-1){ buf.append("F").append("\n"); }else if(80<=u){ buf.append("A").append("\n"); }else if(65<=u&&u<80){ buf.append("B").append("\n"); }else if(50<=u&&u<65){ buf.append("C").append("\n"); }else if(30<=u&&u<50){ if(50<=r){ buf.append("C").append("\n"); }else{ buf.append("D").append("\n"); } }else{ buf.append("F").append("\n"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 4, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 4, 18, 4, 18, 13, 13, 17, 17, 41, 13, 4, 18, 13, 18, 4, 18, 4, 18, 13, 13, 17, 17, 41, 13, 4, 18, 13, 18, 4, 18, 4, 18, 13, 13, 17, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 14, 2, 2, 13, 40, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 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 ], [ 277, 23 ], [ 277, 24 ], [ 24, 25 ], [ 277, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 32, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 29, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 56, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 67, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 56, 79 ], [ 79, 80 ], [ 80, 81 ], [ 56, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 82, 92 ], [ 92, 93 ], [ 93, 94 ], [ 82, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 103, 109 ], [ 102, 110 ], [ 96, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 117, 123 ], [ 116, 124 ], [ 96, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 131, 137 ], [ 130, 138 ], [ 96, 139 ], [ 139, 140 ], [ 141, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 141, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 141, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 139, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 155, 158 ], [ 139, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 160, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 159, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 159, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 176, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 183, 188 ], [ 176, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 193, 195 ], [ 190, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 196, 200 ], [ 189, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 202, 207 ], [ 189, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 212, 214 ], [ 209, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 208, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 221, 226 ], [ 208, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 231, 233 ], [ 228, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 234, 238 ], [ 227, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 242, 244 ], [ 244, 245 ], [ 241, 246 ], [ 246, 247 ], [ 246, 248 ], [ 240, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 250, 255 ], [ 240, 256 ], [ 256, 257 ], [ 257, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 257, 262 ], [ 227, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 264, 269 ], [ 56, 270 ], [ 270, 271 ], [ 271, 272 ], [ 270, 273 ], [ 26, 274 ], [ 274, 275 ], [ 0, 276 ], [ 276, 277 ], [ 276, 278 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparator;\n\npublic class Main{\n\n static StringBuilder sb;\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t \tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"40 42 -1\");\n\t //lines.add(\"20 30 -1\");\n\t //lines.add(\"0 2 -1\");\n\t //lines.add(\"-1 -1 -1\");\n\n\t for (int i = 0; i < lines.size(); i++) {\n\t\tInteger m = Integer.parseInt(lines.get(i).split(\" \")[0]);\n\t\tInteger f = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tInteger r = Integer.parseInt(lines.get(i).split(\" \")[2]);\n\n\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.List;", "List", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Comparator;", "Comparator", "java.util", "public class Main{\n\n static StringBuilder sb;\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t \tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"40 42 -1\");\n\t //lines.add(\"20 30 -1\");\n\t //lines.add(\"0 2 -1\");\n\t //lines.add(\"-1 -1 -1\");\n\n\t for (int i = 0; i < lines.size(); i++) {\n\t\tInteger m = Integer.parseInt(lines.get(i).split(\" \")[0]);\n\t\tInteger f = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tInteger r = Integer.parseInt(lines.get(i).split(\" \")[2]);\n\n\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}", "Main", "static StringBuilder sb;", "sb", "public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t \tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"40 42 -1\");\n\t //lines.add(\"20 30 -1\");\n\t //lines.add(\"0 2 -1\");\n\t //lines.add(\"-1 -1 -1\");\n\n\t for (int i = 0; i < lines.size(); i++) {\n\t\tInteger m = Integer.parseInt(lines.get(i).split(\" \")[0]);\n\t\tInteger f = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tInteger r = Integer.parseInt(lines.get(i).split(\" \")[2]);\n\n\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }", "main", "{\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t \tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"40 42 -1\");\n\t //lines.add(\"20 30 -1\");\n\t //lines.add(\"0 2 -1\");\n\t //lines.add(\"-1 -1 -1\");\n\n\t for (int i = 0; i < lines.size(); i++) {\n\t\tInteger m = Integer.parseInt(lines.get(i).split(\" \")[0]);\n\t\tInteger f = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tInteger r = Integer.parseInt(lines.get(i).split(\" \")[2]);\n\n\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }", "try {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t \tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"40 42 -1\");\n\t //lines.add(\"20 30 -1\");\n\t //lines.add(\"0 2 -1\");\n\t //lines.add(\"-1 -1 -1\");\n\n\t for (int i = 0; i < lines.size(); i++) {\n\t\tInteger m = Integer.parseInt(lines.get(i).split(\" \")[0]);\n\t\tInteger f = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tInteger r = Integer.parseInt(lines.get(i).split(\" \")[2]);\n\n\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}", "catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}", "Exception e", "{\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}", "System.out.println(e.getMessage())", "System.out.println", "System.out", "System", "System.out", "e.getMessage()", "e.getMessage", "e", "System.out.println(Arrays.toString(e.getStackTrace()))", "System.out.println", "System.out", "System", "System.out", "Arrays.toString(e.getStackTrace())", "Arrays.toString", "Arrays", "e.getStackTrace()", "e.getStackTrace", "e", "System.exit(0)", "System.exit", "System", "0", "{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t \tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"40 42 -1\");\n\t //lines.add(\"20 30 -1\");\n\t //lines.add(\"0 2 -1\");\n\t //lines.add(\"-1 -1 -1\");\n\n\t for (int i = 0; i < lines.size(); i++) {\n\t\tInteger m = Integer.parseInt(lines.get(i).split(\" \")[0]);\n\t\tInteger f = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tInteger r = Integer.parseInt(lines.get(i).split(\" \")[2]);\n\n\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "List<String> lines = new ArrayList<String>();", "lines", "new ArrayList<String>()", "String line = \"\";", "line", "\"\"", "while((line = br.readLine()) != null){\n\t \tlines.add(line);\n\t }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n\t \tlines.add(line);\n\t }", "lines.add(line)", "lines.add", "lines", "line", "br.close()", "br.close", "br", "for (int i = 0; i < lines.size(); i++) {\n\t\tInteger m = Integer.parseInt(lines.get(i).split(\" \")[0]);\n\t\tInteger f = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tInteger r = Integer.parseInt(lines.get(i).split(\" \")[2]);\n\n\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < lines.size()", "i", "lines.size()", "lines.size", "lines", "i++", "i++", "i", "{\n\t\tInteger m = Integer.parseInt(lines.get(i).split(\" \")[0]);\n\t\tInteger f = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tInteger r = Integer.parseInt(lines.get(i).split(\" \")[2]);\n\n\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}\n\t }", "{\n\t\tInteger m = Integer.parseInt(lines.get(i).split(\" \")[0]);\n\t\tInteger f = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tInteger r = Integer.parseInt(lines.get(i).split(\" \")[2]);\n\n\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}\n\t }", "Integer m = Integer.parseInt(lines.get(i).split(\" \")[0]);", "m", "Integer.parseInt(lines.get(i).split(\" \")[0])", "Integer.parseInt", "Integer", "lines.get(i).split(\" \")[0]", "lines.get(i).split(\" \")", "lines.get(i).split", "lines.get(i)", "lines.get", "lines", "i", "\" \"", "0", "Integer f = Integer.parseInt(lines.get(i).split(\" \")[1]);", "f", "Integer.parseInt(lines.get(i).split(\" \")[1])", "Integer.parseInt", "Integer", "lines.get(i).split(\" \")[1]", "lines.get(i).split(\" \")", "lines.get(i).split", "lines.get(i)", "lines.get", "lines", "i", "\" \"", "1", "Integer r = Integer.parseInt(lines.get(i).split(\" \")[2]);", "r", "Integer.parseInt(lines.get(i).split(\" \")[2])", "Integer.parseInt", "Integer", "lines.get(i).split(\" \")[2]", "lines.get(i).split(\" \")", "lines.get(i).split", "lines.get(i)", "lines.get", "lines", "i", "\" \"", "2", "if (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t System.exit(0);\n\t\t}", "System.exit(0)", "System.exit", "System", "0", "if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t System.out.println(\"F\");\n\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}", "m+f >= 80", "m+f", "m", "f", "80", "{\n\t\t System.out.println(\"A\");\n\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}", "65 <= m+f && m+f < 80", "65 <= m+f", "65", "m+f", "m", "f", "m+f < 80", "m+f", "m", "f", "80", "{\n\t\t System.out.println(\"B\");\n\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}", "50 <= m+f && m+f < 65", "50 <= m+f", "50", "m+f", "m", "f", "m+f < 65", "m+f", "m", "f", "65", "{\n\t\t System.out.println(\"C\");\n\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}", "30 <= m+f && m+f < 50", "30 <= m+f", "30", "m+f", "m", "f", "m+f < 50", "m+f", "m", "f", "50", "{\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t}", "if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }", "r != -1 && r >= 50", "r != -1", "r", "-1", "1", "r >= 50", "r", "50", "{\n\t\t\tSystem.out.println(\"C\");\n\t\t }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\tSystem.out.println(\"D\");\n\t\t }", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t System.out.println(\"F\");\n\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "System.exit(0)", "System.exit", "System", "0", "String[] args", "args", "public class Main{\n\n static StringBuilder sb;\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t \tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"40 42 -1\");\n\t //lines.add(\"20 30 -1\");\n\t //lines.add(\"0 2 -1\");\n\t //lines.add(\"-1 -1 -1\");\n\n\t for (int i = 0; i < lines.size(); i++) {\n\t\tInteger m = Integer.parseInt(lines.get(i).split(\" \")[0]);\n\t\tInteger f = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tInteger r = Integer.parseInt(lines.get(i).split(\" \")[2]);\n\n\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}", "public class Main{\n\n static StringBuilder sb;\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\t String line = \"\";\n\n\t while((line = br.readLine()) != null){\n\t \tlines.add(line);\n\t }\n\t br.close();\n\n\t //lines.add(\"40 42 -1\");\n\t //lines.add(\"20 30 -1\");\n\t //lines.add(\"0 2 -1\");\n\t //lines.add(\"-1 -1 -1\");\n\n\t for (int i = 0; i < lines.size(); i++) {\n\t\tInteger m = Integer.parseInt(lines.get(i).split(\" \")[0]);\n\t\tInteger f = Integer.parseInt(lines.get(i).split(\" \")[1]);\n\t\tInteger r = Integer.parseInt(lines.get(i).split(\" \")[2]);\n\n\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t System.exit(0);\n\t\t} else if (m == -1 || f == -1) {\n\t\t System.out.println(\"F\");\n\t\t} else if (m+f >= 80) {\n\t\t System.out.println(\"A\");\n\t\t} else if (65 <= m+f && m+f < 80) {\n\t\t System.out.println(\"B\");\n\t\t} else if (50 <= m+f && m+f < 65) {\n\t\t System.out.println(\"C\");\n\t\t} else if (30 <= m+f && m+f < 50) {\n\t\t if (r != -1 && r >= 50) {\n\t\t\tSystem.out.println(\"C\");\n\t\t } else {\n\t\t\tSystem.out.println(\"D\");\n\t\t }\n\t\t} else {\n\t\t System.out.println(\"F\");\n\t\t}\n\t }\n\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; public class Main{ static StringBuilder sb; public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); List<String> lines = new ArrayList<String>(); String line = ""; while((line = br.readLine()) != null){ lines.add(line); } br.close(); //lines.add("40 42 -1"); //lines.add("20 30 -1"); //lines.add("0 2 -1"); //lines.add("-1 -1 -1"); for (int i = 0; i < lines.size(); i++) { Integer m = Integer.parseInt(lines.get(i).split(" ")[0]); Integer f = Integer.parseInt(lines.get(i).split(" ")[1]); Integer r = Integer.parseInt(lines.get(i).split(" ")[2]); if (m == -1 && f == -1 && r == -1) { System.exit(0); } else if (m == -1 || f == -1) { System.out.println("F"); } else if (m+f >= 80) { System.out.println("A"); } else if (65 <= m+f && m+f < 80) { System.out.println("B"); } else if (50 <= m+f && m+f < 65) { System.out.println("C"); } else if (30 <= m+f && m+f < 50) { if (r != -1 && r >= 50) { System.out.println("C"); } else { System.out.println("D"); } } else { System.out.println("F"); } } System.exit(0); } catch (Exception e) { System.out.println(e.getMessage()); System.out.println(Arrays.toString(e.getStackTrace())); System.exit(0); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 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 ], [ 129, 5 ], [ 129, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 14, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 46, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 63, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 76, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 89, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 106, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 6, 126 ], [ 126, 127 ], [ 0, 128 ], [ 128, 129 ], [ 128, 130 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m == -1 && f == -1 && r == -1 ) break;\n\n if( m == -1 || f == -1 ){\n System.out.println(\"F\");\n } else if(m+f >= 80){\n System.out.println(\"A\");\n } else if(m+f >= 65){\n System.out.println(\"B\");\n } else if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}\n\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m == -1 && f == -1 && r == -1 ) break;\n\n if( m == -1 || f == -1 ){\n System.out.println(\"F\");\n } else if(m+f >= 80){\n System.out.println(\"A\");\n } else if(m+f >= 65){\n System.out.println(\"B\");\n } else if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m == -1 && f == -1 && r == -1 ) break;\n\n if( m == -1 || f == -1 ){\n System.out.println(\"F\");\n } else if(m+f >= 80){\n System.out.println(\"A\");\n } else if(m+f >= 65){\n System.out.println(\"B\");\n } else if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m == -1 && f == -1 && r == -1 ) break;\n\n if( m == -1 || f == -1 ){\n System.out.println(\"F\");\n } else if(m+f >= 80){\n System.out.println(\"A\");\n } else if(m+f >= 65){\n System.out.println(\"B\");\n } else if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m == -1 && f == -1 && r == -1 ) break;\n\n if( m == -1 || f == -1 ){\n System.out.println(\"F\");\n } else if(m+f >= 80){\n System.out.println(\"A\");\n } else if(m+f >= 65){\n System.out.println(\"B\");\n } else if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }", "true", "{\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m == -1 && f == -1 && r == -1 ) break;\n\n if( m == -1 || f == -1 ){\n System.out.println(\"F\");\n } else if(m+f >= 80){\n System.out.println(\"A\");\n } else if(m+f >= 65){\n System.out.println(\"B\");\n } else if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if(m == -1 && f == -1 && r == -1 ) break;", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "break;", "if( m == -1 || f == -1 ){\n System.out.println(\"F\");\n } else if(m+f >= 80){\n System.out.println(\"A\");\n } else if(m+f >= 65){\n System.out.println(\"B\");\n } else if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(m+f >= 80){\n System.out.println(\"A\");\n } else if(m+f >= 65){\n System.out.println(\"B\");\n } else if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }", "m+f >= 80", "m+f", "m", "f", "80", "{\n System.out.println(\"A\");\n }", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(m+f >= 65){\n System.out.println(\"B\");\n } else if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }", "m+f >= 65", "m+f", "m", "f", "65", "{\n System.out.println(\"B\");\n }", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }", "m+f >= 50 || r >= 50", "m+f >= 50", "m+f", "m", "f", "50", "r >= 50", "r", "50", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }", "m+f >= 30", "m+f", "m", "f", "30", "{\n System.out.println(\"D\");\n }", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m == -1 && f == -1 && r == -1 ) break;\n\n if( m == -1 || f == -1 ){\n System.out.println(\"F\");\n } else if(m+f >= 80){\n System.out.println(\"A\");\n } else if(m+f >= 65){\n System.out.println(\"B\");\n } else if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}", "public class Main {\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n\n if(m == -1 && f == -1 && r == -1 ) break;\n\n if( m == -1 || f == -1 ){\n System.out.println(\"F\");\n } else if(m+f >= 80){\n System.out.println(\"A\");\n } else if(m+f >= 65){\n System.out.println(\"B\");\n } else if(m+f >= 50 || r >= 50){\n System.out.println(\"C\");\n } else if(m+f >= 30){\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true){ int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); if(m == -1 && f == -1 && r == -1 ) break; if( m == -1 || f == -1 ){ System.out.println("F"); } else if(m+f >= 80){ System.out.println("A"); } else if(m+f >= 65){ System.out.println("B"); } else if(m+f >= 50 || r >= 50){ System.out.println("C"); } else if(m+f >= 30){ System.out.println("D"); } else { System.out.println("F"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 41, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 20, 36 ], [ 36, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 38, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 36, 51 ], [ 20, 52 ], [ 52, 53 ], [ 20, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 54, 64 ], [ 64, 65 ], [ 64, 66 ], [ 54, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 67, 73 ], [ 73, 74 ], [ 73, 75 ], [ 67, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 82, 83 ], [ 82, 84 ], [ 76, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 85, 91 ], [ 91, 92 ], [ 91, 93 ], [ 85, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 101, 108 ], [ 108, 109 ], [ 108, 110 ], [ 94, 111 ], [ 111, 112 ], [ 111, 113 ], [ 20, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 6, 120 ], [ 120, 121 ] ]
[ "import java.util.Scanner;\n \nclass Main{\n public static void main(String[] arg){\n int m, f, r;\n\n Scanner in = new Scanner(System.in);\n\n while(true){\n m = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n \n if(m == -1 && f == -1 && r == -1) break;\n\n char check;\n if(m == -1 || f == -1) check = 'F';\n else if((m+f)>=80) check = 'A';\n else if((m+f)>=65) check = 'B';\n else if((m+f)>=50) check = 'C';\n else if((m+f)>=30){\n if(r>=50) check = 'C';\n else check = 'D';\n\n }\n else check = 'F';\n\n System.out.println(check);\n }\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] arg){\n int m, f, r;\n\n Scanner in = new Scanner(System.in);\n\n while(true){\n m = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n \n if(m == -1 && f == -1 && r == -1) break;\n\n char check;\n if(m == -1 || f == -1) check = 'F';\n else if((m+f)>=80) check = 'A';\n else if((m+f)>=65) check = 'B';\n else if((m+f)>=50) check = 'C';\n else if((m+f)>=30){\n if(r>=50) check = 'C';\n else check = 'D';\n\n }\n else check = 'F';\n\n System.out.println(check);\n }\n\n }\n}", "Main", "public static void main(String[] arg){\n int m, f, r;\n\n Scanner in = new Scanner(System.in);\n\n while(true){\n m = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n \n if(m == -1 && f == -1 && r == -1) break;\n\n char check;\n if(m == -1 || f == -1) check = 'F';\n else if((m+f)>=80) check = 'A';\n else if((m+f)>=65) check = 'B';\n else if((m+f)>=50) check = 'C';\n else if((m+f)>=30){\n if(r>=50) check = 'C';\n else check = 'D';\n\n }\n else check = 'F';\n\n System.out.println(check);\n }\n\n }", "main", "{\n int m, f, r;\n\n Scanner in = new Scanner(System.in);\n\n while(true){\n m = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n \n if(m == -1 && f == -1 && r == -1) break;\n\n char check;\n if(m == -1 || f == -1) check = 'F';\n else if((m+f)>=80) check = 'A';\n else if((m+f)>=65) check = 'B';\n else if((m+f)>=50) check = 'C';\n else if((m+f)>=30){\n if(r>=50) check = 'C';\n else check = 'D';\n\n }\n else check = 'F';\n\n System.out.println(check);\n }\n\n }", "int m", "m", "f", "f", "r;", "r", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(true){\n m = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n \n if(m == -1 && f == -1 && r == -1) break;\n\n char check;\n if(m == -1 || f == -1) check = 'F';\n else if((m+f)>=80) check = 'A';\n else if((m+f)>=65) check = 'B';\n else if((m+f)>=50) check = 'C';\n else if((m+f)>=30){\n if(r>=50) check = 'C';\n else check = 'D';\n\n }\n else check = 'F';\n\n System.out.println(check);\n }", "true", "{\n m = in.nextInt();\n f = in.nextInt();\n r = in.nextInt();\n \n if(m == -1 && f == -1 && r == -1) break;\n\n char check;\n if(m == -1 || f == -1) check = 'F';\n else if((m+f)>=80) check = 'A';\n else if((m+f)>=65) check = 'B';\n else if((m+f)>=50) check = 'C';\n else if((m+f)>=30){\n if(r>=50) check = 'C';\n else check = 'D';\n\n }\n else check = 'F';\n\n System.out.println(check);\n }", "m = in.nextInt()", "m", "in.nextInt()", "in.nextInt", "in", "f = in.nextInt()", "f", "in.nextInt()", "in.nextInt", "in", "r = in.nextInt()", "r", "in.nextInt()", "in.nextInt", "in", "if(m == -1 && f == -1 && r == -1) break;", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "break;", "char check;", "check", "if(m == -1 || f == -1) check = 'F';\n else if((m+f)>=80) check = 'A';\n else if((m+f)>=65) check = 'B';\n else if((m+f)>=50) check = 'C';\n else if((m+f)>=30){\n if(r>=50) check = 'C';\n else check = 'D';\n\n }\n else check = 'F';", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "check = 'F'", "check", "'F'", "if((m+f)>=80) check = 'A';\n else if((m+f)>=65) check = 'B';\n else if((m+f)>=50) check = 'C';\n else if((m+f)>=30){\n if(r>=50) check = 'C';\n else check = 'D';\n\n }\n else check = 'F';", "(m+f)>=80", "(m+f)", "m", "f", "80", "check = 'A'", "check", "'A'", "if((m+f)>=65) check = 'B';\n else if((m+f)>=50) check = 'C';\n else if((m+f)>=30){\n if(r>=50) check = 'C';\n else check = 'D';\n\n }\n else check = 'F';", "(m+f)>=65", "(m+f)", "m", "f", "65", "check = 'B'", "check", "'B'", "if((m+f)>=50) check = 'C';\n else if((m+f)>=30){\n if(r>=50) check = 'C';\n else check = 'D';\n\n }\n else check = 'F';", "(m+f)>=50", "(m+f)", "m", "f", "50", "check = 'C'", "check", "'C'", "if((m+f)>=30){\n if(r>=50) check = 'C';\n else check = 'D';\n\n }\n else check = 'F';", "(m+f)>=30", "(m+f)", "m", "f", "30", "{\n if(r>=50) check = 'C';\n else check = 'D';\n\n }", "if(r>=50) check = 'C';\n else check = 'D';", "r>=50", "r", "50", "check = 'C'", "check", "'C'", "check = 'D'", "check", "'D'", "check = 'F'", "check", "'F'", "System.out.println(check)", "System.out.println", "System.out", "System", "System.out", "check", "String[] arg", "arg" ]
import java.util.Scanner; class Main{ public static void main(String[] arg){ int m, f, r; Scanner in = new Scanner(System.in); while(true){ m = in.nextInt(); f = in.nextInt(); r = in.nextInt(); if(m == -1 && f == -1 && r == -1) break; char check; if(m == -1 || f == -1) check = 'F'; else if((m+f)>=80) check = 'A'; else if((m+f)>=65) check = 'B'; else if((m+f)>=50) check = 'C'; else if((m+f)>=30){ if(r>=50) check = 'C'; else check = 'D'; } else check = 'F'; System.out.println(check); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 2, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 17, 2, 13, 13, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 14, 2, 17, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 172, 11 ], [ 172, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 23, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 34, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 20, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 20, 53 ], [ 53, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 55, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 53, 68 ], [ 68, 69 ], [ 20, 70 ], [ 70, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 72, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 70, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 70, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 92, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 104, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 104, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 122, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 122, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 144, 146 ], [ 141, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 140, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 153, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 163, 168 ], [ 12, 169 ], [ 169, 170 ], [ 0, 171 ], [ 171, 172 ], [ 171, 173 ] ]
[ "import java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.IOException;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(strAry[0]);\n\t\t\tint f = Integer.parseInt(strAry[1]);\n\t\t\tint r = Integer.parseInt(strAry[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1 || m + f < 30) System.out.println(\"F\");\n\t\t\telse if (80 <= m + f) System.out.println(\"A\");\n\t\t\telse if (65 <= m + f && m + f < 80) System.out.println(\"B\");\n\t\t\telse if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}\n\t\t}\n\t}\n}", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(strAry[0]);\n\t\t\tint f = Integer.parseInt(strAry[1]);\n\t\t\tint r = Integer.parseInt(strAry[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1 || m + f < 30) System.out.println(\"F\");\n\t\t\telse if (80 <= m + f) System.out.println(\"A\");\n\t\t\telse if (65 <= m + f && m + f < 80) System.out.println(\"B\");\n\t\t\telse if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(strAry[0]);\n\t\t\tint f = Integer.parseInt(strAry[1]);\n\t\t\tint r = Integer.parseInt(strAry[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1 || m + f < 30) System.out.println(\"F\");\n\t\t\telse if (80 <= m + f) System.out.println(\"A\");\n\t\t\telse if (65 <= m + f && m + f < 80) System.out.println(\"B\");\n\t\t\telse if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(strAry[0]);\n\t\t\tint f = Integer.parseInt(strAry[1]);\n\t\t\tint r = Integer.parseInt(strAry[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1 || m + f < 30) System.out.println(\"F\");\n\t\t\telse if (80 <= m + f) System.out.println(\"A\");\n\t\t\telse if (65 <= m + f && m + f < 80) System.out.println(\"B\");\n\t\t\telse if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(strAry[0]);\n\t\t\tint f = Integer.parseInt(strAry[1]);\n\t\t\tint r = Integer.parseInt(strAry[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1 || m + f < 30) System.out.println(\"F\");\n\t\t\telse if (80 <= m + f) System.out.println(\"A\");\n\t\t\telse if (65 <= m + f && m + f < 80) System.out.println(\"B\");\n\t\t\telse if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(strAry[0]);\n\t\t\tint f = Integer.parseInt(strAry[1]);\n\t\t\tint r = Integer.parseInt(strAry[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1 || m + f < 30) System.out.println(\"F\");\n\t\t\telse if (80 <= m + f) System.out.println(\"A\");\n\t\t\telse if (65 <= m + f && m + f < 80) System.out.println(\"B\");\n\t\t\telse if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}\n\t\t}", "String[] strAry = br.readLine().split(\" \");", "strAry", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int m = Integer.parseInt(strAry[0]);", "m", "Integer.parseInt(strAry[0])", "Integer.parseInt", "Integer", "strAry[0]", "strAry", "0", "int f = Integer.parseInt(strAry[1]);", "f", "Integer.parseInt(strAry[1])", "Integer.parseInt", "Integer", "strAry[1]", "strAry", "1", "int r = Integer.parseInt(strAry[2]);", "r", "Integer.parseInt(strAry[2])", "Integer.parseInt", "Integer", "strAry[2]", "strAry", "2", "if (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if (m == -1 || f == -1 || m + f < 30) System.out.println(\"F\");\n\t\t\telse if (80 <= m + f) System.out.println(\"A\");\n\t\t\telse if (65 <= m + f && m + f < 80) System.out.println(\"B\");\n\t\t\telse if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}", "m == -1 || f == -1 || m + f < 30", "m == -1 || f == -1 || m + f < 30", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "m + f < 30", "m + f", "m", "f", "30", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (80 <= m + f) System.out.println(\"A\");\n\t\t\telse if (65 <= m + f && m + f < 80) System.out.println(\"B\");\n\t\t\telse if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}", "80 <= m + f", "80", "m + f", "m", "f", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (65 <= m + f && m + f < 80) System.out.println(\"B\");\n\t\t\telse if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}", "65 <= m + f && m + f < 80", "65 <= m + f", "65", "m + f", "m", "f", "m + f < 80", "m + f", "m", "f", "80", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}", "50 <= m + f && m + f < 65", "50 <= m + f", "50", "m + f", "m", "f", "m + f < 65", "m + f", "m", "f", "65", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}", "30 <= m + f && m + f < 50", "30 <= m + f", "30", "m + f", "m", "f", "m + f < 50", "m + f", "m", "f", "50", "{\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}", "if (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");", "50 <= r", "50", "r", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(strAry[0]);\n\t\t\tint f = Integer.parseInt(strAry[1]);\n\t\t\tint r = Integer.parseInt(strAry[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1 || m + f < 30) System.out.println(\"F\");\n\t\t\telse if (80 <= m + f) System.out.println(\"A\");\n\t\t\telse if (65 <= m + f && m + f < 80) System.out.println(\"B\");\n\t\t\telse if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] strAry = br.readLine().split(\" \");\n\t\t\tint m = Integer.parseInt(strAry[0]);\n\t\t\tint f = Integer.parseInt(strAry[1]);\n\t\t\tint r = Integer.parseInt(strAry[2]);\n\t\t\tif (m == -1 && f == -1 && r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1 || m + f < 30) System.out.println(\"F\");\n\t\t\telse if (80 <= m + f) System.out.println(\"A\");\n\t\t\telse if (65 <= m + f && m + f < 80) System.out.println(\"B\");\n\t\t\telse if (50 <= m + f && m + f < 65) System.out.println(\"C\"); \n\t\t\telse if (30 <= m + f && m + f < 50) {\n\t\t\t\tif (50 <= r) System.out.println(\"C\");\n\t\t\t\telse System.out.println(\"D\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { String[] strAry = br.readLine().split(" "); int m = Integer.parseInt(strAry[0]); int f = Integer.parseInt(strAry[1]); int r = Integer.parseInt(strAry[2]); if (m == -1 && f == -1 && r == -1) { break; } if (m == -1 || f == -1 || m + f < 30) System.out.println("F"); else if (80 <= m + f) System.out.println("A"); else if (65 <= m + f && m + f < 80) System.out.println("B"); else if (50 <= m + f && m + f < 65) System.out.println("C"); else if (30 <= m + f && m + f < 50) { if (50 <= r) System.out.println("C"); else System.out.println("D"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 30, 41, 13, 0, 13, 2, 13, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 227, 5 ], [ 227, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 16, 32 ], [ 32, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 34, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 32, 47 ], [ 47, 48 ], [ 32, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 49, 74 ], [ 74, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 76, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 74, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 49, 95 ], [ 95, 96 ], [ 98, 97 ], [ 105, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 105, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 98, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 95, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 49, 120 ], [ 120, 121 ], [ 123, 122 ], [ 130, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 127, 129 ], [ 130, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 123, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 120, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 49, 145 ], [ 145, 146 ], [ 149, 147 ], [ 160, 148 ], [ 156, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 153, 155 ], [ 156, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 160, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 149, 164 ], [ 164, 165 ], [ 164, 166 ], [ 145, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 168, 173 ], [ 49, 174 ], [ 174, 175 ], [ 178, 176 ], [ 189, 177 ], [ 185, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 182, 183 ], [ 182, 184 ], [ 185, 185 ], [ 185, 186 ], [ 185, 187 ], [ 187, 188 ], [ 189, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 178, 193 ], [ 193, 194 ], [ 193, 195 ], [ 174, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 197, 202 ], [ 49, 203 ], [ 203, 204 ], [ 205, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 205, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 205, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 203, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 218, 223 ], [ 6, 224 ], [ 224, 225 ], [ 0, 226 ], [ 226, 227 ], [ 226, 228 ] ]
[ "import java.util.Scanner;\npublic class Main {\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tint m=sc.nextInt();\n\t\tint f=sc.nextInt();\n\t\tint r=sc.nextInt();\n\t\tif(m==-1 && f==-1 && r==-1) {\n\t\t\tbreak;\n\t\t}else {\n\t\t\tint x;\n\t\t\tx=m+f;\n\t\t\tif(m==-1 || f==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tif(x>=80 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\tif(x<80 && x>=65 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\tif(x<65 && x>=50 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\tif(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\tif(x<30 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tint m=sc.nextInt();\n\t\tint f=sc.nextInt();\n\t\tint r=sc.nextInt();\n\t\tif(m==-1 && f==-1 && r==-1) {\n\t\t\tbreak;\n\t\t}else {\n\t\t\tint x;\n\t\t\tx=m+f;\n\t\t\tif(m==-1 || f==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tif(x>=80 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\tif(x<80 && x>=65 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\tif(x<65 && x>=50 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\tif(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\tif(x<30 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}\n}", "Main", "public static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tint m=sc.nextInt();\n\t\tint f=sc.nextInt();\n\t\tint r=sc.nextInt();\n\t\tif(m==-1 && f==-1 && r==-1) {\n\t\t\tbreak;\n\t\t}else {\n\t\t\tint x;\n\t\t\tx=m+f;\n\t\t\tif(m==-1 || f==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tif(x>=80 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\tif(x<80 && x>=65 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\tif(x<65 && x>=50 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\tif(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\tif(x<30 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "main", "{\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tint m=sc.nextInt();\n\t\tint f=sc.nextInt();\n\t\tint r=sc.nextInt();\n\t\tif(m==-1 && f==-1 && r==-1) {\n\t\t\tbreak;\n\t\t}else {\n\t\t\tint x;\n\t\t\tx=m+f;\n\t\t\tif(m==-1 || f==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tif(x>=80 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\tif(x<80 && x>=65 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\tif(x<65 && x>=50 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\tif(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\tif(x<30 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNext()) {\n\t\tint m=sc.nextInt();\n\t\tint f=sc.nextInt();\n\t\tint r=sc.nextInt();\n\t\tif(m==-1 && f==-1 && r==-1) {\n\t\t\tbreak;\n\t\t}else {\n\t\t\tint x;\n\t\t\tx=m+f;\n\t\t\tif(m==-1 || f==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tif(x>=80 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\tif(x<80 && x>=65 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\tif(x<65 && x>=50 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\tif(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\tif(x<30 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\tint m=sc.nextInt();\n\t\tint f=sc.nextInt();\n\t\tint r=sc.nextInt();\n\t\tif(m==-1 && f==-1 && r==-1) {\n\t\t\tbreak;\n\t\t}else {\n\t\t\tint x;\n\t\t\tx=m+f;\n\t\t\tif(m==-1 || f==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tif(x>=80 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\tif(x<80 && x>=65 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\tif(x<65 && x>=50 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\tif(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\tif(x<30 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}", "int m=sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f=sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r=sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if(m==-1 && f==-1 && r==-1) {\n\t\t\tbreak;\n\t\t}else {\n\t\t\tint x;\n\t\t\tx=m+f;\n\t\t\tif(m==-1 || f==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tif(x>=80 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\tif(x<80 && x>=65 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\tif(x<65 && x>=50 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\tif(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\tif(x<30 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "m==-1 && f==-1 && r==-1", "m==-1 && f==-1 && r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "{\n\t\t\tbreak;\n\t\t}", "break;", "{\n\t\t\tint x;\n\t\t\tx=m+f;\n\t\t\tif(m==-1 || f==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tif(x>=80 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\tif(x<80 && x>=65 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\tif(x<65 && x>=50 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\tif(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\tif(x<30 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "int x;", "x", "x=m+f", "x", "m+f", "m", "f", "if(m==-1 || f==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m==-1 || f==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(x>=80 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "x>=80 && m!=-1 && f!=-1", "x>=80 && m!=-1 && f!=-1", "x>=80", "x", "80", "m!=-1", "m", "-1", "1", "f!=-1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(x<80 && x>=65 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "x<80 && x>=65 && m!=-1 && f!=-1", "m!=-1", "x<80 && x>=65 && m!=-1 && f!=-1", "x<80", "x", "80", "x>=65", "x", "65", "m!=-1", "m", "-1", "1", "f!=-1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(x<65 && x>=50 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "x<65 && x>=50 && m!=-1 && f!=-1", "m!=-1", "x<65 && x>=50 && m!=-1 && f!=-1", "x<65", "x", "65", "x>=50", "x", "50", "m!=-1", "m", "-1", "1", "f!=-1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "x<50 && x>=30 && m!=-1 && f!=-1 && r>=50", "f!=-1", "m!=-1", "x<50 && x>=30 && m!=-1 && f!=-1 && r>=50", "x<50", "x", "50", "x>=30", "x", "30", "m!=-1", "m", "-1", "1", "f!=-1", "f", "-1", "1", "r>=50", "r", "50", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "x>=30 && x<50 && m!=-1 && f!=-1 && r<50", "f!=-1", "m!=-1", "x>=30 && x<50 && m!=-1 && f!=-1 && r<50", "x>=30", "x", "30", "x<50", "x", "50", "m!=-1", "m", "-1", "1", "f!=-1", "f", "-1", "1", "r<50", "r", "50", "{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if(x<30 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "x<30 && m!=-1 && f!=-1", "x<30 && m!=-1 && f!=-1", "x<30", "x", "30", "m!=-1", "m", "-1", "1", "f!=-1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tint m=sc.nextInt();\n\t\tint f=sc.nextInt();\n\t\tint r=sc.nextInt();\n\t\tif(m==-1 && f==-1 && r==-1) {\n\t\t\tbreak;\n\t\t}else {\n\t\t\tint x;\n\t\t\tx=m+f;\n\t\t\tif(m==-1 || f==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tif(x>=80 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\tif(x<80 && x>=65 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\tif(x<65 && x>=50 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\tif(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\tif(x<30 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}\n}", "public class Main {\npublic static void main(String[] args) {\n\tScanner sc=new Scanner(System.in);\n\twhile(sc.hasNext()) {\n\t\tint m=sc.nextInt();\n\t\tint f=sc.nextInt();\n\t\tint r=sc.nextInt();\n\t\tif(m==-1 && f==-1 && r==-1) {\n\t\t\tbreak;\n\t\t}else {\n\t\t\tint x;\n\t\t\tx=m+f;\n\t\t\tif(m==-1 || f==-1) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t\tif(x>=80 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}\n\t\t\tif(x<80 && x>=65 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}\n\t\t\tif(x<65 && x>=50 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}\n\t\t\tif(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\tif(x<30 && m!=-1 && f!=-1 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t}\n}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()) { int m=sc.nextInt(); int f=sc.nextInt(); int r=sc.nextInt(); if(m==-1 && f==-1 && r==-1) { break; }else { int x; x=m+f; if(m==-1 || f==-1) { System.out.println("F"); } if(x>=80 && m!=-1 && f!=-1 ) { System.out.println("A"); } if(x<80 && x>=65 && m!=-1 && f!=-1 ) { System.out.println("B"); } if(x<65 && x>=50 && m!=-1 && f!=-1 ) { System.out.println("C"); } if(x<50 && x>=30 && m!=-1 && f!=-1 && r>=50) { System.out.println("C"); }if(x>=30 && x<50 && m!=-1 && f!=-1 && r<50) { System.out.println("D"); } if(x<30 && m!=-1 && f!=-1 ) { System.out.println("F"); } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 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 ], [ 123, 5 ], [ 123, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 16, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 16, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 37, 47 ], [ 16, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 48, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 74, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 84, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 98, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 94, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 6, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()) {\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\tint p = m + f;\n\t\t\n\t\tif(m == -1 && f == -1)\n\t\t\t\tbreak;\n\t\t\n\t\tif(m == -1 || f == -1)\n\t\t\tSystem.out.println(\"F\");\n\t\telse if(p >= 80)\n\t\t\tSystem.out.println(\"A\");\n\t\telse if(p >= 65)\n\t\t\tSystem.out.println(\"B\");\n\t\telse if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");\n\t\t\n\t\t}\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()) {\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\tint p = m + f;\n\t\t\n\t\tif(m == -1 && f == -1)\n\t\t\t\tbreak;\n\t\t\n\t\tif(m == -1 || f == -1)\n\t\t\tSystem.out.println(\"F\");\n\t\telse if(p >= 80)\n\t\t\tSystem.out.println(\"A\");\n\t\telse if(p >= 65)\n\t\t\tSystem.out.println(\"B\");\n\t\telse if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");\n\t\t\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()) {\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\tint p = m + f;\n\t\t\n\t\tif(m == -1 && f == -1)\n\t\t\t\tbreak;\n\t\t\n\t\tif(m == -1 || f == -1)\n\t\t\tSystem.out.println(\"F\");\n\t\telse if(p >= 80)\n\t\t\tSystem.out.println(\"A\");\n\t\telse if(p >= 65)\n\t\t\tSystem.out.println(\"B\");\n\t\telse if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");\n\t\t\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()) {\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\tint p = m + f;\n\t\t\n\t\tif(m == -1 && f == -1)\n\t\t\t\tbreak;\n\t\t\n\t\tif(m == -1 || f == -1)\n\t\t\tSystem.out.println(\"F\");\n\t\telse if(p >= 80)\n\t\t\tSystem.out.println(\"A\");\n\t\telse if(p >= 65)\n\t\t\tSystem.out.println(\"B\");\n\t\telse if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");\n\t\t\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNext()) {\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\tint p = m + f;\n\t\t\n\t\tif(m == -1 && f == -1)\n\t\t\t\tbreak;\n\t\t\n\t\tif(m == -1 || f == -1)\n\t\t\tSystem.out.println(\"F\");\n\t\telse if(p >= 80)\n\t\t\tSystem.out.println(\"A\");\n\t\telse if(p >= 65)\n\t\t\tSystem.out.println(\"B\");\n\t\telse if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");\n\t\t\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\tint p = m + f;\n\t\t\n\t\tif(m == -1 && f == -1)\n\t\t\t\tbreak;\n\t\t\n\t\tif(m == -1 || f == -1)\n\t\t\tSystem.out.println(\"F\");\n\t\telse if(p >= 80)\n\t\t\tSystem.out.println(\"A\");\n\t\telse if(p >= 65)\n\t\t\tSystem.out.println(\"B\");\n\t\telse if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");\n\t\t\n\t\t}", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "int p = m + f;", "p", "m + f", "m", "f", "if(m == -1 && f == -1)\n\t\t\t\tbreak;", "m == -1 && f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "break;", "if(m == -1 || f == -1)\n\t\t\tSystem.out.println(\"F\");\n\t\telse if(p >= 80)\n\t\t\tSystem.out.println(\"A\");\n\t\telse if(p >= 65)\n\t\t\tSystem.out.println(\"B\");\n\t\telse if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(p >= 80)\n\t\t\tSystem.out.println(\"A\");\n\t\telse if(p >= 65)\n\t\t\tSystem.out.println(\"B\");\n\t\telse if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");", "p >= 80", "p", "80", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(p >= 65)\n\t\t\tSystem.out.println(\"B\");\n\t\telse if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");", "p >= 65", "p", "65", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");", "p >= 50", "p", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");", "p >= 30", "p", "30", "if(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");", "r < 50", "r", "50", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()) {\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\tint p = m + f;\n\t\t\n\t\tif(m == -1 && f == -1)\n\t\t\t\tbreak;\n\t\t\n\t\tif(m == -1 || f == -1)\n\t\t\tSystem.out.println(\"F\");\n\t\telse if(p >= 80)\n\t\t\tSystem.out.println(\"A\");\n\t\telse if(p >= 65)\n\t\t\tSystem.out.println(\"B\");\n\t\telse if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");\n\t\t\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()) {\n\t\tint m = sc.nextInt();\n\t\tint f = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\tint p = m + f;\n\t\t\n\t\tif(m == -1 && f == -1)\n\t\t\t\tbreak;\n\t\t\n\t\tif(m == -1 || f == -1)\n\t\t\tSystem.out.println(\"F\");\n\t\telse if(p >= 80)\n\t\t\tSystem.out.println(\"A\");\n\t\telse if(p >= 65)\n\t\t\tSystem.out.println(\"B\");\n\t\telse if(p >= 50)\n\t\t\tSystem.out.println(\"C\");\n\t\telse if(p >= 30)\n\t\t\tif(r < 50)\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"C\");\n\t\telse\n\t\t\tSystem.out.println(\"F\");\n\t\t\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()) { int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); int p = m + f; if(m == -1 && f == -1) break; if(m == -1 || f == -1) System.out.println("F"); else if(p >= 80) System.out.println("A"); else if(p >= 65) System.out.println("B"); else if(p >= 50) System.out.println("C"); else if(p >= 30) if(r < 50) System.out.println("D"); else System.out.println("C"); else System.out.println("F"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 2, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 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 ], [ 135, 5 ], [ 135, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 19, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 19, 35 ], [ 35, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 37, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 35, 50 ], [ 50, 51 ], [ 35, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 52, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 69, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 69, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 82, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 96, 102 ], [ 102, 103 ], [ 102, 104 ], [ 95, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 95, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 112, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 112, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 6, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int j = 0;\n\n while (j == 0) {\n int tyukan = scanner.nextInt();\n int kimatu = scanner.nextInt();\n int saishi = scanner.nextInt();\n\n if (tyukan == -1 && kimatu == -1 && saishi == -1) {\n break; \n }else if(tyukan==-1||kimatu==-1){\n System.out.println(\"F\");\n } \n else if ((tyukan + kimatu) >= 80) {\n System.out.println(\"A\");\n } else if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int j = 0;\n\n while (j == 0) {\n int tyukan = scanner.nextInt();\n int kimatu = scanner.nextInt();\n int saishi = scanner.nextInt();\n\n if (tyukan == -1 && kimatu == -1 && saishi == -1) {\n break; \n }else if(tyukan==-1||kimatu==-1){\n System.out.println(\"F\");\n } \n else if ((tyukan + kimatu) >= 80) {\n System.out.println(\"A\");\n } else if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int j = 0;\n\n while (j == 0) {\n int tyukan = scanner.nextInt();\n int kimatu = scanner.nextInt();\n int saishi = scanner.nextInt();\n\n if (tyukan == -1 && kimatu == -1 && saishi == -1) {\n break; \n }else if(tyukan==-1||kimatu==-1){\n System.out.println(\"F\");\n } \n else if ((tyukan + kimatu) >= 80) {\n System.out.println(\"A\");\n } else if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int j = 0;\n\n while (j == 0) {\n int tyukan = scanner.nextInt();\n int kimatu = scanner.nextInt();\n int saishi = scanner.nextInt();\n\n if (tyukan == -1 && kimatu == -1 && saishi == -1) {\n break; \n }else if(tyukan==-1||kimatu==-1){\n System.out.println(\"F\");\n } \n else if ((tyukan + kimatu) >= 80) {\n System.out.println(\"A\");\n } else if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int j = 0;", "j", "0", "while (j == 0) {\n int tyukan = scanner.nextInt();\n int kimatu = scanner.nextInt();\n int saishi = scanner.nextInt();\n\n if (tyukan == -1 && kimatu == -1 && saishi == -1) {\n break; \n }else if(tyukan==-1||kimatu==-1){\n System.out.println(\"F\");\n } \n else if ((tyukan + kimatu) >= 80) {\n System.out.println(\"A\");\n } else if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }", "j == 0", "j", "0", "{\n int tyukan = scanner.nextInt();\n int kimatu = scanner.nextInt();\n int saishi = scanner.nextInt();\n\n if (tyukan == -1 && kimatu == -1 && saishi == -1) {\n break; \n }else if(tyukan==-1||kimatu==-1){\n System.out.println(\"F\");\n } \n else if ((tyukan + kimatu) >= 80) {\n System.out.println(\"A\");\n } else if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }", "int tyukan = scanner.nextInt();", "tyukan", "scanner.nextInt()", "scanner.nextInt", "scanner", "int kimatu = scanner.nextInt();", "kimatu", "scanner.nextInt()", "scanner.nextInt", "scanner", "int saishi = scanner.nextInt();", "saishi", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (tyukan == -1 && kimatu == -1 && saishi == -1) {\n break; \n }else if(tyukan==-1||kimatu==-1){\n System.out.println(\"F\");\n } \n else if ((tyukan + kimatu) >= 80) {\n System.out.println(\"A\");\n } else if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }", "tyukan == -1 && kimatu == -1 && saishi == -1", "tyukan == -1 && kimatu == -1 && saishi == -1", "tyukan == -1", "tyukan", "-1", "1", "kimatu == -1", "kimatu", "-1", "1", "saishi == -1", "saishi", "-1", "1", "{\n break; \n }", "break;", "if(tyukan==-1||kimatu==-1){\n System.out.println(\"F\");\n } \n else if ((tyukan + kimatu) >= 80) {\n System.out.println(\"A\");\n } else if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }", "tyukan==-1||kimatu==-1", "tyukan==-1", "tyukan", "-1", "1", "kimatu==-1", "kimatu", "-1", "1", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if ((tyukan + kimatu) >= 80) {\n System.out.println(\"A\");\n } else if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }", "(tyukan + kimatu) >= 80", "(tyukan + kimatu)", "tyukan", "kimatu", "80", "{\n System.out.println(\"A\");\n }", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }", "(tyukan + kimatu) >= 65", "(tyukan + kimatu)", "tyukan", "kimatu", "65", "{\n System.out.println(\"B\");\n }", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }", "(tyukan + kimatu) >= 50||saishi>=50", "(tyukan + kimatu) >= 50", "(tyukan + kimatu)", "tyukan", "kimatu", "50", "saishi>=50", "saishi", "50", "{\n System.out.println(\"C\");\n }", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }", "(tyukan + kimatu) >= 30", "(tyukan + kimatu)", "tyukan", "kimatu", "30", "{\n System.out.println(\"D\");\n }", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n System.out.println(\"F\");\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int j = 0;\n\n while (j == 0) {\n int tyukan = scanner.nextInt();\n int kimatu = scanner.nextInt();\n int saishi = scanner.nextInt();\n\n if (tyukan == -1 && kimatu == -1 && saishi == -1) {\n break; \n }else if(tyukan==-1||kimatu==-1){\n System.out.println(\"F\");\n } \n else if ((tyukan + kimatu) >= 80) {\n System.out.println(\"A\");\n } else if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int j = 0;\n\n while (j == 0) {\n int tyukan = scanner.nextInt();\n int kimatu = scanner.nextInt();\n int saishi = scanner.nextInt();\n\n if (tyukan == -1 && kimatu == -1 && saishi == -1) {\n break; \n }else if(tyukan==-1||kimatu==-1){\n System.out.println(\"F\");\n } \n else if ((tyukan + kimatu) >= 80) {\n System.out.println(\"A\");\n } else if ((tyukan + kimatu) >= 65) {\n System.out.println(\"B\");\n } else if ((tyukan + kimatu) >= 50||saishi>=50) {\n System.out.println(\"C\");\n } else if ((tyukan + kimatu) >= 30) {\n System.out.println(\"D\");\n } else {\n System.out.println(\"F\");\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int j = 0; while (j == 0) { int tyukan = scanner.nextInt(); int kimatu = scanner.nextInt(); int saishi = scanner.nextInt(); if (tyukan == -1 && kimatu == -1 && saishi == -1) { break; }else if(tyukan==-1||kimatu==-1){ System.out.println("F"); } else if ((tyukan + kimatu) >= 80) { System.out.println("A"); } else if ((tyukan + kimatu) >= 65) { System.out.println("B"); } else if ((tyukan + kimatu) >= 50||saishi>=50) { System.out.println("C"); } else if ((tyukan + kimatu) >= 30) { System.out.println("D"); } else { System.out.println("F"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 9, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 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 ], [ 142, 5 ], [ 142, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 30, 45 ], [ 45, 46 ], [ 14, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 57, 64 ], [ 14, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 65, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 65, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 78, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 78, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 91, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 91, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 104, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 111, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 104, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 8, 136 ], [ 136, 137 ], [ 137, 138 ], [ 6, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tint m = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tif (m==-1&&f==-1&&r==-1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1) {\n\t\t\t\tSystem.out.println(\"F\");continue;\n\t\t\t}\n\t\t\tif (m+f>=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m+f>=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m+f>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tint m = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tif (m==-1&&f==-1&&r==-1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1) {\n\t\t\t\tSystem.out.println(\"F\");continue;\n\t\t\t}\n\t\t\tif (m+f>=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m+f>=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m+f>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tint m = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tif (m==-1&&f==-1&&r==-1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1) {\n\t\t\t\tSystem.out.println(\"F\");continue;\n\t\t\t}\n\t\t\tif (m+f>=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m+f>=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m+f>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tint m = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tif (m==-1&&f==-1&&r==-1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1) {\n\t\t\t\tSystem.out.println(\"F\");continue;\n\t\t\t}\n\t\t\tif (m+f>=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m+f>=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m+f>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while(true) {\n\t\t\tint m = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tif (m==-1&&f==-1&&r==-1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1) {\n\t\t\t\tSystem.out.println(\"F\");continue;\n\t\t\t}\n\t\t\tif (m+f>=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m+f>=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m+f>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tint m = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tif (m==-1&&f==-1&&r==-1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1) {\n\t\t\t\tSystem.out.println(\"F\");continue;\n\t\t\t}\n\t\t\tif (m+f>=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m+f>=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m+f>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "int m = scanner.nextInt();", "m", "scanner.nextInt()", "scanner.nextInt", "scanner", "int f = scanner.nextInt();", "f", "scanner.nextInt()", "scanner.nextInt", "scanner", "int r = scanner.nextInt();", "r", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (m==-1&&f==-1&&r==-1) {\n\t\t\t\tbreak;\n\t\t\t}", "m==-1&&f==-1&&r==-1", "m==-1&&f==-1&&r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(m==-1||f==-1) {\n\t\t\t\tSystem.out.println(\"F\");continue;\n\t\t\t}", "m==-1||f==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"F\");continue;\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "continue;", "if (m+f>=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m+f>=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m+f>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m+f>=80", "m+f", "m", "f", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(m+f>=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m+f>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m+f>=65", "m+f", "m", "f", "65", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(m+f>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m+f>=50", "m+f", "m", "f", "50", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "m+f>=30", "m+f", "m", "f", "30", "{\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}", "if (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "r>=50", "r", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tint m = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tif (m==-1&&f==-1&&r==-1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1) {\n\t\t\t\tSystem.out.println(\"F\");continue;\n\t\t\t}\n\t\t\tif (m+f>=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m+f>=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m+f>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tint m = scanner.nextInt();\n\t\t\tint f = scanner.nextInt();\n\t\t\tint r = scanner.nextInt();\n\t\t\tif (m==-1&&f==-1&&r==-1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(m==-1||f==-1) {\n\t\t\t\tSystem.out.println(\"F\");continue;\n\t\t\t}\n\t\t\tif (m+f>=80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}else if(m+f>=65) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}else if(m+f>=50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}else if(m+f>=30){\n\t\t\t\tif (r>=50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while(true) { int m = scanner.nextInt(); int f = scanner.nextInt(); int r = scanner.nextInt(); if (m==-1&&f==-1&&r==-1) { break; } if(m==-1||f==-1) { System.out.println("F");continue; } if (m+f>=80) { System.out.println("A"); }else if(m+f>=65) { System.out.println("B"); }else if(m+f>=50) { System.out.println("C"); }else if(m+f>=30){ if (r>=50) { System.out.println("C"); }else { System.out.println("D"); } }else { System.out.println("F"); } } scanner.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 17, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 17, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 17, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 17, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 17, 13, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 131, 5 ], [ 131, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 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 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 37, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 35, 50 ], [ 50, 51 ], [ 14, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 52, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 80, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 91, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 91, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 106, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 6, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int p = m + f;\n if (m == -1 && f == -1 && r == -1) {\n break;\n }\n if (m == -1 || f == -1) {\n System.out.printf(\"F\\n\");\n } else if (80 <= p) {\n System.out.printf(\"A\\n\");\n } else if (65 <= p) {\n System.out.printf(\"B\\n\");\n } else if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int p = m + f;\n if (m == -1 && f == -1 && r == -1) {\n break;\n }\n if (m == -1 || f == -1) {\n System.out.printf(\"F\\n\");\n } else if (80 <= p) {\n System.out.printf(\"A\\n\");\n } else if (65 <= p) {\n System.out.printf(\"B\\n\");\n } else if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int p = m + f;\n if (m == -1 && f == -1 && r == -1) {\n break;\n }\n if (m == -1 || f == -1) {\n System.out.printf(\"F\\n\");\n } else if (80 <= p) {\n System.out.printf(\"A\\n\");\n } else if (65 <= p) {\n System.out.printf(\"B\\n\");\n } else if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while (true) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int p = m + f;\n if (m == -1 && f == -1 && r == -1) {\n break;\n }\n if (m == -1 || f == -1) {\n System.out.printf(\"F\\n\");\n } else if (80 <= p) {\n System.out.printf(\"A\\n\");\n } else if (65 <= p) {\n System.out.printf(\"B\\n\");\n } else if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int p = m + f;\n if (m == -1 && f == -1 && r == -1) {\n break;\n }\n if (m == -1 || f == -1) {\n System.out.printf(\"F\\n\");\n } else if (80 <= p) {\n System.out.printf(\"A\\n\");\n } else if (65 <= p) {\n System.out.printf(\"B\\n\");\n } else if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }\n }", "true", "{\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int p = m + f;\n if (m == -1 && f == -1 && r == -1) {\n break;\n }\n if (m == -1 || f == -1) {\n System.out.printf(\"F\\n\");\n } else if (80 <= p) {\n System.out.printf(\"A\\n\");\n } else if (65 <= p) {\n System.out.printf(\"B\\n\");\n } else if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }\n }", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "int p = m + f;", "p", "m + f", "m", "f", "if (m == -1 && f == -1 && r == -1) {\n break;\n }", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n break;\n }", "break;", "if (m == -1 || f == -1) {\n System.out.printf(\"F\\n\");\n } else if (80 <= p) {\n System.out.printf(\"A\\n\");\n } else if (65 <= p) {\n System.out.printf(\"B\\n\");\n } else if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n System.out.printf(\"F\\n\");\n }", "System.out.printf(\"F\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"F\\n\"", "if (80 <= p) {\n System.out.printf(\"A\\n\");\n } else if (65 <= p) {\n System.out.printf(\"B\\n\");\n } else if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }", "80 <= p", "80", "p", "{\n System.out.printf(\"A\\n\");\n }", "System.out.printf(\"A\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"A\\n\"", "if (65 <= p) {\n System.out.printf(\"B\\n\");\n } else if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }", "65 <= p", "65", "p", "{\n System.out.printf(\"B\\n\");\n }", "System.out.printf(\"B\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"B\\n\"", "if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }", "50 <= p || r >= 50", "50 <= p", "50", "p", "r >= 50", "r", "50", "{\n System.out.printf(\"C\\n\");\n }", "System.out.printf(\"C\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"C\\n\"", "if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }", "30 <= p", "30", "p", "{\n System.out.printf(\"D\\n\");\n }", "System.out.printf(\"D\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"D\\n\"", "if (0 <= p) {\n System.out.printf(\"F\\n\");\n }", "0 <= p", "0", "p", "{\n System.out.printf(\"F\\n\");\n }", "System.out.printf(\"F\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"F\\n\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int p = m + f;\n if (m == -1 && f == -1 && r == -1) {\n break;\n }\n if (m == -1 || f == -1) {\n System.out.printf(\"F\\n\");\n } else if (80 <= p) {\n System.out.printf(\"A\\n\");\n } else if (65 <= p) {\n System.out.printf(\"B\\n\");\n } else if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int m = sc.nextInt();\n int f = sc.nextInt();\n int r = sc.nextInt();\n int p = m + f;\n if (m == -1 && f == -1 && r == -1) {\n break;\n }\n if (m == -1 || f == -1) {\n System.out.printf(\"F\\n\");\n } else if (80 <= p) {\n System.out.printf(\"A\\n\");\n } else if (65 <= p) {\n System.out.printf(\"B\\n\");\n } else if (50 <= p || r >= 50) {\n System.out.printf(\"C\\n\");\n } else if (30 <= p) {\n System.out.printf(\"D\\n\");\n } else if (0 <= p) {\n System.out.printf(\"F\\n\");\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); int p = m + f; if (m == -1 && f == -1 && r == -1) { break; } if (m == -1 || f == -1) { System.out.printf("F\n"); } else if (80 <= p) { System.out.printf("A\n"); } else if (65 <= p) { System.out.printf("B\n"); } else if (50 <= p || r >= 50) { System.out.printf("C\n"); } else if (30 <= p) { System.out.printf("D\n"); } else if (0 <= p) { System.out.printf("F\n"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 13, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 16, 32 ], [ 32, 33 ], [ 33, 34 ], [ 35, 35 ], [ 35, 36 ], [ 35, 37 ], [ 35, 38 ], [ 33, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 16, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 43, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 60, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 60, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 73, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 86, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 86, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 99, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 106, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 99, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m + f + r <= -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t System.out.println(\"F\");\n\t\t\t\t} else if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t} else if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");\n\n\t\t\t}\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m + f + r <= -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t System.out.println(\"F\");\n\t\t\t\t} else if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t} else if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");\n\n\t\t\t}\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m + f + r <= -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t System.out.println(\"F\");\n\t\t\t\t} else if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t} else if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");\n\n\t\t\t}\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m + f + r <= -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t System.out.println(\"F\");\n\t\t\t\t} else if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t} else if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");\n\n\t\t\t}\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (sc.hasNextInt()) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m + f + r <= -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t System.out.println(\"F\");\n\t\t\t\t} else if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t} else if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");\n\n\t\t\t}", "sc.hasNextInt()", "sc.hasNextInt", "sc", "{\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m + f + r <= -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t System.out.println(\"F\");\n\t\t\t\t} else if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t} else if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");\n\n\t\t\t}", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if (m + f + r <= -3) {\n\t\t\t\tbreak;\n\t\t\t}", "m + f + r <= -3", "m + f + r", "m + f + r", "m", "f", "r", "-3", "3", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if (m == -1 || f == -1) {\n\t\t\t\t System.out.println(\"F\");\n\t\t\t\t} else if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t} else if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\t System.out.println(\"F\");\n\t\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t} else if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");", "m + f >= 80", "m + f", "m", "f", "80", "{\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");", "m + f >= 65", "m + f", "m", "f", "65", "{\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");", "m + f >= 50", "m + f", "m", "f", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");", "m + f >= 30", "m + f", "m", "f", "30", "{\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}", "if (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m + f + r <= -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t System.out.println(\"F\");\n\t\t\t\t} else if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t} else if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");\n\n\t\t\t}\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNextInt()) {\n\t\t\tint m = sc.nextInt();\n\t\t\tint f = sc.nextInt();\n\t\t\tint r = sc.nextInt();\n\t\t\tif (m + f + r <= -3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t System.out.println(\"F\");\n\t\t\t\t} else if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t} else if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t} else if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t} else if(m + f >= 30){\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}else System.out.println(\"F\");\n\n\t\t\t}\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); while (sc.hasNextInt()) { int m = sc.nextInt(); int f = sc.nextInt(); int r = sc.nextInt(); if (m + f + r <= -3) { break; } if (m == -1 || f == -1) { System.out.println("F"); } else if (m + f >= 80) { System.out.println("A"); } else if (m + f >= 65) { System.out.println("B"); } else if (m + f >= 50) { System.out.println("C"); } else if(m + f >= 30){ if (r >= 50) { System.out.println("C"); } else { System.out.println("D"); } }else System.out.println("F"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 30, 14, 2, 13, 17, 0, 13, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 126, 14 ], [ 126, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 26, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 26, 47 ], [ 47, 48 ], [ 26, 49 ], [ 49, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 51, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 49, 64 ], [ 26, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 65, 75 ], [ 75, 76 ], [ 75, 77 ], [ 65, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 78, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 85, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 92, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 104, 111 ], [ 111, 112 ], [ 111, 113 ], [ 99, 114 ], [ 114, 115 ], [ 114, 116 ], [ 26, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 15, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.lang.*;\nimport java.math.*;\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint m=stdIn.nextInt();\n\t\t\tint n=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint sum=m+n;\n\t\t\tString ans;\n\t\t\tif(m==-1&&n==-1&&r==-1)\n\t\t\t\tbreak;\n\t\t\tif(m==-1||n==-1)\n\t\t\t\tans=\"F\";\n\t\t\telse if(sum>=80)\n\t\t\t\tans=\"A\";\n\t\t\telse if(sum>=65)\n\t\t\t\tans=\"B\";\n\t\t\telse if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.lang.*;", "lang.*", "java", "import java.math.*;", "math.*", "java", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint m=stdIn.nextInt();\n\t\t\tint n=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint sum=m+n;\n\t\t\tString ans;\n\t\t\tif(m==-1&&n==-1&&r==-1)\n\t\t\t\tbreak;\n\t\t\tif(m==-1||n==-1)\n\t\t\t\tans=\"F\";\n\t\t\telse if(sum>=80)\n\t\t\t\tans=\"A\";\n\t\t\telse if(sum>=65)\n\t\t\t\tans=\"B\";\n\t\t\telse if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint m=stdIn.nextInt();\n\t\t\tint n=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint sum=m+n;\n\t\t\tString ans;\n\t\t\tif(m==-1&&n==-1&&r==-1)\n\t\t\t\tbreak;\n\t\t\tif(m==-1||n==-1)\n\t\t\t\tans=\"F\";\n\t\t\telse if(sum>=80)\n\t\t\t\tans=\"A\";\n\t\t\telse if(sum>=65)\n\t\t\t\tans=\"B\";\n\t\t\telse if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "main", "{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint m=stdIn.nextInt();\n\t\t\tint n=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint sum=m+n;\n\t\t\tString ans;\n\t\t\tif(m==-1&&n==-1&&r==-1)\n\t\t\t\tbreak;\n\t\t\tif(m==-1||n==-1)\n\t\t\t\tans=\"F\";\n\t\t\telse if(sum>=80)\n\t\t\t\tans=\"A\";\n\t\t\telse if(sum>=65)\n\t\t\t\tans=\"B\";\n\t\t\telse if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "Scanner stdIn=new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tint m=stdIn.nextInt();\n\t\t\tint n=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint sum=m+n;\n\t\t\tString ans;\n\t\t\tif(m==-1&&n==-1&&r==-1)\n\t\t\t\tbreak;\n\t\t\tif(m==-1||n==-1)\n\t\t\t\tans=\"F\";\n\t\t\telse if(sum>=80)\n\t\t\t\tans=\"A\";\n\t\t\telse if(sum>=65)\n\t\t\t\tans=\"B\";\n\t\t\telse if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";\n\t\t\tSystem.out.println(ans);\n\t\t}", "true", "{\n\t\t\tint m=stdIn.nextInt();\n\t\t\tint n=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint sum=m+n;\n\t\t\tString ans;\n\t\t\tif(m==-1&&n==-1&&r==-1)\n\t\t\t\tbreak;\n\t\t\tif(m==-1||n==-1)\n\t\t\t\tans=\"F\";\n\t\t\telse if(sum>=80)\n\t\t\t\tans=\"A\";\n\t\t\telse if(sum>=65)\n\t\t\t\tans=\"B\";\n\t\t\telse if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";\n\t\t\tSystem.out.println(ans);\n\t\t}", "int m=stdIn.nextInt();", "m", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int n=stdIn.nextInt();", "n", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int r=stdIn.nextInt();", "r", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int sum=m+n;", "sum", "m+n", "m", "n", "String ans;", "ans", "if(m==-1&&n==-1&&r==-1)\n\t\t\t\tbreak;", "m==-1&&n==-1&&r==-1", "m==-1&&n==-1&&r==-1", "m==-1", "m", "-1", "1", "n==-1", "n", "-1", "1", "r==-1", "r", "-1", "1", "break;", "if(m==-1||n==-1)\n\t\t\t\tans=\"F\";\n\t\t\telse if(sum>=80)\n\t\t\t\tans=\"A\";\n\t\t\telse if(sum>=65)\n\t\t\t\tans=\"B\";\n\t\t\telse if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";", "m==-1||n==-1", "m==-1", "m", "-1", "1", "n==-1", "n", "-1", "1", "ans=\"F\"", "ans", "\"F\"", "if(sum>=80)\n\t\t\t\tans=\"A\";\n\t\t\telse if(sum>=65)\n\t\t\t\tans=\"B\";\n\t\t\telse if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";", "sum>=80", "sum", "80", "ans=\"A\"", "ans", "\"A\"", "if(sum>=65)\n\t\t\t\tans=\"B\";\n\t\t\telse if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";", "sum>=65", "sum", "65", "ans=\"B\"", "ans", "\"B\"", "if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";", "sum>=50", "sum", "50", "ans=\"C\"", "ans", "\"C\"", "if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";", "sum>=30", "sum", "30", "{\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}", "if(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";", "r>=50", "r", "50", "ans=\"C\"", "ans", "\"C\"", "ans=\"D\"", "ans", "\"D\"", "ans=\"F\"", "ans", "\"F\"", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint m=stdIn.nextInt();\n\t\t\tint n=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint sum=m+n;\n\t\t\tString ans;\n\t\t\tif(m==-1&&n==-1&&r==-1)\n\t\t\t\tbreak;\n\t\t\tif(m==-1||n==-1)\n\t\t\t\tans=\"F\";\n\t\t\telse if(sum>=80)\n\t\t\t\tans=\"A\";\n\t\t\telse if(sum>=65)\n\t\t\t\tans=\"B\";\n\t\t\telse if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tint m=stdIn.nextInt();\n\t\t\tint n=stdIn.nextInt();\n\t\t\tint r=stdIn.nextInt();\n\t\t\tint sum=m+n;\n\t\t\tString ans;\n\t\t\tif(m==-1&&n==-1&&r==-1)\n\t\t\t\tbreak;\n\t\t\tif(m==-1||n==-1)\n\t\t\t\tans=\"F\";\n\t\t\telse if(sum>=80)\n\t\t\t\tans=\"A\";\n\t\t\telse if(sum>=65)\n\t\t\t\tans=\"B\";\n\t\t\telse if(sum>=50)\n\t\t\t\tans=\"C\";\n\t\t\telse if(sum>=30){\n\t\t\t\tif(r>=50)\n\t\t\t\t\tans=\"C\";\n\t\t\t\telse\n\t\t\t\t\tans=\"D\";\n\t\t\t}\n\t\t\telse\n\t\t\t\tans=\"F\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; import java.lang.*; import java.math.*; public class Main{ public static void main(String[] args) throws IOException{ Scanner stdIn=new Scanner(System.in); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); while(true){ int m=stdIn.nextInt(); int n=stdIn.nextInt(); int r=stdIn.nextInt(); int sum=m+n; String ans; if(m==-1&&n==-1&&r==-1) break; if(m==-1||n==-1) ans="F"; else if(sum>=80) ans="A"; else if(sum>=65) ans="B"; else if(sum>=50) ans="C"; else if(sum>=30){ if(r>=50) ans="C"; else ans="D"; } else ans="F"; System.out.println(ans); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 29, 4, 18, 18, 13, 13, 4, 18, 20, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 13, 13, 12, 13, 30, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 29, 17, 14, 2, 4, 13, 17, 30, 29, 17, 14, 2, 4, 13, 17, 30, 29, 17, 14, 2, 4, 13, 17, 30, 29, 17, 14, 2, 4, 13, 17, 30, 14, 2, 13, 17, 30, 29, 17, 30, 29, 17, 29, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 163, 5 ], [ 163, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 10, 16 ], [ 16, 17 ], [ 10, 18 ], [ 18, 19 ], [ 10, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 22, 38 ], [ 38, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 40, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 38, 53 ], [ 53, 54 ], [ 22, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 61, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 65, 69 ], [ 69, 70 ], [ 65, 71 ], [ 71, 72 ], [ 65, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 75, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 75, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 73, 91 ], [ 91, 92 ], [ 73, 93 ], [ 93, 94 ], [ 73, 95 ], [ 95, 96 ], [ 65, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 65, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 108, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 107, 117 ], [ 117, 118 ], [ 118, 119 ], [ 106, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 120, 125 ], [ 125, 126 ], [ 126, 127 ], [ 106, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 128, 133 ], [ 133, 134 ], [ 134, 135 ], [ 106, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 136, 141 ], [ 141, 142 ], [ 142, 143 ], [ 106, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 144, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 150, 157 ], [ 157, 158 ], [ 158, 159 ], [ 106, 160 ], [ 160, 161 ], [ 0, 162 ], [ 162, 163 ], [ 162, 164 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int m, f, r;\n while (true) {\n m = scanner.nextInt();\n f = scanner.nextInt();\n r = scanner.nextInt();\n if (m == -1 && f == -1 && r == -1) {\n return;\n }\n System.out.println(new Score(m, f, r).score());\n }\n }\n }\n}\n\nclass Score {\n private final int midtermExam;\n private final int finalExam;\n private final int reExam;\n\n\n Score(int midtermExam, int finalExam, int reExam) {\n this.midtermExam = midtermExam;\n this.finalExam = finalExam;\n this.reExam = reExam;\n }\n\n private int sumExamScore() {\n return midtermExam + finalExam;\n }\n\n String score() {\n if (midtermExam == -1 || finalExam == -1) {\n return \"F\";\n }\n if (sumExamScore() >= 80) {\n return \"A\";\n }\n if (sumExamScore() >= 65) {\n return \"B\";\n }\n if (sumExamScore() >= 50) {\n return \"C\";\n }\n if (sumExamScore() >= 30) {\n if (reExam >= 50) {\n return \"C\";\n } else {\n return \"D\";\n }\n }\n return \"F\";\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int m, f, r;\n while (true) {\n m = scanner.nextInt();\n f = scanner.nextInt();\n r = scanner.nextInt();\n if (m == -1 && f == -1 && r == -1) {\n return;\n }\n System.out.println(new Score(m, f, r).score());\n }\n }\n }\n}", "Main", "public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int m, f, r;\n while (true) {\n m = scanner.nextInt();\n f = scanner.nextInt();\n r = scanner.nextInt();\n if (m == -1 && f == -1 && r == -1) {\n return;\n }\n System.out.println(new Score(m, f, r).score());\n }\n }\n }", "main", "{\n try (Scanner scanner = new Scanner(System.in)) {\n int m, f, r;\n while (true) {\n m = scanner.nextInt();\n f = scanner.nextInt();\n r = scanner.nextInt();\n if (m == -1 && f == -1 && r == -1) {\n return;\n }\n System.out.println(new Score(m, f, r).score());\n }\n }\n }", "try (Scanner scanner = new Scanner(System.in)) {\n int m, f, r;\n while (true) {\n m = scanner.nextInt();\n f = scanner.nextInt();\n r = scanner.nextInt();\n if (m == -1 && f == -1 && r == -1) {\n return;\n }\n System.out.println(new Score(m, f, r).score());\n }\n }", "{\n int m, f, r;\n while (true) {\n m = scanner.nextInt();\n f = scanner.nextInt();\n r = scanner.nextInt();\n if (m == -1 && f == -1 && r == -1) {\n return;\n }\n System.out.println(new Score(m, f, r).score());\n }\n }", "Scanner scanner = new Scanner(System.in)", "Scanner scanner = new Scanner(System.in)", "new Scanner(System.in)", "int m", "m", "f", "f", "r;", "r", "while (true) {\n m = scanner.nextInt();\n f = scanner.nextInt();\n r = scanner.nextInt();\n if (m == -1 && f == -1 && r == -1) {\n return;\n }\n System.out.println(new Score(m, f, r).score());\n }", "true", "{\n m = scanner.nextInt();\n f = scanner.nextInt();\n r = scanner.nextInt();\n if (m == -1 && f == -1 && r == -1) {\n return;\n }\n System.out.println(new Score(m, f, r).score());\n }", "m = scanner.nextInt()", "m", "scanner.nextInt()", "scanner.nextInt", "scanner", "f = scanner.nextInt()", "f", "scanner.nextInt()", "scanner.nextInt", "scanner", "r = scanner.nextInt()", "r", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (m == -1 && f == -1 && r == -1) {\n return;\n }", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n return;\n }", "return;", "System.out.println(new Score(m, f, r).score())", "System.out.println", "System.out", "System", "System.out", "new Score(m, f, r).score()", "new Score(m, f, r).score", "new Score(m, f, r)", "String[] args", "args", "class Score {\n private final int midtermExam;\n private final int finalExam;\n private final int reExam;\n\n\n Score(int midtermExam, int finalExam, int reExam) {\n this.midtermExam = midtermExam;\n this.finalExam = finalExam;\n this.reExam = reExam;\n }\n\n private int sumExamScore() {\n return midtermExam + finalExam;\n }\n\n String score() {\n if (midtermExam == -1 || finalExam == -1) {\n return \"F\";\n }\n if (sumExamScore() >= 80) {\n return \"A\";\n }\n if (sumExamScore() >= 65) {\n return \"B\";\n }\n if (sumExamScore() >= 50) {\n return \"C\";\n }\n if (sumExamScore() >= 30) {\n if (reExam >= 50) {\n return \"C\";\n } else {\n return \"D\";\n }\n }\n return \"F\";\n }\n}", "Score", "private final int midtermExam;", "midtermExam", "private final int finalExam;", "finalExam", "private final int reExam;", "reExam", "Score(int midtermExam, int finalExam, int reExam) {\n this.midtermExam = midtermExam;\n this.finalExam = finalExam;\n this.reExam = reExam;\n }", "Score", "{\n this.midtermExam = midtermExam;\n this.finalExam = finalExam;\n this.reExam = reExam;\n }", "this.midtermExam = midtermExam", "this.midtermExam", "this", "this.midtermExam", "midtermExam", "this.finalExam = finalExam", "this.finalExam", "this", "this.finalExam", "finalExam", "this.reExam = reExam", "this.reExam", "this", "this.reExam", "reExam", "int midtermExam", "midtermExam", "int finalExam", "finalExam", "int reExam", "reExam", "private int sumExamScore() {\n return midtermExam + finalExam;\n }", "sumExamScore", "{\n return midtermExam + finalExam;\n }", "return midtermExam + finalExam;", "midtermExam + finalExam", "midtermExam", "finalExam", "String score() {\n if (midtermExam == -1 || finalExam == -1) {\n return \"F\";\n }\n if (sumExamScore() >= 80) {\n return \"A\";\n }\n if (sumExamScore() >= 65) {\n return \"B\";\n }\n if (sumExamScore() >= 50) {\n return \"C\";\n }\n if (sumExamScore() >= 30) {\n if (reExam >= 50) {\n return \"C\";\n } else {\n return \"D\";\n }\n }\n return \"F\";\n }", "score", "{\n if (midtermExam == -1 || finalExam == -1) {\n return \"F\";\n }\n if (sumExamScore() >= 80) {\n return \"A\";\n }\n if (sumExamScore() >= 65) {\n return \"B\";\n }\n if (sumExamScore() >= 50) {\n return \"C\";\n }\n if (sumExamScore() >= 30) {\n if (reExam >= 50) {\n return \"C\";\n } else {\n return \"D\";\n }\n }\n return \"F\";\n }", "if (midtermExam == -1 || finalExam == -1) {\n return \"F\";\n }", "midtermExam == -1 || finalExam == -1", "midtermExam == -1", "midtermExam", "-1", "1", "finalExam == -1", "finalExam", "-1", "1", "{\n return \"F\";\n }", "return \"F\";", "\"F\"", "if (sumExamScore() >= 80) {\n return \"A\";\n }", "sumExamScore() >= 80", "sumExamScore()", "sumExamScore", "80", "{\n return \"A\";\n }", "return \"A\";", "\"A\"", "if (sumExamScore() >= 65) {\n return \"B\";\n }", "sumExamScore() >= 65", "sumExamScore()", "sumExamScore", "65", "{\n return \"B\";\n }", "return \"B\";", "\"B\"", "if (sumExamScore() >= 50) {\n return \"C\";\n }", "sumExamScore() >= 50", "sumExamScore()", "sumExamScore", "50", "{\n return \"C\";\n }", "return \"C\";", "\"C\"", "if (sumExamScore() >= 30) {\n if (reExam >= 50) {\n return \"C\";\n } else {\n return \"D\";\n }\n }", "sumExamScore() >= 30", "sumExamScore()", "sumExamScore", "30", "{\n if (reExam >= 50) {\n return \"C\";\n } else {\n return \"D\";\n }\n }", "if (reExam >= 50) {\n return \"C\";\n } else {\n return \"D\";\n }", "reExam >= 50", "reExam", "50", "{\n return \"C\";\n }", "return \"C\";", "\"C\"", "{\n return \"D\";\n }", "return \"D\";", "\"D\"", "return \"F\";", "\"F\"", "public class Main {\n\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int m, f, r;\n while (true) {\n m = scanner.nextInt();\n f = scanner.nextInt();\n r = scanner.nextInt();\n if (m == -1 && f == -1 && r == -1) {\n return;\n }\n System.out.println(new Score(m, f, r).score());\n }\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int m, f, r;\n while (true) {\n m = scanner.nextInt();\n f = scanner.nextInt();\n r = scanner.nextInt();\n if (m == -1 && f == -1 && r == -1) {\n return;\n }\n System.out.println(new Score(m, f, r).score());\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { int m, f, r; while (true) { m = scanner.nextInt(); f = scanner.nextInt(); r = scanner.nextInt(); if (m == -1 && f == -1 && r == -1) { return; } System.out.println(new Score(m, f, r).score()); } } } } class Score { private final int midtermExam; private final int finalExam; private final int reExam; Score(int midtermExam, int finalExam, int reExam) { this.midtermExam = midtermExam; this.finalExam = finalExam; this.reExam = reExam; } private int sumExamScore() { return midtermExam + finalExam; } String score() { if (midtermExam == -1 || finalExam == -1) { return "F"; } if (sumExamScore() >= 80) { return "A"; } if (sumExamScore() >= 65) { return "B"; } if (sumExamScore() >= 50) { return "C"; } if (sumExamScore() >= 30) { if (reExam >= 50) { return "C"; } else { return "D"; } } return "F"; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 0, 18, 18, 13, 13, 17, 13, 0, 18, 18, 13, 13, 17, 13, 0, 18, 18, 13, 13, 17, 13, 40, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 14, 2, 2, 18, 18, 13, 13, 17, 40, 17, 2, 18, 18, 13, 13, 17, 40, 17, 30, 4, 18, 18, 13, 13, 17, 9, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 14, 2, 18, 18, 13, 13, 17, 17, 4, 18, 18, 13, 13, 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 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 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 ], [ 41, 42 ], [ 42, 43 ], [ 28, 44 ], [ 44, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 46, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 44, 59 ], [ 28, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 60, 66 ], [ 28, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 67, 73 ], [ 28, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 74, 80 ], [ 28, 81 ], [ 81, 82 ], [ 8, 83 ], [ 83, 84 ], [ 8, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 85, 93 ], [ 93, 94 ], [ 94, 95 ], [ 85, 96 ], [ 97, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 100, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 97, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 112, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 121, 127 ], [ 127, 128 ], [ 111, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 129, 136 ], [ 97, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 137, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 147, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 157, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 174, 178 ], [ 173, 179 ], [ 172, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 180, 185 ], [ 172, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 186, 191 ], [ 167, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 192, 197 ], [ 6, 198 ], [ 198, 199 ] ]
[ "import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n short[][] st = new short[50][3];\n short counter=0;\n short mid, last, add;\n while(true){\n mid = scanner.nextShort();\n last = scanner.nextShort();\n add = scanner.nextShort();\n if(mid == -1&&last == -1&&add == -1)break;\n st[counter][0] = mid;\n st[counter][1] = last;\n st[counter][2] = add;\n counter++;\n }\n int sum;\n for(int i = 0; i < counter; i++){\n sum = st[i][0]+st[i][1];\n if(st[i][0] == -1 || st[i][1] == -1){\n System.out.println(\"F\");\n continue;\n }\n if(sum >= 80)System.out.println(\"A\");\n else if(sum >= 65)System.out.println(\"B\");\n else if(sum >= 50)System.out.println(\"C\");\n else if(sum >= 30){\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n short[][] st = new short[50][3];\n short counter=0;\n short mid, last, add;\n while(true){\n mid = scanner.nextShort();\n last = scanner.nextShort();\n add = scanner.nextShort();\n if(mid == -1&&last == -1&&add == -1)break;\n st[counter][0] = mid;\n st[counter][1] = last;\n st[counter][2] = add;\n counter++;\n }\n int sum;\n for(int i = 0; i < counter; i++){\n sum = st[i][0]+st[i][1];\n if(st[i][0] == -1 || st[i][1] == -1){\n System.out.println(\"F\");\n continue;\n }\n if(sum >= 80)System.out.println(\"A\");\n else if(sum >= 65)System.out.println(\"B\");\n else if(sum >= 50)System.out.println(\"C\");\n else if(sum >= 30){\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n short[][] st = new short[50][3];\n short counter=0;\n short mid, last, add;\n while(true){\n mid = scanner.nextShort();\n last = scanner.nextShort();\n add = scanner.nextShort();\n if(mid == -1&&last == -1&&add == -1)break;\n st[counter][0] = mid;\n st[counter][1] = last;\n st[counter][2] = add;\n counter++;\n }\n int sum;\n for(int i = 0; i < counter; i++){\n sum = st[i][0]+st[i][1];\n if(st[i][0] == -1 || st[i][1] == -1){\n System.out.println(\"F\");\n continue;\n }\n if(sum >= 80)System.out.println(\"A\");\n else if(sum >= 65)System.out.println(\"B\");\n else if(sum >= 50)System.out.println(\"C\");\n else if(sum >= 30){\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n short[][] st = new short[50][3];\n short counter=0;\n short mid, last, add;\n while(true){\n mid = scanner.nextShort();\n last = scanner.nextShort();\n add = scanner.nextShort();\n if(mid == -1&&last == -1&&add == -1)break;\n st[counter][0] = mid;\n st[counter][1] = last;\n st[counter][2] = add;\n counter++;\n }\n int sum;\n for(int i = 0; i < counter; i++){\n sum = st[i][0]+st[i][1];\n if(st[i][0] == -1 || st[i][1] == -1){\n System.out.println(\"F\");\n continue;\n }\n if(sum >= 80)System.out.println(\"A\");\n else if(sum >= 65)System.out.println(\"B\");\n else if(sum >= 50)System.out.println(\"C\");\n else if(sum >= 30){\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "short[][] st = new short[50][3];", "st", "new short[50][3]", "50", "3", "short counter=0;", "counter", "0", "short mid", "mid", "last", "last", "add;", "add", "while(true){\n mid = scanner.nextShort();\n last = scanner.nextShort();\n add = scanner.nextShort();\n if(mid == -1&&last == -1&&add == -1)break;\n st[counter][0] = mid;\n st[counter][1] = last;\n st[counter][2] = add;\n counter++;\n }", "true", "{\n mid = scanner.nextShort();\n last = scanner.nextShort();\n add = scanner.nextShort();\n if(mid == -1&&last == -1&&add == -1)break;\n st[counter][0] = mid;\n st[counter][1] = last;\n st[counter][2] = add;\n counter++;\n }", "mid = scanner.nextShort()", "mid", "scanner.nextShort()", "scanner.nextShort", "scanner", "last = scanner.nextShort()", "last", "scanner.nextShort()", "scanner.nextShort", "scanner", "add = scanner.nextShort()", "add", "scanner.nextShort()", "scanner.nextShort", "scanner", "if(mid == -1&&last == -1&&add == -1)break;", "mid == -1&&last == -1&&add == -1", "mid == -1&&last == -1&&add == -1", "mid == -1", "mid", "-1", "1", "last == -1", "last", "-1", "1", "add == -1", "add", "-1", "1", "break;", "st[counter][0] = mid", "st[counter][0]", "st[counter]", "st", "counter", "0", "mid", "st[counter][1] = last", "st[counter][1]", "st[counter]", "st", "counter", "1", "last", "st[counter][2] = add", "st[counter][2]", "st[counter]", "st", "counter", "2", "add", "counter++", "counter", "int sum;", "sum", "for(int i = 0; i < counter; i++){\n sum = st[i][0]+st[i][1];\n if(st[i][0] == -1 || st[i][1] == -1){\n System.out.println(\"F\");\n continue;\n }\n if(sum >= 80)System.out.println(\"A\");\n else if(sum >= 65)System.out.println(\"B\");\n else if(sum >= 50)System.out.println(\"C\");\n else if(sum >= 30){\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < counter", "i", "counter", "i++", "i++", "i", "{\n sum = st[i][0]+st[i][1];\n if(st[i][0] == -1 || st[i][1] == -1){\n System.out.println(\"F\");\n continue;\n }\n if(sum >= 80)System.out.println(\"A\");\n else if(sum >= 65)System.out.println(\"B\");\n else if(sum >= 50)System.out.println(\"C\");\n else if(sum >= 30){\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }", "{\n sum = st[i][0]+st[i][1];\n if(st[i][0] == -1 || st[i][1] == -1){\n System.out.println(\"F\");\n continue;\n }\n if(sum >= 80)System.out.println(\"A\");\n else if(sum >= 65)System.out.println(\"B\");\n else if(sum >= 50)System.out.println(\"C\");\n else if(sum >= 30){\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");\n }", "sum = st[i][0]+st[i][1]", "sum", "st[i][0]+st[i][1]", "st[i][0]", "st[i]", "st", "i", "0", "st[i][1]", "st[i]", "st", "i", "1", "if(st[i][0] == -1 || st[i][1] == -1){\n System.out.println(\"F\");\n continue;\n }", "st[i][0] == -1 || st[i][1] == -1", "st[i][0] == -1", "st[i][0]", "st[i]", "st", "i", "0", "-1", "1", "st[i][1] == -1", "st[i][1]", "st[i]", "st", "i", "1", "-1", "1", "{\n System.out.println(\"F\");\n continue;\n }", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "continue;", "if(sum >= 80)System.out.println(\"A\");\n else if(sum >= 65)System.out.println(\"B\");\n else if(sum >= 50)System.out.println(\"C\");\n else if(sum >= 30){\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");", "sum >= 80", "sum", "80", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(sum >= 65)System.out.println(\"B\");\n else if(sum >= 50)System.out.println(\"C\");\n else if(sum >= 30){\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");", "sum >= 65", "sum", "65", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(sum >= 50)System.out.println(\"C\");\n else if(sum >= 30){\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");", "sum >= 50", "sum", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(sum >= 30){\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }\n else System.out.println(\"F\");", "sum >= 30", "sum", "30", "{\n if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");\n }", "if(st[i][2] >= 50)System.out.println(\"C\");\n else System.out.println(\"D\");", "st[i][2] >= 50", "st[i][2]", "st[i]", "st", "i", "2", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); short[][] st = new short[50][3]; short counter=0; short mid, last, add; while(true){ mid = scanner.nextShort(); last = scanner.nextShort(); add = scanner.nextShort(); if(mid == -1&&last == -1&&add == -1)break; st[counter][0] = mid; st[counter][1] = last; st[counter][2] = add; counter++; } int sum; for(int i = 0; i < counter; i++){ sum = st[i][0]+st[i][1]; if(st[i][0] == -1 || st[i][1] == -1){ System.out.println("F"); continue; } if(sum >= 80)System.out.println("A"); else if(sum >= 65)System.out.println("B"); else if(sum >= 50)System.out.println("C"); else if(sum >= 30){ if(st[i][2] >= 50)System.out.println("C"); else System.out.println("D"); } else System.out.println("F"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 41, 13, 2, 13, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 154, 11 ], [ 154, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 37, 39 ], [ 20, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 20, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 20, 56 ], [ 56, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 58, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 56, 71 ], [ 71, 72 ], [ 20, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 20, 78 ], [ 78, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 80, 89 ], [ 89, 90 ], [ 89, 91 ], [ 78, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 78, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 99, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 110, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 131, 133 ], [ 126, 134 ], [ 134, 135 ], [ 134, 136 ], [ 125, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 125, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 12, 151 ], [ 151, 152 ], [ 0, 153 ], [ 153, 154 ], [ 153, 155 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t// 3?????????????????°??\\???\n\t\twhile (true) {\n\t\t\tString input_line = input.readLine();\n\t\t\tString[] All_test_score = input_line.split(\" \");\n\t\t\t// ??????????????????\n\t\t\tint interm_test_m = Integer.parseInt(All_test_score[0]);\n\t\t\t// ??????????????????\n\t\t\tint end_test_f = Integer.parseInt(All_test_score[1]);\n\t\t\t// ???????????????\n\t\t\tint return_test_r = Integer.parseInt(All_test_score[2]);\n\t\t\t// ???????????????????????????????¨?\n\t\t\tif (interm_test_m == -1 && end_test_f == -1 && return_test_r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint total_m_f = interm_test_m + end_test_f;\n\n\t\t\tif (end_test_f==-1 || interm_test_m==-1||total_m_f<30 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (total_m_f >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (total_m_f >= 65 && total_m_f < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}\n\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t// 3?????????????????°??\\???\n\t\twhile (true) {\n\t\t\tString input_line = input.readLine();\n\t\t\tString[] All_test_score = input_line.split(\" \");\n\t\t\t// ??????????????????\n\t\t\tint interm_test_m = Integer.parseInt(All_test_score[0]);\n\t\t\t// ??????????????????\n\t\t\tint end_test_f = Integer.parseInt(All_test_score[1]);\n\t\t\t// ???????????????\n\t\t\tint return_test_r = Integer.parseInt(All_test_score[2]);\n\t\t\t// ???????????????????????????????¨?\n\t\t\tif (interm_test_m == -1 && end_test_f == -1 && return_test_r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint total_m_f = interm_test_m + end_test_f;\n\n\t\t\tif (end_test_f==-1 || interm_test_m==-1||total_m_f<30 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (total_m_f >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (total_m_f >= 65 && total_m_f < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t// 3?????????????????°??\\???\n\t\twhile (true) {\n\t\t\tString input_line = input.readLine();\n\t\t\tString[] All_test_score = input_line.split(\" \");\n\t\t\t// ??????????????????\n\t\t\tint interm_test_m = Integer.parseInt(All_test_score[0]);\n\t\t\t// ??????????????????\n\t\t\tint end_test_f = Integer.parseInt(All_test_score[1]);\n\t\t\t// ???????????????\n\t\t\tint return_test_r = Integer.parseInt(All_test_score[2]);\n\t\t\t// ???????????????????????????????¨?\n\t\t\tif (interm_test_m == -1 && end_test_f == -1 && return_test_r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint total_m_f = interm_test_m + end_test_f;\n\n\t\t\tif (end_test_f==-1 || interm_test_m==-1||total_m_f<30 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (total_m_f >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (total_m_f >= 65 && total_m_f < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}\n\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t// 3?????????????????°??\\???\n\t\twhile (true) {\n\t\t\tString input_line = input.readLine();\n\t\t\tString[] All_test_score = input_line.split(\" \");\n\t\t\t// ??????????????????\n\t\t\tint interm_test_m = Integer.parseInt(All_test_score[0]);\n\t\t\t// ??????????????????\n\t\t\tint end_test_f = Integer.parseInt(All_test_score[1]);\n\t\t\t// ???????????????\n\t\t\tint return_test_r = Integer.parseInt(All_test_score[2]);\n\t\t\t// ???????????????????????????????¨?\n\t\t\tif (interm_test_m == -1 && end_test_f == -1 && return_test_r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint total_m_f = interm_test_m + end_test_f;\n\n\t\t\tif (end_test_f==-1 || interm_test_m==-1||total_m_f<30 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (total_m_f >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (total_m_f >= 65 && total_m_f < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}\n\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t\tString input_line = input.readLine();\n\t\t\tString[] All_test_score = input_line.split(\" \");\n\t\t\t// ??????????????????\n\t\t\tint interm_test_m = Integer.parseInt(All_test_score[0]);\n\t\t\t// ??????????????????\n\t\t\tint end_test_f = Integer.parseInt(All_test_score[1]);\n\t\t\t// ???????????????\n\t\t\tint return_test_r = Integer.parseInt(All_test_score[2]);\n\t\t\t// ???????????????????????????????¨?\n\t\t\tif (interm_test_m == -1 && end_test_f == -1 && return_test_r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint total_m_f = interm_test_m + end_test_f;\n\n\t\t\tif (end_test_f==-1 || interm_test_m==-1||total_m_f<30 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (total_m_f >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (total_m_f >= 65 && total_m_f < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString input_line = input.readLine();\n\t\t\tString[] All_test_score = input_line.split(\" \");\n\t\t\t// ??????????????????\n\t\t\tint interm_test_m = Integer.parseInt(All_test_score[0]);\n\t\t\t// ??????????????????\n\t\t\tint end_test_f = Integer.parseInt(All_test_score[1]);\n\t\t\t// ???????????????\n\t\t\tint return_test_r = Integer.parseInt(All_test_score[2]);\n\t\t\t// ???????????????????????????????¨?\n\t\t\tif (interm_test_m == -1 && end_test_f == -1 && return_test_r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint total_m_f = interm_test_m + end_test_f;\n\n\t\t\tif (end_test_f==-1 || interm_test_m==-1||total_m_f<30 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (total_m_f >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (total_m_f >= 65 && total_m_f < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}", "String input_line = input.readLine();", "input_line", "input.readLine()", "input.readLine", "input", "String[] All_test_score = input_line.split(\" \");", "All_test_score", "input_line.split(\" \")", "input_line.split", "input_line", "\" \"", "int interm_test_m = Integer.parseInt(All_test_score[0]);", "interm_test_m", "Integer.parseInt(All_test_score[0])", "Integer.parseInt", "Integer", "All_test_score[0]", "All_test_score", "0", "int end_test_f = Integer.parseInt(All_test_score[1]);", "end_test_f", "Integer.parseInt(All_test_score[1])", "Integer.parseInt", "Integer", "All_test_score[1]", "All_test_score", "1", "int return_test_r = Integer.parseInt(All_test_score[2]);", "return_test_r", "Integer.parseInt(All_test_score[2])", "Integer.parseInt", "Integer", "All_test_score[2]", "All_test_score", "2", "if (interm_test_m == -1 && end_test_f == -1 && return_test_r == -1) {\n\t\t\t\tbreak;\n\t\t\t}", "interm_test_m == -1 && end_test_f == -1 && return_test_r == -1", "interm_test_m == -1 && end_test_f == -1 && return_test_r == -1", "interm_test_m == -1", "interm_test_m", "-1", "1", "end_test_f == -1", "end_test_f", "-1", "1", "return_test_r == -1", "return_test_r", "-1", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int total_m_f = interm_test_m + end_test_f;", "total_m_f", "interm_test_m + end_test_f", "interm_test_m", "end_test_f", "if (end_test_f==-1 || interm_test_m==-1||total_m_f<30 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (total_m_f >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (total_m_f >= 65 && total_m_f < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "end_test_f==-1 || interm_test_m==-1||total_m_f<30", "end_test_f==-1 || interm_test_m==-1||total_m_f<30", "end_test_f==-1", "end_test_f", "-1", "1", "interm_test_m==-1", "interm_test_m", "-1", "1", "total_m_f<30", "total_m_f", "30", "{\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (total_m_f >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (total_m_f >= 65 && total_m_f < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "total_m_f >= 80", "total_m_f", "80", "{\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (total_m_f >= 65 && total_m_f < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "total_m_f >= 65 && total_m_f < 80", "total_m_f >= 65", "total_m_f", "65", "total_m_f < 80", "total_m_f", "80", "{\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50", "total_m_f >= 50 && total_m_f < 65", "total_m_f >= 50", "total_m_f", "50", "total_m_f < 65", "total_m_f", "65", "return_test_r >= 50", "return_test_r", "50", "{\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t// 3?????????????????°??\\???\n\t\twhile (true) {\n\t\t\tString input_line = input.readLine();\n\t\t\tString[] All_test_score = input_line.split(\" \");\n\t\t\t// ??????????????????\n\t\t\tint interm_test_m = Integer.parseInt(All_test_score[0]);\n\t\t\t// ??????????????????\n\t\t\tint end_test_f = Integer.parseInt(All_test_score[1]);\n\t\t\t// ???????????????\n\t\t\tint return_test_r = Integer.parseInt(All_test_score[2]);\n\t\t\t// ???????????????????????????????¨?\n\t\t\tif (interm_test_m == -1 && end_test_f == -1 && return_test_r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint total_m_f = interm_test_m + end_test_f;\n\n\t\t\tif (end_test_f==-1 || interm_test_m==-1||total_m_f<30 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (total_m_f >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (total_m_f >= 65 && total_m_f < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t// 3?????????????????°??\\???\n\t\twhile (true) {\n\t\t\tString input_line = input.readLine();\n\t\t\tString[] All_test_score = input_line.split(\" \");\n\t\t\t// ??????????????????\n\t\t\tint interm_test_m = Integer.parseInt(All_test_score[0]);\n\t\t\t// ??????????????????\n\t\t\tint end_test_f = Integer.parseInt(All_test_score[1]);\n\t\t\t// ???????????????\n\t\t\tint return_test_r = Integer.parseInt(All_test_score[2]);\n\t\t\t// ???????????????????????????????¨?\n\t\t\tif (interm_test_m == -1 && end_test_f == -1 && return_test_r == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint total_m_f = interm_test_m + end_test_f;\n\n\t\t\tif (end_test_f==-1 || interm_test_m==-1||total_m_f<30 ) {\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t} else if (total_m_f >= 80) {\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\t} else if (total_m_f >= 65 && total_m_f < 80) {\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\t} else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) {\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t}\n\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); // 3?????????????????°??\??? while (true) { String input_line = input.readLine(); String[] All_test_score = input_line.split(" "); // ?????????????????? int interm_test_m = Integer.parseInt(All_test_score[0]); // ?????????????????? int end_test_f = Integer.parseInt(All_test_score[1]); // ??????????????? int return_test_r = Integer.parseInt(All_test_score[2]); // ???????????????????????????????¨? if (interm_test_m == -1 && end_test_f == -1 && return_test_r == -1) { break; } int total_m_f = interm_test_m + end_test_f; if (end_test_f==-1 || interm_test_m==-1||total_m_f<30 ) { System.out.println("F"); } else if (total_m_f >= 80) { System.out.println("A"); } else if (total_m_f >= 65 && total_m_f < 80) { System.out.println("B"); } else if (total_m_f >= 50 && total_m_f < 65 || return_test_r >= 50) { System.out.println("C"); } else { System.out.println("D"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 14, 2, 2, 4, 18, 18, 13, 17, 17, 4, 18, 18, 13, 17, 17, 4, 18, 18, 13, 17, 17, 3, 14, 2, 4, 18, 18, 13, 17, 17, 4, 18, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 18, 13, 17, 4, 18, 13, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 18, 13, 17, 4, 18, 13, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 18, 13, 17, 4, 18, 13, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 18, 13, 17, 4, 18, 13, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 18, 13, 17, 4, 18, 13, 18, 13, 17, 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 ], [ 197, 8 ], [ 197, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 17, 26 ], [ 26, 27 ], [ 28, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 28, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 28, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 26, 47 ], [ 17, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 49, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 48, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 48, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 70, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 69, 83 ], [ 68, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 68, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 92, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 91, 105 ], [ 90, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 90, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 118, 120 ], [ 114, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 124, 125 ], [ 124, 126 ], [ 113, 127 ], [ 112, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 112, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 140, 141 ], [ 140, 142 ], [ 136, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 146, 147 ], [ 146, 148 ], [ 135, 149 ], [ 134, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 153, 156 ], [ 156, 157 ], [ 156, 158 ], [ 152, 159 ], [ 151, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 151, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 134, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 178, 179 ], [ 178, 180 ], [ 174, 181 ], [ 181, 182 ], [ 182, 183 ], [ 181, 184 ], [ 184, 185 ], [ 184, 186 ], [ 173, 187 ], [ 172, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 188, 193 ], [ 9, 194 ], [ 194, 195 ], [ 0, 196 ], [ 196, 197 ], [ 196, 198 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n String[] tests=reader.readLine().split(\" \");\n \n if(tests[0].equals(\"-1\")&&tests[1].equals(\"-1\")&&tests[2].equals(\"-1\")) break;\n \n if(tests[0].equals(\"-1\")||tests[1].equals(\"-1\")) System.out.println(\"F\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80) System.out.println(\"A\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println(\"B\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n String[] tests=reader.readLine().split(\" \");\n \n if(tests[0].equals(\"-1\")&&tests[1].equals(\"-1\")&&tests[2].equals(\"-1\")) break;\n \n if(tests[0].equals(\"-1\")||tests[1].equals(\"-1\")) System.out.println(\"F\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80) System.out.println(\"A\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println(\"B\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n String[] tests=reader.readLine().split(\" \");\n \n if(tests[0].equals(\"-1\")&&tests[1].equals(\"-1\")&&tests[2].equals(\"-1\")) break;\n \n if(tests[0].equals(\"-1\")||tests[1].equals(\"-1\")) System.out.println(\"F\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80) System.out.println(\"A\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println(\"B\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");\n }\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n String[] tests=reader.readLine().split(\" \");\n \n if(tests[0].equals(\"-1\")&&tests[1].equals(\"-1\")&&tests[2].equals(\"-1\")) break;\n \n if(tests[0].equals(\"-1\")||tests[1].equals(\"-1\")) System.out.println(\"F\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80) System.out.println(\"A\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println(\"B\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");\n }\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n String[] tests=reader.readLine().split(\" \");\n \n if(tests[0].equals(\"-1\")&&tests[1].equals(\"-1\")&&tests[2].equals(\"-1\")) break;\n \n if(tests[0].equals(\"-1\")||tests[1].equals(\"-1\")) System.out.println(\"F\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80) System.out.println(\"A\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println(\"B\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");\n }", "true", "{\n String[] tests=reader.readLine().split(\" \");\n \n if(tests[0].equals(\"-1\")&&tests[1].equals(\"-1\")&&tests[2].equals(\"-1\")) break;\n \n if(tests[0].equals(\"-1\")||tests[1].equals(\"-1\")) System.out.println(\"F\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80) System.out.println(\"A\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println(\"B\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");\n }", "String[] tests=reader.readLine().split(\" \");", "tests", "reader.readLine().split(\" \")", "reader.readLine().split", "reader.readLine()", "reader.readLine", "reader", "\" \"", "if(tests[0].equals(\"-1\")&&tests[1].equals(\"-1\")&&tests[2].equals(\"-1\")) break;", "tests[0].equals(\"-1\")&&tests[1].equals(\"-1\")&&tests[2].equals(\"-1\")", "tests[0].equals(\"-1\")&&tests[1].equals(\"-1\")&&tests[2].equals(\"-1\")", "tests[0].equals(\"-1\")", "tests[0].equals", "tests[0]", "tests", "0", "\"-1\"", "tests[1].equals(\"-1\")", "tests[1].equals", "tests[1]", "tests", "1", "\"-1\"", "tests[2].equals(\"-1\")", "tests[2].equals", "tests[2]", "tests", "2", "\"-1\"", "break;", "if(tests[0].equals(\"-1\")||tests[1].equals(\"-1\")) System.out.println(\"F\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80) System.out.println(\"A\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println(\"B\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");", "tests[0].equals(\"-1\")||tests[1].equals(\"-1\")", "tests[0].equals(\"-1\")", "tests[0].equals", "tests[0]", "tests", "0", "\"-1\"", "tests[1].equals(\"-1\")", "tests[1].equals", "tests[1]", "tests", "1", "\"-1\"", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80) System.out.println(\"A\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println(\"B\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");", "Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80", "Integer.parseInt(tests[0])+Integer.parseInt(tests[1])", "Integer.parseInt(tests[0])", "Integer.parseInt", "Integer", "tests[0]", "tests", "0", "Integer.parseInt(tests[1])", "Integer.parseInt", "Integer", "tests[1]", "tests", "1", "80", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println(\"B\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");", "Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65", "Integer.parseInt(tests[0])+Integer.parseInt(tests[1])", "Integer.parseInt(tests[0])", "Integer.parseInt", "Integer", "tests[0]", "tests", "0", "Integer.parseInt(tests[1])", "Integer.parseInt", "Integer", "tests[1]", "tests", "1", "65", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");", "Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50", "Integer.parseInt(tests[0])+Integer.parseInt(tests[1])", "Integer.parseInt(tests[0])", "Integer.parseInt", "Integer", "tests[0]", "tests", "0", "Integer.parseInt(tests[1])", "Integer.parseInt", "Integer", "tests[1]", "tests", "1", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");", "Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30", "Integer.parseInt(tests[0])+Integer.parseInt(tests[1])", "Integer.parseInt(tests[0])", "Integer.parseInt", "Integer", "tests[0]", "tests", "0", "Integer.parseInt(tests[1])", "Integer.parseInt", "Integer", "tests[1]", "tests", "1", "30", "{\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n }", "if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");", "Integer.parseInt(tests[2])>=50", "Integer.parseInt(tests[2])", "Integer.parseInt", "Integer", "tests[2]", "tests", "2", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");", "Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30", "Integer.parseInt(tests[0])+Integer.parseInt(tests[1])", "Integer.parseInt(tests[0])", "Integer.parseInt", "Integer", "tests[0]", "tests", "0", "Integer.parseInt(tests[1])", "Integer.parseInt", "Integer", "tests[1]", "tests", "1", "30", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n String[] tests=reader.readLine().split(\" \");\n \n if(tests[0].equals(\"-1\")&&tests[1].equals(\"-1\")&&tests[2].equals(\"-1\")) break;\n \n if(tests[0].equals(\"-1\")||tests[1].equals(\"-1\")) System.out.println(\"F\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80) System.out.println(\"A\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println(\"B\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n while(true){\n String[] tests=reader.readLine().split(\" \");\n \n if(tests[0].equals(\"-1\")&&tests[1].equals(\"-1\")&&tests[2].equals(\"-1\")) break;\n \n if(tests[0].equals(\"-1\")||tests[1].equals(\"-1\")) System.out.println(\"F\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80) System.out.println(\"A\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println(\"B\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println(\"C\");\n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){\n if(Integer.parseInt(tests[2])>=50) System.out.println(\"C\");\n else System.out.println(\"D\");\n } \n else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println(\"F\");\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); while(true){ String[] tests=reader.readLine().split(" "); if(tests[0].equals("-1")&&tests[1].equals("-1")&&tests[2].equals("-1")) break; if(tests[0].equals("-1")||tests[1].equals("-1")) System.out.println("F"); else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=80) System.out.println("A"); else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=65) System.out.println("B"); else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=50) System.out.println("C"); else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])>=30){ if(Integer.parseInt(tests[2])>=50) System.out.println("C"); else System.out.println("D"); } else if(Integer.parseInt(tests[0])+Integer.parseInt(tests[1])<30) System.out.println("F"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 38, 5, 13, 30, 4, 18, 13, 30, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 29, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 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 ], [ 171, 8 ], [ 171, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 17, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 33, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 33, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 33, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 33, 64 ], [ 64, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 66, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 64, 79 ], [ 33, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 80, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 97, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 110, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 110, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 123, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 136, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 143, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 136, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 9, 168 ], [ 168, 169 ], [ 0, 170 ], [ 170, 171 ], [ 170, 172 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\n\t\t\t\tint m = Integer.valueOf(strings[0]);\n\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\tint r = Integer.valueOf(strings[2]);\n\n\t\t\t\tif (m == -1 && f == -1 && r == -1) return;\n\t\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\n\t\t\t\tint m = Integer.valueOf(strings[0]);\n\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\tint r = Integer.valueOf(strings[2]);\n\n\t\t\t\tif (m == -1 && f == -1 && r == -1) return;\n\t\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\n\t\t\t\tint m = Integer.valueOf(strings[0]);\n\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\tint r = Integer.valueOf(strings[2]);\n\n\t\t\t\tif (m == -1 && f == -1 && r == -1) return;\n\t\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\n\t\t\t\tint m = Integer.valueOf(strings[0]);\n\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\tint r = Integer.valueOf(strings[2]);\n\n\t\t\t\tif (m == -1 && f == -1 && r == -1) return;\n\t\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String buffer;", "buffer", "try {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\n\t\t\t\tint m = Integer.valueOf(strings[0]);\n\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\tint r = Integer.valueOf(strings[2]);\n\n\t\t\t\tif (m == -1 && f == -1 && r == -1) return;\n\t\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}", "catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}", "Exception ex", "{\n\t\t\tex.printStackTrace();\n\t\t}", "ex.printStackTrace()", "ex.printStackTrace", "ex", "{\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\n\t\t\t\tint m = Integer.valueOf(strings[0]);\n\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\tint r = Integer.valueOf(strings[2]);\n\n\t\t\t\tif (m == -1 && f == -1 && r == -1) return;\n\t\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "while ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\n\t\t\t\tint m = Integer.valueOf(strings[0]);\n\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\tint r = Integer.valueOf(strings[2]);\n\n\t\t\t\tif (m == -1 && f == -1 && r == -1) return;\n\t\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}", "(buffer = reader.readLine()) != null", "(buffer = reader.readLine())", "buffer", "reader.readLine()", "reader.readLine", "reader", "null", "{\n\t\t\t\tString[] strings = buffer.split(\" \");\n\n\t\t\t\tint m = Integer.valueOf(strings[0]);\n\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\tint r = Integer.valueOf(strings[2]);\n\n\t\t\t\tif (m == -1 && f == -1 && r == -1) return;\n\t\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}", "String[] strings = buffer.split(\" \");", "strings", "buffer.split(\" \")", "buffer.split", "buffer", "\" \"", "int m = Integer.valueOf(strings[0]);", "m", "Integer.valueOf(strings[0])", "Integer.valueOf", "Integer", "strings[0]", "strings", "0", "int f = Integer.valueOf(strings[1]);", "f", "Integer.valueOf(strings[1])", "Integer.valueOf", "Integer", "strings[1]", "strings", "1", "int r = Integer.valueOf(strings[2]);", "r", "Integer.valueOf(strings[2])", "Integer.valueOf", "Integer", "strings[2]", "strings", "2", "if (m == -1 && f == -1 && r == -1) return;", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "return;", "if (m == -1 || f == -1) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m + f >= 80", "m + f", "m", "f", "80", "{\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m + f >= 65", "m + f", "m", "f", "65", "{\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m + f >= 50", "m + f", "m", "f", "50", "{\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "m + f >= 30", "m + f", "m", "f", "30", "{\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}", "if (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "r >= 50", "r", "50", "{\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "{\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "{\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\n\t\t\t\tint m = Integer.valueOf(strings[0]);\n\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\tint r = Integer.valueOf(strings[2]);\n\n\t\t\t\tif (m == -1 && f == -1 && r == -1) return;\n\t\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tString[] strings = buffer.split(\" \");\n\n\t\t\t\tint m = Integer.valueOf(strings[0]);\n\t\t\t\tint f = Integer.valueOf(strings[1]);\n\t\t\t\tint r = Integer.valueOf(strings[2]);\n\n\t\t\t\tif (m == -1 && f == -1 && r == -1) return;\n\t\t\t\tif (m == -1 || f == -1) {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 80) {\n\t\t\t\t\tSystem.out.println(\"A\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 65) {\n\t\t\t\t\tSystem.out.println(\"B\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 50) {\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t}\n\t\t\t\telse if (m + f >= 30) {\n\t\t\t\t\tif (r >= 50) {\n\t\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"F\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String buffer; try { while ((buffer = reader.readLine()) != null) { String[] strings = buffer.split(" "); int m = Integer.valueOf(strings[0]); int f = Integer.valueOf(strings[1]); int r = Integer.valueOf(strings[2]); if (m == -1 && f == -1 && r == -1) return; if (m == -1 || f == -1) { System.out.println("F"); } else if (m + f >= 80) { System.out.println("A"); } else if (m + f >= 65) { System.out.println("B"); } else if (m + f >= 50) { System.out.println("C"); } else if (m + f >= 30) { if (r >= 50) { System.out.println("C"); } else { System.out.println("D"); } } else { System.out.println("F"); } } } catch (Exception ex) { ex.printStackTrace(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 38, 5, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 20, 41, 13, 17, 41, 13, 17, 42, 40, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 0, 13, 2, 13, 13, 0, 13, 2, 2, 13, 40, 17, 2, 13, 40, 17, 14, 2, 40, 13, 2, 17, 13, 30, 4, 18, 13, 17, 14, 2, 40, 13, 2, 17, 13, 30, 4, 18, 13, 17, 14, 2, 40, 13, 2, 2, 17, 13, 2, 2, 13, 17, 2, 17, 13, 30, 4, 18, 13, 17, 14, 2, 40, 13, 2, 17, 13, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 28, 13, 13, 30, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 233, 17 ], [ 233, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 24, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 24, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 45, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 45, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 45, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 45, 81 ], [ 81, 82 ], [ 81, 83 ], [ 45, 84 ], [ 84, 85 ], [ 84, 86 ], [ 45, 87 ], [ 87, 88 ], [ 87, 89 ], [ 45, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 93, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 92, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 90, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 106, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 114, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 106, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 127, 128 ], [ 127, 129 ], [ 123, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 123, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 139, 140 ], [ 139, 141 ], [ 135, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 135, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 159, 161 ], [ 147, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 147, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 171, 172 ], [ 171, 173 ], [ 167, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 167, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 180, 183 ], [ 106, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 106, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 192, 193 ], [ 191, 194 ], [ 106, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 198, 199 ], [ 197, 200 ], [ 200, 201 ], [ 200, 202 ], [ 106, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 206, 207 ], [ 205, 208 ], [ 208, 209 ], [ 208, 210 ], [ 106, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 214, 215 ], [ 213, 216 ], [ 216, 217 ], [ 216, 218 ], [ 45, 219 ], [ 219, 220 ], [ 219, 221 ], [ 219, 222 ], [ 223, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 224, 229 ], [ 18, 230 ], [ 230, 231 ], [ 0, 232 ], [ 232, 233 ], [ 232, 234 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\t\t\tint m = Integer.parseInt(strArr[0]);\n\t\t\tint f = Integer.parseInt(strArr[1]);\n\t\t\tint r = Integer.parseInt(strArr[2]);\n\n\t\t\tList<String> scores = new ArrayList<String>();\n\t\t\tint sum = 0;\n\t\t\tboolean yasumi=false;\n\t\t\twhile (!( m==-1 && f==-1 && r==-1)) {\n\n\t\t\t\tsum = m+f;\n\t\t\t\tyasumi = m==-1 || f==-1;\n\n\t\t\t\tif(!yasumi && 80<=sum){\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}else if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}\n\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tm = Integer.parseInt(strArr[0]);\n\t\t\t\tf = Integer.parseInt(strArr[1]);\n\t\t\t\tr = Integer.parseInt(strArr[2]);\n\n\t\t\t\t;\n\t\t\t}\n\n\t\t\tfor(String s : scores){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\t\t\tint m = Integer.parseInt(strArr[0]);\n\t\t\tint f = Integer.parseInt(strArr[1]);\n\t\t\tint r = Integer.parseInt(strArr[2]);\n\n\t\t\tList<String> scores = new ArrayList<String>();\n\t\t\tint sum = 0;\n\t\t\tboolean yasumi=false;\n\t\t\twhile (!( m==-1 && f==-1 && r==-1)) {\n\n\t\t\t\tsum = m+f;\n\t\t\t\tyasumi = m==-1 || f==-1;\n\n\t\t\t\tif(!yasumi && 80<=sum){\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}else if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}\n\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tm = Integer.parseInt(strArr[0]);\n\t\t\t\tf = Integer.parseInt(strArr[1]);\n\t\t\t\tr = Integer.parseInt(strArr[2]);\n\n\t\t\t\t;\n\t\t\t}\n\n\t\t\tfor(String s : scores){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\t\t\tint m = Integer.parseInt(strArr[0]);\n\t\t\tint f = Integer.parseInt(strArr[1]);\n\t\t\tint r = Integer.parseInt(strArr[2]);\n\n\t\t\tList<String> scores = new ArrayList<String>();\n\t\t\tint sum = 0;\n\t\t\tboolean yasumi=false;\n\t\t\twhile (!( m==-1 && f==-1 && r==-1)) {\n\n\t\t\t\tsum = m+f;\n\t\t\t\tyasumi = m==-1 || f==-1;\n\n\t\t\t\tif(!yasumi && 80<=sum){\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}else if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}\n\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tm = Integer.parseInt(strArr[0]);\n\t\t\t\tf = Integer.parseInt(strArr[1]);\n\t\t\t\tr = Integer.parseInt(strArr[2]);\n\n\t\t\t\t;\n\t\t\t}\n\n\t\t\tfor(String s : scores){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\t\t\tint m = Integer.parseInt(strArr[0]);\n\t\t\tint f = Integer.parseInt(strArr[1]);\n\t\t\tint r = Integer.parseInt(strArr[2]);\n\n\t\t\tList<String> scores = new ArrayList<String>();\n\t\t\tint sum = 0;\n\t\t\tboolean yasumi=false;\n\t\t\twhile (!( m==-1 && f==-1 && r==-1)) {\n\n\t\t\t\tsum = m+f;\n\t\t\t\tyasumi = m==-1 || f==-1;\n\n\t\t\t\tif(!yasumi && 80<=sum){\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}else if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}\n\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tm = Integer.parseInt(strArr[0]);\n\t\t\t\tf = Integer.parseInt(strArr[1]);\n\t\t\t\tr = Integer.parseInt(strArr[2]);\n\n\t\t\t\t;\n\t\t\t}\n\n\t\t\tfor(String s : scores){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\t\t\tint m = Integer.parseInt(strArr[0]);\n\t\t\tint f = Integer.parseInt(strArr[1]);\n\t\t\tint r = Integer.parseInt(strArr[2]);\n\n\t\t\tList<String> scores = new ArrayList<String>();\n\t\t\tint sum = 0;\n\t\t\tboolean yasumi=false;\n\t\t\twhile (!( m==-1 && f==-1 && r==-1)) {\n\n\t\t\t\tsum = m+f;\n\t\t\t\tyasumi = m==-1 || f==-1;\n\n\t\t\t\tif(!yasumi && 80<=sum){\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}else if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}\n\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tm = Integer.parseInt(strArr[0]);\n\t\t\t\tf = Integer.parseInt(strArr[1]);\n\t\t\t\tr = Integer.parseInt(strArr[2]);\n\n\t\t\t\t;\n\t\t\t}\n\n\t\t\tfor(String s : scores){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}", "try {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}", "catch (IOException ioe) {\n\t\t\t}", "IOException ioe", "{\n\t\t\t}", "{\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t}", "if (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}", "br != null", "br", "null", "{\n\t\t\t\t\tbr.close();\n\t\t\t\t}", "br.close()", "br.close", "br", "{\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\t\t\tint m = Integer.parseInt(strArr[0]);\n\t\t\tint f = Integer.parseInt(strArr[1]);\n\t\t\tint r = Integer.parseInt(strArr[2]);\n\n\t\t\tList<String> scores = new ArrayList<String>();\n\t\t\tint sum = 0;\n\t\t\tboolean yasumi=false;\n\t\t\twhile (!( m==-1 && f==-1 && r==-1)) {\n\n\t\t\t\tsum = m+f;\n\t\t\t\tyasumi = m==-1 || f==-1;\n\n\t\t\t\tif(!yasumi && 80<=sum){\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}else if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}\n\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tm = Integer.parseInt(strArr[0]);\n\t\t\t\tf = Integer.parseInt(strArr[1]);\n\t\t\t\tr = Integer.parseInt(strArr[2]);\n\n\t\t\t\t;\n\t\t\t}\n\n\t\t\tfor(String s : scores){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\n\t\t}", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String[] strArr = str.split(\" \");", "strArr", "str.split(\" \")", "str.split", "str", "\" \"", "int m = Integer.parseInt(strArr[0]);", "m", "Integer.parseInt(strArr[0])", "Integer.parseInt", "Integer", "strArr[0]", "strArr", "0", "int f = Integer.parseInt(strArr[1]);", "f", "Integer.parseInt(strArr[1])", "Integer.parseInt", "Integer", "strArr[1]", "strArr", "1", "int r = Integer.parseInt(strArr[2]);", "r", "Integer.parseInt(strArr[2])", "Integer.parseInt", "Integer", "strArr[2]", "strArr", "2", "List<String> scores = new ArrayList<String>();", "scores", "new ArrayList<String>()", "int sum = 0;", "sum", "0", "boolean yasumi=false;", "yasumi", "false", "while (!( m==-1 && f==-1 && r==-1)) {\n\n\t\t\t\tsum = m+f;\n\t\t\t\tyasumi = m==-1 || f==-1;\n\n\t\t\t\tif(!yasumi && 80<=sum){\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}else if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}\n\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tm = Integer.parseInt(strArr[0]);\n\t\t\t\tf = Integer.parseInt(strArr[1]);\n\t\t\t\tr = Integer.parseInt(strArr[2]);\n\n\t\t\t\t;\n\t\t\t}", "!( m==-1 && f==-1 && r==-1)", "( m==-1 && f==-1 && r==-1)", "m==-1 && f==-1 && r==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "r==-1", "r", "-1", "1", "{\n\n\t\t\t\tsum = m+f;\n\t\t\t\tyasumi = m==-1 || f==-1;\n\n\t\t\t\tif(!yasumi && 80<=sum){\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}else if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}\n\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tm = Integer.parseInt(strArr[0]);\n\t\t\t\tf = Integer.parseInt(strArr[1]);\n\t\t\t\tr = Integer.parseInt(strArr[2]);\n\n\t\t\t\t;\n\t\t\t}", "sum = m+f", "sum", "m+f", "m", "f", "yasumi = m==-1 || f==-1", "yasumi", "m==-1 || f==-1", "m==-1", "m", "-1", "1", "f==-1", "f", "-1", "1", "if(!yasumi && 80<=sum){\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}else if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}", "!yasumi && 80<=sum", "!yasumi", "yasumi", "80<=sum", "80", "sum", "{\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}", "scores.add(\"A\")", "scores.add", "scores", "\"A\"", "if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}", "!yasumi && 65<=sum", "!yasumi", "yasumi", "65<=sum", "65", "sum", "{\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}", "scores.add(\"B\")", "scores.add", "scores", "\"B\"", "if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}", "!yasumi && (50<=sum || (sum<50 && 50<=r))", "!yasumi", "yasumi", "(50<=sum || (sum<50 && 50<=r))", "50<=sum", "50", "sum", "(sum<50 && 50<=r)", "sum<50", "sum", "50", "50<=r", "50", "r", "{\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}", "scores.add(\"C\")", "scores.add", "scores", "\"C\"", "if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}", "!yasumi && 30<=sum", "!yasumi", "yasumi", "30<=sum", "30", "sum", "{\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}", "scores.add(\"D\")", "scores.add", "scores", "\"D\"", "{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}", "scores.add(\"F\")", "scores.add", "scores", "\"F\"", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "strArr = str.split(\" \")", "strArr", "str.split(\" \")", "str.split", "str", "\" \"", "m = Integer.parseInt(strArr[0])", "m", "Integer.parseInt(strArr[0])", "Integer.parseInt", "Integer", "strArr[0]", "strArr", "0", "f = Integer.parseInt(strArr[1])", "f", "Integer.parseInt(strArr[1])", "Integer.parseInt", "Integer", "strArr[1]", "strArr", "1", "r = Integer.parseInt(strArr[2])", "r", "Integer.parseInt(strArr[2])", "Integer.parseInt", "Integer", "strArr[2]", "strArr", "2", "for(String s : scores){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}", "String s", "scores", "{\n\t\t\t\tSystem.out.println(s);\n\t\t\t}", "{\n\t\t\t\tSystem.out.println(s);\n\t\t\t}", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\t\t\tint m = Integer.parseInt(strArr[0]);\n\t\t\tint f = Integer.parseInt(strArr[1]);\n\t\t\tint r = Integer.parseInt(strArr[2]);\n\n\t\t\tList<String> scores = new ArrayList<String>();\n\t\t\tint sum = 0;\n\t\t\tboolean yasumi=false;\n\t\t\twhile (!( m==-1 && f==-1 && r==-1)) {\n\n\t\t\t\tsum = m+f;\n\t\t\t\tyasumi = m==-1 || f==-1;\n\n\t\t\t\tif(!yasumi && 80<=sum){\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}else if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}\n\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tm = Integer.parseInt(strArr[0]);\n\t\t\t\tf = Integer.parseInt(strArr[1]);\n\t\t\t\tr = Integer.parseInt(strArr[2]);\n\n\t\t\t\t;\n\t\t\t}\n\n\t\t\tfor(String s : scores){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strArr = str.split(\" \");\n\t\t\tint m = Integer.parseInt(strArr[0]);\n\t\t\tint f = Integer.parseInt(strArr[1]);\n\t\t\tint r = Integer.parseInt(strArr[2]);\n\n\t\t\tList<String> scores = new ArrayList<String>();\n\t\t\tint sum = 0;\n\t\t\tboolean yasumi=false;\n\t\t\twhile (!( m==-1 && f==-1 && r==-1)) {\n\n\t\t\t\tsum = m+f;\n\t\t\t\tyasumi = m==-1 || f==-1;\n\n\t\t\t\tif(!yasumi && 80<=sum){\n\t\t\t\t\tscores.add(\"A\");\n\t\t\t\t}else if(!yasumi && 65<=sum){\n\t\t\t\t\tscores.add(\"B\");\n\t\t\t\t}else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){\n\t\t\t\t\tscores.add(\"C\");\n\t\t\t\t}else if(!yasumi && 30<=sum){\n\t\t\t\t\tscores.add(\"D\");\n\t\t\t\t}else{\n\t\t\t\t\tscores.add(\"F\");\n\t\t\t\t}\n\n\t\t\t\tstr = br.readLine();\n\t\t\t\tstrArr = str.split(\" \");\n\t\t\t\tm = Integer.parseInt(strArr[0]);\n\t\t\t\tf = Integer.parseInt(strArr[1]);\n\t\t\t\tr = Integer.parseInt(strArr[2]);\n\n\t\t\t\t;\n\t\t\t}\n\n\t\t\tfor(String s : scores){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { String str = br.readLine(); String[] strArr = str.split(" "); int m = Integer.parseInt(strArr[0]); int f = Integer.parseInt(strArr[1]); int r = Integer.parseInt(strArr[2]); List<String> scores = new ArrayList<String>(); int sum = 0; boolean yasumi=false; while (!( m==-1 && f==-1 && r==-1)) { sum = m+f; yasumi = m==-1 || f==-1; if(!yasumi && 80<=sum){ scores.add("A"); }else if(!yasumi && 65<=sum){ scores.add("B"); }else if(!yasumi && (50<=sum || (sum<50 && 50<=r))){ scores.add("C"); }else if(!yasumi && 30<=sum){ scores.add("D"); }else{ scores.add("F"); } str = br.readLine(); strArr = str.split(" "); m = Integer.parseInt(strArr[0]); f = Integer.parseInt(strArr[1]); r = Integer.parseInt(strArr[2]); ; } for(String s : scores){ System.out.println(s); } } catch (IOException e) { e.printStackTrace(); } finally { try { if (br != null) { br.close(); } } catch (IOException ioe) { } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 30, 4, 18, 13, 17, 14, 2, 17, 2, 13, 13, 30, 4, 18, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 17, 2, 13, 13, 2, 2, 13, 13, 17, 30, 14, 2, 17, 13, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 184, 11 ], [ 184, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 23, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 23, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 23, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 23, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 72, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 70, 85 ], [ 85, 86 ], [ 70, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 59, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 92, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 104, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 103, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 103, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 121, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 120, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 120, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 141, 143 ], [ 138, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 137, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 155, 158 ], [ 150, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 137, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 164, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 14, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 12, 181 ], [ 181, 182 ], [ 0, 183 ], [ 183, 184 ], [ 183, 185 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint m = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\t\n\t\t\tif((m == -1) || (f == -1)){\n\t\t\t\tif((m == -1) && (f == -1) && (r == -1)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(80 <= m + f){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((65 <= m + f) && (m + f < 80)){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint m = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\t\n\t\t\tif((m == -1) || (f == -1)){\n\t\t\t\tif((m == -1) && (f == -1) && (r == -1)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(80 <= m + f){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((65 <= m + f) && (m + f < 80)){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "Main", "public static void main(String[] args)throws IOException{\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint m = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\t\n\t\t\tif((m == -1) || (f == -1)){\n\t\t\t\tif((m == -1) && (f == -1) && (r == -1)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(80 <= m + f){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((65 <= m + f) && (m + f < 80)){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint m = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\t\n\t\t\tif((m == -1) || (f == -1)){\n\t\t\t\tif((m == -1) && (f == -1) && (r == -1)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(80 <= m + f){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((65 <= m + f) && (m + f < 80)){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while(true){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint m = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\t\n\t\t\tif((m == -1) || (f == -1)){\n\t\t\t\tif((m == -1) && (f == -1) && (r == -1)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(80 <= m + f){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((65 <= m + f) && (m + f < 80)){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint m = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\t\n\t\t\tif((m == -1) || (f == -1)){\n\t\t\t\tif((m == -1) && (f == -1) && (r == -1)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(80 <= m + f){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((65 <= m + f) && (m + f < 80)){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "String[] str = line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "int m = Integer.parseInt(str[0]);", "m", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "int f = Integer.parseInt(str[1]);", "f", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "int r = Integer.parseInt(str[2]);", "r", "Integer.parseInt(str[2])", "Integer.parseInt", "Integer", "str[2]", "str", "2", "if((m == -1) || (f == -1)){\n\t\t\t\tif((m == -1) && (f == -1) && (r == -1)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(80 <= m + f){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((65 <= m + f) && (m + f < 80)){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "(m == -1) || (f == -1)", "(m == -1)", "m", "-1", "1", "(f == -1)", "f", "-1", "1", "{\n\t\t\t\tif((m == -1) && (f == -1) && (r == -1)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}\n\t\t\t}", "if((m == -1) && (f == -1) && (r == -1)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}", "(m == -1) && (f == -1) && (r == -1)", "(m == -1) && (f == -1) && (r == -1)", "(m == -1)", "m", "-1", "1", "(f == -1)", "f", "-1", "1", "(r == -1)", "r", "-1", "1", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}", "sb.append(\"F\\n\")", "sb.append", "sb", "\"F\\n\"", "if(80 <= m + f){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((65 <= m + f) && (m + f < 80)){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "80 <= m + f", "80", "m + f", "m", "f", "{\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}", "sb.append(\"A\\n\")", "sb.append", "sb", "\"A\\n\"", "if((65 <= m + f) && (m + f < 80)){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "(65 <= m + f) && (m + f < 80)", "(65 <= m + f)", "65", "m + f", "m", "f", "(m + f < 80)", "m + f", "m", "f", "80", "{\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}", "sb.append(\"B\\n\")", "sb.append", "sb", "\"B\\n\"", "if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "(50 <= m + f) && (m + f < 65)", "(50 <= m + f)", "50", "m + f", "m", "f", "(m + f < 65)", "m + f", "m", "f", "65", "{\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}", "sb.append(\"C\\n\")", "sb.append", "sb", "\"C\\n\"", "if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "(30 <= m + f) && (m + f < 50)", "(30 <= m + f)", "30", "m + f", "m", "f", "(m + f < 50)", "m + f", "m", "f", "50", "{\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}", "if(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}", "50 <= r", "50", "r", "{\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}", "sb.append(\"C\\n\")", "sb.append", "sb", "\"C\\n\"", "{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}", "sb.append(\"D\\n\")", "sb.append", "sb", "\"D\\n\"", "if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "m + f < 30", "m + f", "m", "f", "30", "{\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}", "sb.append(\"F\\n\")", "sb.append", "sb", "\"F\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint m = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\t\n\t\t\tif((m == -1) || (f == -1)){\n\t\t\t\tif((m == -1) && (f == -1) && (r == -1)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(80 <= m + f){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((65 <= m + f) && (m + f < 80)){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint m = Integer.parseInt(str[0]);\n\t\t\tint f = Integer.parseInt(str[1]);\n\t\t\tint r = Integer.parseInt(str[2]);\n\t\t\t\n\t\t\tif((m == -1) || (f == -1)){\n\t\t\t\tif((m == -1) && (f == -1) && (r == -1)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"F\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(80 <= m + f){\n\t\t\t\tsb.append(\"A\\n\");\n\t\t\t}\n\t\t\telse if((65 <= m + f) && (m + f < 80)){\n\t\t\t\tsb.append(\"B\\n\");\n\t\t\t}\n\t\t\telse if((50 <= m + f) && (m + f < 65)){\n\t\t\t\tsb.append(\"C\\n\");\n\t\t\t}\n\t\t\telse if((30 <= m + f) && (m + f < 50)){\n\t\t\t\tif(50 <= r){\n\t\t\t\t\tsb.append(\"C\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsb.append(\"D\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(m + f < 30){\n\t\t\t\tsb.append(\"F\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while(true){ String line = br.readLine(); String[] str = line.split(" "); int m = Integer.parseInt(str[0]); int f = Integer.parseInt(str[1]); int r = Integer.parseInt(str[2]); if((m == -1) || (f == -1)){ if((m == -1) && (f == -1) && (r == -1)){ break; } else{ sb.append("F\n"); } } else if(80 <= m + f){ sb.append("A\n"); } else if((65 <= m + f) && (m + f < 80)){ sb.append("B\n"); } else if((50 <= m + f) && (m + f < 65)){ sb.append("C\n"); } else if((30 <= m + f) && (m + f < 50)){ if(50 <= r){ sb.append("C\n"); } else{ sb.append("D\n"); } } else if(m + f < 30){ sb.append("F\n"); } } System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 30, 3, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 30, 4, 18, 4, 18, 13, 17, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 4, 18, 13, 17, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 4, 18, 13, 17, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 4, 18, 13, 17, 17, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 4, 18, 13, 17, 17, 30, 4, 18, 4, 18, 13, 17, 17, 30, 4, 18, 4, 18, 13, 17, 17, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 173, 5 ], [ 173, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 17, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 17, 50 ], [ 50, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 52, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 50, 65 ], [ 65, 66 ], [ 50, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 78, 84 ], [ 67, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 85, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 92, 98 ], [ 85, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 99, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 106, 112 ], [ 99, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 120, 126 ], [ 113, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 127, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 139, 145 ], [ 134, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 147, 153 ], [ 127, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 155, 161 ], [ 8, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 167, 168 ], [ 168, 169 ], [ 6, 170 ], [ 170, 171 ], [ 0, 172 ], [ 172, 173 ], [ 172, 174 ] ]
[ "import java.io.*;\n\npublic class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n while(true){\n String[] line = br.readLine().split(\" \");\n int m = Integer.parseInt(line[0]);\n int f = Integer.parseInt(line[1]);\n int r = Integer.parseInt(line[2]);\n\n if(m == -1 && f == -1 && r == -1){\n break;\n }else if(m == -1 || f == -1){\n sb.append(\"F\").append(\"\\n\");\n }else if(m + f >= 80){\n sb.append(\"A\").append(\"\\n\");\n }else if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }\n }\n System.out.print(sb.toString());\n }\n}", "import java.io.*;", "io.*", "java", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n while(true){\n String[] line = br.readLine().split(\" \");\n int m = Integer.parseInt(line[0]);\n int f = Integer.parseInt(line[1]);\n int r = Integer.parseInt(line[2]);\n\n if(m == -1 && f == -1 && r == -1){\n break;\n }else if(m == -1 || f == -1){\n sb.append(\"F\").append(\"\\n\");\n }else if(m + f >= 80){\n sb.append(\"A\").append(\"\\n\");\n }else if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }\n }\n System.out.print(sb.toString());\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n while(true){\n String[] line = br.readLine().split(\" \");\n int m = Integer.parseInt(line[0]);\n int f = Integer.parseInt(line[1]);\n int r = Integer.parseInt(line[2]);\n\n if(m == -1 && f == -1 && r == -1){\n break;\n }else if(m == -1 || f == -1){\n sb.append(\"F\").append(\"\\n\");\n }else if(m + f >= 80){\n sb.append(\"A\").append(\"\\n\");\n }else if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }\n }\n System.out.print(sb.toString());\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n while(true){\n String[] line = br.readLine().split(\" \");\n int m = Integer.parseInt(line[0]);\n int f = Integer.parseInt(line[1]);\n int r = Integer.parseInt(line[2]);\n\n if(m == -1 && f == -1 && r == -1){\n break;\n }else if(m == -1 || f == -1){\n sb.append(\"F\").append(\"\\n\");\n }else if(m + f >= 80){\n sb.append(\"A\").append(\"\\n\");\n }else if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }\n }\n System.out.print(sb.toString());\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while(true){\n String[] line = br.readLine().split(\" \");\n int m = Integer.parseInt(line[0]);\n int f = Integer.parseInt(line[1]);\n int r = Integer.parseInt(line[2]);\n\n if(m == -1 && f == -1 && r == -1){\n break;\n }else if(m == -1 || f == -1){\n sb.append(\"F\").append(\"\\n\");\n }else if(m + f >= 80){\n sb.append(\"A\").append(\"\\n\");\n }else if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }\n }", "true", "{\n String[] line = br.readLine().split(\" \");\n int m = Integer.parseInt(line[0]);\n int f = Integer.parseInt(line[1]);\n int r = Integer.parseInt(line[2]);\n\n if(m == -1 && f == -1 && r == -1){\n break;\n }else if(m == -1 || f == -1){\n sb.append(\"F\").append(\"\\n\");\n }else if(m + f >= 80){\n sb.append(\"A\").append(\"\\n\");\n }else if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }\n }", "String[] line = br.readLine().split(\" \");", "line", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int m = Integer.parseInt(line[0]);", "m", "Integer.parseInt(line[0])", "Integer.parseInt", "Integer", "line[0]", "line", "0", "int f = Integer.parseInt(line[1]);", "f", "Integer.parseInt(line[1])", "Integer.parseInt", "Integer", "line[1]", "line", "1", "int r = Integer.parseInt(line[2]);", "r", "Integer.parseInt(line[2])", "Integer.parseInt", "Integer", "line[2]", "line", "2", "if(m == -1 && f == -1 && r == -1){\n break;\n }else if(m == -1 || f == -1){\n sb.append(\"F\").append(\"\\n\");\n }else if(m + f >= 80){\n sb.append(\"A\").append(\"\\n\");\n }else if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "{\n break;\n }", "break;", "if(m == -1 || f == -1){\n sb.append(\"F\").append(\"\\n\");\n }else if(m + f >= 80){\n sb.append(\"A\").append(\"\\n\");\n }else if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "{\n sb.append(\"F\").append(\"\\n\");\n }", "sb.append(\"F\").append(\"\\n\")", "sb.append(\"F\").append", "sb.append(\"F\")", "sb.append", "sb", "\"F\"", "\"\\n\"", "if(m + f >= 80){\n sb.append(\"A\").append(\"\\n\");\n }else if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }", "m + f >= 80", "m + f", "m", "f", "80", "{\n sb.append(\"A\").append(\"\\n\");\n }", "sb.append(\"A\").append(\"\\n\")", "sb.append(\"A\").append", "sb.append(\"A\")", "sb.append", "sb", "\"A\"", "\"\\n\"", "if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }", "m + f >= 65", "m + f", "m", "f", "65", "{\n sb.append(\"B\").append(\"\\n\");\n }", "sb.append(\"B\").append(\"\\n\")", "sb.append(\"B\").append", "sb.append(\"B\")", "sb.append", "sb", "\"B\"", "\"\\n\"", "if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }", "m + f >= 50", "m + f", "m", "f", "50", "{\n sb.append(\"C\").append(\"\\n\");\n }", "sb.append(\"C\").append(\"\\n\")", "sb.append(\"C\").append", "sb.append(\"C\")", "sb.append", "sb", "\"C\"", "\"\\n\"", "if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }", "m + f >= 30", "m + f", "m", "f", "30", "{\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }", "if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }", "r >= 50", "r", "50", "{\n sb.append(\"C\").append(\"\\n\");\n }", "sb.append(\"C\").append(\"\\n\")", "sb.append(\"C\").append", "sb.append(\"C\")", "sb.append", "sb", "\"C\"", "\"\\n\"", "{\n sb.append(\"D\").append(\"\\n\");\n }", "sb.append(\"D\").append(\"\\n\")", "sb.append(\"D\").append", "sb.append(\"D\")", "sb.append", "sb", "\"D\"", "\"\\n\"", "{\n sb.append(\"F\").append(\"\\n\");\n }", "sb.append(\"F\").append(\"\\n\")", "sb.append(\"F\").append", "sb.append(\"F\")", "sb.append", "sb", "\"F\"", "\"\\n\"", "System.out.print(sb.toString())", "System.out.print", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "String[] args", "args", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n while(true){\n String[] line = br.readLine().split(\" \");\n int m = Integer.parseInt(line[0]);\n int f = Integer.parseInt(line[1]);\n int r = Integer.parseInt(line[2]);\n\n if(m == -1 && f == -1 && r == -1){\n break;\n }else if(m == -1 || f == -1){\n sb.append(\"F\").append(\"\\n\");\n }else if(m + f >= 80){\n sb.append(\"A\").append(\"\\n\");\n }else if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }\n }\n System.out.print(sb.toString());\n }\n}", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n while(true){\n String[] line = br.readLine().split(\" \");\n int m = Integer.parseInt(line[0]);\n int f = Integer.parseInt(line[1]);\n int r = Integer.parseInt(line[2]);\n\n if(m == -1 && f == -1 && r == -1){\n break;\n }else if(m == -1 || f == -1){\n sb.append(\"F\").append(\"\\n\");\n }else if(m + f >= 80){\n sb.append(\"A\").append(\"\\n\");\n }else if(m + f >= 65){\n sb.append(\"B\").append(\"\\n\");\n }else if(m + f >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else if(m + f >= 30){\n if(r >= 50){\n sb.append(\"C\").append(\"\\n\");\n }else{\n sb.append(\"D\").append(\"\\n\");\n }\n }else{\n sb.append(\"F\").append(\"\\n\");\n }\n }\n System.out.print(sb.toString());\n }\n}", "Main" ]
import java.io.*; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while(true){ String[] line = br.readLine().split(" "); int m = Integer.parseInt(line[0]); int f = Integer.parseInt(line[1]); int r = Integer.parseInt(line[2]); if(m == -1 && f == -1 && r == -1){ break; }else if(m == -1 || f == -1){ sb.append("F").append("\n"); }else if(m + f >= 80){ sb.append("A").append("\n"); }else if(m + f >= 65){ sb.append("B").append("\n"); }else if(m + f >= 50){ sb.append("C").append("\n"); }else if(m + f >= 30){ if(r >= 50){ sb.append("C").append("\n"); }else{ sb.append("D").append("\n"); } }else{ sb.append("F").append("\n"); } } System.out.print(sb.toString()); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 2, 18, 13, 17, 18, 13, 17, 14, 2, 2, 18, 13, 17, 40, 17, 2, 18, 13, 17, 40, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 17, 2, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 29, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 6, 68 ], [ 68, 69 ], [ 4, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 72, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 86, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 85, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 85, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 103, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 111, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 119, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 127, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 127, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 141, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 72, 157 ], [ 157, 158 ], [ 70, 159 ], [ 159, 160 ] ]
[ "import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n // (??????????¨?) (??????????¨?) (???????¨?)\n Scanner scanner = new Scanner(System.in);\n while (true) {\n String gradeString = scanner.nextLine();\n if (gradeString.equals(\"-1 -1 -1\")) {\n break;\n }\n String[] gradeStrArr = gradeString.split(\" \");\n int[] gradeIntArr = new int[3];\n for (int i = 0; i < 3; i++) {\n gradeIntArr[i] = Integer.parseInt(gradeStrArr[i]);\n }\n System.out.println(judge(gradeIntArr));\n }\n }\n static String judge(int[] scores) {\n String ans = \"\";\n int sum = scores[0] + scores[1];\n if (scores[0] == -1 || scores[1] == -1) {\n ans = \"F\";\n } else if (sum >= 80) {\n ans = \"A\";\n } else if (sum >= 65) {\n ans = \"B\";\n } else if (sum >= 50) {\n ans = \"C\";\n } else if (sum >= 30 && scores[2] >= 50) {\n ans = \"C\";\n } else if (sum >= 30) {\n ans = \"D\";\n } else if (sum < 30) {\n ans = \"F\";\n }\n return ans;\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String args[]) {\n // (??????????¨?) (??????????¨?) (???????¨?)\n Scanner scanner = new Scanner(System.in);\n while (true) {\n String gradeString = scanner.nextLine();\n if (gradeString.equals(\"-1 -1 -1\")) {\n break;\n }\n String[] gradeStrArr = gradeString.split(\" \");\n int[] gradeIntArr = new int[3];\n for (int i = 0; i < 3; i++) {\n gradeIntArr[i] = Integer.parseInt(gradeStrArr[i]);\n }\n System.out.println(judge(gradeIntArr));\n }\n }\n static String judge(int[] scores) {\n String ans = \"\";\n int sum = scores[0] + scores[1];\n if (scores[0] == -1 || scores[1] == -1) {\n ans = \"F\";\n } else if (sum >= 80) {\n ans = \"A\";\n } else if (sum >= 65) {\n ans = \"B\";\n } else if (sum >= 50) {\n ans = \"C\";\n } else if (sum >= 30 && scores[2] >= 50) {\n ans = \"C\";\n } else if (sum >= 30) {\n ans = \"D\";\n } else if (sum < 30) {\n ans = \"F\";\n }\n return ans;\n }\n}", "Main", "public static void main(String args[]) {\n // (??????????¨?) (??????????¨?) (???????¨?)\n Scanner scanner = new Scanner(System.in);\n while (true) {\n String gradeString = scanner.nextLine();\n if (gradeString.equals(\"-1 -1 -1\")) {\n break;\n }\n String[] gradeStrArr = gradeString.split(\" \");\n int[] gradeIntArr = new int[3];\n for (int i = 0; i < 3; i++) {\n gradeIntArr[i] = Integer.parseInt(gradeStrArr[i]);\n }\n System.out.println(judge(gradeIntArr));\n }\n }", "main", "{\n // (??????????¨?) (??????????¨?) (???????¨?)\n Scanner scanner = new Scanner(System.in);\n while (true) {\n String gradeString = scanner.nextLine();\n if (gradeString.equals(\"-1 -1 -1\")) {\n break;\n }\n String[] gradeStrArr = gradeString.split(\" \");\n int[] gradeIntArr = new int[3];\n for (int i = 0; i < 3; i++) {\n gradeIntArr[i] = Integer.parseInt(gradeStrArr[i]);\n }\n System.out.println(judge(gradeIntArr));\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while (true) {\n String gradeString = scanner.nextLine();\n if (gradeString.equals(\"-1 -1 -1\")) {\n break;\n }\n String[] gradeStrArr = gradeString.split(\" \");\n int[] gradeIntArr = new int[3];\n for (int i = 0; i < 3; i++) {\n gradeIntArr[i] = Integer.parseInt(gradeStrArr[i]);\n }\n System.out.println(judge(gradeIntArr));\n }", "true", "{\n String gradeString = scanner.nextLine();\n if (gradeString.equals(\"-1 -1 -1\")) {\n break;\n }\n String[] gradeStrArr = gradeString.split(\" \");\n int[] gradeIntArr = new int[3];\n for (int i = 0; i < 3; i++) {\n gradeIntArr[i] = Integer.parseInt(gradeStrArr[i]);\n }\n System.out.println(judge(gradeIntArr));\n }", "String gradeString = scanner.nextLine();", "gradeString", "scanner.nextLine()", "scanner.nextLine", "scanner", "if (gradeString.equals(\"-1 -1 -1\")) {\n break;\n }", "gradeString.equals(\"-1 -1 -1\")", "gradeString.equals", "gradeString", "\"-1 -1 -1\"", "{\n break;\n }", "break;", "String[] gradeStrArr = gradeString.split(\" \");", "gradeStrArr", "gradeString.split(\" \")", "gradeString.split", "gradeString", "\" \"", "int[] gradeIntArr = new int[3];", "gradeIntArr", "new int[3]", "3", "for (int i = 0; i < 3; i++) {\n gradeIntArr[i] = Integer.parseInt(gradeStrArr[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n gradeIntArr[i] = Integer.parseInt(gradeStrArr[i]);\n }", "{\n gradeIntArr[i] = Integer.parseInt(gradeStrArr[i]);\n }", "gradeIntArr[i] = Integer.parseInt(gradeStrArr[i])", "gradeIntArr[i]", "gradeIntArr", "i", "Integer.parseInt(gradeStrArr[i])", "Integer.parseInt", "Integer", "gradeStrArr[i]", "gradeStrArr", "i", "System.out.println(judge(gradeIntArr))", "System.out.println", "System.out", "System", "System.out", "judge(gradeIntArr)", "judge", "gradeIntArr", "String args[]", "args", "static String judge(int[] scores) {\n String ans = \"\";\n int sum = scores[0] + scores[1];\n if (scores[0] == -1 || scores[1] == -1) {\n ans = \"F\";\n } else if (sum >= 80) {\n ans = \"A\";\n } else if (sum >= 65) {\n ans = \"B\";\n } else if (sum >= 50) {\n ans = \"C\";\n } else if (sum >= 30 && scores[2] >= 50) {\n ans = \"C\";\n } else if (sum >= 30) {\n ans = \"D\";\n } else if (sum < 30) {\n ans = \"F\";\n }\n return ans;\n }", "judge", "{\n String ans = \"\";\n int sum = scores[0] + scores[1];\n if (scores[0] == -1 || scores[1] == -1) {\n ans = \"F\";\n } else if (sum >= 80) {\n ans = \"A\";\n } else if (sum >= 65) {\n ans = \"B\";\n } else if (sum >= 50) {\n ans = \"C\";\n } else if (sum >= 30 && scores[2] >= 50) {\n ans = \"C\";\n } else if (sum >= 30) {\n ans = \"D\";\n } else if (sum < 30) {\n ans = \"F\";\n }\n return ans;\n }", "String ans = \"\";", "ans", "\"\"", "int sum = scores[0] + scores[1];", "sum", "scores[0] + scores[1]", "scores[0]", "scores", "0", "scores[1]", "scores", "1", "if (scores[0] == -1 || scores[1] == -1) {\n ans = \"F\";\n } else if (sum >= 80) {\n ans = \"A\";\n } else if (sum >= 65) {\n ans = \"B\";\n } else if (sum >= 50) {\n ans = \"C\";\n } else if (sum >= 30 && scores[2] >= 50) {\n ans = \"C\";\n } else if (sum >= 30) {\n ans = \"D\";\n } else if (sum < 30) {\n ans = \"F\";\n }", "scores[0] == -1 || scores[1] == -1", "scores[0] == -1", "scores[0]", "scores", "0", "-1", "1", "scores[1] == -1", "scores[1]", "scores", "1", "-1", "1", "{\n ans = \"F\";\n }", "ans = \"F\"", "ans", "\"F\"", "if (sum >= 80) {\n ans = \"A\";\n } else if (sum >= 65) {\n ans = \"B\";\n } else if (sum >= 50) {\n ans = \"C\";\n } else if (sum >= 30 && scores[2] >= 50) {\n ans = \"C\";\n } else if (sum >= 30) {\n ans = \"D\";\n } else if (sum < 30) {\n ans = \"F\";\n }", "sum >= 80", "sum", "80", "{\n ans = \"A\";\n }", "ans = \"A\"", "ans", "\"A\"", "if (sum >= 65) {\n ans = \"B\";\n } else if (sum >= 50) {\n ans = \"C\";\n } else if (sum >= 30 && scores[2] >= 50) {\n ans = \"C\";\n } else if (sum >= 30) {\n ans = \"D\";\n } else if (sum < 30) {\n ans = \"F\";\n }", "sum >= 65", "sum", "65", "{\n ans = \"B\";\n }", "ans = \"B\"", "ans", "\"B\"", "if (sum >= 50) {\n ans = \"C\";\n } else if (sum >= 30 && scores[2] >= 50) {\n ans = \"C\";\n } else if (sum >= 30) {\n ans = \"D\";\n } else if (sum < 30) {\n ans = \"F\";\n }", "sum >= 50", "sum", "50", "{\n ans = \"C\";\n }", "ans = \"C\"", "ans", "\"C\"", "if (sum >= 30 && scores[2] >= 50) {\n ans = \"C\";\n } else if (sum >= 30) {\n ans = \"D\";\n } else if (sum < 30) {\n ans = \"F\";\n }", "sum >= 30 && scores[2] >= 50", "sum >= 30", "sum", "30", "scores[2] >= 50", "scores[2]", "scores", "2", "50", "{\n ans = \"C\";\n }", "ans = \"C\"", "ans", "\"C\"", "if (sum >= 30) {\n ans = \"D\";\n } else if (sum < 30) {\n ans = \"F\";\n }", "sum >= 30", "sum", "30", "{\n ans = \"D\";\n }", "ans = \"D\"", "ans", "\"D\"", "if (sum < 30) {\n ans = \"F\";\n }", "sum < 30", "sum", "30", "{\n ans = \"F\";\n }", "ans = \"F\"", "ans", "\"F\"", "return ans;", "ans", "int[] scores", "scores" ]
import java.util.*; class Main { public static void main(String args[]) { // (??????????¨?) (??????????¨?) (???????¨?) Scanner scanner = new Scanner(System.in); while (true) { String gradeString = scanner.nextLine(); if (gradeString.equals("-1 -1 -1")) { break; } String[] gradeStrArr = gradeString.split(" "); int[] gradeIntArr = new int[3]; for (int i = 0; i < 3; i++) { gradeIntArr[i] = Integer.parseInt(gradeStrArr[i]); } System.out.println(judge(gradeIntArr)); } } static String judge(int[] scores) { String ans = ""; int sum = scores[0] + scores[1]; if (scores[0] == -1 || scores[1] == -1) { ans = "F"; } else if (sum >= 80) { ans = "A"; } else if (sum >= 65) { ans = "B"; } else if (sum >= 50) { ans = "C"; } else if (sum >= 30 && scores[2] >= 50) { ans = "C"; } else if (sum >= 30) { ans = "D"; } else if (sum < 30) { ans = "F"; } return ans; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 40, 17, 2, 13, 40, 17, 3, 41, 13, 2, 13, 13, 14, 2, 2, 13, 40, 17, 2, 13, 40, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 144, 5 ], [ 144, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 15, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 15, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 15, 31 ], [ 31, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 33, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 31, 46 ], [ 15, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 15, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 52, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 78, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 92, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 111, 113 ], [ 106, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 115, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 106, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 6, 141 ], [ 141, 142 ], [ 0, 143 ], [ 143, 144 ], [ 143, 145 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner s = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tint m = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1)\n\t\t\t\tbreak;\n\t\t\tint sum = m + f;\n\t\t\tif(m == -1 || f == -1)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\telse if(sum >= 80)\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\telse if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner s = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tint m = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1)\n\t\t\t\tbreak;\n\t\t\tint sum = m + f;\n\t\t\tif(m == -1 || f == -1)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\telse if(sum >= 80)\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\telse if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t}", "Main", "public static void main(String[] args){\n\t\tScanner s = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tint m = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1)\n\t\t\t\tbreak;\n\t\t\tint sum = m + f;\n\t\t\tif(m == -1 || f == -1)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\telse if(sum >= 80)\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\telse if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "main", "{\n\t\tScanner s = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tint m = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1)\n\t\t\t\tbreak;\n\t\t\tint sum = m + f;\n\t\t\tif(m == -1 || f == -1)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\telse if(sum >= 80)\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\telse if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "for(;;){\n\t\t\tint m = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1)\n\t\t\t\tbreak;\n\t\t\tint sum = m + f;\n\t\t\tif(m == -1 || f == -1)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\telse if(sum >= 80)\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\telse if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", ";", "{\n\t\t\tint m = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1)\n\t\t\t\tbreak;\n\t\t\tint sum = m + f;\n\t\t\tif(m == -1 || f == -1)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\telse if(sum >= 80)\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\telse if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "{\n\t\t\tint m = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1)\n\t\t\t\tbreak;\n\t\t\tint sum = m + f;\n\t\t\tif(m == -1 || f == -1)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\telse if(sum >= 80)\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\telse if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}", "int m = s.nextInt();", "m", "s.nextInt()", "s.nextInt", "s", "int f = s.nextInt();", "f", "s.nextInt()", "s.nextInt", "s", "int r = s.nextInt();", "r", "s.nextInt()", "s.nextInt", "s", "if(m == -1 && f == -1 && r == -1)\n\t\t\t\tbreak;", "m == -1 && f == -1 && r == -1", "m == -1 && f == -1 && r == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "r == -1", "r", "-1", "1", "break;", "int sum = m + f;", "sum", "m + f", "m", "f", "if(m == -1 || f == -1)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\telse if(sum >= 80)\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\telse if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");", "m == -1 || f == -1", "m == -1", "m", "-1", "1", "f == -1", "f", "-1", "1", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "if(sum >= 80)\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\telse if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");", "sum >= 80", "sum", "80", "System.out.println(\"A\")", "System.out.println", "System.out", "System", "System.out", "\"A\"", "if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");", "sum >= 65 && sum <= 80", "sum >= 65", "sum", "65", "sum <= 80", "sum", "80", "System.out.println(\"B\")", "System.out.println", "System.out", "System", "System.out", "\"B\"", "if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");", "sum >= 50 && sum < 65", "sum >= 50", "sum", "50", "sum < 65", "sum", "65", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");", "sum >= 30 && sum < 50", "sum >= 30", "sum", "30", "sum < 50", "sum", "50", "{\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}", "if(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");", "r >= 50", "r", "50", "System.out.println(\"C\")", "System.out.println", "System.out", "System", "System.out", "\"C\"", "System.out.println(\"D\")", "System.out.println", "System.out", "System", "System.out", "\"D\"", "if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");", "sum < 30", "sum", "30", "System.out.println(\"F\")", "System.out.println", "System.out", "System", "System.out", "\"F\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner s = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tint m = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1)\n\t\t\t\tbreak;\n\t\t\tint sum = m + f;\n\t\t\tif(m == -1 || f == -1)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\telse if(sum >= 80)\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\telse if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner s = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tint m = s.nextInt();\n\t\t\tint f = s.nextInt();\n\t\t\tint r = s.nextInt();\n\t\t\tif(m == -1 && f == -1 && r == -1)\n\t\t\t\tbreak;\n\t\t\tint sum = m + f;\n\t\t\tif(m == -1 || f == -1)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\telse if(sum >= 80)\n\t\t\t\tSystem.out.println(\"A\");\n\t\t\telse if(sum >= 65 && sum <= 80)\n\t\t\t\tSystem.out.println(\"B\");\n\t\t\telse if(sum >= 50 && sum < 65)\n\t\t\t\tSystem.out.println(\"C\");\n\t\t\telse if(sum >= 30 && sum < 50){\n\t\t\t\tif(r >= 50)\n\t\t\t\t\tSystem.out.println(\"C\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"D\");\n\t\t\t}\n\t\t\telse if(sum < 30)\n\t\t\t\tSystem.out.println(\"F\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); for(;;){ int m = s.nextInt(); int f = s.nextInt(); int r = s.nextInt(); if(m == -1 && f == -1 && r == -1) break; int sum = m + f; if(m == -1 || f == -1) System.out.println("F"); else if(sum >= 80) System.out.println("A"); else if(sum >= 65 && sum <= 80) System.out.println("B"); else if(sum >= 50 && sum < 65) System.out.println("C"); else if(sum >= 30 && sum < 50){ if(r >= 50) System.out.println("C"); else System.out.println("D"); } else if(sum < 30) System.out.println("F"); } } }