node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 0, 18, 13, 13, 17, 30, 0, 18, 13, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 112, 5 ], [ 112, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 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 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 8, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 63, 75 ], [ 75, 76 ], [ 76, 77 ], [ 63, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 82, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 80, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 8, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 105, 108 ], [ 6, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n final Scanner scanner = new Scanner(System.in);\n final int N = scanner.nextInt();\n\n boolean[] isZoromeList = new boolean[N];\n for (int i = 0; i < N; i++) {\n int n1 = scanner.nextInt();\n int n2 = scanner.nextInt();\n\n if (n1 == n2) {\n isZoromeList[i] = true;\n } else {\n isZoromeList[i] = false;\n }\n }\n\n boolean is3TimesZorome = false;\n for (int i = 0; i < isZoromeList.length - 2; i++) {\n if (isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]) {\n is3TimesZorome = true;\n }\n }\n\n System.out.println(is3TimesZorome ? \"Yes\" : \"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n final Scanner scanner = new Scanner(System.in);\n final int N = scanner.nextInt();\n\n boolean[] isZoromeList = new boolean[N];\n for (int i = 0; i < N; i++) {\n int n1 = scanner.nextInt();\n int n2 = scanner.nextInt();\n\n if (n1 == n2) {\n isZoromeList[i] = true;\n } else {\n isZoromeList[i] = false;\n }\n }\n\n boolean is3TimesZorome = false;\n for (int i = 0; i < isZoromeList.length - 2; i++) {\n if (isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]) {\n is3TimesZorome = true;\n }\n }\n\n System.out.println(is3TimesZorome ? \"Yes\" : \"No\");\n }\n}", "Main", "public static void main(String[] args) {\n final Scanner scanner = new Scanner(System.in);\n final int N = scanner.nextInt();\n\n boolean[] isZoromeList = new boolean[N];\n for (int i = 0; i < N; i++) {\n int n1 = scanner.nextInt();\n int n2 = scanner.nextInt();\n\n if (n1 == n2) {\n isZoromeList[i] = true;\n } else {\n isZoromeList[i] = false;\n }\n }\n\n boolean is3TimesZorome = false;\n for (int i = 0; i < isZoromeList.length - 2; i++) {\n if (isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]) {\n is3TimesZorome = true;\n }\n }\n\n System.out.println(is3TimesZorome ? \"Yes\" : \"No\");\n }", "main", "{\n final Scanner scanner = new Scanner(System.in);\n final int N = scanner.nextInt();\n\n boolean[] isZoromeList = new boolean[N];\n for (int i = 0; i < N; i++) {\n int n1 = scanner.nextInt();\n int n2 = scanner.nextInt();\n\n if (n1 == n2) {\n isZoromeList[i] = true;\n } else {\n isZoromeList[i] = false;\n }\n }\n\n boolean is3TimesZorome = false;\n for (int i = 0; i < isZoromeList.length - 2; i++) {\n if (isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]) {\n is3TimesZorome = true;\n }\n }\n\n System.out.println(is3TimesZorome ? \"Yes\" : \"No\");\n }", "final Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "final int N = scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "boolean[] isZoromeList = new boolean[N];", "isZoromeList", "new boolean[N]", "N", "for (int i = 0; i < N; i++) {\n int n1 = scanner.nextInt();\n int n2 = scanner.nextInt();\n\n if (n1 == n2) {\n isZoromeList[i] = true;\n } else {\n isZoromeList[i] = false;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n int n1 = scanner.nextInt();\n int n2 = scanner.nextInt();\n\n if (n1 == n2) {\n isZoromeList[i] = true;\n } else {\n isZoromeList[i] = false;\n }\n }", "{\n int n1 = scanner.nextInt();\n int n2 = scanner.nextInt();\n\n if (n1 == n2) {\n isZoromeList[i] = true;\n } else {\n isZoromeList[i] = false;\n }\n }", "int n1 = scanner.nextInt();", "n1", "scanner.nextInt()", "scanner.nextInt", "scanner", "int n2 = scanner.nextInt();", "n2", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (n1 == n2) {\n isZoromeList[i] = true;\n } else {\n isZoromeList[i] = false;\n }", "n1 == n2", "n1", "n2", "{\n isZoromeList[i] = true;\n }", "isZoromeList[i] = true", "isZoromeList[i]", "isZoromeList", "i", "true", "{\n isZoromeList[i] = false;\n }", "isZoromeList[i] = false", "isZoromeList[i]", "isZoromeList", "i", "false", "boolean is3TimesZorome = false;", "is3TimesZorome", "false", "for (int i = 0; i < isZoromeList.length - 2; i++) {\n if (isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]) {\n is3TimesZorome = true;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < isZoromeList.length - 2", "i", "isZoromeList.length - 2", "isZoromeList.length", "isZoromeList", "isZoromeList.length", "2", "i++", "i++", "i", "{\n if (isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]) {\n is3TimesZorome = true;\n }\n }", "{\n if (isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]) {\n is3TimesZorome = true;\n }\n }", "if (isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]) {\n is3TimesZorome = true;\n }", "isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]", "isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]", "isZoromeList[i]", "isZoromeList", "i", "isZoromeList[i + 1]", "isZoromeList", "i + 1", "i", "1", "isZoromeList[i + 2]", "isZoromeList", "i + 2", "i", "2", "{\n is3TimesZorome = true;\n }", "is3TimesZorome = true", "is3TimesZorome", "true", "System.out.println(is3TimesZorome ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "is3TimesZorome ? \"Yes\" : \"No\"", "is3TimesZorome", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n final Scanner scanner = new Scanner(System.in);\n final int N = scanner.nextInt();\n\n boolean[] isZoromeList = new boolean[N];\n for (int i = 0; i < N; i++) {\n int n1 = scanner.nextInt();\n int n2 = scanner.nextInt();\n\n if (n1 == n2) {\n isZoromeList[i] = true;\n } else {\n isZoromeList[i] = false;\n }\n }\n\n boolean is3TimesZorome = false;\n for (int i = 0; i < isZoromeList.length - 2; i++) {\n if (isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]) {\n is3TimesZorome = true;\n }\n }\n\n System.out.println(is3TimesZorome ? \"Yes\" : \"No\");\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n final Scanner scanner = new Scanner(System.in);\n final int N = scanner.nextInt();\n\n boolean[] isZoromeList = new boolean[N];\n for (int i = 0; i < N; i++) {\n int n1 = scanner.nextInt();\n int n2 = scanner.nextInt();\n\n if (n1 == n2) {\n isZoromeList[i] = true;\n } else {\n isZoromeList[i] = false;\n }\n }\n\n boolean is3TimesZorome = false;\n for (int i = 0; i < isZoromeList.length - 2; i++) {\n if (isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]) {\n is3TimesZorome = true;\n }\n }\n\n System.out.println(is3TimesZorome ? \"Yes\" : \"No\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { final Scanner scanner = new Scanner(System.in); final int N = scanner.nextInt(); boolean[] isZoromeList = new boolean[N]; for (int i = 0; i < N; i++) { int n1 = scanner.nextInt(); int n2 = scanner.nextInt(); if (n1 == n2) { isZoromeList[i] = true; } else { isZoromeList[i] = false; } } boolean is3TimesZorome = false; for (int i = 0; i < isZoromeList.length - 2; i++) { if (isZoromeList[i] && isZoromeList[i + 1] && isZoromeList[i + 2]) { is3TimesZorome = true; } } System.out.println(is3TimesZorome ? "Yes" : "No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 2, 17, 17, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 2, 13, 13, 13, 13, 23, 13, 12, 13, 30, 29, 4, 13, 2, 4, 13, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 13, 2, 4, 13, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 17, 3, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 12, 13, 30, 29, 17, 23, 13, 12, 13, 30, 29, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ], [ 0, 34 ], [ 34, 35 ], [ 34, 36 ], [ 0, 37 ], [ 37, 38 ], [ 37, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ], [ 0, 46 ], [ 407, 47 ], [ 407, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 407, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 55, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 63, 66 ], [ 66, 67 ], [ 66, 68 ], [ 53, 69 ], [ 69, 70 ], [ 53, 71 ], [ 71, 72 ], [ 407, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 77, 83 ], [ 73, 84 ], [ 84, 85 ], [ 407, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 86, 99 ], [ 99, 100 ], [ 86, 101 ], [ 101, 102 ], [ 407, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 103, 116 ], [ 116, 117 ], [ 103, 118 ], [ 118, 119 ], [ 407, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 126, 128 ], [ 122, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 135, 137 ], [ 130, 138 ], [ 138, 139 ], [ 139, 140 ], [ 130, 141 ], [ 142, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 122, 150 ], [ 150, 151 ], [ 120, 152 ], [ 152, 153 ], [ 407, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 162, 163 ], [ 162, 164 ], [ 157, 165 ], [ 165, 166 ], [ 166, 167 ], [ 157, 168 ], [ 169, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 175, 179 ], [ 156, 180 ], [ 180, 181 ], [ 154, 182 ], [ 182, 183 ], [ 154, 184 ], [ 184, 185 ], [ 407, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 188, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 188, 197 ], [ 197, 198 ], [ 197, 199 ], [ 188, 200 ], [ 200, 201 ], [ 200, 202 ], [ 188, 203 ], [ 203, 204 ], [ 203, 205 ], [ 188, 207 ], [ 207, 208 ], [ 207, 209 ], [ 188, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 211, 216 ], [ 216, 217 ], [ 216, 218 ], [ 211, 219 ], [ 219, 220 ], [ 220, 221 ], [ 211, 222 ], [ 223, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 225, 227 ], [ 224, 228 ], [ 228, 229 ], [ 229, 230 ], [ 223, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 231, 235 ], [ 235, 236 ], [ 236, 237 ], [ 188, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 238, 243 ], [ 243, 244 ], [ 243, 245 ], [ 238, 246 ], [ 246, 247 ], [ 247, 248 ], [ 238, 249 ], [ 250, 250 ], [ 250, 251 ], [ 251, 252 ], [ 253, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 254, 258 ], [ 258, 259 ], [ 258, 260 ], [ 253, 261 ], [ 261, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 264, 266 ], [ 261, 267 ], [ 267, 268 ], [ 267, 269 ], [ 269, 270 ], [ 269, 271 ], [ 253, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 275, 277 ], [ 272, 278 ], [ 278, 279 ], [ 278, 280 ], [ 280, 281 ], [ 280, 282 ], [ 251, 283 ], [ 283, 284 ], [ 284, 285 ], [ 285, 286 ], [ 286, 287 ], [ 286, 288 ], [ 284, 289 ], [ 283, 290 ], [ 290, 291 ], [ 290, 292 ], [ 283, 293 ], [ 188, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 294, 298 ], [ 298, 299 ], [ 299, 300 ], [ 300, 301 ], [ 300, 302 ], [ 298, 303 ], [ 186, 304 ], [ 304, 305 ], [ 407, 306 ], [ 306, 307 ], [ 306, 308 ], [ 308, 309 ], [ 306, 310 ], [ 310, 311 ], [ 306, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 315, 316 ], [ 315, 317 ], [ 306, 318 ], [ 318, 319 ], [ 318, 320 ], [ 320, 321 ], [ 321, 322 ], [ 322, 323 ], [ 323, 324 ], [ 323, 325 ], [ 322, 326 ], [ 326, 327 ], [ 327, 328 ], [ 328, 329 ], [ 321, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 332, 334 ], [ 334, 335 ], [ 335, 336 ], [ 336, 337 ], [ 331, 338 ], [ 338, 339 ], [ 339, 340 ], [ 339, 341 ], [ 320, 342 ], [ 342, 343 ], [ 343, 344 ], [ 344, 345 ], [ 306, 346 ], [ 346, 347 ], [ 346, 348 ], [ 348, 349 ], [ 349, 350 ], [ 350, 351 ], [ 351, 352 ], [ 350, 353 ], [ 353, 354 ], [ 306, 355 ], [ 355, 356 ], [ 355, 357 ], [ 357, 358 ], [ 358, 359 ], [ 359, 360 ], [ 360, 361 ], [ 359, 362 ], [ 362, 363 ], [ 306, 364 ], [ 364, 365 ], [ 364, 366 ], [ 366, 367 ], [ 367, 368 ], [ 368, 369 ], [ 369, 370 ], [ 368, 371 ], [ 371, 372 ], [ 306, 373 ], [ 373, 374 ], [ 373, 375 ], [ 375, 376 ], [ 376, 377 ], [ 376, 378 ], [ 375, 379 ], [ 379, 380 ], [ 380, 381 ], [ 380, 382 ], [ 382, 383 ], [ 383, 384 ], [ 384, 385 ], [ 379, 386 ], [ 386, 387 ], [ 387, 388 ], [ 387, 389 ], [ 389, 390 ], [ 390, 391 ], [ 375, 392 ], [ 392, 393 ], [ 306, 394 ], [ 394, 395 ], [ 394, 396 ], [ 396, 397 ], [ 397, 398 ], [ 394, 399 ], [ 399, 400 ], [ 306, 401 ], [ 401, 402 ], [ 401, 403 ], [ 403, 404 ], [ 404, 405 ], [ 0, 406 ], [ 406, 407 ], [ 406, 408 ] ]
[ "\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\timport java.io.BufferedReader;\n\t\t\t\t\t\timport java.util.ArrayList;\n\t\t\t\t\t\timport java.util.Arrays;\n\t\t\t\t\t\timport java.util.Collections;\n\t\t\t\t\t\timport java.util.HashMap;\n\t\t\t\t\t\timport java.util.HashSet;\n\t\t\t\t\t\timport java.util.List;\n\t\t\t\t\t\timport java.util.Map;\n\t\t\t\t\t\timport java.io.IOException;\n\t\t\t\t\t\timport java.io.InputStreamReader;\n\t\t\t\t\timport java.math.BigInteger;\n\t\t\t\t\timport java.util.Scanner;\n\t\t\t\t\t\timport java.util.Set;\n\t\t\t\t\t\timport java.util.StringTokenizer;\n\t\t\t\t\timport java.util.Vector;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tpublic class Main {\n\t\t\t\t\t\t\t static class FastReader \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t BufferedReader br; \n\t\t\t\t\t\t\t StringTokenizer st; \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t public FastReader() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t br = new BufferedReader(new\n\t\t\t\t\t\t\t InputStreamReader(System.in)); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String next() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t while (st == null || !st.hasMoreTokens()) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t st = new StringTokenizer(br.readLine()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return st.nextToken();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t int nextInt() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Integer.parseInt(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t long nextLong() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Long.parseLong(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t double nextDouble() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Double.parseDouble(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String nextLine() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t String str = \"\"; \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t str = br.readLine(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return str; \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tpublic Character charAt(int i) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\tpublic BigInteger nextBigInteger() {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t static int gcd(int a , int b) {\n\t\t\t\t\t\t\t\t if(b==0)return a;\n\t\t\t\t\t\t\t\t return gcd(b,a%b);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * @param args\n\t\t\t\t\t\t\t * @throws IOException\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t static int m =(int) (1e9+7);\n\t\t\t\t\t\t\t static long mod(long x) {\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t return ((x%m+m)%m);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t static long add(long x,long y) {\n\t\t\t\t\t\t\t\t return mod((mod(x)+mod(y)));\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t static long mul(long x,long y) {\n\t\t\t\t\t\t\t\t return mod((mod(x)*mod(y)));\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t static int[] readAr(int n) {\n\t\t\t\t\t\t \tFastReader s=new FastReader();\n\t\t\t\t\t\t \tint [] ar = new int [n];\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tar[i]=s.nextInt();\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t static int[] printAr(int[] ar,int n) {\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tSystem.out.print(ar[i]+\" \");\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t\tpublic static void main(String[] args)throws IOException {\n\t\t\t\t\t\t\t\tFastReader s=new FastReader();\n\t\t\t\t\t\t\t\tint t =s.nextInt();\n\t\t\t\t\t\t\t\tint c=0,flag=0;\n\t\t\t\t\t\t\t\tint[] a = new int[t];\n\t\t\t\t\t\t\t\tint[] b = new int[t];\n\t\t\t\t\t\t\t\tfor(int i=0;i<t;i++) {\n\t\t\t\t\t\t\t\t\ta[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\tb[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int i=2;i<t;i++) {\n\t\t\t\t\t\t\t\t\tif(a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(a[i]+\" \"+b[i-1]+\" \"+a[i-2]);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(flag==0) System.out.println(\"No\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.HashSet;", "HashSet", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Map;", "Map", "java.util", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Set;", "Set", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "import java.util.Vector;", "Vector", "java.util", "public class Main {\n\t\t\t\t\t\t\t static class FastReader \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t BufferedReader br; \n\t\t\t\t\t\t\t StringTokenizer st; \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t public FastReader() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t br = new BufferedReader(new\n\t\t\t\t\t\t\t InputStreamReader(System.in)); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String next() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t while (st == null || !st.hasMoreTokens()) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t st = new StringTokenizer(br.readLine()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return st.nextToken();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t int nextInt() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Integer.parseInt(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t long nextLong() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Long.parseLong(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t double nextDouble() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Double.parseDouble(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String nextLine() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t String str = \"\"; \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t str = br.readLine(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return str; \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tpublic Character charAt(int i) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\tpublic BigInteger nextBigInteger() {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t static int gcd(int a , int b) {\n\t\t\t\t\t\t\t\t if(b==0)return a;\n\t\t\t\t\t\t\t\t return gcd(b,a%b);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * @param args\n\t\t\t\t\t\t\t * @throws IOException\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t static int m =(int) (1e9+7);\n\t\t\t\t\t\t\t static long mod(long x) {\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t return ((x%m+m)%m);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t static long add(long x,long y) {\n\t\t\t\t\t\t\t\t return mod((mod(x)+mod(y)));\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t static long mul(long x,long y) {\n\t\t\t\t\t\t\t\t return mod((mod(x)*mod(y)));\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t static int[] readAr(int n) {\n\t\t\t\t\t\t \tFastReader s=new FastReader();\n\t\t\t\t\t\t \tint [] ar = new int [n];\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tar[i]=s.nextInt();\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t static int[] printAr(int[] ar,int n) {\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tSystem.out.print(ar[i]+\" \");\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t\tpublic static void main(String[] args)throws IOException {\n\t\t\t\t\t\t\t\tFastReader s=new FastReader();\n\t\t\t\t\t\t\t\tint t =s.nextInt();\n\t\t\t\t\t\t\t\tint c=0,flag=0;\n\t\t\t\t\t\t\t\tint[] a = new int[t];\n\t\t\t\t\t\t\t\tint[] b = new int[t];\n\t\t\t\t\t\t\t\tfor(int i=0;i<t;i++) {\n\t\t\t\t\t\t\t\t\ta[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\tb[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int i=2;i<t;i++) {\n\t\t\t\t\t\t\t\t\tif(a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(a[i]+\" \"+b[i-1]+\" \"+a[i-2]);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(flag==0) System.out.println(\"No\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n}", "Main", "/**\n\t\t\t\t\t\t\t * @param args\n\t\t\t\t\t\t\t * @throws IOException\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t static int m =(int) (1e9+7);", "m", "(int) (1e9+7)", "1e9", "7", "static int gcd(int a , int b) {\n\t\t\t\t\t\t\t\t if(b==0)return a;\n\t\t\t\t\t\t\t\t return gcd(b,a%b);\n\t\t\t\t\t\t\t }", "gcd", "{\n\t\t\t\t\t\t\t\t if(b==0)return a;\n\t\t\t\t\t\t\t\t return gcd(b,a%b);\n\t\t\t\t\t\t\t }", "if(b==0)return a;", "b==0", "b", "0", "return a;", "a", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "int a", "a", "int b", "b", "static long mod(long x) {\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t return ((x%m+m)%m);\n\t\t\t\t\t\t\t }", "mod", "{\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t return ((x%m+m)%m);\n\t\t\t\t\t\t\t }", "return ((x%m+m)%m);", "((x%m+m)%m)", "(x%m+m)", "x%m", "x", "m", "m", "m", "long x", "x", "static long add(long x,long y) {\n\t\t\t\t\t\t\t\t return mod((mod(x)+mod(y)));\n\t\t\t\t\t\t\t }", "add", "{\n\t\t\t\t\t\t\t\t return mod((mod(x)+mod(y)));\n\t\t\t\t\t\t\t }", "return mod((mod(x)+mod(y)));", "mod((mod(x)+mod(y)))", "mod", "(mod(x)+mod(y))", "mod(x)", "mod", "x", "mod(y)", "mod", "y", "long x", "x", "long y", "y", "static long mul(long x,long y) {\n\t\t\t\t\t\t\t\t return mod((mod(x)*mod(y)));\n\t\t\t\t\t\t\t }", "mul", "{\n\t\t\t\t\t\t\t\t return mod((mod(x)*mod(y)));\n\t\t\t\t\t\t\t }", "return mod((mod(x)*mod(y)));", "mod((mod(x)*mod(y)))", "mod", "(mod(x)*mod(y))", "mod(x)", "mod", "x", "mod(y)", "mod", "y", "long x", "x", "long y", "y", "static int[] readAr(int n) {\n\t\t\t\t\t\t \tFastReader s=new FastReader();\n\t\t\t\t\t\t \tint [] ar = new int [n];\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tar[i]=s.nextInt();\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }", "readAr", "{\n\t\t\t\t\t\t \tFastReader s=new FastReader();\n\t\t\t\t\t\t \tint [] ar = new int [n];\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tar[i]=s.nextInt();\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }", "FastReader s=new FastReader();", "s", "new FastReader()", "int [] ar = new int [n];", "ar", "new int [n]", "n", "for(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tar[i]=s.nextInt();\n\t\t\t\t\t\t \t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t\t\t \t\tar[i]=s.nextInt();\n\t\t\t\t\t\t \t}", "{\n\t\t\t\t\t\t \t\tar[i]=s.nextInt();\n\t\t\t\t\t\t \t}", "ar[i]=s.nextInt()", "ar[i]", "ar", "i", "s.nextInt()", "s.nextInt", "s", "return ar;", "ar", "int n", "n", "static int[] printAr(int[] ar,int n) {\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tSystem.out.print(ar[i]+\" \");\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }", "printAr", "{\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tSystem.out.print(ar[i]+\" \");\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }", "for(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tSystem.out.print(ar[i]+\" \");\n\t\t\t\t\t\t \t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t\t\t \t\tSystem.out.print(ar[i]+\" \");\n\t\t\t\t\t\t \t}", "{\n\t\t\t\t\t\t \t\tSystem.out.print(ar[i]+\" \");\n\t\t\t\t\t\t \t}", "System.out.print(ar[i]+\" \")", "System.out.print", "System.out", "System", "System.out", "ar[i]+\" \"", "ar[i]", "ar", "i", "\" \"", "return ar;", "ar", "int[] ar", "ar", "int n", "n", "public static void main(String[] args)throws IOException {\n\t\t\t\t\t\t\t\tFastReader s=new FastReader();\n\t\t\t\t\t\t\t\tint t =s.nextInt();\n\t\t\t\t\t\t\t\tint c=0,flag=0;\n\t\t\t\t\t\t\t\tint[] a = new int[t];\n\t\t\t\t\t\t\t\tint[] b = new int[t];\n\t\t\t\t\t\t\t\tfor(int i=0;i<t;i++) {\n\t\t\t\t\t\t\t\t\ta[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\tb[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int i=2;i<t;i++) {\n\t\t\t\t\t\t\t\t\tif(a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(a[i]+\" \"+b[i-1]+\" \"+a[i-2]);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(flag==0) System.out.println(\"No\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "main", "{\n\t\t\t\t\t\t\t\tFastReader s=new FastReader();\n\t\t\t\t\t\t\t\tint t =s.nextInt();\n\t\t\t\t\t\t\t\tint c=0,flag=0;\n\t\t\t\t\t\t\t\tint[] a = new int[t];\n\t\t\t\t\t\t\t\tint[] b = new int[t];\n\t\t\t\t\t\t\t\tfor(int i=0;i<t;i++) {\n\t\t\t\t\t\t\t\t\ta[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\tb[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int i=2;i<t;i++) {\n\t\t\t\t\t\t\t\t\tif(a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(a[i]+\" \"+b[i-1]+\" \"+a[i-2]);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(flag==0) System.out.println(\"No\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "FastReader s=new FastReader();", "s", "new FastReader()", "int t =s.nextInt();", "t", "s.nextInt()", "s.nextInt", "s", "int c=0", "c", "0", "flag=0;", "flag", "0", "int[] a = new int[t];", "a", "new int[t]", "t", "int[] b = new int[t];", "b", "new int[t]", "t", "for(int i=0;i<t;i++) {\n\t\t\t\t\t\t\t\t\ta[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\tb[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<t", "i", "t", "i++", "i++", "i", "{\n\t\t\t\t\t\t\t\t\ta[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\tb[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\t\t\ta[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\tb[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "a[i]=s.nextInt()", "a[i]", "a", "i", "s.nextInt()", "s.nextInt", "s", "b[i]=s.nextInt()", "b[i]", "b", "i", "s.nextInt()", "s.nextInt", "s", "for(int i=2;i<t;i++) {\n\t\t\t\t\t\t\t\t\tif(a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(a[i]+\" \"+b[i-1]+\" \"+a[i-2]);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}", "int i=2;", "int i=2;", "i", "2", "i<t", "i", "t", "i++", "i++", "i", "{\n\t\t\t\t\t\t\t\t\tif(a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(a[i]+\" \"+b[i-1]+\" \"+a[i-2]);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\t\t\tif(a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(a[i]+\" \"+b[i-1]+\" \"+a[i-2]);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}", "if(a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(a[i]+\" \"+b[i-1]+\" \"+a[i-2]);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}", "a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]", "a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]", "a[i]==b[i]", "a[i]", "a", "i", "b[i]", "b", "i", "a[i-1]==b[i-1]", "a[i-1]", "a", "i-1", "i", "1", "b[i-1]", "b", "i-1", "i", "1", "a[i-2]==b[i-2]", "a[i-2]", "a", "i-2", "i", "2", "b[i-2]", "b", "i-2", "i", "2", "{\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(a[i]+\" \"+b[i-1]+\" \"+a[i-2]);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "flag=1", "flag", "1", "break;", "if(flag==0) System.out.println(\"No\");", "flag==0", "flag", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "static class FastReader \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t BufferedReader br; \n\t\t\t\t\t\t\t StringTokenizer st; \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t public FastReader() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t br = new BufferedReader(new\n\t\t\t\t\t\t\t InputStreamReader(System.in)); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String next() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t while (st == null || !st.hasMoreTokens()) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t st = new StringTokenizer(br.readLine()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return st.nextToken();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t int nextInt() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Integer.parseInt(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t long nextLong() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Long.parseLong(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t double nextDouble() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Double.parseDouble(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String nextLine() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t String str = \"\"; \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t str = br.readLine(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return str; \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tpublic Character charAt(int i) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\tpublic BigInteger nextBigInteger() {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t br = new BufferedReader(new\n\t\t\t\t\t\t\t InputStreamReader(System.in)); \n\t\t\t\t\t\t\t }", "FastReader", "{ \n\t\t\t\t\t\t\t br = new BufferedReader(new\n\t\t\t\t\t\t\t InputStreamReader(System.in)); \n\t\t\t\t\t\t\t }", "br = new BufferedReader(new\n\t\t\t\t\t\t\t InputStreamReader(System.in))", "br", "new BufferedReader(new\n\t\t\t\t\t\t\t InputStreamReader(System.in))", "String next() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t while (st == null || !st.hasMoreTokens()) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t st = new StringTokenizer(br.readLine()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return st.nextToken();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t }", "next", "{ \n\t\t\t\t\t\t\t while (st == null || !st.hasMoreTokens()) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t st = new StringTokenizer(br.readLine()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return st.nextToken();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t }", "while (st == null || !st.hasMoreTokens()) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t st = new StringTokenizer(br.readLine()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{ \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t st = new StringTokenizer(br.readLine()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t }", "try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t st = new StringTokenizer(br.readLine()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t }", "catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t }", "IOException e", "{ \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t }", "e.printStackTrace()", "e.printStackTrace", "e", "{ \n\t\t\t\t\t\t\t st = new StringTokenizer(br.readLine()); \n\t\t\t\t\t\t\t }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Integer.parseInt(next()); \n\t\t\t\t\t\t\t }", "nextInt", "{ \n\t\t\t\t\t\t\t return Integer.parseInt(next()); \n\t\t\t\t\t\t\t }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Long.parseLong(next()); \n\t\t\t\t\t\t\t }", "nextLong", "{ \n\t\t\t\t\t\t\t return Long.parseLong(next()); \n\t\t\t\t\t\t\t }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Double.parseDouble(next()); \n\t\t\t\t\t\t\t }", "nextDouble", "{ \n\t\t\t\t\t\t\t return Double.parseDouble(next()); \n\t\t\t\t\t\t\t }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t String str = \"\"; \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t str = br.readLine(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return str; \n\t\t\t\t\t\t\t }", "nextLine", "{ \n\t\t\t\t\t\t\t String str = \"\"; \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t str = br.readLine(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return str; \n\t\t\t\t\t\t\t }", "String str = \"\";", "str", "\"\"", "try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t str = br.readLine(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t }", "catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t }", "IOException e", "{ \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t }", "e.printStackTrace()", "e.printStackTrace", "e", "{ \n\t\t\t\t\t\t\t str = br.readLine(); \n\t\t\t\t\t\t\t }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public Character charAt(int i) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t}", "charAt", "{\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t}", "return null;", "null", "int i", "i", "public BigInteger nextBigInteger() {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t}", "nextBigInteger", "{\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t}", "return null;", "null", "public class Main {\n\t\t\t\t\t\t\t static class FastReader \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t BufferedReader br; \n\t\t\t\t\t\t\t StringTokenizer st; \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t public FastReader() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t br = new BufferedReader(new\n\t\t\t\t\t\t\t InputStreamReader(System.in)); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String next() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t while (st == null || !st.hasMoreTokens()) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t st = new StringTokenizer(br.readLine()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return st.nextToken();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t int nextInt() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Integer.parseInt(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t long nextLong() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Long.parseLong(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t double nextDouble() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Double.parseDouble(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String nextLine() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t String str = \"\"; \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t str = br.readLine(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return str; \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tpublic Character charAt(int i) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\tpublic BigInteger nextBigInteger() {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t static int gcd(int a , int b) {\n\t\t\t\t\t\t\t\t if(b==0)return a;\n\t\t\t\t\t\t\t\t return gcd(b,a%b);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * @param args\n\t\t\t\t\t\t\t * @throws IOException\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t static int m =(int) (1e9+7);\n\t\t\t\t\t\t\t static long mod(long x) {\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t return ((x%m+m)%m);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t static long add(long x,long y) {\n\t\t\t\t\t\t\t\t return mod((mod(x)+mod(y)));\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t static long mul(long x,long y) {\n\t\t\t\t\t\t\t\t return mod((mod(x)*mod(y)));\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t static int[] readAr(int n) {\n\t\t\t\t\t\t \tFastReader s=new FastReader();\n\t\t\t\t\t\t \tint [] ar = new int [n];\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tar[i]=s.nextInt();\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t static int[] printAr(int[] ar,int n) {\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tSystem.out.print(ar[i]+\" \");\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t\tpublic static void main(String[] args)throws IOException {\n\t\t\t\t\t\t\t\tFastReader s=new FastReader();\n\t\t\t\t\t\t\t\tint t =s.nextInt();\n\t\t\t\t\t\t\t\tint c=0,flag=0;\n\t\t\t\t\t\t\t\tint[] a = new int[t];\n\t\t\t\t\t\t\t\tint[] b = new int[t];\n\t\t\t\t\t\t\t\tfor(int i=0;i<t;i++) {\n\t\t\t\t\t\t\t\t\ta[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\tb[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int i=2;i<t;i++) {\n\t\t\t\t\t\t\t\t\tif(a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(a[i]+\" \"+b[i-1]+\" \"+a[i-2]);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(flag==0) System.out.println(\"No\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n}", "public class Main {\n\t\t\t\t\t\t\t static class FastReader \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t BufferedReader br; \n\t\t\t\t\t\t\t StringTokenizer st; \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t public FastReader() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t br = new BufferedReader(new\n\t\t\t\t\t\t\t InputStreamReader(System.in)); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String next() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t while (st == null || !st.hasMoreTokens()) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t st = new StringTokenizer(br.readLine()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return st.nextToken();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t int nextInt() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Integer.parseInt(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t long nextLong() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Long.parseLong(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t double nextDouble() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t return Double.parseDouble(next()); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String nextLine() \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t String str = \"\"; \n\t\t\t\t\t\t\t try\n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t str = br.readLine(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t catch (IOException e) \n\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t e.printStackTrace(); \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t return str; \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tpublic Character charAt(int i) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\tpublic BigInteger nextBigInteger() {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t static int gcd(int a , int b) {\n\t\t\t\t\t\t\t\t if(b==0)return a;\n\t\t\t\t\t\t\t\t return gcd(b,a%b);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * @param args\n\t\t\t\t\t\t\t * @throws IOException\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t static int m =(int) (1e9+7);\n\t\t\t\t\t\t\t static long mod(long x) {\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t return ((x%m+m)%m);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t static long add(long x,long y) {\n\t\t\t\t\t\t\t\t return mod((mod(x)+mod(y)));\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t static long mul(long x,long y) {\n\t\t\t\t\t\t\t\t return mod((mod(x)*mod(y)));\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t static int[] readAr(int n) {\n\t\t\t\t\t\t \tFastReader s=new FastReader();\n\t\t\t\t\t\t \tint [] ar = new int [n];\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tar[i]=s.nextInt();\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t static int[] printAr(int[] ar,int n) {\n\t\t\t\t\t\t \tfor(int i=0;i<n;i++) {\n\t\t\t\t\t\t \t\tSystem.out.print(ar[i]+\" \");\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \treturn ar;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t\tpublic static void main(String[] args)throws IOException {\n\t\t\t\t\t\t\t\tFastReader s=new FastReader();\n\t\t\t\t\t\t\t\tint t =s.nextInt();\n\t\t\t\t\t\t\t\tint c=0,flag=0;\n\t\t\t\t\t\t\t\tint[] a = new int[t];\n\t\t\t\t\t\t\t\tint[] b = new int[t];\n\t\t\t\t\t\t\t\tfor(int i=0;i<t;i++) {\n\t\t\t\t\t\t\t\t\ta[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\tb[i]=s.nextInt();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor(int i=2;i<t;i++) {\n\t\t\t\t\t\t\t\t\tif(a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(a[i]+\" \"+b[i-1]+\" \"+a[i-2]);\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(flag==0) System.out.println(\"No\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n}", "Main" ]
import java.io.BufferedReader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigInteger; import java.util.Scanner; import java.util.Set; import java.util.StringTokenizer; import java.util.Vector; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreTokens()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } public Character charAt(int i) { // TODO Auto-generated method stub return null; } public BigInteger nextBigInteger() { // TODO Auto-generated method stub return null; } } static int gcd(int a , int b) { if(b==0)return a; return gcd(b,a%b); } /** * @param args * @throws IOException */ static int m =(int) (1e9+7); static long mod(long x) { return ((x%m+m)%m); } static long add(long x,long y) { return mod((mod(x)+mod(y))); } static long mul(long x,long y) { return mod((mod(x)*mod(y))); } static int[] readAr(int n) { FastReader s=new FastReader(); int [] ar = new int [n]; for(int i=0;i<n;i++) { ar[i]=s.nextInt(); } return ar; } static int[] printAr(int[] ar,int n) { for(int i=0;i<n;i++) { System.out.print(ar[i]+" "); } return ar; } public static void main(String[] args)throws IOException { FastReader s=new FastReader(); int t =s.nextInt(); int c=0,flag=0; int[] a = new int[t]; int[] b = new int[t]; for(int i=0;i<t;i++) { a[i]=s.nextInt(); b[i]=s.nextInt(); } for(int i=2;i<t;i++) { if(a[i]==b[i] && a[i-1]==b[i-1] && a[i-2]==b[i-2]) { // System.out.println(a[i]+" "+b[i-1]+" "+a[i-2]); System.out.println("Yes"); flag=1; break; } } if(flag==0) System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 46, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 6, 73 ], [ 73, 74 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n\t\tint shakeNum = sc.nextInt();\n \n \tint counter = 0;\n \n \tString rt = \"No\";\n \n \tfor(int i = 0; i < shakeNum; i++) {\n \tint num1 = sc.nextInt();\n \tint num2 = sc.nextInt();\n \n \tif(num1 == num2) {\n \tcounter += 1;\n \tif(counter >= 3) {\n \trt = \"Yes\";\n \tbreak;\n }\n } else {\n \tcounter = 0;\n }\n }\n \tSystem.out.println(rt);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n\t\tint shakeNum = sc.nextInt();\n \n \tint counter = 0;\n \n \tString rt = \"No\";\n \n \tfor(int i = 0; i < shakeNum; i++) {\n \tint num1 = sc.nextInt();\n \tint num2 = sc.nextInt();\n \n \tif(num1 == num2) {\n \tcounter += 1;\n \tif(counter >= 3) {\n \trt = \"Yes\";\n \tbreak;\n }\n } else {\n \tcounter = 0;\n }\n }\n \tSystem.out.println(rt);\n }\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n\t\tint shakeNum = sc.nextInt();\n \n \tint counter = 0;\n \n \tString rt = \"No\";\n \n \tfor(int i = 0; i < shakeNum; i++) {\n \tint num1 = sc.nextInt();\n \tint num2 = sc.nextInt();\n \n \tif(num1 == num2) {\n \tcounter += 1;\n \tif(counter >= 3) {\n \trt = \"Yes\";\n \tbreak;\n }\n } else {\n \tcounter = 0;\n }\n }\n \tSystem.out.println(rt);\n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n \n\t\tint shakeNum = sc.nextInt();\n \n \tint counter = 0;\n \n \tString rt = \"No\";\n \n \tfor(int i = 0; i < shakeNum; i++) {\n \tint num1 = sc.nextInt();\n \tint num2 = sc.nextInt();\n \n \tif(num1 == num2) {\n \tcounter += 1;\n \tif(counter >= 3) {\n \trt = \"Yes\";\n \tbreak;\n }\n } else {\n \tcounter = 0;\n }\n }\n \tSystem.out.println(rt);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int shakeNum = sc.nextInt();", "shakeNum", "sc.nextInt()", "sc.nextInt", "sc", "int counter = 0;", "counter", "0", "String rt = \"No\";", "rt", "\"No\"", "for(int i = 0; i < shakeNum; i++) {\n \tint num1 = sc.nextInt();\n \tint num2 = sc.nextInt();\n \n \tif(num1 == num2) {\n \tcounter += 1;\n \tif(counter >= 3) {\n \trt = \"Yes\";\n \tbreak;\n }\n } else {\n \tcounter = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < shakeNum", "i", "shakeNum", "i++", "i++", "i", "{\n \tint num1 = sc.nextInt();\n \tint num2 = sc.nextInt();\n \n \tif(num1 == num2) {\n \tcounter += 1;\n \tif(counter >= 3) {\n \trt = \"Yes\";\n \tbreak;\n }\n } else {\n \tcounter = 0;\n }\n }", "{\n \tint num1 = sc.nextInt();\n \tint num2 = sc.nextInt();\n \n \tif(num1 == num2) {\n \tcounter += 1;\n \tif(counter >= 3) {\n \trt = \"Yes\";\n \tbreak;\n }\n } else {\n \tcounter = 0;\n }\n }", "int num1 = sc.nextInt();", "num1", "sc.nextInt()", "sc.nextInt", "sc", "int num2 = sc.nextInt();", "num2", "sc.nextInt()", "sc.nextInt", "sc", "if(num1 == num2) {\n \tcounter += 1;\n \tif(counter >= 3) {\n \trt = \"Yes\";\n \tbreak;\n }\n } else {\n \tcounter = 0;\n }", "num1 == num2", "num1", "num2", "{\n \tcounter += 1;\n \tif(counter >= 3) {\n \trt = \"Yes\";\n \tbreak;\n }\n }", "counter += 1", "counter", "1", "if(counter >= 3) {\n \trt = \"Yes\";\n \tbreak;\n }", "counter >= 3", "counter", "3", "{\n \trt = \"Yes\";\n \tbreak;\n }", "rt = \"Yes\"", "rt", "\"Yes\"", "break;", "{\n \tcounter = 0;\n }", "counter = 0", "counter", "0", "System.out.println(rt)", "System.out.println", "System.out", "System", "System.out", "rt", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int shakeNum = sc.nextInt(); int counter = 0; String rt = "No"; for(int i = 0; i < shakeNum; i++) { int num1 = sc.nextInt(); int num2 = sc.nextInt(); if(num1 == num2) { counter += 1; if(counter >= 3) { rt = "Yes"; break; } } else { counter = 0; } } System.out.println(rt); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 38, 5, 13, 30, 29, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 0, 18, 18, 13, 13, 17, 4, 18, 13, 18, 13, 17, 0, 18, 18, 13, 13, 17, 4, 18, 13, 18, 13, 17, 4, 18, 18, 13, 13, 4, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 15, 27 ], [ 27, 28 ], [ 28, 29 ], [ 15, 30 ], [ 31, 31 ], [ 31, 32 ], [ 32, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 34, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 47, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 54, 60 ], [ 34, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 62, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 69, 75 ], [ 32, 76 ], [ 76, 77 ], [ 14, 78 ], [ 78, 79 ], [ 12, 80 ], [ 80, 81 ], [ 10, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 85, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 100, 101 ], [ 90, 102 ], [ 102, 103 ], [ 102, 104 ], [ 90, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 107, 115 ], [ 115, 116 ], [ 116, 117 ], [ 107, 118 ], [ 119, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 122, 127 ], [ 119, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 128, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 137, 138 ], [ 137, 139 ], [ 119, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 140, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 149, 150 ], [ 149, 151 ], [ 90, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 157, 158 ], [ 157, 159 ], [ 82, 160 ], [ 160, 161 ] ]
[ "import java.util.*;\nimport java.lang.*;\nimport java.io.*;\nclass Main\n{\n public static String function(int [][]arr){\n for(int i = 0; i < arr.length - 2; i++){\n if(arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1])\n return \"Yes\";\n }\n return \"No\";\n }\n \n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t try{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint T= Integer.parseInt(reader.readLine());\n int [][]arr = new int[T][2];\n\t\tfor(int i = 0; i < T; i++){\n\t\t String []str=reader.readLine().split(\" \");\n\t\t arr[i][0]=Integer.parseInt(str[0]);\n\t\t arr[i][1]=Integer.parseInt(str[1]);\n\t\t}\n System.out.println(function(arr));\n\t }\n\t catch( Exception e){\n\t return ;\n\t }\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "class Main\n{\n public static String function(int [][]arr){\n for(int i = 0; i < arr.length - 2; i++){\n if(arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1])\n return \"Yes\";\n }\n return \"No\";\n }\n \n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t try{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint T= Integer.parseInt(reader.readLine());\n int [][]arr = new int[T][2];\n\t\tfor(int i = 0; i < T; i++){\n\t\t String []str=reader.readLine().split(\" \");\n\t\t arr[i][0]=Integer.parseInt(str[0]);\n\t\t arr[i][1]=Integer.parseInt(str[1]);\n\t\t}\n System.out.println(function(arr));\n\t }\n\t catch( Exception e){\n\t return ;\n\t }\n\t}\n}", "Main", "public static String function(int [][]arr){\n for(int i = 0; i < arr.length - 2; i++){\n if(arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1])\n return \"Yes\";\n }\n return \"No\";\n }", "function", "{\n for(int i = 0; i < arr.length - 2; i++){\n if(arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1])\n return \"Yes\";\n }\n return \"No\";\n }", "for(int i = 0; i < arr.length - 2; i++){\n if(arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1])\n return \"Yes\";\n }", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length - 2", "i", "arr.length - 2", "arr.length", "arr", "arr.length", "2", "i++", "i++", "i", "{\n if(arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1])\n return \"Yes\";\n }", "{\n if(arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1])\n return \"Yes\";\n }", "if(arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1])\n return \"Yes\";", "arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]", "arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]", "arr[i][0] == arr[i][1]", "arr[i][0]", "arr[i]", "arr", "i", "0", "arr[i][1]", "arr[i]", "arr", "i", "1", "arr[i + 1][0] == arr[i + 1][1]", "arr[i + 1][0]", "arr[i + 1]", "arr", "i + 1", "i", "1", "0", "arr[i + 1][1]", "arr[i + 1]", "arr", "i + 1", "i", "1", "1", "arr[i + 2][0] == arr[i + 2][1]", "arr[i + 2][0]", "arr[i + 2]", "arr", "i + 2", "i", "2", "0", "arr[i + 2][1]", "arr[i + 2]", "arr", "i + 2", "i", "2", "1", "return \"Yes\";", "\"Yes\"", "return \"No\";", "\"No\"", "int [][]arr", "arr", "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t try{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint T= Integer.parseInt(reader.readLine());\n int [][]arr = new int[T][2];\n\t\tfor(int i = 0; i < T; i++){\n\t\t String []str=reader.readLine().split(\" \");\n\t\t arr[i][0]=Integer.parseInt(str[0]);\n\t\t arr[i][1]=Integer.parseInt(str[1]);\n\t\t}\n System.out.println(function(arr));\n\t }\n\t catch( Exception e){\n\t return ;\n\t }\n\t}", "main", "{\n\t try{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint T= Integer.parseInt(reader.readLine());\n int [][]arr = new int[T][2];\n\t\tfor(int i = 0; i < T; i++){\n\t\t String []str=reader.readLine().split(\" \");\n\t\t arr[i][0]=Integer.parseInt(str[0]);\n\t\t arr[i][1]=Integer.parseInt(str[1]);\n\t\t}\n System.out.println(function(arr));\n\t }\n\t catch( Exception e){\n\t return ;\n\t }\n\t}", "try{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint T= Integer.parseInt(reader.readLine());\n int [][]arr = new int[T][2];\n\t\tfor(int i = 0; i < T; i++){\n\t\t String []str=reader.readLine().split(\" \");\n\t\t arr[i][0]=Integer.parseInt(str[0]);\n\t\t arr[i][1]=Integer.parseInt(str[1]);\n\t\t}\n System.out.println(function(arr));\n\t }\n\t catch( Exception e){\n\t return ;\n\t }", "catch( Exception e){\n\t return ;\n\t }", "Exception e", "{\n\t return ;\n\t }", "return ;", "{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tint T= Integer.parseInt(reader.readLine());\n int [][]arr = new int[T][2];\n\t\tfor(int i = 0; i < T; i++){\n\t\t String []str=reader.readLine().split(\" \");\n\t\t arr[i][0]=Integer.parseInt(str[0]);\n\t\t arr[i][1]=Integer.parseInt(str[1]);\n\t\t}\n System.out.println(function(arr));\n\t }", "BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "int T= Integer.parseInt(reader.readLine());", "T", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "int [][]arr = new int[T][2];", "arr", "new int[T][2]", "T", "2", "for(int i = 0; i < T; i++){\n\t\t String []str=reader.readLine().split(\" \");\n\t\t arr[i][0]=Integer.parseInt(str[0]);\n\t\t arr[i][1]=Integer.parseInt(str[1]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < T", "i", "T", "i++", "i++", "i", "{\n\t\t String []str=reader.readLine().split(\" \");\n\t\t arr[i][0]=Integer.parseInt(str[0]);\n\t\t arr[i][1]=Integer.parseInt(str[1]);\n\t\t}", "{\n\t\t String []str=reader.readLine().split(\" \");\n\t\t arr[i][0]=Integer.parseInt(str[0]);\n\t\t arr[i][1]=Integer.parseInt(str[1]);\n\t\t}", "String []str=reader.readLine().split(\" \");", "str", "reader.readLine().split(\" \")", "reader.readLine().split", "reader.readLine()", "reader.readLine", "reader", "\" \"", "arr[i][0]=Integer.parseInt(str[0])", "arr[i][0]", "arr[i]", "arr", "i", "0", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "arr[i][1]=Integer.parseInt(str[1])", "arr[i][1]", "arr[i]", "arr", "i", "1", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "System.out.println(function(arr))", "System.out.println", "System.out", "System", "System.out", "function(arr)", "function", "arr", "String[] args", "args" ]
import java.util.*; import java.lang.*; import java.io.*; class Main { public static String function(int [][]arr){ for(int i = 0; i < arr.length - 2; i++){ if(arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) return "Yes"; } return "No"; } public static void main (String[] args) throws java.lang.Exception { try{ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); int T= Integer.parseInt(reader.readLine()); int [][]arr = new int[T][2]; for(int i = 0; i < T; i++){ String []str=reader.readLine().split(" "); arr[i][0]=Integer.parseInt(str[0]); arr[i][1]=Integer.parseInt(str[1]); } System.out.println(function(arr)); } catch( Exception e){ return ; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 18, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 41, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 8, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 70, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 86, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 85, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 8, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 106, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 6, 122 ], [ 122, 123 ] ]
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in); \n int N = sc.nextInt();\n boolean[] J = new boolean[N];\n int[] D1 = new int[N];\n int[] D2 = new int[N];\n for(int i = 0;i<N;i++){\n D1[i]=sc.nextInt();\n D2[i]=sc.nextInt();\n J[i]=D1[i]==D2[i];\n }\n int R = 0;\n boolean re=false;\n for(int i = 0;i<N;i++){\n if(J[i]){\n R++;\n }else{\n R=0;\n }\n if(R>2){\n re=true;\n break;\n }\n }\n if(re){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in); \n int N = sc.nextInt();\n boolean[] J = new boolean[N];\n int[] D1 = new int[N];\n int[] D2 = new int[N];\n for(int i = 0;i<N;i++){\n D1[i]=sc.nextInt();\n D2[i]=sc.nextInt();\n J[i]=D1[i]==D2[i];\n }\n int R = 0;\n boolean re=false;\n for(int i = 0;i<N;i++){\n if(J[i]){\n R++;\n }else{\n R=0;\n }\n if(R>2){\n re=true;\n break;\n }\n }\n if(re){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in); \n int N = sc.nextInt();\n boolean[] J = new boolean[N];\n int[] D1 = new int[N];\n int[] D2 = new int[N];\n for(int i = 0;i<N;i++){\n D1[i]=sc.nextInt();\n D2[i]=sc.nextInt();\n J[i]=D1[i]==D2[i];\n }\n int R = 0;\n boolean re=false;\n for(int i = 0;i<N;i++){\n if(J[i]){\n R++;\n }else{\n R=0;\n }\n if(R>2){\n re=true;\n break;\n }\n }\n if(re){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }", "main", "{\n\t\tScanner sc = new Scanner(System.in); \n int N = sc.nextInt();\n boolean[] J = new boolean[N];\n int[] D1 = new int[N];\n int[] D2 = new int[N];\n for(int i = 0;i<N;i++){\n D1[i]=sc.nextInt();\n D2[i]=sc.nextInt();\n J[i]=D1[i]==D2[i];\n }\n int R = 0;\n boolean re=false;\n for(int i = 0;i<N;i++){\n if(J[i]){\n R++;\n }else{\n R=0;\n }\n if(R>2){\n re=true;\n break;\n }\n }\n if(re){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "boolean[] J = new boolean[N];", "J", "new boolean[N]", "N", "int[] D1 = new int[N];", "D1", "new int[N]", "N", "int[] D2 = new int[N];", "D2", "new int[N]", "N", "for(int i = 0;i<N;i++){\n D1[i]=sc.nextInt();\n D2[i]=sc.nextInt();\n J[i]=D1[i]==D2[i];\n }", "int i = 0;", "int i = 0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n D1[i]=sc.nextInt();\n D2[i]=sc.nextInt();\n J[i]=D1[i]==D2[i];\n }", "{\n D1[i]=sc.nextInt();\n D2[i]=sc.nextInt();\n J[i]=D1[i]==D2[i];\n }", "D1[i]=sc.nextInt()", "D1[i]", "D1", "i", "sc.nextInt()", "sc.nextInt", "sc", "D2[i]=sc.nextInt()", "D2[i]", "D2", "i", "sc.nextInt()", "sc.nextInt", "sc", "J[i]=D1[i]==D2[i]", "J[i]", "J", "i", "D1[i]==D2[i]", "D1[i]", "D1", "i", "D2[i]", "D2", "i", "int R = 0;", "R", "0", "boolean re=false;", "re", "false", "for(int i = 0;i<N;i++){\n if(J[i]){\n R++;\n }else{\n R=0;\n }\n if(R>2){\n re=true;\n break;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n if(J[i]){\n R++;\n }else{\n R=0;\n }\n if(R>2){\n re=true;\n break;\n }\n }", "{\n if(J[i]){\n R++;\n }else{\n R=0;\n }\n if(R>2){\n re=true;\n break;\n }\n }", "if(J[i]){\n R++;\n }else{\n R=0;\n }", "J[i]", "J", "i", "{\n R++;\n }", "R++", "R", "{\n R=0;\n }", "R=0", "R", "0", "if(R>2){\n re=true;\n break;\n }", "R>2", "R", "2", "{\n re=true;\n break;\n }", "re=true", "re", "true", "break;", "if(re){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "re", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); boolean[] J = new boolean[N]; int[] D1 = new int[N]; int[] D2 = new int[N]; for(int i = 0;i<N;i++){ D1[i]=sc.nextInt(); D2[i]=sc.nextInt(); J[i]=D1[i]==D2[i]; } int R = 0; boolean re=false; for(int i = 0;i<N;i++){ if(J[i]){ R++; }else{ R=0; } if(R>2){ re=true; break; } } if(re){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 29, 17, 29, 17, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 8, 4, 13, 13, 13, 17, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 12, 25 ], [ 26, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 26, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 8, 49 ], [ 49, 50 ], [ 6, 51 ], [ 51, 52 ], [ 6, 53 ], [ 53, 54 ], [ 4, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 57, 66 ], [ 66, 67 ], [ 66, 68 ], [ 57, 70 ], [ 70, 71 ], [ 70, 72 ], [ 57, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 74, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 92, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 57, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 107, 110 ], [ 106, 111 ], [ 106, 112 ], [ 55, 113 ], [ 113, 114 ] ]
[ "import java.util.*;\nclass Main {\n static boolean isDoubletPresent(int[] A, int[] B) {\n int count = 0;\n for(int i = 0; i < A.length; i++) {\n if(A[i] == B[i]) {\n count++;\n }\n else {\n count = 0;\n }\n \n if(count >= 3) {\n return true;\n } \n }\n \n return false;\n }\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A[] = new int[N];\n int B[] = new int[N];\n \n for(int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n B[i] = sc.nextInt();\n }\n \n System.out.print(isDoubletPresent(A, B) ? \"Yes\" : \"No\");\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n static boolean isDoubletPresent(int[] A, int[] B) {\n int count = 0;\n for(int i = 0; i < A.length; i++) {\n if(A[i] == B[i]) {\n count++;\n }\n else {\n count = 0;\n }\n \n if(count >= 3) {\n return true;\n } \n }\n \n return false;\n }\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A[] = new int[N];\n int B[] = new int[N];\n \n for(int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n B[i] = sc.nextInt();\n }\n \n System.out.print(isDoubletPresent(A, B) ? \"Yes\" : \"No\");\n }\n}", "Main", "static boolean isDoubletPresent(int[] A, int[] B) {\n int count = 0;\n for(int i = 0; i < A.length; i++) {\n if(A[i] == B[i]) {\n count++;\n }\n else {\n count = 0;\n }\n \n if(count >= 3) {\n return true;\n } \n }\n \n return false;\n }", "isDoubletPresent", "{\n int count = 0;\n for(int i = 0; i < A.length; i++) {\n if(A[i] == B[i]) {\n count++;\n }\n else {\n count = 0;\n }\n \n if(count >= 3) {\n return true;\n } \n }\n \n return false;\n }", "int count = 0;", "count", "0", "for(int i = 0; i < A.length; i++) {\n if(A[i] == B[i]) {\n count++;\n }\n else {\n count = 0;\n }\n \n if(count >= 3) {\n return true;\n } \n }", "int i = 0;", "int i = 0;", "i", "0", "i < A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n if(A[i] == B[i]) {\n count++;\n }\n else {\n count = 0;\n }\n \n if(count >= 3) {\n return true;\n } \n }", "{\n if(A[i] == B[i]) {\n count++;\n }\n else {\n count = 0;\n }\n \n if(count >= 3) {\n return true;\n } \n }", "if(A[i] == B[i]) {\n count++;\n }\n else {\n count = 0;\n }", "A[i] == B[i]", "A[i]", "A", "i", "B[i]", "B", "i", "{\n count++;\n }", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "if(count >= 3) {\n return true;\n }", "count >= 3", "count", "3", "{\n return true;\n }", "return true;", "true", "return false;", "false", "int[] A", "A", "int[] B", "B", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A[] = new int[N];\n int B[] = new int[N];\n \n for(int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n B[i] = sc.nextInt();\n }\n \n System.out.print(isDoubletPresent(A, B) ? \"Yes\" : \"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int A[] = new int[N];\n int B[] = new int[N];\n \n for(int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n B[i] = sc.nextInt();\n }\n \n System.out.print(isDoubletPresent(A, B) ? \"Yes\" : \"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int A[] = new int[N];", "A", "new int[N]", "N", "int B[] = new int[N];", "B", "new int[N]", "N", "for(int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n B[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n A[i] = sc.nextInt();\n B[i] = sc.nextInt();\n }", "{\n A[i] = sc.nextInt();\n B[i] = sc.nextInt();\n }", "A[i] = sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "B[i] = sc.nextInt()", "B[i]", "B", "i", "sc.nextInt()", "sc.nextInt", "sc", "System.out.print(isDoubletPresent(A, B) ? \"Yes\" : \"No\")", "System.out.print", "System.out", "System", "System.out", "isDoubletPresent(A, B) ? \"Yes\" : \"No\"", "isDoubletPresent(A, B)", "isDoubletPresent", "A", "B", "\"Yes\"", "\"No\"", "String args[]", "args" ]
import java.util.*; class Main { static boolean isDoubletPresent(int[] A, int[] B) { int count = 0; for(int i = 0; i < A.length; i++) { if(A[i] == B[i]) { count++; } else { count = 0; } if(count >= 3) { return true; } } return false; } public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A[] = new int[N]; int B[] = new int[N]; for(int i = 0; i < N; i++) { A[i] = sc.nextInt(); B[i] = sc.nextInt(); } System.out.print(isDoubletPresent(A, B) ? "Yes" : "No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 13, 0, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 20, 14, 4, 18, 4, 18, 13, 4, 18, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 17, 30, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 2, 2, 13, 17, 13, 30, 14, 2, 4, 13, 18, 13, 2, 2, 13, 17, 13, 18, 13, 13, 17, 30, 0, 18, 13, 13, 17, 30, 14, 2, 4, 13, 18, 13, 13, 18, 13, 2, 2, 13, 17, 13, 17, 30, 0, 18, 13, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 2, 13, 13, 2, 18, 13, 13, 17, 30, 40, 13, 40, 13, 0, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 18, 13, 13, 17, 30, 40, 13, 40, 13, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 2, 13, 17, 0, 13, 4, 18, 13, 13, 2, 13, 13, 0, 13, 2, 13, 17, 41, 13, 8, 2, 13, 13, 13, 2, 4, 18, 13, 2, 13, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 2, 13, 17, 2, 13, 17, 17, 4, 18, 18, 13, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 396, 17 ], [ 396, 18 ], [ 18, 19 ], [ 18, 20 ], [ 396, 21 ], [ 21, 22 ], [ 396, 23 ], [ 23, 24 ], [ 23, 25 ], [ 396, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 28, 59 ], [ 59, 60 ], [ 26, 61 ], [ 61, 62 ], [ 396, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 65, 71 ], [ 71, 72 ], [ 71, 73 ], [ 65, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 65, 82 ], [ 82, 83 ], [ 82, 84 ], [ 65, 85 ], [ 85, 86 ], [ 85, 87 ], [ 65, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 96, 97 ], [ 97, 98 ], [ 88, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 105, 110 ], [ 110, 111 ], [ 111, 112 ], [ 104, 113 ], [ 113, 114 ], [ 114, 115 ], [ 104, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 100, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 65, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 128, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 63, 144 ], [ 144, 145 ], [ 396, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 149, 155 ], [ 155, 156 ], [ 156, 157 ], [ 148, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 159, 162 ], [ 162, 163 ], [ 162, 164 ], [ 146, 165 ], [ 165, 166 ], [ 146, 167 ], [ 167, 168 ], [ 396, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 176, 181 ], [ 181, 182 ], [ 181, 183 ], [ 176, 184 ], [ 184, 185 ], [ 185, 186 ], [ 176, 187 ], [ 188, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 194, 195 ], [ 194, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 196, 200 ], [ 189, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 204, 213 ], [ 213, 214 ], [ 213, 215 ], [ 203, 216 ], [ 202, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 189, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 228, 230 ], [ 226, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 233, 237 ], [ 225, 238 ], [ 224, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 240, 244 ], [ 171, 245 ], [ 245, 246 ], [ 245, 247 ], [ 171, 248 ], [ 248, 249 ], [ 248, 250 ], [ 171, 251 ], [ 251, 252 ], [ 251, 253 ], [ 171, 254 ], [ 254, 255 ], [ 254, 256 ], [ 171, 257 ], [ 257, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 258, 262 ], [ 262, 263 ], [ 263, 264 ], [ 263, 265 ], [ 262, 266 ], [ 257, 267 ], [ 267, 268 ], [ 268, 269 ], [ 267, 270 ], [ 270, 271 ], [ 171, 272 ], [ 272, 273 ], [ 272, 274 ], [ 274, 275 ], [ 274, 276 ], [ 171, 277 ], [ 277, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 278, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 282, 286 ], [ 277, 287 ], [ 287, 288 ], [ 288, 289 ], [ 287, 290 ], [ 290, 291 ], [ 171, 292 ], [ 292, 293 ], [ 292, 294 ], [ 171, 295 ], [ 295, 296 ], [ 296, 297 ], [ 297, 298 ], [ 297, 299 ], [ 295, 300 ], [ 300, 301 ], [ 300, 302 ], [ 295, 303 ], [ 303, 304 ], [ 304, 305 ], [ 295, 306 ], [ 307, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 310, 311 ], [ 310, 312 ], [ 309, 313 ], [ 308, 314 ], [ 314, 315 ], [ 315, 316 ], [ 315, 317 ], [ 317, 318 ], [ 318, 319 ], [ 317, 320 ], [ 317, 321 ], [ 321, 322 ], [ 321, 323 ], [ 314, 324 ], [ 324, 325 ], [ 324, 326 ], [ 326, 327 ], [ 326, 328 ], [ 171, 329 ], [ 329, 330 ], [ 329, 331 ], [ 331, 332 ], [ 332, 333 ], [ 331, 334 ], [ 331, 335 ], [ 335, 336 ], [ 335, 337 ], [ 171, 338 ], [ 338, 339 ], [ 338, 340 ], [ 340, 341 ], [ 340, 342 ], [ 171, 343 ], [ 343, 344 ], [ 343, 345 ], [ 345, 346 ], [ 346, 347 ], [ 346, 348 ], [ 345, 349 ], [ 345, 350 ], [ 350, 351 ], [ 351, 352 ], [ 352, 353 ], [ 351, 354 ], [ 354, 355 ], [ 354, 356 ], [ 351, 357 ], [ 350, 358 ], [ 171, 359 ], [ 359, 360 ], [ 360, 361 ], [ 361, 362 ], [ 361, 363 ], [ 359, 364 ], [ 364, 365 ], [ 364, 366 ], [ 359, 367 ], [ 367, 368 ], [ 368, 369 ], [ 359, 370 ], [ 371, 371 ], [ 371, 372 ], [ 372, 373 ], [ 373, 374 ], [ 374, 375 ], [ 374, 376 ], [ 372, 377 ], [ 377, 378 ], [ 378, 379 ], [ 379, 380 ], [ 379, 381 ], [ 378, 382 ], [ 382, 383 ], [ 382, 384 ], [ 377, 385 ], [ 171, 386 ], [ 386, 387 ], [ 387, 388 ], [ 388, 389 ], [ 388, 390 ], [ 169, 391 ], [ 391, 392 ], [ 169, 393 ], [ 393, 394 ], [ 0, 395 ], [ 395, 396 ], [ 395, 397 ] ]
[ "import java.io.*;\nimport java.math.BigDecimal;\nimport java.math.BigInteger;\nimport java.text.ParseException;\nimport java.util.*;\n\n\npublic class Main {\n\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static StringBuilder sb = new StringBuilder(\"\");\n\n static int[] inputArray(int n) throws IOException {\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n int n = Integer.parseInt(br.readLine());\n int res = 0;\n boolean found = false;\n for(int i = 0 ; i < n ; i++) {\n st = new StringTokenizer(br.readLine());\n if(st.nextToken().equals(st.nextToken())) {\n res++;\n }\n else {\n res = 0;\n }\n if(res == 3) {\n found = true;\n }\n }\n if(found) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n\n static int gcd(int a , int b) {\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }\n\n static void longestGcdSeq(int a[] , int n) {\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }\n\n}\n/*\n\nif(tree.size == 2) {\n\n}\n\n5 8\n5 1 2 4 3\n0 1\n0 2\n0 3\n0 4\n0 5\n1 1000000000\n1 1\n1 500000000\n\n\n */", "import java.io.*;", "io.*", "java", "import java.math.BigDecimal;", "BigDecimal", "java.math", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.text.ParseException;", "ParseException", "java.text", "import java.util.*;", "util.*", "java", "public class Main {\n\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static StringBuilder sb = new StringBuilder(\"\");\n\n static int[] inputArray(int n) throws IOException {\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n int n = Integer.parseInt(br.readLine());\n int res = 0;\n boolean found = false;\n for(int i = 0 ; i < n ; i++) {\n st = new StringTokenizer(br.readLine());\n if(st.nextToken().equals(st.nextToken())) {\n res++;\n }\n else {\n res = 0;\n }\n if(res == 3) {\n found = true;\n }\n }\n if(found) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n\n static int gcd(int a , int b) {\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }\n\n static void longestGcdSeq(int a[] , int n) {\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }\n\n}", "Main", "static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "static StringTokenizer st;", "st", "static StringBuilder sb = new StringBuilder(\"\");", "sb", "new StringBuilder(\"\")", "static int[] inputArray(int n) throws IOException {\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }", "inputArray", "{\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }", "int[] a = new int[n];", "a", "new int[n]", "n", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = Integer.parseInt(st.nextToken());\n }", "{\n a[i] = Integer.parseInt(st.nextToken());\n }", "a[i] = Integer.parseInt(st.nextToken())", "a[i]", "a", "i", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "return a;", "a", "int n", "n", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n int n = Integer.parseInt(br.readLine());\n int res = 0;\n boolean found = false;\n for(int i = 0 ; i < n ; i++) {\n st = new StringTokenizer(br.readLine());\n if(st.nextToken().equals(st.nextToken())) {\n res++;\n }\n else {\n res = 0;\n }\n if(res == 3) {\n found = true;\n }\n }\n if(found) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n int n = Integer.parseInt(br.readLine());\n int res = 0;\n boolean found = false;\n for(int i = 0 ; i < n ; i++) {\n st = new StringTokenizer(br.readLine());\n if(st.nextToken().equals(st.nextToken())) {\n res++;\n }\n else {\n res = 0;\n }\n if(res == 3) {\n found = true;\n }\n }\n if(found) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st;", "st", "StringBuilder sb = new StringBuilder(\"\");", "sb", "new StringBuilder(\"\")", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int res = 0;", "res", "0", "boolean found = false;", "found", "false", "for(int i = 0 ; i < n ; i++) {\n st = new StringTokenizer(br.readLine());\n if(st.nextToken().equals(st.nextToken())) {\n res++;\n }\n else {\n res = 0;\n }\n if(res == 3) {\n found = true;\n }\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n st = new StringTokenizer(br.readLine());\n if(st.nextToken().equals(st.nextToken())) {\n res++;\n }\n else {\n res = 0;\n }\n if(res == 3) {\n found = true;\n }\n }", "{\n st = new StringTokenizer(br.readLine());\n if(st.nextToken().equals(st.nextToken())) {\n res++;\n }\n else {\n res = 0;\n }\n if(res == 3) {\n found = true;\n }\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "if(st.nextToken().equals(st.nextToken())) {\n res++;\n }\n else {\n res = 0;\n }", "st.nextToken().equals(st.nextToken())", "st.nextToken().equals", "st.nextToken()", "st.nextToken", "st", "st.nextToken()", "st.nextToken", "st", "{\n res++;\n }", "res++", "res", "{\n res = 0;\n }", "res = 0", "res", "0", "if(res == 3) {\n found = true;\n }", "res == 3", "res", "3", "{\n found = true;\n }", "found = true", "found", "true", "if(found) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }", "found", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "static int gcd(int a , int b) {\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }", "gcd", "{\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }", "if(a % b == 0) {\n return b;\n }", "a % b == 0", "a % b", "a", "b", "0", "{\n return b;\n }", "return b;", "b", "return gcd(b , a % b);", "gcd(b , a % b)", "gcd", "b", "a % b", "a", "b", "int a", "a", "int b", "b", "static void longestGcdSeq(int a[] , int n) {\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }", "longestGcdSeq", "{\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }", "int coprimes[] = new int[n];", "coprimes", "new int[n]", "n", "for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }", "{\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }", "if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }", "a[i] < a[(i+1)%n]", "a[i]", "a", "i", "a[(i+1)%n]", "a", "(i+1)%n", "(i+1)", "i", "1", "n", "{\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }", "if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }", "gcd(a[(i+1)%n] , a[i]) != 1", "gcd(a[(i+1)%n] , a[i])", "gcd", "a[(i+1)%n]", "a", "(i+1)%n", "(i+1)", "i", "1", "n", "a[i]", "a", "i", "1", "{\n coprimes[i] = 1;\n }", "coprimes[i] = 1", "coprimes[i]", "coprimes", "i", "1", "{\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }", "if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }", "gcd(a[i] , a[(i+1)%n]) != 1", "gcd(a[i] , a[(i+1)%n])", "gcd", "a[i]", "a", "i", "a[(i+1)%n]", "a", "(i+1)%n", "(i+1)", "i", "1", "n", "1", "{\n coprimes[i] = 1;\n }", "coprimes[i] = 1", "coprimes[i]", "coprimes", "i", "1", "int maxLen = 0", "maxLen", "0", "startLen = 0", "startLen", "0", "endLen = 0;", "endLen", "0", "int i = 0;", "i", "0", "while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }", "i < n && coprimes[i] == 1", "i < n", "i", "n", "coprimes[i] == 1", "coprimes[i]", "coprimes", "i", "1", "{\n startLen++;\n i++;\n }", "startLen++", "startLen", "i++", "i", "i = n -1", "i", "n -1", "n", "1", "while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }", "i >= 0 && coprimes[i] == 1", "i >= 0", "i", "0", "coprimes[i] == 1", "coprimes[i]", "coprimes", "i", "1", "{\n endLen++;\n i--;\n }", "endLen++", "endLen", "i--", "i", "int start = 0;", "start", "0", "for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }", "i = 0 ;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }", "{\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }", "if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }", "coprimes[i] == 0", "coprimes[i]", "coprimes", "i", "0", "{\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }", "maxLen = Math.max(maxLen , i - start)", "maxLen", "Math.max(maxLen , i - start)", "Math.max", "Math", "maxLen", "i - start", "i", "start", "start = i + 1", "start", "i + 1", "i", "1", "maxLen = Math.max(maxLen , i - start)", "maxLen", "Math.max(maxLen , i - start)", "Math.max", "Math", "maxLen", "i - start", "i", "start", "start = i + 1", "start", "i + 1", "i", "1", "int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;", "contMax", "startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1", "startLen == n", "startLen", "n", "n", "Math.max(startLen + endLen , maxLen) + 1", "Math.max(startLen + endLen , maxLen)", "Math.max", "Math", "startLen + endLen", "startLen", "endLen", "maxLen", "1", "for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }", "int k = 2 ;", "int k = 2 ;", "k", "2", "k <= n", "k", "n", "k++", "k++", "k", "{\n System.out.print((contMax-1)/(k-1) + \" \");\n }", "{\n System.out.print((contMax-1)/(k-1) + \" \");\n }", "System.out.print((contMax-1)/(k-1) + \" \")", "System.out.print", "System.out", "System", "System.out", "(contMax-1)/(k-1) + \" \"", "(contMax-1)/(k-1)", "(contMax-1)", "contMax", "1", "(k-1)", "k", "1", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int a[]", "a", "int n", "n", "public class Main {\n\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static StringBuilder sb = new StringBuilder(\"\");\n\n static int[] inputArray(int n) throws IOException {\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n int n = Integer.parseInt(br.readLine());\n int res = 0;\n boolean found = false;\n for(int i = 0 ; i < n ; i++) {\n st = new StringTokenizer(br.readLine());\n if(st.nextToken().equals(st.nextToken())) {\n res++;\n }\n else {\n res = 0;\n }\n if(res == 3) {\n found = true;\n }\n }\n if(found) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n\n static int gcd(int a , int b) {\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }\n\n static void longestGcdSeq(int a[] , int n) {\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }\n\n}", "public class Main {\n\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static StringBuilder sb = new StringBuilder(\"\");\n\n static int[] inputArray(int n) throws IOException {\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n int n = Integer.parseInt(br.readLine());\n int res = 0;\n boolean found = false;\n for(int i = 0 ; i < n ; i++) {\n st = new StringTokenizer(br.readLine());\n if(st.nextToken().equals(st.nextToken())) {\n res++;\n }\n else {\n res = 0;\n }\n if(res == 3) {\n found = true;\n }\n }\n if(found) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n\n static int gcd(int a , int b) {\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }\n\n static void longestGcdSeq(int a[] , int n) {\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }\n\n}", "Main" ]
import java.io.*; import java.math.BigDecimal; import java.math.BigInteger; import java.text.ParseException; import java.util.*; public class Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokenizer st; static StringBuilder sb = new StringBuilder(""); static int[] inputArray(int n) throws IOException { int[] a = new int[n]; st = new StringTokenizer(br.readLine()); for(int i = 0 ; i < n ; i++) { a[i] = Integer.parseInt(st.nextToken()); } return a; } public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; StringBuilder sb = new StringBuilder(""); int n = Integer.parseInt(br.readLine()); int res = 0; boolean found = false; for(int i = 0 ; i < n ; i++) { st = new StringTokenizer(br.readLine()); if(st.nextToken().equals(st.nextToken())) { res++; } else { res = 0; } if(res == 3) { found = true; } } if(found) { System.out.println("Yes"); } else { System.out.println("No"); } } static int gcd(int a , int b) { if(a % b == 0) { return b; } return gcd(b , a % b); } static void longestGcdSeq(int a[] , int n) { int coprimes[] = new int[n]; for(int i = 0 ; i < n ; i++) { if(a[i] < a[(i+1)%n]) { if(gcd(a[(i+1)%n] , a[i]) != 1) { coprimes[i] = 1; } } else { if(gcd(a[i] , a[(i+1)%n]) != 1) { coprimes[i] = 1; } } } //System.out.println(Arrays.toString(coprimes)); int maxLen = 0 , startLen = 0 , endLen = 0; int i = 0; while(i < n && coprimes[i] == 1) { startLen++; i++; } i = n -1; while(i >= 0 && coprimes[i] == 1) { endLen++; i--; } int start = 0; for(i = 0 ; i < n ; i++) { if(coprimes[i] == 0) { maxLen = Math.max(maxLen , i - start); start = i + 1; } } maxLen = Math.max(maxLen , i - start); start = i + 1; //System.out.println(startLen + " " + maxLen + " " + endLen); int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1; //System.out.println(contMax); for(int k = 2 ; k <= n ; k++) { System.out.print((contMax-1)/(k-1) + " "); } System.out.println(); } } /* if(tree.size == 2) { } 5 8 5 1 2 4 3 0 1 0 2 0 3 0 4 0 5 1 1000000000 1 1 1 500000000 */
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 35, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 8, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 70, 73 ], [ 6, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int count = 0;\n boolean check = false;\n for (int i = 0; i < n; i++) {\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n\n if (count > 2) {\n check = true;\n }\n }\n System.out.println(check ? \"Yes\" : \"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int count = 0;\n boolean check = false;\n for (int i = 0; i < n; i++) {\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n\n if (count > 2) {\n check = true;\n }\n }\n System.out.println(check ? \"Yes\" : \"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int count = 0;\n boolean check = false;\n for (int i = 0; i < n; i++) {\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n\n if (count > 2) {\n check = true;\n }\n }\n System.out.println(check ? \"Yes\" : \"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int count = 0;\n boolean check = false;\n for (int i = 0; i < n; i++) {\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n\n if (count > 2) {\n check = true;\n }\n }\n System.out.println(check ? \"Yes\" : \"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "boolean check = false;", "check", "false", "for (int i = 0; i < n; i++) {\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n\n if (count > 2) {\n check = true;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n\n if (count > 2) {\n check = true;\n }\n }", "{\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n\n if (count > 2) {\n check = true;\n }\n }", "int d1 = sc.nextInt();", "d1", "sc.nextInt()", "sc.nextInt", "sc", "int d2 = sc.nextInt();", "d2", "sc.nextInt()", "sc.nextInt", "sc", "if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }", "d1 == d2", "d1", "d2", "{\n count++;\n }", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "if (count > 2) {\n check = true;\n }", "count > 2", "count", "2", "{\n check = true;\n }", "check = true", "check", "true", "System.out.println(check ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "check ? \"Yes\" : \"No\"", "check", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int count = 0;\n boolean check = false;\n for (int i = 0; i < n; i++) {\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n\n if (count > 2) {\n check = true;\n }\n }\n System.out.println(check ? \"Yes\" : \"No\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int count = 0;\n boolean check = false;\n for (int i = 0; i < n; i++) {\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n\n if (count > 2) {\n check = true;\n }\n }\n System.out.println(check ? \"Yes\" : \"No\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int count = 0; boolean check = false; for (int i = 0; i < n; i++) { int d1 = sc.nextInt(); int d2 = sc.nextInt(); if (d1 == d2) { count++; } else { count = 0; } if (count > 2) { check = true; } } System.out.println(check ? "Yes" : "No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 14, 2, 13, 17, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 13, 13, 30, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 3, 40, 13, 40, 13, 40, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 128, 5 ], [ 128, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 59, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 76, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 74, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 73, 103 ], [ 103, 104 ], [ 73, 105 ], [ 105, 106 ], [ 73, 107 ], [ 107, 108 ], [ 8, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 109, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 6, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.util.*;\n\npublic class Main\n{\n\n public static void main(String args[])\n {\n Scanner kb = new Scanner(System.in);\n int n = kb.nextInt();\n\n int d1[] = new int[n];\n int d2[] = new int[n];\n\n for(int i = 0 ; i < n ; i++)\n {\n d1[i] = kb.nextInt();\n d2[i] = kb.nextInt();\n }\n\n int flag = 0;\n\n if(n >= 3)\n {\n int p1 = 0;\n int p2 = 1;\n int p3 = 2;\n\n while(p3 < n)\n {\n if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3])\n {\n flag = 1;\n break;\n }\n\n p1++;\n p2++;\n p3++;\n }\n }\n\n if(flag == 1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main\n{\n\n public static void main(String args[])\n {\n Scanner kb = new Scanner(System.in);\n int n = kb.nextInt();\n\n int d1[] = new int[n];\n int d2[] = new int[n];\n\n for(int i = 0 ; i < n ; i++)\n {\n d1[i] = kb.nextInt();\n d2[i] = kb.nextInt();\n }\n\n int flag = 0;\n\n if(n >= 3)\n {\n int p1 = 0;\n int p2 = 1;\n int p3 = 2;\n\n while(p3 < n)\n {\n if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3])\n {\n flag = 1;\n break;\n }\n\n p1++;\n p2++;\n p3++;\n }\n }\n\n if(flag == 1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }\n}", "Main", "public static void main(String args[])\n {\n Scanner kb = new Scanner(System.in);\n int n = kb.nextInt();\n\n int d1[] = new int[n];\n int d2[] = new int[n];\n\n for(int i = 0 ; i < n ; i++)\n {\n d1[i] = kb.nextInt();\n d2[i] = kb.nextInt();\n }\n\n int flag = 0;\n\n if(n >= 3)\n {\n int p1 = 0;\n int p2 = 1;\n int p3 = 2;\n\n while(p3 < n)\n {\n if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3])\n {\n flag = 1;\n break;\n }\n\n p1++;\n p2++;\n p3++;\n }\n }\n\n if(flag == 1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }", "main", "{\n Scanner kb = new Scanner(System.in);\n int n = kb.nextInt();\n\n int d1[] = new int[n];\n int d2[] = new int[n];\n\n for(int i = 0 ; i < n ; i++)\n {\n d1[i] = kb.nextInt();\n d2[i] = kb.nextInt();\n }\n\n int flag = 0;\n\n if(n >= 3)\n {\n int p1 = 0;\n int p2 = 1;\n int p3 = 2;\n\n while(p3 < n)\n {\n if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3])\n {\n flag = 1;\n break;\n }\n\n p1++;\n p2++;\n p3++;\n }\n }\n\n if(flag == 1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }", "Scanner kb = new Scanner(System.in);", "kb", "new Scanner(System.in)", "int n = kb.nextInt();", "n", "kb.nextInt()", "kb.nextInt", "kb", "int d1[] = new int[n];", "d1", "new int[n]", "n", "int d2[] = new int[n];", "d2", "new int[n]", "n", "for(int i = 0 ; i < n ; i++)\n {\n d1[i] = kb.nextInt();\n d2[i] = kb.nextInt();\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n d1[i] = kb.nextInt();\n d2[i] = kb.nextInt();\n }", "{\n d1[i] = kb.nextInt();\n d2[i] = kb.nextInt();\n }", "d1[i] = kb.nextInt()", "d1[i]", "d1", "i", "kb.nextInt()", "kb.nextInt", "kb", "d2[i] = kb.nextInt()", "d2[i]", "d2", "i", "kb.nextInt()", "kb.nextInt", "kb", "int flag = 0;", "flag", "0", "if(n >= 3)\n {\n int p1 = 0;\n int p2 = 1;\n int p3 = 2;\n\n while(p3 < n)\n {\n if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3])\n {\n flag = 1;\n break;\n }\n\n p1++;\n p2++;\n p3++;\n }\n }", "n >= 3", "n", "3", "{\n int p1 = 0;\n int p2 = 1;\n int p3 = 2;\n\n while(p3 < n)\n {\n if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3])\n {\n flag = 1;\n break;\n }\n\n p1++;\n p2++;\n p3++;\n }\n }", "int p1 = 0;", "p1", "0", "int p2 = 1;", "p2", "1", "int p3 = 2;", "p3", "2", "while(p3 < n)\n {\n if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3])\n {\n flag = 1;\n break;\n }\n\n p1++;\n p2++;\n p3++;\n }", "p3 < n", "p3", "n", "{\n if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3])\n {\n flag = 1;\n break;\n }\n\n p1++;\n p2++;\n p3++;\n }", "if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3])\n {\n flag = 1;\n break;\n }", "d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3]", "d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3]", "d1[p1] == d2[p1]", "d1[p1]", "d1", "p1", "d2[p1]", "d2", "p1", "d1[p2] == d2[p2]", "d1[p2]", "d1", "p2", "d2[p2]", "d2", "p2", "d1[p3] == d2[p3]", "d1[p3]", "d1", "p3", "d2[p3]", "d2", "p3", "{\n flag = 1;\n break;\n }", "flag = 1", "flag", "1", "break;", "p1++", "p1", "p2++", "p2", "p3++", "p3", "if(flag == 1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "flag == 1", "flag", "1", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String args[]", "args", "public class Main\n{\n\n public static void main(String args[])\n {\n Scanner kb = new Scanner(System.in);\n int n = kb.nextInt();\n\n int d1[] = new int[n];\n int d2[] = new int[n];\n\n for(int i = 0 ; i < n ; i++)\n {\n d1[i] = kb.nextInt();\n d2[i] = kb.nextInt();\n }\n\n int flag = 0;\n\n if(n >= 3)\n {\n int p1 = 0;\n int p2 = 1;\n int p3 = 2;\n\n while(p3 < n)\n {\n if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3])\n {\n flag = 1;\n break;\n }\n\n p1++;\n p2++;\n p3++;\n }\n }\n\n if(flag == 1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }\n}", "public class Main\n{\n\n public static void main(String args[])\n {\n Scanner kb = new Scanner(System.in);\n int n = kb.nextInt();\n\n int d1[] = new int[n];\n int d2[] = new int[n];\n\n for(int i = 0 ; i < n ; i++)\n {\n d1[i] = kb.nextInt();\n d2[i] = kb.nextInt();\n }\n\n int flag = 0;\n\n if(n >= 3)\n {\n int p1 = 0;\n int p2 = 1;\n int p3 = 2;\n\n while(p3 < n)\n {\n if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3])\n {\n flag = 1;\n break;\n }\n\n p1++;\n p2++;\n p3++;\n }\n }\n\n if(flag == 1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]) { Scanner kb = new Scanner(System.in); int n = kb.nextInt(); int d1[] = new int[n]; int d2[] = new int[n]; for(int i = 0 ; i < n ; i++) { d1[i] = kb.nextInt(); d2[i] = kb.nextInt(); } int flag = 0; if(n >= 3) { int p1 = 0; int p2 = 1; int p3 = 2; while(p3 < n) { if(d1[p1] == d2[p1] && d1[p2] == d2[p2] && d1[p3] == d2[p3]) { flag = 1; break; } p1++; p2++; p3++; } } if(flag == 1) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 40, 13, 14, 2, 13, 13, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 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 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 28, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 6, 73 ], [ 73, 74 ] ]
[ "import java.util.*;\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();int cnt=0;boolean f=false;\n\t\twhile(n--!=0) {\n\t\t\tint d1=sc.nextInt(),d2=sc.nextInt();\n\t\t\tif(d1==d2)cnt++;\n\t\t\telse if(d1!=d2)cnt=0;\n\t\t\tif(cnt>=3)f=true;\n\t\t}\n\t\tif(f)System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}\n\n}", "import java.util.*;", "util.*", "java", "class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();int cnt=0;boolean f=false;\n\t\twhile(n--!=0) {\n\t\t\tint d1=sc.nextInt(),d2=sc.nextInt();\n\t\t\tif(d1==d2)cnt++;\n\t\t\telse if(d1!=d2)cnt=0;\n\t\t\tif(cnt>=3)f=true;\n\t\t}\n\t\tif(f)System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();int cnt=0;boolean f=false;\n\t\twhile(n--!=0) {\n\t\t\tint d1=sc.nextInt(),d2=sc.nextInt();\n\t\t\tif(d1==d2)cnt++;\n\t\t\telse if(d1!=d2)cnt=0;\n\t\t\tif(cnt>=3)f=true;\n\t\t}\n\t\tif(f)System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();int cnt=0;boolean f=false;\n\t\twhile(n--!=0) {\n\t\t\tint d1=sc.nextInt(),d2=sc.nextInt();\n\t\t\tif(d1==d2)cnt++;\n\t\t\telse if(d1!=d2)cnt=0;\n\t\t\tif(cnt>=3)f=true;\n\t\t}\n\t\tif(f)System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int cnt=0;", "cnt", "0", "boolean f=false;", "f", "false", "while(n--!=0) {\n\t\t\tint d1=sc.nextInt(),d2=sc.nextInt();\n\t\t\tif(d1==d2)cnt++;\n\t\t\telse if(d1!=d2)cnt=0;\n\t\t\tif(cnt>=3)f=true;\n\t\t}", "n--!=0", "n--", "n", "0", "{\n\t\t\tint d1=sc.nextInt(),d2=sc.nextInt();\n\t\t\tif(d1==d2)cnt++;\n\t\t\telse if(d1!=d2)cnt=0;\n\t\t\tif(cnt>=3)f=true;\n\t\t}", "int d1=sc.nextInt()", "d1", "sc.nextInt()", "sc.nextInt", "sc", "d2=sc.nextInt();", "d2", "sc.nextInt()", "sc.nextInt", "sc", "if(d1==d2)cnt++;\n\t\t\telse if(d1!=d2)cnt=0;", "d1==d2", "d1", "d2", "cnt++", "cnt", "if(d1!=d2)cnt=0;", "d1!=d2", "d1", "d2", "cnt=0", "cnt", "0", "if(cnt>=3)f=true;", "cnt>=3", "cnt", "3", "f=true", "f", "true", "if(f)System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");", "f", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt();int cnt=0;boolean f=false; while(n--!=0) { int d1=sc.nextInt(),d2=sc.nextInt(); if(d1==d2)cnt++; else if(d1!=d2)cnt=0; if(cnt>=3)f=true; } if(f)System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 13, 13, 42, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 0, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 42, 2, 40, 13, 17, 30, 0, 13, 4, 18, 13, 0, 13, 17, 0, 13, 17, 42, 2, 40, 13, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 13, 13, 40, 13, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 13, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 18, 13, 13, 13, 29, 2, 13, 18, 13, 13, 29, 2, 18, 36, 13, 18, 13, 13, 23, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 369, 8 ], [ 369, 9 ], [ 9, 10 ], [ 369, 11 ], [ 11, 12 ], [ 369, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 18, 22 ], [ 15, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 25, 29 ], [ 15, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 36, 42 ], [ 42, 43 ], [ 42, 44 ], [ 36, 45 ], [ 45, 46 ], [ 45, 47 ], [ 15, 48 ], [ 48, 49 ], [ 13, 50 ], [ 50, 51 ], [ 13, 52 ], [ 52, 53 ], [ 369, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 56, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 66, 68 ], [ 56, 69 ], [ 69, 70 ], [ 56, 71 ], [ 71, 72 ], [ 56, 73 ], [ 73, 74 ], [ 56, 75 ], [ 75, 76 ], [ 56, 77 ], [ 77, 78 ], [ 56, 79 ], [ 79, 80 ], [ 56, 81 ], [ 81, 82 ], [ 56, 83 ], [ 83, 84 ], [ 56, 85 ], [ 85, 86 ], [ 56, 87 ], [ 87, 88 ], [ 56, 89 ], [ 89, 90 ], [ 56, 91 ], [ 91, 92 ], [ 56, 93 ], [ 93, 94 ], [ 56, 95 ], [ 95, 96 ], [ 56, 97 ], [ 97, 98 ], [ 56, 99 ], [ 99, 100 ], [ 56, 101 ], [ 101, 102 ], [ 56, 103 ], [ 103, 104 ], [ 56, 105 ], [ 105, 106 ], [ 56, 107 ], [ 107, 108 ], [ 56, 109 ], [ 109, 110 ], [ 56, 111 ], [ 111, 112 ], [ 56, 113 ], [ 113, 114 ], [ 56, 115 ], [ 115, 116 ], [ 56, 117 ], [ 117, 118 ], [ 117, 119 ], [ 56, 120 ], [ 120, 121 ], [ 120, 122 ], [ 56, 123 ], [ 123, 124 ], [ 123, 125 ], [ 56, 126 ], [ 126, 127 ], [ 126, 128 ], [ 56, 129 ], [ 129, 130 ], [ 129, 131 ], [ 56, 132 ], [ 132, 133 ], [ 132, 134 ], [ 56, 135 ], [ 135, 136 ], [ 135, 137 ], [ 56, 138 ], [ 138, 139 ], [ 138, 140 ], [ 56, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 141, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 149, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 154, 160 ], [ 160, 161 ], [ 160, 162 ], [ 154, 163 ], [ 163, 164 ], [ 163, 165 ], [ 154, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 166, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 171, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 171, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 186, 187 ], [ 182, 188 ], [ 188, 189 ], [ 188, 190 ], [ 171, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 191, 195 ], [ 195, 196 ], [ 195, 197 ], [ 154, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 201, 202 ], [ 200, 203 ], [ 198, 204 ], [ 204, 205 ], [ 205, 206 ], [ 204, 207 ], [ 154, 208 ], [ 208, 209 ], [ 209, 210 ], [ 154, 211 ], [ 211, 212 ], [ 212, 213 ], [ 154, 214 ], [ 214, 215 ], [ 215, 216 ], [ 154, 217 ], [ 217, 218 ], [ 218, 219 ], [ 154, 220 ], [ 220, 221 ], [ 221, 222 ], [ 56, 223 ], [ 223, 224 ], [ 224, 225 ], [ 56, 226 ], [ 226, 227 ], [ 227, 228 ], [ 54, 229 ], [ 229, 230 ], [ 369, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 231, 235 ], [ 235, 236 ], [ 231, 237 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 231, 243 ], [ 243, 244 ], [ 243, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 248, 250 ], [ 247, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 246, 255 ], [ 255, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 256, 263 ], [ 263, 264 ], [ 264, 265 ], [ 264, 266 ], [ 245, 267 ], [ 267, 268 ], [ 268, 269 ], [ 269, 270 ], [ 231, 271 ], [ 271, 272 ], [ 271, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 276, 277 ], [ 275, 278 ], [ 278, 279 ], [ 231, 280 ], [ 280, 281 ], [ 280, 282 ], [ 282, 283 ], [ 283, 284 ], [ 284, 285 ], [ 285, 286 ], [ 284, 287 ], [ 287, 288 ], [ 231, 289 ], [ 289, 290 ], [ 289, 291 ], [ 291, 292 ], [ 292, 293 ], [ 293, 294 ], [ 294, 295 ], [ 293, 296 ], [ 296, 297 ], [ 231, 298 ], [ 298, 299 ], [ 298, 300 ], [ 300, 301 ], [ 301, 302 ], [ 301, 303 ], [ 300, 304 ], [ 304, 305 ], [ 305, 306 ], [ 305, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 304, 311 ], [ 311, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 315, 316 ], [ 300, 317 ], [ 317, 318 ], [ 369, 319 ], [ 319, 320 ], [ 319, 321 ], [ 321, 322 ], [ 319, 323 ], [ 323, 324 ], [ 319, 325 ], [ 325, 326 ], [ 325, 327 ], [ 327, 328 ], [ 328, 329 ], [ 329, 330 ], [ 329, 331 ], [ 328, 332 ], [ 327, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 333, 337 ], [ 325, 338 ], [ 338, 339 ], [ 325, 340 ], [ 340, 341 ], [ 319, 342 ], [ 342, 343 ], [ 342, 344 ], [ 344, 345 ], [ 345, 346 ], [ 346, 347 ], [ 347, 348 ], [ 347, 349 ], [ 346, 350 ], [ 345, 351 ], [ 351, 352 ], [ 352, 353 ], [ 352, 354 ], [ 354, 355 ], [ 354, 356 ], [ 344, 357 ], [ 357, 358 ], [ 358, 359 ], [ 359, 360 ], [ 359, 361 ], [ 358, 362 ], [ 362, 363 ], [ 362, 364 ], [ 342, 365 ], [ 365, 366 ], [ 319, 367 ], [ 0, 368 ], [ 368, 369 ], [ 368, 370 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main\n{\n static class Reader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n \n\t\tpublic Reader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n \n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n \n\t}\n static class Ele implements Comparable<Ele> \n { \n public int x,y; \n Ele(int x,int y) \n { \n this.x=x;this.y=y; \n } \n public int compareTo(Ele ob) { \n if(ob.x!=x)return x-ob.x;\n return this.y-ob.y; \n } \n }\n int a[][];int b[][];\n \n long gcd(long a,long b)\n {\n long min=Math.min(a,b);\n long max=Math.max(a,b);\n while (max%min!=0)\n {\n a=max%min;\n max=min;min=a;\n }\n return min;\n }\n\tpublic static void main(String[] args) throws IOException \n\t{\n\t\tReader sc=new Reader();Main G=new Main();\n\t\tPrintWriter o = new PrintWriter(System.out);\n\t\tint t=1;//t=sc.nextInt();\n\t\tint x,x0,x1,x2;int y,y0,y1,y2;int s,s0,s1,s2;\n\t\tint n,m;int a[],b[],in[],in1[];\n\t\tlong k,l;boolean b1,b2;String ss1[],ss;\n\t\t//long l;long a[]; \n\t\tArrayList<ArrayList<Integer>> ll=new ArrayList<>();\n\t\tArrayList<Integer> a1=new ArrayList<>();\n\t\tArrayList<Integer> a2=new ArrayList<>();\n\t\tArrayList<Integer> a3=new ArrayList<>();\n\t\tArrayDeque<Integer> deq=new ArrayDeque<>();\n\t\tTreeSet<Integer> h0=new TreeSet<>();\n\t\tTreeSet<Integer> h1=new TreeSet<>();\n\t\tHashMap<Integer,Integer> h=new HashMap<>();\n\t\ttry{\n\t\twhile (t-->0)\n\t\t{\n\t\t n=sc.nextInt();s=0;b1=false;\n\t\t while (n-->0)\n\t\t {\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }\n\t\t if (b1)o.println(\"Yes\");\n\t\t else o.println(\"No\");\n\t\t //o.println(h);\n\t\t //o.println(x2);\n\t\t //o.println();\n\t\t h0.clear();ll.clear();a1.clear();a2.clear();h1.clear();\n\t\t}\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\t\t//o.println(\"HI\");\n\t\t\n o.flush();\n o.close();\n\t}\n} ", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main\n{\n static class Reader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n \n\t\tpublic Reader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n \n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n \n\t}\n static class Ele implements Comparable<Ele> \n { \n public int x,y; \n Ele(int x,int y) \n { \n this.x=x;this.y=y; \n } \n public int compareTo(Ele ob) { \n if(ob.x!=x)return x-ob.x;\n return this.y-ob.y; \n } \n }\n int a[][];int b[][];\n \n long gcd(long a,long b)\n {\n long min=Math.min(a,b);\n long max=Math.max(a,b);\n while (max%min!=0)\n {\n a=max%min;\n max=min;min=a;\n }\n return min;\n }\n\tpublic static void main(String[] args) throws IOException \n\t{\n\t\tReader sc=new Reader();Main G=new Main();\n\t\tPrintWriter o = new PrintWriter(System.out);\n\t\tint t=1;//t=sc.nextInt();\n\t\tint x,x0,x1,x2;int y,y0,y1,y2;int s,s0,s1,s2;\n\t\tint n,m;int a[],b[],in[],in1[];\n\t\tlong k,l;boolean b1,b2;String ss1[],ss;\n\t\t//long l;long a[]; \n\t\tArrayList<ArrayList<Integer>> ll=new ArrayList<>();\n\t\tArrayList<Integer> a1=new ArrayList<>();\n\t\tArrayList<Integer> a2=new ArrayList<>();\n\t\tArrayList<Integer> a3=new ArrayList<>();\n\t\tArrayDeque<Integer> deq=new ArrayDeque<>();\n\t\tTreeSet<Integer> h0=new TreeSet<>();\n\t\tTreeSet<Integer> h1=new TreeSet<>();\n\t\tHashMap<Integer,Integer> h=new HashMap<>();\n\t\ttry{\n\t\twhile (t-->0)\n\t\t{\n\t\t n=sc.nextInt();s=0;b1=false;\n\t\t while (n-->0)\n\t\t {\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }\n\t\t if (b1)o.println(\"Yes\");\n\t\t else o.println(\"No\");\n\t\t //o.println(h);\n\t\t //o.println(x2);\n\t\t //o.println();\n\t\t h0.clear();ll.clear();a1.clear();a2.clear();h1.clear();\n\t\t}\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\t\t//o.println(\"HI\");\n\t\t\n o.flush();\n o.close();\n\t}\n}", "Main", "int a[][];", "a", "int b[][];", "b", "long gcd(long a,long b)\n {\n long min=Math.min(a,b);\n long max=Math.max(a,b);\n while (max%min!=0)\n {\n a=max%min;\n max=min;min=a;\n }\n return min;\n }", "gcd", "{\n long min=Math.min(a,b);\n long max=Math.max(a,b);\n while (max%min!=0)\n {\n a=max%min;\n max=min;min=a;\n }\n return min;\n }", "long min=Math.min(a,b);", "min", "Math.min(a,b)", "Math.min", "Math", "a", "b", "long max=Math.max(a,b);", "max", "Math.max(a,b)", "Math.max", "Math", "a", "b", "while (max%min!=0)\n {\n a=max%min;\n max=min;min=a;\n }", "max%min!=0", "max%min", "max", "min", "0", "{\n a=max%min;\n max=min;min=a;\n }", "a=max%min", "a", "max%min", "max", "min", "max=min", "max", "min", "min=a", "min", "a", "return min;", "min", "long a", "a", "long b", "b", "public static void main(String[] args) throws IOException \n\t{\n\t\tReader sc=new Reader();Main G=new Main();\n\t\tPrintWriter o = new PrintWriter(System.out);\n\t\tint t=1;//t=sc.nextInt();\n\t\tint x,x0,x1,x2;int y,y0,y1,y2;int s,s0,s1,s2;\n\t\tint n,m;int a[],b[],in[],in1[];\n\t\tlong k,l;boolean b1,b2;String ss1[],ss;\n\t\t//long l;long a[]; \n\t\tArrayList<ArrayList<Integer>> ll=new ArrayList<>();\n\t\tArrayList<Integer> a1=new ArrayList<>();\n\t\tArrayList<Integer> a2=new ArrayList<>();\n\t\tArrayList<Integer> a3=new ArrayList<>();\n\t\tArrayDeque<Integer> deq=new ArrayDeque<>();\n\t\tTreeSet<Integer> h0=new TreeSet<>();\n\t\tTreeSet<Integer> h1=new TreeSet<>();\n\t\tHashMap<Integer,Integer> h=new HashMap<>();\n\t\ttry{\n\t\twhile (t-->0)\n\t\t{\n\t\t n=sc.nextInt();s=0;b1=false;\n\t\t while (n-->0)\n\t\t {\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }\n\t\t if (b1)o.println(\"Yes\");\n\t\t else o.println(\"No\");\n\t\t //o.println(h);\n\t\t //o.println(x2);\n\t\t //o.println();\n\t\t h0.clear();ll.clear();a1.clear();a2.clear();h1.clear();\n\t\t}\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\t\t//o.println(\"HI\");\n\t\t\n o.flush();\n o.close();\n\t}", "main", "{\n\t\tReader sc=new Reader();Main G=new Main();\n\t\tPrintWriter o = new PrintWriter(System.out);\n\t\tint t=1;//t=sc.nextInt();\n\t\tint x,x0,x1,x2;int y,y0,y1,y2;int s,s0,s1,s2;\n\t\tint n,m;int a[],b[],in[],in1[];\n\t\tlong k,l;boolean b1,b2;String ss1[],ss;\n\t\t//long l;long a[]; \n\t\tArrayList<ArrayList<Integer>> ll=new ArrayList<>();\n\t\tArrayList<Integer> a1=new ArrayList<>();\n\t\tArrayList<Integer> a2=new ArrayList<>();\n\t\tArrayList<Integer> a3=new ArrayList<>();\n\t\tArrayDeque<Integer> deq=new ArrayDeque<>();\n\t\tTreeSet<Integer> h0=new TreeSet<>();\n\t\tTreeSet<Integer> h1=new TreeSet<>();\n\t\tHashMap<Integer,Integer> h=new HashMap<>();\n\t\ttry{\n\t\twhile (t-->0)\n\t\t{\n\t\t n=sc.nextInt();s=0;b1=false;\n\t\t while (n-->0)\n\t\t {\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }\n\t\t if (b1)o.println(\"Yes\");\n\t\t else o.println(\"No\");\n\t\t //o.println(h);\n\t\t //o.println(x2);\n\t\t //o.println();\n\t\t h0.clear();ll.clear();a1.clear();a2.clear();h1.clear();\n\t\t}\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\t\t//o.println(\"HI\");\n\t\t\n o.flush();\n o.close();\n\t}", "Reader sc=new Reader();", "sc", "new Reader()", "Main G=new Main();", "G", "new Main()", "PrintWriter o = new PrintWriter(System.out);", "o", "new PrintWriter(System.out)", "int t=1;", "t", "1", "int x", "x", "x0", "x0", "x1", "x1", "x2;", "x2", "int y", "y", "y0", "y0", "y1", "y1", "y2;", "y2", "int s", "s", "s0", "s0", "s1", "s1", "s2;", "s2", "int n", "n", "m;", "m", "int a[]", "a", "b[]", "b", "in[]", "in", "in1[];", "in1", "long k", "k", "l;", "l", "boolean b1", "b1", "b2;", "b2", "String ss1[]", "ss1", "ss;", "ss", "ArrayList<ArrayList<Integer>> ll=new ArrayList<>();", "ll", "new ArrayList<>()", "ArrayList<Integer> a1=new ArrayList<>();", "a1", "new ArrayList<>()", "ArrayList<Integer> a2=new ArrayList<>();", "a2", "new ArrayList<>()", "ArrayList<Integer> a3=new ArrayList<>();", "a3", "new ArrayList<>()", "ArrayDeque<Integer> deq=new ArrayDeque<>();", "deq", "new ArrayDeque<>()", "TreeSet<Integer> h0=new TreeSet<>();", "h0", "new TreeSet<>()", "TreeSet<Integer> h1=new TreeSet<>();", "h1", "new TreeSet<>()", "HashMap<Integer,Integer> h=new HashMap<>();", "h", "new HashMap<>()", "try{\n\t\twhile (t-->0)\n\t\t{\n\t\t n=sc.nextInt();s=0;b1=false;\n\t\t while (n-->0)\n\t\t {\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }\n\t\t if (b1)o.println(\"Yes\");\n\t\t else o.println(\"No\");\n\t\t //o.println(h);\n\t\t //o.println(x2);\n\t\t //o.println();\n\t\t h0.clear();ll.clear();a1.clear();a2.clear();h1.clear();\n\t\t}\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}", "catch (Throwable e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}", "Throwable e", "{\n\t\t e.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\twhile (t-->0)\n\t\t{\n\t\t n=sc.nextInt();s=0;b1=false;\n\t\t while (n-->0)\n\t\t {\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }\n\t\t if (b1)o.println(\"Yes\");\n\t\t else o.println(\"No\");\n\t\t //o.println(h);\n\t\t //o.println(x2);\n\t\t //o.println();\n\t\t h0.clear();ll.clear();a1.clear();a2.clear();h1.clear();\n\t\t}\n\t\t}", "while (t-->0)\n\t\t{\n\t\t n=sc.nextInt();s=0;b1=false;\n\t\t while (n-->0)\n\t\t {\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }\n\t\t if (b1)o.println(\"Yes\");\n\t\t else o.println(\"No\");\n\t\t //o.println(h);\n\t\t //o.println(x2);\n\t\t //o.println();\n\t\t h0.clear();ll.clear();a1.clear();a2.clear();h1.clear();\n\t\t}", "t-->0", "t--", "t", "0", "{\n\t\t n=sc.nextInt();s=0;b1=false;\n\t\t while (n-->0)\n\t\t {\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }\n\t\t if (b1)o.println(\"Yes\");\n\t\t else o.println(\"No\");\n\t\t //o.println(h);\n\t\t //o.println(x2);\n\t\t //o.println();\n\t\t h0.clear();ll.clear();a1.clear();a2.clear();h1.clear();\n\t\t}", "n=sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "s=0", "s", "0", "b1=false", "b1", "false", "while (n-->0)\n\t\t {\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }", "n-->0", "n--", "n", "0", "{\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }", "x=sc.nextInt()", "x", "sc.nextInt()", "sc.nextInt", "sc", "y=sc.nextInt()", "y", "sc.nextInt()", "sc.nextInt", "sc", "if (x==y)s++;\n\t\t else s=0;", "x==y", "x", "y", "s++", "s", "s=0", "s", "0", "if (s>=3) b1=true;", "s>=3", "s", "3", "b1=true", "b1", "true", "if (b1)o.println(\"Yes\");\n\t\t else o.println(\"No\");", "b1", "o.println(\"Yes\")", "o.println", "o", "\"Yes\"", "o.println(\"No\")", "o.println", "o", "\"No\"", "h0.clear()", "h0.clear", "h0", "ll.clear()", "ll.clear", "ll", "a1.clear()", "a1.clear", "a1", "a2.clear()", "a2.clear", "a2", "h1.clear()", "h1.clear", "h1", "o.flush()", "o.flush", "o", "o.close()", "o.close", "o", "String[] args", "args", "static class Reader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n \n\t\tpublic Reader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n \n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n \n\t}", "Reader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public Reader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "Reader", "{\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "next", "{\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "while (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "IOException e", "{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "nextInt", "{\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}", "nextLong", "{\n\t\t\treturn Long.parseLong(next());\n\t\t}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "nextDouble", "{\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}", "nextLine", "{\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}", "String str = \"\";", "str", "\"\"", "try {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "IOException e", "{\n\t\t\t\te.printStackTrace();\n\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\tstr = br.readLine();\n\t\t\t}", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "static class Ele implements Comparable<Ele> \n { \n public int x,y; \n Ele(int x,int y) \n { \n this.x=x;this.y=y; \n } \n public int compareTo(Ele ob) { \n if(ob.x!=x)return x-ob.x;\n return this.y-ob.y; \n } \n }", "Ele", "public int x", "x", "y;", "y", "Ele(int x,int y) \n { \n this.x=x;this.y=y; \n }", "Ele", "{ \n this.x=x;this.y=y; \n }", "this.x=x", "this.x", "this", "this.x", "x", "this.y=y", "this.y", "this", "this.y", "y", "int x", "x", "int y", "y", "public int compareTo(Ele ob) { \n if(ob.x!=x)return x-ob.x;\n return this.y-ob.y; \n }", "compareTo", "{ \n if(ob.x!=x)return x-ob.x;\n return this.y-ob.y; \n }", "if(ob.x!=x)return x-ob.x;", "ob.x!=x", "ob.x", "ob", "ob.x", "x", "return x-ob.x;", "x-ob.x", "x", "ob.x", "ob", "ob.x", "return this.y-ob.y;", "this.y-ob.y", "this.y", "this", "this.y", "ob.y", "ob", "ob.y", "Ele ob", "ob", "Comparable", "public class Main\n{\n static class Reader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n \n\t\tpublic Reader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n \n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n \n\t}\n static class Ele implements Comparable<Ele> \n { \n public int x,y; \n Ele(int x,int y) \n { \n this.x=x;this.y=y; \n } \n public int compareTo(Ele ob) { \n if(ob.x!=x)return x-ob.x;\n return this.y-ob.y; \n } \n }\n int a[][];int b[][];\n \n long gcd(long a,long b)\n {\n long min=Math.min(a,b);\n long max=Math.max(a,b);\n while (max%min!=0)\n {\n a=max%min;\n max=min;min=a;\n }\n return min;\n }\n\tpublic static void main(String[] args) throws IOException \n\t{\n\t\tReader sc=new Reader();Main G=new Main();\n\t\tPrintWriter o = new PrintWriter(System.out);\n\t\tint t=1;//t=sc.nextInt();\n\t\tint x,x0,x1,x2;int y,y0,y1,y2;int s,s0,s1,s2;\n\t\tint n,m;int a[],b[],in[],in1[];\n\t\tlong k,l;boolean b1,b2;String ss1[],ss;\n\t\t//long l;long a[]; \n\t\tArrayList<ArrayList<Integer>> ll=new ArrayList<>();\n\t\tArrayList<Integer> a1=new ArrayList<>();\n\t\tArrayList<Integer> a2=new ArrayList<>();\n\t\tArrayList<Integer> a3=new ArrayList<>();\n\t\tArrayDeque<Integer> deq=new ArrayDeque<>();\n\t\tTreeSet<Integer> h0=new TreeSet<>();\n\t\tTreeSet<Integer> h1=new TreeSet<>();\n\t\tHashMap<Integer,Integer> h=new HashMap<>();\n\t\ttry{\n\t\twhile (t-->0)\n\t\t{\n\t\t n=sc.nextInt();s=0;b1=false;\n\t\t while (n-->0)\n\t\t {\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }\n\t\t if (b1)o.println(\"Yes\");\n\t\t else o.println(\"No\");\n\t\t //o.println(h);\n\t\t //o.println(x2);\n\t\t //o.println();\n\t\t h0.clear();ll.clear();a1.clear();a2.clear();h1.clear();\n\t\t}\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\t\t//o.println(\"HI\");\n\t\t\n o.flush();\n o.close();\n\t}\n}", "public class Main\n{\n static class Reader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n \n\t\tpublic Reader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n \n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n \n\t}\n static class Ele implements Comparable<Ele> \n { \n public int x,y; \n Ele(int x,int y) \n { \n this.x=x;this.y=y; \n } \n public int compareTo(Ele ob) { \n if(ob.x!=x)return x-ob.x;\n return this.y-ob.y; \n } \n }\n int a[][];int b[][];\n \n long gcd(long a,long b)\n {\n long min=Math.min(a,b);\n long max=Math.max(a,b);\n while (max%min!=0)\n {\n a=max%min;\n max=min;min=a;\n }\n return min;\n }\n\tpublic static void main(String[] args) throws IOException \n\t{\n\t\tReader sc=new Reader();Main G=new Main();\n\t\tPrintWriter o = new PrintWriter(System.out);\n\t\tint t=1;//t=sc.nextInt();\n\t\tint x,x0,x1,x2;int y,y0,y1,y2;int s,s0,s1,s2;\n\t\tint n,m;int a[],b[],in[],in1[];\n\t\tlong k,l;boolean b1,b2;String ss1[],ss;\n\t\t//long l;long a[]; \n\t\tArrayList<ArrayList<Integer>> ll=new ArrayList<>();\n\t\tArrayList<Integer> a1=new ArrayList<>();\n\t\tArrayList<Integer> a2=new ArrayList<>();\n\t\tArrayList<Integer> a3=new ArrayList<>();\n\t\tArrayDeque<Integer> deq=new ArrayDeque<>();\n\t\tTreeSet<Integer> h0=new TreeSet<>();\n\t\tTreeSet<Integer> h1=new TreeSet<>();\n\t\tHashMap<Integer,Integer> h=new HashMap<>();\n\t\ttry{\n\t\twhile (t-->0)\n\t\t{\n\t\t n=sc.nextInt();s=0;b1=false;\n\t\t while (n-->0)\n\t\t {\n\t\t x=sc.nextInt();y=sc.nextInt();\n\t\t if (x==y)s++;\n\t\t else s=0;\n\t\t if (s>=3) b1=true;\n\t\t }\n\t\t if (b1)o.println(\"Yes\");\n\t\t else o.println(\"No\");\n\t\t //o.println(h);\n\t\t //o.println(x2);\n\t\t //o.println();\n\t\t h0.clear();ll.clear();a1.clear();a2.clear();h1.clear();\n\t\t}\n\t\t}\n\t\tcatch (Throwable e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\t\t//o.println(\"HI\");\n\t\t\n o.flush();\n o.close();\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { static class Reader { BufferedReader br; StringTokenizer st; public Reader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } static class Ele implements Comparable<Ele> { public int x,y; Ele(int x,int y) { this.x=x;this.y=y; } public int compareTo(Ele ob) { if(ob.x!=x)return x-ob.x; return this.y-ob.y; } } int a[][];int b[][]; long gcd(long a,long b) { long min=Math.min(a,b); long max=Math.max(a,b); while (max%min!=0) { a=max%min; max=min;min=a; } return min; } public static void main(String[] args) throws IOException { Reader sc=new Reader();Main G=new Main(); PrintWriter o = new PrintWriter(System.out); int t=1;//t=sc.nextInt(); int x,x0,x1,x2;int y,y0,y1,y2;int s,s0,s1,s2; int n,m;int a[],b[],in[],in1[]; long k,l;boolean b1,b2;String ss1[],ss; //long l;long a[]; ArrayList<ArrayList<Integer>> ll=new ArrayList<>(); ArrayList<Integer> a1=new ArrayList<>(); ArrayList<Integer> a2=new ArrayList<>(); ArrayList<Integer> a3=new ArrayList<>(); ArrayDeque<Integer> deq=new ArrayDeque<>(); TreeSet<Integer> h0=new TreeSet<>(); TreeSet<Integer> h1=new TreeSet<>(); HashMap<Integer,Integer> h=new HashMap<>(); try{ while (t-->0) { n=sc.nextInt();s=0;b1=false; while (n-->0) { x=sc.nextInt();y=sc.nextInt(); if (x==y)s++; else s=0; if (s>=3) b1=true; } if (b1)o.println("Yes"); else o.println("No"); //o.println(h); //o.println(x2); //o.println(); h0.clear();ll.clear();a1.clear();a2.clear();h1.clear(); } } catch (Throwable e) { e.printStackTrace(); } //o.println("HI"); o.flush(); o.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 13, 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 ], [ 86, 5 ], [ 86, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 35, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 8, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 64, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 6, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "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\tint n = sc.nextInt();\n\n\t\tint max = 0;\n\t\tboolean can = false;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint e = sc.nextInt();\n\t\t\tif (d == e) {\n\t\t\t\tmax++;\n\t\t\t} else {\n\t\t\t\tmax = 0;\n\t\t\t}\n\t\t\tif (max == 3) can = true;\n\t\t}\n\n\t\tif (can) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\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\tint n = sc.nextInt();\n\n\t\tint max = 0;\n\t\tboolean can = false;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint e = sc.nextInt();\n\t\t\tif (d == e) {\n\t\t\t\tmax++;\n\t\t\t} else {\n\t\t\t\tmax = 0;\n\t\t\t}\n\t\t\tif (max == 3) can = true;\n\t\t}\n\n\t\tif (can) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint max = 0;\n\t\tboolean can = false;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint e = sc.nextInt();\n\t\t\tif (d == e) {\n\t\t\t\tmax++;\n\t\t\t} else {\n\t\t\t\tmax = 0;\n\t\t\t}\n\t\t\tif (max == 3) can = true;\n\t\t}\n\n\t\tif (can) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint max = 0;\n\t\tboolean can = false;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint e = sc.nextInt();\n\t\t\tif (d == e) {\n\t\t\t\tmax++;\n\t\t\t} else {\n\t\t\t\tmax = 0;\n\t\t\t}\n\t\t\tif (max == 3) can = true;\n\t\t}\n\n\t\tif (can) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int max = 0;", "max", "0", "boolean can = false;", "can", "false", "for (int i = 0; i < n; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint e = sc.nextInt();\n\t\t\tif (d == e) {\n\t\t\t\tmax++;\n\t\t\t} else {\n\t\t\t\tmax = 0;\n\t\t\t}\n\t\t\tif (max == 3) can = true;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint d = sc.nextInt();\n\t\t\tint e = sc.nextInt();\n\t\t\tif (d == e) {\n\t\t\t\tmax++;\n\t\t\t} else {\n\t\t\t\tmax = 0;\n\t\t\t}\n\t\t\tif (max == 3) can = true;\n\t\t}", "{\n\t\t\tint d = sc.nextInt();\n\t\t\tint e = sc.nextInt();\n\t\t\tif (d == e) {\n\t\t\t\tmax++;\n\t\t\t} else {\n\t\t\t\tmax = 0;\n\t\t\t}\n\t\t\tif (max == 3) can = true;\n\t\t}", "int d = sc.nextInt();", "d", "sc.nextInt()", "sc.nextInt", "sc", "int e = sc.nextInt();", "e", "sc.nextInt()", "sc.nextInt", "sc", "if (d == e) {\n\t\t\t\tmax++;\n\t\t\t} else {\n\t\t\t\tmax = 0;\n\t\t\t}", "d == e", "d", "e", "{\n\t\t\t\tmax++;\n\t\t\t}", "max++", "max", "{\n\t\t\t\tmax = 0;\n\t\t\t}", "max = 0", "max", "0", "if (max == 3) can = true;", "max == 3", "max", "3", "can = true", "can", "true", "if (can) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "can", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint max = 0;\n\t\tboolean can = false;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint e = sc.nextInt();\n\t\t\tif (d == e) {\n\t\t\t\tmax++;\n\t\t\t} else {\n\t\t\t\tmax = 0;\n\t\t\t}\n\t\t\tif (max == 3) can = true;\n\t\t}\n\n\t\tif (can) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint max = 0;\n\t\tboolean can = false;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint d = sc.nextInt();\n\t\t\tint e = sc.nextInt();\n\t\t\tif (d == e) {\n\t\t\t\tmax++;\n\t\t\t} else {\n\t\t\t\tmax = 0;\n\t\t\t}\n\t\t\tif (max == 3) can = true;\n\t\t}\n\n\t\tif (can) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int max = 0; boolean can = false; for (int i = 0; i < n; i++) { int d = sc.nextInt(); int e = sc.nextInt(); if (d == e) { max++; } else { max = 0; } if (max == 3) can = true; } if (can) { System.out.println("Yes"); } else { System.out.println("No"); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 2, 2, 2, 2, 2, 17, 17, 17, 17, 17, 17, 0, 13, 20, 0, 13, 20, 4, 13, 41, 13, 4, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 13, 14, 2, 4, 13, 4, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 4, 18, 13, 2, 8, 13, 17, 17, 17, 4, 18, 13, 23, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 29, 4, 18, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 151, 8 ], [ 151, 9 ], [ 9, 10 ], [ 151, 11 ], [ 11, 12 ], [ 151, 13 ], [ 13, 14 ], [ 151, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 24, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 21, 29 ], [ 24, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 17, 37 ], [ 37, 38 ], [ 17, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 17, 43 ], [ 43, 44 ], [ 43, 45 ], [ 17, 46 ], [ 46, 47 ], [ 46, 48 ], [ 17, 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 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 64, 70 ], [ 70, 71 ], [ 71, 72 ], [ 64, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 61, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 17, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 88, 91 ], [ 87, 92 ], [ 17, 93 ], [ 93, 94 ], [ 94, 95 ], [ 15, 96 ], [ 96, 97 ], [ 151, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 151, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 112, 113 ], [ 151, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 121, 122 ], [ 122, 123 ], [ 151, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 132, 133 ], [ 151, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 151, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 0, 150 ], [ 150, 151 ], [ 150, 152 ] ]
[ "//package atcoder.beginner_179;\n\nimport java.io.*;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n public static void main (String[] args) throws Exception {\n\n String s = \"5\\n\" +\n \"1 2\\n\" +\n \"6 6\\n\" +\n \"4 4\\n\" +\n \"3 3\\n\" +\n \"3 2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int n=nin();\n boolean res = false;\n int c=0;\n for (int i = 0; i<n; ++i) {\n rl();\n if (nin() == nin()) {\n ++c;\n } else {\n c=0;\n }\n if (c==3) res = true;\n }\n bw.write((res ? \"Yes\" : \"No\") + \"\\n\");\n bw.flush();\n\n }\n\n static BufferedReader br;\n static BufferedWriter bw;\n static StringTokenizer st;\n static void rl() throws Exception{\n st = new StringTokenizer(br.readLine());\n }\n static long nlo(){\n return Long.parseLong(st.nextToken());\n }\n static int nin(){\n return Integer.parseInt(st.nextToken());\n }\n /*private static void te(){\n }*/\n static double ndo(){\n return Double.parseDouble(st.nextToken());\n }\n static char[] nca(){\n return st.nextToken().toCharArray();\n }\n static String nstr(){\n return st.nextToken();\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n public static void main (String[] args) throws Exception {\n\n String s = \"5\\n\" +\n \"1 2\\n\" +\n \"6 6\\n\" +\n \"4 4\\n\" +\n \"3 3\\n\" +\n \"3 2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int n=nin();\n boolean res = false;\n int c=0;\n for (int i = 0; i<n; ++i) {\n rl();\n if (nin() == nin()) {\n ++c;\n } else {\n c=0;\n }\n if (c==3) res = true;\n }\n bw.write((res ? \"Yes\" : \"No\") + \"\\n\");\n bw.flush();\n\n }\n\n static BufferedReader br;\n static BufferedWriter bw;\n static StringTokenizer st;\n static void rl() throws Exception{\n st = new StringTokenizer(br.readLine());\n }\n static long nlo(){\n return Long.parseLong(st.nextToken());\n }\n static int nin(){\n return Integer.parseInt(st.nextToken());\n }\n /*private static void te(){\n }*/\n static double ndo(){\n return Double.parseDouble(st.nextToken());\n }\n static char[] nca(){\n return st.nextToken().toCharArray();\n }\n static String nstr(){\n return st.nextToken();\n }\n}", "Main", "static BufferedReader br;", "br", "static BufferedWriter bw;", "bw", "static StringTokenizer st;", "st", "public static void main (String[] args) throws Exception {\n\n String s = \"5\\n\" +\n \"1 2\\n\" +\n \"6 6\\n\" +\n \"4 4\\n\" +\n \"3 3\\n\" +\n \"3 2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int n=nin();\n boolean res = false;\n int c=0;\n for (int i = 0; i<n; ++i) {\n rl();\n if (nin() == nin()) {\n ++c;\n } else {\n c=0;\n }\n if (c==3) res = true;\n }\n bw.write((res ? \"Yes\" : \"No\") + \"\\n\");\n bw.flush();\n\n }", "main", "{\n\n String s = \"5\\n\" +\n \"1 2\\n\" +\n \"6 6\\n\" +\n \"4 4\\n\" +\n \"3 3\\n\" +\n \"3 2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int n=nin();\n boolean res = false;\n int c=0;\n for (int i = 0; i<n; ++i) {\n rl();\n if (nin() == nin()) {\n ++c;\n } else {\n c=0;\n }\n if (c==3) res = true;\n }\n bw.write((res ? \"Yes\" : \"No\") + \"\\n\");\n bw.flush();\n\n }", "String s = \"5\\n\" +\n \"1 2\\n\" +\n \"6 6\\n\" +\n \"4 4\\n\" +\n \"3 3\\n\" +\n \"3 2\";", "s", "\"5\\n\" +\n \"1 2\\n\" +\n \"6 6\\n\" +\n \"4 4\\n\" +\n \"3 3\\n\" +\n \"3 2\"", "\"3 3\\n\"", "\"4 4\\n\"", "\"6 6\\n\"", "\"5\\n\" +\n \"1 2\\n\" +\n \"6 6\\n\" +\n \"4 4\\n\" +\n \"3 3\\n\" +\n \"3 2\"", "\"5\\n\"", "\"1 2\\n\"", "\"6 6\\n\"", "\"4 4\\n\"", "\"3 3\\n\"", "\"3 2\"", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "bw = new BufferedWriter(new OutputStreamWriter(System.out))", "bw", "new BufferedWriter(new OutputStreamWriter(System.out))", "rl()", "rl", "int n=nin();", "n", "nin()", "nin", "boolean res = false;", "res", "false", "int c=0;", "c", "0", "for (int i = 0; i<n; ++i) {\n rl();\n if (nin() == nin()) {\n ++c;\n } else {\n c=0;\n }\n if (c==3) res = true;\n }", "int i = 0;", "int i = 0;", "i", "0", "i<n", "i", "n", "++i", "++i", "i", "{\n rl();\n if (nin() == nin()) {\n ++c;\n } else {\n c=0;\n }\n if (c==3) res = true;\n }", "{\n rl();\n if (nin() == nin()) {\n ++c;\n } else {\n c=0;\n }\n if (c==3) res = true;\n }", "rl()", "rl", "if (nin() == nin()) {\n ++c;\n } else {\n c=0;\n }", "nin() == nin()", "nin()", "nin", "nin()", "nin", "{\n ++c;\n }", "++c", "c", "{\n c=0;\n }", "c=0", "c", "0", "if (c==3) res = true;", "c==3", "c", "3", "res = true", "res", "true", "bw.write((res ? \"Yes\" : \"No\") + \"\\n\")", "bw.write", "bw", "(res ? \"Yes\" : \"No\") + \"\\n\"", "(res ? \"Yes\" : \"No\")", "res", "\"Yes\"", "\"No\"", "\"\\n\"", "bw.flush()", "bw.flush", "bw", "String[] args", "args", "static void rl() throws Exception{\n st = new StringTokenizer(br.readLine());\n }", "rl", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "static long nlo(){\n return Long.parseLong(st.nextToken());\n }", "nlo", "{\n return Long.parseLong(st.nextToken());\n }", "return Long.parseLong(st.nextToken());", "Long.parseLong(st.nextToken())", "Long.parseLong", "Long", "st.nextToken()", "st.nextToken", "st", "static int nin(){\n return Integer.parseInt(st.nextToken());\n }", "nin", "{\n return Integer.parseInt(st.nextToken());\n }", "return Integer.parseInt(st.nextToken());", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "/*private static void te(){\n }*/\n static double ndo(){\n return Double.parseDouble(st.nextToken());\n }", "ndo", "{\n return Double.parseDouble(st.nextToken());\n }", "return Double.parseDouble(st.nextToken());", "Double.parseDouble(st.nextToken())", "Double.parseDouble", "Double", "st.nextToken()", "st.nextToken", "st", "static char[] nca(){\n return st.nextToken().toCharArray();\n }", "nca", "{\n return st.nextToken().toCharArray();\n }", "return st.nextToken().toCharArray();", "st.nextToken().toCharArray()", "st.nextToken().toCharArray", "st.nextToken()", "st.nextToken", "st", "static String nstr(){\n return st.nextToken();\n }", "nstr", "{\n return st.nextToken();\n }", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public class Main {\n\n public static void main (String[] args) throws Exception {\n\n String s = \"5\\n\" +\n \"1 2\\n\" +\n \"6 6\\n\" +\n \"4 4\\n\" +\n \"3 3\\n\" +\n \"3 2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int n=nin();\n boolean res = false;\n int c=0;\n for (int i = 0; i<n; ++i) {\n rl();\n if (nin() == nin()) {\n ++c;\n } else {\n c=0;\n }\n if (c==3) res = true;\n }\n bw.write((res ? \"Yes\" : \"No\") + \"\\n\");\n bw.flush();\n\n }\n\n static BufferedReader br;\n static BufferedWriter bw;\n static StringTokenizer st;\n static void rl() throws Exception{\n st = new StringTokenizer(br.readLine());\n }\n static long nlo(){\n return Long.parseLong(st.nextToken());\n }\n static int nin(){\n return Integer.parseInt(st.nextToken());\n }\n /*private static void te(){\n }*/\n static double ndo(){\n return Double.parseDouble(st.nextToken());\n }\n static char[] nca(){\n return st.nextToken().toCharArray();\n }\n static String nstr(){\n return st.nextToken();\n }\n}", "public class Main {\n\n public static void main (String[] args) throws Exception {\n\n String s = \"5\\n\" +\n \"1 2\\n\" +\n \"6 6\\n\" +\n \"4 4\\n\" +\n \"3 3\\n\" +\n \"3 2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int n=nin();\n boolean res = false;\n int c=0;\n for (int i = 0; i<n; ++i) {\n rl();\n if (nin() == nin()) {\n ++c;\n } else {\n c=0;\n }\n if (c==3) res = true;\n }\n bw.write((res ? \"Yes\" : \"No\") + \"\\n\");\n bw.flush();\n\n }\n\n static BufferedReader br;\n static BufferedWriter bw;\n static StringTokenizer st;\n static void rl() throws Exception{\n st = new StringTokenizer(br.readLine());\n }\n static long nlo(){\n return Long.parseLong(st.nextToken());\n }\n static int nin(){\n return Integer.parseInt(st.nextToken());\n }\n /*private static void te(){\n }*/\n static double ndo(){\n return Double.parseDouble(st.nextToken());\n }\n static char[] nca(){\n return st.nextToken().toCharArray();\n }\n static String nstr(){\n return st.nextToken();\n }\n}", "Main" ]
//package atcoder.beginner_179; import java.io.*; import java.util.StringTokenizer; public class Main { public static void main (String[] args) throws Exception { String s = "5\n" + "1 2\n" + "6 6\n" + "4 4\n" + "3 3\n" + "3 2"; // br = new BufferedReader(new StringReader(s)); br = new BufferedReader(new InputStreamReader(System.in)); bw = new BufferedWriter(new OutputStreamWriter(System.out)); rl(); int n=nin(); boolean res = false; int c=0; for (int i = 0; i<n; ++i) { rl(); if (nin() == nin()) { ++c; } else { c=0; } if (c==3) res = true; } bw.write((res ? "Yes" : "No") + "\n"); bw.flush(); } static BufferedReader br; static BufferedWriter bw; static StringTokenizer st; static void rl() throws Exception{ st = new StringTokenizer(br.readLine()); } static long nlo(){ return Long.parseLong(st.nextToken()); } static int nin(){ return Integer.parseInt(st.nextToken()); } /*private static void te(){ }*/ static double ndo(){ return Double.parseDouble(st.nextToken()); } static char[] nca(){ return st.nextToken().toCharArray(); } static String nstr(){ return st.nextToken(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 41, 13, 20, 2, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 0, 13, 17, 3, 4, 18, 18, 13, 13, 8, 13, 17, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 126, 5 ], [ 126, 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 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 84, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 76, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 95, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 74, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 8, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 116, 118 ], [ 116, 119 ], [ 8, 120 ], [ 120, 121 ], [ 121, 122 ], [ 6, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "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\tint n = sc.nextInt();\n\t\tint[] a = new int[n+1];\n\t\tint[] b = new int[n+1];\n\t\tboolean status=false;\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tb[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=1;i<=n-2;i++) {\n\t\t\tif(a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]) {\n\t\t\t\tstatus=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(status?\"Yes\":\"No\");\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\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n+1];\n\t\tint[] b = new int[n+1];\n\t\tboolean status=false;\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tb[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=1;i<=n-2;i++) {\n\t\t\tif(a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]) {\n\t\t\t\tstatus=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(status?\"Yes\":\"No\");\n\t\tsc.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n+1];\n\t\tint[] b = new int[n+1];\n\t\tboolean status=false;\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tb[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=1;i<=n-2;i++) {\n\t\t\tif(a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]) {\n\t\t\t\tstatus=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(status?\"Yes\":\"No\");\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n+1];\n\t\tint[] b = new int[n+1];\n\t\tboolean status=false;\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tb[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=1;i<=n-2;i++) {\n\t\t\tif(a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]) {\n\t\t\t\tstatus=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(status?\"Yes\":\"No\");\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] a = new int[n+1];", "a", "new int[n+1]", "n+1", "n", "1", "int[] b = new int[n+1];", "b", "new int[n+1]", "n+1", "n", "1", "boolean status=false;", "status", "false", "for(int i=1;i<=n;i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tb[i]=sc.nextInt();\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<=n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i]=sc.nextInt();\n\t\t\tb[i]=sc.nextInt();\n\t\t}", "{\n\t\t\ta[i]=sc.nextInt();\n\t\t\tb[i]=sc.nextInt();\n\t\t}", "a[i]=sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "b[i]=sc.nextInt()", "b[i]", "b", "i", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=1;i<=n-2;i++) {\n\t\t\tif(a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]) {\n\t\t\t\tstatus=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<=n-2", "i", "n-2", "n", "2", "i++", "i++", "i", "{\n\t\t\tif(a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]) {\n\t\t\t\tstatus=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]) {\n\t\t\t\tstatus=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "if(a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]) {\n\t\t\t\tstatus=true;\n\t\t\t\tbreak;\n\t\t\t}", "a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]", "a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]", "a[i]==b[i]", "a[i]", "a", "i", "b[i]", "b", "i", "a[i+1]==b[i+1]", "a[i+1]", "a", "i+1", "i", "1", "b[i+1]", "b", "i+1", "i", "1", "a[i+2]==b[i+2]", "a[i+2]", "a", "i+2", "i", "2", "b[i+2]", "b", "i+2", "i", "2", "{\n\t\t\t\tstatus=true;\n\t\t\t\tbreak;\n\t\t\t}", "status=true", "status", "true", "break;", "System.out.println(status?\"Yes\":\"No\")", "System.out.println", "System.out", "System", "System.out", "status?\"Yes\":\"No\"", "status", "\"Yes\"", "\"No\"", "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\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n+1];\n\t\tint[] b = new int[n+1];\n\t\tboolean status=false;\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tb[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=1;i<=n-2;i++) {\n\t\t\tif(a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]) {\n\t\t\t\tstatus=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(status?\"Yes\":\"No\");\n\t\tsc.close();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n+1];\n\t\tint[] b = new int[n+1];\n\t\tboolean status=false;\n\t\tfor(int i=1;i<=n;i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tb[i]=sc.nextInt();\n\t\t}\n\t\tfor(int i=1;i<=n-2;i++) {\n\t\t\tif(a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]) {\n\t\t\t\tstatus=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(status?\"Yes\":\"No\");\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 n = sc.nextInt(); int[] a = new int[n+1]; int[] b = new int[n+1]; boolean status=false; for(int i=1;i<=n;i++) { a[i]=sc.nextInt(); b[i]=sc.nextInt(); } for(int i=1;i<=n-2;i++) { if(a[i]==b[i]&&a[i+1]==b[i+1]&&a[i+2]==b[i+2]) { status=true; break; } } System.out.println(status?"Yes":"No"); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 4, 18, 13, 0, 13, 20, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 2, 13, 17, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 9, 14, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 9, 14, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 9, 29, 17, 29, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 128, 5 ], [ 128, 6 ], [ 6, 7 ], [ 6, 8 ], [ 128, 9 ], [ 9, 10 ], [ 128, 11 ], [ 11, 12 ], [ 128, 13 ], [ 13, 14 ], [ 128, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 17, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 17, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 15, 65 ], [ 65, 66 ], [ 128, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 70, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 85, 93 ], [ 93, 94 ], [ 84, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 96, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 95, 107 ], [ 107, 108 ], [ 84, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 110, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 109, 121 ], [ 121, 122 ], [ 84, 123 ], [ 123, 124 ], [ 69, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n static Scanner in = new Scanner(System.in);\n static int[] a;\n static int[] b;\n static int n;\n public static void main(String[] args) {\n n = in.nextInt();\n a = new int[n];\n b = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n System.out.println(check());\n }\n static String check() {\n for (int i = 0; i + 2 < n; i++) {\n if (a[i] != b[i]) {\n continue;\n }\n if (a[i + 1] != b[i + 1]) {\n continue;\n }\n if (a[i + 2] != b[i + 2]) {\n continue;\n }\n return \"Yes\";\n }\n return \"No\";\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n static Scanner in = new Scanner(System.in);\n static int[] a;\n static int[] b;\n static int n;\n public static void main(String[] args) {\n n = in.nextInt();\n a = new int[n];\n b = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n System.out.println(check());\n }\n static String check() {\n for (int i = 0; i + 2 < n; i++) {\n if (a[i] != b[i]) {\n continue;\n }\n if (a[i + 1] != b[i + 1]) {\n continue;\n }\n if (a[i + 2] != b[i + 2]) {\n continue;\n }\n return \"Yes\";\n }\n return \"No\";\n }\n}", "Main", "static Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "static int[] a;", "a", "static int[] b;", "b", "static int n;", "n", "public static void main(String[] args) {\n n = in.nextInt();\n a = new int[n];\n b = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n System.out.println(check());\n }", "main", "{\n n = in.nextInt();\n a = new int[n];\n b = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n System.out.println(check());\n }", "n = in.nextInt()", "n", "in.nextInt()", "in.nextInt", "in", "a = new int[n]", "a", "new int[n]", "n", "b = new int[n]", "b", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }", "{\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }", "a[i] = in.nextInt()", "a[i]", "a", "i", "in.nextInt()", "in.nextInt", "in", "b[i] = in.nextInt()", "b[i]", "b", "i", "in.nextInt()", "in.nextInt", "in", "System.out.println(check())", "System.out.println", "System.out", "System", "System.out", "check()", "check", "String[] args", "args", "static String check() {\n for (int i = 0; i + 2 < n; i++) {\n if (a[i] != b[i]) {\n continue;\n }\n if (a[i + 1] != b[i + 1]) {\n continue;\n }\n if (a[i + 2] != b[i + 2]) {\n continue;\n }\n return \"Yes\";\n }\n return \"No\";\n }", "check", "{\n for (int i = 0; i + 2 < n; i++) {\n if (a[i] != b[i]) {\n continue;\n }\n if (a[i + 1] != b[i + 1]) {\n continue;\n }\n if (a[i + 2] != b[i + 2]) {\n continue;\n }\n return \"Yes\";\n }\n return \"No\";\n }", "for (int i = 0; i + 2 < n; i++) {\n if (a[i] != b[i]) {\n continue;\n }\n if (a[i + 1] != b[i + 1]) {\n continue;\n }\n if (a[i + 2] != b[i + 2]) {\n continue;\n }\n return \"Yes\";\n }", "int i = 0;", "int i = 0;", "i", "0", "i + 2 < n", "i + 2", "i", "2", "n", "i++", "i++", "i", "{\n if (a[i] != b[i]) {\n continue;\n }\n if (a[i + 1] != b[i + 1]) {\n continue;\n }\n if (a[i + 2] != b[i + 2]) {\n continue;\n }\n return \"Yes\";\n }", "{\n if (a[i] != b[i]) {\n continue;\n }\n if (a[i + 1] != b[i + 1]) {\n continue;\n }\n if (a[i + 2] != b[i + 2]) {\n continue;\n }\n return \"Yes\";\n }", "if (a[i] != b[i]) {\n continue;\n }", "a[i] != b[i]", "a[i]", "a", "i", "b[i]", "b", "i", "{\n continue;\n }", "continue;", "if (a[i + 1] != b[i + 1]) {\n continue;\n }", "a[i + 1] != b[i + 1]", "a[i + 1]", "a", "i + 1", "i", "1", "b[i + 1]", "b", "i + 1", "i", "1", "{\n continue;\n }", "continue;", "if (a[i + 2] != b[i + 2]) {\n continue;\n }", "a[i + 2] != b[i + 2]", "a[i + 2]", "a", "i + 2", "i", "2", "b[i + 2]", "b", "i + 2", "i", "2", "{\n continue;\n }", "continue;", "return \"Yes\";", "\"Yes\"", "return \"No\";", "\"No\"", "public class Main {\n static Scanner in = new Scanner(System.in);\n static int[] a;\n static int[] b;\n static int n;\n public static void main(String[] args) {\n n = in.nextInt();\n a = new int[n];\n b = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n System.out.println(check());\n }\n static String check() {\n for (int i = 0; i + 2 < n; i++) {\n if (a[i] != b[i]) {\n continue;\n }\n if (a[i + 1] != b[i + 1]) {\n continue;\n }\n if (a[i + 2] != b[i + 2]) {\n continue;\n }\n return \"Yes\";\n }\n return \"No\";\n }\n}", "public class Main {\n static Scanner in = new Scanner(System.in);\n static int[] a;\n static int[] b;\n static int n;\n public static void main(String[] args) {\n n = in.nextInt();\n a = new int[n];\n b = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n System.out.println(check());\n }\n static String check() {\n for (int i = 0; i + 2 < n; i++) {\n if (a[i] != b[i]) {\n continue;\n }\n if (a[i + 1] != b[i + 1]) {\n continue;\n }\n if (a[i + 2] != b[i + 2]) {\n continue;\n }\n return \"Yes\";\n }\n return \"No\";\n }\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner in = new Scanner(System.in); static int[] a; static int[] b; static int n; public static void main(String[] args) { n = in.nextInt(); a = new int[n]; b = new int[n]; for (int i = 0; i < n; i++) { a[i] = in.nextInt(); b[i] = in.nextInt(); } System.out.println(check()); } static String check() { for (int i = 0; i + 2 < n; i++) { if (a[i] != b[i]) { continue; } if (a[i + 1] != b[i + 1]) { continue; } if (a[i + 2] != b[i + 2]) { continue; } return "Yes"; } return "No"; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 40, 13, 14, 2, 13, 17, 30, 0, 13, 17, 3, 0, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 93, 5 ], [ 93, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 49, 71 ], [ 71, 72 ], [ 71, 73 ], [ 8, 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 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.io.*;\npublic class Main{\n public static void main(String args[])throws IOException\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n int i,c=0,flag=0;\n String s=\"\";\n for(i=0;i<n;i++)\n {\n s=br.readLine();\n if(s.charAt(0)==(s.charAt(2))){\n c++;\n if(c>2){\n flag=1;\n break;}\n }\n else\n c=0;\n \n }\n if(flag==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "import java.io.*;", "io.*", "java", "public class Main{\n public static void main(String args[])throws IOException\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n int i,c=0,flag=0;\n String s=\"\";\n for(i=0;i<n;i++)\n {\n s=br.readLine();\n if(s.charAt(0)==(s.charAt(2))){\n c++;\n if(c>2){\n flag=1;\n break;}\n }\n else\n c=0;\n \n }\n if(flag==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String args[])throws IOException\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n int i,c=0,flag=0;\n String s=\"\";\n for(i=0;i<n;i++)\n {\n s=br.readLine();\n if(s.charAt(0)==(s.charAt(2))){\n c++;\n if(c>2){\n flag=1;\n break;}\n }\n else\n c=0;\n \n }\n if(flag==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "main", "{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n int i,c=0,flag=0;\n String s=\"\";\n for(i=0;i<n;i++)\n {\n s=br.readLine();\n if(s.charAt(0)==(s.charAt(2))){\n c++;\n if(c>2){\n flag=1;\n break;}\n }\n else\n c=0;\n \n }\n if(flag==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n=Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int i", "i", "c=0", "c", "0", "flag=0;", "flag", "0", "String s=\"\";", "s", "\"\"", "for(i=0;i<n;i++)\n {\n s=br.readLine();\n if(s.charAt(0)==(s.charAt(2))){\n c++;\n if(c>2){\n flag=1;\n break;}\n }\n else\n c=0;\n \n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n s=br.readLine();\n if(s.charAt(0)==(s.charAt(2))){\n c++;\n if(c>2){\n flag=1;\n break;}\n }\n else\n c=0;\n \n }", "{\n s=br.readLine();\n if(s.charAt(0)==(s.charAt(2))){\n c++;\n if(c>2){\n flag=1;\n break;}\n }\n else\n c=0;\n \n }", "s=br.readLine()", "s", "br.readLine()", "br.readLine", "br", "if(s.charAt(0)==(s.charAt(2))){\n c++;\n if(c>2){\n flag=1;\n break;}\n }\n else\n c=0;", "s.charAt(0)==(s.charAt(2))", "s.charAt(0)", "s.charAt", "s", "0", "(s.charAt(2))", "s.charAt", "s", "2", "{\n c++;\n if(c>2){\n flag=1;\n break;}\n }", "c++", "c", "if(c>2){\n flag=1;\n break;}", "c>2", "c", "2", "{\n flag=1;\n break;}", "flag=1", "flag", "1", "break;", "c=0", "c", "0", "if(flag==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "flag==1", "flag", "1", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String args[]", "args", "public class Main{\n public static void main(String args[])throws IOException\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n int i,c=0,flag=0;\n String s=\"\";\n for(i=0;i<n;i++)\n {\n s=br.readLine();\n if(s.charAt(0)==(s.charAt(2))){\n c++;\n if(c>2){\n flag=1;\n break;}\n }\n else\n c=0;\n \n }\n if(flag==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "public class Main{\n public static void main(String args[])throws IOException\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n int i,c=0,flag=0;\n String s=\"\";\n for(i=0;i<n;i++)\n {\n s=br.readLine();\n if(s.charAt(0)==(s.charAt(2))){\n c++;\n if(c>2){\n flag=1;\n break;}\n }\n else\n c=0;\n \n }\n if(flag==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\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)); int n=Integer.parseInt(br.readLine()); int i,c=0,flag=0; String s=""; for(i=0;i<n;i++) { s=br.readLine(); if(s.charAt(0)==(s.charAt(2))){ c++; if(c>2){ flag=1; break;} } else c=0; } if(flag==1) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 8, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 70, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 69, 81 ], [ 81, 82 ], [ 82, 83 ], [ 69, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 68, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 92, 99 ], [ 8, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 6, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] arr = new int[n][2];\n for(int i = 0; i < n; i++){\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n }\n int count = 0;\n for(int i = 0; i < n; i++){\n if(arr[i][0] == arr[i][1]){\n count++;\n } else {\n count = 0;\n }\n if(count == 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] arr = new int[n][2];\n for(int i = 0; i < n; i++){\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n }\n int count = 0;\n for(int i = 0; i < n; i++){\n if(arr[i][0] == arr[i][1]){\n count++;\n } else {\n count = 0;\n }\n if(count == 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] arr = new int[n][2];\n for(int i = 0; i < n; i++){\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n }\n int count = 0;\n for(int i = 0; i < n; i++){\n if(arr[i][0] == arr[i][1]){\n count++;\n } else {\n count = 0;\n }\n if(count == 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] arr = new int[n][2];\n for(int i = 0; i < n; i++){\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n }\n int count = 0;\n for(int i = 0; i < n; i++){\n if(arr[i][0] == arr[i][1]){\n count++;\n } else {\n count = 0;\n }\n if(count == 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[][] arr = new int[n][2];", "arr", "new int[n][2]", "n", "2", "for(int i = 0; i < n; i++){\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n }", "{\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n }", "arr[i][0] = sc.nextInt()", "arr[i][0]", "arr[i]", "arr", "i", "0", "sc.nextInt()", "sc.nextInt", "sc", "arr[i][1] = sc.nextInt()", "arr[i][1]", "arr[i]", "arr", "i", "1", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "for(int i = 0; i < n; i++){\n if(arr[i][0] == arr[i][1]){\n count++;\n } else {\n count = 0;\n }\n if(count == 3){\n System.out.println(\"Yes\");\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if(arr[i][0] == arr[i][1]){\n count++;\n } else {\n count = 0;\n }\n if(count == 3){\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n if(arr[i][0] == arr[i][1]){\n count++;\n } else {\n count = 0;\n }\n if(count == 3){\n System.out.println(\"Yes\");\n return;\n }\n }", "if(arr[i][0] == arr[i][1]){\n count++;\n } else {\n count = 0;\n }", "arr[i][0] == arr[i][1]", "arr[i][0]", "arr[i]", "arr", "i", "0", "arr[i][1]", "arr[i]", "arr", "i", "1", "{\n count++;\n }", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "if(count == 3){\n System.out.println(\"Yes\");\n return;\n }", "count == 3", "count", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] arr = new int[n][2];\n for(int i = 0; i < n; i++){\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n }\n int count = 0;\n for(int i = 0; i < n; i++){\n if(arr[i][0] == arr[i][1]){\n count++;\n } else {\n count = 0;\n }\n if(count == 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] arr = new int[n][2];\n for(int i = 0; i < n; i++){\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n }\n int count = 0;\n for(int i = 0; i < n; i++){\n if(arr[i][0] == arr[i][1]){\n count++;\n } else {\n count = 0;\n }\n if(count == 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][] arr = new int[n][2]; for(int i = 0; i < n; i++){ arr[i][0] = sc.nextInt(); arr[i][1] = sc.nextInt(); } int count = 0; for(int i = 0; i < n; i++){ if(arr[i][0] == arr[i][1]){ count++; } else { count = 0; } if(count == 3){ System.out.println("Yes"); return; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 18, 13, 13, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 40, 13, 30, 14, 2, 13, 13, 0, 13, 17, 14, 40, 13, 30, 14, 2, 13, 13, 0, 13, 17, 0, 13, 17, 30, 14, 2, 13, 13, 30, 4, 18, 13, 17, 29, 30, 0, 13, 17, 0, 13, 17, 4, 18, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 117, 11 ], [ 117, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 20, 21 ], [ 20, 22 ], [ 12, 23 ], [ 23, 24 ], [ 117, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 27, 36 ], [ 36, 37 ], [ 36, 38 ], [ 27, 39 ], [ 39, 40 ], [ 39, 41 ], [ 27, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 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 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 65, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 80, 87 ], [ 87, 88 ], [ 87, 89 ], [ 76, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 95, 100 ], [ 91, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 27, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 25, 112 ], [ 112, 113 ], [ 25, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "\nimport java.io.InputStream;\nimport java.io.PrintStream;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n boolean first = false;\n boolean second = false;\n for(int i = 0; i < N; i++) {\n int D1 = scan.nextInt();\n int D2 = scan.nextInt();\n if(!first) {\n if(D1 == D2)\n first = true;\n } else if (!second) {\n if(D1 == D2)\n second = true;\n else\n first = false;\n } else {\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }\n }\n\n\n os.println(\"No\");\n }\n}", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintStream;", "PrintStream", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n boolean first = false;\n boolean second = false;\n for(int i = 0; i < N; i++) {\n int D1 = scan.nextInt();\n int D2 = scan.nextInt();\n if(!first) {\n if(D1 == D2)\n first = true;\n } else if (!second) {\n if(D1 == D2)\n second = true;\n else\n first = false;\n } else {\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }\n }\n\n\n os.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }", "main", "{\n solve(System.in, System.out);\n }", "solve(System.in, System.out)", "solve", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n boolean first = false;\n boolean second = false;\n for(int i = 0; i < N; i++) {\n int D1 = scan.nextInt();\n int D2 = scan.nextInt();\n if(!first) {\n if(D1 == D2)\n first = true;\n } else if (!second) {\n if(D1 == D2)\n second = true;\n else\n first = false;\n } else {\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }\n }\n\n\n os.println(\"No\");\n }", "solve", "{\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n boolean first = false;\n boolean second = false;\n for(int i = 0; i < N; i++) {\n int D1 = scan.nextInt();\n int D2 = scan.nextInt();\n if(!first) {\n if(D1 == D2)\n first = true;\n } else if (!second) {\n if(D1 == D2)\n second = true;\n else\n first = false;\n } else {\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }\n }\n\n\n os.println(\"No\");\n }", "Scanner scan = new Scanner(is);", "scan", "new Scanner(is)", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "boolean first = false;", "first", "false", "boolean second = false;", "second", "false", "for(int i = 0; i < N; i++) {\n int D1 = scan.nextInt();\n int D2 = scan.nextInt();\n if(!first) {\n if(D1 == D2)\n first = true;\n } else if (!second) {\n if(D1 == D2)\n second = true;\n else\n first = false;\n } else {\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n int D1 = scan.nextInt();\n int D2 = scan.nextInt();\n if(!first) {\n if(D1 == D2)\n first = true;\n } else if (!second) {\n if(D1 == D2)\n second = true;\n else\n first = false;\n } else {\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }\n }", "{\n int D1 = scan.nextInt();\n int D2 = scan.nextInt();\n if(!first) {\n if(D1 == D2)\n first = true;\n } else if (!second) {\n if(D1 == D2)\n second = true;\n else\n first = false;\n } else {\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }\n }", "int D1 = scan.nextInt();", "D1", "scan.nextInt()", "scan.nextInt", "scan", "int D2 = scan.nextInt();", "D2", "scan.nextInt()", "scan.nextInt", "scan", "if(!first) {\n if(D1 == D2)\n first = true;\n } else if (!second) {\n if(D1 == D2)\n second = true;\n else\n first = false;\n } else {\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }", "!first", "first", "{\n if(D1 == D2)\n first = true;\n }", "if(D1 == D2)\n first = true;", "D1 == D2", "D1", "D2", "first = true", "first", "true", "if (!second) {\n if(D1 == D2)\n second = true;\n else\n first = false;\n } else {\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }", "!second", "second", "{\n if(D1 == D2)\n second = true;\n else\n first = false;\n }", "if(D1 == D2)\n second = true;\n else\n first = false;", "D1 == D2", "D1", "D2", "second = true", "second", "true", "first = false", "first", "false", "{\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }", "if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }", "D1 == D2", "D1", "D2", "{\n os.println(\"Yes\");\n return;\n }", "os.println(\"Yes\")", "os.println", "os", "\"Yes\"", "return;", "{\n first = false;\n second = false;\n }", "first = false", "first", "false", "second = false", "second", "false", "os.println(\"No\")", "os.println", "os", "\"No\"", "InputStream is", "is", "PrintStream os", "os", "public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n boolean first = false;\n boolean second = false;\n for(int i = 0; i < N; i++) {\n int D1 = scan.nextInt();\n int D2 = scan.nextInt();\n if(!first) {\n if(D1 == D2)\n first = true;\n } else if (!second) {\n if(D1 == D2)\n second = true;\n else\n first = false;\n } else {\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }\n }\n\n\n os.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n boolean first = false;\n boolean second = false;\n for(int i = 0; i < N; i++) {\n int D1 = scan.nextInt();\n int D2 = scan.nextInt();\n if(!first) {\n if(D1 == D2)\n first = true;\n } else if (!second) {\n if(D1 == D2)\n second = true;\n else\n first = false;\n } else {\n if(D1 == D2) {\n os.println(\"Yes\");\n return;\n } else {\n first = false;\n second = false;\n }\n }\n }\n\n\n os.println(\"No\");\n }\n}", "Main" ]
import java.io.InputStream; import java.io.PrintStream; import java.util.*; public class Main { public static void main(String[] args) throws Exception { solve(System.in, System.out); } static void solve(InputStream is, PrintStream os) { // Your code here! Scanner scan = new Scanner(is); int N = scan.nextInt(); boolean first = false; boolean second = false; for(int i = 0; i < N; i++) { int D1 = scan.nextInt(); int D2 = scan.nextInt(); if(!first) { if(D1 == D2) first = true; } else if (!second) { if(D1 == D2) second = true; else first = false; } else { if(D1 == D2) { os.println("Yes"); return; } else { first = false; second = false; } } } os.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 20, 17, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 18, 18, 13, 2, 13, 17, 17, 13, 0, 18, 18, 13, 2, 13, 17, 17, 13, 14, 2, 13, 17, 30, 14, 2, 2, 2, 18, 18, 13, 17, 17, 18, 18, 13, 17, 17, 2, 18, 18, 13, 17, 17, 18, 18, 13, 17, 17, 2, 18, 18, 13, 17, 17, 18, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 17, 3, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 53, 59 ], [ 52, 60 ], [ 41, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 62, 68 ], [ 61, 69 ], [ 41, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 77, 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 ], [ 91, 93 ], [ 90, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 77, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 100, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 75, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 111, 118 ], [ 118, 119 ], [ 118, 120 ], [ 111, 121 ], [ 8, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 6, 133 ], [ 133, 134 ], [ 0, 135 ], [ 135, 136 ], [ 135, 137 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a, b;\n int me[][] = new int [3][2];\n int flg = 0;\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n me[i % 3][0] = a;\n me[i % 3][1] = b;\n if(i > 1){\n if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }\n }\n }\n if(flg == 0){\n System.out.println(\"No\");\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a, b;\n int me[][] = new int [3][2];\n int flg = 0;\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n me[i % 3][0] = a;\n me[i % 3][1] = b;\n if(i > 1){\n if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }\n }\n }\n if(flg == 0){\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a, b;\n int me[][] = new int [3][2];\n int flg = 0;\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n me[i % 3][0] = a;\n me[i % 3][1] = b;\n if(i > 1){\n if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }\n }\n }\n if(flg == 0){\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a, b;\n int me[][] = new int [3][2];\n int flg = 0;\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n me[i % 3][0] = a;\n me[i % 3][1] = b;\n if(i > 1){\n if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }\n }\n }\n if(flg == 0){\n System.out.println(\"No\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int a", "a", "b;", "b", "int me[][] = new int [3][2];", "me", "new int [3][2]", "3", "2", "int flg = 0;", "flg", "0", "for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n me[i % 3][0] = a;\n me[i % 3][1] = b;\n if(i > 1){\n if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a = sc.nextInt();\n b = sc.nextInt();\n me[i % 3][0] = a;\n me[i % 3][1] = b;\n if(i > 1){\n if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }\n }\n }", "{\n a = sc.nextInt();\n b = sc.nextInt();\n me[i % 3][0] = a;\n me[i % 3][1] = b;\n if(i > 1){\n if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }\n }\n }", "a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b = sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "me[i % 3][0] = a", "me[i % 3][0]", "me[i % 3]", "me", "i % 3", "i", "3", "0", "a", "me[i % 3][1] = b", "me[i % 3][1]", "me[i % 3]", "me", "i % 3", "i", "3", "1", "b", "if(i > 1){\n if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }\n }", "i > 1", "i", "1", "{\n if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }\n }", "if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }", "me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]", "me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]", "me[0][0] == me[0][1]", "me[0][0]", "me[0]", "me", "0", "0", "me[0][1]", "me[0]", "me", "0", "1", "me[1][0] == me[1][1]", "me[1][0]", "me[1]", "me", "1", "0", "me[1][1]", "me[1]", "me", "1", "1", "me[2][0] == me[2][1]", "me[2][0]", "me[2]", "me", "2", "0", "me[2][1]", "me[2]", "me", "2", "1", "{\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "flg += 1", "flg", "1", "break;", "if(flg == 0){\n System.out.println(\"No\");\n }", "flg == 0", "flg", "0", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a, b;\n int me[][] = new int [3][2];\n int flg = 0;\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n me[i % 3][0] = a;\n me[i % 3][1] = b;\n if(i > 1){\n if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }\n }\n }\n if(flg == 0){\n System.out.println(\"No\");\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a, b;\n int me[][] = new int [3][2];\n int flg = 0;\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n me[i % 3][0] = a;\n me[i % 3][1] = b;\n if(i > 1){\n if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){\n System.out.println(\"Yes\");\n flg += 1;\n break;\n }\n }\n }\n if(flg == 0){\n System.out.println(\"No\");\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a, b; int me[][] = new int [3][2]; int flg = 0; for(int i = 0; i < n; i++){ a = sc.nextInt(); b = sc.nextInt(); me[i % 3][0] = a; me[i % 3][1] = b; if(i > 1){ if(me[0][0] == me[0][1] && me[1][0] == me[1][1] && me[2][0] == me[2][1]){ System.out.println("Yes"); flg += 1; break; } } } if(flg == 0){ System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 13, 13, 30, 40, 13, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 14, 13, 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 ], [ 108, 5 ], [ 108, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 41, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 41, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 41, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 70, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 8, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 89, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 6, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.*;\n\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int num = Integer.parseInt(line);\n\n int count = 0;\n boolean ret = false;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n int a = Integer.parseInt(lines[0]);\n int b = Integer.parseInt(lines[1]);\n if (a == b) {\n count++;\n if (count == 3) {\n ret = true;\n }\n } else {\n count = 0;\n }\n }\n\n if (ret) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int num = Integer.parseInt(line);\n\n int count = 0;\n boolean ret = false;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n int a = Integer.parseInt(lines[0]);\n int b = Integer.parseInt(lines[1]);\n if (a == b) {\n count++;\n if (count == 3) {\n ret = true;\n }\n } else {\n count = 0;\n }\n }\n\n if (ret) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int num = Integer.parseInt(line);\n\n int count = 0;\n boolean ret = false;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n int a = Integer.parseInt(lines[0]);\n int b = Integer.parseInt(lines[1]);\n if (a == b) {\n count++;\n if (count == 3) {\n ret = true;\n }\n } else {\n count = 0;\n }\n }\n\n if (ret) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int num = Integer.parseInt(line);\n\n int count = 0;\n boolean ret = false;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n int a = Integer.parseInt(lines[0]);\n int b = Integer.parseInt(lines[1]);\n if (a == b) {\n count++;\n if (count == 3) {\n ret = true;\n }\n } else {\n count = 0;\n }\n }\n\n if (ret) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "int num = Integer.parseInt(line);", "num", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "int count = 0;", "count", "0", "boolean ret = false;", "ret", "false", "for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n int a = Integer.parseInt(lines[0]);\n int b = Integer.parseInt(lines[1]);\n if (a == b) {\n count++;\n if (count == 3) {\n ret = true;\n }\n } else {\n count = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n int a = Integer.parseInt(lines[0]);\n int b = Integer.parseInt(lines[1]);\n if (a == b) {\n count++;\n if (count == 3) {\n ret = true;\n }\n } else {\n count = 0;\n }\n }", "{\n line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n int a = Integer.parseInt(lines[0]);\n int b = Integer.parseInt(lines[1]);\n if (a == b) {\n count++;\n if (count == 3) {\n ret = true;\n }\n } else {\n count = 0;\n }\n }", "line = sc.nextLine()", "line", "sc.nextLine()", "sc.nextLine", "sc", "String[] lines = line.split(\" \", 0);", "lines", "line.split(\" \", 0)", "line.split", "line", "\" \"", "0", "int a = Integer.parseInt(lines[0]);", "a", "Integer.parseInt(lines[0])", "Integer.parseInt", "Integer", "lines[0]", "lines", "0", "int b = Integer.parseInt(lines[1]);", "b", "Integer.parseInt(lines[1])", "Integer.parseInt", "Integer", "lines[1]", "lines", "1", "if (a == b) {\n count++;\n if (count == 3) {\n ret = true;\n }\n } else {\n count = 0;\n }", "a == b", "a", "b", "{\n count++;\n if (count == 3) {\n ret = true;\n }\n }", "count++", "count", "if (count == 3) {\n ret = true;\n }", "count == 3", "count", "3", "{\n ret = true;\n }", "ret = true", "ret", "true", "{\n count = 0;\n }", "count = 0", "count", "0", "if (ret) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "ret", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int num = Integer.parseInt(line);\n\n int count = 0;\n boolean ret = false;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n int a = Integer.parseInt(lines[0]);\n int b = Integer.parseInt(lines[1]);\n if (a == b) {\n count++;\n if (count == 3) {\n ret = true;\n }\n } else {\n count = 0;\n }\n }\n\n if (ret) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int num = Integer.parseInt(line);\n\n int count = 0;\n boolean ret = false;\n for (int i = 0; i < num; i++) {\n line = sc.nextLine();\n String[] lines = line.split(\" \", 0);\n int a = Integer.parseInt(lines[0]);\n int b = Integer.parseInt(lines[1]);\n if (a == b) {\n count++;\n if (count == 3) {\n ret = true;\n }\n } else {\n count = 0;\n }\n }\n\n if (ret) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String line = sc.nextLine(); int num = Integer.parseInt(line); int count = 0; boolean ret = false; for (int i = 0; i < num; i++) { line = sc.nextLine(); String[] lines = line.split(" ", 0); int a = Integer.parseInt(lines[0]); int b = Integer.parseInt(lines[1]); if (a == b) { count++; if (count == 3) { ret = true; } } else { count = 0; } } if (ret) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 0, 18, 18, 13, 13, 17, 4, 18, 13, 18, 13, 17, 0, 18, 18, 13, 13, 17, 4, 18, 13, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 30, 0, 13, 17, 3, 14, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 157, 8 ], [ 157, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 28, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 43, 48 ], [ 40, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 49, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 40, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 61, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 11, 73 ], [ 73, 74 ], [ 73, 75 ], [ 11, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 76, 86 ], [ 86, 87 ], [ 87, 88 ], [ 76, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 93, 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 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 106, 112 ], [ 105, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 113, 119 ], [ 93, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 121, 127 ], [ 120, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 128, 134 ], [ 91, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 11, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 140, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 9, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ] ]
[ "import java.io.*;\nimport java.util.*;\npublic class Main {\n public static void main(String[] args)throws Exception {\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(buffer.readLine());\n int [][] ds = new int[n][2];\n for (int pos = 0; pos < n; pos++) {\n String [] inp = buffer.readLine().split(\" \");\n ds[pos][0] = Integer.parseInt(inp[0]);\n ds[pos][1] = Integer.parseInt(inp[1]);\n }\n boolean check = false;\n for (int pos = 0; pos < n-2; pos++) {\n if(ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]){\n check = true;\n break;\n }\n }\n if (check)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args)throws Exception {\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(buffer.readLine());\n int [][] ds = new int[n][2];\n for (int pos = 0; pos < n; pos++) {\n String [] inp = buffer.readLine().split(\" \");\n ds[pos][0] = Integer.parseInt(inp[0]);\n ds[pos][1] = Integer.parseInt(inp[1]);\n }\n boolean check = false;\n for (int pos = 0; pos < n-2; pos++) {\n if(ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]){\n check = true;\n break;\n }\n }\n if (check)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args)throws Exception {\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(buffer.readLine());\n int [][] ds = new int[n][2];\n for (int pos = 0; pos < n; pos++) {\n String [] inp = buffer.readLine().split(\" \");\n ds[pos][0] = Integer.parseInt(inp[0]);\n ds[pos][1] = Integer.parseInt(inp[1]);\n }\n boolean check = false;\n for (int pos = 0; pos < n-2; pos++) {\n if(ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]){\n check = true;\n break;\n }\n }\n if (check)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "main", "{\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(buffer.readLine());\n int [][] ds = new int[n][2];\n for (int pos = 0; pos < n; pos++) {\n String [] inp = buffer.readLine().split(\" \");\n ds[pos][0] = Integer.parseInt(inp[0]);\n ds[pos][1] = Integer.parseInt(inp[1]);\n }\n boolean check = false;\n for (int pos = 0; pos < n-2; pos++) {\n if(ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]){\n check = true;\n break;\n }\n }\n if (check)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));", "buffer", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(buffer.readLine());", "n", "Integer.parseInt(buffer.readLine())", "Integer.parseInt", "Integer", "buffer.readLine()", "buffer.readLine", "buffer", "int [][] ds = new int[n][2];", "ds", "new int[n][2]", "n", "2", "for (int pos = 0; pos < n; pos++) {\n String [] inp = buffer.readLine().split(\" \");\n ds[pos][0] = Integer.parseInt(inp[0]);\n ds[pos][1] = Integer.parseInt(inp[1]);\n }", "int pos = 0;", "int pos = 0;", "pos", "0", "pos < n", "pos", "n", "pos++", "pos++", "pos", "{\n String [] inp = buffer.readLine().split(\" \");\n ds[pos][0] = Integer.parseInt(inp[0]);\n ds[pos][1] = Integer.parseInt(inp[1]);\n }", "{\n String [] inp = buffer.readLine().split(\" \");\n ds[pos][0] = Integer.parseInt(inp[0]);\n ds[pos][1] = Integer.parseInt(inp[1]);\n }", "String [] inp = buffer.readLine().split(\" \");", "inp", "buffer.readLine().split(\" \")", "buffer.readLine().split", "buffer.readLine()", "buffer.readLine", "buffer", "\" \"", "ds[pos][0] = Integer.parseInt(inp[0])", "ds[pos][0]", "ds[pos]", "ds", "pos", "0", "Integer.parseInt(inp[0])", "Integer.parseInt", "Integer", "inp[0]", "inp", "0", "ds[pos][1] = Integer.parseInt(inp[1])", "ds[pos][1]", "ds[pos]", "ds", "pos", "1", "Integer.parseInt(inp[1])", "Integer.parseInt", "Integer", "inp[1]", "inp", "1", "boolean check = false;", "check", "false", "for (int pos = 0; pos < n-2; pos++) {\n if(ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]){\n check = true;\n break;\n }\n }", "int pos = 0;", "int pos = 0;", "pos", "0", "pos < n-2", "pos", "n-2", "n", "2", "pos++", "pos++", "pos", "{\n if(ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]){\n check = true;\n break;\n }\n }", "{\n if(ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]){\n check = true;\n break;\n }\n }", "if(ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]){\n check = true;\n break;\n }", "ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]", "ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]", "ds[pos][0] == ds[pos][1]", "ds[pos][0]", "ds[pos]", "ds", "pos", "0", "ds[pos][1]", "ds[pos]", "ds", "pos", "1", "ds[pos+1][0] == ds[pos+1][1]", "ds[pos+1][0]", "ds[pos+1]", "ds", "pos+1", "pos", "1", "0", "ds[pos+1][1]", "ds[pos+1]", "ds", "pos+1", "pos", "1", "1", "ds[pos+2][0] == ds[pos+2][1]", "ds[pos+2][0]", "ds[pos+2]", "ds", "pos+2", "pos", "2", "0", "ds[pos+2][1]", "ds[pos+2]", "ds", "pos+2", "pos", "2", "1", "{\n check = true;\n break;\n }", "check = true", "check", "true", "break;", "if (check)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "check", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args)throws Exception {\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(buffer.readLine());\n int [][] ds = new int[n][2];\n for (int pos = 0; pos < n; pos++) {\n String [] inp = buffer.readLine().split(\" \");\n ds[pos][0] = Integer.parseInt(inp[0]);\n ds[pos][1] = Integer.parseInt(inp[1]);\n }\n boolean check = false;\n for (int pos = 0; pos < n-2; pos++) {\n if(ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]){\n check = true;\n break;\n }\n }\n if (check)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] args)throws Exception {\n BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(buffer.readLine());\n int [][] ds = new int[n][2];\n for (int pos = 0; pos < n; pos++) {\n String [] inp = buffer.readLine().split(\" \");\n ds[pos][0] = Integer.parseInt(inp[0]);\n ds[pos][1] = Integer.parseInt(inp[1]);\n }\n boolean check = false;\n for (int pos = 0; pos < n-2; pos++) {\n if(ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]){\n check = true;\n break;\n }\n }\n if (check)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args)throws Exception { BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(buffer.readLine()); int [][] ds = new int[n][2]; for (int pos = 0; pos < n; pos++) { String [] inp = buffer.readLine().split(" "); ds[pos][0] = Integer.parseInt(inp[0]); ds[pos][1] = Integer.parseInt(inp[1]); } boolean check = false; for (int pos = 0; pos < n-2; pos++) { if(ds[pos][0] == ds[pos][1] && ds[pos+1][0] == ds[pos+1][1] && ds[pos+2][0] == ds[pos+2][1]){ check = true; break; } } if (check) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 0, 13, 17, 14, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 139, 5 ], [ 139, 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 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 51, 57 ], [ 57, 58 ], [ 58, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 60, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 77, 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 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 89, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 97, 103 ], [ 77, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 112, 118 ], [ 75, 119 ], [ 119, 120 ], [ 119, 121 ], [ 8, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 122, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 6, 136 ], [ 136, 137 ], [ 0, 138 ], [ 138, 139 ], [ 138, 140 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main (String[] args){\n\tScanner sc = new Scanner(System.in);\n boolean result = false;\n int trial_num = sc.nextInt();\n int[][] combi = new int[trial_num][2];\n for(int i = 0; i < trial_num; i++) {\n\t\tfor(int j = 0; j < 2; j++){\n \tcombi[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < trial_num - 2; i++) {\n if(combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1])\n \t\tresult = true;\n }\n if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main (String[] args){\n\tScanner sc = new Scanner(System.in);\n boolean result = false;\n int trial_num = sc.nextInt();\n int[][] combi = new int[trial_num][2];\n for(int i = 0; i < trial_num; i++) {\n\t\tfor(int j = 0; j < 2; j++){\n \tcombi[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < trial_num - 2; i++) {\n if(combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1])\n \t\tresult = true;\n }\n if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "Main", "public static void main (String[] args){\n\tScanner sc = new Scanner(System.in);\n boolean result = false;\n int trial_num = sc.nextInt();\n int[][] combi = new int[trial_num][2];\n for(int i = 0; i < trial_num; i++) {\n\t\tfor(int j = 0; j < 2; j++){\n \tcombi[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < trial_num - 2; i++) {\n if(combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1])\n \t\tresult = true;\n }\n if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "main", "{\n\tScanner sc = new Scanner(System.in);\n boolean result = false;\n int trial_num = sc.nextInt();\n int[][] combi = new int[trial_num][2];\n for(int i = 0; i < trial_num; i++) {\n\t\tfor(int j = 0; j < 2; j++){\n \tcombi[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < trial_num - 2; i++) {\n if(combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1])\n \t\tresult = true;\n }\n if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "boolean result = false;", "result", "false", "int trial_num = sc.nextInt();", "trial_num", "sc.nextInt()", "sc.nextInt", "sc", "int[][] combi = new int[trial_num][2];", "combi", "new int[trial_num][2]", "trial_num", "2", "for(int i = 0; i < trial_num; i++) {\n\t\tfor(int j = 0; j < 2; j++){\n \tcombi[i][j] = sc.nextInt();\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < trial_num", "i", "trial_num", "i++", "i++", "i", "{\n\t\tfor(int j = 0; j < 2; j++){\n \tcombi[i][j] = sc.nextInt();\n }\n }", "{\n\t\tfor(int j = 0; j < 2; j++){\n \tcombi[i][j] = sc.nextInt();\n }\n }", "for(int j = 0; j < 2; j++){\n \tcombi[i][j] = sc.nextInt();\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 2", "j", "2", "j++", "j++", "j", "{\n \tcombi[i][j] = sc.nextInt();\n }", "{\n \tcombi[i][j] = sc.nextInt();\n }", "combi[i][j] = sc.nextInt()", "combi[i][j]", "combi[i]", "combi", "i", "j", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < trial_num - 2; i++) {\n if(combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1])\n \t\tresult = true;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < trial_num - 2", "i", "trial_num - 2", "trial_num", "2", "i++", "i++", "i", "{\n if(combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1])\n \t\tresult = true;\n }", "{\n if(combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1])\n \t\tresult = true;\n }", "if(combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1])\n \t\tresult = true;", "combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1]", "combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1]", "combi[i][0] == combi[i][1]", "combi[i][0]", "combi[i]", "combi", "i", "0", "combi[i][1]", "combi[i]", "combi", "i", "1", "combi[i+1][0] == combi[i+1][1]", "combi[i+1][0]", "combi[i+1]", "combi", "i+1", "i", "1", "0", "combi[i+1][1]", "combi[i+1]", "combi", "i+1", "i", "1", "1", "combi[i+2][0] == combi[i+2][1]", "combi[i+2][0]", "combi[i+2]", "combi", "i+2", "i", "2", "0", "combi[i+2][1]", "combi[i+2]", "combi", "i+2", "i", "2", "1", "result = true", "result", "true", "if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");", "result", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main (String[] args){\n\tScanner sc = new Scanner(System.in);\n boolean result = false;\n int trial_num = sc.nextInt();\n int[][] combi = new int[trial_num][2];\n for(int i = 0; i < trial_num; i++) {\n\t\tfor(int j = 0; j < 2; j++){\n \tcombi[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < trial_num - 2; i++) {\n if(combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1])\n \t\tresult = true;\n }\n if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main (String[] args){\n\tScanner sc = new Scanner(System.in);\n boolean result = false;\n int trial_num = sc.nextInt();\n int[][] combi = new int[trial_num][2];\n for(int i = 0; i < trial_num; i++) {\n\t\tfor(int j = 0; j < 2; j++){\n \tcombi[i][j] = sc.nextInt();\n }\n }\n for(int i = 0; i < trial_num - 2; i++) {\n if(combi[i][0] == combi[i][1] \n && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1])\n \t\tresult = true;\n }\n if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main (String[] args){ Scanner sc = new Scanner(System.in); boolean result = false; int trial_num = sc.nextInt(); int[][] combi = new int[trial_num][2]; for(int i = 0; i < trial_num; i++) { for(int j = 0; j < 2; j++){ combi[i][j] = sc.nextInt(); } } for(int i = 0; i < trial_num - 2; i++) { if(combi[i][0] == combi[i][1] && combi[i+1][0] == combi[i+1][1] && combi[i+2][0] == combi[i+2][1]) result = true; } if(result) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 14, 40, 13, 30, 0, 13, 17, 30, 14, 40, 13, 30, 0, 13, 17, 30, 0, 13, 17, 30, 14, 40, 13, 30, 0, 13, 17, 0, 13, 17, 0, 13, 17, 14, 13, 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 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 54, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 62, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 49, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 77, 84 ], [ 84, 85 ], [ 84, 86 ], [ 8, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 87, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 8, 103 ], [ 103, 104 ], [ 104, 105 ], [ 6, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "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\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tboolean bl1 = false;\n\t\tboolean bl2 = false;\n\t\tboolean bl3 = false;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\t//値が同じ場合\n\t\t\tif(a == b){\n\t\t\t\t//1度目のヒット\n\t\t\t\tif(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//3度未達の場合\n\t\t\t\tif(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(bl3){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n}", "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\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tboolean bl1 = false;\n\t\tboolean bl2 = false;\n\t\tboolean bl3 = false;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\t//値が同じ場合\n\t\t\tif(a == b){\n\t\t\t\t//1度目のヒット\n\t\t\t\tif(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//3度未達の場合\n\t\t\t\tif(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(bl3){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tboolean bl1 = false;\n\t\tboolean bl2 = false;\n\t\tboolean bl3 = false;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\t//値が同じ場合\n\t\t\tif(a == b){\n\t\t\t\t//1度目のヒット\n\t\t\t\tif(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//3度未達の場合\n\t\t\t\tif(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(bl3){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tboolean bl1 = false;\n\t\tboolean bl2 = false;\n\t\tboolean bl3 = false;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\t//値が同じ場合\n\t\t\tif(a == b){\n\t\t\t\t//1度目のヒット\n\t\t\t\tif(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//3度未達の場合\n\t\t\t\tif(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(bl3){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "boolean bl1 = false;", "bl1", "false", "boolean bl2 = false;", "bl2", "false", "boolean bl3 = false;", "bl3", "false", "for (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\t//値が同じ場合\n\t\t\tif(a == b){\n\t\t\t\t//1度目のヒット\n\t\t\t\tif(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//3度未達の場合\n\t\t\t\tif(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\t//値が同じ場合\n\t\t\tif(a == b){\n\t\t\t\t//1度目のヒット\n\t\t\t\tif(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//3度未達の場合\n\t\t\t\tif(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\t//値が同じ場合\n\t\t\tif(a == b){\n\t\t\t\t//1度目のヒット\n\t\t\t\tif(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//3度未達の場合\n\t\t\t\tif(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "if(a == b){\n\t\t\t\t//1度目のヒット\n\t\t\t\tif(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//3度未達の場合\n\t\t\t\tif(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}\n\t\t\t}", "a == b", "a", "b", "{\n\t\t\t\t//1度目のヒット\n\t\t\t\tif(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "if(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}", "!bl1", "bl1", "{\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}", "bl1 = true", "bl1", "true", "{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}", "if(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}", "!bl2", "bl2", "{\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}", "bl2 = true", "bl2", "true", "{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}", "bl3 = true", "bl3", "true", "{\n\t\t\t\t//3度未達の場合\n\t\t\t\tif(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}\n\t\t\t}", "if(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}", "!bl3", "bl3", "{\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}", "bl1 = false", "bl1", "false", "bl2 = false", "bl2", "false", "bl3 = false", "bl3", "false", "if(bl3){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "bl3", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tboolean bl1 = false;\n\t\tboolean bl2 = false;\n\t\tboolean bl3 = false;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\t//値が同じ場合\n\t\t\tif(a == b){\n\t\t\t\t//1度目のヒット\n\t\t\t\tif(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//3度未達の場合\n\t\t\t\tif(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(bl3){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tboolean bl1 = false;\n\t\tboolean bl2 = false;\n\t\tboolean bl3 = false;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\t//値が同じ場合\n\t\t\tif(a == b){\n\t\t\t\t//1度目のヒット\n\t\t\t\tif(!bl1){\n\t\t\t\t\tbl1 = true;\n\t\t\t\t}else{\n\t\t\t\t\t//2度目のヒット\n\t\t\t\t\tif(!bl2){\n\t\t\t\t\t\tbl2 = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//3度目のヒット\n\t\t\t\t\t\tbl3 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//3度未達の場合\n\t\t\t\tif(!bl3){\n\t\t\t\t\t//違う場合全部リセット\n\t\t\t\t\tbl1 = false;\n\t\t\t\t\tbl2 = false;\n\t\t\t\t\tbl3 = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(bl3){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 整数の入力 int n = sc.nextInt(); boolean bl1 = false; boolean bl2 = false; boolean bl3 = false; for (int i = 0; i < n; i++) { int a = sc.nextInt(); int b = sc.nextInt(); //値が同じ場合 if(a == b){ //1度目のヒット if(!bl1){ bl1 = true; }else{ //2度目のヒット if(!bl2){ bl2 = true; }else{ //3度目のヒット bl3 = true; } } }else{ //3度未達の場合 if(!bl3){ //違う場合全部リセット bl1 = false; bl2 = false; bl3 = false; } } } if(bl3){ System.out.println("Yes"); }else{ System.out.println("No"); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 2, 13, 17, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 2, 2, 13, 17, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 0, 13, 17, 3, 4, 18, 13, 8, 13, 17, 17, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 30, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 4, 18, 13, 13, 29, 4, 13, 13, 23, 13, 12, 13, 30, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 6, 13, 12, 13, 23, 13, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 18, 36, 13, 20, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 14, 2, 13, 2, 18, 13, 13, 17, 4, 18, 13, 17, 23, 13, 12, 13, 30, 4, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ], [ 0, 34 ], [ 458, 35 ], [ 458, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 38, 49 ], [ 49, 50 ], [ 49, 51 ], [ 38, 52 ], [ 52, 53 ], [ 52, 54 ], [ 38, 55 ], [ 55, 56 ], [ 55, 57 ], [ 38, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 58, 63 ], [ 38, 64 ], [ 64, 65 ], [ 65, 66 ], [ 36, 67 ], [ 67, 68 ], [ 458, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 73, 79 ], [ 79, 80 ], [ 79, 81 ], [ 73, 82 ], [ 82, 83 ], [ 82, 84 ], [ 73, 86 ], [ 86, 87 ], [ 86, 88 ], [ 73, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 95, 97 ], [ 90, 98 ], [ 98, 99 ], [ 99, 100 ], [ 90, 101 ], [ 102, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 102, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 115, 116 ], [ 73, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 122, 124 ], [ 117, 125 ], [ 125, 126 ], [ 126, 127 ], [ 117, 128 ], [ 129, 129 ], [ 129, 130 ], [ 130, 131 ], [ 134, 132 ], [ 158, 133 ], [ 147, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 139, 141 ], [ 134, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 147, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 150, 152 ], [ 147, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 155, 157 ], [ 158, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 134, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 166, 168 ], [ 163, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 171, 173 ], [ 130, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 174, 178 ], [ 73, 179 ], [ 179, 180 ], [ 180, 181 ], [ 179, 182 ], [ 182, 183 ], [ 182, 184 ], [ 182, 185 ], [ 71, 186 ], [ 186, 187 ], [ 71, 188 ], [ 188, 189 ], [ 71, 190 ], [ 190, 191 ], [ 458, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 192, 196 ], [ 196, 197 ], [ 196, 198 ], [ 192, 200 ], [ 200, 201 ], [ 192, 202 ], [ 202, 203 ], [ 192, 204 ], [ 204, 205 ], [ 192, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 206, 214 ], [ 214, 215 ], [ 192, 216 ], [ 216, 217 ], [ 216, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 219, 224 ], [ 224, 225 ], [ 225, 226 ], [ 218, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 227, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 231, 235 ], [ 235, 236 ], [ 236, 237 ], [ 236, 238 ], [ 238, 239 ], [ 239, 240 ], [ 235, 241 ], [ 241, 242 ], [ 242, 243 ], [ 242, 244 ], [ 244, 245 ], [ 245, 246 ], [ 244, 247 ], [ 231, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 248, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 218, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 192, 261 ], [ 261, 262 ], [ 261, 263 ], [ 263, 264 ], [ 264, 265 ], [ 264, 266 ], [ 266, 267 ], [ 263, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 268, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 263, 277 ], [ 277, 278 ], [ 277, 279 ], [ 263, 280 ], [ 280, 281 ], [ 281, 282 ], [ 281, 283 ], [ 280, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 287, 288 ], [ 284, 289 ], [ 289, 290 ], [ 289, 291 ], [ 291, 292 ], [ 263, 293 ], [ 293, 294 ], [ 293, 295 ], [ 263, 296 ], [ 296, 297 ], [ 297, 298 ], [ 298, 299 ], [ 298, 300 ], [ 296, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 304, 305 ], [ 304, 306 ], [ 303, 307 ], [ 307, 308 ], [ 307, 309 ], [ 302, 310 ], [ 310, 311 ], [ 311, 312 ], [ 301, 313 ], [ 313, 314 ], [ 313, 315 ], [ 301, 316 ], [ 316, 317 ], [ 316, 318 ], [ 318, 319 ], [ 318, 320 ], [ 301, 321 ], [ 321, 322 ], [ 321, 323 ], [ 323, 324 ], [ 263, 325 ], [ 325, 326 ], [ 326, 327 ], [ 326, 328 ], [ 192, 329 ], [ 329, 330 ], [ 329, 331 ], [ 331, 332 ], [ 332, 333 ], [ 333, 334 ], [ 333, 335 ], [ 332, 336 ], [ 336, 337 ], [ 337, 338 ], [ 338, 339 ], [ 339, 340 ], [ 338, 341 ], [ 331, 342 ], [ 342, 343 ], [ 343, 344 ], [ 343, 345 ], [ 329, 346 ], [ 346, 347 ], [ 192, 348 ], [ 348, 349 ], [ 348, 350 ], [ 350, 351 ], [ 351, 352 ], [ 355, 353 ], [ 365, 354 ], [ 362, 355 ], [ 355, 356 ], [ 356, 357 ], [ 356, 358 ], [ 355, 359 ], [ 359, 360 ], [ 359, 361 ], [ 362, 362 ], [ 362, 363 ], [ 362, 364 ], [ 365, 365 ], [ 365, 366 ], [ 365, 367 ], [ 355, 368 ], [ 368, 369 ], [ 368, 370 ], [ 370, 371 ], [ 348, 372 ], [ 372, 373 ], [ 192, 374 ], [ 374, 375 ], [ 374, 376 ], [ 376, 377 ], [ 376, 378 ], [ 378, 379 ], [ 458, 380 ], [ 380, 381 ], [ 380, 382 ], [ 382, 383 ], [ 380, 384 ], [ 384, 385 ], [ 384, 386 ], [ 386, 387 ], [ 387, 388 ], [ 387, 389 ], [ 384, 390 ], [ 390, 391 ], [ 380, 392 ], [ 392, 393 ], [ 392, 394 ], [ 394, 395 ], [ 395, 396 ], [ 396, 397 ], [ 396, 398 ], [ 395, 399 ], [ 392, 400 ], [ 400, 401 ], [ 380, 402 ], [ 402, 403 ], [ 402, 404 ], [ 404, 405 ], [ 405, 406 ], [ 406, 407 ], [ 407, 408 ], [ 407, 409 ], [ 405, 410 ], [ 410, 411 ], [ 410, 412 ], [ 412, 413 ], [ 412, 414 ], [ 405, 415 ], [ 415, 416 ], [ 416, 417 ], [ 405, 418 ], [ 419, 419 ], [ 419, 420 ], [ 420, 421 ], [ 421, 422 ], [ 420, 423 ], [ 423, 424 ], [ 423, 425 ], [ 419, 426 ], [ 426, 427 ], [ 427, 428 ], [ 427, 429 ], [ 429, 430 ], [ 430, 431 ], [ 430, 432 ], [ 429, 433 ], [ 426, 434 ], [ 434, 435 ], [ 435, 436 ], [ 434, 437 ], [ 402, 438 ], [ 438, 439 ], [ 380, 440 ], [ 440, 441 ], [ 440, 442 ], [ 442, 443 ], [ 443, 444 ], [ 443, 445 ], [ 442, 446 ], [ 446, 447 ], [ 447, 448 ], [ 440, 449 ], [ 449, 450 ], [ 380, 451 ], [ 451, 452 ], [ 451, 453 ], [ 453, 454 ], [ 454, 455 ], [ 455, 456 ], [ 0, 457 ], [ 457, 458 ], [ 457, 459 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/*\n * Copyright (c) --> Arpit\n * Date Created : 19/9/2020\n * Have A Good Day !\n */\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Arpit\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }\n \n static class BGoToJail {\n public void solve(int testNumber, FastReader r, OutputWriter out) {\n int n = r.nextInt();\n boolean flag = false;\n int[] d_x = new int[n];\n int[] d_y = new int[n];\n for (int i = 0; i < n; i++) {\n d_x[i] = r.nextInt();\n d_y[i] = r.nextInt();\n }\n for (int i = 0; i < n; i++) {\n if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]) {\n flag = true;\n break;\n }\n }\n out.println(flag ? \"Yes\" : \"No\");\n }\n \n }\n \n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n \n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n \n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n \n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n \n }\n \n }\n \n static class OutputWriter {\n private final PrintWriter writer;\n \n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n \n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n \n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }\n \n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n \n public void close() {\n writer.close();\n }\n \n }\n}\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.io.BufferedWriter;", "BufferedWriter", "java.io", "import java.io.Writer;", "Writer", "java.io", "import java.io.OutputStreamWriter;", "OutputStreamWriter", "java.io", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }\n \n static class BGoToJail {\n public void solve(int testNumber, FastReader r, OutputWriter out) {\n int n = r.nextInt();\n boolean flag = false;\n int[] d_x = new int[n];\n int[] d_y = new int[n];\n for (int i = 0; i < n; i++) {\n d_x[i] = r.nextInt();\n d_y[i] = r.nextInt();\n }\n for (int i = 0; i < n; i++) {\n if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]) {\n flag = true;\n break;\n }\n }\n out.println(flag ? \"Yes\" : \"No\");\n }\n \n }\n \n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n \n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n \n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n \n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n \n }\n \n }\n \n static class OutputWriter {\n private final PrintWriter writer;\n \n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n \n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n \n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }\n \n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n \n public void close() {\n writer.close();\n }\n \n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "FastReader in = new FastReader(inputStream);", "in", "new FastReader(inputStream)", "OutputWriter out = new OutputWriter(outputStream);", "out", "new OutputWriter(outputStream)", "BGoToJail solver = new BGoToJail();", "solver", "new BGoToJail()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class BGoToJail {\n public void solve(int testNumber, FastReader r, OutputWriter out) {\n int n = r.nextInt();\n boolean flag = false;\n int[] d_x = new int[n];\n int[] d_y = new int[n];\n for (int i = 0; i < n; i++) {\n d_x[i] = r.nextInt();\n d_y[i] = r.nextInt();\n }\n for (int i = 0; i < n; i++) {\n if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]) {\n flag = true;\n break;\n }\n }\n out.println(flag ? \"Yes\" : \"No\");\n }\n \n }", "BGoToJail", "public void solve(int testNumber, FastReader r, OutputWriter out) {\n int n = r.nextInt();\n boolean flag = false;\n int[] d_x = new int[n];\n int[] d_y = new int[n];\n for (int i = 0; i < n; i++) {\n d_x[i] = r.nextInt();\n d_y[i] = r.nextInt();\n }\n for (int i = 0; i < n; i++) {\n if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]) {\n flag = true;\n break;\n }\n }\n out.println(flag ? \"Yes\" : \"No\");\n }", "solve", "{\n int n = r.nextInt();\n boolean flag = false;\n int[] d_x = new int[n];\n int[] d_y = new int[n];\n for (int i = 0; i < n; i++) {\n d_x[i] = r.nextInt();\n d_y[i] = r.nextInt();\n }\n for (int i = 0; i < n; i++) {\n if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]) {\n flag = true;\n break;\n }\n }\n out.println(flag ? \"Yes\" : \"No\");\n }", "int n = r.nextInt();", "n", "r.nextInt()", "r.nextInt", "r", "boolean flag = false;", "flag", "false", "int[] d_x = new int[n];", "d_x", "new int[n]", "n", "int[] d_y = new int[n];", "d_y", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n d_x[i] = r.nextInt();\n d_y[i] = r.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n d_x[i] = r.nextInt();\n d_y[i] = r.nextInt();\n }", "{\n d_x[i] = r.nextInt();\n d_y[i] = r.nextInt();\n }", "d_x[i] = r.nextInt()", "d_x[i]", "d_x", "i", "r.nextInt()", "r.nextInt", "r", "d_y[i] = r.nextInt()", "d_y[i]", "d_y", "i", "r.nextInt()", "r.nextInt", "r", "for (int i = 0; i < n; i++) {\n if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]) {\n flag = true;\n break;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]) {\n flag = true;\n break;\n }\n }", "{\n if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]) {\n flag = true;\n break;\n }\n }", "if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]) {\n flag = true;\n break;\n }", "d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]", "i + 2 < n", "d_x[i + 1] == d_y[i + 1]", "d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]", "d_x[i] == d_y[i]", "d_x[i]", "d_x", "i", "d_y[i]", "d_y", "i", "i + 1 < n", "i + 1", "i", "1", "n", "d_x[i + 1] == d_y[i + 1]", "d_x[i + 1]", "d_x", "i + 1", "i", "1", "d_y[i + 1]", "d_y", "i + 1", "i", "1", "i + 2 < n", "i + 2", "i", "2", "n", "d_x[i + 2] == d_y[i + 2]", "d_x[i + 2]", "d_x", "i + 2", "i", "2", "d_y[i + 2]", "d_y", "i + 2", "i", "2", "{\n flag = true;\n break;\n }", "flag = true", "flag", "true", "break;", "out.println(flag ? \"Yes\" : \"No\")", "out.println", "out", "flag ? \"Yes\" : \"No\"", "flag", "\"Yes\"", "\"No\"", "int testNumber", "testNumber", "FastReader r", "r", "OutputWriter out", "out", "static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n \n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n \n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n \n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n \n }\n \n }", "FastReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private FastReader.SpaceCharFilter filter;", "filter", "public FastReader(InputStream stream) {\n this.stream = stream;\n }", "FastReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "if (numChars == -1) {\n throw new InputMismatchException();\n }", "numChars == -1", "numChars", "-1", "1", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0) {\n return -1;\n }", "numChars <= 0", "numChars", "0", "{\n return -1;\n }", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "nextInt", "{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) {\n c = read();\n }", "isSpaceChar(c)", "isSpaceChar", "c", "{\n c = read();\n }", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "int res = 0;", "res", "0", "do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "isSpaceChar", "{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "if (filter != null) {\n return filter.isSpaceChar(c);\n }", "filter != null", "filter", "null", "{\n return filter.isSpaceChar(c);\n }", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return isWhitespace(c);", "isWhitespace(c)", "isWhitespace", "c", "int c", "c", "public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isWhitespace", "{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n \n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "static class OutputWriter {\n private final PrintWriter writer;\n \n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n \n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n \n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }\n \n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n \n public void close() {\n writer.close();\n }\n \n }", "OutputWriter", "private final PrintWriter writer;", "writer", "public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }", "OutputWriter", "{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }", "writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))", "writer", "new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))", "OutputStream outputStream", "outputStream", "public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }", "OutputWriter", "{\n this.writer = new PrintWriter(writer);\n }", "this.writer = new PrintWriter(writer)", "this.writer", "this", "this.writer", "new PrintWriter(writer)", "Writer writer", "writer", "public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }", "print", "{\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }", "for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < objects.length", "i", "objects.length", "objects", "objects.length", "i++", "i++", "i", "{\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }", "{\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }", "writer.print(objects[i])", "writer.print", "writer", "objects[i]", "objects", "i", "if (i != objects.length - 1) writer.print(\" \");", "i != objects.length - 1", "i", "objects.length - 1", "objects.length", "objects", "objects.length", "1", "writer.print(\" \")", "writer.print", "writer", "\" \"", "Object... objects", "objects", "public void println(Object... objects) {\n print(objects);\n writer.println();\n }", "println", "{\n print(objects);\n writer.println();\n }", "print(objects)", "print", "objects", "writer.println()", "writer.println", "writer", "Object... objects", "objects", "public void close() {\n writer.close();\n }", "close", "{\n writer.close();\n }", "writer.close()", "writer.close", "writer", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }\n \n static class BGoToJail {\n public void solve(int testNumber, FastReader r, OutputWriter out) {\n int n = r.nextInt();\n boolean flag = false;\n int[] d_x = new int[n];\n int[] d_y = new int[n];\n for (int i = 0; i < n; i++) {\n d_x[i] = r.nextInt();\n d_y[i] = r.nextInt();\n }\n for (int i = 0; i < n; i++) {\n if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]) {\n flag = true;\n break;\n }\n }\n out.println(flag ? \"Yes\" : \"No\");\n }\n \n }\n \n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n \n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n \n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n \n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n \n }\n \n }\n \n static class OutputWriter {\n private final PrintWriter writer;\n \n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n \n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n \n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }\n \n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n \n public void close() {\n writer.close();\n }\n \n }\n}", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }\n \n static class BGoToJail {\n public void solve(int testNumber, FastReader r, OutputWriter out) {\n int n = r.nextInt();\n boolean flag = false;\n int[] d_x = new int[n];\n int[] d_y = new int[n];\n for (int i = 0; i < n; i++) {\n d_x[i] = r.nextInt();\n d_y[i] = r.nextInt();\n }\n for (int i = 0; i < n; i++) {\n if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n &&\n d_x[i + 2] == d_y[i + 2]) {\n flag = true;\n break;\n }\n }\n out.println(flag ? \"Yes\" : \"No\");\n }\n \n }\n \n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n \n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n \n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n \n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n \n }\n \n }\n \n static class OutputWriter {\n private final PrintWriter writer;\n \n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n \n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n \n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }\n \n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n \n public void close() {\n writer.close();\n }\n \n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.BufferedWriter; import java.io.Writer; import java.io.OutputStreamWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /* * Copyright (c) --> Arpit * Date Created : 19/9/2020 * Have A Good Day ! */ /** * Built using CHelper plug-in * Actual solution is at the top * * @author Arpit */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; FastReader in = new FastReader(inputStream); OutputWriter out = new OutputWriter(outputStream); BGoToJail solver = new BGoToJail(); solver.solve(1, in, out); out.close(); } static class BGoToJail { public void solve(int testNumber, FastReader r, OutputWriter out) { int n = r.nextInt(); boolean flag = false; int[] d_x = new int[n]; int[] d_y = new int[n]; for (int i = 0; i < n; i++) { d_x[i] = r.nextInt(); d_y[i] = r.nextInt(); } for (int i = 0; i < n; i++) { if (d_x[i] == d_y[i] && i + 1 < n && d_x[i + 1] == d_y[i + 1] && i + 2 < n && d_x[i + 2] == d_y[i + 2]) { flag = true; break; } } out.println(flag ? "Yes" : "No"); } } static class FastReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private FastReader.SpaceCharFilter filter; public FastReader(InputStream stream) { this.stream = stream; } public int read() { if (numChars == -1) { throw new InputMismatchException(); } if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) { return -1; } } return buf[curChar++]; } public int nextInt() { int c = read(); while (isSpaceChar(c)) { c = read(); } int sgn = 1; if (c == '-') { sgn = -1; c = read(); } int res = 0; do { if (c < '0' || c > '9') { throw new InputMismatchException(); } res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public boolean isSpaceChar(int c) { if (filter != null) { return filter.isSpaceChar(c); } return isWhitespace(c); } public static boolean isWhitespace(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } static class OutputWriter { private final PrintWriter writer; public OutputWriter(OutputStream outputStream) { writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream))); } public OutputWriter(Writer writer) { this.writer = new PrintWriter(writer); } public void print(Object... objects) { for (int i = 0; i < objects.length; i++) { writer.print(objects[i]); if (i != objects.length - 1) writer.print(" "); } } public void println(Object... objects) { print(objects); writer.println(); } public void close() { writer.close(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 40, 13, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 79, 11 ], [ 79, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 52, 58 ], [ 58, 59 ], [ 58, 60 ], [ 41, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 14, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 12, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.lang.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int ans = 0;\n String p = \"No\";\n for (int i = 0; i<n; i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a==b)\n ans++;\n else\n ans = 0;\n if (ans==3){\n p = \"Yes\";\n break;\n }\n }\n System.out.println(p);\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.lang.*;", "lang.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int ans = 0;\n String p = \"No\";\n for (int i = 0; i<n; i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a==b)\n ans++;\n else\n ans = 0;\n if (ans==3){\n p = \"Yes\";\n break;\n }\n }\n System.out.println(p);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int ans = 0;\n String p = \"No\";\n for (int i = 0; i<n; i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a==b)\n ans++;\n else\n ans = 0;\n if (ans==3){\n p = \"Yes\";\n break;\n }\n }\n System.out.println(p);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int ans = 0;\n String p = \"No\";\n for (int i = 0; i<n; i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a==b)\n ans++;\n else\n ans = 0;\n if (ans==3){\n p = \"Yes\";\n break;\n }\n }\n System.out.println(p);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int ans = 0;", "ans", "0", "String p = \"No\";", "p", "\"No\"", "for (int i = 0; i<n; i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a==b)\n ans++;\n else\n ans = 0;\n if (ans==3){\n p = \"Yes\";\n break;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a==b)\n ans++;\n else\n ans = 0;\n if (ans==3){\n p = \"Yes\";\n break;\n }\n }", "{\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a==b)\n ans++;\n else\n ans = 0;\n if (ans==3){\n p = \"Yes\";\n break;\n }\n }", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "if (a==b)\n ans++;\n else\n ans = 0;", "a==b", "a", "b", "ans++", "ans", "ans = 0", "ans", "0", "if (ans==3){\n p = \"Yes\";\n break;\n }", "ans==3", "ans", "3", "{\n p = \"Yes\";\n break;\n }", "p = \"Yes\"", "p", "\"Yes\"", "break;", "System.out.println(p)", "System.out.println", "System.out", "System", "System.out", "p", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int ans = 0;\n String p = \"No\";\n for (int i = 0; i<n; i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a==b)\n ans++;\n else\n ans = 0;\n if (ans==3){\n p = \"Yes\";\n break;\n }\n }\n System.out.println(p);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int ans = 0;\n String p = \"No\";\n for (int i = 0; i<n; i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a==b)\n ans++;\n else\n ans = 0;\n if (ans==3){\n p = \"Yes\";\n break;\n }\n }\n System.out.println(p);\n }\n}", "Main" ]
import java.util.*; import java.io.*; import java.lang.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ans = 0; String p = "No"; for (int i = 0; i<n; i++){ int a = sc.nextInt(); int b = sc.nextInt(); if (a==b) ans++; else ans = 0; if (ans==3){ p = "Yes"; break; } } System.out.println(p); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 13, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 13, 30, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 13, 30, 0, 13, 17, 0, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 17, 14, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 42, 2, 13, 17, 30, 41, 13, 13, 0, 13, 2, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 2, 18, 13, 13, 17, 42, 2, 13, 13, 30, 41, 13, 2, 13, 2, 2, 2, 13, 13, 17, 17, 14, 2, 18, 13, 13, 13, 30, 0, 13, 13, 30, 0, 13, 2, 13, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 2, 18, 13, 13, 17, 42, 2, 13, 13, 30, 41, 13, 2, 13, 2, 2, 13, 13, 17, 14, 2, 18, 13, 13, 13, 30, 0, 13, 13, 30, 0, 13, 2, 13, 17, 29, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 332, 14 ], [ 332, 15 ], [ 15, 16 ], [ 15, 17 ], [ 332, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 20, 30 ], [ 30, 31 ], [ 30, 32 ], [ 20, 33 ], [ 33, 34 ], [ 33, 35 ], [ 20, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 36, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 50, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 61, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 73, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 85, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 85, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 100, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 20, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 18, 126 ], [ 126, 127 ], [ 332, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 133, 134 ], [ 133, 135 ], [ 128, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 139, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 144, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 138, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 128, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 166, 167 ], [ 128, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 170, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 180, 181 ], [ 180, 182 ], [ 175, 183 ], [ 183, 184 ], [ 184, 185 ], [ 175, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 191, 192 ], [ 170, 193 ], [ 193, 194 ], [ 168, 195 ], [ 195, 196 ], [ 128, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 201, 204 ], [ 204, 205 ], [ 128, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 213, 217 ], [ 217, 218 ], [ 217, 219 ], [ 219, 220 ], [ 219, 221 ], [ 213, 222 ], [ 222, 223 ], [ 222, 224 ], [ 208, 225 ], [ 225, 226 ], [ 206, 227 ], [ 227, 228 ], [ 206, 229 ], [ 229, 230 ], [ 128, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 233, 237 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 239, 243 ], [ 233, 244 ], [ 244, 245 ], [ 245, 246 ], [ 245, 247 ], [ 244, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 254, 258 ], [ 253, 259 ], [ 248, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 262, 264 ], [ 261, 265 ], [ 260, 266 ], [ 266, 267 ], [ 267, 268 ], [ 267, 269 ], [ 260, 270 ], [ 270, 271 ], [ 271, 272 ], [ 271, 273 ], [ 273, 274 ], [ 273, 275 ], [ 233, 276 ], [ 276, 277 ], [ 231, 278 ], [ 278, 279 ], [ 231, 280 ], [ 280, 281 ], [ 128, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 284, 288 ], [ 288, 289 ], [ 288, 290 ], [ 290, 291 ], [ 291, 292 ], [ 291, 293 ], [ 290, 294 ], [ 284, 295 ], [ 295, 296 ], [ 296, 297 ], [ 296, 298 ], [ 295, 299 ], [ 299, 300 ], [ 300, 301 ], [ 300, 302 ], [ 302, 303 ], [ 302, 304 ], [ 304, 305 ], [ 305, 306 ], [ 305, 307 ], [ 304, 308 ], [ 299, 309 ], [ 309, 310 ], [ 310, 311 ], [ 311, 312 ], [ 311, 313 ], [ 310, 314 ], [ 309, 315 ], [ 315, 316 ], [ 316, 317 ], [ 316, 318 ], [ 309, 319 ], [ 319, 320 ], [ 320, 321 ], [ 320, 322 ], [ 322, 323 ], [ 322, 324 ], [ 284, 325 ], [ 325, 326 ], [ 282, 327 ], [ 327, 328 ], [ 282, 329 ], [ 329, 330 ], [ 0, 331 ], [ 331, 332 ], [ 331, 333 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main{\n private static FastScanner fs = new FastScanner();\n public static void main(String[] args) {\n\n int n = fs.nextInt();\n int arr[] = new int[101];\n int flag =0;\n boolean isTrue = false;\n for(int i=3;i<(n+3);i++)\n {\n int a = fs.nextInt();\n int b = fs.nextInt();\n if(a==b && flag==0)\n {\n flag=1;\n }\n else if(flag==1 && a==b)\n {\n flag =2;\n }\n else if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }\n }\n if(isTrue) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n int gcd(int a,int b)\n {\n while (b > 0)\n {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a;\n }\n private int upper(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low+1)/2;\n if(arr[mid] <= key){\n low = mid;\n }\n else{\n high = mid-1;\n }\n }\n return low;\n }\n public int lower(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low)/2;\n if(arr[mid] >= key){\n high = mid;\n }\n else{\n low = mid+1;\n }\n }\n return low;\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main{\n private static FastScanner fs = new FastScanner();\n public static void main(String[] args) {\n\n int n = fs.nextInt();\n int arr[] = new int[101];\n int flag =0;\n boolean isTrue = false;\n for(int i=3;i<(n+3);i++)\n {\n int a = fs.nextInt();\n int b = fs.nextInt();\n if(a==b && flag==0)\n {\n flag=1;\n }\n else if(flag==1 && a==b)\n {\n flag =2;\n }\n else if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }\n }\n if(isTrue) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n int gcd(int a,int b)\n {\n while (b > 0)\n {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a;\n }\n private int upper(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low+1)/2;\n if(arr[mid] <= key){\n low = mid;\n }\n else{\n high = mid-1;\n }\n }\n return low;\n }\n public int lower(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low)/2;\n if(arr[mid] >= key){\n high = mid;\n }\n else{\n low = mid+1;\n }\n }\n return low;\n }\n }\n}", "Main", "private static FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "public static void main(String[] args) {\n\n int n = fs.nextInt();\n int arr[] = new int[101];\n int flag =0;\n boolean isTrue = false;\n for(int i=3;i<(n+3);i++)\n {\n int a = fs.nextInt();\n int b = fs.nextInt();\n if(a==b && flag==0)\n {\n flag=1;\n }\n else if(flag==1 && a==b)\n {\n flag =2;\n }\n else if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }\n }\n if(isTrue) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "main", "{\n\n int n = fs.nextInt();\n int arr[] = new int[101];\n int flag =0;\n boolean isTrue = false;\n for(int i=3;i<(n+3);i++)\n {\n int a = fs.nextInt();\n int b = fs.nextInt();\n if(a==b && flag==0)\n {\n flag=1;\n }\n else if(flag==1 && a==b)\n {\n flag =2;\n }\n else if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }\n }\n if(isTrue) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "int n = fs.nextInt();", "n", "fs.nextInt()", "fs.nextInt", "fs", "int arr[] = new int[101];", "arr", "new int[101]", "101", "int flag =0;", "flag", "0", "boolean isTrue = false;", "isTrue", "false", "for(int i=3;i<(n+3);i++)\n {\n int a = fs.nextInt();\n int b = fs.nextInt();\n if(a==b && flag==0)\n {\n flag=1;\n }\n else if(flag==1 && a==b)\n {\n flag =2;\n }\n else if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }\n }", "int i=3;", "int i=3;", "i", "3", "i<(n+3)", "i", "(n+3)", "n", "3", "i++", "i++", "i", "{\n int a = fs.nextInt();\n int b = fs.nextInt();\n if(a==b && flag==0)\n {\n flag=1;\n }\n else if(flag==1 && a==b)\n {\n flag =2;\n }\n else if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }\n }", "{\n int a = fs.nextInt();\n int b = fs.nextInt();\n if(a==b && flag==0)\n {\n flag=1;\n }\n else if(flag==1 && a==b)\n {\n flag =2;\n }\n else if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }\n }", "int a = fs.nextInt();", "a", "fs.nextInt()", "fs.nextInt", "fs", "int b = fs.nextInt();", "b", "fs.nextInt()", "fs.nextInt", "fs", "if(a==b && flag==0)\n {\n flag=1;\n }\n else if(flag==1 && a==b)\n {\n flag =2;\n }\n else if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }", "a==b && flag==0", "a==b", "a", "b", "flag==0", "flag", "0", "{\n flag=1;\n }", "flag=1", "flag", "1", "if(flag==1 && a==b)\n {\n flag =2;\n }\n else if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }", "flag==1 && a==b", "flag==1", "flag", "1", "a==b", "a", "b", "{\n flag =2;\n }", "flag =2", "flag", "2", "if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }", "flag ==2 && a==b", "flag ==2", "flag", "2", "a==b", "a", "b", "{\n flag =3;\n isTrue = true;\n }", "flag =3", "flag", "3", "isTrue = true", "isTrue", "true", "if(a==b || a !=b)\n {\n flag=0;\n }", "a==b || a !=b", "a==b", "a", "b", "a !=b", "a", "b", "{\n flag=0;\n }", "flag=0", "flag", "0", "if(isTrue) System.out.println(\"Yes\");\n else System.out.println(\"No\");", "isTrue", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n int gcd(int a,int b)\n {\n while (b > 0)\n {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a;\n }\n private int upper(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low+1)/2;\n if(arr[mid] <= key){\n low = mid;\n }\n else{\n high = mid-1;\n }\n }\n return low;\n }\n public int lower(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low)/2;\n if(arr[mid] >= key){\n high = mid;\n }\n else{\n low = mid+1;\n }\n }\n return low;\n }\n }", "FastScanner", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st = new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "next", "{\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }", "readArray", "{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++) a[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextInt();", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "int gcd(int a,int b)\n {\n while (b > 0)\n {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a;\n }", "gcd", "{\n while (b > 0)\n {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a;\n }", "while (b > 0)\n {\n int temp = b;\n b = a % b;\n a = temp;\n }", "b > 0", "b", "0", "{\n int temp = b;\n b = a % b;\n a = temp;\n }", "int temp = b;", "temp", "b", "b = a % b", "b", "a % b", "a", "b", "a = temp", "a", "temp", "return a;", "a", "int a", "a", "int b", "b", "private int upper(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low+1)/2;\n if(arr[mid] <= key){\n low = mid;\n }\n else{\n high = mid-1;\n }\n }\n return low;\n }", "upper", "{\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low+1)/2;\n if(arr[mid] <= key){\n low = mid;\n }\n else{\n high = mid-1;\n }\n }\n return low;\n }", "int low = 0;", "low", "0", "int high = arr.length-1;", "high", "arr.length-1", "arr.length", "arr", "arr.length", "1", "while(low < high){\n int mid = low + (high - low+1)/2;\n if(arr[mid] <= key){\n low = mid;\n }\n else{\n high = mid-1;\n }\n }", "low < high", "low", "high", "{\n int mid = low + (high - low+1)/2;\n if(arr[mid] <= key){\n low = mid;\n }\n else{\n high = mid-1;\n }\n }", "int mid = low + (high - low+1)/2;", "mid", "low + (high - low+1)/2", "low", "(high - low+1)/2", "(high - low+1)", "high - low", "high", "low", "1", "2", "if(arr[mid] <= key){\n low = mid;\n }\n else{\n high = mid-1;\n }", "arr[mid] <= key", "arr[mid]", "arr", "mid", "key", "{\n low = mid;\n }", "low = mid", "low", "mid", "{\n high = mid-1;\n }", "high = mid-1", "high", "mid-1", "mid", "1", "return low;", "low", "int arr[]", "arr", "int key", "key", "public int lower(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low)/2;\n if(arr[mid] >= key){\n high = mid;\n }\n else{\n low = mid+1;\n }\n }\n return low;\n }", "lower", "{\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low)/2;\n if(arr[mid] >= key){\n high = mid;\n }\n else{\n low = mid+1;\n }\n }\n return low;\n }", "int low = 0;", "low", "0", "int high = arr.length-1;", "high", "arr.length-1", "arr.length", "arr", "arr.length", "1", "while(low < high){\n int mid = low + (high - low)/2;\n if(arr[mid] >= key){\n high = mid;\n }\n else{\n low = mid+1;\n }\n }", "low < high", "low", "high", "{\n int mid = low + (high - low)/2;\n if(arr[mid] >= key){\n high = mid;\n }\n else{\n low = mid+1;\n }\n }", "int mid = low + (high - low)/2;", "mid", "low + (high - low)/2", "low", "(high - low)/2", "(high - low)", "high", "low", "2", "if(arr[mid] >= key){\n high = mid;\n }\n else{\n low = mid+1;\n }", "arr[mid] >= key", "arr[mid]", "arr", "mid", "key", "{\n high = mid;\n }", "high = mid", "high", "mid", "{\n low = mid+1;\n }", "low = mid+1", "low", "mid+1", "mid", "1", "return low;", "low", "int arr[]", "arr", "int key", "key", "public class Main{\n private static FastScanner fs = new FastScanner();\n public static void main(String[] args) {\n\n int n = fs.nextInt();\n int arr[] = new int[101];\n int flag =0;\n boolean isTrue = false;\n for(int i=3;i<(n+3);i++)\n {\n int a = fs.nextInt();\n int b = fs.nextInt();\n if(a==b && flag==0)\n {\n flag=1;\n }\n else if(flag==1 && a==b)\n {\n flag =2;\n }\n else if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }\n }\n if(isTrue) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n int gcd(int a,int b)\n {\n while (b > 0)\n {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a;\n }\n private int upper(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low+1)/2;\n if(arr[mid] <= key){\n low = mid;\n }\n else{\n high = mid-1;\n }\n }\n return low;\n }\n public int lower(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low)/2;\n if(arr[mid] >= key){\n high = mid;\n }\n else{\n low = mid+1;\n }\n }\n return low;\n }\n }\n}", "public class Main{\n private static FastScanner fs = new FastScanner();\n public static void main(String[] args) {\n\n int n = fs.nextInt();\n int arr[] = new int[101];\n int flag =0;\n boolean isTrue = false;\n for(int i=3;i<(n+3);i++)\n {\n int a = fs.nextInt();\n int b = fs.nextInt();\n if(a==b && flag==0)\n {\n flag=1;\n }\n else if(flag==1 && a==b)\n {\n flag =2;\n }\n else if(flag ==2 && a==b)\n {\n flag =3;\n isTrue = true;\n }\n else if(a==b || a !=b)\n {\n flag=0;\n }\n }\n if(isTrue) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n int gcd(int a,int b)\n {\n while (b > 0)\n {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a;\n }\n private int upper(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low+1)/2;\n if(arr[mid] <= key){\n low = mid;\n }\n else{\n high = mid-1;\n }\n }\n return low;\n }\n public int lower(int arr[],int key){\n int low = 0;\n int high = arr.length-1;\n while(low < high){\n int mid = low + (high - low)/2;\n if(arr[mid] >= key){\n high = mid;\n }\n else{\n low = mid+1;\n }\n }\n return low;\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main{ private static FastScanner fs = new FastScanner(); public static void main(String[] args) { int n = fs.nextInt(); int arr[] = new int[101]; int flag =0; boolean isTrue = false; for(int i=3;i<(n+3);i++) { int a = fs.nextInt(); int b = fs.nextInt(); if(a==b && flag==0) { flag=1; } else if(flag==1 && a==b) { flag =2; } else if(flag ==2 && a==b) { flag =3; isTrue = true; } else if(a==b || a !=b) { flag=0; } } if(isTrue) System.out.println("Yes"); else System.out.println("No"); } static class FastScanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); String next() { while (!st.hasMoreTokens()) try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } int[] readArray(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } long nextLong() { return Long.parseLong(next()); } int gcd(int a,int b) { while (b > 0) { int temp = b; b = a % b; a = temp; } return a; } private int upper(int arr[],int key){ int low = 0; int high = arr.length-1; while(low < high){ int mid = low + (high - low+1)/2; if(arr[mid] <= key){ low = mid; } else{ high = mid-1; } } return low; } public int lower(int arr[],int key){ int low = 0; int high = arr.length-1; while(low < high){ int mid = low + (high - low)/2; if(arr[mid] >= key){ high = mid; } else{ low = mid+1; } } return low; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 126, 5 ], [ 126, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 80, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 72, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 91, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 70, 102 ], [ 102, 103 ], [ 103, 104 ], [ 8, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 105, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 6, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int X[] = new int[N];\n int Y[] = new int[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextInt();\n Y[i] = sc.nextInt();\n }\n int ans=0;\n for (int i = 0; i < N-2; i++) {\n \tif(X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]) {\n \t\tans++;\n \t}\n }\n if(ans>0) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int X[] = new int[N];\n int Y[] = new int[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextInt();\n Y[i] = sc.nextInt();\n }\n int ans=0;\n for (int i = 0; i < N-2; i++) {\n \tif(X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]) {\n \t\tans++;\n \t}\n }\n if(ans>0) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int X[] = new int[N];\n int Y[] = new int[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextInt();\n Y[i] = sc.nextInt();\n }\n int ans=0;\n for (int i = 0; i < N-2; i++) {\n \tif(X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]) {\n \t\tans++;\n \t}\n }\n if(ans>0) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int X[] = new int[N];\n int Y[] = new int[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextInt();\n Y[i] = sc.nextInt();\n }\n int ans=0;\n for (int i = 0; i < N-2; i++) {\n \tif(X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]) {\n \t\tans++;\n \t}\n }\n if(ans>0) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N=sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int X[] = new int[N];", "X", "new int[N]", "N", "int Y[] = new int[N];", "Y", "new int[N]", "N", "for (int i = 0; i < N; i++) {\n X[i] = sc.nextInt();\n Y[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n X[i] = sc.nextInt();\n Y[i] = sc.nextInt();\n }", "{\n X[i] = sc.nextInt();\n Y[i] = sc.nextInt();\n }", "X[i] = sc.nextInt()", "X[i]", "X", "i", "sc.nextInt()", "sc.nextInt", "sc", "Y[i] = sc.nextInt()", "Y[i]", "Y", "i", "sc.nextInt()", "sc.nextInt", "sc", "int ans=0;", "ans", "0", "for (int i = 0; i < N-2; i++) {\n \tif(X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]) {\n \t\tans++;\n \t}\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N-2", "i", "N-2", "N", "2", "i++", "i++", "i", "{\n \tif(X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]) {\n \t\tans++;\n \t}\n }", "{\n \tif(X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]) {\n \t\tans++;\n \t}\n }", "if(X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]) {\n \t\tans++;\n \t}", "X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]", "X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]", "X[i]==Y[i]", "X[i]", "X", "i", "Y[i]", "Y", "i", "X[i+1]==Y[i+1]", "X[i+1]", "X", "i+1", "i", "1", "Y[i+1]", "Y", "i+1", "i", "1", "X[i+2]==Y[i+2]", "X[i+2]", "X", "i+2", "i", "2", "Y[i+2]", "Y", "i+2", "i", "2", "{\n \t\tans++;\n \t}", "ans++", "ans", "if(ans>0) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }", "ans>0", "ans", "0", "{\n \tSystem.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n \tSystem.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int X[] = new int[N];\n int Y[] = new int[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextInt();\n Y[i] = sc.nextInt();\n }\n int ans=0;\n for (int i = 0; i < N-2; i++) {\n \tif(X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]) {\n \t\tans++;\n \t}\n }\n if(ans>0) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int X[] = new int[N];\n int Y[] = new int[N];\n for (int i = 0; i < N; i++) {\n X[i] = sc.nextInt();\n Y[i] = sc.nextInt();\n }\n int ans=0;\n for (int i = 0; i < N-2; i++) {\n \tif(X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]) {\n \t\tans++;\n \t}\n }\n if(ans>0) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N=sc.nextInt(); int X[] = new int[N]; int Y[] = new int[N]; for (int i = 0; i < N; i++) { X[i] = sc.nextInt(); Y[i] = sc.nextInt(); } int ans=0; for (int i = 0; i < N-2; i++) { if(X[i]==Y[i]&&X[i+1]==Y[i+1]&&X[i+2]==Y[i+2]) { ans++; } } if(ans>0) { System.out.println("Yes"); }else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 43, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 32, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 58, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 6, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n int n = sc.nextInt();\n for(int i = 0; i < n; i++){\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n if(d1 == d2) {\n cnt++;\n } else {\n cnt = 0;\n }\n if(cnt >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n sc.close();\n System.out.println(\"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n int n = sc.nextInt();\n for(int i = 0; i < n; i++){\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n if(d1 == d2) {\n cnt++;\n } else {\n cnt = 0;\n }\n if(cnt >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n sc.close();\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n int n = sc.nextInt();\n for(int i = 0; i < n; i++){\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n if(d1 == d2) {\n cnt++;\n } else {\n cnt = 0;\n }\n if(cnt >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n sc.close();\n System.out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n int n = sc.nextInt();\n for(int i = 0; i < n; i++){\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n if(d1 == d2) {\n cnt++;\n } else {\n cnt = 0;\n }\n if(cnt >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n sc.close();\n System.out.println(\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int cnt = 0;", "cnt", "0", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < n; i++){\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n if(d1 == d2) {\n cnt++;\n } else {\n cnt = 0;\n }\n if(cnt >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n if(d1 == d2) {\n cnt++;\n } else {\n cnt = 0;\n }\n if(cnt >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n if(d1 == d2) {\n cnt++;\n } else {\n cnt = 0;\n }\n if(cnt >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }", "int d1 = sc.nextInt();", "d1", "sc.nextInt()", "sc.nextInt", "sc", "int d2 = sc.nextInt();", "d2", "sc.nextInt()", "sc.nextInt", "sc", "if(d1 == d2) {\n cnt++;\n } else {\n cnt = 0;\n }", "d1 == d2", "d1", "d2", "{\n cnt++;\n }", "cnt++", "cnt", "{\n cnt = 0;\n }", "cnt = 0", "cnt", "0", "if(cnt >= 3){\n System.out.println(\"Yes\");\n return;\n }", "cnt >= 3", "cnt", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "sc.close()", "sc.close", "sc", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n int n = sc.nextInt();\n for(int i = 0; i < n; i++){\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n if(d1 == d2) {\n cnt++;\n } else {\n cnt = 0;\n }\n if(cnt >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n sc.close();\n System.out.println(\"No\");\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n int n = sc.nextInt();\n for(int i = 0; i < n; i++){\n int d1 = sc.nextInt();\n int d2 = sc.nextInt();\n if(d1 == d2) {\n cnt++;\n } else {\n cnt = 0;\n }\n if(cnt >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }\n sc.close();\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 0; int n = sc.nextInt(); for(int i = 0; i < n; i++){ int d1 = sc.nextInt(); int d2 = sc.nextInt(); if(d1 == d2) { cnt++; } else { cnt = 0; } if(cnt >= 3){ System.out.println("Yes"); return; } } sc.close(); System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 87, 14 ], [ 87, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 52, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 41, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 67, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 17, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 15, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.util.Arrays;\nimport java.util.Collections;\nimport java.util.Scanner;\nimport java.util.Vector;\n \npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\tint n=ob.nextInt();\n\tint k=0;\n\tfor(int i=0;i<n;i++)\n\t{\n\tint a=ob.nextInt();\n\tint b=ob.nextInt();\n\tif(a==b){k++;}\n\telse{k=0;}\n\tif(k==3){System.out.println(\"Yes\");System.exit(0);}\n\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Vector;", "Vector", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\tint n=ob.nextInt();\n\tint k=0;\n\tfor(int i=0;i<n;i++)\n\t{\n\tint a=ob.nextInt();\n\tint b=ob.nextInt();\n\tif(a==b){k++;}\n\telse{k=0;}\n\tif(k==3){System.out.println(\"Yes\");System.exit(0);}\n\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\tint n=ob.nextInt();\n\tint k=0;\n\tfor(int i=0;i<n;i++)\n\t{\n\tint a=ob.nextInt();\n\tint b=ob.nextInt();\n\tif(a==b){k++;}\n\telse{k=0;}\n\tif(k==3){System.out.println(\"Yes\");System.exit(0);}\n\t}\n\t\tSystem.out.println(\"No\");\n\t}", "main", "{\n\t\tScanner ob=new Scanner(System.in);\n\tint n=ob.nextInt();\n\tint k=0;\n\tfor(int i=0;i<n;i++)\n\t{\n\tint a=ob.nextInt();\n\tint b=ob.nextInt();\n\tif(a==b){k++;}\n\telse{k=0;}\n\tif(k==3){System.out.println(\"Yes\");System.exit(0);}\n\t}\n\t\tSystem.out.println(\"No\");\n\t}", "Scanner ob=new Scanner(System.in);", "ob", "new Scanner(System.in)", "int n=ob.nextInt();", "n", "ob.nextInt()", "ob.nextInt", "ob", "int k=0;", "k", "0", "for(int i=0;i<n;i++)\n\t{\n\tint a=ob.nextInt();\n\tint b=ob.nextInt();\n\tif(a==b){k++;}\n\telse{k=0;}\n\tif(k==3){System.out.println(\"Yes\");System.exit(0);}\n\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\tint a=ob.nextInt();\n\tint b=ob.nextInt();\n\tif(a==b){k++;}\n\telse{k=0;}\n\tif(k==3){System.out.println(\"Yes\");System.exit(0);}\n\t}", "{\n\tint a=ob.nextInt();\n\tint b=ob.nextInt();\n\tif(a==b){k++;}\n\telse{k=0;}\n\tif(k==3){System.out.println(\"Yes\");System.exit(0);}\n\t}", "int a=ob.nextInt();", "a", "ob.nextInt()", "ob.nextInt", "ob", "int b=ob.nextInt();", "b", "ob.nextInt()", "ob.nextInt", "ob", "if(a==b){k++;}\n\telse{k=0;}", "a==b", "a", "b", "{k++;}", "k++", "k", "{k=0;}", "k=0", "k", "0", "if(k==3){System.out.println(\"Yes\");System.exit(0);}", "k==3", "k", "3", "{System.out.println(\"Yes\");System.exit(0);}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.exit(0)", "System.exit", "System", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\tint n=ob.nextInt();\n\tint k=0;\n\tfor(int i=0;i<n;i++)\n\t{\n\tint a=ob.nextInt();\n\tint b=ob.nextInt();\n\tif(a==b){k++;}\n\telse{k=0;}\n\tif(k==3){System.out.println(\"Yes\");System.exit(0);}\n\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\tint n=ob.nextInt();\n\tint k=0;\n\tfor(int i=0;i<n;i++)\n\t{\n\tint a=ob.nextInt();\n\tint b=ob.nextInt();\n\tif(a==b){k++;}\n\telse{k=0;}\n\tif(k==3){System.out.println(\"Yes\");System.exit(0);}\n\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.Collections; import java.util.Scanner; import java.util.Vector; public class Main { public static void main(String[] args) { Scanner ob=new Scanner(System.in); int n=ob.nextInt(); int k=0; for(int i=0;i<n;i++) { int a=ob.nextInt(); int b=ob.nextInt(); if(a==b){k++;} else{k=0;} if(k==3){System.out.println("Yes");System.exit(0);} } System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 0, 13, 2, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 137, 5 ], [ 137, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 74, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 72, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 72, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 8, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 116, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 6, 134 ], [ 134, 135 ], [ 0, 136 ], [ 136, 137 ], [ 136, 138 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 整数の入力\n int N = sc.nextInt();\n // スペース区切りの整数の入力\n \n \n int[] a = new int[N];\n int[] b = new int[N];\n \n int z;\n z=0;\n\n for(int i=0;i<N;i++) {\n \ta[i]=sc.nextInt();\n \tb[i]=sc.nextInt();\n }\n \n for(int j=0;j<N-2;j++) {\n \tif(a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]) {\n \t\tz=z+1;\n \t} else {\n \t\tz=z+0;\n \t}\n \t\n } \n \n if(z==0) {\n \tSystem.out.println(\"No\");\n } else {\n \tSystem.out.println(\"Yes\");\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 int N = sc.nextInt();\n // スペース区切りの整数の入力\n \n \n int[] a = new int[N];\n int[] b = new int[N];\n \n int z;\n z=0;\n\n for(int i=0;i<N;i++) {\n \ta[i]=sc.nextInt();\n \tb[i]=sc.nextInt();\n }\n \n for(int j=0;j<N-2;j++) {\n \tif(a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]) {\n \t\tz=z+1;\n \t} else {\n \t\tz=z+0;\n \t}\n \t\n } \n \n if(z==0) {\n \tSystem.out.println(\"No\");\n } else {\n \tSystem.out.println(\"Yes\");\n }\n \n \n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 整数の入力\n int N = sc.nextInt();\n // スペース区切りの整数の入力\n \n \n int[] a = new int[N];\n int[] b = new int[N];\n \n int z;\n z=0;\n\n for(int i=0;i<N;i++) {\n \ta[i]=sc.nextInt();\n \tb[i]=sc.nextInt();\n }\n \n for(int j=0;j<N-2;j++) {\n \tif(a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]) {\n \t\tz=z+1;\n \t} else {\n \t\tz=z+0;\n \t}\n \t\n } \n \n if(z==0) {\n \tSystem.out.println(\"No\");\n } else {\n \tSystem.out.println(\"Yes\");\n }\n \n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n // 整数の入力\n int N = sc.nextInt();\n // スペース区切りの整数の入力\n \n \n int[] a = new int[N];\n int[] b = new int[N];\n \n int z;\n z=0;\n\n for(int i=0;i<N;i++) {\n \ta[i]=sc.nextInt();\n \tb[i]=sc.nextInt();\n }\n \n for(int j=0;j<N-2;j++) {\n \tif(a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]) {\n \t\tz=z+1;\n \t} else {\n \t\tz=z+0;\n \t}\n \t\n } \n \n if(z==0) {\n \tSystem.out.println(\"No\");\n } else {\n \tSystem.out.println(\"Yes\");\n }\n \n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[] a = new int[N];", "a", "new int[N]", "N", "int[] b = new int[N];", "b", "new int[N]", "N", "int z;", "z", "z=0", "z", "0", "for(int i=0;i<N;i++) {\n \ta[i]=sc.nextInt();\n \tb[i]=sc.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n \ta[i]=sc.nextInt();\n \tb[i]=sc.nextInt();\n }", "{\n \ta[i]=sc.nextInt();\n \tb[i]=sc.nextInt();\n }", "a[i]=sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "b[i]=sc.nextInt()", "b[i]", "b", "i", "sc.nextInt()", "sc.nextInt", "sc", "for(int j=0;j<N-2;j++) {\n \tif(a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]) {\n \t\tz=z+1;\n \t} else {\n \t\tz=z+0;\n \t}\n \t\n }", "int j=0;", "int j=0;", "j", "0", "j<N-2", "j", "N-2", "N", "2", "j++", "j++", "j", "{\n \tif(a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]) {\n \t\tz=z+1;\n \t} else {\n \t\tz=z+0;\n \t}\n \t\n }", "{\n \tif(a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]) {\n \t\tz=z+1;\n \t} else {\n \t\tz=z+0;\n \t}\n \t\n }", "if(a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]) {\n \t\tz=z+1;\n \t} else {\n \t\tz=z+0;\n \t}", "a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]", "a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]", "a[j]==b[j]", "a[j]", "a", "j", "b[j]", "b", "j", "a[j+1]==b[j+1]", "a[j+1]", "a", "j+1", "j", "1", "b[j+1]", "b", "j+1", "j", "1", "a[j+2]==b[j+2]", "a[j+2]", "a", "j+2", "j", "2", "b[j+2]", "b", "j+2", "j", "2", "{\n \t\tz=z+1;\n \t}", "z=z+1", "z", "z+1", "z", "1", "{\n \t\tz=z+0;\n \t}", "z=z+0", "z", "z+0", "z", "0", "if(z==0) {\n \tSystem.out.println(\"No\");\n } else {\n \tSystem.out.println(\"Yes\");\n }", "z==0", "z", "0", "{\n \tSystem.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "{\n \tSystem.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 整数の入力\n int N = sc.nextInt();\n // スペース区切りの整数の入力\n \n \n int[] a = new int[N];\n int[] b = new int[N];\n \n int z;\n z=0;\n\n for(int i=0;i<N;i++) {\n \ta[i]=sc.nextInt();\n \tb[i]=sc.nextInt();\n }\n \n for(int j=0;j<N-2;j++) {\n \tif(a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]) {\n \t\tz=z+1;\n \t} else {\n \t\tz=z+0;\n \t}\n \t\n } \n \n if(z==0) {\n \tSystem.out.println(\"No\");\n } else {\n \tSystem.out.println(\"Yes\");\n }\n \n \n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 整数の入力\n int N = sc.nextInt();\n // スペース区切りの整数の入力\n \n \n int[] a = new int[N];\n int[] b = new int[N];\n \n int z;\n z=0;\n\n for(int i=0;i<N;i++) {\n \ta[i]=sc.nextInt();\n \tb[i]=sc.nextInt();\n }\n \n for(int j=0;j<N-2;j++) {\n \tif(a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]) {\n \t\tz=z+1;\n \t} else {\n \t\tz=z+0;\n \t}\n \t\n } \n \n if(z==0) {\n \tSystem.out.println(\"No\");\n } else {\n \tSystem.out.println(\"Yes\");\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); // 整数の入力 int N = sc.nextInt(); // スペース区切りの整数の入力 int[] a = new int[N]; int[] b = new int[N]; int z; z=0; for(int i=0;i<N;i++) { a[i]=sc.nextInt(); b[i]=sc.nextInt(); } for(int j=0;j<N-2;j++) { if(a[j]==b[j] && a[j+1]==b[j+1] && a[j+2]==b[j+2]) { z=z+1; } else { z=z+0; } } if(z==0) { System.out.println("No"); } else { System.out.println("Yes"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 14, 2, 13, 17, 3, 30, 0, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 49, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 8, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 6, 81 ], [ 81, 82 ] ]
[ "import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int s=sc.nextInt();\n int d1=0,d2=0,count=0;\n for(int i=0;i<s;i++){\n d1=sc.nextInt();\n d2=sc.nextInt();\n if(d1==d2){\n count++;\n if(count==3)break;\n }\n else{\n count=0;\n }\n \n }\n if(count>=3)System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int s=sc.nextInt();\n int d1=0,d2=0,count=0;\n for(int i=0;i<s;i++){\n d1=sc.nextInt();\n d2=sc.nextInt();\n if(d1==d2){\n count++;\n if(count==3)break;\n }\n else{\n count=0;\n }\n \n }\n if(count>=3)System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int s=sc.nextInt();\n int d1=0,d2=0,count=0;\n for(int i=0;i<s;i++){\n d1=sc.nextInt();\n d2=sc.nextInt();\n if(d1==d2){\n count++;\n if(count==3)break;\n }\n else{\n count=0;\n }\n \n }\n if(count>=3)System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n int s=sc.nextInt();\n int d1=0,d2=0,count=0;\n for(int i=0;i<s;i++){\n d1=sc.nextInt();\n d2=sc.nextInt();\n if(d1==d2){\n count++;\n if(count==3)break;\n }\n else{\n count=0;\n }\n \n }\n if(count>=3)System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int s=sc.nextInt();", "s", "sc.nextInt()", "sc.nextInt", "sc", "int d1=0", "d1", "0", "d2=0", "d2", "0", "count=0;", "count", "0", "for(int i=0;i<s;i++){\n d1=sc.nextInt();\n d2=sc.nextInt();\n if(d1==d2){\n count++;\n if(count==3)break;\n }\n else{\n count=0;\n }\n \n }", "int i=0;", "int i=0;", "i", "0", "i<s", "i", "s", "i++", "i++", "i", "{\n d1=sc.nextInt();\n d2=sc.nextInt();\n if(d1==d2){\n count++;\n if(count==3)break;\n }\n else{\n count=0;\n }\n \n }", "{\n d1=sc.nextInt();\n d2=sc.nextInt();\n if(d1==d2){\n count++;\n if(count==3)break;\n }\n else{\n count=0;\n }\n \n }", "d1=sc.nextInt()", "d1", "sc.nextInt()", "sc.nextInt", "sc", "d2=sc.nextInt()", "d2", "sc.nextInt()", "sc.nextInt", "sc", "if(d1==d2){\n count++;\n if(count==3)break;\n }\n else{\n count=0;\n }", "d1==d2", "d1", "d2", "{\n count++;\n if(count==3)break;\n }", "count++", "count", "if(count==3)break;", "count==3", "count", "3", "break;", "{\n count=0;\n }", "count=0", "count", "0", "if(count>=3)System.out.println(\"Yes\");\n else System.out.println(\"No\");", "count>=3", "count", "3", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int s=sc.nextInt(); int d1=0,d2=0,count=0; for(int i=0;i<s;i++){ d1=sc.nextInt(); d2=sc.nextInt(); if(d1==d2){ count++; if(count==3)break; } else{ count=0; } } if(count>=3)System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 75, 5 ], [ 75, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 43, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 32, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 58, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 6, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "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 n = sc.nextInt();\n\t\tint count = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tif (a == b) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif (count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\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 sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint count = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tif (a == b) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif (count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint count = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tif (a == b) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif (count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint count = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tif (a == b) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif (count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "for (int i = 0; i < n; i++) {\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tif (a == b) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif (count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tif (a == b) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif (count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}", "{\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tif (a == b) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif (count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "if (a == b) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}", "a == b", "a", "b", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "{\n\t\t\t\tcount = 0;\n\t\t\t}", "count = 0", "count", "0", "if (count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "count == 3", "count", "3", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint count = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tif (a == b) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif (count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint count = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tif (a == b) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif (count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int count = 0; for (int i = 0; i < n; i++) { int a = sc.nextInt(); int b = sc.nextInt(); if (a == b) { count++; } else { count = 0; } if (count == 3) { System.out.println("Yes"); return; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 22, 32 ], [ 32, 33 ], [ 33, 34 ], [ 22, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 43, 44 ], [ 44, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 55, 67 ], [ 67, 68 ], [ 68, 69 ], [ 55, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 75, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 74, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 94, 100 ], [ 74, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 102, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 109, 115 ], [ 72, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 116, 123 ], [ 8, 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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[][] D = new int[N][2];\n\n\t\tfor (int i = 0; i < D.length; i++) {\n\t\t\tD[i][0] = sc.nextInt();\n\t\t\tD[i][1] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < D.length - 2; i++) {\n\t\t\tif (D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"No\");\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[][] D = new int[N][2];\n\n\t\tfor (int i = 0; i < D.length; i++) {\n\t\t\tD[i][0] = sc.nextInt();\n\t\t\tD[i][1] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < D.length - 2; i++) {\n\t\t\tif (D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"No\");\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[][] D = new int[N][2];\n\n\t\tfor (int i = 0; i < D.length; i++) {\n\t\t\tD[i][0] = sc.nextInt();\n\t\t\tD[i][1] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < D.length - 2; i++) {\n\t\t\tif (D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"No\");\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[][] D = new int[N][2];\n\n\t\tfor (int i = 0; i < D.length; i++) {\n\t\t\tD[i][0] = sc.nextInt();\n\t\t\tD[i][1] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < D.length - 2; i++) {\n\t\t\tif (D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"No\");\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[][] D = new int[N][2];", "D", "new int[N][2]", "N", "2", "for (int i = 0; i < D.length; i++) {\n\t\t\tD[i][0] = sc.nextInt();\n\t\t\tD[i][1] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < D.length", "i", "D.length", "D", "D.length", "i++", "i++", "i", "{\n\t\t\tD[i][0] = sc.nextInt();\n\t\t\tD[i][1] = sc.nextInt();\n\t\t}", "{\n\t\t\tD[i][0] = sc.nextInt();\n\t\t\tD[i][1] = sc.nextInt();\n\t\t}", "D[i][0] = sc.nextInt()", "D[i][0]", "D[i]", "D", "i", "0", "sc.nextInt()", "sc.nextInt", "sc", "D[i][1] = sc.nextInt()", "D[i][1]", "D[i]", "D", "i", "1", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < D.length - 2; i++) {\n\t\t\tif (D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < D.length - 2", "i", "D.length - 2", "D.length", "D", "D.length", "2", "i++", "i++", "i", "{\n\t\t\tif (D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "if (D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]", "D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]", "D[i][0] == D[i][1]", "D[i][0]", "D[i]", "D", "i", "0", "D[i][1]", "D[i]", "D", "i", "1", "D[i + 1][0] == D[i + 1][1]", "D[i + 1][0]", "D[i + 1]", "D", "i + 1", "i", "1", "0", "D[i + 1][1]", "D[i + 1]", "D", "i + 1", "i", "1", "1", "D[i + 2][0] == D[i + 2][1]", "D[i + 2][0]", "D[i + 2]", "D", "i + 2", "i", "2", "0", "D[i + 2][1]", "D[i + 2]", "D", "i + 2", "i", "2", "1", "{\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "System.out.print(\"Yes\")", "System.out.print", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.print(\"No\")", "System.out.print", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[][] D = new int[N][2];\n\n\t\tfor (int i = 0; i < D.length; i++) {\n\t\t\tD[i][0] = sc.nextInt();\n\t\t\tD[i][1] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < D.length - 2; i++) {\n\t\t\tif (D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"No\");\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[][] D = new int[N][2];\n\n\t\tfor (int i = 0; i < D.length; i++) {\n\t\t\tD[i][0] = sc.nextInt();\n\t\t\tD[i][1] = sc.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < D.length - 2; i++) {\n\t\t\tif (D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"No\");\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 N = sc.nextInt(); int[][] D = new int[N][2]; for (int i = 0; i < D.length; i++) { D[i][0] = sc.nextInt(); D[i][1] = sc.nextInt(); } for (int i = 0; i < D.length - 2; i++) { if (D[i][0] == D[i][1] && D[i + 1][0] == D[i + 1][1] && D[i + 2][0] == D[i + 2][1]) { System.out.print("Yes"); return; } } System.out.print("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 2, 17, 17, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 11, 1, 41, 13, 17, 2, 2, 13, 17, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 0, 13, 17, 4, 13, 8, 13, 17, 17, 12, 13, 30, 4, 13, 41, 13, 17, 41, 13, 17, 42, 2, 40, 13, 17, 30, 4, 13, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 17, 29, 13, 41, 13, 4, 13, 13, 2, 13, 13, 41, 13, 13, 0, 13, 13, 0, 13, 2, 13, 2, 2, 13, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 42, 2, 13, 17, 30, 14, 2, 2, 13, 17, 17, 0, 13, 2, 13, 13, 0, 13, 17, 0, 13, 2, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 42, 2, 13, 17, 30, 14, 2, 2, 13, 17, 17, 0, 13, 2, 2, 2, 13, 13, 2, 13, 13, 13, 0, 13, 17, 0, 13, 2, 2, 2, 13, 13, 2, 13, 13, 13, 29, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 2, 13, 13, 2, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 2, 2, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 17, 14, 2, 13, 17, 29, 17, 14, 2, 2, 2, 13, 17, 17, 2, 2, 13, 17, 17, 29, 17, 11, 1, 41, 13, 17, 2, 2, 13, 13, 13, 1, 0, 13, 2, 13, 17, 30, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 2, 13, 17, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 17, 14, 2, 13, 17, 29, 17, 14, 2, 2, 2, 13, 17, 17, 2, 2, 13, 17, 17, 29, 17, 11, 1, 41, 13, 17, 2, 2, 13, 13, 13, 1, 0, 13, 2, 13, 17, 30, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 2, 13, 17, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 13, 4, 18, 13, 2, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 13, 4, 18, 13, 2, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 13, 41, 13, 20, 28, 13, 13, 30, 14, 4, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 13, 41, 13, 20, 28, 13, 13, 30, 14, 4, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 17, 17, 23, 13, 12, 13, 30, 29, 2, 2, 13, 17, 17, 23, 13, 12, 13, 30, 29, 4, 18, 13, 13, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 17, 2, 17, 4, 13, 2, 13, 17, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 17, 2, 17, 4, 13, 2, 13, 17, 23, 13, 12, 13, 30, 41, 13, 20, 28, 13, 13, 30, 4, 18, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 28, 13, 13, 30, 4, 18, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 18, 13, 13, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 6, 13, 12, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 1239, 14 ], [ 1239, 15 ], [ 15, 16 ], [ 15, 17 ], [ 1239, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 20, 22 ], [ 1239, 23 ], [ 23, 24 ], [ 23, 25 ], [ 1239, 26 ], [ 26, 27 ], [ 26, 28 ], [ 1239, 29 ], [ 29, 30 ], [ 1239, 31 ], [ 31, 32 ], [ 31, 33 ], [ 1239, 34 ], [ 34, 35 ], [ 34, 36 ], [ 1239, 37 ], [ 37, 38 ], [ 37, 39 ], [ 1239, 40 ], [ 40, 41 ], [ 1239, 42 ], [ 42, 43 ], [ 1239, 44 ], [ 44, 45 ], [ 44, 46 ], [ 1239, 47 ], [ 47, 48 ], [ 47, 49 ], [ 1239, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 52, 58 ], [ 58, 59 ], [ 58, 60 ], [ 52, 61 ], [ 61, 62 ], [ 61, 63 ], [ 52, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 66, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 79, 85 ], [ 85, 86 ], [ 86, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 88, 94 ], [ 94, 95 ], [ 95, 96 ], [ 52, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 97, 107 ], [ 107, 108 ], [ 108, 109 ], [ 97, 110 ], [ 111, 111 ], [ 111, 112 ], [ 112, 113 ], [ 114, 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 ], [ 130, 131 ], [ 130, 132 ], [ 127, 133 ], [ 126, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 134, 140 ], [ 114, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 145, 147 ], [ 142, 148 ], [ 141, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 152, 154 ], [ 149, 155 ], [ 112, 156 ], [ 156, 157 ], [ 156, 158 ], [ 52, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 161, 163 ], [ 161, 164 ], [ 1239, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 170, 171 ], [ 170, 172 ], [ 167, 173 ], [ 173, 174 ], [ 173, 175 ], [ 167, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 177, 180 ], [ 176, 181 ], [ 181, 182 ], [ 182, 183 ], [ 167, 184 ], [ 184, 185 ], [ 185, 186 ], [ 167, 187 ], [ 187, 188 ], [ 188, 189 ], [ 165, 190 ], [ 190, 191 ], [ 1239, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 1239, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 201, 204 ], [ 198, 205 ], [ 205, 206 ], [ 1239, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 210, 213 ], [ 209, 214 ], [ 214, 215 ], [ 215, 216 ], [ 207, 217 ], [ 217, 218 ], [ 1239, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 222, 225 ], [ 219, 226 ], [ 226, 227 ], [ 1239, 228 ], [ 228, 229 ], [ 228, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 231, 234 ], [ 230, 235 ], [ 235, 236 ], [ 236, 237 ], [ 228, 238 ], [ 238, 239 ], [ 1239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 247, 248 ], [ 243, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 251, 253 ], [ 251, 254 ], [ 254, 255 ], [ 254, 256 ], [ 240, 257 ], [ 257, 258 ], [ 240, 259 ], [ 259, 260 ], [ 1239, 261 ], [ 261, 262 ], [ 261, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 265, 267 ], [ 264, 268 ], [ 268, 269 ], [ 264, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 272, 275 ], [ 275, 276 ], [ 275, 277 ], [ 261, 278 ], [ 278, 279 ], [ 261, 280 ], [ 280, 281 ], [ 1239, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 285, 286 ], [ 286, 287 ], [ 287, 288 ], [ 287, 289 ], [ 286, 290 ], [ 290, 291 ], [ 290, 292 ], [ 290, 293 ], [ 282, 294 ], [ 294, 295 ], [ 282, 296 ], [ 296, 297 ], [ 1239, 298 ], [ 298, 299 ], [ 298, 300 ], [ 300, 301 ], [ 301, 302 ], [ 302, 303 ], [ 302, 304 ], [ 301, 305 ], [ 305, 306 ], [ 306, 307 ], [ 306, 308 ], [ 305, 309 ], [ 309, 310 ], [ 309, 311 ], [ 305, 312 ], [ 312, 313 ], [ 300, 314 ], [ 314, 315 ], [ 314, 316 ], [ 316, 317 ], [ 316, 318 ], [ 316, 319 ], [ 319, 320 ], [ 319, 321 ], [ 300, 322 ], [ 322, 323 ], [ 322, 324 ], [ 300, 325 ], [ 325, 326 ], [ 325, 327 ], [ 300, 328 ], [ 328, 329 ], [ 328, 330 ], [ 330, 331 ], [ 330, 332 ], [ 332, 333 ], [ 333, 334 ], [ 333, 335 ], [ 332, 336 ], [ 300, 337 ], [ 337, 338 ], [ 298, 339 ], [ 339, 340 ], [ 298, 341 ], [ 341, 342 ], [ 1239, 343 ], [ 343, 344 ], [ 343, 345 ], [ 345, 346 ], [ 346, 347 ], [ 346, 348 ], [ 345, 349 ], [ 349, 350 ], [ 350, 351 ], [ 350, 352 ], [ 349, 353 ], [ 353, 354 ], [ 354, 355 ], [ 355, 356 ], [ 356, 357 ], [ 356, 358 ], [ 355, 359 ], [ 354, 360 ], [ 360, 361 ], [ 360, 362 ], [ 362, 363 ], [ 362, 364 ], [ 353, 365 ], [ 365, 366 ], [ 365, 367 ], [ 353, 368 ], [ 368, 369 ], [ 368, 370 ], [ 370, 371 ], [ 370, 372 ], [ 345, 373 ], [ 373, 374 ], [ 343, 375 ], [ 375, 376 ], [ 343, 377 ], [ 377, 378 ], [ 1239, 379 ], [ 379, 380 ], [ 379, 381 ], [ 381, 382 ], [ 382, 383 ], [ 382, 384 ], [ 381, 385 ], [ 385, 386 ], [ 386, 387 ], [ 386, 388 ], [ 385, 389 ], [ 389, 390 ], [ 390, 391 ], [ 391, 392 ], [ 392, 393 ], [ 392, 394 ], [ 391, 395 ], [ 390, 396 ], [ 396, 397 ], [ 396, 398 ], [ 398, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 399, 403 ], [ 403, 404 ], [ 403, 405 ], [ 398, 406 ], [ 389, 407 ], [ 407, 408 ], [ 407, 409 ], [ 389, 410 ], [ 410, 411 ], [ 410, 412 ], [ 412, 413 ], [ 413, 414 ], [ 414, 415 ], [ 414, 416 ], [ 413, 417 ], [ 417, 418 ], [ 417, 419 ], [ 412, 420 ], [ 381, 421 ], [ 421, 422 ], [ 379, 423 ], [ 423, 424 ], [ 379, 425 ], [ 425, 426 ], [ 379, 427 ], [ 427, 428 ], [ 1239, 429 ], [ 429, 430 ], [ 429, 431 ], [ 431, 432 ], [ 432, 433 ], [ 433, 434 ], [ 434, 435 ], [ 435, 436 ], [ 435, 437 ], [ 434, 438 ], [ 438, 439 ], [ 438, 440 ], [ 433, 441 ], [ 429, 442 ], [ 442, 443 ], [ 429, 444 ], [ 444, 445 ], [ 1239, 446 ], [ 446, 447 ], [ 446, 448 ], [ 448, 449 ], [ 449, 450 ], [ 450, 451 ], [ 451, 452 ], [ 451, 453 ], [ 450, 454 ], [ 454, 455 ], [ 455, 456 ], [ 455, 457 ], [ 454, 458 ], [ 446, 459 ], [ 459, 460 ], [ 446, 461 ], [ 461, 462 ], [ 1239, 463 ], [ 463, 464 ], [ 463, 465 ], [ 465, 466 ], [ 466, 467 ], [ 467, 468 ], [ 467, 469 ], [ 466, 470 ], [ 470, 471 ], [ 465, 472 ], [ 472, 473 ], [ 473, 474 ], [ 473, 475 ], [ 472, 476 ], [ 476, 477 ], [ 465, 478 ], [ 478, 479 ], [ 479, 480 ], [ 480, 481 ], [ 481, 482 ], [ 481, 483 ], [ 480, 484 ], [ 479, 485 ], [ 485, 486 ], [ 486, 487 ], [ 486, 488 ], [ 485, 489 ], [ 478, 490 ], [ 490, 491 ], [ 465, 492 ], [ 492, 493 ], [ 493, 494 ], [ 494, 495 ], [ 494, 496 ], [ 492, 497 ], [ 497, 498 ], [ 498, 499 ], [ 498, 500 ], [ 497, 501 ], [ 492, 502 ], [ 502, 503 ], [ 503, 504 ], [ 503, 505 ], [ 505, 506 ], [ 505, 507 ], [ 492, 508 ], [ 508, 509 ], [ 509, 510 ], [ 510, 511 ], [ 511, 512 ], [ 512, 513 ], [ 512, 514 ], [ 511, 515 ], [ 510, 516 ], [ 516, 517 ], [ 517, 518 ], [ 517, 519 ], [ 519, 520 ], [ 519, 521 ], [ 516, 522 ], [ 509, 523 ], [ 523, 524 ], [ 465, 525 ], [ 525, 526 ], [ 463, 527 ], [ 527, 528 ], [ 1239, 529 ], [ 529, 530 ], [ 529, 531 ], [ 531, 532 ], [ 532, 533 ], [ 533, 534 ], [ 533, 535 ], [ 532, 536 ], [ 536, 537 ], [ 531, 538 ], [ 538, 539 ], [ 539, 540 ], [ 539, 541 ], [ 538, 542 ], [ 542, 543 ], [ 531, 544 ], [ 544, 545 ], [ 545, 546 ], [ 546, 547 ], [ 547, 548 ], [ 547, 549 ], [ 546, 550 ], [ 545, 551 ], [ 551, 552 ], [ 552, 553 ], [ 552, 554 ], [ 551, 555 ], [ 544, 556 ], [ 556, 557 ], [ 531, 558 ], [ 558, 559 ], [ 559, 560 ], [ 560, 561 ], [ 560, 562 ], [ 558, 563 ], [ 563, 564 ], [ 564, 565 ], [ 564, 566 ], [ 563, 567 ], [ 558, 568 ], [ 568, 569 ], [ 569, 570 ], [ 569, 571 ], [ 571, 572 ], [ 571, 573 ], [ 558, 574 ], [ 574, 575 ], [ 575, 576 ], [ 576, 577 ], [ 577, 578 ], [ 578, 579 ], [ 578, 580 ], [ 577, 581 ], [ 576, 582 ], [ 582, 583 ], [ 583, 584 ], [ 583, 585 ], [ 585, 586 ], [ 585, 587 ], [ 582, 588 ], [ 575, 589 ], [ 589, 590 ], [ 531, 591 ], [ 591, 592 ], [ 529, 593 ], [ 593, 594 ], [ 1239, 595 ], [ 595, 596 ], [ 595, 597 ], [ 597, 598 ], [ 598, 599 ], [ 598, 600 ], [ 597, 601 ], [ 601, 602 ], [ 602, 603 ], [ 603, 604 ], [ 603, 605 ], [ 601, 606 ], [ 606, 607 ], [ 606, 608 ], [ 608, 609 ], [ 609, 610 ], [ 608, 611 ], [ 601, 612 ], [ 612, 613 ], [ 613, 614 ], [ 601, 615 ], [ 616, 616 ], [ 616, 617 ], [ 617, 618 ], [ 618, 619 ], [ 619, 620 ], [ 619, 621 ], [ 618, 622 ], [ 617, 623 ], [ 623, 624 ], [ 624, 625 ], [ 625, 626 ], [ 624, 627 ], [ 623, 628 ], [ 628, 629 ], [ 629, 630 ], [ 628, 631 ], [ 631, 632 ], [ 631, 633 ], [ 597, 634 ], [ 634, 635 ], [ 595, 636 ], [ 636, 637 ], [ 1239, 638 ], [ 638, 639 ], [ 638, 640 ], [ 640, 641 ], [ 641, 642 ], [ 641, 643 ], [ 640, 644 ], [ 644, 645 ], [ 645, 646 ], [ 646, 647 ], [ 646, 648 ], [ 644, 649 ], [ 649, 650 ], [ 649, 651 ], [ 651, 652 ], [ 652, 653 ], [ 651, 654 ], [ 644, 655 ], [ 655, 656 ], [ 656, 657 ], [ 644, 658 ], [ 659, 659 ], [ 659, 660 ], [ 660, 661 ], [ 661, 662 ], [ 662, 663 ], [ 662, 664 ], [ 661, 665 ], [ 660, 666 ], [ 666, 667 ], [ 667, 668 ], [ 668, 669 ], [ 667, 670 ], [ 666, 671 ], [ 671, 672 ], [ 672, 673 ], [ 671, 674 ], [ 674, 675 ], [ 674, 676 ], [ 640, 677 ], [ 677, 678 ], [ 638, 679 ], [ 679, 680 ], [ 1239, 681 ], [ 681, 682 ], [ 681, 683 ], [ 683, 684 ], [ 684, 685 ], [ 684, 686 ], [ 686, 687 ], [ 686, 688 ], [ 683, 689 ], [ 689, 690 ], [ 689, 691 ], [ 683, 692 ], [ 692, 693 ], [ 692, 694 ], [ 692, 695 ], [ 695, 696 ], [ 696, 697 ], [ 697, 698 ], [ 697, 699 ], [ 696, 700 ], [ 700, 701 ], [ 701, 702 ], [ 700, 703 ], [ 683, 704 ], [ 704, 705 ], [ 681, 706 ], [ 706, 707 ], [ 1239, 708 ], [ 708, 709 ], [ 708, 710 ], [ 710, 711 ], [ 711, 712 ], [ 711, 713 ], [ 713, 714 ], [ 713, 715 ], [ 710, 716 ], [ 716, 717 ], [ 716, 718 ], [ 710, 719 ], [ 719, 720 ], [ 719, 721 ], [ 719, 722 ], [ 722, 723 ], [ 723, 724 ], [ 724, 725 ], [ 724, 726 ], [ 723, 727 ], [ 727, 728 ], [ 728, 729 ], [ 727, 730 ], [ 710, 731 ], [ 731, 732 ], [ 708, 733 ], [ 733, 734 ], [ 1239, 735 ], [ 735, 736 ], [ 735, 737 ], [ 737, 738 ], [ 738, 739 ], [ 738, 740 ], [ 741, 742 ], [ 741, 743 ], [ 737, 744 ], [ 744, 745 ], [ 745, 746 ], [ 746, 747 ], [ 746, 748 ], [ 744, 749 ], [ 749, 750 ], [ 749, 751 ], [ 744, 752 ], [ 752, 753 ], [ 753, 754 ], [ 744, 755 ], [ 756, 756 ], [ 756, 757 ], [ 757, 758 ], [ 758, 759 ], [ 758, 760 ], [ 757, 761 ], [ 761, 762 ], [ 762, 763 ], [ 737, 764 ], [ 764, 765 ], [ 735, 766 ], [ 766, 767 ], [ 1239, 768 ], [ 768, 769 ], [ 768, 770 ], [ 770, 771 ], [ 771, 772 ], [ 771, 773 ], [ 774, 775 ], [ 774, 776 ], [ 770, 777 ], [ 777, 778 ], [ 778, 779 ], [ 779, 780 ], [ 779, 781 ], [ 777, 782 ], [ 782, 783 ], [ 782, 784 ], [ 777, 785 ], [ 785, 786 ], [ 786, 787 ], [ 777, 788 ], [ 789, 789 ], [ 789, 790 ], [ 790, 791 ], [ 791, 792 ], [ 791, 793 ], [ 790, 794 ], [ 794, 795 ], [ 795, 796 ], [ 770, 797 ], [ 797, 798 ], [ 768, 799 ], [ 799, 800 ], [ 1239, 801 ], [ 801, 802 ], [ 801, 803 ], [ 803, 804 ], [ 804, 805 ], [ 805, 806 ], [ 806, 807 ], [ 806, 808 ], [ 805, 809 ], [ 801, 810 ], [ 810, 811 ], [ 1239, 812 ], [ 812, 813 ], [ 812, 814 ], [ 814, 815 ], [ 815, 816 ], [ 816, 817 ], [ 817, 818 ], [ 817, 819 ], [ 816, 820 ], [ 812, 821 ], [ 821, 822 ], [ 1239, 823 ], [ 823, 824 ], [ 823, 825 ], [ 825, 826 ], [ 826, 827 ], [ 827, 828 ], [ 828, 829 ], [ 827, 830 ], [ 823, 831 ], [ 831, 832 ], [ 1239, 833 ], [ 833, 834 ], [ 833, 835 ], [ 835, 836 ], [ 836, 837 ], [ 837, 838 ], [ 838, 839 ], [ 838, 840 ], [ 837, 841 ], [ 837, 842 ], [ 842, 843 ], [ 842, 844 ], [ 844, 845 ], [ 844, 846 ], [ 846, 847 ], [ 846, 848 ], [ 833, 849 ], [ 849, 850 ], [ 1239, 851 ], [ 851, 852 ], [ 851, 853 ], [ 853, 854 ], [ 854, 855 ], [ 855, 856 ], [ 856, 857 ], [ 856, 858 ], [ 855, 859 ], [ 855, 860 ], [ 860, 861 ], [ 860, 862 ], [ 862, 863 ], [ 862, 864 ], [ 864, 865 ], [ 864, 866 ], [ 851, 867 ], [ 867, 868 ], [ 1239, 869 ], [ 869, 870 ], [ 869, 871 ], [ 871, 872 ], [ 872, 873 ], [ 872, 874 ], [ 871, 875 ], [ 875, 876 ], [ 875, 877 ], [ 875, 878 ], [ 878, 879 ], [ 879, 880 ], [ 880, 881 ], [ 879, 882 ], [ 871, 883 ], [ 883, 884 ], [ 884, 885 ], [ 883, 886 ], [ 871, 887 ], [ 887, 888 ], [ 888, 889 ], [ 889, 890 ], [ 889, 891 ], [ 887, 892 ], [ 892, 893 ], [ 892, 894 ], [ 894, 895 ], [ 894, 896 ], [ 887, 897 ], [ 897, 898 ], [ 898, 899 ], [ 887, 900 ], [ 900, 901 ], [ 901, 902 ], [ 902, 903 ], [ 902, 904 ], [ 901, 905 ], [ 905, 906 ], [ 906, 907 ], [ 905, 908 ], [ 869, 909 ], [ 909, 910 ], [ 1239, 911 ], [ 911, 912 ], [ 911, 913 ], [ 913, 914 ], [ 914, 915 ], [ 914, 916 ], [ 913, 917 ], [ 917, 918 ], [ 917, 919 ], [ 917, 920 ], [ 920, 921 ], [ 921, 922 ], [ 922, 923 ], [ 921, 924 ], [ 913, 925 ], [ 925, 926 ], [ 926, 927 ], [ 925, 928 ], [ 913, 929 ], [ 929, 930 ], [ 930, 931 ], [ 931, 932 ], [ 931, 933 ], [ 929, 934 ], [ 934, 935 ], [ 934, 936 ], [ 936, 937 ], [ 936, 938 ], [ 929, 939 ], [ 939, 940 ], [ 940, 941 ], [ 929, 942 ], [ 942, 943 ], [ 943, 944 ], [ 944, 945 ], [ 944, 946 ], [ 943, 947 ], [ 947, 948 ], [ 948, 949 ], [ 947, 950 ], [ 911, 951 ], [ 951, 952 ], [ 1239, 953 ], [ 953, 954 ], [ 953, 955 ], [ 955, 956 ], [ 956, 957 ], [ 957, 958 ], [ 956, 959 ], [ 953, 960 ], [ 960, 961 ], [ 1239, 962 ], [ 962, 963 ], [ 962, 964 ], [ 964, 965 ], [ 962, 966 ], [ 966, 967 ], [ 966, 968 ], [ 962, 970 ], [ 970, 971 ], [ 962, 972 ], [ 972, 973 ], [ 962, 974 ], [ 974, 975 ], [ 962, 976 ], [ 976, 977 ], [ 976, 978 ], [ 978, 979 ], [ 979, 980 ], [ 980, 981 ], [ 980, 982 ], [ 979, 983 ], [ 976, 984 ], [ 984, 985 ], [ 962, 986 ], [ 986, 987 ], [ 986, 988 ], [ 988, 989 ], [ 989, 990 ], [ 990, 991 ], [ 990, 992 ], [ 992, 993 ], [ 989, 994 ], [ 994, 995 ], [ 988, 996 ], [ 996, 997 ], [ 997, 998 ], [ 997, 999 ], [ 996, 1000 ], [ 1000, 1001 ], [ 1001, 1002 ], [ 1001, 1003 ], [ 1000, 1004 ], [ 1004, 1005 ], [ 1005, 1006 ], [ 1005, 1007 ], [ 1007, 1008 ], [ 1008, 1009 ], [ 1004, 1010 ], [ 1010, 1011 ], [ 1011, 1012 ], [ 1011, 1013 ], [ 1013, 1014 ], [ 1014, 1015 ], [ 1013, 1016 ], [ 1000, 1017 ], [ 1017, 1018 ], [ 1018, 1019 ], [ 1018, 1020 ], [ 1017, 1021 ], [ 1021, 1022 ], [ 1022, 1023 ], [ 988, 1024 ], [ 1024, 1025 ], [ 1025, 1026 ], [ 1025, 1027 ], [ 1027, 1028 ], [ 962, 1029 ], [ 1029, 1030 ], [ 1029, 1031 ], [ 1031, 1032 ], [ 1032, 1033 ], [ 1032, 1034 ], [ 1034, 1035 ], [ 1031, 1036 ], [ 1036, 1037 ], [ 1037, 1038 ], [ 1037, 1039 ], [ 1036, 1040 ], [ 1040, 1041 ], [ 1040, 1042 ], [ 1042, 1043 ], [ 1031, 1044 ], [ 1044, 1045 ], [ 1044, 1046 ], [ 1031, 1047 ], [ 1047, 1048 ], [ 1048, 1049 ], [ 1048, 1050 ], [ 1047, 1051 ], [ 1051, 1052 ], [ 1052, 1053 ], [ 1052, 1054 ], [ 1054, 1055 ], [ 1051, 1056 ], [ 1056, 1057 ], [ 1056, 1058 ], [ 1058, 1059 ], [ 1031, 1060 ], [ 1060, 1061 ], [ 1060, 1062 ], [ 1031, 1063 ], [ 1063, 1064 ], [ 1064, 1065 ], [ 1065, 1066 ], [ 1065, 1067 ], [ 1063, 1068 ], [ 1068, 1069 ], [ 1069, 1070 ], [ 1070, 1071 ], [ 1071, 1072 ], [ 1071, 1073 ], [ 1070, 1074 ], [ 1074, 1075 ], [ 1074, 1076 ], [ 1069, 1077 ], [ 1077, 1078 ], [ 1068, 1079 ], [ 1079, 1080 ], [ 1079, 1081 ], [ 1068, 1082 ], [ 1082, 1083 ], [ 1082, 1084 ], [ 1084, 1085 ], [ 1084, 1086 ], [ 1068, 1087 ], [ 1087, 1088 ], [ 1087, 1089 ], [ 1089, 1090 ], [ 1031, 1091 ], [ 1091, 1092 ], [ 1092, 1093 ], [ 1092, 1094 ], [ 962, 1095 ], [ 1095, 1096 ], [ 1095, 1097 ], [ 1097, 1098 ], [ 1098, 1099 ], [ 1098, 1100 ], [ 1100, 1101 ], [ 1097, 1102 ], [ 1102, 1103 ], [ 1103, 1104 ], [ 1103, 1105 ], [ 1102, 1106 ], [ 1106, 1107 ], [ 1106, 1108 ], [ 1108, 1109 ], [ 1097, 1110 ], [ 1110, 1111 ], [ 1110, 1112 ], [ 1097, 1113 ], [ 1113, 1114 ], [ 1114, 1115 ], [ 1114, 1116 ], [ 1113, 1117 ], [ 1117, 1118 ], [ 1118, 1119 ], [ 1118, 1120 ], [ 1120, 1121 ], [ 1117, 1122 ], [ 1122, 1123 ], [ 1122, 1124 ], [ 1124, 1125 ], [ 1097, 1126 ], [ 1126, 1127 ], [ 1126, 1128 ], [ 1097, 1129 ], [ 1129, 1130 ], [ 1130, 1131 ], [ 1131, 1132 ], [ 1131, 1133 ], [ 1129, 1134 ], [ 1134, 1135 ], [ 1135, 1136 ], [ 1136, 1137 ], [ 1137, 1138 ], [ 1137, 1139 ], [ 1136, 1140 ], [ 1140, 1141 ], [ 1140, 1142 ], [ 1135, 1143 ], [ 1143, 1144 ], [ 1134, 1145 ], [ 1145, 1146 ], [ 1145, 1147 ], [ 1134, 1148 ], [ 1148, 1149 ], [ 1148, 1150 ], [ 1150, 1151 ], [ 1150, 1152 ], [ 1134, 1153 ], [ 1153, 1154 ], [ 1153, 1155 ], [ 1155, 1156 ], [ 1097, 1157 ], [ 1157, 1158 ], [ 1158, 1159 ], [ 1158, 1160 ], [ 962, 1161 ], [ 1161, 1162 ], [ 1161, 1163 ], [ 1163, 1164 ], [ 1164, 1165 ], [ 1164, 1166 ], [ 1166, 1167 ], [ 1163, 1168 ], [ 1168, 1169 ], [ 1169, 1170 ], [ 1169, 1171 ], [ 1168, 1172 ], [ 1172, 1173 ], [ 1172, 1174 ], [ 1174, 1175 ], [ 1163, 1176 ], [ 1176, 1177 ], [ 1176, 1178 ], [ 1163, 1179 ], [ 1179, 1180 ], [ 1180, 1181 ], [ 1181, 1182 ], [ 1181, 1183 ], [ 1179, 1184 ], [ 1184, 1185 ], [ 1185, 1186 ], [ 1186, 1187 ], [ 1185, 1188 ], [ 1184, 1189 ], [ 1189, 1190 ], [ 1189, 1191 ], [ 1191, 1192 ], [ 1163, 1193 ], [ 1193, 1194 ], [ 1194, 1195 ], [ 1195, 1196 ], [ 962, 1197 ], [ 1197, 1198 ], [ 1197, 1199 ], [ 1199, 1200 ], [ 1200, 1201 ], [ 1201, 1202 ], [ 1201, 1203 ], [ 1200, 1204 ], [ 1204, 1205 ], [ 1205, 1206 ], [ 1206, 1207 ], [ 1205, 1208 ], [ 1199, 1209 ], [ 1209, 1210 ], [ 1213, 1211 ], [ 1223, 1212 ], [ 1220, 1213 ], [ 1213, 1214 ], [ 1214, 1215 ], [ 1214, 1216 ], [ 1213, 1217 ], [ 1217, 1218 ], [ 1217, 1219 ], [ 1220, 1220 ], [ 1220, 1221 ], [ 1220, 1222 ], [ 1223, 1223 ], [ 1223, 1224 ], [ 1223, 1225 ], [ 1213, 1226 ], [ 1226, 1227 ], [ 1226, 1228 ], [ 1228, 1229 ], [ 1197, 1230 ], [ 1230, 1231 ], [ 962, 1232 ], [ 1232, 1233 ], [ 1232, 1234 ], [ 1234, 1235 ], [ 1234, 1236 ], [ 1236, 1237 ], [ 0, 1238 ], [ 1238, 1239 ], [ 1238, 1240 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.math.BigInteger;\nimport java.text.*;\npublic class Main {\n static int mod = 1000_000_007;\n static long lim = (long)1e9 + 6;\n static long mod1 = 998244353;\n static boolean fileIO = false;\n static FastScanner f;\n static int inf = 2000_000_000;\n static PrintWriter pw = new PrintWriter(System.out);\n static Scanner S = new Scanner(System.in);\n static long x0; static long y0;\n static long iinf = (long)(1e18);\n static double eps = (double)1e-4;\n public static void solve()throws IOException {\n int n = f.ni();\n boolean ok = false;\n int arr[][] = new int[n][2];\n for (int i = 0; i < n; ++i) {\n arr[i][0] = f.ni();\n arr[i][1] = f.ni();\n }\n\n for (int i = 0; i + 2 < n; ++i) {\n if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) ok = true; \n }\n\n pn(ok ? \"Yes\" : \"No\");\n } \n public static void main(String[] args)throws IOException {\n init();\n //pre();\n int t = 1;\n int tt = 1;\n //fw = new FileWriter(\"!out.txt\");\n while(t --> 0) {\n //fw.write(\"Case #\" + (tt++) + \": \");\n //fw.write(\"\\n\");\n solve();\n }\n pw.flush(); \n pw.close();\n //fw.close(); \n }\n \n/******************************END OF MAIN PROGRAM*******************************************/\n public static void init()throws IOException{f=new FastScanner(System.in);}\n public static class FastScanner {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastScanner.SpaceCharFilter filter;\n \n public FastScanner(InputStream stream) {\n this.stream = stream;\n }\n \n public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n \n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n \n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public int ni() {\n int c = read();\n \n while (isSpaceChar(c))\n c = read();\n \n int sgn = 1;\n \n if (c == '-') {\n sgn = -1;\n c = read();\n }\n \n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n \n return res * sgn;\n }\n \n public long nl() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n \n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n public static void pn(Object o){pw.println(o);}\n public static void pi(Object o){pw.print(o);pw.flush();}\n public static void p(Object o){pw.print(o);}\n public static void pni(Object o){pw.println(o);pw.flush();}\n static int gcd(int a,int b){if(b==0)return a;else{return gcd(b,a%b);}}\n static long gcd(long a,long b){if(b==0l)return a;else{return gcd(b,a%b);}}\n static long lcm(long a,long b){return (a*b/gcd(a,b));}\n static long exgcd(long a,long b){if(b==0){x0=1;y0=0;return a;}long temp=exgcd(b,a%b);long t=x0;x0=y0;y0=t-a/b*y0;return temp;}\n static long pow(long a,long b){long res=1;while(b>0){if((b&1)==1)res=res*a;b>>=1;a=a*a;}return res;}\n static long mpow(long a,long b, long m){long res=1;while(b>0){if((b&1)==1)res=((res%m)*(a%m))%m;b>>=1;a=((a%m)*(a%m))%m;}return res;}\n static long mul(long a , long b){return ((a%mod)*(b%mod)%mod);}\n static long adp(long a , long b){return ((a%mod)+(b%mod)%mod);}\n static boolean isPrime(long n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(long i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}\n static boolean isPrime(int n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(int i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}\n static HashSet<Long> factors(long n){HashSet<Long> hs=new HashSet<Long>();for(long i=1;i<=(long)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}\n static HashSet<Integer> factors(int n){HashSet<Integer> hs=new HashSet<Integer>();for(int i=1;i<=(int)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}\n static HashSet<Long> pf(long n){HashSet<Long> ff=factors(n);HashSet<Long> ans=new HashSet<Long>();for(Long i:ff)if(isPrime(i))ans.add(i);return ans;}\n static HashSet<Integer> pf(int n){HashSet<Integer> ff=factors(n);HashSet<Integer> ans=new HashSet<Integer>();for(Integer i:ff)if(isPrime(i))ans.add(i);return ans;}\n static int[] inpint(int n){int arr[]=new int[n+1];for(int i=1;i<=n;++i){arr[i]=f.ni();}return arr;}\n static long[] inplong(int n){long arr[] = new long[n+1];for(int i=1;i<=n;++i){arr[i]=f.nl();}return arr;}\n static boolean ise(int x){return ((x&1)==0);}static boolean ise(long x){return ((x&1)==0);}\n static int gnv(char c){return Character.getNumericValue(c);}\n static int log(long x){return x==1?0:(1+log(x/2));} static int log(int x){return x==1?0:(1+log(x/2));}\n static void sort(int[] a){ArrayList<Integer> l=new ArrayList<>();for(int i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}\n static void sort(long[] a){ArrayList<Long> l=new ArrayList<>();for(long i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}\n static void sort(ArrayList<Integer> a){Collections.sort(a);}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.text.*;", "text.*", "java", "public class Main {\n static int mod = 1000_000_007;\n static long lim = (long)1e9 + 6;\n static long mod1 = 998244353;\n static boolean fileIO = false;\n static FastScanner f;\n static int inf = 2000_000_000;\n static PrintWriter pw = new PrintWriter(System.out);\n static Scanner S = new Scanner(System.in);\n static long x0; static long y0;\n static long iinf = (long)(1e18);\n static double eps = (double)1e-4;\n public static void solve()throws IOException {\n int n = f.ni();\n boolean ok = false;\n int arr[][] = new int[n][2];\n for (int i = 0; i < n; ++i) {\n arr[i][0] = f.ni();\n arr[i][1] = f.ni();\n }\n\n for (int i = 0; i + 2 < n; ++i) {\n if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) ok = true; \n }\n\n pn(ok ? \"Yes\" : \"No\");\n } \n public static void main(String[] args)throws IOException {\n init();\n //pre();\n int t = 1;\n int tt = 1;\n //fw = new FileWriter(\"!out.txt\");\n while(t --> 0) {\n //fw.write(\"Case #\" + (tt++) + \": \");\n //fw.write(\"\\n\");\n solve();\n }\n pw.flush(); \n pw.close();\n //fw.close(); \n }\n \n/******************************END OF MAIN PROGRAM*******************************************/\n public static void init()throws IOException{f=new FastScanner(System.in);}\n public static class FastScanner {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastScanner.SpaceCharFilter filter;\n \n public FastScanner(InputStream stream) {\n this.stream = stream;\n }\n \n public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n \n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n \n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public int ni() {\n int c = read();\n \n while (isSpaceChar(c))\n c = read();\n \n int sgn = 1;\n \n if (c == '-') {\n sgn = -1;\n c = read();\n }\n \n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n \n return res * sgn;\n }\n \n public long nl() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n \n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n public static void pn(Object o){pw.println(o);}\n public static void pi(Object o){pw.print(o);pw.flush();}\n public static void p(Object o){pw.print(o);}\n public static void pni(Object o){pw.println(o);pw.flush();}\n static int gcd(int a,int b){if(b==0)return a;else{return gcd(b,a%b);}}\n static long gcd(long a,long b){if(b==0l)return a;else{return gcd(b,a%b);}}\n static long lcm(long a,long b){return (a*b/gcd(a,b));}\n static long exgcd(long a,long b){if(b==0){x0=1;y0=0;return a;}long temp=exgcd(b,a%b);long t=x0;x0=y0;y0=t-a/b*y0;return temp;}\n static long pow(long a,long b){long res=1;while(b>0){if((b&1)==1)res=res*a;b>>=1;a=a*a;}return res;}\n static long mpow(long a,long b, long m){long res=1;while(b>0){if((b&1)==1)res=((res%m)*(a%m))%m;b>>=1;a=((a%m)*(a%m))%m;}return res;}\n static long mul(long a , long b){return ((a%mod)*(b%mod)%mod);}\n static long adp(long a , long b){return ((a%mod)+(b%mod)%mod);}\n static boolean isPrime(long n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(long i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}\n static boolean isPrime(int n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(int i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}\n static HashSet<Long> factors(long n){HashSet<Long> hs=new HashSet<Long>();for(long i=1;i<=(long)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}\n static HashSet<Integer> factors(int n){HashSet<Integer> hs=new HashSet<Integer>();for(int i=1;i<=(int)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}\n static HashSet<Long> pf(long n){HashSet<Long> ff=factors(n);HashSet<Long> ans=new HashSet<Long>();for(Long i:ff)if(isPrime(i))ans.add(i);return ans;}\n static HashSet<Integer> pf(int n){HashSet<Integer> ff=factors(n);HashSet<Integer> ans=new HashSet<Integer>();for(Integer i:ff)if(isPrime(i))ans.add(i);return ans;}\n static int[] inpint(int n){int arr[]=new int[n+1];for(int i=1;i<=n;++i){arr[i]=f.ni();}return arr;}\n static long[] inplong(int n){long arr[] = new long[n+1];for(int i=1;i<=n;++i){arr[i]=f.nl();}return arr;}\n static boolean ise(int x){return ((x&1)==0);}static boolean ise(long x){return ((x&1)==0);}\n static int gnv(char c){return Character.getNumericValue(c);}\n static int log(long x){return x==1?0:(1+log(x/2));} static int log(int x){return x==1?0:(1+log(x/2));}\n static void sort(int[] a){ArrayList<Integer> l=new ArrayList<>();for(int i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}\n static void sort(long[] a){ArrayList<Long> l=new ArrayList<>();for(long i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}\n static void sort(ArrayList<Integer> a){Collections.sort(a);}\n}", "Main", "static int mod = 1000_000_007;", "mod", "1000_000_007", "static long lim = (long)1e9 + 6;", "lim", "(long)1e9 + 6", "(long)1e9", "6", "static long mod1 = 998244353;", "mod1", "998244353", "static boolean fileIO = false;", "fileIO", "false", "static FastScanner f;", "f", "static int inf = 2000_000_000;", "inf", "2000_000_000", "static PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "static Scanner S = new Scanner(System.in);", "S", "new Scanner(System.in)", "static long x0;", "x0", "static long y0;", "y0", "static long iinf = (long)(1e18);", "iinf", "(long)(1e18)", "static double eps = (double)1e-4;", "eps", "(double)1e-4", "public static void solve()throws IOException {\n int n = f.ni();\n boolean ok = false;\n int arr[][] = new int[n][2];\n for (int i = 0; i < n; ++i) {\n arr[i][0] = f.ni();\n arr[i][1] = f.ni();\n }\n\n for (int i = 0; i + 2 < n; ++i) {\n if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) ok = true; \n }\n\n pn(ok ? \"Yes\" : \"No\");\n }", "solve", "{\n int n = f.ni();\n boolean ok = false;\n int arr[][] = new int[n][2];\n for (int i = 0; i < n; ++i) {\n arr[i][0] = f.ni();\n arr[i][1] = f.ni();\n }\n\n for (int i = 0; i + 2 < n; ++i) {\n if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) ok = true; \n }\n\n pn(ok ? \"Yes\" : \"No\");\n }", "int n = f.ni();", "n", "f.ni()", "f.ni", "f", "boolean ok = false;", "ok", "false", "int arr[][] = new int[n][2];", "arr", "new int[n][2]", "n", "2", "for (int i = 0; i < n; ++i) {\n arr[i][0] = f.ni();\n arr[i][1] = f.ni();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n arr[i][0] = f.ni();\n arr[i][1] = f.ni();\n }", "{\n arr[i][0] = f.ni();\n arr[i][1] = f.ni();\n }", "arr[i][0] = f.ni()", "arr[i][0]", "arr[i]", "arr", "i", "0", "f.ni()", "f.ni", "f", "arr[i][1] = f.ni()", "arr[i][1]", "arr[i]", "arr", "i", "1", "f.ni()", "f.ni", "f", "for (int i = 0; i + 2 < n; ++i) {\n if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) ok = true; \n }", "int i = 0;", "int i = 0;", "i", "0", "i + 2 < n", "i + 2", "i", "2", "n", "++i", "++i", "i", "{\n if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) ok = true; \n }", "{\n if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) ok = true; \n }", "if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) ok = true;", "arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]", "arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]", "arr[i][0] == arr[i][1]", "arr[i][0]", "arr[i]", "arr", "i", "0", "arr[i][1]", "arr[i]", "arr", "i", "1", "arr[i + 1][0] == arr[i + 1][1]", "arr[i + 1][0]", "arr[i + 1]", "arr", "i + 1", "i", "1", "0", "arr[i + 1][1]", "arr[i + 1]", "arr", "i + 1", "i", "1", "1", "arr[i + 2][0] == arr[i + 2][1]", "arr[i + 2][0]", "arr[i + 2]", "arr", "i + 2", "i", "2", "0", "arr[i + 2][1]", "arr[i + 2]", "arr", "i + 2", "i", "2", "1", "ok = true", "ok", "true", "pn(ok ? \"Yes\" : \"No\")", "pn", "ok ? \"Yes\" : \"No\"", "ok", "\"Yes\"", "\"No\"", "public static void main(String[] args)throws IOException {\n init();\n //pre();\n int t = 1;\n int tt = 1;\n //fw = new FileWriter(\"!out.txt\");\n while(t --> 0) {\n //fw.write(\"Case #\" + (tt++) + \": \");\n //fw.write(\"\\n\");\n solve();\n }\n pw.flush(); \n pw.close();\n //fw.close(); \n }", "main", "{\n init();\n //pre();\n int t = 1;\n int tt = 1;\n //fw = new FileWriter(\"!out.txt\");\n while(t --> 0) {\n //fw.write(\"Case #\" + (tt++) + \": \");\n //fw.write(\"\\n\");\n solve();\n }\n pw.flush(); \n pw.close();\n //fw.close(); \n }", "init()", "init", "int t = 1;", "t", "1", "int tt = 1;", "tt", "1", "while(t --> 0) {\n //fw.write(\"Case #\" + (tt++) + \": \");\n //fw.write(\"\\n\");\n solve();\n }", "t --> 0", "t --", "t", "0", "{\n //fw.write(\"Case #\" + (tt++) + \": \");\n //fw.write(\"\\n\");\n solve();\n }", "solve()", "solve", "pw.flush()", "pw.flush", "pw", "pw.close()", "pw.close", "pw", "String[] args", "args", "/******************************END OF MAIN PROGRAM*******************************************/\n public static void init()throws IOException{f=new FastScanner(System.in);}", "init", "{f=new FastScanner(System.in);}", "f=new FastScanner(System.in)", "f", "new FastScanner(System.in)", "public static void pn(Object o){pw.println(o);}", "pn", "{pw.println(o);}", "pw.println(o)", "pw.println", "pw", "o", "Object o", "o", "public static void pi(Object o){pw.print(o);pw.flush();}", "pi", "{pw.print(o);pw.flush();}", "pw.print(o)", "pw.print", "pw", "o", "pw.flush()", "pw.flush", "pw", "Object o", "o", "public static void p(Object o){pw.print(o);}", "p", "{pw.print(o);}", "pw.print(o)", "pw.print", "pw", "o", "Object o", "o", "public static void pni(Object o){pw.println(o);pw.flush();}", "pni", "{pw.println(o);pw.flush();}", "pw.println(o)", "pw.println", "pw", "o", "pw.flush()", "pw.flush", "pw", "Object o", "o", "static int gcd(int a,int b){if(b==0)return a;else{return gcd(b,a%b);}}", "gcd", "{if(b==0)return a;else{return gcd(b,a%b);}}", "if(b==0)return a;else{return gcd(b,a%b);}", "b==0", "b", "0", "return a;", "a", "{return gcd(b,a%b);}", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "int a", "a", "int b", "b", "static long gcd(long a,long b){if(b==0l)return a;else{return gcd(b,a%b);}}", "gcd", "{if(b==0l)return a;else{return gcd(b,a%b);}}", "if(b==0l)return a;else{return gcd(b,a%b);}", "b==0l", "b", "0l", "return a;", "a", "{return gcd(b,a%b);}", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "static long lcm(long a,long b){return (a*b/gcd(a,b));}", "lcm", "{return (a*b/gcd(a,b));}", "return (a*b/gcd(a,b));", "(a*b/gcd(a,b))", "a*b", "a", "b", "gcd(a,b)", "gcd", "a", "b", "long a", "a", "long b", "b", "static long exgcd(long a,long b){if(b==0){x0=1;y0=0;return a;}long temp=exgcd(b,a%b);long t=x0;x0=y0;y0=t-a/b*y0;return temp;}", "exgcd", "{if(b==0){x0=1;y0=0;return a;}long temp=exgcd(b,a%b);long t=x0;x0=y0;y0=t-a/b*y0;return temp;}", "if(b==0){x0=1;y0=0;return a;}", "b==0", "b", "0", "{x0=1;y0=0;return a;}", "x0=1", "x0", "1", "y0=0", "y0", "0", "return a;", "a", "long temp=exgcd(b,a%b);", "temp", "exgcd(b,a%b)", "exgcd", "b", "a%b", "a", "b", "long t=x0;", "t", "x0", "x0=y0", "x0", "y0", "y0=t-a/b*y0", "y0", "t-a/b*y0", "t", "a/b*y0", "a/b", "a", "b", "y0", "return temp;", "temp", "long a", "a", "long b", "b", "static long pow(long a,long b){long res=1;while(b>0){if((b&1)==1)res=res*a;b>>=1;a=a*a;}return res;}", "pow", "{long res=1;while(b>0){if((b&1)==1)res=res*a;b>>=1;a=a*a;}return res;}", "long res=1;", "res", "1", "while(b>0){if((b&1)==1)res=res*a;b>>=1;a=a*a;}", "b>0", "b", "0", "{if((b&1)==1)res=res*a;b>>=1;a=a*a;}", "if((b&1)==1)res=res*a;", "(b&1)==1", "(b&1)", "b", "1", "1", "res=res*a", "res", "res*a", "res", "a", "b>>=1", "b", "1", "a=a*a", "a", "a*a", "a", "a", "return res;", "res", "long a", "a", "long b", "b", "static long mpow(long a,long b, long m){long res=1;while(b>0){if((b&1)==1)res=((res%m)*(a%m))%m;b>>=1;a=((a%m)*(a%m))%m;}return res;}", "mpow", "{long res=1;while(b>0){if((b&1)==1)res=((res%m)*(a%m))%m;b>>=1;a=((a%m)*(a%m))%m;}return res;}", "long res=1;", "res", "1", "while(b>0){if((b&1)==1)res=((res%m)*(a%m))%m;b>>=1;a=((a%m)*(a%m))%m;}", "b>0", "b", "0", "{if((b&1)==1)res=((res%m)*(a%m))%m;b>>=1;a=((a%m)*(a%m))%m;}", "if((b&1)==1)res=((res%m)*(a%m))%m;", "(b&1)==1", "(b&1)", "b", "1", "1", "res=((res%m)*(a%m))%m", "res", "((res%m)*(a%m))%m", "((res%m)*(a%m))", "(res%m)", "res", "m", "(a%m)", "a", "m", "m", "b>>=1", "b", "1", "a=((a%m)*(a%m))%m", "a", "((a%m)*(a%m))%m", "((a%m)*(a%m))", "(a%m)", "a", "m", "(a%m)", "a", "m", "m", "return res;", "res", "long a", "a", "long b", "b", "long m", "m", "static long mul(long a , long b){return ((a%mod)*(b%mod)%mod);}", "mul", "{return ((a%mod)*(b%mod)%mod);}", "return ((a%mod)*(b%mod)%mod);", "((a%mod)*(b%mod)%mod)", "(a%mod)*(b%mod)", "(a%mod)", "a", "mod", "(b%mod)", "b", "mod", "mod", "long a", "a", "long b", "b", "static long adp(long a , long b){return ((a%mod)+(b%mod)%mod);}", "adp", "{return ((a%mod)+(b%mod)%mod);}", "return ((a%mod)+(b%mod)%mod);", "((a%mod)+(b%mod)%mod)", "(a%mod)", "a", "mod", "(b%mod)%mod", "(b%mod)", "b", "mod", "mod", "long a", "a", "long b", "b", "static boolean isPrime(long n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(long i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}", "isPrime", "{if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(long i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}", "if(n<=1)return false;", "n<=1", "n", "1", "return false;", "false", "if(n<=3)return true;", "n<=3", "n", "3", "return true;", "true", "if(n%2==0||n%3==0)return false;", "n%2==0||n%3==0", "n%2==0", "n%2", "n", "2", "0", "n%3==0", "n%3", "n", "3", "0", "return false;", "false", "for(long i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;", "long i=5;", "long i=5;", "i", "5", "i*i<=n", "i*i", "i", "i", "n", "i=i+6", "i=i+6", "i", "i+6", "i", "6", "if(n%i==0||n%(i+2)==0)return false;", "if(n%i==0||n%(i+2)==0)return false;", "n%i==0||n%(i+2)==0", "n%i==0", "n%i", "n", "i", "0", "n%(i+2)==0", "n%(i+2)", "n", "(i+2)", "i", "2", "0", "return false;", "false", "return true;", "true", "long n", "n", "static boolean isPrime(int n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(int i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}", "isPrime", "{if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(int i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}", "if(n<=1)return false;", "n<=1", "n", "1", "return false;", "false", "if(n<=3)return true;", "n<=3", "n", "3", "return true;", "true", "if(n%2==0||n%3==0)return false;", "n%2==0||n%3==0", "n%2==0", "n%2", "n", "2", "0", "n%3==0", "n%3", "n", "3", "0", "return false;", "false", "for(int i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;", "int i=5;", "int i=5;", "i", "5", "i*i<=n", "i*i", "i", "i", "n", "i=i+6", "i=i+6", "i", "i+6", "i", "6", "if(n%i==0||n%(i+2)==0)return false;", "if(n%i==0||n%(i+2)==0)return false;", "n%i==0||n%(i+2)==0", "n%i==0", "n%i", "n", "i", "0", "n%(i+2)==0", "n%(i+2)", "n", "(i+2)", "i", "2", "0", "return false;", "false", "return true;", "true", "int n", "n", "static HashSet<Long> factors(long n){HashSet<Long> hs=new HashSet<Long>();for(long i=1;i<=(long)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}", "factors", "{HashSet<Long> hs=new HashSet<Long>();for(long i=1;i<=(long)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}", "HashSet<Long> hs=new HashSet<Long>();", "hs", "new HashSet<Long>()", "for(long i=1;i<=(long)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}", "long i=1;", "long i=1;", "i", "1", "i<=(long)Math.sqrt(n)", "i", "(long)Math.sqrt(n)", "Math.sqrt", "Math", "n", "i++", "i++", "i", "{if(n%i==0){hs.add(i);hs.add(n/i);}}", "{if(n%i==0){hs.add(i);hs.add(n/i);}}", "if(n%i==0){hs.add(i);hs.add(n/i);}", "n%i==0", "n%i", "n", "i", "0", "{hs.add(i);hs.add(n/i);}", "hs.add(i)", "hs.add", "hs", "i", "hs.add(n/i)", "hs.add", "hs", "n/i", "n", "i", "return hs;", "hs", "long n", "n", "static HashSet<Integer> factors(int n){HashSet<Integer> hs=new HashSet<Integer>();for(int i=1;i<=(int)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}", "factors", "{HashSet<Integer> hs=new HashSet<Integer>();for(int i=1;i<=(int)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}", "HashSet<Integer> hs=new HashSet<Integer>();", "hs", "new HashSet<Integer>()", "for(int i=1;i<=(int)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}", "int i=1;", "int i=1;", "i", "1", "i<=(int)Math.sqrt(n)", "i", "(int)Math.sqrt(n)", "Math.sqrt", "Math", "n", "i++", "i++", "i", "{if(n%i==0){hs.add(i);hs.add(n/i);}}", "{if(n%i==0){hs.add(i);hs.add(n/i);}}", "if(n%i==0){hs.add(i);hs.add(n/i);}", "n%i==0", "n%i", "n", "i", "0", "{hs.add(i);hs.add(n/i);}", "hs.add(i)", "hs.add", "hs", "i", "hs.add(n/i)", "hs.add", "hs", "n/i", "n", "i", "return hs;", "hs", "int n", "n", "static HashSet<Long> pf(long n){HashSet<Long> ff=factors(n);HashSet<Long> ans=new HashSet<Long>();for(Long i:ff)if(isPrime(i))ans.add(i);return ans;}", "pf", "{HashSet<Long> ff=factors(n);HashSet<Long> ans=new HashSet<Long>();for(Long i:ff)if(isPrime(i))ans.add(i);return ans;}", "HashSet<Long> ff=factors(n);", "ff", "factors(n)", "factors", "n", "HashSet<Long> ans=new HashSet<Long>();", "ans", "new HashSet<Long>()", "for(Long i:ff)if(isPrime(i))ans.add(i);", "Long i", "ff", "if(isPrime(i))ans.add(i);", "if(isPrime(i))ans.add(i);", "isPrime(i)", "isPrime", "i", "ans.add(i)", "ans.add", "ans", "i", "return ans;", "ans", "long n", "n", "static HashSet<Integer> pf(int n){HashSet<Integer> ff=factors(n);HashSet<Integer> ans=new HashSet<Integer>();for(Integer i:ff)if(isPrime(i))ans.add(i);return ans;}", "pf", "{HashSet<Integer> ff=factors(n);HashSet<Integer> ans=new HashSet<Integer>();for(Integer i:ff)if(isPrime(i))ans.add(i);return ans;}", "HashSet<Integer> ff=factors(n);", "ff", "factors(n)", "factors", "n", "HashSet<Integer> ans=new HashSet<Integer>();", "ans", "new HashSet<Integer>()", "for(Integer i:ff)if(isPrime(i))ans.add(i);", "Integer i", "ff", "if(isPrime(i))ans.add(i);", "if(isPrime(i))ans.add(i);", "isPrime(i)", "isPrime", "i", "ans.add(i)", "ans.add", "ans", "i", "return ans;", "ans", "int n", "n", "static int[] inpint(int n){int arr[]=new int[n+1];for(int i=1;i<=n;++i){arr[i]=f.ni();}return arr;}", "inpint", "{int arr[]=new int[n+1];for(int i=1;i<=n;++i){arr[i]=f.ni();}return arr;}", "int arr[]=new int[n+1];", "arr", "new int[n+1]", "n+1", "n", "1", "for(int i=1;i<=n;++i){arr[i]=f.ni();}", "int i=1;", "int i=1;", "i", "1", "i<=n", "i", "n", "++i", "++i", "i", "{arr[i]=f.ni();}", "{arr[i]=f.ni();}", "arr[i]=f.ni()", "arr[i]", "arr", "i", "f.ni()", "f.ni", "f", "return arr;", "arr", "int n", "n", "static long[] inplong(int n){long arr[] = new long[n+1];for(int i=1;i<=n;++i){arr[i]=f.nl();}return arr;}", "inplong", "{long arr[] = new long[n+1];for(int i=1;i<=n;++i){arr[i]=f.nl();}return arr;}", "long arr[] = new long[n+1];", "arr", "new long[n+1]", "n+1", "n", "1", "for(int i=1;i<=n;++i){arr[i]=f.nl();}", "int i=1;", "int i=1;", "i", "1", "i<=n", "i", "n", "++i", "++i", "i", "{arr[i]=f.nl();}", "{arr[i]=f.nl();}", "arr[i]=f.nl()", "arr[i]", "arr", "i", "f.nl()", "f.nl", "f", "return arr;", "arr", "int n", "n", "static boolean ise(int x){return ((x&1)==0);}", "ise", "{return ((x&1)==0);}", "return ((x&1)==0);", "((x&1)==0)", "(x&1)", "x", "1", "0", "int x", "x", "static boolean ise(long x){return ((x&1)==0);}", "ise", "{return ((x&1)==0);}", "return ((x&1)==0);", "((x&1)==0)", "(x&1)", "x", "1", "0", "long x", "x", "static int gnv(char c){return Character.getNumericValue(c);}", "gnv", "{return Character.getNumericValue(c);}", "return Character.getNumericValue(c);", "Character.getNumericValue(c)", "Character.getNumericValue", "Character", "c", "char c", "c", "static int log(long x){return x==1?0:(1+log(x/2));}", "log", "{return x==1?0:(1+log(x/2));}", "return x==1?0:(1+log(x/2));", "x==1?0:(1+log(x/2))", "x==1", "x", "1", "0", "(1+log(x/2))", "1", "log(x/2)", "log", "x/2", "x", "2", "long x", "x", "static int log(int x){return x==1?0:(1+log(x/2));}", "log", "{return x==1?0:(1+log(x/2));}", "return x==1?0:(1+log(x/2));", "x==1?0:(1+log(x/2))", "x==1", "x", "1", "0", "(1+log(x/2))", "1", "log(x/2)", "log", "x/2", "x", "2", "int x", "x", "static void sort(int[] a){ArrayList<Integer> l=new ArrayList<>();for(int i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}", "sort", "{ArrayList<Integer> l=new ArrayList<>();for(int i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}", "ArrayList<Integer> l=new ArrayList<>();", "l", "new ArrayList<>()", "for(int i:a)l.add(i);", "int i", "a", "l.add(i);", "l.add(i)", "l.add", "l", "i", "Collections.sort(l)", "Collections.sort", "Collections", "l", "for(int i=0;i<a.length;++i)a[i]=l.get(i);", "int i=0;", "int i=0;", "i", "0", "i<a.length", "i", "a.length", "a", "a.length", "++i", "++i", "i", "a[i]=l.get(i);", "a[i]=l.get(i)", "a[i]", "a", "i", "l.get(i)", "l.get", "l", "i", "int[] a", "a", "static void sort(long[] a){ArrayList<Long> l=new ArrayList<>();for(long i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}", "sort", "{ArrayList<Long> l=new ArrayList<>();for(long i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}", "ArrayList<Long> l=new ArrayList<>();", "l", "new ArrayList<>()", "for(long i:a)l.add(i);", "long i", "a", "l.add(i);", "l.add(i)", "l.add", "l", "i", "Collections.sort(l)", "Collections.sort", "Collections", "l", "for(int i=0;i<a.length;++i)a[i]=l.get(i);", "int i=0;", "int i=0;", "i", "0", "i<a.length", "i", "a.length", "a", "a.length", "++i", "++i", "i", "a[i]=l.get(i);", "a[i]=l.get(i)", "a[i]", "a", "i", "l.get(i)", "l.get", "l", "i", "long[] a", "a", "static void sort(ArrayList<Integer> a){Collections.sort(a);}", "sort", "{Collections.sort(a);}", "Collections.sort(a)", "Collections.sort", "Collections", "a", "ArrayList<Integer> a", "a", "public static class FastScanner {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastScanner.SpaceCharFilter filter;\n \n public FastScanner(InputStream stream) {\n this.stream = stream;\n }\n \n public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n \n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n \n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public int ni() {\n int c = read();\n \n while (isSpaceChar(c))\n c = read();\n \n int sgn = 1;\n \n if (c == '-') {\n sgn = -1;\n c = read();\n }\n \n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n \n return res * sgn;\n }\n \n public long nl() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n \n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }", "FastScanner", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private FastScanner.SpaceCharFilter filter;", "filter", "public FastScanner(InputStream stream) {\n this.stream = stream;\n }", "FastScanner", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n \n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n \n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1)\n throw new InputMismatchException();\n \n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n \n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }", "if (numChars == -1)\n throw new InputMismatchException();", "numChars == -1", "numChars", "-1", "1", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n \n if (numChars <= 0)\n return -1;\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n \n if (numChars <= 0)\n return -1;\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0)\n return -1;", "numChars <= 0", "numChars", "0", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public int ni() {\n int c = read();\n \n while (isSpaceChar(c))\n c = read();\n \n int sgn = 1;\n \n if (c == '-') {\n sgn = -1;\n c = read();\n }\n \n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n \n return res * sgn;\n }", "ni", "{\n int c = read();\n \n while (isSpaceChar(c))\n c = read();\n \n int sgn = 1;\n \n if (c == '-') {\n sgn = -1;\n c = read();\n }\n \n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n \n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c))\n c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "int res = 0;", "res", "0", "do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9') throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public long nl() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n \n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "nl", "{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n \n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c))\n c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "long res = 0;", "res", "0", "do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9') throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }", "next", "{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c))\n c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "StringBuilder res = new StringBuilder();", "res", "new StringBuilder()", "do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n res.appendCodePoint(c);\n c = read();\n }", "res.appendCodePoint(c)", "res.appendCodePoint", "res", "c", "c = read()", "c", "read()", "read", "return res.toString();", "res.toString()", "res.toString", "res", "public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isSpaceChar", "{\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "if (filter != null)\n return filter.isSpaceChar(c);", "filter != null", "filter", "null", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "public class Main {\n static int mod = 1000_000_007;\n static long lim = (long)1e9 + 6;\n static long mod1 = 998244353;\n static boolean fileIO = false;\n static FastScanner f;\n static int inf = 2000_000_000;\n static PrintWriter pw = new PrintWriter(System.out);\n static Scanner S = new Scanner(System.in);\n static long x0; static long y0;\n static long iinf = (long)(1e18);\n static double eps = (double)1e-4;\n public static void solve()throws IOException {\n int n = f.ni();\n boolean ok = false;\n int arr[][] = new int[n][2];\n for (int i = 0; i < n; ++i) {\n arr[i][0] = f.ni();\n arr[i][1] = f.ni();\n }\n\n for (int i = 0; i + 2 < n; ++i) {\n if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) ok = true; \n }\n\n pn(ok ? \"Yes\" : \"No\");\n } \n public static void main(String[] args)throws IOException {\n init();\n //pre();\n int t = 1;\n int tt = 1;\n //fw = new FileWriter(\"!out.txt\");\n while(t --> 0) {\n //fw.write(\"Case #\" + (tt++) + \": \");\n //fw.write(\"\\n\");\n solve();\n }\n pw.flush(); \n pw.close();\n //fw.close(); \n }\n \n/******************************END OF MAIN PROGRAM*******************************************/\n public static void init()throws IOException{f=new FastScanner(System.in);}\n public static class FastScanner {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastScanner.SpaceCharFilter filter;\n \n public FastScanner(InputStream stream) {\n this.stream = stream;\n }\n \n public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n \n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n \n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public int ni() {\n int c = read();\n \n while (isSpaceChar(c))\n c = read();\n \n int sgn = 1;\n \n if (c == '-') {\n sgn = -1;\n c = read();\n }\n \n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n \n return res * sgn;\n }\n \n public long nl() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n \n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n public static void pn(Object o){pw.println(o);}\n public static void pi(Object o){pw.print(o);pw.flush();}\n public static void p(Object o){pw.print(o);}\n public static void pni(Object o){pw.println(o);pw.flush();}\n static int gcd(int a,int b){if(b==0)return a;else{return gcd(b,a%b);}}\n static long gcd(long a,long b){if(b==0l)return a;else{return gcd(b,a%b);}}\n static long lcm(long a,long b){return (a*b/gcd(a,b));}\n static long exgcd(long a,long b){if(b==0){x0=1;y0=0;return a;}long temp=exgcd(b,a%b);long t=x0;x0=y0;y0=t-a/b*y0;return temp;}\n static long pow(long a,long b){long res=1;while(b>0){if((b&1)==1)res=res*a;b>>=1;a=a*a;}return res;}\n static long mpow(long a,long b, long m){long res=1;while(b>0){if((b&1)==1)res=((res%m)*(a%m))%m;b>>=1;a=((a%m)*(a%m))%m;}return res;}\n static long mul(long a , long b){return ((a%mod)*(b%mod)%mod);}\n static long adp(long a , long b){return ((a%mod)+(b%mod)%mod);}\n static boolean isPrime(long n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(long i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}\n static boolean isPrime(int n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(int i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}\n static HashSet<Long> factors(long n){HashSet<Long> hs=new HashSet<Long>();for(long i=1;i<=(long)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}\n static HashSet<Integer> factors(int n){HashSet<Integer> hs=new HashSet<Integer>();for(int i=1;i<=(int)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}\n static HashSet<Long> pf(long n){HashSet<Long> ff=factors(n);HashSet<Long> ans=new HashSet<Long>();for(Long i:ff)if(isPrime(i))ans.add(i);return ans;}\n static HashSet<Integer> pf(int n){HashSet<Integer> ff=factors(n);HashSet<Integer> ans=new HashSet<Integer>();for(Integer i:ff)if(isPrime(i))ans.add(i);return ans;}\n static int[] inpint(int n){int arr[]=new int[n+1];for(int i=1;i<=n;++i){arr[i]=f.ni();}return arr;}\n static long[] inplong(int n){long arr[] = new long[n+1];for(int i=1;i<=n;++i){arr[i]=f.nl();}return arr;}\n static boolean ise(int x){return ((x&1)==0);}static boolean ise(long x){return ((x&1)==0);}\n static int gnv(char c){return Character.getNumericValue(c);}\n static int log(long x){return x==1?0:(1+log(x/2));} static int log(int x){return x==1?0:(1+log(x/2));}\n static void sort(int[] a){ArrayList<Integer> l=new ArrayList<>();for(int i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}\n static void sort(long[] a){ArrayList<Long> l=new ArrayList<>();for(long i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}\n static void sort(ArrayList<Integer> a){Collections.sort(a);}\n}", "public class Main {\n static int mod = 1000_000_007;\n static long lim = (long)1e9 + 6;\n static long mod1 = 998244353;\n static boolean fileIO = false;\n static FastScanner f;\n static int inf = 2000_000_000;\n static PrintWriter pw = new PrintWriter(System.out);\n static Scanner S = new Scanner(System.in);\n static long x0; static long y0;\n static long iinf = (long)(1e18);\n static double eps = (double)1e-4;\n public static void solve()throws IOException {\n int n = f.ni();\n boolean ok = false;\n int arr[][] = new int[n][2];\n for (int i = 0; i < n; ++i) {\n arr[i][0] = f.ni();\n arr[i][1] = f.ni();\n }\n\n for (int i = 0; i + 2 < n; ++i) {\n if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) ok = true; \n }\n\n pn(ok ? \"Yes\" : \"No\");\n } \n public static void main(String[] args)throws IOException {\n init();\n //pre();\n int t = 1;\n int tt = 1;\n //fw = new FileWriter(\"!out.txt\");\n while(t --> 0) {\n //fw.write(\"Case #\" + (tt++) + \": \");\n //fw.write(\"\\n\");\n solve();\n }\n pw.flush(); \n pw.close();\n //fw.close(); \n }\n \n/******************************END OF MAIN PROGRAM*******************************************/\n public static void init()throws IOException{f=new FastScanner(System.in);}\n public static class FastScanner {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastScanner.SpaceCharFilter filter;\n \n public FastScanner(InputStream stream) {\n this.stream = stream;\n }\n \n public int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n \n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n \n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public int ni() {\n int c = read();\n \n while (isSpaceChar(c))\n c = read();\n \n int sgn = 1;\n \n if (c == '-') {\n sgn = -1;\n c = read();\n }\n \n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n \n return res * sgn;\n }\n \n public long nl() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n \n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n public static void pn(Object o){pw.println(o);}\n public static void pi(Object o){pw.print(o);pw.flush();}\n public static void p(Object o){pw.print(o);}\n public static void pni(Object o){pw.println(o);pw.flush();}\n static int gcd(int a,int b){if(b==0)return a;else{return gcd(b,a%b);}}\n static long gcd(long a,long b){if(b==0l)return a;else{return gcd(b,a%b);}}\n static long lcm(long a,long b){return (a*b/gcd(a,b));}\n static long exgcd(long a,long b){if(b==0){x0=1;y0=0;return a;}long temp=exgcd(b,a%b);long t=x0;x0=y0;y0=t-a/b*y0;return temp;}\n static long pow(long a,long b){long res=1;while(b>0){if((b&1)==1)res=res*a;b>>=1;a=a*a;}return res;}\n static long mpow(long a,long b, long m){long res=1;while(b>0){if((b&1)==1)res=((res%m)*(a%m))%m;b>>=1;a=((a%m)*(a%m))%m;}return res;}\n static long mul(long a , long b){return ((a%mod)*(b%mod)%mod);}\n static long adp(long a , long b){return ((a%mod)+(b%mod)%mod);}\n static boolean isPrime(long n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(long i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}\n static boolean isPrime(int n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(int i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;}\n static HashSet<Long> factors(long n){HashSet<Long> hs=new HashSet<Long>();for(long i=1;i<=(long)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}\n static HashSet<Integer> factors(int n){HashSet<Integer> hs=new HashSet<Integer>();for(int i=1;i<=(int)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;}\n static HashSet<Long> pf(long n){HashSet<Long> ff=factors(n);HashSet<Long> ans=new HashSet<Long>();for(Long i:ff)if(isPrime(i))ans.add(i);return ans;}\n static HashSet<Integer> pf(int n){HashSet<Integer> ff=factors(n);HashSet<Integer> ans=new HashSet<Integer>();for(Integer i:ff)if(isPrime(i))ans.add(i);return ans;}\n static int[] inpint(int n){int arr[]=new int[n+1];for(int i=1;i<=n;++i){arr[i]=f.ni();}return arr;}\n static long[] inplong(int n){long arr[] = new long[n+1];for(int i=1;i<=n;++i){arr[i]=f.nl();}return arr;}\n static boolean ise(int x){return ((x&1)==0);}static boolean ise(long x){return ((x&1)==0);}\n static int gnv(char c){return Character.getNumericValue(c);}\n static int log(long x){return x==1?0:(1+log(x/2));} static int log(int x){return x==1?0:(1+log(x/2));}\n static void sort(int[] a){ArrayList<Integer> l=new ArrayList<>();for(int i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}\n static void sort(long[] a){ArrayList<Long> l=new ArrayList<>();for(long i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);}\n static void sort(ArrayList<Integer> a){Collections.sort(a);}\n}", "Main" ]
import java.util.*; import java.io.*; import java.math.BigInteger; import java.text.*; public class Main { static int mod = 1000_000_007; static long lim = (long)1e9 + 6; static long mod1 = 998244353; static boolean fileIO = false; static FastScanner f; static int inf = 2000_000_000; static PrintWriter pw = new PrintWriter(System.out); static Scanner S = new Scanner(System.in); static long x0; static long y0; static long iinf = (long)(1e18); static double eps = (double)1e-4; public static void solve()throws IOException { int n = f.ni(); boolean ok = false; int arr[][] = new int[n][2]; for (int i = 0; i < n; ++i) { arr[i][0] = f.ni(); arr[i][1] = f.ni(); } for (int i = 0; i + 2 < n; ++i) { if (arr[i][0] == arr[i][1] && arr[i + 1][0] == arr[i + 1][1] && arr[i + 2][0] == arr[i + 2][1]) ok = true; } pn(ok ? "Yes" : "No"); } public static void main(String[] args)throws IOException { init(); //pre(); int t = 1; int tt = 1; //fw = new FileWriter("!out.txt"); while(t --> 0) { //fw.write("Case #" + (tt++) + ": "); //fw.write("\n"); solve(); } pw.flush(); pw.close(); //fw.close(); } /******************************END OF MAIN PROGRAM*******************************************/ public static void init()throws IOException{f=new FastScanner(System.in);} public static class FastScanner { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private FastScanner.SpaceCharFilter filter; public FastScanner(InputStream stream) { this.stream = stream; } public int read() { if (numChars == -1) throw new InputMismatchException(); if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) return -1; } return buf[curChar++]; } public int ni() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } int res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public long nl() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } long res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public String next() { int c = read(); while (isSpaceChar(c)) c = read(); StringBuilder res = new StringBuilder(); do { res.appendCodePoint(c); c = read(); } while (!isSpaceChar(c)); return res.toString(); } public boolean isSpaceChar(int c) { if (filter != null) return filter.isSpaceChar(c); return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } public static void pn(Object o){pw.println(o);} public static void pi(Object o){pw.print(o);pw.flush();} public static void p(Object o){pw.print(o);} public static void pni(Object o){pw.println(o);pw.flush();} static int gcd(int a,int b){if(b==0)return a;else{return gcd(b,a%b);}} static long gcd(long a,long b){if(b==0l)return a;else{return gcd(b,a%b);}} static long lcm(long a,long b){return (a*b/gcd(a,b));} static long exgcd(long a,long b){if(b==0){x0=1;y0=0;return a;}long temp=exgcd(b,a%b);long t=x0;x0=y0;y0=t-a/b*y0;return temp;} static long pow(long a,long b){long res=1;while(b>0){if((b&1)==1)res=res*a;b>>=1;a=a*a;}return res;} static long mpow(long a,long b, long m){long res=1;while(b>0){if((b&1)==1)res=((res%m)*(a%m))%m;b>>=1;a=((a%m)*(a%m))%m;}return res;} static long mul(long a , long b){return ((a%mod)*(b%mod)%mod);} static long adp(long a , long b){return ((a%mod)+(b%mod)%mod);} static boolean isPrime(long n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(long i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;} static boolean isPrime(int n){if(n<=1)return false;if(n<=3)return true;if(n%2==0||n%3==0)return false;for(int i=5;i*i<=n;i=i+6)if(n%i==0||n%(i+2)==0)return false;return true;} static HashSet<Long> factors(long n){HashSet<Long> hs=new HashSet<Long>();for(long i=1;i<=(long)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;} static HashSet<Integer> factors(int n){HashSet<Integer> hs=new HashSet<Integer>();for(int i=1;i<=(int)Math.sqrt(n);i++){if(n%i==0){hs.add(i);hs.add(n/i);}}return hs;} static HashSet<Long> pf(long n){HashSet<Long> ff=factors(n);HashSet<Long> ans=new HashSet<Long>();for(Long i:ff)if(isPrime(i))ans.add(i);return ans;} static HashSet<Integer> pf(int n){HashSet<Integer> ff=factors(n);HashSet<Integer> ans=new HashSet<Integer>();for(Integer i:ff)if(isPrime(i))ans.add(i);return ans;} static int[] inpint(int n){int arr[]=new int[n+1];for(int i=1;i<=n;++i){arr[i]=f.ni();}return arr;} static long[] inplong(int n){long arr[] = new long[n+1];for(int i=1;i<=n;++i){arr[i]=f.nl();}return arr;} static boolean ise(int x){return ((x&1)==0);}static boolean ise(long x){return ((x&1)==0);} static int gnv(char c){return Character.getNumericValue(c);} static int log(long x){return x==1?0:(1+log(x/2));} static int log(int x){return x==1?0:(1+log(x/2));} static void sort(int[] a){ArrayList<Integer> l=new ArrayList<>();for(int i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);} static void sort(long[] a){ArrayList<Long> l=new ArrayList<>();for(long i:a)l.add(i);Collections.sort(l);for(int i=0;i<a.length;++i)a[i]=l.get(i);} static void sort(ArrayList<Integer> a){Collections.sort(a);} }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 3, 4, 18, 18, 13, 13, 8, 2, 13, 17, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 74, 5 ], [ 74, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 43, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 32, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 65, 70 ], [ 6, 71 ], [ 71, 72 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint N = ob.nextInt();\n\t\tint is = 0;\n\n\t\tfor(int roll = 1; roll <= N; roll++){\n\t\t\t\n\t\t\tint a = ob.nextInt();\n\t\t\tint b = ob.nextInt();\n\n\t\t\tif(a == b){\n\t\t\t\t++is;\n\t\t\t}else{\n\t\t\t\tis = 0;\n\t\t\t}\n\n\t\t\tif(is == 3){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((is == 3) ? \"Yes\" : \"No\");\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String args[]){\n\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint N = ob.nextInt();\n\t\tint is = 0;\n\n\t\tfor(int roll = 1; roll <= N; roll++){\n\t\t\t\n\t\t\tint a = ob.nextInt();\n\t\t\tint b = ob.nextInt();\n\n\t\t\tif(a == b){\n\t\t\t\t++is;\n\t\t\t}else{\n\t\t\t\tis = 0;\n\t\t\t}\n\n\t\t\tif(is == 3){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((is == 3) ? \"Yes\" : \"No\");\n\t}\n}", "Main", "public static void main(String args[]){\n\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint N = ob.nextInt();\n\t\tint is = 0;\n\n\t\tfor(int roll = 1; roll <= N; roll++){\n\t\t\t\n\t\t\tint a = ob.nextInt();\n\t\t\tint b = ob.nextInt();\n\n\t\t\tif(a == b){\n\t\t\t\t++is;\n\t\t\t}else{\n\t\t\t\tis = 0;\n\t\t\t}\n\n\t\t\tif(is == 3){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((is == 3) ? \"Yes\" : \"No\");\n\t}", "main", "{\n\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint N = ob.nextInt();\n\t\tint is = 0;\n\n\t\tfor(int roll = 1; roll <= N; roll++){\n\t\t\t\n\t\t\tint a = ob.nextInt();\n\t\t\tint b = ob.nextInt();\n\n\t\t\tif(a == b){\n\t\t\t\t++is;\n\t\t\t}else{\n\t\t\t\tis = 0;\n\t\t\t}\n\n\t\t\tif(is == 3){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((is == 3) ? \"Yes\" : \"No\");\n\t}", "Scanner ob = new Scanner(System.in);", "ob", "new Scanner(System.in)", "int N = ob.nextInt();", "N", "ob.nextInt()", "ob.nextInt", "ob", "int is = 0;", "is", "0", "for(int roll = 1; roll <= N; roll++){\n\t\t\t\n\t\t\tint a = ob.nextInt();\n\t\t\tint b = ob.nextInt();\n\n\t\t\tif(a == b){\n\t\t\t\t++is;\n\t\t\t}else{\n\t\t\t\tis = 0;\n\t\t\t}\n\n\t\t\tif(is == 3){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int roll = 1;", "int roll = 1;", "roll", "1", "roll <= N", "roll", "N", "roll++", "roll++", "roll", "{\n\t\t\t\n\t\t\tint a = ob.nextInt();\n\t\t\tint b = ob.nextInt();\n\n\t\t\tif(a == b){\n\t\t\t\t++is;\n\t\t\t}else{\n\t\t\t\tis = 0;\n\t\t\t}\n\n\t\t\tif(is == 3){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\t\n\t\t\tint a = ob.nextInt();\n\t\t\tint b = ob.nextInt();\n\n\t\t\tif(a == b){\n\t\t\t\t++is;\n\t\t\t}else{\n\t\t\t\tis = 0;\n\t\t\t}\n\n\t\t\tif(is == 3){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int a = ob.nextInt();", "a", "ob.nextInt()", "ob.nextInt", "ob", "int b = ob.nextInt();", "b", "ob.nextInt()", "ob.nextInt", "ob", "if(a == b){\n\t\t\t\t++is;\n\t\t\t}else{\n\t\t\t\tis = 0;\n\t\t\t}", "a == b", "a", "b", "{\n\t\t\t\t++is;\n\t\t\t}", "++is", "is", "{\n\t\t\t\tis = 0;\n\t\t\t}", "is = 0", "is", "0", "if(is == 3){\n\t\t\t\tbreak;\n\t\t\t}", "is == 3", "is", "3", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "System.out.println((is == 3) ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "(is == 3) ? \"Yes\" : \"No\"", "(is == 3)", "is", "3", "\"Yes\"", "\"No\"", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]){\n\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint N = ob.nextInt();\n\t\tint is = 0;\n\n\t\tfor(int roll = 1; roll <= N; roll++){\n\t\t\t\n\t\t\tint a = ob.nextInt();\n\t\t\tint b = ob.nextInt();\n\n\t\t\tif(a == b){\n\t\t\t\t++is;\n\t\t\t}else{\n\t\t\t\tis = 0;\n\t\t\t}\n\n\t\t\tif(is == 3){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((is == 3) ? \"Yes\" : \"No\");\n\t}\n}", "public class Main{\n\tpublic static void main(String args[]){\n\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint N = ob.nextInt();\n\t\tint is = 0;\n\n\t\tfor(int roll = 1; roll <= N; roll++){\n\t\t\t\n\t\t\tint a = ob.nextInt();\n\t\t\tint b = ob.nextInt();\n\n\t\t\tif(a == b){\n\t\t\t\t++is;\n\t\t\t}else{\n\t\t\t\tis = 0;\n\t\t\t}\n\n\t\t\tif(is == 3){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((is == 3) ? \"Yes\" : \"No\");\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String args[]){ Scanner ob = new Scanner(System.in); int N = ob.nextInt(); int is = 0; for(int roll = 1; roll <= N; roll++){ int a = ob.nextInt(); int b = ob.nextInt(); if(a == b){ ++is; }else{ is = 0; } if(is == 3){ break; } } System.out.println((is == 3) ? "Yes" : "No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 4, 18, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 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 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 35, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 6, 66 ], [ 66, 67 ] ]
[ "import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String ans = \"No\";\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) {\n cnt++;\n } else {\n cnt = 0;\n }\n if (cnt >= 3) {\n ans = \"Yes\";\n break;\n }\n }\n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String ans = \"No\";\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) {\n cnt++;\n } else {\n cnt = 0;\n }\n if (cnt >= 3) {\n ans = \"Yes\";\n break;\n }\n }\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String ans = \"No\";\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) {\n cnt++;\n } else {\n cnt = 0;\n }\n if (cnt >= 3) {\n ans = \"Yes\";\n break;\n }\n }\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String ans = \"No\";\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) {\n cnt++;\n } else {\n cnt = 0;\n }\n if (cnt >= 3) {\n ans = \"Yes\";\n break;\n }\n }\n System.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "String ans = \"No\";", "ans", "\"No\"", "int cnt = 0;", "cnt", "0", "for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) {\n cnt++;\n } else {\n cnt = 0;\n }\n if (cnt >= 3) {\n ans = \"Yes\";\n break;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if (sc.nextInt() == sc.nextInt()) {\n cnt++;\n } else {\n cnt = 0;\n }\n if (cnt >= 3) {\n ans = \"Yes\";\n break;\n }\n }", "{\n if (sc.nextInt() == sc.nextInt()) {\n cnt++;\n } else {\n cnt = 0;\n }\n if (cnt >= 3) {\n ans = \"Yes\";\n break;\n }\n }", "if (sc.nextInt() == sc.nextInt()) {\n cnt++;\n } else {\n cnt = 0;\n }", "sc.nextInt() == sc.nextInt()", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextInt()", "sc.nextInt", "sc", "{\n cnt++;\n }", "cnt++", "cnt", "{\n cnt = 0;\n }", "cnt = 0", "cnt", "0", "if (cnt >= 3) {\n ans = \"Yes\";\n break;\n }", "cnt >= 3", "cnt", "3", "{\n ans = \"Yes\";\n break;\n }", "ans = \"Yes\"", "ans", "\"Yes\"", "break;", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String ans = "No"; int cnt = 0; for (int i = 0; i < n; i++) { if (sc.nextInt() == sc.nextInt()) { cnt++; } else { cnt = 0; } if (cnt >= 3) { ans = "Yes"; break; } } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 14, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 14, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 0, 13, 17, 3, 14, 13, 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 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 80, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 79, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 92, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 8, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 109, 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 sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] array1 = new int[n];\n\t\tint[] array2 = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray1[i] = sc.nextInt();\n\t\t\tarray2[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tboolean ans = false;\n\t\tfor(int i = 0; i < n - 2; i++) {\n\t\t\tif(array1[i] == array2[i]) {\n\t\t\t\tif(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\tsc.close();\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 n = sc.nextInt();\n\t\tint[] array1 = new int[n];\n\t\tint[] array2 = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray1[i] = sc.nextInt();\n\t\t\tarray2[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tboolean ans = false;\n\t\tfor(int i = 0; i < n - 2; i++) {\n\t\t\tif(array1[i] == array2[i]) {\n\t\t\t\tif(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] array1 = new int[n];\n\t\tint[] array2 = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray1[i] = sc.nextInt();\n\t\t\tarray2[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tboolean ans = false;\n\t\tfor(int i = 0; i < n - 2; i++) {\n\t\t\tif(array1[i] == array2[i]) {\n\t\t\t\tif(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] array1 = new int[n];\n\t\tint[] array2 = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray1[i] = sc.nextInt();\n\t\t\tarray2[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tboolean ans = false;\n\t\tfor(int i = 0; i < n - 2; i++) {\n\t\t\tif(array1[i] == array2[i]) {\n\t\t\t\tif(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] array1 = new int[n];", "array1", "new int[n]", "n", "int[] array2 = new int[n];", "array2", "new int[n]", "n", "for(int i = 0; i < n; i++) {\n\t\t\tarray1[i] = sc.nextInt();\n\t\t\tarray2[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tarray1[i] = sc.nextInt();\n\t\t\tarray2[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tarray1[i] = sc.nextInt();\n\t\t\tarray2[i] = sc.nextInt();\n\t\t}", "array1[i] = sc.nextInt()", "array1[i]", "array1", "i", "sc.nextInt()", "sc.nextInt", "sc", "array2[i] = sc.nextInt()", "array2[i]", "array2", "i", "sc.nextInt()", "sc.nextInt", "sc", "boolean ans = false;", "ans", "false", "for(int i = 0; i < n - 2; i++) {\n\t\t\tif(array1[i] == array2[i]) {\n\t\t\t\tif(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n - 2", "i", "n - 2", "n", "2", "i++", "i++", "i", "{\n\t\t\tif(array1[i] == array2[i]) {\n\t\t\t\tif(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif(array1[i] == array2[i]) {\n\t\t\t\tif(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(array1[i] == array2[i]) {\n\t\t\t\tif(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "array1[i] == array2[i]", "array1[i]", "array1", "i", "array2[i]", "array2", "i", "{\n\t\t\t\tif(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "if(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "array1[i+1] == array2[i + 1]", "array1[i+1]", "array1", "i+1", "i", "1", "array2[i + 1]", "array2", "i + 1", "i", "1", "{\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "if(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "array1[i + 2] == array2[i + 2]", "array1[i + 2]", "array1", "i + 2", "i", "2", "array2[i + 2]", "array2", "i + 2", "i", "2", "{\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "ans = true", "ans", "true", "break;", "if(ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "ans", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] array1 = new int[n];\n\t\tint[] array2 = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray1[i] = sc.nextInt();\n\t\t\tarray2[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tboolean ans = false;\n\t\tfor(int i = 0; i < n - 2; i++) {\n\t\t\tif(array1[i] == array2[i]) {\n\t\t\t\tif(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] array1 = new int[n];\n\t\tint[] array2 = new int[n];\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tarray1[i] = sc.nextInt();\n\t\t\tarray2[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tboolean ans = false;\n\t\tfor(int i = 0; i < n - 2; i++) {\n\t\t\tif(array1[i] == array2[i]) {\n\t\t\t\tif(array1[i+1] == array2[i + 1]) {\n\t\t\t\t\tif(array1[i + 2] == array2[i + 2]) {\n\t\t\t\t\t\tans = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\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); int n = sc.nextInt(); int[] array1 = new int[n]; int[] array2 = new int[n]; for(int i = 0; i < n; i++) { array1[i] = sc.nextInt(); array2[i] = sc.nextInt(); } boolean ans = false; for(int i = 0; i < n - 2; i++) { if(array1[i] == array2[i]) { if(array1[i+1] == array2[i + 1]) { if(array1[i + 2] == array2[i + 2]) { ans = true; break; } } } } if(ans) { System.out.println("Yes"); }else { System.out.println("No"); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 14, 2, 13, 17, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 48, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 71, 74 ], [ 6, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint old ;\n\t\tboolean ans = false;\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n;++i){\n\t\t\tint d_1 = scan.nextInt();\n\t\t\tint d_2 = scan.nextInt();\n\n\t\t\tif (d_1 == d_2){\n\t\t\t\tcount++;\n\t\t\t\tif(count == 3) ans = true;\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans?\"Yes\":\"No\");\n\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint old ;\n\t\tboolean ans = false;\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n;++i){\n\t\t\tint d_1 = scan.nextInt();\n\t\t\tint d_2 = scan.nextInt();\n\n\t\t\tif (d_1 == d_2){\n\t\t\t\tcount++;\n\t\t\t\tif(count == 3) ans = true;\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans?\"Yes\":\"No\");\n\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint old ;\n\t\tboolean ans = false;\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n;++i){\n\t\t\tint d_1 = scan.nextInt();\n\t\t\tint d_2 = scan.nextInt();\n\n\t\t\tif (d_1 == d_2){\n\t\t\t\tcount++;\n\t\t\t\tif(count == 3) ans = true;\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans?\"Yes\":\"No\");\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint old ;\n\t\tboolean ans = false;\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n;++i){\n\t\t\tint d_1 = scan.nextInt();\n\t\t\tint d_2 = scan.nextInt();\n\n\t\t\tif (d_1 == d_2){\n\t\t\t\tcount++;\n\t\t\t\tif(count == 3) ans = true;\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans?\"Yes\":\"No\");\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int old ;", "old", "boolean ans = false;", "ans", "false", "int count = 0;", "count", "0", "for(int i = 0;i < n;++i){\n\t\t\tint d_1 = scan.nextInt();\n\t\t\tint d_2 = scan.nextInt();\n\n\t\t\tif (d_1 == d_2){\n\t\t\t\tcount++;\n\t\t\t\tif(count == 3) ans = true;\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n\t\t\tint d_1 = scan.nextInt();\n\t\t\tint d_2 = scan.nextInt();\n\n\t\t\tif (d_1 == d_2){\n\t\t\t\tcount++;\n\t\t\t\tif(count == 3) ans = true;\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}", "{\n\t\t\tint d_1 = scan.nextInt();\n\t\t\tint d_2 = scan.nextInt();\n\n\t\t\tif (d_1 == d_2){\n\t\t\t\tcount++;\n\t\t\t\tif(count == 3) ans = true;\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}", "int d_1 = scan.nextInt();", "d_1", "scan.nextInt()", "scan.nextInt", "scan", "int d_2 = scan.nextInt();", "d_2", "scan.nextInt()", "scan.nextInt", "scan", "if (d_1 == d_2){\n\t\t\t\tcount++;\n\t\t\t\tif(count == 3) ans = true;\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}", "d_1 == d_2", "d_1", "d_2", "{\n\t\t\t\tcount++;\n\t\t\t\tif(count == 3) ans = true;\n\t\t\t}", "count++", "count", "if(count == 3) ans = true;", "count == 3", "count", "3", "ans = true", "ans", "true", "{\n\t\t\t\tcount = 0;\n\t\t\t}", "count = 0", "count", "0", "System.out.print(ans?\"Yes\":\"No\")", "System.out.print", "System.out", "System", "System.out", "ans?\"Yes\":\"No\"", "ans", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint old ;\n\t\tboolean ans = false;\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n;++i){\n\t\t\tint d_1 = scan.nextInt();\n\t\t\tint d_2 = scan.nextInt();\n\n\t\t\tif (d_1 == d_2){\n\t\t\t\tcount++;\n\t\t\t\tif(count == 3) ans = true;\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans?\"Yes\":\"No\");\n\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint old ;\n\t\tboolean ans = false;\n\t\tint count = 0;\n\t\tfor(int i = 0;i < n;++i){\n\t\t\tint d_1 = scan.nextInt();\n\t\t\tint d_2 = scan.nextInt();\n\n\t\t\tif (d_1 == d_2){\n\t\t\t\tcount++;\n\t\t\t\tif(count == 3) ans = true;\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(ans?\"Yes\":\"No\");\n\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int old ; boolean ans = false; int count = 0; for(int i = 0;i < n;++i){ int d_1 = scan.nextInt(); int d_2 = scan.nextInt(); if (d_1 == d_2){ count++; if(count == 3) ans = true; }else{ count = 0; } } System.out.print(ans?"Yes":"No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 129, 5 ], [ 129, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 8, 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 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 71, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 70, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 82, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 70, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 98, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 68, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 112, 119 ], [ 8, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 6, 126 ], [ 126, 127 ], [ 0, 128 ], [ 128, 129 ], [ 128, 130 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int[][] d = new int[N][2];\n for(int n=0; n<N; n++){\n d[n][0] = sc.nextInt();\n d[n][1] = sc.nextInt();\n }\n\n for(int n=0; n<N-2; n++){\n if(d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\"); \n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int[][] d = new int[N][2];\n for(int n=0; n<N; n++){\n d[n][0] = sc.nextInt();\n d[n][1] = sc.nextInt();\n }\n\n for(int n=0; n<N-2; n++){\n if(d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\"); \n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int[][] d = new int[N][2];\n for(int n=0; n<N; n++){\n d[n][0] = sc.nextInt();\n d[n][1] = sc.nextInt();\n }\n\n for(int n=0; n<N-2; n++){\n if(d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\"); \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int[][] d = new int[N][2];\n for(int n=0; n<N; n++){\n d[n][0] = sc.nextInt();\n d[n][1] = sc.nextInt();\n }\n\n for(int n=0; n<N-2; n++){\n if(d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\"); \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[][] d = new int[N][2];", "d", "new int[N][2]", "N", "2", "for(int n=0; n<N; n++){\n d[n][0] = sc.nextInt();\n d[n][1] = sc.nextInt();\n }", "int n=0;", "int n=0;", "n", "0", "n<N", "n", "N", "n++", "n++", "n", "{\n d[n][0] = sc.nextInt();\n d[n][1] = sc.nextInt();\n }", "{\n d[n][0] = sc.nextInt();\n d[n][1] = sc.nextInt();\n }", "d[n][0] = sc.nextInt()", "d[n][0]", "d[n]", "d", "n", "0", "sc.nextInt()", "sc.nextInt", "sc", "d[n][1] = sc.nextInt()", "d[n][1]", "d[n]", "d", "n", "1", "sc.nextInt()", "sc.nextInt", "sc", "for(int n=0; n<N-2; n++){\n if(d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }", "int n=0;", "int n=0;", "n", "0", "n<N-2", "n", "N-2", "N", "2", "n++", "n++", "n", "{\n if(d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n if(d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }", "if(d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]){\n System.out.println(\"Yes\");\n return;\n }", "d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]", "d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]", "d[n][0]==d[n][1]", "d[n][0]", "d[n]", "d", "n", "0", "d[n][1]", "d[n]", "d", "n", "1", "d[n+1][0]==d[n+1][1]", "d[n+1][0]", "d[n+1]", "d", "n+1", "n", "1", "0", "d[n+1][1]", "d[n+1]", "d", "n+1", "n", "1", "1", "d[n+2][0]==d[n+2][1]", "d[n+2][0]", "d[n+2]", "d", "n+2", "n", "2", "0", "d[n+2][1]", "d[n+2]", "d", "n+2", "n", "2", "1", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int[][] d = new int[N][2];\n for(int n=0; n<N; n++){\n d[n][0] = sc.nextInt();\n d[n][1] = sc.nextInt();\n }\n\n for(int n=0; n<N-2; n++){\n if(d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\"); \n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int[][] d = new int[N][2];\n for(int n=0; n<N; n++){\n d[n][0] = sc.nextInt();\n d[n][1] = sc.nextInt();\n }\n\n for(int n=0; n<N-2; n++){\n if(d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\"); \n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[][] d = new int[N][2]; for(int n=0; n<N; n++){ d[n][0] = sc.nextInt(); d[n][1] = sc.nextInt(); } for(int n=0; n<N-2; n++){ if(d[n][0]==d[n][1] && d[n+1][0]==d[n+1][1] && d[n+2][0]==d[n+2][1]){ System.out.println("Yes"); return; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 90, 5 ], [ 90, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 53, 61 ], [ 61, 62 ], [ 61, 63 ], [ 8, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 8, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 71, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 6, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt(),d=0,cur=0;\n for(int i=0;i<n;i++){\n int d1=in.nextInt(),d2=in.nextInt();\n if(d1==d2){\n cur++;\n }\n else{\n d=Math.max(d,cur);\n cur=0;\n }\n }\n d=Math.max(cur,d);\n if(d>=3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt(),d=0,cur=0;\n for(int i=0;i<n;i++){\n int d1=in.nextInt(),d2=in.nextInt();\n if(d1==d2){\n cur++;\n }\n else{\n d=Math.max(d,cur);\n cur=0;\n }\n }\n d=Math.max(cur,d);\n if(d>=3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt(),d=0,cur=0;\n for(int i=0;i<n;i++){\n int d1=in.nextInt(),d2=in.nextInt();\n if(d1==d2){\n cur++;\n }\n else{\n d=Math.max(d,cur);\n cur=0;\n }\n }\n d=Math.max(cur,d);\n if(d>=3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "main", "{\n Scanner in=new Scanner(System.in);\n int n=in.nextInt(),d=0,cur=0;\n for(int i=0;i<n;i++){\n int d1=in.nextInt(),d2=in.nextInt();\n if(d1==d2){\n cur++;\n }\n else{\n d=Math.max(d,cur);\n cur=0;\n }\n }\n d=Math.max(cur,d);\n if(d>=3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "int n=in.nextInt()", "n", "in.nextInt()", "in.nextInt", "in", "d=0", "d", "0", "cur=0;", "cur", "0", "for(int i=0;i<n;i++){\n int d1=in.nextInt(),d2=in.nextInt();\n if(d1==d2){\n cur++;\n }\n else{\n d=Math.max(d,cur);\n cur=0;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n int d1=in.nextInt(),d2=in.nextInt();\n if(d1==d2){\n cur++;\n }\n else{\n d=Math.max(d,cur);\n cur=0;\n }\n }", "{\n int d1=in.nextInt(),d2=in.nextInt();\n if(d1==d2){\n cur++;\n }\n else{\n d=Math.max(d,cur);\n cur=0;\n }\n }", "int d1=in.nextInt()", "d1", "in.nextInt()", "in.nextInt", "in", "d2=in.nextInt();", "d2", "in.nextInt()", "in.nextInt", "in", "if(d1==d2){\n cur++;\n }\n else{\n d=Math.max(d,cur);\n cur=0;\n }", "d1==d2", "d1", "d2", "{\n cur++;\n }", "cur++", "cur", "{\n d=Math.max(d,cur);\n cur=0;\n }", "d=Math.max(d,cur)", "d", "Math.max(d,cur)", "Math.max", "Math", "d", "cur", "cur=0", "cur", "0", "d=Math.max(cur,d)", "d", "Math.max(cur,d)", "Math.max", "Math", "cur", "d", "if(d>=3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "d>=3", "d", "3", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String args[]", "args", "public class Main {\n public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt(),d=0,cur=0;\n for(int i=0;i<n;i++){\n int d1=in.nextInt(),d2=in.nextInt();\n if(d1==d2){\n cur++;\n }\n else{\n d=Math.max(d,cur);\n cur=0;\n }\n }\n d=Math.max(cur,d);\n if(d>=3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt(),d=0,cur=0;\n for(int i=0;i<n;i++){\n int d1=in.nextInt(),d2=in.nextInt();\n if(d1==d2){\n cur++;\n }\n else{\n d=Math.max(d,cur);\n cur=0;\n }\n }\n d=Math.max(cur,d);\n if(d>=3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); int n=in.nextInt(),d=0,cur=0; for(int i=0;i<n;i++){ int d1=in.nextInt(),d2=in.nextInt(); if(d1==d2){ cur++; } else{ d=Math.max(d,cur); cur=0; } } d=Math.max(cur,d); if(d>=3) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 4, 18, 13, 30, 40, 13, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 74, 5 ], [ 74, 6 ], [ 6, 7 ], [ 6, 8 ], [ 74, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 39, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 11, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 11, 68 ], [ 68, 69 ], [ 69, 70 ], [ 9, 71 ], [ 71, 72 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tstatic long mod = 1000000007;\n\n\tpublic static void main(String[] args) {\n\t\t// AtCoder_B\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint zoro = 0;\n\t\tString ans = \"No\";\n\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tif(sc.nextInt() == sc.nextInt()) {\n\t\t\t\tzoro++;\n\t\t\t\tif(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tzoro = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t // Scannerクラスのインスタンスをクローズ\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tstatic long mod = 1000000007;\n\n\tpublic static void main(String[] args) {\n\t\t// AtCoder_B\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint zoro = 0;\n\t\tString ans = \"No\";\n\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tif(sc.nextInt() == sc.nextInt()) {\n\t\t\t\tzoro++;\n\t\t\t\tif(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tzoro = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t // Scannerクラスのインスタンスをクローズ\n\t\tsc.close();\n\t}\n}", "Main", "static long mod = 1000000007;", "mod", "1000000007", "public static void main(String[] args) {\n\t\t// AtCoder_B\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint zoro = 0;\n\t\tString ans = \"No\";\n\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tif(sc.nextInt() == sc.nextInt()) {\n\t\t\t\tzoro++;\n\t\t\t\tif(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tzoro = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t // Scannerクラスのインスタンスをクローズ\n\t\tsc.close();\n\t}", "main", "{\n\t\t// AtCoder_B\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint zoro = 0;\n\t\tString ans = \"No\";\n\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tif(sc.nextInt() == sc.nextInt()) {\n\t\t\t\tzoro++;\n\t\t\t\tif(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tzoro = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t // Scannerクラスのインスタンスをクローズ\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int zoro = 0;", "zoro", "0", "String ans = \"No\";", "ans", "\"No\"", "for(int i=0; i<N; i++) {\n\t\t\tif(sc.nextInt() == sc.nextInt()) {\n\t\t\t\tzoro++;\n\t\t\t\tif(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tzoro = 0;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tif(sc.nextInt() == sc.nextInt()) {\n\t\t\t\tzoro++;\n\t\t\t\tif(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tzoro = 0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(sc.nextInt() == sc.nextInt()) {\n\t\t\t\tzoro++;\n\t\t\t\tif(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tzoro = 0;\n\t\t\t}\n\t\t}", "if(sc.nextInt() == sc.nextInt()) {\n\t\t\t\tzoro++;\n\t\t\t\tif(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tzoro = 0;\n\t\t\t}", "sc.nextInt() == sc.nextInt()", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextInt()", "sc.nextInt", "sc", "{\n\t\t\t\tzoro++;\n\t\t\t\tif(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}\n\t\t\t}", "zoro++", "zoro", "if(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}", "zoro == 3", "zoro", "3", "{\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}", "ans = \"Yes\"", "ans", "\"Yes\"", "{\n\t\t\t\tzoro = 0;\n\t\t\t}", "zoro = 0", "zoro", "0", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tstatic long mod = 1000000007;\n\n\tpublic static void main(String[] args) {\n\t\t// AtCoder_B\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint zoro = 0;\n\t\tString ans = \"No\";\n\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tif(sc.nextInt() == sc.nextInt()) {\n\t\t\t\tzoro++;\n\t\t\t\tif(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tzoro = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t // Scannerクラスのインスタンスをクローズ\n\t\tsc.close();\n\t}\n}", "public class Main {\n\n\tstatic long mod = 1000000007;\n\n\tpublic static void main(String[] args) {\n\t\t// AtCoder_B\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint zoro = 0;\n\t\tString ans = \"No\";\n\n\t\tfor(int i=0; i<N; i++) {\n\t\t\tif(sc.nextInt() == sc.nextInt()) {\n\t\t\t\tzoro++;\n\t\t\t\tif(zoro == 3) {\n\t\t\t\t\tans = \"Yes\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tzoro = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t // Scannerクラスのインスタンスをクローズ\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { static long mod = 1000000007; public static void main(String[] args) { // AtCoder_B Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int zoro = 0; String ans = "No"; for(int i=0; i<N; i++) { if(sc.nextInt() == sc.nextInt()) { zoro++; if(zoro == 3) { ans = "Yes"; } } else { zoro = 0; } } System.out.println(ans); // Scannerクラスのインスタンスをクローズ sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 41, 13, 17, 14, 2, 13, 2, 13, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 13, 0, 13, 2, 13, 17, 0, 13, 13, 29, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 0, 13, 2, 13, 13, 42, 2, 13, 17, 30, 14, 2, 2, 13, 17, 17, 0, 13, 2, 2, 13, 13, 13, 0, 13, 2, 13, 17, 0, 13, 2, 2, 13, 13, 13, 29, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 13, 13, 2, 13, 17, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 17, 41, 13, 20, 2, 13, 17, 0, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 2, 18, 13, 2, 13, 17, 13, 13, 29, 2, 2, 2, 2, 2, 18, 13, 13, 4, 13, 18, 13, 13, 13, 13, 4, 13, 18, 13, 2, 13, 13, 13, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 0, 13, 17, 30, 40, 13, 14, 2, 13, 17, 30, 0, 13, 17, 14, 13, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 428, 17 ], [ 428, 18 ], [ 18, 19 ], [ 18, 20 ], [ 428, 21 ], [ 21, 22 ], [ 21, 23 ], [ 428, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 30, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 26, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 53, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 53, 64 ], [ 64, 65 ], [ 64, 66 ], [ 26, 67 ], [ 67, 68 ], [ 24, 69 ], [ 69, 70 ], [ 24, 71 ], [ 71, 72 ], [ 24, 73 ], [ 73, 74 ], [ 428, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 77, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 91, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 90, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 90, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 77, 116 ], [ 116, 117 ], [ 75, 118 ], [ 118, 119 ], [ 75, 120 ], [ 120, 121 ], [ 75, 122 ], [ 122, 123 ], [ 428, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 128, 131 ], [ 131, 132 ], [ 131, 133 ], [ 128, 134 ], [ 124, 135 ], [ 135, 136 ], [ 124, 137 ], [ 137, 138 ], [ 428, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 146, 147 ], [ 141, 148 ], [ 148, 149 ], [ 148, 150 ], [ 151, 152 ], [ 151, 153 ], [ 141, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 141, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 164, 165 ], [ 164, 166 ], [ 159, 167 ], [ 167, 168 ], [ 168, 169 ], [ 159, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 179, 181 ], [ 176, 182 ], [ 175, 183 ], [ 141, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 189, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 195, 197 ], [ 193, 198 ], [ 188, 199 ], [ 187, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 202, 204 ], [ 204, 205 ], [ 204, 206 ], [ 200, 207 ], [ 186, 208 ], [ 185, 209 ], [ 139, 210 ], [ 210, 211 ], [ 139, 212 ], [ 212, 213 ], [ 139, 214 ], [ 214, 215 ], [ 428, 216 ], [ 216, 217 ], [ 216, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 225, 226 ], [ 218, 227 ], [ 227, 228 ], [ 227, 229 ], [ 218, 230 ], [ 230, 231 ], [ 230, 232 ], [ 218, 233 ], [ 233, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 233, 238 ], [ 238, 239 ], [ 238, 240 ], [ 233, 241 ], [ 241, 242 ], [ 242, 243 ], [ 233, 244 ], [ 245, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 248, 249 ], [ 249, 250 ], [ 245, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 254, 255 ], [ 245, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 256, 260 ], [ 260, 261 ], [ 261, 262 ], [ 261, 263 ], [ 256, 264 ], [ 264, 265 ], [ 265, 266 ], [ 264, 267 ], [ 267, 268 ], [ 268, 269 ], [ 268, 270 ], [ 267, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 218, 275 ], [ 275, 276 ], [ 275, 277 ], [ 277, 278 ], [ 278, 279 ], [ 279, 280 ], [ 278, 281 ], [ 275, 282 ], [ 282, 283 ], [ 283, 284 ], [ 284, 285 ], [ 283, 286 ], [ 218, 287 ], [ 287, 288 ], [ 288, 289 ], [ 289, 290 ], [ 289, 291 ], [ 287, 292 ], [ 292, 293 ], [ 293, 294 ], [ 216, 295 ], [ 295, 296 ], [ 428, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 299, 301 ], [ 297, 302 ], [ 302, 303 ], [ 302, 304 ], [ 297, 305 ], [ 305, 306 ], [ 305, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 310, 311 ], [ 311, 312 ], [ 308, 313 ], [ 313, 314 ], [ 314, 315 ], [ 314, 316 ], [ 316, 317 ], [ 317, 318 ], [ 318, 319 ], [ 313, 320 ], [ 320, 321 ], [ 321, 322 ], [ 321, 323 ], [ 307, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 297, 328 ], [ 328, 329 ], [ 328, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 333, 334 ], [ 332, 335 ], [ 335, 336 ], [ 297, 337 ], [ 337, 338 ], [ 337, 339 ], [ 339, 340 ], [ 340, 341 ], [ 340, 342 ], [ 339, 344 ], [ 344, 345 ], [ 345, 346 ], [ 346, 347 ], [ 346, 348 ], [ 344, 349 ], [ 349, 350 ], [ 349, 351 ], [ 344, 352 ], [ 352, 353 ], [ 353, 354 ], [ 344, 355 ], [ 355, 356 ], [ 356, 357 ], [ 357, 358 ], [ 357, 359 ], [ 356, 360 ], [ 360, 361 ], [ 339, 362 ], [ 362, 363 ], [ 337, 364 ], [ 364, 365 ], [ 297, 366 ], [ 366, 367 ], [ 366, 368 ], [ 368, 369 ], [ 369, 370 ], [ 370, 371 ], [ 371, 372 ], [ 370, 373 ], [ 373, 374 ], [ 297, 375 ], [ 375, 376 ], [ 375, 377 ], [ 377, 378 ], [ 378, 379 ], [ 378, 380 ], [ 377, 382 ], [ 382, 383 ], [ 383, 384 ], [ 384, 385 ], [ 384, 386 ], [ 382, 387 ], [ 387, 388 ], [ 387, 389 ], [ 382, 390 ], [ 390, 391 ], [ 391, 392 ], [ 382, 393 ], [ 393, 394 ], [ 394, 395 ], [ 395, 396 ], [ 395, 397 ], [ 394, 398 ], [ 398, 399 ], [ 377, 400 ], [ 400, 401 ], [ 375, 402 ], [ 402, 403 ], [ 428, 404 ], [ 404, 405 ], [ 404, 406 ], [ 406, 407 ], [ 404, 408 ], [ 408, 409 ], [ 404, 410 ], [ 410, 411 ], [ 410, 412 ], [ 412, 413 ], [ 413, 414 ], [ 414, 415 ], [ 414, 416 ], [ 413, 417 ], [ 412, 418 ], [ 418, 419 ], [ 419, 420 ], [ 419, 421 ], [ 418, 422 ], [ 410, 423 ], [ 423, 424 ], [ 410, 425 ], [ 425, 426 ], [ 0, 427 ], [ 427, 428 ], [ 427, 429 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n private static FastReader fr = new FastReader();\n private static PrintWriter out=new PrintWriter(System.out);\n\n static long binomialCoeff(long n, long k, long MOD)\n {\n long res = 1;\n\n // Since C(n, k) = C(n, n-k)\n if (k > n - k)\n k = n - k;\n\n // Calculate value of\n // [n * (n-1) *---* (n-k+1)] / [k * (k-1) *----* 1]\n for (int i = 0; i < k; ++i) {\n res *= (n - i);\n res /= (i + 1);\n res %= MOD;\n }\n\n return res;\n }\n\n static long power(long x, long y, long p)\n {\n\n // Initialize result\n long res = 1;\n\n // Update x if it is more than or\n // equal to p\n x = x % p;\n\n while (y > 0) {\n\n // If y is odd, multiply x\n // with result\n if (y % 2 == 1)\n res = (res * x) % p;\n\n // y must be even now\n y = y >> 1; // y = y/2\n x = (x * x) % p;\n }\n\n return res;\n }\n\n // Returns n^(-1) mod p\n static long modInverse(long n, long p)\n {\n return power(n, p - 2, p);\n }\n\n // Returns nCr % p using Fermat's\n // little theorem.\n static long nCrModPFermat(int n, int r,\n long p)\n {\n\n // Base case\n if (r == 0)\n return 1;\n\n // Fill factorial array so that we\n // can find all factorial of r, n\n // and n-r\n long[] fac = new long[n + 1];\n fac[0] = 1;\n\n for (int i = 1; i <= n; i++)\n fac[i] = fac[i - 1] * i % p;\n\n return (fac[n] * modInverse(fac[r], p)\n % p * modInverse(fac[n - r], p)\n % p)\n % p;\n }\n\n\n public static void main(String[] args) throws IOException {\n StringBuilder sb = new StringBuilder();\n // code goes here\n int n = fr.nextInt();\n int count = 0;\n boolean yes = false;\n for(int i = 0; i < n; i++){\n int d1 = fr.nextInt();\n int d2 = fr.nextInt();\n if(d1 != d2){\n count = 0;\n } else {\n count++;\n if(count == 3){\n yes = true;\n }\n }\n }\n if(yes){\n sb.append(\"Yes\");\n } else {\n sb.append(\"No\");\n }\n System.out.print(sb.toString());\n }\n\n static class FastReader{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] nextLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }\n\n static class Pair<A, B>{\n A first;\n B second;\n public Pair(A first, B second){\n this.first = first;\n this.second = second;\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n private static FastReader fr = new FastReader();\n private static PrintWriter out=new PrintWriter(System.out);\n\n static long binomialCoeff(long n, long k, long MOD)\n {\n long res = 1;\n\n // Since C(n, k) = C(n, n-k)\n if (k > n - k)\n k = n - k;\n\n // Calculate value of\n // [n * (n-1) *---* (n-k+1)] / [k * (k-1) *----* 1]\n for (int i = 0; i < k; ++i) {\n res *= (n - i);\n res /= (i + 1);\n res %= MOD;\n }\n\n return res;\n }\n\n static long power(long x, long y, long p)\n {\n\n // Initialize result\n long res = 1;\n\n // Update x if it is more than or\n // equal to p\n x = x % p;\n\n while (y > 0) {\n\n // If y is odd, multiply x\n // with result\n if (y % 2 == 1)\n res = (res * x) % p;\n\n // y must be even now\n y = y >> 1; // y = y/2\n x = (x * x) % p;\n }\n\n return res;\n }\n\n // Returns n^(-1) mod p\n static long modInverse(long n, long p)\n {\n return power(n, p - 2, p);\n }\n\n // Returns nCr % p using Fermat's\n // little theorem.\n static long nCrModPFermat(int n, int r,\n long p)\n {\n\n // Base case\n if (r == 0)\n return 1;\n\n // Fill factorial array so that we\n // can find all factorial of r, n\n // and n-r\n long[] fac = new long[n + 1];\n fac[0] = 1;\n\n for (int i = 1; i <= n; i++)\n fac[i] = fac[i - 1] * i % p;\n\n return (fac[n] * modInverse(fac[r], p)\n % p * modInverse(fac[n - r], p)\n % p)\n % p;\n }\n\n\n public static void main(String[] args) throws IOException {\n StringBuilder sb = new StringBuilder();\n // code goes here\n int n = fr.nextInt();\n int count = 0;\n boolean yes = false;\n for(int i = 0; i < n; i++){\n int d1 = fr.nextInt();\n int d2 = fr.nextInt();\n if(d1 != d2){\n count = 0;\n } else {\n count++;\n if(count == 3){\n yes = true;\n }\n }\n }\n if(yes){\n sb.append(\"Yes\");\n } else {\n sb.append(\"No\");\n }\n System.out.print(sb.toString());\n }\n\n static class FastReader{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] nextLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }\n\n static class Pair<A, B>{\n A first;\n B second;\n public Pair(A first, B second){\n this.first = first;\n this.second = second;\n }\n }\n}", "Main", "private static FastReader fr = new FastReader();", "fr", "new FastReader()", "private static PrintWriter out=new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "static long binomialCoeff(long n, long k, long MOD)\n {\n long res = 1;\n\n // Since C(n, k) = C(n, n-k)\n if (k > n - k)\n k = n - k;\n\n // Calculate value of\n // [n * (n-1) *---* (n-k+1)] / [k * (k-1) *----* 1]\n for (int i = 0; i < k; ++i) {\n res *= (n - i);\n res /= (i + 1);\n res %= MOD;\n }\n\n return res;\n }", "binomialCoeff", "{\n long res = 1;\n\n // Since C(n, k) = C(n, n-k)\n if (k > n - k)\n k = n - k;\n\n // Calculate value of\n // [n * (n-1) *---* (n-k+1)] / [k * (k-1) *----* 1]\n for (int i = 0; i < k; ++i) {\n res *= (n - i);\n res /= (i + 1);\n res %= MOD;\n }\n\n return res;\n }", "long res = 1;", "res", "1", "if (k > n - k)\n k = n - k;", "k > n - k", "k", "n - k", "n", "k", "k = n - k", "k", "n - k", "n", "k", "for (int i = 0; i < k; ++i) {\n res *= (n - i);\n res /= (i + 1);\n res %= MOD;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < k", "i", "k", "++i", "++i", "i", "{\n res *= (n - i);\n res /= (i + 1);\n res %= MOD;\n }", "{\n res *= (n - i);\n res /= (i + 1);\n res %= MOD;\n }", "res *= (n - i)", "res", "(n - i)", "n", "i", "res /= (i + 1)", "res", "(i + 1)", "i", "1", "res %= MOD", "res", "MOD", "return res;", "res", "long n", "n", "long k", "k", "long MOD", "MOD", "static long power(long x, long y, long p)\n {\n\n // Initialize result\n long res = 1;\n\n // Update x if it is more than or\n // equal to p\n x = x % p;\n\n while (y > 0) {\n\n // If y is odd, multiply x\n // with result\n if (y % 2 == 1)\n res = (res * x) % p;\n\n // y must be even now\n y = y >> 1; // y = y/2\n x = (x * x) % p;\n }\n\n return res;\n }", "power", "{\n\n // Initialize result\n long res = 1;\n\n // Update x if it is more than or\n // equal to p\n x = x % p;\n\n while (y > 0) {\n\n // If y is odd, multiply x\n // with result\n if (y % 2 == 1)\n res = (res * x) % p;\n\n // y must be even now\n y = y >> 1; // y = y/2\n x = (x * x) % p;\n }\n\n return res;\n }", "long res = 1;", "res", "1", "x = x % p", "x", "x % p", "x", "p", "while (y > 0) {\n\n // If y is odd, multiply x\n // with result\n if (y % 2 == 1)\n res = (res * x) % p;\n\n // y must be even now\n y = y >> 1; // y = y/2\n x = (x * x) % p;\n }", "y > 0", "y", "0", "{\n\n // If y is odd, multiply x\n // with result\n if (y % 2 == 1)\n res = (res * x) % p;\n\n // y must be even now\n y = y >> 1; // y = y/2\n x = (x * x) % p;\n }", "if (y % 2 == 1)\n res = (res * x) % p;", "y % 2 == 1", "y % 2", "y", "2", "1", "res = (res * x) % p", "res", "(res * x) % p", "(res * x)", "res", "x", "p", "y = y >> 1", "y", "y >> 1", "y", "1", "x = (x * x) % p", "x", "(x * x) % p", "(x * x)", "x", "x", "p", "return res;", "res", "long x", "x", "long y", "y", "long p", "p", "// Returns n^(-1) mod p\n static long modInverse(long n, long p)\n {\n return power(n, p - 2, p);\n }", "modInverse", "{\n return power(n, p - 2, p);\n }", "return power(n, p - 2, p);", "power(n, p - 2, p)", "power", "n", "p - 2", "p", "2", "p", "long n", "n", "long p", "p", "// Returns nCr % p using Fermat's\n // little theorem.\n static long nCrModPFermat(int n, int r,\n long p)\n {\n\n // Base case\n if (r == 0)\n return 1;\n\n // Fill factorial array so that we\n // can find all factorial of r, n\n // and n-r\n long[] fac = new long[n + 1];\n fac[0] = 1;\n\n for (int i = 1; i <= n; i++)\n fac[i] = fac[i - 1] * i % p;\n\n return (fac[n] * modInverse(fac[r], p)\n % p * modInverse(fac[n - r], p)\n % p)\n % p;\n }", "nCrModPFermat", "{\n\n // Base case\n if (r == 0)\n return 1;\n\n // Fill factorial array so that we\n // can find all factorial of r, n\n // and n-r\n long[] fac = new long[n + 1];\n fac[0] = 1;\n\n for (int i = 1; i <= n; i++)\n fac[i] = fac[i - 1] * i % p;\n\n return (fac[n] * modInverse(fac[r], p)\n % p * modInverse(fac[n - r], p)\n % p)\n % p;\n }", "if (r == 0)\n return 1;", "r == 0", "r", "0", "return 1;", "1", "long[] fac = new long[n + 1];", "fac", "new long[n + 1]", "n + 1", "n", "1", "fac[0] = 1", "fac[0]", "fac", "0", "1", "for (int i = 1; i <= n; i++)\n fac[i] = fac[i - 1] * i % p;", "int i = 1;", "int i = 1;", "i", "1", "i <= n", "i", "n", "i++", "i++", "i", "fac[i] = fac[i - 1] * i % p;", "fac[i] = fac[i - 1] * i % p", "fac[i]", "fac", "i", "fac[i - 1] * i % p", "fac[i - 1] * i", "fac[i - 1]", "fac", "i - 1", "i", "1", "i", "p", "return (fac[n] * modInverse(fac[r], p)\n % p * modInverse(fac[n - r], p)\n % p)\n % p;", "(fac[n] * modInverse(fac[r], p)\n % p * modInverse(fac[n - r], p)\n % p)\n % p", "(fac[n] * modInverse(fac[r], p)\n % p * modInverse(fac[n - r], p)\n % p)", "fac[n] * modInverse(fac[r], p)\n % p * modInverse(fac[n - r], p)", "fac[n] * modInverse(fac[r], p)\n % p", "fac[n] * modInverse(fac[r], p)", "fac[n]", "fac", "n", "modInverse(fac[r], p)", "modInverse", "fac[r]", "fac", "r", "p", "p", "modInverse(fac[n - r], p)", "modInverse", "fac[n - r]", "fac", "n - r", "n", "r", "p", "p", "p", "int n", "n", "int r", "r", "long p", "p", "public static void main(String[] args) throws IOException {\n StringBuilder sb = new StringBuilder();\n // code goes here\n int n = fr.nextInt();\n int count = 0;\n boolean yes = false;\n for(int i = 0; i < n; i++){\n int d1 = fr.nextInt();\n int d2 = fr.nextInt();\n if(d1 != d2){\n count = 0;\n } else {\n count++;\n if(count == 3){\n yes = true;\n }\n }\n }\n if(yes){\n sb.append(\"Yes\");\n } else {\n sb.append(\"No\");\n }\n System.out.print(sb.toString());\n }", "main", "{\n StringBuilder sb = new StringBuilder();\n // code goes here\n int n = fr.nextInt();\n int count = 0;\n boolean yes = false;\n for(int i = 0; i < n; i++){\n int d1 = fr.nextInt();\n int d2 = fr.nextInt();\n if(d1 != d2){\n count = 0;\n } else {\n count++;\n if(count == 3){\n yes = true;\n }\n }\n }\n if(yes){\n sb.append(\"Yes\");\n } else {\n sb.append(\"No\");\n }\n System.out.print(sb.toString());\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int n = fr.nextInt();", "n", "fr.nextInt()", "fr.nextInt", "fr", "int count = 0;", "count", "0", "boolean yes = false;", "yes", "false", "for(int i = 0; i < n; i++){\n int d1 = fr.nextInt();\n int d2 = fr.nextInt();\n if(d1 != d2){\n count = 0;\n } else {\n count++;\n if(count == 3){\n yes = true;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int d1 = fr.nextInt();\n int d2 = fr.nextInt();\n if(d1 != d2){\n count = 0;\n } else {\n count++;\n if(count == 3){\n yes = true;\n }\n }\n }", "{\n int d1 = fr.nextInt();\n int d2 = fr.nextInt();\n if(d1 != d2){\n count = 0;\n } else {\n count++;\n if(count == 3){\n yes = true;\n }\n }\n }", "int d1 = fr.nextInt();", "d1", "fr.nextInt()", "fr.nextInt", "fr", "int d2 = fr.nextInt();", "d2", "fr.nextInt()", "fr.nextInt", "fr", "if(d1 != d2){\n count = 0;\n } else {\n count++;\n if(count == 3){\n yes = true;\n }\n }", "d1 != d2", "d1", "d2", "{\n count = 0;\n }", "count = 0", "count", "0", "{\n count++;\n if(count == 3){\n yes = true;\n }\n }", "count++", "count", "if(count == 3){\n yes = true;\n }", "count == 3", "count", "3", "{\n yes = true;\n }", "yes = true", "yes", "true", "if(yes){\n sb.append(\"Yes\");\n } else {\n sb.append(\"No\");\n }", "yes", "{\n sb.append(\"Yes\");\n }", "sb.append(\"Yes\")", "sb.append", "sb", "\"Yes\"", "{\n sb.append(\"No\");\n }", "sb.append(\"No\")", "sb.append", "sb", "\"No\"", "System.out.print(sb.toString())", "System.out.print", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "String[] args", "args", "static class FastReader{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] nextLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }", "FastReader", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st=new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "next", "{\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st=new StringTokenizer(br.readLine());\n }", "st=new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public int[] nextIntArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "nextIntArray", "{\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "int[] a=new int[n];", "a", "new int[n]", "n", "for (int i=0; i<n; i++) a[i]=nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "a[i]=nextInt();", "a[i]=nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "public long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public long[] nextLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }", "nextLongArray", "{\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }", "long[] a=new long[n];", "a", "new long[n]", "n", "for (int i=0; i<n; i++) a[i]=nextLong();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "a[i]=nextLong();", "a[i]=nextLong()", "a[i]", "a", "i", "nextLong()", "nextLong", "return a;", "a", "int n", "n", "static class Pair<A, B>{\n A first;\n B second;\n public Pair(A first, B second){\n this.first = first;\n this.second = second;\n }\n }", "Pair", "A first;", "first", "B second;", "second", "public Pair(A first, B second){\n this.first = first;\n this.second = second;\n }", "Pair", "{\n this.first = first;\n this.second = second;\n }", "this.first = first", "this.first", "this", "this.first", "first", "this.second = second", "this.second", "this", "this.second", "second", "A first", "first", "B second", "second", "public class Main {\n private static FastReader fr = new FastReader();\n private static PrintWriter out=new PrintWriter(System.out);\n\n static long binomialCoeff(long n, long k, long MOD)\n {\n long res = 1;\n\n // Since C(n, k) = C(n, n-k)\n if (k > n - k)\n k = n - k;\n\n // Calculate value of\n // [n * (n-1) *---* (n-k+1)] / [k * (k-1) *----* 1]\n for (int i = 0; i < k; ++i) {\n res *= (n - i);\n res /= (i + 1);\n res %= MOD;\n }\n\n return res;\n }\n\n static long power(long x, long y, long p)\n {\n\n // Initialize result\n long res = 1;\n\n // Update x if it is more than or\n // equal to p\n x = x % p;\n\n while (y > 0) {\n\n // If y is odd, multiply x\n // with result\n if (y % 2 == 1)\n res = (res * x) % p;\n\n // y must be even now\n y = y >> 1; // y = y/2\n x = (x * x) % p;\n }\n\n return res;\n }\n\n // Returns n^(-1) mod p\n static long modInverse(long n, long p)\n {\n return power(n, p - 2, p);\n }\n\n // Returns nCr % p using Fermat's\n // little theorem.\n static long nCrModPFermat(int n, int r,\n long p)\n {\n\n // Base case\n if (r == 0)\n return 1;\n\n // Fill factorial array so that we\n // can find all factorial of r, n\n // and n-r\n long[] fac = new long[n + 1];\n fac[0] = 1;\n\n for (int i = 1; i <= n; i++)\n fac[i] = fac[i - 1] * i % p;\n\n return (fac[n] * modInverse(fac[r], p)\n % p * modInverse(fac[n - r], p)\n % p)\n % p;\n }\n\n\n public static void main(String[] args) throws IOException {\n StringBuilder sb = new StringBuilder();\n // code goes here\n int n = fr.nextInt();\n int count = 0;\n boolean yes = false;\n for(int i = 0; i < n; i++){\n int d1 = fr.nextInt();\n int d2 = fr.nextInt();\n if(d1 != d2){\n count = 0;\n } else {\n count++;\n if(count == 3){\n yes = true;\n }\n }\n }\n if(yes){\n sb.append(\"Yes\");\n } else {\n sb.append(\"No\");\n }\n System.out.print(sb.toString());\n }\n\n static class FastReader{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] nextLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }\n\n static class Pair<A, B>{\n A first;\n B second;\n public Pair(A first, B second){\n this.first = first;\n this.second = second;\n }\n }\n}", "public class Main {\n private static FastReader fr = new FastReader();\n private static PrintWriter out=new PrintWriter(System.out);\n\n static long binomialCoeff(long n, long k, long MOD)\n {\n long res = 1;\n\n // Since C(n, k) = C(n, n-k)\n if (k > n - k)\n k = n - k;\n\n // Calculate value of\n // [n * (n-1) *---* (n-k+1)] / [k * (k-1) *----* 1]\n for (int i = 0; i < k; ++i) {\n res *= (n - i);\n res /= (i + 1);\n res %= MOD;\n }\n\n return res;\n }\n\n static long power(long x, long y, long p)\n {\n\n // Initialize result\n long res = 1;\n\n // Update x if it is more than or\n // equal to p\n x = x % p;\n\n while (y > 0) {\n\n // If y is odd, multiply x\n // with result\n if (y % 2 == 1)\n res = (res * x) % p;\n\n // y must be even now\n y = y >> 1; // y = y/2\n x = (x * x) % p;\n }\n\n return res;\n }\n\n // Returns n^(-1) mod p\n static long modInverse(long n, long p)\n {\n return power(n, p - 2, p);\n }\n\n // Returns nCr % p using Fermat's\n // little theorem.\n static long nCrModPFermat(int n, int r,\n long p)\n {\n\n // Base case\n if (r == 0)\n return 1;\n\n // Fill factorial array so that we\n // can find all factorial of r, n\n // and n-r\n long[] fac = new long[n + 1];\n fac[0] = 1;\n\n for (int i = 1; i <= n; i++)\n fac[i] = fac[i - 1] * i % p;\n\n return (fac[n] * modInverse(fac[r], p)\n % p * modInverse(fac[n - r], p)\n % p)\n % p;\n }\n\n\n public static void main(String[] args) throws IOException {\n StringBuilder sb = new StringBuilder();\n // code goes here\n int n = fr.nextInt();\n int count = 0;\n boolean yes = false;\n for(int i = 0; i < n; i++){\n int d1 = fr.nextInt();\n int d2 = fr.nextInt();\n if(d1 != d2){\n count = 0;\n } else {\n count++;\n if(count == 3){\n yes = true;\n }\n }\n }\n if(yes){\n sb.append(\"Yes\");\n } else {\n sb.append(\"No\");\n }\n System.out.print(sb.toString());\n }\n\n static class FastReader{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] nextLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }\n\n static class Pair<A, B>{\n A first;\n B second;\n public Pair(A first, B second){\n this.first = first;\n this.second = second;\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { private static FastReader fr = new FastReader(); private static PrintWriter out=new PrintWriter(System.out); static long binomialCoeff(long n, long k, long MOD) { long res = 1; // Since C(n, k) = C(n, n-k) if (k > n - k) k = n - k; // Calculate value of // [n * (n-1) *---* (n-k+1)] / [k * (k-1) *----* 1] for (int i = 0; i < k; ++i) { res *= (n - i); res /= (i + 1); res %= MOD; } return res; } static long power(long x, long y, long p) { // Initialize result long res = 1; // Update x if it is more than or // equal to p x = x % p; while (y > 0) { // If y is odd, multiply x // with result if (y % 2 == 1) res = (res * x) % p; // y must be even now y = y >> 1; // y = y/2 x = (x * x) % p; } return res; } // Returns n^(-1) mod p static long modInverse(long n, long p) { return power(n, p - 2, p); } // Returns nCr % p using Fermat's // little theorem. static long nCrModPFermat(int n, int r, long p) { // Base case if (r == 0) return 1; // Fill factorial array so that we // can find all factorial of r, n // and n-r long[] fac = new long[n + 1]; fac[0] = 1; for (int i = 1; i <= n; i++) fac[i] = fac[i - 1] * i % p; return (fac[n] * modInverse(fac[r], p) % p * modInverse(fac[n - r], p) % p) % p; } public static void main(String[] args) throws IOException { StringBuilder sb = new StringBuilder(); // code goes here int n = fr.nextInt(); int count = 0; boolean yes = false; for(int i = 0; i < n; i++){ int d1 = fr.nextInt(); int d2 = fr.nextInt(); if(d1 != d2){ count = 0; } else { count++; if(count == 3){ yes = true; } } } if(yes){ sb.append("Yes"); } else { sb.append("No"); } System.out.print(sb.toString()); } static class FastReader{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st=new StringTokenizer(""); public String next() { while (!st.hasMoreTokens()) try { st=new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } return st.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } public int[] nextIntArray(int n) { int[] a=new int[n]; for (int i=0; i<n; i++) a[i]=nextInt(); return a; } public long nextLong() { return Long.parseLong(next()); } public long[] nextLongArray(int n) { long[] a=new long[n]; for (int i=0; i<n; i++) a[i]=nextLong(); return a; } } static class Pair<A, B>{ A first; B second; public Pair(A first, B second){ this.first = first; this.second = second; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 75, 5 ], [ 75, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 43, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 32, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 58, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 6, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n int streak = 0;\n for (int i = 0; i < N; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n if (a == b) {\n streak++;\n } else {\n streak = 0;\n }\n\n if (streak == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n int streak = 0;\n for (int i = 0; i < N; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n if (a == b) {\n streak++;\n } else {\n streak = 0;\n }\n\n if (streak == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n int streak = 0;\n for (int i = 0; i < N; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n if (a == b) {\n streak++;\n } else {\n streak = 0;\n }\n\n if (streak == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n int streak = 0;\n for (int i = 0; i < N; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n if (a == b) {\n streak++;\n } else {\n streak = 0;\n }\n\n if (streak == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N = scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "int streak = 0;", "streak", "0", "for (int i = 0; i < N; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n if (a == b) {\n streak++;\n } else {\n streak = 0;\n }\n\n if (streak == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n if (a == b) {\n streak++;\n } else {\n streak = 0;\n }\n\n if (streak == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n if (a == b) {\n streak++;\n } else {\n streak = 0;\n }\n\n if (streak == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }", "int a = scanner.nextInt();", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "int b = scanner.nextInt();", "b", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (a == b) {\n streak++;\n } else {\n streak = 0;\n }", "a == b", "a", "b", "{\n streak++;\n }", "streak++", "streak", "{\n streak = 0;\n }", "streak = 0", "streak", "0", "if (streak == 3) {\n System.out.println(\"Yes\");\n return;\n }", "streak == 3", "streak", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String... args", "args", "public class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n int streak = 0;\n for (int i = 0; i < N; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n if (a == b) {\n streak++;\n } else {\n streak = 0;\n }\n\n if (streak == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n int streak = 0;\n for (int i = 0; i < N; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n\n if (a == b) {\n streak++;\n } else {\n streak = 0;\n }\n\n if (streak == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String... args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int streak = 0; for (int i = 0; i < N; i++) { int a = scanner.nextInt(); int b = scanner.nextInt(); if (a == b) { streak++; } else { streak = 0; } if (streak == 3) { System.out.println("Yes"); return; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 14, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 30, 40, 13, 14, 2, 13, 17, 30, 3, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 108, 5 ], [ 108, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 10, 22 ], [ 22, 23 ], [ 22, 24 ], [ 10, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 39, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 62, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 62, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 10, 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 ], [ 6, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint count = 0;\n\t\t\tint[][] ans = new int[n][n];\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tfor(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\tif(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count >= 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\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\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint count = 0;\n\t\t\tint[][] ans = new int[n][n];\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tfor(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\tif(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count >= 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint count = 0;\n\t\t\tint[][] ans = new int[n][n];\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tfor(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\tif(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count >= 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint count = 0;\n\t\t\tint[][] ans = new int[n][n];\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tfor(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\tif(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count >= 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t}", "try(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint count = 0;\n\t\t\tint[][] ans = new int[n][n];\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tfor(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\tif(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count >= 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}", "{\n\t\t\tint n = sc.nextInt();\n\t\t\tint count = 0;\n\t\t\tint[][] ans = new int[n][n];\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tfor(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\tif(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count >= 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "int[][] ans = new int[n][n];", "ans", "new int[n][n]", "n", "n", "for(int i = 0;i < n;i++) {\n\t\t\t\tfor(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\tif(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tfor(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\tif(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\tif(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}", "for(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 2", "j", "2", "j++", "j++", "j", "{\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}", "{\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}", "ans[i][j] = sc.nextInt()", "ans[i][j]", "ans[i]", "ans", "i", "j", "sc.nextInt()", "sc.nextInt", "sc", "if(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}", "ans[i][0] == ans[i][1]", "ans[i][0]", "ans[i]", "ans", "i", "0", "ans[i][1]", "ans[i]", "ans", "i", "1", "{\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "count++", "count", "if(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "count >= 3", "count", "3", "{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "break;", "{\n\t\t\t\t\tcount = 0;\n\t\t\t\t}", "count = 0", "count", "0", "if(count >= 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}", "count >= 3", "count", "3", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint count = 0;\n\t\t\tint[][] ans = new int[n][n];\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tfor(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\tif(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count >= 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint count = 0;\n\t\t\tint[][] ans = new int[n][n];\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tfor(int j = 0;j < 2;j++) {\n\t\t\t\t\tans[i][j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\tif(ans[i][0] == ans[i][1]) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count >= 3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count >= 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ int n = sc.nextInt(); int count = 0; int[][] ans = new int[n][n]; for(int i = 0;i < n;i++) { for(int j = 0;j < 2;j++) { ans[i][j] = sc.nextInt(); } if(ans[i][0] == ans[i][1]) { count++; if(count >= 3) { break; } } else { count = 0; } } if(count >= 3) { System.out.println("Yes"); } else { System.out.println("No"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 0, 13, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 81, 5 ], [ 81, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 32, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 61, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 8, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 6, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int N =sc.nextInt();\n int x =0;\n for(int i=0;i<N;i++){\n int D =sc.nextInt();\n int E =sc.nextInt();\n if(D==E){x=x+1;}\n else{x=0;}\n if(x==3){System.out.println(\"Yes\");System.exit(0);}\n }\n System.out.println(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int N =sc.nextInt();\n int x =0;\n for(int i=0;i<N;i++){\n int D =sc.nextInt();\n int E =sc.nextInt();\n if(D==E){x=x+1;}\n else{x=0;}\n if(x==3){System.out.println(\"Yes\");System.exit(0);}\n }\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int N =sc.nextInt();\n int x =0;\n for(int i=0;i<N;i++){\n int D =sc.nextInt();\n int E =sc.nextInt();\n if(D==E){x=x+1;}\n else{x=0;}\n if(x==3){System.out.println(\"Yes\");System.exit(0);}\n }\n System.out.println(\"No\");\n }", "main", "{\n Scanner sc =new Scanner(System.in);\n int N =sc.nextInt();\n int x =0;\n for(int i=0;i<N;i++){\n int D =sc.nextInt();\n int E =sc.nextInt();\n if(D==E){x=x+1;}\n else{x=0;}\n if(x==3){System.out.println(\"Yes\");System.exit(0);}\n }\n System.out.println(\"No\");\n }", "Scanner sc =new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N =sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int x =0;", "x", "0", "for(int i=0;i<N;i++){\n int D =sc.nextInt();\n int E =sc.nextInt();\n if(D==E){x=x+1;}\n else{x=0;}\n if(x==3){System.out.println(\"Yes\");System.exit(0);}\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n int D =sc.nextInt();\n int E =sc.nextInt();\n if(D==E){x=x+1;}\n else{x=0;}\n if(x==3){System.out.println(\"Yes\");System.exit(0);}\n }", "{\n int D =sc.nextInt();\n int E =sc.nextInt();\n if(D==E){x=x+1;}\n else{x=0;}\n if(x==3){System.out.println(\"Yes\");System.exit(0);}\n }", "int D =sc.nextInt();", "D", "sc.nextInt()", "sc.nextInt", "sc", "int E =sc.nextInt();", "E", "sc.nextInt()", "sc.nextInt", "sc", "if(D==E){x=x+1;}\n else{x=0;}", "D==E", "D", "E", "{x=x+1;}", "x=x+1", "x", "x+1", "x", "1", "{x=0;}", "x=0", "x", "0", "if(x==3){System.out.println(\"Yes\");System.exit(0);}", "x==3", "x", "3", "{System.out.println(\"Yes\");System.exit(0);}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.exit(0)", "System.exit", "System", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int N =sc.nextInt();\n int x =0;\n for(int i=0;i<N;i++){\n int D =sc.nextInt();\n int E =sc.nextInt();\n if(D==E){x=x+1;}\n else{x=0;}\n if(x==3){System.out.println(\"Yes\");System.exit(0);}\n }\n System.out.println(\"No\");\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n int N =sc.nextInt();\n int x =0;\n for(int i=0;i<N;i++){\n int D =sc.nextInt();\n int E =sc.nextInt();\n if(D==E){x=x+1;}\n else{x=0;}\n if(x==3){System.out.println(\"Yes\");System.exit(0);}\n }\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int N =sc.nextInt(); int x =0; for(int i=0;i<N;i++){ int D =sc.nextInt(); int E =sc.nextInt(); if(D==E){x=x+1;} else{x=0;} if(x==3){System.out.println("Yes");System.exit(0);} } System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 14, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 17, 3, 0, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 57, 67 ], [ 46, 68 ], [ 68, 69 ], [ 68, 70 ], [ 8, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 6, 81 ], [ 81, 82 ] ]
[ "import java.util.*;\nclass Main{\n public static void main(String[] args){\n Scanner sc= new Scanner(System.in);\n int n=sc.nextInt();\n int c=0;\n int f=0;\n for (int i=0;i<n;i++){\n int a=sc.nextInt();\n int b=sc.nextInt();\n if (a==b){\n c++;\n if (c==3){\n f=1;\n System.out.print(\"Yes\");\n break;\n }\n }\n else\n c=0;\n }\n if(f==0)\n System.out.print(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n Scanner sc= new Scanner(System.in);\n int n=sc.nextInt();\n int c=0;\n int f=0;\n for (int i=0;i<n;i++){\n int a=sc.nextInt();\n int b=sc.nextInt();\n if (a==b){\n c++;\n if (c==3){\n f=1;\n System.out.print(\"Yes\");\n break;\n }\n }\n else\n c=0;\n }\n if(f==0)\n System.out.print(\"No\");\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc= new Scanner(System.in);\n int n=sc.nextInt();\n int c=0;\n int f=0;\n for (int i=0;i<n;i++){\n int a=sc.nextInt();\n int b=sc.nextInt();\n if (a==b){\n c++;\n if (c==3){\n f=1;\n System.out.print(\"Yes\");\n break;\n }\n }\n else\n c=0;\n }\n if(f==0)\n System.out.print(\"No\");\n }", "main", "{\n Scanner sc= new Scanner(System.in);\n int n=sc.nextInt();\n int c=0;\n int f=0;\n for (int i=0;i<n;i++){\n int a=sc.nextInt();\n int b=sc.nextInt();\n if (a==b){\n c++;\n if (c==3){\n f=1;\n System.out.print(\"Yes\");\n break;\n }\n }\n else\n c=0;\n }\n if(f==0)\n System.out.print(\"No\");\n }", "Scanner sc= new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int c=0;", "c", "0", "int f=0;", "f", "0", "for (int i=0;i<n;i++){\n int a=sc.nextInt();\n int b=sc.nextInt();\n if (a==b){\n c++;\n if (c==3){\n f=1;\n System.out.print(\"Yes\");\n break;\n }\n }\n else\n c=0;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n int a=sc.nextInt();\n int b=sc.nextInt();\n if (a==b){\n c++;\n if (c==3){\n f=1;\n System.out.print(\"Yes\");\n break;\n }\n }\n else\n c=0;\n }", "{\n int a=sc.nextInt();\n int b=sc.nextInt();\n if (a==b){\n c++;\n if (c==3){\n f=1;\n System.out.print(\"Yes\");\n break;\n }\n }\n else\n c=0;\n }", "int a=sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b=sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "if (a==b){\n c++;\n if (c==3){\n f=1;\n System.out.print(\"Yes\");\n break;\n }\n }\n else\n c=0;", "a==b", "a", "b", "{\n c++;\n if (c==3){\n f=1;\n System.out.print(\"Yes\");\n break;\n }\n }", "c++", "c", "if (c==3){\n f=1;\n System.out.print(\"Yes\");\n break;\n }", "c==3", "c", "3", "{\n f=1;\n System.out.print(\"Yes\");\n break;\n }", "f=1", "f", "1", "System.out.print(\"Yes\")", "System.out.print", "System.out", "System", "System.out", "\"Yes\"", "break;", "c=0", "c", "0", "if(f==0)\n System.out.print(\"No\");", "f==0", "f", "0", "System.out.print(\"No\")", "System.out.print", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc= new Scanner(System.in); int n=sc.nextInt(); int c=0; int f=0; for (int i=0;i<n;i++){ int a=sc.nextInt(); int b=sc.nextInt(); if (a==b){ c++; if (c==3){ f=1; System.out.print("Yes"); break; } } else c=0; } if(f==0) System.out.print("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 8, 2, 4, 18, 13, 4, 18, 13, 17, 17, 14, 2, 13, 17, 30, 0, 13, 17, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 13, 17, 29, 4, 18, 13, 17, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 4, 18, 20, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 2, 17, 17, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 13, 0, 13, 0, 13, 17, 12, 13, 30, 0, 13, 20, 0, 13, 20, 13, 0, 13, 0, 13, 17, 23, 13, 12, 13, 30, 41, 13, 20, 17, 41, 13, 17, 41, 13, 42, 2, 0, 13, 4, 13, 40, 17, 30, 14, 2, 13, 17, 3, 0, 18, 13, 40, 13, 13, 29, 20, 12, 13, 30, 41, 13, 17, 41, 13, 4, 13, 42, 2, 13, 17, 0, 13, 4, 13, 41, 13, 2, 13, 17, 14, 13, 0, 13, 4, 13, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 13, 17, 13, 17, 14, 13, 29, 40, 13, 29, 13, 12, 13, 30, 41, 13, 17, 41, 13, 4, 13, 42, 2, 13, 17, 0, 13, 4, 13, 41, 13, 2, 13, 17, 14, 13, 0, 13, 4, 13, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 13, 17, 13, 17, 14, 13, 29, 40, 13, 29, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 4, 13, 42, 2, 13, 17, 0, 13, 4, 13, 41, 13, 2, 13, 17, 14, 13, 0, 13, 4, 13, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 13, 17, 13, 17, 14, 2, 13, 17, 30, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 13, 17, 0, 13, 17, 14, 13, 29, 40, 13, 29, 13, 12, 13, 30, 0, 13, 4, 18, 13, 13, 0, 13, 17, 13, 14, 2, 13, 40, 17, 0, 18, 13, 17, 40, 17, 12, 13, 30, 14, 2, 13, 13, 4, 13, 29, 18, 13, 40, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 436, 14 ], [ 436, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 17, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 41, 49 ], [ 41, 50 ], [ 38, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 66, 71 ], [ 17, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 15, 76 ], [ 76, 77 ], [ 15, 78 ], [ 78, 79 ], [ 436, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 82, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 89, 93 ], [ 82, 94 ], [ 94, 95 ], [ 95, 96 ], [ 82, 97 ], [ 97, 98 ], [ 98, 99 ], [ 82, 100 ], [ 100, 101 ], [ 101, 102 ], [ 80, 103 ], [ 103, 104 ], [ 436, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 105, 112 ], [ 112, 113 ], [ 105, 114 ], [ 114, 115 ], [ 105, 116 ], [ 116, 117 ], [ 105, 118 ], [ 118, 119 ], [ 105, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 126, 128 ], [ 122, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 132, 134 ], [ 105, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 141, 143 ], [ 137, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 147, 149 ], [ 135, 150 ], [ 150, 151 ], [ 105, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 159 ], [ 159, 160 ], [ 159, 161 ], [ 154, 162 ], [ 162, 163 ], [ 154, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 165, 170 ], [ 170, 171 ], [ 164, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 173, 177 ], [ 172, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 178, 183 ], [ 154, 184 ], [ 184, 185 ], [ 105, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 188, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 188, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 196, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 188, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 206, 208 ], [ 188, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 188, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 217, 222 ], [ 216, 223 ], [ 223, 224 ], [ 223, 225 ], [ 215, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 230, 234 ], [ 229, 235 ], [ 188, 236 ], [ 236, 237 ], [ 236, 238 ], [ 238, 239 ], [ 239, 240 ], [ 188, 241 ], [ 241, 242 ], [ 105, 243 ], [ 243, 244 ], [ 243, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 245, 249 ], [ 249, 250 ], [ 249, 251 ], [ 251, 252 ], [ 245, 253 ], [ 253, 254 ], [ 254, 255 ], [ 254, 256 ], [ 253, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 245, 261 ], [ 261, 262 ], [ 261, 263 ], [ 263, 264 ], [ 263, 265 ], [ 245, 266 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 245, 272 ], [ 272, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 275, 277 ], [ 277, 278 ], [ 274, 279 ], [ 273, 280 ], [ 280, 281 ], [ 280, 282 ], [ 272, 283 ], [ 283, 284 ], [ 284, 285 ], [ 284, 286 ], [ 286, 287 ], [ 287, 288 ], [ 288, 289 ], [ 288, 290 ], [ 287, 291 ], [ 286, 292 ], [ 245, 293 ], [ 293, 294 ], [ 293, 295 ], [ 295, 296 ], [ 296, 297 ], [ 245, 298 ], [ 298, 299 ], [ 105, 300 ], [ 300, 301 ], [ 300, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 302, 306 ], [ 306, 307 ], [ 306, 308 ], [ 302, 309 ], [ 309, 310 ], [ 309, 311 ], [ 311, 312 ], [ 302, 313 ], [ 313, 314 ], [ 314, 315 ], [ 314, 316 ], [ 313, 317 ], [ 317, 318 ], [ 317, 319 ], [ 319, 320 ], [ 302, 321 ], [ 321, 322 ], [ 321, 323 ], [ 323, 324 ], [ 323, 325 ], [ 302, 326 ], [ 326, 327 ], [ 326, 328 ], [ 328, 329 ], [ 328, 330 ], [ 330, 331 ], [ 302, 332 ], [ 332, 333 ], [ 333, 334 ], [ 334, 335 ], [ 335, 336 ], [ 335, 337 ], [ 337, 338 ], [ 334, 339 ], [ 333, 340 ], [ 340, 341 ], [ 340, 342 ], [ 332, 343 ], [ 343, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 347, 348 ], [ 348, 349 ], [ 348, 350 ], [ 347, 351 ], [ 346, 352 ], [ 302, 353 ], [ 353, 354 ], [ 354, 355 ], [ 354, 356 ], [ 353, 357 ], [ 357, 358 ], [ 358, 359 ], [ 359, 360 ], [ 360, 361 ], [ 361, 362 ], [ 361, 363 ], [ 363, 364 ], [ 360, 365 ], [ 359, 366 ], [ 366, 367 ], [ 366, 368 ], [ 358, 369 ], [ 369, 370 ], [ 370, 371 ], [ 370, 372 ], [ 372, 373 ], [ 373, 374 ], [ 373, 375 ], [ 372, 376 ], [ 376, 377 ], [ 376, 378 ], [ 302, 379 ], [ 379, 380 ], [ 379, 381 ], [ 381, 382 ], [ 382, 383 ], [ 302, 384 ], [ 384, 385 ], [ 105, 386 ], [ 386, 387 ], [ 386, 388 ], [ 388, 389 ], [ 389, 390 ], [ 389, 391 ], [ 391, 392 ], [ 392, 393 ], [ 391, 394 ], [ 391, 395 ], [ 395, 396 ], [ 395, 397 ], [ 391, 398 ], [ 388, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 402, 403 ], [ 399, 404 ], [ 404, 405 ], [ 405, 406 ], [ 405, 407 ], [ 404, 408 ], [ 408, 409 ], [ 105, 410 ], [ 410, 411 ], [ 410, 412 ], [ 412, 413 ], [ 413, 414 ], [ 414, 415 ], [ 414, 416 ], [ 413, 417 ], [ 417, 418 ], [ 412, 419 ], [ 419, 420 ], [ 420, 421 ], [ 420, 422 ], [ 422, 423 ], [ 105, 424 ], [ 424, 425 ], [ 424, 426 ], [ 426, 427 ], [ 427, 428 ], [ 428, 429 ], [ 428, 430 ], [ 427, 431 ], [ 426, 432 ], [ 432, 433 ], [ 433, 434 ], [ 0, 435 ], [ 435, 436 ], [ 435, 437 ] ]
[ "import java.io.DataInputStream;\nimport java.io.FileInputStream;\nimport java.io.IOException;\nimport java.io.PrintWriter;\n\npublic class Main {\n static class Reader\n {\n final private int BUFFER_SIZE = 1 << 16;\n private DataInputStream din;\n private byte[] buffer;\n private int bufferPointer, bytesRead;\n\n public Reader()\n {\n din = new DataInputStream(System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public Reader(String file_name) throws IOException\n {\n din = new DataInputStream(new FileInputStream(file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public String readLine() throws IOException\n {\n byte[] buf = new byte[1_000_010]; // line length\n int cnt = 0, c;\n while ((c = read()) != -1)\n {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }\n\n public int nextInt() throws IOException\n {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do\n {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (neg)\n return -ret;\n return ret;\n }\n\n public long nextLong() throws IOException\n {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n\n public double nextDouble() throws IOException\n {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n\n if (c == '.')\n {\n while ((c = read()) >= '0' && c <= '9')\n {\n ret += (c - '0') / (div *= 10);\n }\n }\n\n if (neg)\n return -ret;\n return ret;\n }\n\n private void fillBuffer() throws IOException\n {\n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n\n private byte read() throws IOException\n {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n\n public void close() throws IOException\n {\n if (din == null)\n return;\n din.close();\n }\n }\n void solve(Reader sc, PrintWriter pw) throws IOException {\n int N = sc.nextInt();\n int currentSum = 0;\n for (int i = 0; i < N; i++) {\n int current = sc.nextInt() == sc.nextInt() ? 1 : 0;\n if (current == 0) {\n currentSum = 0;\n } else {\n currentSum++;\n if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n }\n pw.println(\"No\");\n }\n public static void main(String[] args) throws IOException {\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n// PrintWriter pw = new PrintWriter(System.out, true);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}\n\n", "import java.io.DataInputStream;", "DataInputStream", "java.io", "import java.io.FileInputStream;", "FileInputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "public class Main {\n static class Reader\n {\n final private int BUFFER_SIZE = 1 << 16;\n private DataInputStream din;\n private byte[] buffer;\n private int bufferPointer, bytesRead;\n\n public Reader()\n {\n din = new DataInputStream(System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public Reader(String file_name) throws IOException\n {\n din = new DataInputStream(new FileInputStream(file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public String readLine() throws IOException\n {\n byte[] buf = new byte[1_000_010]; // line length\n int cnt = 0, c;\n while ((c = read()) != -1)\n {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }\n\n public int nextInt() throws IOException\n {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do\n {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (neg)\n return -ret;\n return ret;\n }\n\n public long nextLong() throws IOException\n {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n\n public double nextDouble() throws IOException\n {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n\n if (c == '.')\n {\n while ((c = read()) >= '0' && c <= '9')\n {\n ret += (c - '0') / (div *= 10);\n }\n }\n\n if (neg)\n return -ret;\n return ret;\n }\n\n private void fillBuffer() throws IOException\n {\n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n\n private byte read() throws IOException\n {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n\n public void close() throws IOException\n {\n if (din == null)\n return;\n din.close();\n }\n }\n void solve(Reader sc, PrintWriter pw) throws IOException {\n int N = sc.nextInt();\n int currentSum = 0;\n for (int i = 0; i < N; i++) {\n int current = sc.nextInt() == sc.nextInt() ? 1 : 0;\n if (current == 0) {\n currentSum = 0;\n } else {\n currentSum++;\n if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n }\n pw.println(\"No\");\n }\n public static void main(String[] args) throws IOException {\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n// PrintWriter pw = new PrintWriter(System.out, true);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}", "Main", "void solve(Reader sc, PrintWriter pw) throws IOException {\n int N = sc.nextInt();\n int currentSum = 0;\n for (int i = 0; i < N; i++) {\n int current = sc.nextInt() == sc.nextInt() ? 1 : 0;\n if (current == 0) {\n currentSum = 0;\n } else {\n currentSum++;\n if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n }\n pw.println(\"No\");\n }", "solve", "{\n int N = sc.nextInt();\n int currentSum = 0;\n for (int i = 0; i < N; i++) {\n int current = sc.nextInt() == sc.nextInt() ? 1 : 0;\n if (current == 0) {\n currentSum = 0;\n } else {\n currentSum++;\n if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n }\n pw.println(\"No\");\n }", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int currentSum = 0;", "currentSum", "0", "for (int i = 0; i < N; i++) {\n int current = sc.nextInt() == sc.nextInt() ? 1 : 0;\n if (current == 0) {\n currentSum = 0;\n } else {\n currentSum++;\n if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n int current = sc.nextInt() == sc.nextInt() ? 1 : 0;\n if (current == 0) {\n currentSum = 0;\n } else {\n currentSum++;\n if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n }", "{\n int current = sc.nextInt() == sc.nextInt() ? 1 : 0;\n if (current == 0) {\n currentSum = 0;\n } else {\n currentSum++;\n if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n }", "int current = sc.nextInt() == sc.nextInt() ? 1 : 0;", "current", "sc.nextInt() == sc.nextInt() ? 1 : 0", "sc.nextInt() == sc.nextInt()", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextInt()", "sc.nextInt", "sc", "1", "0", "if (current == 0) {\n currentSum = 0;\n } else {\n currentSum++;\n if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }\n }", "current == 0", "current", "0", "{\n currentSum = 0;\n }", "currentSum = 0", "currentSum", "0", "{\n currentSum++;\n if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }\n }", "currentSum++", "currentSum", "if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }", "currentSum == 3", "currentSum", "3", "{\n pw.println(\"Yes\");\n return;\n }", "pw.println(\"Yes\")", "pw.println", "pw", "\"Yes\"", "return;", "pw.println(\"No\")", "pw.println", "pw", "\"No\"", "Reader sc", "sc", "PrintWriter pw", "pw", "public static void main(String[] args) throws IOException {\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n// PrintWriter pw = new PrintWriter(System.out, true);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }", "main", "{\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n// PrintWriter pw = new PrintWriter(System.out, true);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }", "Reader sc = new Reader();", "sc", "new Reader()", "PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "new Main().solve(sc, pw)", "new Main().solve", "new Main()", "sc", "pw", "pw.flush()", "pw.flush", "pw", "pw.close()", "pw.close", "pw", "sc.close()", "sc.close", "sc", "String[] args", "args", "static class Reader\n {\n final private int BUFFER_SIZE = 1 << 16;\n private DataInputStream din;\n private byte[] buffer;\n private int bufferPointer, bytesRead;\n\n public Reader()\n {\n din = new DataInputStream(System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public Reader(String file_name) throws IOException\n {\n din = new DataInputStream(new FileInputStream(file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public String readLine() throws IOException\n {\n byte[] buf = new byte[1_000_010]; // line length\n int cnt = 0, c;\n while ((c = read()) != -1)\n {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }\n\n public int nextInt() throws IOException\n {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do\n {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (neg)\n return -ret;\n return ret;\n }\n\n public long nextLong() throws IOException\n {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n\n public double nextDouble() throws IOException\n {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n\n if (c == '.')\n {\n while ((c = read()) >= '0' && c <= '9')\n {\n ret += (c - '0') / (div *= 10);\n }\n }\n\n if (neg)\n return -ret;\n return ret;\n }\n\n private void fillBuffer() throws IOException\n {\n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n\n private byte read() throws IOException\n {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n\n public void close() throws IOException\n {\n if (din == null)\n return;\n din.close();\n }\n }", "Reader", "final private int BUFFER_SIZE = 1 << 16;", "BUFFER_SIZE", "1 << 16", "1", "16", "private DataInputStream din;", "din", "private byte[] buffer;", "buffer", "private int bufferPointer", "bufferPointer", "bytesRead;", "bytesRead", "public Reader()\n {\n din = new DataInputStream(System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }", "Reader", "{\n din = new DataInputStream(System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }", "din = new DataInputStream(System.in)", "din", "new DataInputStream(System.in)", "buffer = new byte[BUFFER_SIZE]", "buffer", "new byte[BUFFER_SIZE]", "BUFFER_SIZE", "bufferPointer = bytesRead = 0", "bufferPointer", "bytesRead = 0", "bytesRead", "0", "public Reader(String file_name) throws IOException\n {\n din = new DataInputStream(new FileInputStream(file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }", "Reader", "{\n din = new DataInputStream(new FileInputStream(file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }", "din = new DataInputStream(new FileInputStream(file_name))", "din", "new DataInputStream(new FileInputStream(file_name))", "buffer = new byte[BUFFER_SIZE]", "buffer", "new byte[BUFFER_SIZE]", "BUFFER_SIZE", "bufferPointer = bytesRead = 0", "bufferPointer", "bytesRead = 0", "bytesRead", "0", "String file_name", "file_name", "public String readLine() throws IOException\n {\n byte[] buf = new byte[1_000_010]; // line length\n int cnt = 0, c;\n while ((c = read()) != -1)\n {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }", "readLine", "{\n byte[] buf = new byte[1_000_010]; // line length\n int cnt = 0, c;\n while ((c = read()) != -1)\n {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }", "byte[] buf = new byte[1_000_010];", "buf", "new byte[1_000_010]", "1_000_010", "int cnt = 0", "cnt", "0", "c;", "c", "while ((c = read()) != -1)\n {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }", "(c = read()) != -1", "(c = read())", "c", "read()", "read", "-1", "1", "{\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }", "if (c == '\\n')\n break;", "c == '\\n'", "c", "'\\n'", "break;", "buf[cnt++] = (byte) c", "buf[cnt++]", "buf", "cnt++", "cnt", "(byte) c", "return new String(buf, 0, cnt);", "new String(buf, 0, cnt)", "public int nextInt() throws IOException\n {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do\n {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (neg)\n return -ret;\n return ret;\n }", "nextInt", "{\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do\n {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (neg)\n return -ret;\n return ret;\n }", "int ret = 0;", "ret", "0", "byte c = read();", "c", "read()", "read", "while (c <= ' ')\n c = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg)\n c = read();", "neg", "c = read()", "c", "read()", "read", "do\n {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{\n ret = ret * 10 + c - '0';\n }", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (neg)\n return -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "public long nextLong() throws IOException\n {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }", "nextLong", "{\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }", "long ret = 0;", "ret", "0", "byte c = read();", "c", "read()", "read", "while (c <= ' ')\n c = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg)\n c = read();", "neg", "c = read()", "c", "read()", "read", "do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{\n ret = ret * 10 + c - '0';\n }", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (neg)\n return -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "public double nextDouble() throws IOException\n {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n\n if (c == '.')\n {\n while ((c = read()) >= '0' && c <= '9')\n {\n ret += (c - '0') / (div *= 10);\n }\n }\n\n if (neg)\n return -ret;\n return ret;\n }", "nextDouble", "{\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n\n if (c == '.')\n {\n while ((c = read()) >= '0' && c <= '9')\n {\n ret += (c - '0') / (div *= 10);\n }\n }\n\n if (neg)\n return -ret;\n return ret;\n }", "double ret = 0", "ret", "0", "div = 1;", "div", "1", "byte c = read();", "c", "read()", "read", "while (c <= ' ')\n c = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg)\n c = read();", "neg", "c = read()", "c", "read()", "read", "do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{\n ret = ret * 10 + c - '0';\n }", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (c == '.')\n {\n while ((c = read()) >= '0' && c <= '9')\n {\n ret += (c - '0') / (div *= 10);\n }\n }", "c == '.'", "c", "'.'", "{\n while ((c = read()) >= '0' && c <= '9')\n {\n ret += (c - '0') / (div *= 10);\n }\n }", "while ((c = read()) >= '0' && c <= '9')\n {\n ret += (c - '0') / (div *= 10);\n }", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{\n ret += (c - '0') / (div *= 10);\n }", "ret += (c - '0') / (div *= 10)", "ret", "(c - '0') / (div *= 10)", "(c - '0')", "c", "'0'", "(div *= 10)", "div", "10", "if (neg)\n return -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "private void fillBuffer() throws IOException\n {\n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }", "fillBuffer", "{\n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }", "bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)", "bytesRead", "din.read(buffer, bufferPointer = 0, BUFFER_SIZE)", "din.read", "din", "buffer", "bufferPointer = 0", "bufferPointer", "0", "BUFFER_SIZE", "if (bytesRead == -1)\n buffer[0] = -1;", "bytesRead == -1", "bytesRead", "-1", "1", "buffer[0] = -1", "buffer[0]", "buffer", "0", "-1", "1", "private byte read() throws IOException\n {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }", "read", "{\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }", "if (bufferPointer == bytesRead)\n fillBuffer();", "bufferPointer == bytesRead", "bufferPointer", "bytesRead", "fillBuffer()", "fillBuffer", "return buffer[bufferPointer++];", "buffer[bufferPointer++]", "buffer", "bufferPointer++", "bufferPointer", "public void close() throws IOException\n {\n if (din == null)\n return;\n din.close();\n }", "close", "{\n if (din == null)\n return;\n din.close();\n }", "if (din == null)\n return;", "din == null", "din", "null", "return;", "din.close()", "din.close", "din", "public class Main {\n static class Reader\n {\n final private int BUFFER_SIZE = 1 << 16;\n private DataInputStream din;\n private byte[] buffer;\n private int bufferPointer, bytesRead;\n\n public Reader()\n {\n din = new DataInputStream(System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public Reader(String file_name) throws IOException\n {\n din = new DataInputStream(new FileInputStream(file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public String readLine() throws IOException\n {\n byte[] buf = new byte[1_000_010]; // line length\n int cnt = 0, c;\n while ((c = read()) != -1)\n {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }\n\n public int nextInt() throws IOException\n {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do\n {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (neg)\n return -ret;\n return ret;\n }\n\n public long nextLong() throws IOException\n {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n\n public double nextDouble() throws IOException\n {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n\n if (c == '.')\n {\n while ((c = read()) >= '0' && c <= '9')\n {\n ret += (c - '0') / (div *= 10);\n }\n }\n\n if (neg)\n return -ret;\n return ret;\n }\n\n private void fillBuffer() throws IOException\n {\n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n\n private byte read() throws IOException\n {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n\n public void close() throws IOException\n {\n if (din == null)\n return;\n din.close();\n }\n }\n void solve(Reader sc, PrintWriter pw) throws IOException {\n int N = sc.nextInt();\n int currentSum = 0;\n for (int i = 0; i < N; i++) {\n int current = sc.nextInt() == sc.nextInt() ? 1 : 0;\n if (current == 0) {\n currentSum = 0;\n } else {\n currentSum++;\n if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n }\n pw.println(\"No\");\n }\n public static void main(String[] args) throws IOException {\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n// PrintWriter pw = new PrintWriter(System.out, true);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}", "public class Main {\n static class Reader\n {\n final private int BUFFER_SIZE = 1 << 16;\n private DataInputStream din;\n private byte[] buffer;\n private int bufferPointer, bytesRead;\n\n public Reader()\n {\n din = new DataInputStream(System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public Reader(String file_name) throws IOException\n {\n din = new DataInputStream(new FileInputStream(file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n\n public String readLine() throws IOException\n {\n byte[] buf = new byte[1_000_010]; // line length\n int cnt = 0, c;\n while ((c = read()) != -1)\n {\n if (c == '\\n')\n break;\n buf[cnt++] = (byte) c;\n }\n return new String(buf, 0, cnt);\n }\n\n public int nextInt() throws IOException\n {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do\n {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n\n if (neg)\n return -ret;\n return ret;\n }\n\n public long nextLong() throws IOException\n {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n\n public double nextDouble() throws IOException\n {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n\n do {\n ret = ret * 10 + c - '0';\n }\n while ((c = read()) >= '0' && c <= '9');\n\n if (c == '.')\n {\n while ((c = read()) >= '0' && c <= '9')\n {\n ret += (c - '0') / (div *= 10);\n }\n }\n\n if (neg)\n return -ret;\n return ret;\n }\n\n private void fillBuffer() throws IOException\n {\n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n\n private byte read() throws IOException\n {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n\n public void close() throws IOException\n {\n if (din == null)\n return;\n din.close();\n }\n }\n void solve(Reader sc, PrintWriter pw) throws IOException {\n int N = sc.nextInt();\n int currentSum = 0;\n for (int i = 0; i < N; i++) {\n int current = sc.nextInt() == sc.nextInt() ? 1 : 0;\n if (current == 0) {\n currentSum = 0;\n } else {\n currentSum++;\n if (currentSum == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n }\n pw.println(\"No\");\n }\n public static void main(String[] args) throws IOException {\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n// PrintWriter pw = new PrintWriter(System.out, true);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}", "Main" ]
import java.io.DataInputStream; import java.io.FileInputStream; import java.io.IOException; import java.io.PrintWriter; public class Main { static class Reader { final private int BUFFER_SIZE = 1 << 16; private DataInputStream din; private byte[] buffer; private int bufferPointer, bytesRead; public Reader() { din = new DataInputStream(System.in); buffer = new byte[BUFFER_SIZE]; bufferPointer = bytesRead = 0; } public Reader(String file_name) throws IOException { din = new DataInputStream(new FileInputStream(file_name)); buffer = new byte[BUFFER_SIZE]; bufferPointer = bytesRead = 0; } public String readLine() throws IOException { byte[] buf = new byte[1_000_010]; // line length int cnt = 0, c; while ((c = read()) != -1) { if (c == '\n') break; buf[cnt++] = (byte) c; } return new String(buf, 0, cnt); } public int nextInt() throws IOException { int ret = 0; byte c = read(); while (c <= ' ') c = read(); boolean neg = (c == '-'); if (neg) c = read(); do { ret = ret * 10 + c - '0'; } while ((c = read()) >= '0' && c <= '9'); if (neg) return -ret; return ret; } public long nextLong() throws IOException { long ret = 0; byte c = read(); while (c <= ' ') c = read(); boolean neg = (c == '-'); if (neg) c = read(); do { ret = ret * 10 + c - '0'; } while ((c = read()) >= '0' && c <= '9'); if (neg) return -ret; return ret; } public double nextDouble() throws IOException { double ret = 0, div = 1; byte c = read(); while (c <= ' ') c = read(); boolean neg = (c == '-'); if (neg) c = read(); do { ret = ret * 10 + c - '0'; } while ((c = read()) >= '0' && c <= '9'); if (c == '.') { while ((c = read()) >= '0' && c <= '9') { ret += (c - '0') / (div *= 10); } } if (neg) return -ret; return ret; } private void fillBuffer() throws IOException { bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); if (bytesRead == -1) buffer[0] = -1; } private byte read() throws IOException { if (bufferPointer == bytesRead) fillBuffer(); return buffer[bufferPointer++]; } public void close() throws IOException { if (din == null) return; din.close(); } } void solve(Reader sc, PrintWriter pw) throws IOException { int N = sc.nextInt(); int currentSum = 0; for (int i = 0; i < N; i++) { int current = sc.nextInt() == sc.nextInt() ? 1 : 0; if (current == 0) { currentSum = 0; } else { currentSum++; if (currentSum == 3) { pw.println("Yes"); return; } } } pw.println("No"); } public static void main(String[] args) throws IOException { Reader sc = new Reader(); PrintWriter pw = new PrintWriter(System.out); // PrintWriter pw = new PrintWriter(System.out, true); new Main().solve(sc, pw); pw.flush(); pw.close(); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 14, 4, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 30, 29, 17, 29, 17, 23, 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 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 58, 61 ], [ 57, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 57, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ], [ 4, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 81, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 99, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 98, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 111, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 118, 124 ], [ 98, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 126, 132 ], [ 125, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 136, 138 ], [ 133, 139 ], [ 96, 140 ], [ 140, 141 ], [ 141, 142 ], [ 80, 143 ], [ 143, 144 ], [ 78, 145 ], [ 145, 146 ], [ 78, 147 ], [ 147, 148 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String args[])\n {\n Scanner s= new Scanner(System.in);\n \n int n = s.nextInt();\n int a[][] = new int [n][2];\n for(int i=0;i<n;i++)\n {\n for(int j=0;j<2;j++)\n {\n a[i][j]=s.nextInt();\n\n\n }\n }\n if(Triplate(a,n))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n \n\n }\n public static boolean Triplate(int [][] arr,int n)\n {\n for(int i=0;i<n-2;i++)\n {\n\n if(arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1] )\n {\n return true;\n }\n }\n return false;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String args[])\n {\n Scanner s= new Scanner(System.in);\n \n int n = s.nextInt();\n int a[][] = new int [n][2];\n for(int i=0;i<n;i++)\n {\n for(int j=0;j<2;j++)\n {\n a[i][j]=s.nextInt();\n\n\n }\n }\n if(Triplate(a,n))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n \n\n }\n public static boolean Triplate(int [][] arr,int n)\n {\n for(int i=0;i<n-2;i++)\n {\n\n if(arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1] )\n {\n return true;\n }\n }\n return false;\n }\n}", "Main", "public static void main(String args[])\n {\n Scanner s= new Scanner(System.in);\n \n int n = s.nextInt();\n int a[][] = new int [n][2];\n for(int i=0;i<n;i++)\n {\n for(int j=0;j<2;j++)\n {\n a[i][j]=s.nextInt();\n\n\n }\n }\n if(Triplate(a,n))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n \n\n }", "main", "{\n Scanner s= new Scanner(System.in);\n \n int n = s.nextInt();\n int a[][] = new int [n][2];\n for(int i=0;i<n;i++)\n {\n for(int j=0;j<2;j++)\n {\n a[i][j]=s.nextInt();\n\n\n }\n }\n if(Triplate(a,n))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n \n\n }", "Scanner s= new Scanner(System.in);", "s", "new Scanner(System.in)", "int n = s.nextInt();", "n", "s.nextInt()", "s.nextInt", "s", "int a[][] = new int [n][2];", "a", "new int [n][2]", "n", "2", "for(int i=0;i<n;i++)\n {\n for(int j=0;j<2;j++)\n {\n a[i][j]=s.nextInt();\n\n\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n for(int j=0;j<2;j++)\n {\n a[i][j]=s.nextInt();\n\n\n }\n }", "{\n for(int j=0;j<2;j++)\n {\n a[i][j]=s.nextInt();\n\n\n }\n }", "for(int j=0;j<2;j++)\n {\n a[i][j]=s.nextInt();\n\n\n }", "int j=0;", "int j=0;", "j", "0", "j<2", "j", "2", "j++", "j++", "j", "{\n a[i][j]=s.nextInt();\n\n\n }", "{\n a[i][j]=s.nextInt();\n\n\n }", "a[i][j]=s.nextInt()", "a[i][j]", "a[i]", "a", "i", "j", "s.nextInt()", "s.nextInt", "s", "if(Triplate(a,n))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }", "Triplate(a,n)", "Triplate", "a", "n", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String args[]", "args", "public static boolean Triplate(int [][] arr,int n)\n {\n for(int i=0;i<n-2;i++)\n {\n\n if(arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1] )\n {\n return true;\n }\n }\n return false;\n }", "Triplate", "{\n for(int i=0;i<n-2;i++)\n {\n\n if(arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1] )\n {\n return true;\n }\n }\n return false;\n }", "for(int i=0;i<n-2;i++)\n {\n\n if(arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1] )\n {\n return true;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n-2", "i", "n-2", "n", "2", "i++", "i++", "i", "{\n\n if(arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1] )\n {\n return true;\n }\n }", "{\n\n if(arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1] )\n {\n return true;\n }\n }", "if(arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1] )\n {\n return true;\n }", "arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]", "arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]", "arr[i][0]==arr[i][1]", "arr[i][0]", "arr[i]", "arr", "i", "0", "arr[i][1]", "arr[i]", "arr", "i", "1", "arr[i+1][0]==arr[i+1][1]", "arr[i+1][0]", "arr[i+1]", "arr", "i+1", "i", "1", "0", "arr[i+1][1]", "arr[i+1]", "arr", "i+1", "i", "1", "1", "arr[i+2][0]==arr[i+2][1]", "arr[i+2][0]", "arr[i+2]", "arr", "i+2", "i", "2", "0", "arr[i+2][1]", "arr[i+2]", "arr", "i+2", "i", "2", "1", "{\n return true;\n }", "return true;", "true", "return false;", "false", "int [][] arr", "arr", "int n", "n" ]
import java.util.Scanner; class Main{ public static void main(String args[]) { Scanner s= new Scanner(System.in); int n = s.nextInt(); int a[][] = new int [n][2]; for(int i=0;i<n;i++) { for(int j=0;j<2;j++) { a[i][j]=s.nextInt(); } } if(Triplate(a,n)) { System.out.println("Yes"); } else { System.out.println("No"); } } public static boolean Triplate(int [][] arr,int n) { for(int i=0;i<n-2;i++) { if(arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1] ) { return true; } } return false; } }
[ 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, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 14, 2, 18, 13, 13, 18, 13, 13, 40, 13, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 28, 13, 13, 30, 4, 18, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 28, 13, 13, 30, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 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 ], [ 301, 17 ], [ 301, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 20, 36 ], [ 36, 37 ], [ 36, 38 ], [ 20, 40 ], [ 40, 41 ], [ 40, 42 ], [ 20, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 55, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 70, 80 ], [ 80, 81 ], [ 80, 82 ], [ 55, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 87, 94 ], [ 20, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 20, 101 ], [ 101, 102 ], [ 102, 103 ], [ 18, 104 ], [ 104, 105 ], [ 301, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 112, 114 ], [ 112, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 108, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 108, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 124, 134 ], [ 134, 135 ], [ 135, 136 ], [ 124, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 106, 146 ], [ 146, 147 ], [ 301, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 154, 156 ], [ 154, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 150, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 162, 166 ], [ 166, 167 ], [ 167, 168 ], [ 150, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 169, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 176, 178 ], [ 169, 179 ], [ 179, 180 ], [ 180, 181 ], [ 169, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 188, 189 ], [ 187, 190 ], [ 148, 191 ], [ 191, 192 ], [ 301, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 195, 197 ], [ 193, 198 ], [ 198, 199 ], [ 198, 200 ], [ 193, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 204, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 209, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 203, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 193, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 228, 231 ], [ 231, 232 ], [ 193, 233 ], [ 233, 234 ], [ 233, 235 ], [ 235, 236 ], [ 236, 237 ], [ 236, 238 ], [ 235, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 242, 244 ], [ 240, 245 ], [ 245, 246 ], [ 245, 247 ], [ 240, 248 ], [ 248, 249 ], [ 249, 250 ], [ 240, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 253, 255 ], [ 252, 256 ], [ 256, 257 ], [ 235, 258 ], [ 258, 259 ], [ 233, 260 ], [ 260, 261 ], [ 193, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 265, 267 ], [ 264, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 271, 273 ], [ 269, 274 ], [ 274, 275 ], [ 274, 276 ], [ 269, 277 ], [ 277, 278 ], [ 278, 279 ], [ 269, 280 ], [ 280, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 281, 285 ], [ 285, 286 ], [ 264, 287 ], [ 287, 288 ], [ 262, 289 ], [ 289, 290 ], [ 193, 291 ], [ 291, 292 ], [ 291, 293 ], [ 293, 294 ], [ 294, 295 ], [ 295, 296 ], [ 296, 297 ], [ 295, 298 ], [ 298, 299 ], [ 0, 300 ], [ 300, 301 ], [ 300, 302 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.*;\npublic class Main {\n public static void main(String[] args) {\n// Scanner sc = new Scanner(System.in);\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n// int n=sc.nextInt();\n// int x=sc.nextInt();\n// int l[]= new int[n];\n// int r[]= new int[n];\n\n// for (int i=0;i<n;i++){\n// l[i]=sc.nextInt();\n// r[i]=sc.nextInt();\n//\n// }\n int n=sc.nextInt();\n int a[]= new int[n];\n int b[]= new int[n];\n int count=0;\n for (int i=0;i<n;i++){\n a[i]=sc.nextInt();\n b[i]=sc.nextInt();\n if (a[i]==b[i])count++;\n else count=0;\n if (count>=3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n\n\n\n\n\n\n out.flush();\n\n }\n\n\n\n\n\n\n\n\n\n static void sort(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sortReverse(long[] a) {\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long[] readArrayLong(long n) {\n long[] a=new long[(int)n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n// Scanner sc = new Scanner(System.in);\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n// int n=sc.nextInt();\n// int x=sc.nextInt();\n// int l[]= new int[n];\n// int r[]= new int[n];\n\n// for (int i=0;i<n;i++){\n// l[i]=sc.nextInt();\n// r[i]=sc.nextInt();\n//\n// }\n int n=sc.nextInt();\n int a[]= new int[n];\n int b[]= new int[n];\n int count=0;\n for (int i=0;i<n;i++){\n a[i]=sc.nextInt();\n b[i]=sc.nextInt();\n if (a[i]==b[i])count++;\n else count=0;\n if (count>=3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n\n\n\n\n\n\n out.flush();\n\n }\n\n\n\n\n\n\n\n\n\n static void sort(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sortReverse(long[] a) {\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long[] readArrayLong(long n) {\n long[] a=new long[(int)n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}", "Main", "public static void main(String[] args) {\n// Scanner sc = new Scanner(System.in);\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n// int n=sc.nextInt();\n// int x=sc.nextInt();\n// int l[]= new int[n];\n// int r[]= new int[n];\n\n// for (int i=0;i<n;i++){\n// l[i]=sc.nextInt();\n// r[i]=sc.nextInt();\n//\n// }\n int n=sc.nextInt();\n int a[]= new int[n];\n int b[]= new int[n];\n int count=0;\n for (int i=0;i<n;i++){\n a[i]=sc.nextInt();\n b[i]=sc.nextInt();\n if (a[i]==b[i])count++;\n else count=0;\n if (count>=3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n\n\n\n\n\n\n out.flush();\n\n }", "main", "{\n// Scanner sc = new Scanner(System.in);\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n// int n=sc.nextInt();\n// int x=sc.nextInt();\n// int l[]= new int[n];\n// int r[]= new int[n];\n\n// for (int i=0;i<n;i++){\n// l[i]=sc.nextInt();\n// r[i]=sc.nextInt();\n//\n// }\n int n=sc.nextInt();\n int a[]= new int[n];\n int b[]= new int[n];\n int count=0;\n for (int i=0;i<n;i++){\n a[i]=sc.nextInt();\n b[i]=sc.nextInt();\n if (a[i]==b[i])count++;\n else count=0;\n if (count>=3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n\n\n\n\n\n\n out.flush();\n\n }", "FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int a[]= new int[n];", "a", "new int[n]", "n", "int b[]= new int[n];", "b", "new int[n]", "n", "int count=0;", "count", "0", "for (int i=0;i<n;i++){\n a[i]=sc.nextInt();\n b[i]=sc.nextInt();\n if (a[i]==b[i])count++;\n else count=0;\n if (count>=3){\n System.out.println(\"Yes\");\n return;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n a[i]=sc.nextInt();\n b[i]=sc.nextInt();\n if (a[i]==b[i])count++;\n else count=0;\n if (count>=3){\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n a[i]=sc.nextInt();\n b[i]=sc.nextInt();\n if (a[i]==b[i])count++;\n else count=0;\n if (count>=3){\n System.out.println(\"Yes\");\n return;\n }\n }", "a[i]=sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "b[i]=sc.nextInt()", "b[i]", "b", "i", "sc.nextInt()", "sc.nextInt", "sc", "if (a[i]==b[i])count++;\n else count=0;", "a[i]==b[i]", "a[i]", "a", "i", "b[i]", "b", "i", "count++", "count", "count=0", "count", "0", "if (count>=3){\n System.out.println(\"Yes\");\n return;\n }", "count>=3", "count", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "out.flush()", "out.flush", "out", "String[] args", "args", "static void sort(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }", "sort", "{\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }", "ArrayList<Integer> l=new ArrayList<>();", "l", "new ArrayList<>()", "for (int i:a) l.add(i);", "int i", "a", "l.add(i);", "l.add(i)", "l.add", "l", "i", "Collections.sort(l)", "Collections.sort", "Collections", "l", "for (int i=0; i<a.length; i++) a[i]=l.get(i);", "int i=0;", "int i=0;", "i", "0", "i<a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "a[i]=l.get(i);", "a[i]=l.get(i)", "a[i]", "a", "i", "l.get(i)", "l.get", "l", "i", "int[] a", "a", "static void sortReverse(long[] a) {\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }", "sortReverse", "{\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }", "ArrayList<Long> l=new ArrayList<>();", "l", "new ArrayList<>()", "for (long i:a) l.add(i);", "long i", "a", "l.add(i);", "l.add(i)", "l.add", "l", "i", "Collections.sort(l,Collections.reverseOrder())", "Collections.sort", "Collections", "l", "Collections.reverseOrder()", "Collections.reverseOrder", "Collections", "for (int i=0; i<a.length; i++) a[i]=l.get(i);", "int i=0;", "int i=0;", "i", "0", "i<a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "a[i]=l.get(i);", "a[i]=l.get(i)", "a[i]", "a", "i", "l.get(i)", "l.get", "l", "i", "long[] a", "a", "static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long[] readArrayLong(long n) {\n long[] a=new long[(int)n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }", "FastScanner", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st=new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "next", "{\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st=new StringTokenizer(br.readLine());\n }", "st=new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "readArray", "{\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "int[] a=new int[n];", "a", "new int[n]", "n", "for (int i=0; i<n; i++) a[i]=nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "a[i]=nextInt();", "a[i]=nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "long[] readArrayLong(long n) {\n long[] a=new long[(int)n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }", "readArrayLong", "{\n long[] a=new long[(int)n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }", "long[] a=new long[(int)n];", "a", "new long[(int)n]", "(int)n", "for (int i=0; i<n; i++) a[i]=nextLong();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "a[i]=nextLong();", "a[i]=nextLong()", "a[i]", "a", "i", "nextLong()", "nextLong", "return a;", "a", "long n", "n", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public class Main {\n public static void main(String[] args) {\n// Scanner sc = new Scanner(System.in);\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n// int n=sc.nextInt();\n// int x=sc.nextInt();\n// int l[]= new int[n];\n// int r[]= new int[n];\n\n// for (int i=0;i<n;i++){\n// l[i]=sc.nextInt();\n// r[i]=sc.nextInt();\n//\n// }\n int n=sc.nextInt();\n int a[]= new int[n];\n int b[]= new int[n];\n int count=0;\n for (int i=0;i<n;i++){\n a[i]=sc.nextInt();\n b[i]=sc.nextInt();\n if (a[i]==b[i])count++;\n else count=0;\n if (count>=3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n\n\n\n\n\n\n out.flush();\n\n }\n\n\n\n\n\n\n\n\n\n static void sort(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sortReverse(long[] a) {\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long[] readArrayLong(long n) {\n long[] a=new long[(int)n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}", "public class Main {\n public static void main(String[] args) {\n// Scanner sc = new Scanner(System.in);\n FastScanner sc = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n// int n=sc.nextInt();\n// int x=sc.nextInt();\n// int l[]= new int[n];\n// int r[]= new int[n];\n\n// for (int i=0;i<n;i++){\n// l[i]=sc.nextInt();\n// r[i]=sc.nextInt();\n//\n// }\n int n=sc.nextInt();\n int a[]= new int[n];\n int b[]= new int[n];\n int count=0;\n for (int i=0;i<n;i++){\n a[i]=sc.nextInt();\n b[i]=sc.nextInt();\n if (a[i]==b[i])count++;\n else count=0;\n if (count>=3){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n\n\n\n\n\n\n out.flush();\n\n }\n\n\n\n\n\n\n\n\n\n static void sort(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sortReverse(long[] a) {\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long[] readArrayLong(long n) {\n long[] a=new long[(int)n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.*; public class Main { public static void main(String[] args) { // Scanner sc = new Scanner(System.in); FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); // int n=sc.nextInt(); // int x=sc.nextInt(); // int l[]= new int[n]; // int r[]= new int[n]; // for (int i=0;i<n;i++){ // l[i]=sc.nextInt(); // r[i]=sc.nextInt(); // // } int n=sc.nextInt(); int a[]= new int[n]; int b[]= new int[n]; int count=0; for (int i=0;i<n;i++){ a[i]=sc.nextInt(); b[i]=sc.nextInt(); if (a[i]==b[i])count++; else count=0; if (count>=3){ System.out.println("Yes"); return; } } System.out.println("No"); out.flush(); } static void sort(int[] a) { ArrayList<Integer> l=new ArrayList<>(); for (int i:a) l.add(i); Collections.sort(l); for (int i=0; i<a.length; i++) a[i]=l.get(i); } static void sortReverse(long[] a) { ArrayList<Long> l=new ArrayList<>(); for (long i:a) l.add(i); // Collections.sort.(l); Collections.sort(l,Collections.reverseOrder()); for (int i=0; i<a.length; i++) a[i]=l.get(i); } static class FastScanner { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st=new StringTokenizer(""); String next() { while (!st.hasMoreTokens()) try { st=new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } int[] readArray(int n) { int[] a=new int[n]; for (int i=0; i<n; i++) a[i]=nextInt(); return a; } long[] readArrayLong(long n) { long[] a=new long[(int)n]; for (int i=0; i<n; i++) a[i]=nextLong(); return a; } long nextLong() { return Long.parseLong(next()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 35, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 8, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 66, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 6, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\n\t boolean retflg = false;\n\t int c = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tint d1 = sc.nextInt();\n\t \tint d2 = sc.nextInt();\n\t \tif (d1 == d2) {\n\t \t\tc++;\n\t \t} else {\n\t \t\tc = 0;\n\t \t}\n\t \tif (c >= 3) {\n\t \t\tretflg = true;\n\t \t\tbreak;\n\t \t}\n\t }\n\t if (retflg) {\n\t \tSystem.out.println(\"Yes\");\n\t } else {\n\t \tSystem.out.println(\"No\");\n\t }\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\n\t boolean retflg = false;\n\t int c = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tint d1 = sc.nextInt();\n\t \tint d2 = sc.nextInt();\n\t \tif (d1 == d2) {\n\t \t\tc++;\n\t \t} else {\n\t \t\tc = 0;\n\t \t}\n\t \tif (c >= 3) {\n\t \t\tretflg = true;\n\t \t\tbreak;\n\t \t}\n\t }\n\t if (retflg) {\n\t \tSystem.out.println(\"Yes\");\n\t } else {\n\t \tSystem.out.println(\"No\");\n\t }\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\n\t boolean retflg = false;\n\t int c = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tint d1 = sc.nextInt();\n\t \tint d2 = sc.nextInt();\n\t \tif (d1 == d2) {\n\t \t\tc++;\n\t \t} else {\n\t \t\tc = 0;\n\t \t}\n\t \tif (c >= 3) {\n\t \t\tretflg = true;\n\t \t\tbreak;\n\t \t}\n\t }\n\t if (retflg) {\n\t \tSystem.out.println(\"Yes\");\n\t } else {\n\t \tSystem.out.println(\"No\");\n\t }\n\t}", "main", "{\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\n\t boolean retflg = false;\n\t int c = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tint d1 = sc.nextInt();\n\t \tint d2 = sc.nextInt();\n\t \tif (d1 == d2) {\n\t \t\tc++;\n\t \t} else {\n\t \t\tc = 0;\n\t \t}\n\t \tif (c >= 3) {\n\t \t\tretflg = true;\n\t \t\tbreak;\n\t \t}\n\t }\n\t if (retflg) {\n\t \tSystem.out.println(\"Yes\");\n\t } else {\n\t \tSystem.out.println(\"No\");\n\t }\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "boolean retflg = false;", "retflg", "false", "int c = 0;", "c", "0", "for (int i = 0; i < n; i++) {\n\t \tint d1 = sc.nextInt();\n\t \tint d2 = sc.nextInt();\n\t \tif (d1 == d2) {\n\t \t\tc++;\n\t \t} else {\n\t \t\tc = 0;\n\t \t}\n\t \tif (c >= 3) {\n\t \t\tretflg = true;\n\t \t\tbreak;\n\t \t}\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t \tint d1 = sc.nextInt();\n\t \tint d2 = sc.nextInt();\n\t \tif (d1 == d2) {\n\t \t\tc++;\n\t \t} else {\n\t \t\tc = 0;\n\t \t}\n\t \tif (c >= 3) {\n\t \t\tretflg = true;\n\t \t\tbreak;\n\t \t}\n\t }", "{\n\t \tint d1 = sc.nextInt();\n\t \tint d2 = sc.nextInt();\n\t \tif (d1 == d2) {\n\t \t\tc++;\n\t \t} else {\n\t \t\tc = 0;\n\t \t}\n\t \tif (c >= 3) {\n\t \t\tretflg = true;\n\t \t\tbreak;\n\t \t}\n\t }", "int d1 = sc.nextInt();", "d1", "sc.nextInt()", "sc.nextInt", "sc", "int d2 = sc.nextInt();", "d2", "sc.nextInt()", "sc.nextInt", "sc", "if (d1 == d2) {\n\t \t\tc++;\n\t \t} else {\n\t \t\tc = 0;\n\t \t}", "d1 == d2", "d1", "d2", "{\n\t \t\tc++;\n\t \t}", "c++", "c", "{\n\t \t\tc = 0;\n\t \t}", "c = 0", "c", "0", "if (c >= 3) {\n\t \t\tretflg = true;\n\t \t\tbreak;\n\t \t}", "c >= 3", "c", "3", "{\n\t \t\tretflg = true;\n\t \t\tbreak;\n\t \t}", "retflg = true", "retflg", "true", "break;", "if (retflg) {\n\t \tSystem.out.println(\"Yes\");\n\t } else {\n\t \tSystem.out.println(\"No\");\n\t }", "retflg", "{\n\t \tSystem.out.println(\"Yes\");\n\t }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t \tSystem.out.println(\"No\");\n\t }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\n\t boolean retflg = false;\n\t int c = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tint d1 = sc.nextInt();\n\t \tint d2 = sc.nextInt();\n\t \tif (d1 == d2) {\n\t \t\tc++;\n\t \t} else {\n\t \t\tc = 0;\n\t \t}\n\t \tif (c >= 3) {\n\t \t\tretflg = true;\n\t \t\tbreak;\n\t \t}\n\t }\n\t if (retflg) {\n\t \tSystem.out.println(\"Yes\");\n\t } else {\n\t \tSystem.out.println(\"No\");\n\t }\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\n\t boolean retflg = false;\n\t int c = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tint d1 = sc.nextInt();\n\t \tint d2 = sc.nextInt();\n\t \tif (d1 == d2) {\n\t \t\tc++;\n\t \t} else {\n\t \t\tc = 0;\n\t \t}\n\t \tif (c >= 3) {\n\t \t\tretflg = true;\n\t \t\tbreak;\n\t \t}\n\t }\n\t if (retflg) {\n\t \tSystem.out.println(\"Yes\");\n\t } else {\n\t \tSystem.out.println(\"No\");\n\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); int n = sc.nextInt(); boolean retflg = false; int c = 0; for (int i = 0; i < n; i++) { int d1 = sc.nextInt(); int d2 = sc.nextInt(); if (d1 == d2) { c++; } else { c = 0; } if (c >= 3) { retflg = true; break; } } if (retflg) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 4, 18, 13, 30, 40, 13, 14, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 29, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 9, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 16, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 59, 69 ], [ 44, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 16, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 6, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n int n = scanner.nextInt();\n int cnt = 0;\n String ans = \"No\";\n\n for(int i = 0; i < n; i++) {\n if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }\n }\n \n System.out.println(ans);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n int n = scanner.nextInt();\n int cnt = 0;\n String ans = \"No\";\n\n for(int i = 0; i < n; i++) {\n if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }\n }\n \n System.out.println(ans);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}", "Main", "public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n int n = scanner.nextInt();\n int cnt = 0;\n String ans = \"No\";\n\n for(int i = 0; i < n; i++) {\n if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }\n }\n \n System.out.println(ans);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "main", "{\n try (Scanner scanner = new Scanner(System.in);) {\n int n = scanner.nextInt();\n int cnt = 0;\n String ans = \"No\";\n\n for(int i = 0; i < n; i++) {\n if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }\n }\n \n System.out.println(ans);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "try (Scanner scanner = new Scanner(System.in);) {\n int n = scanner.nextInt();\n int cnt = 0;\n String ans = \"No\";\n\n for(int i = 0; i < n; i++) {\n if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }\n }\n \n System.out.println(ans);\n } catch (Exception e) {\n e.printStackTrace();\n }", "catch (Exception e) {\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n int n = scanner.nextInt();\n int cnt = 0;\n String ans = \"No\";\n\n for(int i = 0; i < n; i++) {\n if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }\n }\n \n System.out.println(ans);\n }", "Scanner scanner = new Scanner(System.in)", "Scanner scanner = new Scanner(System.in)", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int cnt = 0;", "cnt", "0", "String ans = \"No\";", "ans", "\"No\"", "for(int i = 0; i < n; i++) {\n if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }\n }", "{\n if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }\n }", "if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }", "scanner.nextInt() == scanner.nextInt()", "scanner.nextInt()", "scanner.nextInt", "scanner", "scanner.nextInt()", "scanner.nextInt", "scanner", "{\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n }", "cnt++", "cnt", "if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }", "cnt >= 3", "cnt", "3", "{\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }", "ans = \"Yes\"", "ans", "\"Yes\"", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "return;", "{\n cnt = 0;\n }", "cnt = 0", "cnt", "0", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n int n = scanner.nextInt();\n int cnt = 0;\n String ans = \"No\";\n\n for(int i = 0; i < n; i++) {\n if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }\n }\n \n System.out.println(ans);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n int n = scanner.nextInt();\n int cnt = 0;\n String ans = \"No\";\n\n for(int i = 0; i < n; i++) {\n if(scanner.nextInt() == scanner.nextInt()) {\n cnt++;\n if(cnt >= 3) {\n ans = \"Yes\";\n System.out.println(ans);\n return;\n }\n } else {\n cnt = 0;\n }\n }\n \n System.out.println(ans);\n } catch (Exception e) {\n e.printStackTrace();\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 n = scanner.nextInt(); int cnt = 0; String ans = "No"; for(int i = 0; i < n; i++) { if(scanner.nextInt() == scanner.nextInt()) { cnt++; if(cnt >= 3) { ans = "Yes"; System.out.println(ans); return; } } else { cnt = 0; } } System.out.println(ans); } catch (Exception e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 14, 2, 13, 17, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 79, 8 ], [ 79, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 49, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 11, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 72, 75 ], [ 9, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "/*\n Author: Anthony Ngene\n Created: 19/09/2020 - 13:04\n*/\n\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n boolean isValid = false;\n int count = 0;\n for (int i = 0; i < n; i++) {\n int a = in.nextInt(), b = in.nextInt();\n if (a == b) {\n count++;\n if (count >= 3)\n isValid = true;\n } else {\n count = 0;\n }\n }\n System.out.println(isValid ? \"Yes\" : \"No\");\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n boolean isValid = false;\n int count = 0;\n for (int i = 0; i < n; i++) {\n int a = in.nextInt(), b = in.nextInt();\n if (a == b) {\n count++;\n if (count >= 3)\n isValid = true;\n } else {\n count = 0;\n }\n }\n System.out.println(isValid ? \"Yes\" : \"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n boolean isValid = false;\n int count = 0;\n for (int i = 0; i < n; i++) {\n int a = in.nextInt(), b = in.nextInt();\n if (a == b) {\n count++;\n if (count >= 3)\n isValid = true;\n } else {\n count = 0;\n }\n }\n System.out.println(isValid ? \"Yes\" : \"No\");\n }", "main", "{\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n boolean isValid = false;\n int count = 0;\n for (int i = 0; i < n; i++) {\n int a = in.nextInt(), b = in.nextInt();\n if (a == b) {\n count++;\n if (count >= 3)\n isValid = true;\n } else {\n count = 0;\n }\n }\n System.out.println(isValid ? \"Yes\" : \"No\");\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "boolean isValid = false;", "isValid", "false", "int count = 0;", "count", "0", "for (int i = 0; i < n; i++) {\n int a = in.nextInt(), b = in.nextInt();\n if (a == b) {\n count++;\n if (count >= 3)\n isValid = true;\n } else {\n count = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int a = in.nextInt(), b = in.nextInt();\n if (a == b) {\n count++;\n if (count >= 3)\n isValid = true;\n } else {\n count = 0;\n }\n }", "{\n int a = in.nextInt(), b = in.nextInt();\n if (a == b) {\n count++;\n if (count >= 3)\n isValid = true;\n } else {\n count = 0;\n }\n }", "int a = in.nextInt()", "a", "in.nextInt()", "in.nextInt", "in", "b = in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "if (a == b) {\n count++;\n if (count >= 3)\n isValid = true;\n } else {\n count = 0;\n }", "a == b", "a", "b", "{\n count++;\n if (count >= 3)\n isValid = true;\n }", "count++", "count", "if (count >= 3)\n isValid = true;", "count >= 3", "count", "3", "isValid = true", "isValid", "true", "{\n count = 0;\n }", "count = 0", "count", "0", "System.out.println(isValid ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "isValid ? \"Yes\" : \"No\"", "isValid", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n boolean isValid = false;\n int count = 0;\n for (int i = 0; i < n; i++) {\n int a = in.nextInt(), b = in.nextInt();\n if (a == b) {\n count++;\n if (count >= 3)\n isValid = true;\n } else {\n count = 0;\n }\n }\n System.out.println(isValid ? \"Yes\" : \"No\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n boolean isValid = false;\n int count = 0;\n for (int i = 0; i < n; i++) {\n int a = in.nextInt(), b = in.nextInt();\n if (a == b) {\n count++;\n if (count >= 3)\n isValid = true;\n } else {\n count = 0;\n }\n }\n System.out.println(isValid ? \"Yes\" : \"No\");\n }\n}", "Main" ]
/* Author: Anthony Ngene Created: 19/09/2020 - 13:04 */ import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); boolean isValid = false; int count = 0; for (int i = 0; i < n; i++) { int a = in.nextInt(), b = in.nextInt(); if (a == b) { count++; if (count >= 3) isValid = true; } else { count = 0; } } System.out.println(isValid ? "Yes" : "No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 14, 2, 18, 13, 13, 18, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 91, 5 ], [ 91, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 28, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 40, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 40, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 74, 81 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 6, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n //int K = sc.nextInt();\n //long N = sc.nextLong();\n\n int[] A = new int[N];\n int[] B = new int[N];\n int count=0;\n for(int i=0; i<N; i++){\n A[i]=sc.nextInt();\n B[i]=sc.nextInt();\n if(A[i]==B[i]){\n count++;\n }else{\n count=0;\n }\n if(count==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n \n\n \n System.out.println(\"No\");\n }\n }", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n //int K = sc.nextInt();\n //long N = sc.nextLong();\n\n int[] A = new int[N];\n int[] B = new int[N];\n int count=0;\n for(int i=0; i<N; i++){\n A[i]=sc.nextInt();\n B[i]=sc.nextInt();\n if(A[i]==B[i]){\n count++;\n }else{\n count=0;\n }\n if(count==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n \n\n \n System.out.println(\"No\");\n }\n }", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n //int K = sc.nextInt();\n //long N = sc.nextLong();\n\n int[] A = new int[N];\n int[] B = new int[N];\n int count=0;\n for(int i=0; i<N; i++){\n A[i]=sc.nextInt();\n B[i]=sc.nextInt();\n if(A[i]==B[i]){\n count++;\n }else{\n count=0;\n }\n if(count==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n \n\n \n System.out.println(\"No\");\n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n //int K = sc.nextInt();\n //long N = sc.nextLong();\n\n int[] A = new int[N];\n int[] B = new int[N];\n int count=0;\n for(int i=0; i<N; i++){\n A[i]=sc.nextInt();\n B[i]=sc.nextInt();\n if(A[i]==B[i]){\n count++;\n }else{\n count=0;\n }\n if(count==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n \n\n \n System.out.println(\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[] A = new int[N];", "A", "new int[N]", "N", "int[] B = new int[N];", "B", "new int[N]", "N", "int count=0;", "count", "0", "for(int i=0; i<N; i++){\n A[i]=sc.nextInt();\n B[i]=sc.nextInt();\n if(A[i]==B[i]){\n count++;\n }else{\n count=0;\n }\n if(count==3){\n System.out.println(\"Yes\");\n return;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n A[i]=sc.nextInt();\n B[i]=sc.nextInt();\n if(A[i]==B[i]){\n count++;\n }else{\n count=0;\n }\n if(count==3){\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n A[i]=sc.nextInt();\n B[i]=sc.nextInt();\n if(A[i]==B[i]){\n count++;\n }else{\n count=0;\n }\n if(count==3){\n System.out.println(\"Yes\");\n return;\n }\n }", "A[i]=sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "B[i]=sc.nextInt()", "B[i]", "B", "i", "sc.nextInt()", "sc.nextInt", "sc", "if(A[i]==B[i]){\n count++;\n }else{\n count=0;\n }", "A[i]==B[i]", "A[i]", "A", "i", "B[i]", "B", "i", "{\n count++;\n }", "count++", "count", "{\n count=0;\n }", "count=0", "count", "0", "if(count==3){\n System.out.println(\"Yes\");\n return;\n }", "count==3", "count", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n //int K = sc.nextInt();\n //long N = sc.nextLong();\n\n int[] A = new int[N];\n int[] B = new int[N];\n int count=0;\n for(int i=0; i<N; i++){\n A[i]=sc.nextInt();\n B[i]=sc.nextInt();\n if(A[i]==B[i]){\n count++;\n }else{\n count=0;\n }\n if(count==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n \n\n \n System.out.println(\"No\");\n }\n }", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n //int K = sc.nextInt();\n //long N = sc.nextLong();\n\n int[] A = new int[N];\n int[] B = new int[N];\n int count=0;\n for(int i=0; i<N; i++){\n A[i]=sc.nextInt();\n B[i]=sc.nextInt();\n if(A[i]==B[i]){\n count++;\n }else{\n count=0;\n }\n if(count==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n \n\n \n System.out.println(\"No\");\n }\n }", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); //int K = sc.nextInt(); //long N = sc.nextLong(); int[] A = new int[N]; int[] B = new int[N]; int count=0; for(int i=0; i<N; i++){ A[i]=sc.nextInt(); B[i]=sc.nextInt(); if(A[i]==B[i]){ count++; }else{ count=0; } if(count==3){ System.out.println("Yes"); return; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 14, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 3, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 100, 5 ], [ 100, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 47, 53 ], [ 53, 54 ], [ 54, 55 ], [ 37, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 56, 68 ], [ 68, 69 ], [ 69, 70 ], [ 56, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 37, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 79, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 6, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "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\tint n = sc.nextInt();\n\t\t\n\t\tint[][] d = new int[n][2];\n\t\t\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\td[i][0] = sc.nextInt();\n\t\t\td[i][1] = sc.nextInt();\n\t\t\t\n\t\t\tif(d[i][0] == d[i][1]) {\n\t\t\t\tcount++;\n\t\t\t}else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(count != 3) System.out.println(\"No\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint[][] d = new int[n][2];\n\t\t\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\td[i][0] = sc.nextInt();\n\t\t\td[i][1] = sc.nextInt();\n\t\t\t\n\t\t\tif(d[i][0] == d[i][1]) {\n\t\t\t\tcount++;\n\t\t\t}else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(count != 3) System.out.println(\"No\");\n\t\t\n\t\t\n\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\t\tint n = sc.nextInt();\n\t\t\n\t\tint[][] d = new int[n][2];\n\t\t\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\td[i][0] = sc.nextInt();\n\t\t\td[i][1] = sc.nextInt();\n\t\t\t\n\t\t\tif(d[i][0] == d[i][1]) {\n\t\t\t\tcount++;\n\t\t\t}else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(count != 3) System.out.println(\"No\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint[][] d = new int[n][2];\n\t\t\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\td[i][0] = sc.nextInt();\n\t\t\td[i][1] = sc.nextInt();\n\t\t\t\n\t\t\tif(d[i][0] == d[i][1]) {\n\t\t\t\tcount++;\n\t\t\t}else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(count != 3) System.out.println(\"No\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[][] d = new int[n][2];", "d", "new int[n][2]", "n", "2", "int count = 0;", "count", "0", "for(int i = 0; i < n; i++) {\n\t\t\td[i][0] = sc.nextInt();\n\t\t\td[i][1] = sc.nextInt();\n\t\t\t\n\t\t\tif(d[i][0] == d[i][1]) {\n\t\t\t\tcount++;\n\t\t\t}else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\td[i][0] = sc.nextInt();\n\t\t\td[i][1] = sc.nextInt();\n\t\t\t\n\t\t\tif(d[i][0] == d[i][1]) {\n\t\t\t\tcount++;\n\t\t\t}else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}", "{\n\t\t\td[i][0] = sc.nextInt();\n\t\t\td[i][1] = sc.nextInt();\n\t\t\t\n\t\t\tif(d[i][0] == d[i][1]) {\n\t\t\t\tcount++;\n\t\t\t}else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}", "d[i][0] = sc.nextInt()", "d[i][0]", "d[i]", "d", "i", "0", "sc.nextInt()", "sc.nextInt", "sc", "d[i][1] = sc.nextInt()", "d[i][1]", "d[i]", "d", "i", "1", "sc.nextInt()", "sc.nextInt", "sc", "if(d[i][0] == d[i][1]) {\n\t\t\t\tcount++;\n\t\t\t}else {\n\t\t\t\tcount = 0;\n\t\t\t}", "d[i][0] == d[i][1]", "d[i][0]", "d[i]", "d", "i", "0", "d[i][1]", "d[i]", "d", "i", "1", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "{\n\t\t\t\tcount = 0;\n\t\t\t}", "count = 0", "count", "0", "if(count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}", "count == 3", "count", "3", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "if(count != 3) System.out.println(\"No\");", "count != 3", "count", "3", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint[][] d = new int[n][2];\n\t\t\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\td[i][0] = sc.nextInt();\n\t\t\td[i][1] = sc.nextInt();\n\t\t\t\n\t\t\tif(d[i][0] == d[i][1]) {\n\t\t\t\tcount++;\n\t\t\t}else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(count != 3) System.out.println(\"No\");\n\t\t\n\t\t\n\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\t\tint n = sc.nextInt();\n\t\t\n\t\tint[][] d = new int[n][2];\n\t\t\n\t\tint count = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\td[i][0] = sc.nextInt();\n\t\t\td[i][1] = sc.nextInt();\n\t\t\t\n\t\t\tif(d[i][0] == d[i][1]) {\n\t\t\t\tcount++;\n\t\t\t}else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(count != 3) System.out.println(\"No\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][] d = new int[n][2]; int count = 0; for(int i = 0; i < n; i++) { d[i][0] = sc.nextInt(); d[i][1] = sc.nextInt(); if(d[i][0] == d[i][1]) { count++; }else { count = 0; } if(count == 3) { System.out.println("Yes"); break; } } if(count != 3) System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 13, 17, 30, 14, 2, 2, 13, 13, 2, 2, 13, 17, 13, 30, 40, 13, 0, 13, 13, 30, 0, 13, 13, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 14, 13, 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 ], [ 107, 5 ], [ 107, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 49, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 49, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 38, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 8, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 88, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 6, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "import java.util.*;\n\npublic class Main {\n \n\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();int c=0,i=0;boolean flag=false;\n for(int x=1;x<=N;++x){\n int a=sc.nextInt();\n int b=sc.nextInt();//String s1=\"\",s2=\"\";\n \n if(b-a==0){\n if(i==x || i+1==x){\n c++;i=x;\n }\n \n }\n else{\n i=x;c=0;\n }\n if(c==3){\n flag=true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n \n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n \n\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();int c=0,i=0;boolean flag=false;\n for(int x=1;x<=N;++x){\n int a=sc.nextInt();\n int b=sc.nextInt();//String s1=\"\",s2=\"\";\n \n if(b-a==0){\n if(i==x || i+1==x){\n c++;i=x;\n }\n \n }\n else{\n i=x;c=0;\n }\n if(c==3){\n flag=true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n \n }\n}", "Main", "public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();int c=0,i=0;boolean flag=false;\n for(int x=1;x<=N;++x){\n int a=sc.nextInt();\n int b=sc.nextInt();//String s1=\"\",s2=\"\";\n \n if(b-a==0){\n if(i==x || i+1==x){\n c++;i=x;\n }\n \n }\n else{\n i=x;c=0;\n }\n if(c==3){\n flag=true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();int c=0,i=0;boolean flag=false;\n for(int x=1;x<=N;++x){\n int a=sc.nextInt();\n int b=sc.nextInt();//String s1=\"\",s2=\"\";\n \n if(b-a==0){\n if(i==x || i+1==x){\n c++;i=x;\n }\n \n }\n else{\n i=x;c=0;\n }\n if(c==3){\n flag=true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int c=0", "c", "0", "i=0;", "i", "0", "boolean flag=false;", "flag", "false", "for(int x=1;x<=N;++x){\n int a=sc.nextInt();\n int b=sc.nextInt();//String s1=\"\",s2=\"\";\n \n if(b-a==0){\n if(i==x || i+1==x){\n c++;i=x;\n }\n \n }\n else{\n i=x;c=0;\n }\n if(c==3){\n flag=true;\n break;\n }\n }", "int x=1;", "int x=1;", "x", "1", "x<=N", "x", "N", "++x", "++x", "x", "{\n int a=sc.nextInt();\n int b=sc.nextInt();//String s1=\"\",s2=\"\";\n \n if(b-a==0){\n if(i==x || i+1==x){\n c++;i=x;\n }\n \n }\n else{\n i=x;c=0;\n }\n if(c==3){\n flag=true;\n break;\n }\n }", "{\n int a=sc.nextInt();\n int b=sc.nextInt();//String s1=\"\",s2=\"\";\n \n if(b-a==0){\n if(i==x || i+1==x){\n c++;i=x;\n }\n \n }\n else{\n i=x;c=0;\n }\n if(c==3){\n flag=true;\n break;\n }\n }", "int a=sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b=sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "if(b-a==0){\n if(i==x || i+1==x){\n c++;i=x;\n }\n \n }\n else{\n i=x;c=0;\n }", "b-a==0", "b-a", "b", "a", "0", "{\n if(i==x || i+1==x){\n c++;i=x;\n }\n \n }", "if(i==x || i+1==x){\n c++;i=x;\n }", "i==x || i+1==x", "i==x", "i", "x", "i+1==x", "i+1", "i", "1", "x", "{\n c++;i=x;\n }", "c++", "c", "i=x", "i", "x", "{\n i=x;c=0;\n }", "i=x", "i", "x", "c=0", "c", "0", "if(c==3){\n flag=true;\n break;\n }", "c==3", "c", "3", "{\n flag=true;\n break;\n }", "flag=true", "flag", "true", "break;", "if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }", "flag", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String args[]", "args", "public class Main {\n \n\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();int c=0,i=0;boolean flag=false;\n for(int x=1;x<=N;++x){\n int a=sc.nextInt();\n int b=sc.nextInt();//String s1=\"\",s2=\"\";\n \n if(b-a==0){\n if(i==x || i+1==x){\n c++;i=x;\n }\n \n }\n else{\n i=x;c=0;\n }\n if(c==3){\n flag=true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n \n }\n}", "public class Main {\n \n\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();int c=0,i=0;boolean flag=false;\n for(int x=1;x<=N;++x){\n int a=sc.nextInt();\n int b=sc.nextInt();//String s1=\"\",s2=\"\";\n \n if(b-a==0){\n if(i==x || i+1==x){\n c++;i=x;\n }\n \n }\n else{\n i=x;c=0;\n }\n if(c==3){\n flag=true;\n break;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n \n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt();int c=0,i=0;boolean flag=false; for(int x=1;x<=N;++x){ int a=sc.nextInt(); int b=sc.nextInt();//String s1="",s2=""; if(b-a==0){ if(i==x || i+1==x){ c++;i=x; } } else{ i=x;c=0; } if(c==3){ flag=true; break; } } if(flag){ System.out.println("Yes"); } else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 8, 2, 13, 13, 2, 13, 17, 17, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 8, 2, 13, 17, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 87, 5 ], [ 87, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 38, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 38, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 38, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 78, 83 ], [ 6, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint best = 0;\n\t\tint ren = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong a = Long.parseLong(sc.next());\n\t\t\tlong b = Long.parseLong(sc.next());\n\t\t\tren = (a == b) ? (ren + 1) : (0);\n\n\t\t\tif (best <= ren) {\n\t\t\t\tbest = ren;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(best >= 3 ? \"Yes\" : \"No\");\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint best = 0;\n\t\tint ren = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong a = Long.parseLong(sc.next());\n\t\t\tlong b = Long.parseLong(sc.next());\n\t\t\tren = (a == b) ? (ren + 1) : (0);\n\n\t\t\tif (best <= ren) {\n\t\t\t\tbest = ren;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(best >= 3 ? \"Yes\" : \"No\");\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint best = 0;\n\t\tint ren = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong a = Long.parseLong(sc.next());\n\t\t\tlong b = Long.parseLong(sc.next());\n\t\t\tren = (a == b) ? (ren + 1) : (0);\n\n\t\t\tif (best <= ren) {\n\t\t\t\tbest = ren;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(best >= 3 ? \"Yes\" : \"No\");\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint best = 0;\n\t\tint ren = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong a = Long.parseLong(sc.next());\n\t\t\tlong b = Long.parseLong(sc.next());\n\t\t\tren = (a == b) ? (ren + 1) : (0);\n\n\t\t\tif (best <= ren) {\n\t\t\t\tbest = ren;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(best >= 3 ? \"Yes\" : \"No\");\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = Integer.parseInt(sc.next());", "n", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int best = 0;", "best", "0", "int ren = 0;", "ren", "0", "for (int i = 0; i < n; i++) {\n\t\t\tlong a = Long.parseLong(sc.next());\n\t\t\tlong b = Long.parseLong(sc.next());\n\t\t\tren = (a == b) ? (ren + 1) : (0);\n\n\t\t\tif (best <= ren) {\n\t\t\t\tbest = ren;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tlong a = Long.parseLong(sc.next());\n\t\t\tlong b = Long.parseLong(sc.next());\n\t\t\tren = (a == b) ? (ren + 1) : (0);\n\n\t\t\tif (best <= ren) {\n\t\t\t\tbest = ren;\n\t\t\t}\n\t\t}", "{\n\t\t\tlong a = Long.parseLong(sc.next());\n\t\t\tlong b = Long.parseLong(sc.next());\n\t\t\tren = (a == b) ? (ren + 1) : (0);\n\n\t\t\tif (best <= ren) {\n\t\t\t\tbest = ren;\n\t\t\t}\n\t\t}", "long a = Long.parseLong(sc.next());", "a", "Long.parseLong(sc.next())", "Long.parseLong", "Long", "sc.next()", "sc.next", "sc", "long b = Long.parseLong(sc.next());", "b", "Long.parseLong(sc.next())", "Long.parseLong", "Long", "sc.next()", "sc.next", "sc", "ren = (a == b) ? (ren + 1) : (0)", "ren", "(a == b) ? (ren + 1) : (0)", "(a == b)", "a", "b", "(ren + 1)", "ren", "1", "(0)", "if (best <= ren) {\n\t\t\t\tbest = ren;\n\t\t\t}", "best <= ren", "best", "ren", "{\n\t\t\t\tbest = ren;\n\t\t\t}", "best = ren", "best", "ren", "System.out.println(best >= 3 ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "best >= 3 ? \"Yes\" : \"No\"", "best >= 3", "best", "3", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint best = 0;\n\t\tint ren = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong a = Long.parseLong(sc.next());\n\t\t\tlong b = Long.parseLong(sc.next());\n\t\t\tren = (a == b) ? (ren + 1) : (0);\n\n\t\t\tif (best <= ren) {\n\t\t\t\tbest = ren;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(best >= 3 ? \"Yes\" : \"No\");\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint best = 0;\n\t\tint ren = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tlong a = Long.parseLong(sc.next());\n\t\t\tlong b = Long.parseLong(sc.next());\n\t\t\tren = (a == b) ? (ren + 1) : (0);\n\n\t\t\tif (best <= ren) {\n\t\t\t\tbest = ren;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(best >= 3 ? \"Yes\" : \"No\");\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int best = 0; int ren = 0; for (int i = 0; i < n; i++) { long a = Long.parseLong(sc.next()); long b = Long.parseLong(sc.next()); ren = (a == b) ? (ren + 1) : (0); if (best <= ren) { best = ren; } } System.out.println(best >= 3 ? "Yes" : "No"); } }
[ 7, 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, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 30, 4, 18, 13, 17, 29, 4, 18, 13, 17, 12, 13, 30, 0, 13, 20, 4, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 18, 13, 13, 0, 13, 20, 13, 0, 13, 0, 13, 17, 12, 13, 30, 0, 13, 20, 0, 13, 20, 13, 0, 13, 0, 13, 17, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 0, 13, 17, 14, 2, 13, 17, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 29, 40, 2, 2, 13, 17, 2, 13, 17, 23, 13, 12, 13, 30, 41, 13, 42, 2, 2, 0, 13, 4, 13, 40, 17, 4, 13, 13, 29, 13, 12, 13, 30, 29, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 13, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 42, 2, 2, 0, 13, 4, 13, 40, 17, 40, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 13, 17, 2, 13, 17, 0, 13, 4, 13, 29, 8, 13, 40, 13, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 42, 2, 2, 0, 13, 4, 13, 40, 17, 40, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 13, 17, 2, 13, 17, 0, 13, 4, 13, 29, 8, 13, 40, 13, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 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 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 814, 20 ], [ 814, 21 ], [ 21, 22 ], [ 814, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 25, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 36, 40 ], [ 25, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 56, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 69, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 76, 82 ], [ 56, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 84, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 91, 97 ], [ 54, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 98, 103 ], [ 25, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 814, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 110, 116 ], [ 116, 117 ], [ 117, 118 ], [ 108, 119 ], [ 119, 120 ], [ 814, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 121, 128 ], [ 128, 129 ], [ 121, 130 ], [ 130, 131 ], [ 121, 132 ], [ 132, 133 ], [ 121, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 139, 141 ], [ 136, 142 ], [ 142, 143 ], [ 142, 144 ], [ 136, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 121, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 157, 159 ], [ 153, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 163, 165 ], [ 151, 166 ], [ 166, 167 ], [ 121, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 176, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 185, 188 ], [ 175, 189 ], [ 189, 190 ], [ 189, 191 ], [ 170, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 192, 196 ], [ 196, 197 ], [ 197, 198 ], [ 170, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 121, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 213, 214 ], [ 213, 215 ], [ 204, 216 ], [ 216, 217 ], [ 121, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 220, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 225, 230 ], [ 230, 231 ], [ 224, 232 ], [ 232, 233 ], [ 232, 234 ], [ 220, 235 ], [ 235, 236 ], [ 121, 237 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 121, 243 ], [ 243, 244 ], [ 243, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 247, 250 ], [ 250, 251 ], [ 121, 252 ], [ 252, 253 ], [ 252, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 254, 258 ], [ 258, 259 ], [ 258, 260 ], [ 260, 261 ], [ 254, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 264, 266 ], [ 262, 267 ], [ 267, 268 ], [ 268, 269 ], [ 269, 270 ], [ 268, 271 ], [ 267, 272 ], [ 272, 273 ], [ 272, 274 ], [ 274, 275 ], [ 254, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 121, 280 ], [ 280, 281 ], [ 280, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 282, 286 ], [ 286, 287 ], [ 286, 288 ], [ 282, 289 ], [ 289, 290 ], [ 282, 291 ], [ 291, 292 ], [ 292, 293 ], [ 293, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 293, 298 ], [ 298, 299 ], [ 292, 300 ], [ 300, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 302, 306 ], [ 306, 307 ], [ 306, 308 ], [ 301, 309 ], [ 309, 310 ], [ 309, 311 ], [ 282, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 312, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 316, 320 ], [ 320, 321 ], [ 320, 322 ], [ 322, 323 ], [ 282, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 326, 328 ], [ 325, 329 ], [ 329, 330 ], [ 329, 331 ], [ 324, 332 ], [ 332, 333 ], [ 333, 334 ], [ 333, 335 ], [ 335, 336 ], [ 336, 337 ], [ 336, 338 ], [ 335, 339 ], [ 339, 340 ], [ 339, 341 ], [ 332, 342 ], [ 342, 343 ], [ 342, 344 ], [ 344, 345 ], [ 282, 346 ], [ 346, 347 ], [ 347, 348 ], [ 347, 349 ], [ 349, 350 ], [ 347, 351 ], [ 121, 352 ], [ 352, 353 ], [ 352, 354 ], [ 354, 355 ], [ 355, 356 ], [ 355, 357 ], [ 354, 358 ], [ 358, 359 ], [ 358, 360 ], [ 354, 361 ], [ 361, 362 ], [ 354, 363 ], [ 363, 364 ], [ 364, 365 ], [ 365, 366 ], [ 366, 367 ], [ 366, 368 ], [ 368, 369 ], [ 365, 370 ], [ 370, 371 ], [ 364, 372 ], [ 372, 373 ], [ 373, 374 ], [ 374, 375 ], [ 375, 376 ], [ 375, 377 ], [ 374, 378 ], [ 378, 379 ], [ 378, 380 ], [ 373, 381 ], [ 381, 382 ], [ 381, 383 ], [ 354, 384 ], [ 384, 385 ], [ 385, 386 ], [ 385, 387 ], [ 384, 388 ], [ 388, 389 ], [ 389, 390 ], [ 389, 391 ], [ 388, 392 ], [ 392, 393 ], [ 392, 394 ], [ 394, 395 ], [ 354, 396 ], [ 396, 397 ], [ 397, 398 ], [ 398, 399 ], [ 398, 400 ], [ 397, 401 ], [ 401, 402 ], [ 401, 403 ], [ 396, 404 ], [ 404, 405 ], [ 405, 406 ], [ 405, 407 ], [ 407, 408 ], [ 408, 409 ], [ 408, 410 ], [ 407, 411 ], [ 411, 412 ], [ 411, 413 ], [ 404, 414 ], [ 414, 415 ], [ 414, 416 ], [ 416, 417 ], [ 354, 418 ], [ 418, 419 ], [ 419, 420 ], [ 419, 421 ], [ 421, 422 ], [ 419, 423 ], [ 121, 424 ], [ 424, 425 ], [ 424, 426 ], [ 426, 427 ], [ 427, 428 ], [ 427, 429 ], [ 426, 431 ], [ 431, 432 ], [ 432, 433 ], [ 433, 434 ], [ 433, 435 ], [ 431, 436 ], [ 436, 437 ], [ 436, 438 ], [ 431, 439 ], [ 439, 440 ], [ 440, 441 ], [ 431, 442 ], [ 442, 443 ], [ 443, 444 ], [ 444, 445 ], [ 444, 446 ], [ 443, 447 ], [ 447, 448 ], [ 426, 449 ], [ 449, 450 ], [ 424, 451 ], [ 451, 452 ], [ 121, 453 ], [ 453, 454 ], [ 453, 455 ], [ 455, 456 ], [ 456, 457 ], [ 456, 458 ], [ 455, 460 ], [ 460, 461 ], [ 461, 462 ], [ 462, 463 ], [ 462, 464 ], [ 460, 465 ], [ 465, 466 ], [ 465, 467 ], [ 460, 468 ], [ 468, 469 ], [ 469, 470 ], [ 460, 471 ], [ 471, 472 ], [ 472, 473 ], [ 473, 474 ], [ 473, 475 ], [ 472, 476 ], [ 476, 477 ], [ 455, 478 ], [ 478, 479 ], [ 453, 480 ], [ 480, 481 ], [ 121, 482 ], [ 482, 483 ], [ 482, 484 ], [ 484, 485 ], [ 485, 486 ], [ 485, 487 ], [ 484, 489 ], [ 489, 490 ], [ 490, 491 ], [ 491, 492 ], [ 491, 493 ], [ 489, 494 ], [ 494, 495 ], [ 494, 496 ], [ 489, 497 ], [ 497, 498 ], [ 498, 499 ], [ 489, 500 ], [ 500, 501 ], [ 501, 502 ], [ 502, 503 ], [ 502, 504 ], [ 501, 505 ], [ 505, 506 ], [ 484, 507 ], [ 507, 508 ], [ 482, 509 ], [ 509, 510 ], [ 121, 511 ], [ 511, 512 ], [ 511, 513 ], [ 513, 514 ], [ 514, 515 ], [ 514, 516 ], [ 513, 518 ], [ 518, 519 ], [ 519, 520 ], [ 520, 521 ], [ 520, 522 ], [ 518, 523 ], [ 523, 524 ], [ 523, 525 ], [ 518, 526 ], [ 526, 527 ], [ 527, 528 ], [ 518, 529 ], [ 529, 530 ], [ 530, 531 ], [ 531, 532 ], [ 531, 533 ], [ 530, 534 ], [ 534, 535 ], [ 513, 536 ], [ 536, 537 ], [ 511, 538 ], [ 538, 539 ], [ 121, 540 ], [ 540, 541 ], [ 540, 542 ], [ 542, 543 ], [ 543, 544 ], [ 543, 545 ], [ 542, 547 ], [ 547, 548 ], [ 548, 549 ], [ 549, 550 ], [ 549, 551 ], [ 547, 552 ], [ 552, 553 ], [ 552, 554 ], [ 547, 555 ], [ 555, 556 ], [ 556, 557 ], [ 547, 558 ], [ 558, 559 ], [ 559, 560 ], [ 560, 561 ], [ 560, 562 ], [ 559, 563 ], [ 563, 564 ], [ 542, 565 ], [ 565, 566 ], [ 540, 567 ], [ 567, 568 ], [ 121, 569 ], [ 569, 570 ], [ 569, 571 ], [ 571, 572 ], [ 572, 573 ], [ 572, 574 ], [ 571, 577 ], [ 577, 578 ], [ 578, 579 ], [ 579, 580 ], [ 579, 581 ], [ 577, 582 ], [ 582, 583 ], [ 582, 584 ], [ 577, 585 ], [ 585, 586 ], [ 586, 587 ], [ 577, 588 ], [ 588, 589 ], [ 589, 590 ], [ 590, 591 ], [ 591, 592 ], [ 591, 593 ], [ 589, 594 ], [ 594, 595 ], [ 594, 596 ], [ 589, 597 ], [ 597, 598 ], [ 598, 599 ], [ 589, 600 ], [ 600, 601 ], [ 601, 602 ], [ 602, 603 ], [ 603, 604 ], [ 603, 605 ], [ 602, 606 ], [ 601, 607 ], [ 607, 608 ], [ 571, 609 ], [ 609, 610 ], [ 569, 611 ], [ 611, 612 ], [ 569, 613 ], [ 613, 614 ], [ 121, 615 ], [ 615, 616 ], [ 615, 617 ], [ 617, 618 ], [ 618, 619 ], [ 618, 620 ], [ 617, 623 ], [ 623, 624 ], [ 624, 625 ], [ 625, 626 ], [ 625, 627 ], [ 623, 628 ], [ 628, 629 ], [ 628, 630 ], [ 623, 631 ], [ 631, 632 ], [ 632, 633 ], [ 623, 634 ], [ 634, 635 ], [ 635, 636 ], [ 636, 637 ], [ 637, 638 ], [ 637, 639 ], [ 635, 640 ], [ 640, 641 ], [ 640, 642 ], [ 635, 643 ], [ 643, 644 ], [ 644, 645 ], [ 635, 646 ], [ 646, 647 ], [ 647, 648 ], [ 648, 649 ], [ 649, 650 ], [ 649, 651 ], [ 648, 652 ], [ 647, 653 ], [ 653, 654 ], [ 617, 655 ], [ 655, 656 ], [ 615, 657 ], [ 657, 658 ], [ 615, 659 ], [ 659, 660 ], [ 121, 661 ], [ 661, 662 ], [ 661, 663 ], [ 663, 664 ], [ 664, 665 ], [ 664, 666 ], [ 663, 669 ], [ 669, 670 ], [ 670, 671 ], [ 671, 672 ], [ 671, 673 ], [ 669, 674 ], [ 674, 675 ], [ 674, 676 ], [ 669, 677 ], [ 677, 678 ], [ 678, 679 ], [ 669, 680 ], [ 680, 681 ], [ 681, 682 ], [ 682, 683 ], [ 683, 684 ], [ 683, 685 ], [ 681, 686 ], [ 686, 687 ], [ 686, 688 ], [ 681, 689 ], [ 689, 690 ], [ 690, 691 ], [ 681, 692 ], [ 692, 693 ], [ 693, 694 ], [ 694, 695 ], [ 695, 696 ], [ 695, 697 ], [ 694, 698 ], [ 693, 699 ], [ 699, 700 ], [ 663, 701 ], [ 701, 702 ], [ 661, 703 ], [ 703, 704 ], [ 661, 705 ], [ 705, 706 ], [ 121, 707 ], [ 707, 708 ], [ 707, 709 ], [ 709, 710 ], [ 710, 711 ], [ 710, 712 ], [ 709, 715 ], [ 715, 716 ], [ 716, 717 ], [ 717, 718 ], [ 717, 719 ], [ 715, 720 ], [ 720, 721 ], [ 720, 722 ], [ 715, 723 ], [ 723, 724 ], [ 724, 725 ], [ 715, 726 ], [ 726, 727 ], [ 727, 728 ], [ 728, 729 ], [ 729, 730 ], [ 729, 731 ], [ 727, 732 ], [ 732, 733 ], [ 732, 734 ], [ 727, 735 ], [ 735, 736 ], [ 736, 737 ], [ 727, 738 ], [ 738, 739 ], [ 739, 740 ], [ 740, 741 ], [ 741, 742 ], [ 741, 743 ], [ 740, 744 ], [ 739, 745 ], [ 745, 746 ], [ 709, 747 ], [ 747, 748 ], [ 707, 749 ], [ 749, 750 ], [ 707, 751 ], [ 751, 752 ], [ 121, 753 ], [ 753, 754 ], [ 753, 755 ], [ 755, 756 ], [ 756, 757 ], [ 756, 758 ], [ 755, 761 ], [ 761, 762 ], [ 762, 763 ], [ 763, 764 ], [ 763, 765 ], [ 761, 766 ], [ 766, 767 ], [ 766, 768 ], [ 761, 769 ], [ 769, 770 ], [ 770, 771 ], [ 761, 772 ], [ 772, 773 ], [ 773, 774 ], [ 774, 775 ], [ 775, 776 ], [ 775, 777 ], [ 773, 778 ], [ 778, 779 ], [ 778, 780 ], [ 773, 781 ], [ 781, 782 ], [ 782, 783 ], [ 773, 784 ], [ 784, 785 ], [ 785, 786 ], [ 786, 787 ], [ 787, 788 ], [ 787, 789 ], [ 786, 790 ], [ 785, 791 ], [ 791, 792 ], [ 755, 793 ], [ 793, 794 ], [ 753, 795 ], [ 795, 796 ], [ 753, 797 ], [ 797, 798 ], [ 121, 799 ], [ 799, 800 ], [ 799, 801 ], [ 801, 802 ], [ 802, 803 ], [ 803, 804 ], [ 804, 805 ], [ 804, 806 ], [ 802, 807 ], [ 807, 808 ], [ 808, 809 ], [ 807, 810 ], [ 799, 811 ], [ 811, 812 ], [ 0, 813 ], [ 813, 814 ], [ 813, 815 ] ]
[ "// package beginner00179;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.InputMismatchException;\n\npublic class Main {\n\tprivate static PrintWriter out;\n\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tint n = in.ni();\n\t\tint[][] a = in.nim(n, 2);\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tif (a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]) {\n\t\t\t\tout.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tout.println(\"No\");\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}", "import java.io.ByteArrayInputStream;", "ByteArrayInputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "public class Main {\n\tprivate static PrintWriter out;\n\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tint n = in.ni();\n\t\tint[][] a = in.nim(n, 2);\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tif (a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]) {\n\t\t\t\tout.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tout.println(\"No\");\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}", "Main", "private static PrintWriter out;", "out", "public static void solve() {\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tint n = in.ni();\n\t\tint[][] a = in.nim(n, 2);\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tif (a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]) {\n\t\t\t\tout.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tout.println(\"No\");\n\n\t}", "solve", "{\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tint n = in.ni();\n\t\tint[][] a = in.nim(n, 2);\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tif (a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]) {\n\t\t\t\tout.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tout.println(\"No\");\n\n\t}", "In in = new In();", "in", "new In()", "int n = in.ni();", "n", "in.ni()", "in.ni", "in", "int[][] a = in.nim(n, 2);", "a", "in.nim(n, 2)", "in.nim", "in", "n", "2", "for (int i = 2; i < n; i++) {\n\t\t\tif (a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]) {\n\t\t\t\tout.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "int i = 2;", "int i = 2;", "i", "2", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tif (a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]) {\n\t\t\t\tout.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]) {\n\t\t\t\tout.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "if (a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]) {\n\t\t\t\tout.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]", "a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]", "a[i][0] == a[i][1]", "a[i][0]", "a[i]", "a", "i", "0", "a[i][1]", "a[i]", "a", "i", "1", "a[i - 1][0] == a[i - 1][1]", "a[i - 1][0]", "a[i - 1]", "a", "i - 1", "i", "1", "0", "a[i - 1][1]", "a[i - 1]", "a", "i - 1", "i", "1", "1", "a[i - 2][0] == a[i - 2][1]", "a[i - 2][0]", "a[i - 2]", "a", "i - 2", "i", "2", "0", "a[i - 2][1]", "a[i - 2]", "a", "i - 2", "i", "2", "1", "{\n\t\t\t\tout.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "out.println(\"Yes\")", "out.println", "out", "\"Yes\"", "return;", "out.println(\"No\")", "out.println", "out", "\"No\"", "public static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}", "main", "{\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "solve()", "solve", "out.flush()", "out.flush", "out", "String[] args", "args", "private static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}", "In", "final private static int BUFFER_SIZE = 1024;", "BUFFER_SIZE", "1024", "private byte[] buf;", "buf", "private InputStream is;", "is", "private int buflen;", "buflen", "private int bufptr;", "bufptr", "public In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}", "In", "{\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}", "is = System.in", "is", "System.in", "System", "System.in", "buf = new byte[BUFFER_SIZE]", "buf", "new byte[BUFFER_SIZE]", "BUFFER_SIZE", "buflen = bufptr = 0", "buflen", "bufptr = 0", "bufptr", "0", "public In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}", "In", "{\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}", "is = new ByteArrayInputStream(input.getBytes())", "is", "new ByteArrayInputStream(input.getBytes())", "buf = new byte[BUFFER_SIZE]", "buf", "new byte[BUFFER_SIZE]", "BUFFER_SIZE", "buflen = bufptr = 0", "buflen", "bufptr = 0", "bufptr", "0", "String input", "input", "public int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}", "readByte", "{\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}", "if (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}", "bufptr >= buflen", "bufptr", "buflen", "{\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}", "try {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}", "catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}", "IOException ioe", "{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}", "throw new InputMismatchException();", "new InputMismatchException()", "{\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t}", "buflen = is.read(buf)", "buflen", "is.read(buf)", "is.read", "is", "buf", "bufptr = 0", "bufptr", "0", "if (buflen <= 0)\n\t\t\t\treturn -1;", "buflen <= 0", "buflen", "0", "return -1;", "-1", "1", "return buf[bufptr++];", "buf[bufptr++]", "buf", "bufptr++", "bufptr", "public boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}", "isSpaceChar", "{\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}", "return !(c >= 33 && c <= 126);", "!(c >= 33 && c <= 126)", "(c >= 33 && c <= 126)", "c >= 33", "c", "33", "c <= 126", "c", "126", "int c", "c", "public int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}", "skip", "{\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}", "int b;", "b", "while ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;", "(b = readByte()) != -1 && isSpaceChar(b)", "(b = readByte()) != -1", "(b = readByte())", "b", "readByte()", "readByte", "-1", "1", "isSpaceChar(b)", "isSpaceChar", "b", "return b;", "b", "/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}", "nc", "{\n\t\t\treturn (char) skip();\n\t\t}", "return (char) skip();", "(char) skip()", "skip", "/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}", "nd", "{\n\t\t\treturn Double.parseDouble(ns());\n\t\t}", "return Double.parseDouble(ns());", "Double.parseDouble(ns())", "Double.parseDouble", "Double", "ns()", "ns", "/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}", "ns", "{\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}", "final StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = skip();", "b", "skip()", "skip", "while (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}", "!isSpaceChar(b)", "isSpaceChar(b)", "isSpaceChar", "b", "{\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}", "sb.appendCodePoint(b)", "sb.appendCodePoint", "sb", "b", "b = readByte()", "b", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}", "ni", "{\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}", "boolean minus = false;", "minus", "false", "int num = 0;", "num", "0", "int b;", "b", "while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;", "(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')", "(b = readByte()) != -1", "(b = readByte())", "b", "readByte()", "readByte", "-1", "1", "!((b >= '0' && b <= '9') || b == '-')", "((b >= '0' && b <= '9') || b == '-')", "(b >= '0' && b <= '9')", "b >= '0'", "b", "'0'", "b <= '9'", "b", "'9'", "b == '-'", "b", "'-'", "if (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}", "b == '-'", "b", "'-'", "{\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "while (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}", "b >= '0' && b <= '9'", "b >= '0'", "b", "'0'", "b <= '9'", "b", "'9'", "{\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}", "num = num * 10 + (b - '0')", "num", "num * 10 + (b - '0')", "num * 10", "num", "10", "(b - '0')", "b", "'0'", "b = readByte()", "b", "readByte()", "readByte", "return minus ? -num : num;", "minus ? -num : num", "minus", "-num", "num", "num", "/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}", "nl", "{\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}", "boolean minus = false;", "minus", "false", "long num = 0;", "num", "0", "int b;", "b", "while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;", "(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')", "(b = readByte()) != -1", "(b = readByte())", "b", "readByte()", "readByte", "-1", "1", "!((b >= '0' && b <= '9') || b == '-')", "((b >= '0' && b <= '9') || b == '-')", "(b >= '0' && b <= '9')", "b >= '0'", "b", "'0'", "b <= '9'", "b", "'9'", "b == '-'", "b", "'-'", "if (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}", "b == '-'", "b", "'-'", "{\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "while (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}", "b >= '0' && b <= '9'", "b >= '0'", "b", "'0'", "b <= '9'", "b", "'9'", "{\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}", "num = num * 10 + (b - '0')", "num", "num * 10 + (b - '0')", "num * 10", "num", "10", "(b - '0')", "b", "'0'", "b = readByte()", "b", "readByte()", "readByte", "return minus ? -num : num;", "minus ? -num : num", "minus", "-num", "num", "num", "/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}", "nia", "{\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}", "final int[] arr = new int[n];", "arr", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "arr[i] = ni();", "arr[i] = ni()", "arr[i]", "arr", "i", "ni()", "ni", "return arr;", "arr", "int n", "n", "/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}", "nla", "{\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}", "final long[] arr = new long[n];", "arr", "new long[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "arr[i] = nl();", "arr[i] = nl()", "arr[i]", "arr", "i", "nl()", "nl", "return arr;", "arr", "int n", "n", "/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}", "nsa", "{\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}", "final String[] arr = new String[n];", "arr", "new String[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "arr[i] = ns();", "arr[i] = ns()", "arr[i]", "arr", "i", "ns()", "ns", "return arr;", "arr", "int n", "n", "/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}", "nca", "{\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}", "final char[] arr = new char[n];", "arr", "new char[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "arr[i] = nc();", "arr[i] = nc()", "arr[i]", "arr", "i", "nc()", "nc", "return arr;", "arr", "int n", "n", "/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}", "nda", "{\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}", "final double[] arr = new double[n];", "arr", "new double[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "arr[i] = nc();", "arr[i] = nc()", "arr[i]", "arr", "i", "nc()", "nc", "return arr;", "arr", "int n", "n", "/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}", "nim", "{\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}", "final int[][] arr = new int[n][m];", "arr", "new int[n][m]", "n", "m", "for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();", "for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();", "int j = 0;", "int j = 0;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "arr[i][j] = ni();", "arr[i][j] = ni()", "arr[i][j]", "arr[i]", "arr", "i", "j", "ni()", "ni", "return arr;", "arr", "int n", "n", "int m", "m", "/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}", "nlm", "{\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}", "final long[][] arr = new long[n][m];", "arr", "new long[n][m]", "n", "m", "for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();", "for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();", "int j = 0;", "int j = 0;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "arr[i][j] = nl();", "arr[i][j] = nl()", "arr[i][j]", "arr[i]", "arr", "i", "j", "nl()", "nl", "return arr;", "arr", "int n", "n", "int m", "m", "/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}", "nsm", "{\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}", "final String[][] arr = new String[n][m];", "arr", "new String[n][m]", "n", "m", "for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();", "for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();", "int j = 0;", "int j = 0;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "arr[i][j] = ns();", "arr[i][j] = ns()", "arr[i][j]", "arr[i]", "arr", "i", "j", "ns()", "ns", "return arr;", "arr", "int n", "n", "int m", "m", "/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}", "ncm", "{\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}", "final char[][] arr = new char[n][m];", "arr", "new char[n][m]", "n", "m", "for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();", "for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();", "int j = 0;", "int j = 0;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "arr[i][j] = nc();", "arr[i][j] = nc()", "arr[i][j]", "arr[i]", "arr", "i", "j", "nc()", "nc", "return arr;", "arr", "int n", "n", "int m", "m", "/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}", "ndm", "{\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}", "final double[][] arr = new double[n][m];", "arr", "new double[n][m]", "n", "m", "for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();", "for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();", "int j = 0;", "int j = 0;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "arr[i][j] = nd();", "arr[i][j] = nd()", "arr[i][j]", "arr[i]", "arr", "i", "j", "nd()", "nd", "return arr;", "arr", "int n", "n", "int m", "m", "public static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}", "log", "{\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}", "System.out.println(Arrays.deepToString(o))", "System.out.println", "System.out", "System", "System.out", "Arrays.deepToString(o)", "Arrays.deepToString", "Arrays", "o", "Object... o", "o", "public class Main {\n\tprivate static PrintWriter out;\n\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tint n = in.ni();\n\t\tint[][] a = in.nim(n, 2);\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tif (a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]) {\n\t\t\t\tout.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tout.println(\"No\");\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}", "public class Main {\n\tprivate static PrintWriter out;\n\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tint n = in.ni();\n\t\tint[][] a = in.nim(n, 2);\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tif (a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]) {\n\t\t\t\tout.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tout.println(\"No\");\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}", "Main" ]
// package beginner00179; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; public class Main { private static PrintWriter out; public static void solve() { In in = new In(); // BEFORE SUBMISSION :: Change class name to Main and comment out package name // !!! int n = in.ni(); int[][] a = in.nim(n, 2); for (int i = 2; i < n; i++) { if (a[i][0] == a[i][1] && a[i - 1][0] == a[i - 1][1] && a[i - 2][0] == a[i - 2][1]) { out.println("Yes"); return; } } out.println("No"); } public static void main(String[] args) throws IOException { // long start = System.nanoTime(); out = new PrintWriter(System.out); solve(); out.flush(); // System.out.println("Elapsed: " + (System.nanoTime() - start) / 1000000 + // "ns"); } @SuppressWarnings("unused") private static class In { final private static int BUFFER_SIZE = 1024; private byte[] buf; private InputStream is; private int buflen; private int bufptr; public In() { is = System.in; buf = new byte[BUFFER_SIZE]; buflen = bufptr = 0; } public In(String input) { is = new ByteArrayInputStream(input.getBytes()); buf = new byte[BUFFER_SIZE]; buflen = bufptr = 0; } public int readByte() { if (bufptr >= buflen) { try { buflen = is.read(buf); } catch (IOException ioe) { throw new InputMismatchException(); } bufptr = 0; } if (buflen <= 0) return -1; return buf[bufptr++]; } public boolean isSpaceChar(int c) { return !(c >= 33 && c <= 126); } public int skip() { int b; while ((b = readByte()) != -1 && isSpaceChar(b)) ; return b; } /* Next character */ public char nc() { return (char) skip(); } /* Next double */ public double nd() { return Double.parseDouble(ns()); } /* Next string */ public String ns() { final StringBuilder sb = new StringBuilder(); int b = skip(); while (!isSpaceChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } /* Next integer */ public int ni() { boolean minus = false; int num = 0; int b; while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ; if (b == '-') { minus = true; b = readByte(); } while (b >= '0' && b <= '9') { num = num * 10 + (b - '0'); b = readByte(); } return minus ? -num : num; } /* Next long */ public long nl() { boolean minus = false; long num = 0; int b; while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ; if (b == '-') { minus = true; b = readByte(); } while (b >= '0' && b <= '9') { num = num * 10 + (b - '0'); b = readByte(); } return minus ? -num : num; } /* Next integer 1D array */ public int[] nia(int n) { final int[] arr = new int[n]; for (int i = 0; i < n; i++) arr[i] = ni(); return arr; } /* Next long 1D array */ public long[] nla(int n) { final long[] arr = new long[n]; for (int i = 0; i < n; i++) arr[i] = nl(); return arr; } /* Next string 1D array */ public String[] nsa(int n) { final String[] arr = new String[n]; for (int i = 0; i < n; i++) arr[i] = ns(); return arr; } /* Next char 1D array */ public char[] nca(int n) { final char[] arr = new char[n]; for (int i = 0; i < n; i++) arr[i] = nc(); return arr; } /* Next double 1D array */ public double[] nda(int n) { final double[] arr = new double[n]; for (int i = 0; i < n; i++) arr[i] = nc(); return arr; } /* Next integer matrix */ public int[][] nim(int n, int m) { final int[][] arr = new int[n][m]; for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) arr[i][j] = ni(); return arr; } /* Next long matrix */ public long[][] nlm(int n, int m) { final long[][] arr = new long[n][m]; for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) arr[i][j] = nl(); return arr; } /* Next string matrix */ public String[][] nsm(int n, int m) { final String[][] arr = new String[n][m]; for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) arr[i][j] = ns(); return arr; } /* Next char matrix */ public char[][] ncm(int n, int m) { final char[][] arr = new char[n][m]; for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) arr[i][j] = nc(); return arr; } /* Next double matrix */ public double[][] ndm(int n, int m) { final double[][] arr = new double[n][m]; for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) arr[i][j] = nd(); return arr; } public static void log(Object... o) { System.out.println(Arrays.deepToString(o)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 41, 13, 20, 0, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 230, 8 ], [ 230, 9 ], [ 9, 10 ], [ 230, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 17, 19 ], [ 13, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 13, 25 ], [ 25, 26 ], [ 25, 27 ], [ 13, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 43, 49 ], [ 49, 50 ], [ 50, 51 ], [ 42, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 52, 58 ], [ 58, 59 ], [ 59, 60 ], [ 13, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 61, 73 ], [ 73, 74 ], [ 74, 75 ], [ 61, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 80, 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 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 92, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 100, 106 ], [ 80, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 107, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 115, 121 ], [ 78, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 122, 129 ], [ 13, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 13, 136 ], [ 136, 137 ], [ 137, 138 ], [ 11, 139 ], [ 139, 140 ], [ 230, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 141, 145 ], [ 145, 146 ], [ 141, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 141, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 156, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 166, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 155, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 141, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 185, 188 ], [ 188, 189 ], [ 141, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 194, 197 ], [ 197, 198 ], [ 141, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 203, 206 ], [ 206, 207 ], [ 141, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 210, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 214, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 225, 226 ], [ 210, 227 ], [ 227, 228 ], [ 0, 229 ], [ 229, 230 ], [ 229, 231 ] ]
[ "import java.io.*;\nimport java.util.*;\n\n\npublic class Main{\n\t\n\tpublic static void main(String[] args){\n\t\n\tMyScanner sc = new MyScanner();\n\tout = new PrintWriter(new BufferedOutputStream(System.out));\n\t\n\t/**/\n\t\n\tint numberOfRolls = sc.nextInt();\n\t\n\tint[][] array = new int[numberOfRolls][2];\n\t\n\tfor(int i = 0; i < numberOfRolls; i++){\n\t\t\n\t\tarray[i][0] = sc.nextInt();\n\t\tarray[i][1] = sc.nextInt();\n\t\t\n\t}\n\t\n\tfor(int i = 0; i <= array.length - 3; i++){\n\t\t\n\t\tif(array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\n\t\t\n\t\t\n\t}\n\t\n\tSystem.out.println(\"No\");\n\t\n\t/**/\n\t \n\t out.close();\t\n\t}\n\t\n\tpublic static PrintWriter out;\n\t\n\tpublic static class MyScanner{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\t\n\t\tpublic MyScanner(){\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\t\n\t\tString next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n\t\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n\t\n\tpublic static void main(String[] args){\n\t\n\tMyScanner sc = new MyScanner();\n\tout = new PrintWriter(new BufferedOutputStream(System.out));\n\t\n\t/**/\n\t\n\tint numberOfRolls = sc.nextInt();\n\t\n\tint[][] array = new int[numberOfRolls][2];\n\t\n\tfor(int i = 0; i < numberOfRolls; i++){\n\t\t\n\t\tarray[i][0] = sc.nextInt();\n\t\tarray[i][1] = sc.nextInt();\n\t\t\n\t}\n\t\n\tfor(int i = 0; i <= array.length - 3; i++){\n\t\t\n\t\tif(array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\n\t\t\n\t\t\n\t}\n\t\n\tSystem.out.println(\"No\");\n\t\n\t/**/\n\t \n\t out.close();\t\n\t}\n\t\n\tpublic static PrintWriter out;\n\t\n\tpublic static class MyScanner{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\t\n\t\tpublic MyScanner(){\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\t\n\t\tString next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n\t\n}", "Main", "public static PrintWriter out;", "out", "public static void main(String[] args){\n\t\n\tMyScanner sc = new MyScanner();\n\tout = new PrintWriter(new BufferedOutputStream(System.out));\n\t\n\t/**/\n\t\n\tint numberOfRolls = sc.nextInt();\n\t\n\tint[][] array = new int[numberOfRolls][2];\n\t\n\tfor(int i = 0; i < numberOfRolls; i++){\n\t\t\n\t\tarray[i][0] = sc.nextInt();\n\t\tarray[i][1] = sc.nextInt();\n\t\t\n\t}\n\t\n\tfor(int i = 0; i <= array.length - 3; i++){\n\t\t\n\t\tif(array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\n\t\t\n\t\t\n\t}\n\t\n\tSystem.out.println(\"No\");\n\t\n\t/**/\n\t \n\t out.close();\t\n\t}", "main", "{\n\t\n\tMyScanner sc = new MyScanner();\n\tout = new PrintWriter(new BufferedOutputStream(System.out));\n\t\n\t/**/\n\t\n\tint numberOfRolls = sc.nextInt();\n\t\n\tint[][] array = new int[numberOfRolls][2];\n\t\n\tfor(int i = 0; i < numberOfRolls; i++){\n\t\t\n\t\tarray[i][0] = sc.nextInt();\n\t\tarray[i][1] = sc.nextInt();\n\t\t\n\t}\n\t\n\tfor(int i = 0; i <= array.length - 3; i++){\n\t\t\n\t\tif(array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\n\t\t\n\t\t\n\t}\n\t\n\tSystem.out.println(\"No\");\n\t\n\t/**/\n\t \n\t out.close();\t\n\t}", "MyScanner sc = new MyScanner();", "sc", "new MyScanner()", "out = new PrintWriter(new BufferedOutputStream(System.out))", "out", "new PrintWriter(new BufferedOutputStream(System.out))", "int numberOfRolls = sc.nextInt();", "numberOfRolls", "sc.nextInt()", "sc.nextInt", "sc", "int[][] array = new int[numberOfRolls][2];", "array", "new int[numberOfRolls][2]", "numberOfRolls", "2", "for(int i = 0; i < numberOfRolls; i++){\n\t\t\n\t\tarray[i][0] = sc.nextInt();\n\t\tarray[i][1] = sc.nextInt();\n\t\t\n\t}", "int i = 0;", "int i = 0;", "i", "0", "i < numberOfRolls", "i", "numberOfRolls", "i++", "i++", "i", "{\n\t\t\n\t\tarray[i][0] = sc.nextInt();\n\t\tarray[i][1] = sc.nextInt();\n\t\t\n\t}", "{\n\t\t\n\t\tarray[i][0] = sc.nextInt();\n\t\tarray[i][1] = sc.nextInt();\n\t\t\n\t}", "array[i][0] = sc.nextInt()", "array[i][0]", "array[i]", "array", "i", "0", "sc.nextInt()", "sc.nextInt", "sc", "array[i][1] = sc.nextInt()", "array[i][1]", "array[i]", "array", "i", "1", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i <= array.length - 3; i++){\n\t\t\n\t\tif(array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\n\t\t\n\t\t\n\t}", "int i = 0;", "int i = 0;", "i", "0", "i <= array.length - 3", "i", "array.length - 3", "array.length", "array", "array.length", "3", "i++", "i++", "i", "{\n\t\t\n\t\tif(array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\n\t\t\n\t\t\n\t}", "{\n\t\t\n\t\tif(array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\n\t\t\n\t\t\n\t}", "if(array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}", "array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]", "array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]", "array[i][0] == array[i][1]", "array[i][0]", "array[i]", "array", "i", "0", "array[i][1]", "array[i]", "array", "i", "1", "array[i+1][0] == array[i+1][1]", "array[i+1][0]", "array[i+1]", "array", "i+1", "i", "1", "0", "array[i+1][1]", "array[i+1]", "array", "i+1", "i", "1", "1", "array[i+2][0] == array[i+2][1]", "array[i+2][0]", "array[i+2]", "array", "i+2", "i", "2", "0", "array[i+2][1]", "array[i+2]", "array", "i+2", "i", "2", "1", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "out.close()", "out.close", "out", "String[] args", "args", "public static class MyScanner{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\t\n\t\tpublic MyScanner(){\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\t\n\t\tString next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }", "MyScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public MyScanner(){\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "MyScanner", "{\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }", "nextLine", "{\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }", "catch (IOException e) {\n\t e.printStackTrace();\n\t }", "IOException e", "{\n\t e.printStackTrace();\n\t }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t str = br.readLine();\n\t }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main{\n\t\n\tpublic static void main(String[] args){\n\t\n\tMyScanner sc = new MyScanner();\n\tout = new PrintWriter(new BufferedOutputStream(System.out));\n\t\n\t/**/\n\t\n\tint numberOfRolls = sc.nextInt();\n\t\n\tint[][] array = new int[numberOfRolls][2];\n\t\n\tfor(int i = 0; i < numberOfRolls; i++){\n\t\t\n\t\tarray[i][0] = sc.nextInt();\n\t\tarray[i][1] = sc.nextInt();\n\t\t\n\t}\n\t\n\tfor(int i = 0; i <= array.length - 3; i++){\n\t\t\n\t\tif(array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\n\t\t\n\t\t\n\t}\n\t\n\tSystem.out.println(\"No\");\n\t\n\t/**/\n\t \n\t out.close();\t\n\t}\n\t\n\tpublic static PrintWriter out;\n\t\n\tpublic static class MyScanner{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\t\n\t\tpublic MyScanner(){\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\t\n\t\tString next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n\t\n}", "public class Main{\n\t\n\tpublic static void main(String[] args){\n\t\n\tMyScanner sc = new MyScanner();\n\tout = new PrintWriter(new BufferedOutputStream(System.out));\n\t\n\t/**/\n\t\n\tint numberOfRolls = sc.nextInt();\n\t\n\tint[][] array = new int[numberOfRolls][2];\n\t\n\tfor(int i = 0; i < numberOfRolls; i++){\n\t\t\n\t\tarray[i][0] = sc.nextInt();\n\t\tarray[i][1] = sc.nextInt();\n\t\t\n\t}\n\t\n\tfor(int i = 0; i <= array.length - 3; i++){\n\t\t\n\t\tif(array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t\treturn;\n\t\t}\n\t\n\t\t\n\t\t\n\t}\n\t\n\tSystem.out.println(\"No\");\n\t\n\t/**/\n\t \n\t out.close();\t\n\t}\n\t\n\tpublic static PrintWriter out;\n\t\n\tpublic static class MyScanner{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\t\n\t\tpublic MyScanner(){\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\t\n\t\tString next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n\t\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args){ MyScanner sc = new MyScanner(); out = new PrintWriter(new BufferedOutputStream(System.out)); /**/ int numberOfRolls = sc.nextInt(); int[][] array = new int[numberOfRolls][2]; for(int i = 0; i < numberOfRolls; i++){ array[i][0] = sc.nextInt(); array[i][1] = sc.nextInt(); } for(int i = 0; i <= array.length - 3; i++){ if(array[i][0] == array[i][1] && array[i+1][0] == array[i+1][1] && array[i+2][0] == array[i+2][1]){ System.out.println("Yes"); return; } } System.out.println("No"); /**/ out.close(); } public static PrintWriter out; public static class MyScanner{ BufferedReader br; StringTokenizer st; public MyScanner(){ br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine(){ String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 4, 18, 13, 4, 18, 13, 14, 13, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 30, 0, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 81, 14 ], [ 81, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 41, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 60, 67 ], [ 51, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 17, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 15, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.math.*;\nimport java.util.*;\nimport java.util.function.*;\nimport java.util.stream.*;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n boolean b = sc.nextInt() == sc.nextInt();\n if (b) {\n count++;\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "import java.math.*;", "math.*", "java", "import java.util.*;", "util.*", "java", "import java.util.function.*;", "function.*", "java.util", "import java.util.stream.*;", "stream.*", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n boolean b = sc.nextInt() == sc.nextInt();\n if (b) {\n count++;\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n boolean b = sc.nextInt() == sc.nextInt();\n if (b) {\n count++;\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n boolean b = sc.nextInt() == sc.nextInt();\n if (b) {\n count++;\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "for (int i = 0; i < n; i++) {\n boolean b = sc.nextInt() == sc.nextInt();\n if (b) {\n count++;\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n boolean b = sc.nextInt() == sc.nextInt();\n if (b) {\n count++;\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }", "{\n boolean b = sc.nextInt() == sc.nextInt();\n if (b) {\n count++;\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }", "boolean b = sc.nextInt() == sc.nextInt();", "b", "sc.nextInt() == sc.nextInt()", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextInt()", "sc.nextInt", "sc", "if (b) {\n count++;\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }", "b", "{\n count++;\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n }", "count++", "count", "if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }", "count >= 3", "count", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "{\n count = 0;\n }", "count = 0", "count", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n boolean b = sc.nextInt() == sc.nextInt();\n if (b) {\n count++;\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n for (int i = 0; i < n; i++) {\n boolean b = sc.nextInt() == sc.nextInt();\n if (b) {\n count++;\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.math.*; import java.util.*; import java.util.function.*; import java.util.stream.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int count = 0; for (int i = 0; i < n; i++) { boolean b = sc.nextInt() == sc.nextInt(); if (b) { count++; if (count >= 3) { System.out.println("Yes"); return; } } else { count = 0; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 0, 13, 17, 30, 30, 14, 2, 2, 2, 4, 18, 13, 13, 4, 18, 13, 2, 13, 17, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 30, 0, 13, 17, 3, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 144, 11 ], [ 144, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 38, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 14, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 67, 71 ], [ 60, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 60, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 81, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 80, 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 ], [ 80, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 109, 111 ], [ 105, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 115, 116 ], [ 115, 117 ], [ 78, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 14, 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 ], [ 12, 141 ], [ 141, 142 ], [ 0, 143 ], [ 143, 144 ], [ 143, 145 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\nimport java.util.Vector;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\t\tint t=ob.nextInt();\n\t\tVector<Integer> v=new Vector();\n\t\tfor (int T=1; T<=t; T++) {\n\t\t\tint a=ob.nextInt();\n\t\t\tint b=ob.nextInt();\n\t\t\tv.add(a);\n\t\t\tv.add(b);\n\t\t}\n\t\tint k=0;\n\t\tfor (int i=0; i<=v.size()-6; i+=2) {\n\t\t\tif (v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)) {\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (k==1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Vector;", "Vector", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\t\tint t=ob.nextInt();\n\t\tVector<Integer> v=new Vector();\n\t\tfor (int T=1; T<=t; T++) {\n\t\t\tint a=ob.nextInt();\n\t\t\tint b=ob.nextInt();\n\t\t\tv.add(a);\n\t\t\tv.add(b);\n\t\t}\n\t\tint k=0;\n\t\tfor (int i=0; i<=v.size()-6; i+=2) {\n\t\t\tif (v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)) {\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (k==1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\t\tint t=ob.nextInt();\n\t\tVector<Integer> v=new Vector();\n\t\tfor (int T=1; T<=t; T++) {\n\t\t\tint a=ob.nextInt();\n\t\t\tint b=ob.nextInt();\n\t\t\tv.add(a);\n\t\t\tv.add(b);\n\t\t}\n\t\tint k=0;\n\t\tfor (int i=0; i<=v.size()-6; i+=2) {\n\t\t\tif (v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)) {\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (k==1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\t\tScanner ob=new Scanner(System.in);\n\t\tint t=ob.nextInt();\n\t\tVector<Integer> v=new Vector();\n\t\tfor (int T=1; T<=t; T++) {\n\t\t\tint a=ob.nextInt();\n\t\t\tint b=ob.nextInt();\n\t\t\tv.add(a);\n\t\t\tv.add(b);\n\t\t}\n\t\tint k=0;\n\t\tfor (int i=0; i<=v.size()-6; i+=2) {\n\t\t\tif (v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)) {\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (k==1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "Scanner ob=new Scanner(System.in);", "ob", "new Scanner(System.in)", "int t=ob.nextInt();", "t", "ob.nextInt()", "ob.nextInt", "ob", "Vector<Integer> v=new Vector();", "v", "new Vector()", "for (int T=1; T<=t; T++) {\n\t\t\tint a=ob.nextInt();\n\t\t\tint b=ob.nextInt();\n\t\t\tv.add(a);\n\t\t\tv.add(b);\n\t\t}", "int T=1;", "int T=1;", "T", "1", "T<=t", "T", "t", "T++", "T++", "T", "{\n\t\t\tint a=ob.nextInt();\n\t\t\tint b=ob.nextInt();\n\t\t\tv.add(a);\n\t\t\tv.add(b);\n\t\t}", "{\n\t\t\tint a=ob.nextInt();\n\t\t\tint b=ob.nextInt();\n\t\t\tv.add(a);\n\t\t\tv.add(b);\n\t\t}", "int a=ob.nextInt();", "a", "ob.nextInt()", "ob.nextInt", "ob", "int b=ob.nextInt();", "b", "ob.nextInt()", "ob.nextInt", "ob", "v.add(a)", "v.add", "v", "a", "v.add(b)", "v.add", "v", "b", "int k=0;", "k", "0", "for (int i=0; i<=v.size()-6; i+=2) {\n\t\t\tif (v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)) {\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<=v.size()-6", "i", "v.size()-6", "v.size()", "v.size", "v", "6", "i+=2", "i+=2", "i", "2", "{\n\t\t\tif (v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)) {\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)) {\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "if (v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)) {\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}", "v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)", "v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)", "v.get(i)==v.get(i+1)", "v.get(i)", "v.get", "v", "i", "v.get(i+1)", "v.get", "v", "i+1", "i", "1", "v.get(i+2)==v.get(i+3)", "v.get(i+2)", "v.get", "v", "i+2", "i", "2", "v.get(i+3)", "v.get", "v", "i+3", "i", "3", "v.get(i+4)==v.get(i+5)", "v.get(i+4)", "v.get", "v", "i+4", "i", "4", "v.get(i+5)", "v.get", "v", "i+5", "i", "5", "{\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}", "k=1", "k", "1", "break;", "if (k==1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "k==1", "k", "1", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\t\tint t=ob.nextInt();\n\t\tVector<Integer> v=new Vector();\n\t\tfor (int T=1; T<=t; T++) {\n\t\t\tint a=ob.nextInt();\n\t\t\tint b=ob.nextInt();\n\t\t\tv.add(a);\n\t\t\tv.add(b);\n\t\t}\n\t\tint k=0;\n\t\tfor (int i=0; i<=v.size()-6; i+=2) {\n\t\t\tif (v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)) {\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (k==1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\t\tint t=ob.nextInt();\n\t\tVector<Integer> v=new Vector();\n\t\tfor (int T=1; T<=t; T++) {\n\t\t\tint a=ob.nextInt();\n\t\t\tint b=ob.nextInt();\n\t\t\tv.add(a);\n\t\t\tv.add(b);\n\t\t}\n\t\tint k=0;\n\t\tfor (int i=0; i<=v.size()-6; i+=2) {\n\t\t\tif (v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)) {\n\t\t\t\tk=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (k==1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; import java.util.Vector; public class Main { public static void main(String[] args) { Scanner ob=new Scanner(System.in); int t=ob.nextInt(); Vector<Integer> v=new Vector(); for (int T=1; T<=t; T++) { int a=ob.nextInt(); int b=ob.nextInt(); v.add(a); v.add(b); } int k=0; for (int i=0; i<=v.size()-6; i+=2) { if (v.get(i)==v.get(i+1)&&v.get(i+2)==v.get(i+3)&&v.get(i+4)==v.get(i+5)) { k=1; break; } } if (k==1) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 14, 2, 2, 2, 2, 13, 17, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 237, 32 ], [ 237, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 39, 41 ], [ 35, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 35, 47 ], [ 47, 48 ], [ 47, 49 ], [ 35, 50 ], [ 50, 51 ], [ 50, 52 ], [ 35, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 68, 74 ], [ 74, 75 ], [ 75, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 67, 86 ], [ 86, 87 ], [ 89, 88 ], [ 104, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 93, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 112, 118 ], [ 89, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 120, 126 ], [ 119, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 127, 133 ], [ 86, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 35, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 143, 144 ], [ 143, 145 ], [ 143, 146 ], [ 33, 147 ], [ 147, 148 ], [ 237, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 154, 155 ], [ 154, 156 ], [ 149, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 160, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 165, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 159, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 149, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 184, 187 ], [ 187, 188 ], [ 149, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 191, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 196, 201 ], [ 201, 202 ], [ 201, 203 ], [ 196, 204 ], [ 204, 205 ], [ 205, 206 ], [ 196, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 212, 213 ], [ 191, 214 ], [ 214, 215 ], [ 189, 216 ], [ 216, 217 ], [ 149, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 222, 225 ], [ 225, 226 ], [ 149, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 231, 234 ], [ 234, 235 ], [ 0, 236 ], [ 236, 237 ], [ 236, 238 ] ]
[ "\n// Submitted By Subhash Yadav\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.math.BigDecimal;\nimport java.math.BigInteger;\nimport java.math.RoundingMode;\nimport java.text.DecimalFormat;\nimport java.util.*;\nimport java.util.stream.IntStream;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tboolean ok=false;\n\t\tint a[][]=new int[n][2];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i][0]=sc.nextInt();\n\t\t\ta[i][1]=sc.nextInt();\n\t\t\tif(i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]) {\n\t\t\t\tok=true;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ok?\"Yes\":\"No\");\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.math.BigDecimal;", "BigDecimal", "java.math", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.math.RoundingMode;", "RoundingMode", "java.math", "import java.text.DecimalFormat;", "DecimalFormat", "java.text", "import java.util.*;", "util.*", "java", "import java.util.stream.IntStream;", "IntStream", "java.util.stream", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tboolean ok=false;\n\t\tint a[][]=new int[n][2];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i][0]=sc.nextInt();\n\t\t\ta[i][1]=sc.nextInt();\n\t\t\tif(i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]) {\n\t\t\t\tok=true;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ok?\"Yes\":\"No\");\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tboolean ok=false;\n\t\tint a[][]=new int[n][2];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i][0]=sc.nextInt();\n\t\t\ta[i][1]=sc.nextInt();\n\t\t\tif(i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]) {\n\t\t\t\tok=true;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ok?\"Yes\":\"No\");\n\t}", "main", "{\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tboolean ok=false;\n\t\tint a[][]=new int[n][2];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i][0]=sc.nextInt();\n\t\t\ta[i][1]=sc.nextInt();\n\t\t\tif(i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]) {\n\t\t\t\tok=true;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ok?\"Yes\":\"No\");\n\t}", "FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "PrintWriter out=new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "boolean ok=false;", "ok", "false", "int a[][]=new int[n][2];", "a", "new int[n][2]", "n", "2", "for(int i=0;i<n;i++) {\n\t\t\ta[i][0]=sc.nextInt();\n\t\t\ta[i][1]=sc.nextInt();\n\t\t\tif(i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]) {\n\t\t\t\tok=true;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i][0]=sc.nextInt();\n\t\t\ta[i][1]=sc.nextInt();\n\t\t\tif(i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]) {\n\t\t\t\tok=true;\n\t\t\t}\n\t\t}", "{\n\t\t\ta[i][0]=sc.nextInt();\n\t\t\ta[i][1]=sc.nextInt();\n\t\t\tif(i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]) {\n\t\t\t\tok=true;\n\t\t\t}\n\t\t}", "a[i][0]=sc.nextInt()", "a[i][0]", "a[i]", "a", "i", "0", "sc.nextInt()", "sc.nextInt", "sc", "a[i][1]=sc.nextInt()", "a[i][1]", "a[i]", "a", "i", "1", "sc.nextInt()", "sc.nextInt", "sc", "if(i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]) {\n\t\t\t\tok=true;\n\t\t\t}", "i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]", "a[i-1][0]==a[i-1][1]", "i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]", "i>1", "i", "1", "a[i][0]==a[i][1]", "a[i][0]", "a[i]", "a", "i", "0", "a[i][1]", "a[i]", "a", "i", "1", "a[i-1][0]==a[i-1][1]", "a[i-1][0]", "a[i-1]", "a", "i-1", "i", "1", "0", "a[i-1][1]", "a[i-1]", "a", "i-1", "i", "1", "1", "a[i-2][0]==a[i-2][1]", "a[i-2][0]", "a[i-2]", "a", "i-2", "i", "2", "0", "a[i-2][1]", "a[i-2]", "a", "i-2", "i", "2", "1", "{\n\t\t\t\tok=true;\n\t\t\t}", "ok=true", "ok", "true", "System.out.println(ok?\"Yes\":\"No\")", "System.out.println", "System.out", "System", "System.out", "ok?\"Yes\":\"No\"", "ok", "\"Yes\"", "\"No\"", "String[] args", "args", "static class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}", "FastScanner", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st = new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "next", "{\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "while (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "IOException e", "{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "nextInt", "{\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "int[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}", "readArray", "{\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextInt();", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}", "nextLong", "{\n\t\t\treturn Long.parseLong(next());\n\t\t}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "nextDouble", "{\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tboolean ok=false;\n\t\tint a[][]=new int[n][2];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i][0]=sc.nextInt();\n\t\t\ta[i][1]=sc.nextInt();\n\t\t\tif(i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]) {\n\t\t\t\tok=true;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ok?\"Yes\":\"No\");\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=sc.nextInt();\n\t\tboolean ok=false;\n\t\tint a[][]=new int[n][2];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i][0]=sc.nextInt();\n\t\t\ta[i][1]=sc.nextInt();\n\t\t\tif(i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]) {\n\t\t\t\tok=true;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ok?\"Yes\":\"No\");\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}\n\n}", "Main" ]
// Submitted By Subhash Yadav import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigDecimal; import java.math.BigInteger; import java.math.RoundingMode; import java.text.DecimalFormat; import java.util.*; import java.util.stream.IntStream; public class Main { public static void main(String[] args) throws IOException { FastScanner sc = new FastScanner(); PrintWriter out=new PrintWriter(System.out); int n=sc.nextInt(); boolean ok=false; int a[][]=new int[n][2]; for(int i=0;i<n;i++) { a[i][0]=sc.nextInt(); a[i][1]=sc.nextInt(); if(i>1&&a[i][0]==a[i][1]&&a[i-1][0]==a[i-1][1]&&a[i-2][0]==a[i-2][1]) { ok=true; } } System.out.println(ok?"Yes":"No"); } static class FastScanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); String next() { while (!st.hasMoreTokens()) try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } int[] readArray(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 0, 13, 17, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 77, 8 ], [ 77, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 49, 56 ], [ 56, 57 ], [ 56, 58 ], [ 38, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 11, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 9, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.*;\nimport java.math.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint cnt = 0;\n\t\tString ans = \"No\";\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tif(a == b) cnt += 1;\n\t\t\telse cnt = 0;\n\t\t\tif(cnt >= 3) {\n\t\t\t\tans = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.math.*;", "math.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint cnt = 0;\n\t\tString ans = \"No\";\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tif(a == b) cnt += 1;\n\t\t\telse cnt = 0;\n\t\t\tif(cnt >= 3) {\n\t\t\t\tans = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint cnt = 0;\n\t\tString ans = \"No\";\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tif(a == b) cnt += 1;\n\t\t\telse cnt = 0;\n\t\t\tif(cnt >= 3) {\n\t\t\t\tans = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint cnt = 0;\n\t\tString ans = \"No\";\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tif(a == b) cnt += 1;\n\t\t\telse cnt = 0;\n\t\t\tif(cnt >= 3) {\n\t\t\t\tans = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int cnt = 0;", "cnt", "0", "String ans = \"No\";", "ans", "\"No\"", "for(int i = 0; i < n; i++) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tif(a == b) cnt += 1;\n\t\t\telse cnt = 0;\n\t\t\tif(cnt >= 3) {\n\t\t\t\tans = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tif(a == b) cnt += 1;\n\t\t\telse cnt = 0;\n\t\t\tif(cnt >= 3) {\n\t\t\t\tans = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tif(a == b) cnt += 1;\n\t\t\telse cnt = 0;\n\t\t\tif(cnt >= 3) {\n\t\t\t\tans = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int a = in.nextInt();", "a", "in.nextInt()", "in.nextInt", "in", "int b = in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "if(a == b) cnt += 1;\n\t\t\telse cnt = 0;", "a == b", "a", "b", "cnt += 1", "cnt", "1", "cnt = 0", "cnt", "0", "if(cnt >= 3) {\n\t\t\t\tans = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}", "cnt >= 3", "cnt", "3", "{\n\t\t\t\tans = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}", "ans = \"Yes\"", "ans", "\"Yes\"", "break;", "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) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint cnt = 0;\n\t\tString ans = \"No\";\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tif(a == b) cnt += 1;\n\t\t\telse cnt = 0;\n\t\t\tif(cnt >= 3) {\n\t\t\t\tans = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint cnt = 0;\n\t\tString ans = \"No\";\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tif(a == b) cnt += 1;\n\t\t\telse cnt = 0;\n\t\t\tif(cnt >= 3) {\n\t\t\t\tans = \"Yes\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.util.*; import java.math.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int cnt = 0; String ans = "No"; for(int i = 0; i < n; i++) { int a = in.nextInt(); int b = in.nextInt(); if(a == b) cnt += 1; else cnt = 0; if(cnt >= 3) { ans = "Yes"; break; } } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 40, 13, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 35, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 8, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ] ]
[ "import java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint count=0;\n\t\tboolean flag=false;\n\t\tfor (int i=0;i<n;i++){\n\t\t\tint a=in.nextInt();\n\t\t\tint b=in.nextInt();\n\t\t\tif (a==b) count ++;\n\t\t\telse count =0;\n\t\t\tif (count>=3) flag=true;\n\t\t}\n\t\tif (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint count=0;\n\t\tboolean flag=false;\n\t\tfor (int i=0;i<n;i++){\n\t\t\tint a=in.nextInt();\n\t\t\tint b=in.nextInt();\n\t\t\tif (a==b) count ++;\n\t\t\telse count =0;\n\t\t\tif (count>=3) flag=true;\n\t\t}\n\t\tif (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint count=0;\n\t\tboolean flag=false;\n\t\tfor (int i=0;i<n;i++){\n\t\t\tint a=in.nextInt();\n\t\t\tint b=in.nextInt();\n\t\t\tif (a==b) count ++;\n\t\t\telse count =0;\n\t\t\tif (count>=3) flag=true;\n\t\t}\n\t\tif (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint count=0;\n\t\tboolean flag=false;\n\t\tfor (int i=0;i<n;i++){\n\t\t\tint a=in.nextInt();\n\t\t\tint b=in.nextInt();\n\t\t\tif (a==b) count ++;\n\t\t\telse count =0;\n\t\t\tif (count>=3) flag=true;\n\t\t}\n\t\tif (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n=in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int count=0;", "count", "0", "boolean flag=false;", "flag", "false", "for (int i=0;i<n;i++){\n\t\t\tint a=in.nextInt();\n\t\t\tint b=in.nextInt();\n\t\t\tif (a==b) count ++;\n\t\t\telse count =0;\n\t\t\tif (count>=3) flag=true;\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint a=in.nextInt();\n\t\t\tint b=in.nextInt();\n\t\t\tif (a==b) count ++;\n\t\t\telse count =0;\n\t\t\tif (count>=3) flag=true;\n\t\t}", "{\n\t\t\tint a=in.nextInt();\n\t\t\tint b=in.nextInt();\n\t\t\tif (a==b) count ++;\n\t\t\telse count =0;\n\t\t\tif (count>=3) flag=true;\n\t\t}", "int a=in.nextInt();", "a", "in.nextInt()", "in.nextInt", "in", "int b=in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "if (a==b) count ++;\n\t\t\telse count =0;", "a==b", "a", "b", "count ++", "count", "count =0", "count", "0", "if (count>=3) flag=true;", "count>=3", "count", "3", "flag=true", "flag", "true", "if (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");", "flag", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner in = new Scanner(System.in); int n=in.nextInt(); int count=0; boolean flag=false; for (int i=0;i<n;i++){ int a=in.nextInt(); int b=in.nextInt(); if (a==b) count ++; else count =0; if (count>=3) flag=true; } if (flag) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 40, 13, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 29, 4, 18, 13, 17, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 18, 13, 13, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 6, 13, 12, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 297, 23 ], [ 297, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 26, 37 ], [ 37, 38 ], [ 37, 39 ], [ 26, 40 ], [ 40, 41 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 26, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 46, 50 ], [ 46, 51 ], [ 26, 52 ], [ 52, 53 ], [ 53, 54 ], [ 24, 55 ], [ 55, 56 ], [ 297, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 61, 67 ], [ 67, 68 ], [ 67, 69 ], [ 61, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 82, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 82, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 93, 99 ], [ 99, 100 ], [ 99, 101 ], [ 82, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 106, 111 ], [ 61, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 59, 116 ], [ 116, 117 ], [ 59, 118 ], [ 118, 119 ], [ 59, 120 ], [ 120, 121 ], [ 297, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 122, 126 ], [ 126, 127 ], [ 126, 128 ], [ 122, 130 ], [ 130, 131 ], [ 122, 132 ], [ 132, 133 ], [ 122, 134 ], [ 134, 135 ], [ 122, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 136, 144 ], [ 144, 145 ], [ 122, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 149, 154 ], [ 154, 155 ], [ 148, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 164, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 160, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 181, 182 ], [ 182, 183 ], [ 148, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 187, 188 ], [ 122, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 191, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 196, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 191, 204 ], [ 204, 205 ], [ 204, 206 ], [ 191, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 207, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 211, 216 ], [ 216, 217 ], [ 216, 218 ], [ 218, 219 ], [ 191, 220 ], [ 220, 221 ], [ 220, 222 ], [ 191, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 225, 227 ], [ 223, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 230, 234 ], [ 234, 235 ], [ 234, 236 ], [ 229, 237 ], [ 237, 238 ], [ 228, 239 ], [ 239, 240 ], [ 239, 241 ], [ 228, 242 ], [ 242, 243 ], [ 242, 244 ], [ 244, 245 ], [ 244, 246 ], [ 228, 247 ], [ 247, 248 ], [ 247, 249 ], [ 249, 250 ], [ 191, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 122, 255 ], [ 255, 256 ], [ 255, 257 ], [ 257, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 258, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 263, 266 ], [ 257, 267 ], [ 267, 268 ], [ 271, 269 ], [ 281, 270 ], [ 278, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 271, 275 ], [ 275, 276 ], [ 275, 277 ], [ 278, 278 ], [ 278, 279 ], [ 278, 280 ], [ 281, 281 ], [ 281, 282 ], [ 281, 283 ], [ 271, 284 ], [ 284, 285 ], [ 284, 286 ], [ 286, 287 ], [ 255, 288 ], [ 288, 289 ], [ 122, 290 ], [ 290, 291 ], [ 290, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 0, 296 ], [ 296, 297 ], [ 296, 298 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Pranay2516\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BGoToJail {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), cnt = 0;\n for (int i = 0; i < n; ++i) {\n int u = in.nextInt(), v = in.nextInt();\n if (u == v) cnt++;\n else cnt = 0;\n if (cnt >= 3) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BGoToJail {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), cnt = 0;\n for (int i = 0; i < n; ++i) {\n int u = in.nextInt(), v = in.nextInt();\n if (u == v) cnt++;\n else cnt = 0;\n if (cnt >= 3) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "FastReader in = new FastReader(inputStream);", "in", "new FastReader(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "BGoToJail solver = new BGoToJail();", "solver", "new BGoToJail()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class BGoToJail {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), cnt = 0;\n for (int i = 0; i < n; ++i) {\n int u = in.nextInt(), v = in.nextInt();\n if (u == v) cnt++;\n else cnt = 0;\n if (cnt >= 3) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n\n }", "BGoToJail", "public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), cnt = 0;\n for (int i = 0; i < n; ++i) {\n int u = in.nextInt(), v = in.nextInt();\n if (u == v) cnt++;\n else cnt = 0;\n if (cnt >= 3) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }", "solve", "{\n int n = in.nextInt(), cnt = 0;\n for (int i = 0; i < n; ++i) {\n int u = in.nextInt(), v = in.nextInt();\n if (u == v) cnt++;\n else cnt = 0;\n if (cnt >= 3) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }", "int n = in.nextInt()", "n", "in.nextInt()", "in.nextInt", "in", "cnt = 0;", "cnt", "0", "for (int i = 0; i < n; ++i) {\n int u = in.nextInt(), v = in.nextInt();\n if (u == v) cnt++;\n else cnt = 0;\n if (cnt >= 3) {\n out.println(\"Yes\");\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n int u = in.nextInt(), v = in.nextInt();\n if (u == v) cnt++;\n else cnt = 0;\n if (cnt >= 3) {\n out.println(\"Yes\");\n return;\n }\n }", "{\n int u = in.nextInt(), v = in.nextInt();\n if (u == v) cnt++;\n else cnt = 0;\n if (cnt >= 3) {\n out.println(\"Yes\");\n return;\n }\n }", "int u = in.nextInt()", "u", "in.nextInt()", "in.nextInt", "in", "v = in.nextInt();", "v", "in.nextInt()", "in.nextInt", "in", "if (u == v) cnt++;\n else cnt = 0;", "u == v", "u", "v", "cnt++", "cnt", "cnt = 0", "cnt", "0", "if (cnt >= 3) {\n out.println(\"Yes\");\n return;\n }", "cnt >= 3", "cnt", "3", "{\n out.println(\"Yes\");\n return;\n }", "out.println(\"Yes\")", "out.println", "out", "\"Yes\"", "return;", "out.println(\"No\")", "out.println", "out", "\"No\"", "int testNumber", "testNumber", "FastReader in", "in", "PrintWriter out", "out", "static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }", "FastReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private FastReader.SpaceCharFilter filter;", "filter", "public FastReader(InputStream stream) {\n this.stream = stream;\n }", "FastReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }", "if (numChars == -1) throw new InputMismatchException();", "numChars == -1", "numChars", "-1", "1", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0) return -1;", "numChars <= 0", "numChars", "0", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "nextInt", "{\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "int res = 0;", "res", "0", "do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9') throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isSpaceChar", "{\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "if (filter != null) return filter.isSpaceChar(c);", "filter != null", "filter", "null", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BGoToJail {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), cnt = 0;\n for (int i = 0; i < n; ++i) {\n int u = in.nextInt(), v = in.nextInt();\n if (u == v) cnt++;\n else cnt = 0;\n if (cnt >= 3) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BGoToJail solver = new BGoToJail();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BGoToJail {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), cnt = 0;\n for (int i = 0; i < n; ++i) {\n int u = in.nextInt(), v = in.nextInt();\n if (u == v) cnt++;\n else cnt = 0;\n if (cnt >= 3) {\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @author Pranay2516 */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; FastReader in = new FastReader(inputStream); PrintWriter out = new PrintWriter(outputStream); BGoToJail solver = new BGoToJail(); solver.solve(1, in, out); out.close(); } static class BGoToJail { public void solve(int testNumber, FastReader in, PrintWriter out) { int n = in.nextInt(), cnt = 0; for (int i = 0; i < n; ++i) { int u = in.nextInt(), v = in.nextInt(); if (u == v) cnt++; else cnt = 0; if (cnt >= 3) { out.println("Yes"); return; } } out.println("No"); } } static class FastReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private FastReader.SpaceCharFilter filter; public FastReader(InputStream stream) { this.stream = stream; } public int read() { if (numChars == -1) throw new InputMismatchException(); if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) return -1; } return buf[curChar++]; } public int nextInt() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } int res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public boolean isSpaceChar(int c) { if (filter != null) return filter.isSpaceChar(c); return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 20, 13, 4, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 14, 2, 18, 13, 17, 18, 13, 17, 30, 0, 18, 13, 17, 17, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 14, 2, 2, 18, 13, 13, 18, 13, 13, 2, 2, 13, 17, 18, 13, 2, 13, 17, 30, 40, 13, 0, 18, 13, 13, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 18, 13, 13, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 184, 5 ], [ 184, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 32, 36 ], [ 8, 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 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 8, 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 ], [ 73, 77 ], [ 72, 78 ], [ 78, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 80, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 97, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 92, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 108, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 108, 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 ], [ 134, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 153, 155 ], [ 148, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 92, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 165, 170 ], [ 164, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 8, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 6, 181 ], [ 181, 182 ], [ 0, 183 ], [ 183, 184 ], [ 183, 185 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n int[] a = new int[n];\n int[] b = new int[n];\n boolean[] success = new boolean[n];\n Arrays.fill(success, false);\n for(int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n b[i] = sc.nextInt();\n }\n if(a[0] == b[0]){\n success[0] = true;\n count++;\n }\n\n for(int i = 1; i < n; i++) {\n if(count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n if(a[i] == b[i] && (count == 0 || success[i - 1])){\n count++;\n success[i] = true;\n }\n else if(a[i] == b[i]) {\n success[i] = true;\n }\n else if(a[i] != b[i]) {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n int[] a = new int[n];\n int[] b = new int[n];\n boolean[] success = new boolean[n];\n Arrays.fill(success, false);\n for(int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n b[i] = sc.nextInt();\n }\n if(a[0] == b[0]){\n success[0] = true;\n count++;\n }\n\n for(int i = 1; i < n; i++) {\n if(count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n if(a[i] == b[i] && (count == 0 || success[i - 1])){\n count++;\n success[i] = true;\n }\n else if(a[i] == b[i]) {\n success[i] = true;\n }\n else if(a[i] != b[i]) {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n int[] a = new int[n];\n int[] b = new int[n];\n boolean[] success = new boolean[n];\n Arrays.fill(success, false);\n for(int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n b[i] = sc.nextInt();\n }\n if(a[0] == b[0]){\n success[0] = true;\n count++;\n }\n\n for(int i = 1; i < n; i++) {\n if(count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n if(a[i] == b[i] && (count == 0 || success[i - 1])){\n count++;\n success[i] = true;\n }\n else if(a[i] == b[i]) {\n success[i] = true;\n }\n else if(a[i] != b[i]) {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n int[] a = new int[n];\n int[] b = new int[n];\n boolean[] success = new boolean[n];\n Arrays.fill(success, false);\n for(int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n b[i] = sc.nextInt();\n }\n if(a[0] == b[0]){\n success[0] = true;\n count++;\n }\n\n for(int i = 1; i < n; i++) {\n if(count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n if(a[i] == b[i] && (count == 0 || success[i - 1])){\n count++;\n success[i] = true;\n }\n else if(a[i] == b[i]) {\n success[i] = true;\n }\n else if(a[i] != b[i]) {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "int[] a = new int[n];", "a", "new int[n]", "n", "int[] b = new int[n];", "b", "new int[n]", "n", "boolean[] success = new boolean[n];", "success", "new boolean[n]", "n", "Arrays.fill(success, false)", "Arrays.fill", "Arrays", "success", "false", "for(int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n b[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = sc.nextInt();\n b[i] = sc.nextInt();\n }", "{\n a[i] = sc.nextInt();\n b[i] = sc.nextInt();\n }", "a[i] = sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "b[i] = sc.nextInt()", "b[i]", "b", "i", "sc.nextInt()", "sc.nextInt", "sc", "if(a[0] == b[0]){\n success[0] = true;\n count++;\n }", "a[0] == b[0]", "a[0]", "a", "0", "b[0]", "b", "0", "{\n success[0] = true;\n count++;\n }", "success[0] = true", "success[0]", "success", "0", "true", "count++", "count", "for(int i = 1; i < n; i++) {\n if(count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n if(a[i] == b[i] && (count == 0 || success[i - 1])){\n count++;\n success[i] = true;\n }\n else if(a[i] == b[i]) {\n success[i] = true;\n }\n else if(a[i] != b[i]) {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < n", "i", "n", "i++", "i++", "i", "{\n if(count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n if(a[i] == b[i] && (count == 0 || success[i - 1])){\n count++;\n success[i] = true;\n }\n else if(a[i] == b[i]) {\n success[i] = true;\n }\n else if(a[i] != b[i]) {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }", "{\n if(count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n if(a[i] == b[i] && (count == 0 || success[i - 1])){\n count++;\n success[i] = true;\n }\n else if(a[i] == b[i]) {\n success[i] = true;\n }\n else if(a[i] != b[i]) {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }", "if(count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }", "count == 3", "count", "3", "{\n System.out.println(\"Yes\");\n System.exit(0);\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.exit(0)", "System.exit", "System", "0", "if(a[i] == b[i] && (count == 0 || success[i - 1])){\n count++;\n success[i] = true;\n }\n else if(a[i] == b[i]) {\n success[i] = true;\n }\n else if(a[i] != b[i]) {\n count = 0;\n }", "a[i] == b[i] && (count == 0 || success[i - 1])", "a[i] == b[i]", "a[i]", "a", "i", "b[i]", "b", "i", "(count == 0 || success[i - 1])", "count == 0", "count", "0", "success[i - 1]", "success", "i - 1", "i", "1", "{\n count++;\n success[i] = true;\n }", "count++", "count", "success[i] = true", "success[i]", "success", "i", "true", "if(a[i] == b[i]) {\n success[i] = true;\n }\n else if(a[i] != b[i]) {\n count = 0;\n }", "a[i] == b[i]", "a[i]", "a", "i", "b[i]", "b", "i", "{\n success[i] = true;\n }", "success[i] = true", "success[i]", "success", "i", "true", "if(a[i] != b[i]) {\n count = 0;\n }", "a[i] != b[i]", "a[i]", "a", "i", "b[i]", "b", "i", "{\n count = 0;\n }", "count = 0", "count", "0", "if (count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }", "count == 3", "count", "3", "{\n System.out.println(\"Yes\");\n System.exit(0);\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.exit(0)", "System.exit", "System", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n int[] a = new int[n];\n int[] b = new int[n];\n boolean[] success = new boolean[n];\n Arrays.fill(success, false);\n for(int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n b[i] = sc.nextInt();\n }\n if(a[0] == b[0]){\n success[0] = true;\n count++;\n }\n\n for(int i = 1; i < n; i++) {\n if(count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n if(a[i] == b[i] && (count == 0 || success[i - 1])){\n count++;\n success[i] = true;\n }\n else if(a[i] == b[i]) {\n success[i] = true;\n }\n else if(a[i] != b[i]) {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int count = 0;\n int[] a = new int[n];\n int[] b = new int[n];\n boolean[] success = new boolean[n];\n Arrays.fill(success, false);\n for(int i = 0; i < n; i++) {\n a[i] = sc.nextInt();\n b[i] = sc.nextInt();\n }\n if(a[0] == b[0]){\n success[0] = true;\n count++;\n }\n\n for(int i = 1; i < n; i++) {\n if(count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n if(a[i] == b[i] && (count == 0 || success[i - 1])){\n count++;\n success[i] = true;\n }\n else if(a[i] == b[i]) {\n success[i] = true;\n }\n else if(a[i] != b[i]) {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int count = 0; int[] a = new int[n]; int[] b = new int[n]; boolean[] success = new boolean[n]; Arrays.fill(success, false); for(int i = 0; i < n; i++) { a[i] = sc.nextInt(); b[i] = sc.nextInt(); } if(a[0] == b[0]){ success[0] = true; count++; } for(int i = 1; i < n; i++) { if(count == 3) { System.out.println("Yes"); System.exit(0); } if(a[i] == b[i] && (count == 0 || success[i - 1])){ count++; success[i] = true; } else if(a[i] == b[i]) { success[i] = true; } else if(a[i] != b[i]) { count = 0; } if (count == 3) { System.out.println("Yes"); System.exit(0); } } System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 3, 30, 0, 13, 17, 14, 40, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 110, 5 ], [ 110, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 28, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 83, 90 ], [ 68, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 6, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint N = in.nextInt();\n\t\tint[] D1 = new int[N];\n\t\tint[] D2 = new int[N];\n\t\tint a = 0;\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tD1[i] = in.nextInt();\n\t\t\tD2[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tif(D1[i] == D2[i]) {\n\t\t\t\ta++;\n\t\t\t\tif(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\ta = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!(a == 3)) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint N = in.nextInt();\n\t\tint[] D1 = new int[N];\n\t\tint[] D2 = new int[N];\n\t\tint a = 0;\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tD1[i] = in.nextInt();\n\t\t\tD2[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tif(D1[i] == D2[i]) {\n\t\t\t\ta++;\n\t\t\t\tif(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\ta = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!(a == 3)) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint N = in.nextInt();\n\t\tint[] D1 = new int[N];\n\t\tint[] D2 = new int[N];\n\t\tint a = 0;\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tD1[i] = in.nextInt();\n\t\t\tD2[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tif(D1[i] == D2[i]) {\n\t\t\t\ta++;\n\t\t\t\tif(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\ta = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!(a == 3)) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tint N = in.nextInt();\n\t\tint[] D1 = new int[N];\n\t\tint[] D2 = new int[N];\n\t\tint a = 0;\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tD1[i] = in.nextInt();\n\t\t\tD2[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tif(D1[i] == D2[i]) {\n\t\t\t\ta++;\n\t\t\t\tif(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\ta = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!(a == 3)) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int N = in.nextInt();", "N", "in.nextInt()", "in.nextInt", "in", "int[] D1 = new int[N];", "D1", "new int[N]", "N", "int[] D2 = new int[N];", "D2", "new int[N]", "N", "int a = 0;", "a", "0", "for(int i = 0; i < N; i++) {\n\t\t\tD1[i] = in.nextInt();\n\t\t\tD2[i] = in.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tD1[i] = in.nextInt();\n\t\t\tD2[i] = in.nextInt();\n\t\t}", "{\n\t\t\tD1[i] = in.nextInt();\n\t\t\tD2[i] = in.nextInt();\n\t\t}", "D1[i] = in.nextInt()", "D1[i]", "D1", "i", "in.nextInt()", "in.nextInt", "in", "D2[i] = in.nextInt()", "D2[i]", "D2", "i", "in.nextInt()", "in.nextInt", "in", "for(int i = 0; i < N; i++) {\n\t\t\tif(D1[i] == D2[i]) {\n\t\t\t\ta++;\n\t\t\t\tif(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\ta = 0;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tif(D1[i] == D2[i]) {\n\t\t\t\ta++;\n\t\t\t\tif(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\ta = 0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(D1[i] == D2[i]) {\n\t\t\t\ta++;\n\t\t\t\tif(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\ta = 0;\n\t\t\t}\n\t\t}", "if(D1[i] == D2[i]) {\n\t\t\t\ta++;\n\t\t\t\tif(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\ta = 0;\n\t\t\t}", "D1[i] == D2[i]", "D1[i]", "D1", "i", "D2[i]", "D2", "i", "{\n\t\t\t\ta++;\n\t\t\t\tif(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "a++", "a", "if(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}", "a == 3", "a", "3", "{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "{\n\t\t\t\ta = 0;\n\t\t\t}", "a = 0", "a", "0", "if(!(a == 3)) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "!(a == 3)", "(a == 3)", "a", "3", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint N = in.nextInt();\n\t\tint[] D1 = new int[N];\n\t\tint[] D2 = new int[N];\n\t\tint a = 0;\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tD1[i] = in.nextInt();\n\t\t\tD2[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tif(D1[i] == D2[i]) {\n\t\t\t\ta++;\n\t\t\t\tif(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\ta = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!(a == 3)) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint N = in.nextInt();\n\t\tint[] D1 = new int[N];\n\t\tint[] D2 = new int[N];\n\t\tint a = 0;\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tD1[i] = in.nextInt();\n\t\t\tD2[i] = in.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tif(D1[i] == D2[i]) {\n\t\t\t\ta++;\n\t\t\t\tif(a == 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\ta = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!(a == 3)) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int N = in.nextInt(); int[] D1 = new int[N]; int[] D2 = new int[N]; int a = 0; for(int i = 0; i < N; i++) { D1[i] = in.nextInt(); D2[i] = in.nextInt(); } for(int i = 0; i < N; i++) { if(D1[i] == D2[i]) { a++; if(a == 3) { System.out.println("Yes"); break; } }else { a = 0; } } if(!(a == 3)) { System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 40, 13, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 13, 0, 13, 17, 14, 40, 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 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 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 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 28, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 28, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 60, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 6, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "import java.util.*;\npublic class Main{\n\tpublic static void main(String[]args){\n Scanner scan=new Scanner(System.in);\n \tint n=scan.nextInt();\n\t\tint flag=0;\n\t\tboolean done=false;\n\t\twhile(n--!=0){\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tif(a==b)flag++;\n\t\t\tif(flag==3){\n\t\t\t\tdone=true;\n\t\t\t}\n\t\t\tif(a!=b)flag=0;\n\t\t}\n\t\tif(!done)\n\t\tSystem.out.println(\"No\");\n\t\telse\n\t\tSystem.out.println(\"Yes\");\n }\t\n \n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[]args){\n Scanner scan=new Scanner(System.in);\n \tint n=scan.nextInt();\n\t\tint flag=0;\n\t\tboolean done=false;\n\t\twhile(n--!=0){\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tif(a==b)flag++;\n\t\t\tif(flag==3){\n\t\t\t\tdone=true;\n\t\t\t}\n\t\t\tif(a!=b)flag=0;\n\t\t}\n\t\tif(!done)\n\t\tSystem.out.println(\"No\");\n\t\telse\n\t\tSystem.out.println(\"Yes\");\n }\t\n \n}", "Main", "public static void main(String[]args){\n Scanner scan=new Scanner(System.in);\n \tint n=scan.nextInt();\n\t\tint flag=0;\n\t\tboolean done=false;\n\t\twhile(n--!=0){\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tif(a==b)flag++;\n\t\t\tif(flag==3){\n\t\t\t\tdone=true;\n\t\t\t}\n\t\t\tif(a!=b)flag=0;\n\t\t}\n\t\tif(!done)\n\t\tSystem.out.println(\"No\");\n\t\telse\n\t\tSystem.out.println(\"Yes\");\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n \tint n=scan.nextInt();\n\t\tint flag=0;\n\t\tboolean done=false;\n\t\twhile(n--!=0){\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tif(a==b)flag++;\n\t\t\tif(flag==3){\n\t\t\t\tdone=true;\n\t\t\t}\n\t\t\tif(a!=b)flag=0;\n\t\t}\n\t\tif(!done)\n\t\tSystem.out.println(\"No\");\n\t\telse\n\t\tSystem.out.println(\"Yes\");\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n=scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int flag=0;", "flag", "0", "boolean done=false;", "done", "false", "while(n--!=0){\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tif(a==b)flag++;\n\t\t\tif(flag==3){\n\t\t\t\tdone=true;\n\t\t\t}\n\t\t\tif(a!=b)flag=0;\n\t\t}", "n--!=0", "n--", "n", "0", "{\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tif(a==b)flag++;\n\t\t\tif(flag==3){\n\t\t\t\tdone=true;\n\t\t\t}\n\t\t\tif(a!=b)flag=0;\n\t\t}", "int a=scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "int b=scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "if(a==b)flag++;", "a==b", "a", "b", "flag++", "flag", "if(flag==3){\n\t\t\t\tdone=true;\n\t\t\t}", "flag==3", "flag", "3", "{\n\t\t\t\tdone=true;\n\t\t\t}", "done=true", "done", "true", "if(a!=b)flag=0;", "a!=b", "a", "b", "flag=0", "flag", "0", "if(!done)\n\t\tSystem.out.println(\"No\");\n\t\telse\n\t\tSystem.out.println(\"Yes\");", "!done", "done", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "String[]args", "args", "public class Main{\n\tpublic static void main(String[]args){\n Scanner scan=new Scanner(System.in);\n \tint n=scan.nextInt();\n\t\tint flag=0;\n\t\tboolean done=false;\n\t\twhile(n--!=0){\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tif(a==b)flag++;\n\t\t\tif(flag==3){\n\t\t\t\tdone=true;\n\t\t\t}\n\t\t\tif(a!=b)flag=0;\n\t\t}\n\t\tif(!done)\n\t\tSystem.out.println(\"No\");\n\t\telse\n\t\tSystem.out.println(\"Yes\");\n }\t\n \n}", "public class Main{\n\tpublic static void main(String[]args){\n Scanner scan=new Scanner(System.in);\n \tint n=scan.nextInt();\n\t\tint flag=0;\n\t\tboolean done=false;\n\t\twhile(n--!=0){\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tif(a==b)flag++;\n\t\t\tif(flag==3){\n\t\t\t\tdone=true;\n\t\t\t}\n\t\t\tif(a!=b)flag=0;\n\t\t}\n\t\tif(!done)\n\t\tSystem.out.println(\"No\");\n\t\telse\n\t\tSystem.out.println(\"Yes\");\n }\t\n \n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[]args){ Scanner scan=new Scanner(System.in); int n=scan.nextInt(); int flag=0; boolean done=false; while(n--!=0){ int a=scan.nextInt(); int b=scan.nextInt(); if(a==b)flag++; if(flag==3){ done=true; } if(a!=b)flag=0; } if(!done) System.out.println("No"); else System.out.println("Yes"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 4, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 13, 8, 2, 13, 17, 17, 17, 6, 13, 41, 13, 20, 41, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 148, 8 ], [ 148, 9 ], [ 9, 10 ], [ 9, 11 ], [ 148, 12 ], [ 12, 13 ], [ 12, 14 ], [ 148, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 15, 23 ], [ 23, 24 ], [ 148, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 27, 36 ], [ 36, 37 ], [ 36, 38 ], [ 27, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 55, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 44, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 27, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 76, 81 ], [ 148, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 82, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 92, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 102, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 91, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 82, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 123, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 119, 136 ], [ 136, 137 ], [ 82, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 145, 146 ], [ 0, 147 ], [ 147, 148 ], [ 147, 149 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\tstatic FastReader f = new FastReader();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t\n\n\tpublic static void main(String[] args) {\n\t\t//int t = f.nextInt();\n\t\t//while(t-- > 0)\n\t\t\tsolve();\n\t\tout.close();\n\t}\n\n\tstatic void solve() {\n\t\tint n = f.nextInt();\n\t\tint max = 0, cur = 0;\n\t\twhile(n-- > 0) {\n\t\t\tint a = f.nextInt(), b = f.nextInt();\n\t\t\tif(a == b) {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t\tmax = Math.max(cur, max);\n\t\t}\n\n\t\tout.println(max >= 3 ? \"Yes\" : \"No\");\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st;\n\n\t\tString next() {\n\t\t\twhile(st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch(IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString s = \"\";\n\t\t\ttry {\n\t\t\t\ts = br.readLine();\n\t\t\t} catch(IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\tstatic FastReader f = new FastReader();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t\n\n\tpublic static void main(String[] args) {\n\t\t//int t = f.nextInt();\n\t\t//while(t-- > 0)\n\t\t\tsolve();\n\t\tout.close();\n\t}\n\n\tstatic void solve() {\n\t\tint n = f.nextInt();\n\t\tint max = 0, cur = 0;\n\t\twhile(n-- > 0) {\n\t\t\tint a = f.nextInt(), b = f.nextInt();\n\t\t\tif(a == b) {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t\tmax = Math.max(cur, max);\n\t\t}\n\n\t\tout.println(max >= 3 ? \"Yes\" : \"No\");\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st;\n\n\t\tString next() {\n\t\t\twhile(st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch(IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString s = \"\";\n\t\t\ttry {\n\t\t\t\ts = br.readLine();\n\t\t\t} catch(IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n}", "Main", "static FastReader f = new FastReader();", "f", "new FastReader()", "static PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "public static void main(String[] args) {\n\t\t//int t = f.nextInt();\n\t\t//while(t-- > 0)\n\t\t\tsolve();\n\t\tout.close();\n\t}", "main", "{\n\t\t//int t = f.nextInt();\n\t\t//while(t-- > 0)\n\t\t\tsolve();\n\t\tout.close();\n\t}", "solve()", "solve", "out.close()", "out.close", "out", "String[] args", "args", "static void solve() {\n\t\tint n = f.nextInt();\n\t\tint max = 0, cur = 0;\n\t\twhile(n-- > 0) {\n\t\t\tint a = f.nextInt(), b = f.nextInt();\n\t\t\tif(a == b) {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t\tmax = Math.max(cur, max);\n\t\t}\n\n\t\tout.println(max >= 3 ? \"Yes\" : \"No\");\n\t}", "solve", "{\n\t\tint n = f.nextInt();\n\t\tint max = 0, cur = 0;\n\t\twhile(n-- > 0) {\n\t\t\tint a = f.nextInt(), b = f.nextInt();\n\t\t\tif(a == b) {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t\tmax = Math.max(cur, max);\n\t\t}\n\n\t\tout.println(max >= 3 ? \"Yes\" : \"No\");\n\t}", "int n = f.nextInt();", "n", "f.nextInt()", "f.nextInt", "f", "int max = 0", "max", "0", "cur = 0;", "cur", "0", "while(n-- > 0) {\n\t\t\tint a = f.nextInt(), b = f.nextInt();\n\t\t\tif(a == b) {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t\tmax = Math.max(cur, max);\n\t\t}", "n-- > 0", "n--", "n", "0", "{\n\t\t\tint a = f.nextInt(), b = f.nextInt();\n\t\t\tif(a == b) {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t\tmax = Math.max(cur, max);\n\t\t}", "int a = f.nextInt()", "a", "f.nextInt()", "f.nextInt", "f", "b = f.nextInt();", "b", "f.nextInt()", "f.nextInt", "f", "if(a == b) {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tcur = 0;\n\t\t\t}", "a == b", "a", "b", "{\n\t\t\t\tcur++;\n\t\t\t}", "cur++", "cur", "{\n\t\t\t\tcur = 0;\n\t\t\t}", "cur = 0", "cur", "0", "max = Math.max(cur, max)", "max", "Math.max(cur, max)", "Math.max", "Math", "cur", "max", "out.println(max >= 3 ? \"Yes\" : \"No\")", "out.println", "out", "max >= 3 ? \"Yes\" : \"No\"", "max >= 3", "max", "3", "\"Yes\"", "\"No\"", "static class FastReader {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st;\n\n\t\tString next() {\n\t\t\twhile(st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch(IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString s = \"\";\n\t\t\ttry {\n\t\t\t\ts = br.readLine();\n\t\t\t} catch(IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}", "FastReader", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st;", "st", "String next() {\n\t\t\twhile(st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch(IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "next", "{\n\t\t\twhile(st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch(IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "while(st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch(IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch(IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch(IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}", "catch(IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}", "IOException ioe", "{\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}", "ioe.printStackTrace()", "ioe.printStackTrace", "ioe", "{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "String nextLine() {\n\t\t\tString s = \"\";\n\t\t\ttry {\n\t\t\t\ts = br.readLine();\n\t\t\t} catch(IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}", "nextLine", "{\n\t\t\tString s = \"\";\n\t\t\ttry {\n\t\t\t\ts = br.readLine();\n\t\t\t} catch(IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}", "String s = \"\";", "s", "\"\"", "try {\n\t\t\t\ts = br.readLine();\n\t\t\t} catch(IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}", "catch(IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}", "IOException ioe", "{\n\t\t\t\tioe.printStackTrace();\n\t\t\t}", "ioe.printStackTrace()", "ioe.printStackTrace", "ioe", "{\n\t\t\t\ts = br.readLine();\n\t\t\t}", "s = br.readLine()", "s", "br.readLine()", "br.readLine", "br", "return s;", "s", "int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "nextInt", "{\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public class Main {\n\tstatic FastReader f = new FastReader();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t\n\n\tpublic static void main(String[] args) {\n\t\t//int t = f.nextInt();\n\t\t//while(t-- > 0)\n\t\t\tsolve();\n\t\tout.close();\n\t}\n\n\tstatic void solve() {\n\t\tint n = f.nextInt();\n\t\tint max = 0, cur = 0;\n\t\twhile(n-- > 0) {\n\t\t\tint a = f.nextInt(), b = f.nextInt();\n\t\t\tif(a == b) {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t\tmax = Math.max(cur, max);\n\t\t}\n\n\t\tout.println(max >= 3 ? \"Yes\" : \"No\");\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st;\n\n\t\tString next() {\n\t\t\twhile(st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch(IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString s = \"\";\n\t\t\ttry {\n\t\t\t\ts = br.readLine();\n\t\t\t} catch(IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n}", "public class Main {\n\tstatic FastReader f = new FastReader();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t\n\n\tpublic static void main(String[] args) {\n\t\t//int t = f.nextInt();\n\t\t//while(t-- > 0)\n\t\t\tsolve();\n\t\tout.close();\n\t}\n\n\tstatic void solve() {\n\t\tint n = f.nextInt();\n\t\tint max = 0, cur = 0;\n\t\twhile(n-- > 0) {\n\t\t\tint a = f.nextInt(), b = f.nextInt();\n\t\t\tif(a == b) {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t\tmax = Math.max(cur, max);\n\t\t}\n\n\t\tout.println(max >= 3 ? \"Yes\" : \"No\");\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st;\n\n\t\tString next() {\n\t\t\twhile(st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch(IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString s = \"\";\n\t\t\ttry {\n\t\t\t\ts = br.readLine();\n\t\t\t} catch(IOException ioe) {\n\t\t\t\tioe.printStackTrace();\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { static FastReader f = new FastReader(); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) { //int t = f.nextInt(); //while(t-- > 0) solve(); out.close(); } static void solve() { int n = f.nextInt(); int max = 0, cur = 0; while(n-- > 0) { int a = f.nextInt(), b = f.nextInt(); if(a == b) { cur++; } else { cur = 0; } max = Math.max(cur, max); } out.println(max >= 3 ? "Yes" : "No"); } static class FastReader { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; String next() { while(st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch(IOException ioe) { ioe.printStackTrace(); } } return st.nextToken(); } String nextLine() { String s = ""; try { s = br.readLine(); } catch(IOException ioe) { ioe.printStackTrace(); } return s; } int nextInt() { return Integer.parseInt(next()); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 2, 17, 17, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 8, 2, 13, 17, 17, 17, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 17, 41, 13, 20, 2, 13, 17, 0, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 2, 2, 18, 13, 2, 13, 17, 13, 13, 29, 2, 2, 2, 2, 2, 18, 13, 13, 4, 13, 18, 13, 13, 13, 13, 4, 13, 18, 13, 2, 13, 13, 13, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 4, 13, 13, 2, 13, 17, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 42, 2, 13, 17, 30, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, 2, 13, 13, 13, 0, 13, 17, 0, 13, 2, 2, 13, 13, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 230, 8 ], [ 230, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 230, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 16, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 16, 31 ], [ 31, 32 ], [ 31, 33 ], [ 16, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 46, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 57, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 64, 72 ], [ 72, 73 ], [ 72, 74 ], [ 16, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 16, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 87, 92 ], [ 14, 93 ], [ 93, 94 ], [ 230, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 97, 104 ], [ 104, 105 ], [ 104, 106 ], [ 107, 108 ], [ 107, 109 ], [ 97, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 97, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 120, 122 ], [ 115, 123 ], [ 123, 124 ], [ 124, 125 ], [ 115, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 132, 138 ], [ 131, 139 ], [ 97, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 144, 155 ], [ 143, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 160, 162 ], [ 156, 163 ], [ 142, 164 ], [ 141, 165 ], [ 95, 166 ], [ 166, 167 ], [ 95, 168 ], [ 168, 169 ], [ 95, 170 ], [ 170, 171 ], [ 230, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 177, 180 ], [ 180, 181 ], [ 180, 182 ], [ 176, 183 ], [ 172, 184 ], [ 184, 185 ], [ 172, 186 ], [ 186, 187 ], [ 230, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 194, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 200, 204 ], [ 199, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 198, 213 ], [ 213, 214 ], [ 213, 215 ], [ 198, 216 ], [ 216, 217 ], [ 216, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 190, 223 ], [ 223, 224 ], [ 188, 225 ], [ 225, 226 ], [ 188, 227 ], [ 227, 228 ], [ 0, 229 ], [ 229, 230 ], [ 229, 231 ] ]
[ "\nimport java.util.*;\nimport java.io.*;\n\npublic class Main{\n\n\tprivate static final int mod =(int)1e9+7;\n\tpublic static void main(String[] args) throws Exception {\n\t Scanner sc=new Scanner(System.in);\n\t PrintWriter out=new PrintWriter(System.out);\n\t int n=sc.nextInt();\n\t int count=0;\n\t int max=0;\n\t for(int i=0;i<n;i++) {\n\t int x=sc.nextInt();\n\t int y=sc.nextInt();\n\t if(x==y) {\n\t count++;\n\t }else {\n\t max=Math.max(count,max);\n\t count=0;\n\t }\n\t }\n\t max=Math.max(count,max);\n\t System.out.println(max>=3?\"Yes\":\"No\");\n\n\t}\nstatic long nCr(int n, int r, \n int p) \n{ \n\n\nif (r == 0) \nreturn 1; \n\n\nint[] fac = new int[n + 1]; \nfac[0] = 1; \n\nfor (int i = 1; i <= n; i++) \nfac[i] = fac[i - 1] * i % p; \n\nreturn (fac[n] * modInverse(fac[r], p) \n% p * modInverse(fac[n - r], p) \n% p) \n% p; \n} \nstatic long modInverse(int n, int p) \n{ \n return pow(n, p - 2)%mod; \n} \nstatic long pow(long x,long y) {\n long res=1l;\n while(y!=0) {\n if(y%2==1) {\n res=x*res%mod;\n }\n y/=2;\n x=x*x%mod;\n }\n return res;\n} \n}\n\n", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main{\n\n\tprivate static final int mod =(int)1e9+7;\n\tpublic static void main(String[] args) throws Exception {\n\t Scanner sc=new Scanner(System.in);\n\t PrintWriter out=new PrintWriter(System.out);\n\t int n=sc.nextInt();\n\t int count=0;\n\t int max=0;\n\t for(int i=0;i<n;i++) {\n\t int x=sc.nextInt();\n\t int y=sc.nextInt();\n\t if(x==y) {\n\t count++;\n\t }else {\n\t max=Math.max(count,max);\n\t count=0;\n\t }\n\t }\n\t max=Math.max(count,max);\n\t System.out.println(max>=3?\"Yes\":\"No\");\n\n\t}\nstatic long nCr(int n, int r, \n int p) \n{ \n\n\nif (r == 0) \nreturn 1; \n\n\nint[] fac = new int[n + 1]; \nfac[0] = 1; \n\nfor (int i = 1; i <= n; i++) \nfac[i] = fac[i - 1] * i % p; \n\nreturn (fac[n] * modInverse(fac[r], p) \n% p * modInverse(fac[n - r], p) \n% p) \n% p; \n} \nstatic long modInverse(int n, int p) \n{ \n return pow(n, p - 2)%mod; \n} \nstatic long pow(long x,long y) {\n long res=1l;\n while(y!=0) {\n if(y%2==1) {\n res=x*res%mod;\n }\n y/=2;\n x=x*x%mod;\n }\n return res;\n} \n}", "Main", "private static final int mod =(int)1e9+7;", "mod", "(int)1e9+7", "(int)1e9", "7", "public static void main(String[] args) throws Exception {\n\t Scanner sc=new Scanner(System.in);\n\t PrintWriter out=new PrintWriter(System.out);\n\t int n=sc.nextInt();\n\t int count=0;\n\t int max=0;\n\t for(int i=0;i<n;i++) {\n\t int x=sc.nextInt();\n\t int y=sc.nextInt();\n\t if(x==y) {\n\t count++;\n\t }else {\n\t max=Math.max(count,max);\n\t count=0;\n\t }\n\t }\n\t max=Math.max(count,max);\n\t System.out.println(max>=3?\"Yes\":\"No\");\n\n\t}", "main", "{\n\t Scanner sc=new Scanner(System.in);\n\t PrintWriter out=new PrintWriter(System.out);\n\t int n=sc.nextInt();\n\t int count=0;\n\t int max=0;\n\t for(int i=0;i<n;i++) {\n\t int x=sc.nextInt();\n\t int y=sc.nextInt();\n\t if(x==y) {\n\t count++;\n\t }else {\n\t max=Math.max(count,max);\n\t count=0;\n\t }\n\t }\n\t max=Math.max(count,max);\n\t System.out.println(max>=3?\"Yes\":\"No\");\n\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "PrintWriter out=new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int count=0;", "count", "0", "int max=0;", "max", "0", "for(int i=0;i<n;i++) {\n\t int x=sc.nextInt();\n\t int y=sc.nextInt();\n\t if(x==y) {\n\t count++;\n\t }else {\n\t max=Math.max(count,max);\n\t count=0;\n\t }\n\t }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t int x=sc.nextInt();\n\t int y=sc.nextInt();\n\t if(x==y) {\n\t count++;\n\t }else {\n\t max=Math.max(count,max);\n\t count=0;\n\t }\n\t }", "{\n\t int x=sc.nextInt();\n\t int y=sc.nextInt();\n\t if(x==y) {\n\t count++;\n\t }else {\n\t max=Math.max(count,max);\n\t count=0;\n\t }\n\t }", "int x=sc.nextInt();", "x", "sc.nextInt()", "sc.nextInt", "sc", "int y=sc.nextInt();", "y", "sc.nextInt()", "sc.nextInt", "sc", "if(x==y) {\n\t count++;\n\t }else {\n\t max=Math.max(count,max);\n\t count=0;\n\t }", "x==y", "x", "y", "{\n\t count++;\n\t }", "count++", "count", "{\n\t max=Math.max(count,max);\n\t count=0;\n\t }", "max=Math.max(count,max)", "max", "Math.max(count,max)", "Math.max", "Math", "count", "max", "count=0", "count", "0", "max=Math.max(count,max)", "max", "Math.max(count,max)", "Math.max", "Math", "count", "max", "System.out.println(max>=3?\"Yes\":\"No\")", "System.out.println", "System.out", "System", "System.out", "max>=3?\"Yes\":\"No\"", "max>=3", "max", "3", "\"Yes\"", "\"No\"", "String[] args", "args", "static long nCr(int n, int r, \n int p) \n{ \n\n\nif (r == 0) \nreturn 1; \n\n\nint[] fac = new int[n + 1]; \nfac[0] = 1; \n\nfor (int i = 1; i <= n; i++) \nfac[i] = fac[i - 1] * i % p; \n\nreturn (fac[n] * modInverse(fac[r], p) \n% p * modInverse(fac[n - r], p) \n% p) \n% p; \n}", "nCr", "{ \n\n\nif (r == 0) \nreturn 1; \n\n\nint[] fac = new int[n + 1]; \nfac[0] = 1; \n\nfor (int i = 1; i <= n; i++) \nfac[i] = fac[i - 1] * i % p; \n\nreturn (fac[n] * modInverse(fac[r], p) \n% p * modInverse(fac[n - r], p) \n% p) \n% p; \n}", "if (r == 0) \nreturn 1;", "r == 0", "r", "0", "return 1;", "1", "int[] fac = new int[n + 1];", "fac", "new int[n + 1]", "n + 1", "n", "1", "fac[0] = 1", "fac[0]", "fac", "0", "1", "for (int i = 1; i <= n; i++) \nfac[i] = fac[i - 1] * i % p;", "int i = 1;", "int i = 1;", "i", "1", "i <= n", "i", "n", "i++", "i++", "i", "fac[i] = fac[i - 1] * i % p;", "fac[i] = fac[i - 1] * i % p", "fac[i]", "fac", "i", "fac[i - 1] * i % p", "fac[i - 1] * i", "fac[i - 1]", "fac", "i - 1", "i", "1", "i", "p", "return (fac[n] * modInverse(fac[r], p) \n% p * modInverse(fac[n - r], p) \n% p) \n% p;", "(fac[n] * modInverse(fac[r], p) \n% p * modInverse(fac[n - r], p) \n% p) \n% p", "(fac[n] * modInverse(fac[r], p) \n% p * modInverse(fac[n - r], p) \n% p)", "fac[n] * modInverse(fac[r], p) \n% p * modInverse(fac[n - r], p)", "fac[n] * modInverse(fac[r], p) \n% p", "fac[n] * modInverse(fac[r], p)", "fac[n]", "fac", "n", "modInverse(fac[r], p)", "modInverse", "fac[r]", "fac", "r", "p", "p", "modInverse(fac[n - r], p)", "modInverse", "fac[n - r]", "fac", "n - r", "n", "r", "p", "p", "p", "int n", "n", "int r", "r", "int p", "p", "static long modInverse(int n, int p) \n{ \n return pow(n, p - 2)%mod; \n}", "modInverse", "{ \n return pow(n, p - 2)%mod; \n}", "return pow(n, p - 2)%mod;", "pow(n, p - 2)%mod", "pow(n, p - 2)", "pow", "n", "p - 2", "p", "2", "mod", "int n", "n", "int p", "p", "static long pow(long x,long y) {\n long res=1l;\n while(y!=0) {\n if(y%2==1) {\n res=x*res%mod;\n }\n y/=2;\n x=x*x%mod;\n }\n return res;\n}", "pow", "{\n long res=1l;\n while(y!=0) {\n if(y%2==1) {\n res=x*res%mod;\n }\n y/=2;\n x=x*x%mod;\n }\n return res;\n}", "long res=1l;", "res", "1l", "while(y!=0) {\n if(y%2==1) {\n res=x*res%mod;\n }\n y/=2;\n x=x*x%mod;\n }", "y!=0", "y", "0", "{\n if(y%2==1) {\n res=x*res%mod;\n }\n y/=2;\n x=x*x%mod;\n }", "if(y%2==1) {\n res=x*res%mod;\n }", "y%2==1", "y%2", "y", "2", "1", "{\n res=x*res%mod;\n }", "res=x*res%mod", "res", "x*res%mod", "x*res", "x", "res", "mod", "y/=2", "y", "2", "x=x*x%mod", "x", "x*x%mod", "x*x", "x", "x", "mod", "return res;", "res", "long x", "x", "long y", "y", "public class Main{\n\n\tprivate static final int mod =(int)1e9+7;\n\tpublic static void main(String[] args) throws Exception {\n\t Scanner sc=new Scanner(System.in);\n\t PrintWriter out=new PrintWriter(System.out);\n\t int n=sc.nextInt();\n\t int count=0;\n\t int max=0;\n\t for(int i=0;i<n;i++) {\n\t int x=sc.nextInt();\n\t int y=sc.nextInt();\n\t if(x==y) {\n\t count++;\n\t }else {\n\t max=Math.max(count,max);\n\t count=0;\n\t }\n\t }\n\t max=Math.max(count,max);\n\t System.out.println(max>=3?\"Yes\":\"No\");\n\n\t}\nstatic long nCr(int n, int r, \n int p) \n{ \n\n\nif (r == 0) \nreturn 1; \n\n\nint[] fac = new int[n + 1]; \nfac[0] = 1; \n\nfor (int i = 1; i <= n; i++) \nfac[i] = fac[i - 1] * i % p; \n\nreturn (fac[n] * modInverse(fac[r], p) \n% p * modInverse(fac[n - r], p) \n% p) \n% p; \n} \nstatic long modInverse(int n, int p) \n{ \n return pow(n, p - 2)%mod; \n} \nstatic long pow(long x,long y) {\n long res=1l;\n while(y!=0) {\n if(y%2==1) {\n res=x*res%mod;\n }\n y/=2;\n x=x*x%mod;\n }\n return res;\n} \n}", "public class Main{\n\n\tprivate static final int mod =(int)1e9+7;\n\tpublic static void main(String[] args) throws Exception {\n\t Scanner sc=new Scanner(System.in);\n\t PrintWriter out=new PrintWriter(System.out);\n\t int n=sc.nextInt();\n\t int count=0;\n\t int max=0;\n\t for(int i=0;i<n;i++) {\n\t int x=sc.nextInt();\n\t int y=sc.nextInt();\n\t if(x==y) {\n\t count++;\n\t }else {\n\t max=Math.max(count,max);\n\t count=0;\n\t }\n\t }\n\t max=Math.max(count,max);\n\t System.out.println(max>=3?\"Yes\":\"No\");\n\n\t}\nstatic long nCr(int n, int r, \n int p) \n{ \n\n\nif (r == 0) \nreturn 1; \n\n\nint[] fac = new int[n + 1]; \nfac[0] = 1; \n\nfor (int i = 1; i <= n; i++) \nfac[i] = fac[i - 1] * i % p; \n\nreturn (fac[n] * modInverse(fac[r], p) \n% p * modInverse(fac[n - r], p) \n% p) \n% p; \n} \nstatic long modInverse(int n, int p) \n{ \n return pow(n, p - 2)%mod; \n} \nstatic long pow(long x,long y) {\n long res=1l;\n while(y!=0) {\n if(y%2==1) {\n res=x*res%mod;\n }\n y/=2;\n x=x*x%mod;\n }\n return res;\n} \n}", "Main" ]
import java.util.*; import java.io.*; public class Main{ private static final int mod =(int)1e9+7; public static void main(String[] args) throws Exception { Scanner sc=new Scanner(System.in); PrintWriter out=new PrintWriter(System.out); int n=sc.nextInt(); int count=0; int max=0; for(int i=0;i<n;i++) { int x=sc.nextInt(); int y=sc.nextInt(); if(x==y) { count++; }else { max=Math.max(count,max); count=0; } } max=Math.max(count,max); System.out.println(max>=3?"Yes":"No"); } static long nCr(int n, int r, int p) { if (r == 0) return 1; int[] fac = new int[n + 1]; fac[0] = 1; for (int i = 1; i <= n; i++) fac[i] = fac[i - 1] * i % p; return (fac[n] * modInverse(fac[r], p) % p * modInverse(fac[n - r], p) % p) % p; } static long modInverse(int n, int p) { return pow(n, p - 2)%mod; } static long pow(long x,long y) { long res=1l; while(y!=0) { if(y%2==1) { res=x*res%mod; } y/=2; x=x*x%mod; } return res; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 0, 13, 13, 14, 2, 13, 17, 29, 17, 42, 2, 13, 17, 30, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, 2, 13, 13, 13, 0, 13, 2, 13, 17, 0, 13, 2, 2, 13, 13, 13, 29, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 2, 13, 13, 30, 41, 13, 2, 13, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 42, 2, 2, 13, 13, 2, 18, 13, 13, 18, 13, 13, 40, 13, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 3, 0, 13, 13, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 311, 14 ], [ 311, 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 ], [ 24, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 34, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 34, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 17, 61 ], [ 61, 62 ], [ 15, 63 ], [ 63, 64 ], [ 15, 65 ], [ 65, 66 ], [ 15, 67 ], [ 67, 68 ], [ 311, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 71, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 69, 85 ], [ 85, 86 ], [ 69, 87 ], [ 87, 88 ], [ 311, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 91, 100 ], [ 100, 101 ], [ 100, 102 ], [ 91, 104 ], [ 104, 105 ], [ 104, 106 ], [ 91, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 113, 115 ], [ 108, 116 ], [ 116, 117 ], [ 117, 118 ], [ 108, 119 ], [ 120, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 126, 127 ], [ 120, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 91, 135 ], [ 135, 136 ], [ 135, 137 ], [ 91, 138 ], [ 138, 139 ], [ 138, 140 ], [ 91, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 145, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 156, 157 ], [ 156, 158 ], [ 151, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 169, 170 ], [ 169, 171 ], [ 160, 172 ], [ 172, 173 ], [ 145, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 175, 179 ], [ 174, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 145, 185 ], [ 185, 186 ], [ 185, 187 ], [ 91, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 188, 193 ], [ 193, 194 ], [ 193, 195 ], [ 193, 196 ], [ 89, 197 ], [ 197, 198 ], [ 311, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 199, 203 ], [ 203, 204 ], [ 199, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 199, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 214, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 225, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 224, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 213, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 199, 239 ], [ 239, 240 ], [ 239, 241 ], [ 241, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 243, 246 ], [ 246, 247 ], [ 199, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 252, 255 ], [ 255, 256 ], [ 199, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 261, 264 ], [ 264, 265 ], [ 199, 266 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 268, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 276, 277 ], [ 277, 278 ], [ 272, 279 ], [ 279, 280 ], [ 280, 281 ], [ 280, 282 ], [ 282, 283 ], [ 283, 284 ], [ 268, 285 ], [ 285, 286 ], [ 311, 287 ], [ 287, 288 ], [ 287, 289 ], [ 289, 290 ], [ 287, 291 ], [ 291, 292 ], [ 287, 293 ], [ 293, 294 ], [ 293, 295 ], [ 295, 296 ], [ 296, 297 ], [ 297, 298 ], [ 297, 299 ], [ 296, 300 ], [ 295, 301 ], [ 301, 302 ], [ 302, 303 ], [ 302, 304 ], [ 301, 305 ], [ 293, 306 ], [ 306, 307 ], [ 293, 308 ], [ 308, 309 ], [ 0, 310 ], [ 310, 311 ], [ 310, 312 ] ]
[ "// Born Sinner\n// old but im not that old\n// fuck all you hoes get a grip\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\nimport java.math.BigInteger;\n\npublic class Main\n{\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n String next(){\n while(st == null || !st.hasMoreElements()){\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n int nextInt(){\n return Integer.parseInt(next());\n }\n long nextLong(){\n return Long.parseLong(next());\n }\n double nextDouble(){\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }\n }\n static int modPower(int x, int y, int mod){\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }\n static class pair<T1, T2>{\n T1 first;\n T2 second;\n pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }\n }\n static int gcd(int a, int b){\n if(b == 0) return a;\n return gcd(b, a%b);\n }\n\n public static void main (String[] args) throws java.lang.Exception\n {\n FastReader in = new FastReader();\n int n = in.nextInt();\n int[] a = new int[n], b = new int[n];\n for(int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n boolean ok = false;\n\n int i = 0;\n while(i < n){\n int j = i + 1;\n if(a[i] == b[i]) {\n while(j < n && a[j] == b[j]) j++;\n }\n\n if((j-i) >= 3) {\n ok = true; break;\n }\n i = j;\n }\n System.out.println(ok?\"Yes\":\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "import java.math.BigInteger;", "BigInteger", "java.math", "public class Main\n{\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n String next(){\n while(st == null || !st.hasMoreElements()){\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n int nextInt(){\n return Integer.parseInt(next());\n }\n long nextLong(){\n return Long.parseLong(next());\n }\n double nextDouble(){\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }\n }\n static int modPower(int x, int y, int mod){\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }\n static class pair<T1, T2>{\n T1 first;\n T2 second;\n pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }\n }\n static int gcd(int a, int b){\n if(b == 0) return a;\n return gcd(b, a%b);\n }\n\n public static void main (String[] args) throws java.lang.Exception\n {\n FastReader in = new FastReader();\n int n = in.nextInt();\n int[] a = new int[n], b = new int[n];\n for(int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n boolean ok = false;\n\n int i = 0;\n while(i < n){\n int j = i + 1;\n if(a[i] == b[i]) {\n while(j < n && a[j] == b[j]) j++;\n }\n\n if((j-i) >= 3) {\n ok = true; break;\n }\n i = j;\n }\n System.out.println(ok?\"Yes\":\"No\");\n }\n}", "Main", "static int modPower(int x, int y, int mod){\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }", "modPower", "{\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }", "int res = 1;", "res", "1", "x %= mod", "x", "mod", "if(x==0) return 0;", "x==0", "x", "0", "return 0;", "0", "while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }", "y>0", "y", "0", "{\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }", "if(y%2==1){\n res = (res*x)%mod;\n }", "y%2==1", "y%2", "y", "2", "1", "{\n res = (res*x)%mod;\n }", "res = (res*x)%mod", "res", "(res*x)%mod", "(res*x)", "res", "x", "mod", "y = y>>1", "y", "y>>1", "y", "1", "x = (x*x)%mod", "x", "(x*x)%mod", "(x*x)", "x", "x", "mod", "return res;", "res", "int x", "x", "int y", "y", "int mod", "mod", "static int gcd(int a, int b){\n if(b == 0) return a;\n return gcd(b, a%b);\n }", "gcd", "{\n if(b == 0) return a;\n return gcd(b, a%b);\n }", "if(b == 0) return a;", "b == 0", "b", "0", "return a;", "a", "return gcd(b, a%b);", "gcd(b, a%b)", "gcd", "b", "a%b", "a", "b", "int a", "a", "int b", "b", "public static void main (String[] args) throws java.lang.Exception\n {\n FastReader in = new FastReader();\n int n = in.nextInt();\n int[] a = new int[n], b = new int[n];\n for(int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n boolean ok = false;\n\n int i = 0;\n while(i < n){\n int j = i + 1;\n if(a[i] == b[i]) {\n while(j < n && a[j] == b[j]) j++;\n }\n\n if((j-i) >= 3) {\n ok = true; break;\n }\n i = j;\n }\n System.out.println(ok?\"Yes\":\"No\");\n }", "main", "{\n FastReader in = new FastReader();\n int n = in.nextInt();\n int[] a = new int[n], b = new int[n];\n for(int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n boolean ok = false;\n\n int i = 0;\n while(i < n){\n int j = i + 1;\n if(a[i] == b[i]) {\n while(j < n && a[j] == b[j]) j++;\n }\n\n if((j-i) >= 3) {\n ok = true; break;\n }\n i = j;\n }\n System.out.println(ok?\"Yes\":\"No\");\n }", "FastReader in = new FastReader();", "in", "new FastReader()", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int[] a = new int[n]", "a", "new int[n]", "n", "b = new int[n];", "b", "new int[n]", "n", "for(int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }", "{\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }", "a[i] = in.nextInt()", "a[i]", "a", "i", "in.nextInt()", "in.nextInt", "in", "b[i] = in.nextInt()", "b[i]", "b", "i", "in.nextInt()", "in.nextInt", "in", "boolean ok = false;", "ok", "false", "int i = 0;", "i", "0", "while(i < n){\n int j = i + 1;\n if(a[i] == b[i]) {\n while(j < n && a[j] == b[j]) j++;\n }\n\n if((j-i) >= 3) {\n ok = true; break;\n }\n i = j;\n }", "i < n", "i", "n", "{\n int j = i + 1;\n if(a[i] == b[i]) {\n while(j < n && a[j] == b[j]) j++;\n }\n\n if((j-i) >= 3) {\n ok = true; break;\n }\n i = j;\n }", "int j = i + 1;", "j", "i + 1", "i", "1", "if(a[i] == b[i]) {\n while(j < n && a[j] == b[j]) j++;\n }", "a[i] == b[i]", "a[i]", "a", "i", "b[i]", "b", "i", "{\n while(j < n && a[j] == b[j]) j++;\n }", "while(j < n && a[j] == b[j]) j++;", "j < n && a[j] == b[j]", "j < n", "j", "n", "a[j] == b[j]", "a[j]", "a", "j", "b[j]", "b", "j", "j++", "j", "if((j-i) >= 3) {\n ok = true; break;\n }", "(j-i) >= 3", "(j-i)", "j", "i", "3", "{\n ok = true; break;\n }", "ok = true", "ok", "true", "break;", "i = j", "i", "j", "System.out.println(ok?\"Yes\":\"No\")", "System.out.println", "System.out", "System", "System.out", "ok?\"Yes\":\"No\"", "ok", "\"Yes\"", "\"No\"", "String[] args", "args", "static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n String next(){\n while(st == null || !st.hasMoreElements()){\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n int nextInt(){\n return Integer.parseInt(next());\n }\n long nextLong(){\n return Long.parseLong(next());\n }\n double nextDouble(){\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }\n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "FastReader", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next(){\n while(st == null || !st.hasMoreElements()){\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while(st == null || !st.hasMoreElements()){\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while(st == null || !st.hasMoreElements()){\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }", "catch (IOException e){\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt(){\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong(){\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble(){\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }", "catch (Exception e){\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "static class pair<T1, T2>{\n T1 first;\n T2 second;\n pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }\n }", "pair", "T1 first;", "first", "T2 second;", "second", "pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }", "pair", "{\n this.first = first;\n this.second = second;\n }", "this.first = first", "this.first", "this", "this.first", "first", "this.second = second", "this.second", "this", "this.second", "second", "T1 first", "first", "T2 second", "second", "public class Main\n{\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n String next(){\n while(st == null || !st.hasMoreElements()){\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n int nextInt(){\n return Integer.parseInt(next());\n }\n long nextLong(){\n return Long.parseLong(next());\n }\n double nextDouble(){\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }\n }\n static int modPower(int x, int y, int mod){\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }\n static class pair<T1, T2>{\n T1 first;\n T2 second;\n pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }\n }\n static int gcd(int a, int b){\n if(b == 0) return a;\n return gcd(b, a%b);\n }\n\n public static void main (String[] args) throws java.lang.Exception\n {\n FastReader in = new FastReader();\n int n = in.nextInt();\n int[] a = new int[n], b = new int[n];\n for(int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n boolean ok = false;\n\n int i = 0;\n while(i < n){\n int j = i + 1;\n if(a[i] == b[i]) {\n while(j < n && a[j] == b[j]) j++;\n }\n\n if((j-i) >= 3) {\n ok = true; break;\n }\n i = j;\n }\n System.out.println(ok?\"Yes\":\"No\");\n }\n}", "public class Main\n{\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n String next(){\n while(st == null || !st.hasMoreElements()){\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n int nextInt(){\n return Integer.parseInt(next());\n }\n long nextLong(){\n return Long.parseLong(next());\n }\n double nextDouble(){\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }\n }\n static int modPower(int x, int y, int mod){\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }\n static class pair<T1, T2>{\n T1 first;\n T2 second;\n pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }\n }\n static int gcd(int a, int b){\n if(b == 0) return a;\n return gcd(b, a%b);\n }\n\n public static void main (String[] args) throws java.lang.Exception\n {\n FastReader in = new FastReader();\n int n = in.nextInt();\n int[] a = new int[n], b = new int[n];\n for(int i = 0; i < n; i++) {\n a[i] = in.nextInt();\n b[i] = in.nextInt();\n }\n boolean ok = false;\n\n int i = 0;\n while(i < n){\n int j = i + 1;\n if(a[i] == b[i]) {\n while(j < n && a[j] == b[j]) j++;\n }\n\n if((j-i) >= 3) {\n ok = true; break;\n }\n i = j;\n }\n System.out.println(ok?\"Yes\":\"No\");\n }\n}", "Main" ]
// Born Sinner // old but im not that old // fuck all you hoes get a grip import java.util.*; import java.lang.*; import java.io.*; import java.math.BigInteger; public class Main { static class FastReader{ BufferedReader br; StringTokenizer st; public FastReader(){ br = new BufferedReader(new InputStreamReader(System.in)); } String next(){ while(st == null || !st.hasMoreElements()){ try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } } return st.nextToken(); } int nextInt(){ return Integer.parseInt(next()); } long nextLong(){ return Long.parseLong(next()); } double nextDouble(){ return Double.parseDouble(next()); } String nextLine(){ String str = ""; try{ str = br.readLine(); } catch (Exception e){ e.printStackTrace(); } return str; } } static int modPower(int x, int y, int mod){ int res = 1; x %= mod; if(x==0) return 0; while(y>0){ if(y%2==1){ res = (res*x)%mod; } y = y>>1; x = (x*x)%mod; } return res; } static class pair<T1, T2>{ T1 first; T2 second; pair(T1 first, T2 second){ this.first = first; this.second = second; } } static int gcd(int a, int b){ if(b == 0) return a; return gcd(b, a%b); } public static void main (String[] args) throws java.lang.Exception { FastReader in = new FastReader(); int n = in.nextInt(); int[] a = new int[n], b = new int[n]; for(int i = 0; i < n; i++) { a[i] = in.nextInt(); b[i] = in.nextInt(); } boolean ok = false; int i = 0; while(i < n){ int j = i + 1; if(a[i] == b[i]) { while(j < n && a[j] == b[j]) j++; } if((j-i) >= 3) { ok = true; break; } i = j; } System.out.println(ok?"Yes":"No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 20, 23, 13, 12, 13, 30, 4, 18, 20, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 100, 11 ], [ 100, 12 ], [ 12, 13 ], [ 12, 14 ], [ 100, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 15, 19 ], [ 19, 20 ], [ 100, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 100, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 37, 39 ], [ 31, 40 ], [ 40, 41 ], [ 40, 42 ], [ 31, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 55, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 66, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 55, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 31, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 85, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "import java.awt.*;\nimport java.io.*;\nimport java.util.*;\n \npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tnew Main();\n\t}\n\tpublic Main(){\n\t\tnew TestB().doIt();\n\t}\n\tclass TestB{\n\t\tvoid doIt() {\n\t\t\tint N = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tboolean renzoku3 = false;\n\t\t\tfor(int i = 0;i < N;i++) {\n\t\t\t\tint D1 = sc.nextInt();\n\t\t\t\tint D2 = sc.nextInt();\n\t\t\t\tif(D1 == D2) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}else {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t\tif(cnt >= 3) {\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(renzoku3)System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t}\n\t}\n}", "import java.awt.*;", "awt.*", "java", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tnew Main();\n\t}\n\tpublic Main(){\n\t\tnew TestB().doIt();\n\t}\n\tclass TestB{\n\t\tvoid doIt() {\n\t\t\tint N = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tboolean renzoku3 = false;\n\t\t\tfor(int i = 0;i < N;i++) {\n\t\t\t\tint D1 = sc.nextInt();\n\t\t\t\tint D2 = sc.nextInt();\n\t\t\t\tif(D1 == D2) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}else {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t\tif(cnt >= 3) {\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(renzoku3)System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t}\n\t}\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args){\n\t\tnew Main();\n\t}", "main", "{\n\t\tnew Main();\n\t}", "new Main()", "String[] args", "args", "public Main(){\n\t\tnew TestB().doIt();\n\t}", "Main", "{\n\t\tnew TestB().doIt();\n\t}", "new TestB().doIt()", "new TestB().doIt", "new TestB()", "class TestB{\n\t\tvoid doIt() {\n\t\t\tint N = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tboolean renzoku3 = false;\n\t\t\tfor(int i = 0;i < N;i++) {\n\t\t\t\tint D1 = sc.nextInt();\n\t\t\t\tint D2 = sc.nextInt();\n\t\t\t\tif(D1 == D2) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}else {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t\tif(cnt >= 3) {\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(renzoku3)System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t}\n\t}", "TestB", "void doIt() {\n\t\t\tint N = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tboolean renzoku3 = false;\n\t\t\tfor(int i = 0;i < N;i++) {\n\t\t\t\tint D1 = sc.nextInt();\n\t\t\t\tint D2 = sc.nextInt();\n\t\t\t\tif(D1 == D2) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}else {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t\tif(cnt >= 3) {\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(renzoku3)System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t}", "doIt", "{\n\t\t\tint N = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tboolean renzoku3 = false;\n\t\t\tfor(int i = 0;i < N;i++) {\n\t\t\t\tint D1 = sc.nextInt();\n\t\t\t\tint D2 = sc.nextInt();\n\t\t\t\tif(D1 == D2) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}else {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t\tif(cnt >= 3) {\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(renzoku3)System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t}", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int cnt = 0;", "cnt", "0", "boolean renzoku3 = false;", "renzoku3", "false", "for(int i = 0;i < N;i++) {\n\t\t\t\tint D1 = sc.nextInt();\n\t\t\t\tint D2 = sc.nextInt();\n\t\t\t\tif(D1 == D2) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}else {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t\tif(cnt >= 3) {\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\t\tint D1 = sc.nextInt();\n\t\t\t\tint D2 = sc.nextInt();\n\t\t\t\tif(D1 == D2) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}else {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t\tif(cnt >= 3) {\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tint D1 = sc.nextInt();\n\t\t\t\tint D2 = sc.nextInt();\n\t\t\t\tif(D1 == D2) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}else {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t\tif(cnt >= 3) {\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}\n\t\t\t}", "int D1 = sc.nextInt();", "D1", "sc.nextInt()", "sc.nextInt", "sc", "int D2 = sc.nextInt();", "D2", "sc.nextInt()", "sc.nextInt", "sc", "if(D1 == D2) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}else {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}", "D1 == D2", "D1", "D2", "{\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "cnt++", "cnt", "{\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}", "cnt = 0", "cnt", "0", "if(cnt >= 3) {\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}", "cnt >= 3", "cnt", "3", "{\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}", "renzoku3 = true", "renzoku3", "true", "if(renzoku3)System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");", "renzoku3", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tnew Main();\n\t}\n\tpublic Main(){\n\t\tnew TestB().doIt();\n\t}\n\tclass TestB{\n\t\tvoid doIt() {\n\t\t\tint N = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tboolean renzoku3 = false;\n\t\t\tfor(int i = 0;i < N;i++) {\n\t\t\t\tint D1 = sc.nextInt();\n\t\t\t\tint D2 = sc.nextInt();\n\t\t\t\tif(D1 == D2) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}else {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t\tif(cnt >= 3) {\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(renzoku3)System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t}\n\t}\n}", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tnew Main();\n\t}\n\tpublic Main(){\n\t\tnew TestB().doIt();\n\t}\n\tclass TestB{\n\t\tvoid doIt() {\n\t\t\tint N = sc.nextInt();\n\t\t\tint cnt = 0;\n\t\t\tboolean renzoku3 = false;\n\t\t\tfor(int i = 0;i < N;i++) {\n\t\t\t\tint D1 = sc.nextInt();\n\t\t\t\tint D2 = sc.nextInt();\n\t\t\t\tif(D1 == D2) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}else {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t\tif(cnt >= 3) {\n\t\t\t\t\trenzoku3 = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(renzoku3)System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t}\n\t}\n}", "Main" ]
import java.awt.*; import java.io.*; import java.util.*; public class Main { Scanner sc = new Scanner(System.in); public static void main(String[] args){ new Main(); } public Main(){ new TestB().doIt(); } class TestB{ void doIt() { int N = sc.nextInt(); int cnt = 0; boolean renzoku3 = false; for(int i = 0;i < N;i++) { int D1 = sc.nextInt(); int D2 = sc.nextInt(); if(D1 == D2) { cnt++; }else { cnt = 0; } if(cnt >= 3) { renzoku3 = true; } } if(renzoku3)System.out.println("Yes"); else System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 40, 13, 0, 13, 17, 14, 2, 13, 17, 3, 4, 18, 18, 13, 13, 8, 2, 13, 17, 17, 17, 4, 18, 13, 12, 13, 30, 4, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 72, 5 ], [ 72, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 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 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 42, 44 ], [ 25, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 55, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 72, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 64, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.util.*;\npublic class Main {\n\n\tstatic void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(), t = 0;\n\t\twhile (n-->0) {\n\t\t\tint a = sc.nextInt(), b = sc.nextInt();\n\t\t\tif (a==b) t++; else t=0;\n\t\t\tif (t==3) break;\n\t\t}\n\t\tSystem.out.println(t==3 ? \"Yes\" : \"No\");\n\t\tsc.close();\t\t\t\n\t}\n\n\tpublic static void main(String args[]) {\n\t\tsolve();\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tstatic void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(), t = 0;\n\t\twhile (n-->0) {\n\t\t\tint a = sc.nextInt(), b = sc.nextInt();\n\t\t\tif (a==b) t++; else t=0;\n\t\t\tif (t==3) break;\n\t\t}\n\t\tSystem.out.println(t==3 ? \"Yes\" : \"No\");\n\t\tsc.close();\t\t\t\n\t}\n\n\tpublic static void main(String args[]) {\n\t\tsolve();\n\t}\n\n}", "Main", "static void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(), t = 0;\n\t\twhile (n-->0) {\n\t\t\tint a = sc.nextInt(), b = sc.nextInt();\n\t\t\tif (a==b) t++; else t=0;\n\t\t\tif (t==3) break;\n\t\t}\n\t\tSystem.out.println(t==3 ? \"Yes\" : \"No\");\n\t\tsc.close();\t\t\t\n\t}", "solve", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(), t = 0;\n\t\twhile (n-->0) {\n\t\t\tint a = sc.nextInt(), b = sc.nextInt();\n\t\t\tif (a==b) t++; else t=0;\n\t\t\tif (t==3) break;\n\t\t}\n\t\tSystem.out.println(t==3 ? \"Yes\" : \"No\");\n\t\tsc.close();\t\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "t = 0;", "t", "0", "while (n-->0) {\n\t\t\tint a = sc.nextInt(), b = sc.nextInt();\n\t\t\tif (a==b) t++; else t=0;\n\t\t\tif (t==3) break;\n\t\t}", "n-->0", "n--", "n", "0", "{\n\t\t\tint a = sc.nextInt(), b = sc.nextInt();\n\t\t\tif (a==b) t++; else t=0;\n\t\t\tif (t==3) break;\n\t\t}", "int a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "if (a==b) t++; else t=0;", "a==b", "a", "b", "t++", "t", "t=0", "t", "0", "if (t==3) break;", "t==3", "t", "3", "break;", "System.out.println(t==3 ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "t==3 ? \"Yes\" : \"No\"", "t==3", "t", "3", "\"Yes\"", "\"No\"", "sc.close()", "sc.close", "sc", "public static void main(String args[]) {\n\t\tsolve();\n\t}", "main", "{\n\t\tsolve();\n\t}", "solve()", "solve", "String args[]", "args", "public class Main {\n\n\tstatic void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(), t = 0;\n\t\twhile (n-->0) {\n\t\t\tint a = sc.nextInt(), b = sc.nextInt();\n\t\t\tif (a==b) t++; else t=0;\n\t\t\tif (t==3) break;\n\t\t}\n\t\tSystem.out.println(t==3 ? \"Yes\" : \"No\");\n\t\tsc.close();\t\t\t\n\t}\n\n\tpublic static void main(String args[]) {\n\t\tsolve();\n\t}\n\n}", "public class Main {\n\n\tstatic void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(), t = 0;\n\t\twhile (n-->0) {\n\t\t\tint a = sc.nextInt(), b = sc.nextInt();\n\t\t\tif (a==b) t++; else t=0;\n\t\t\tif (t==3) break;\n\t\t}\n\t\tSystem.out.println(t==3 ? \"Yes\" : \"No\");\n\t\tsc.close();\t\t\t\n\t}\n\n\tpublic static void main(String args[]) {\n\t\tsolve();\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { static void solve() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(), t = 0; while (n-->0) { int a = sc.nextInt(), b = sc.nextInt(); if (a==b) t++; else t=0; if (t==3) break; } System.out.println(t==3 ? "Yes" : "No"); sc.close(); } public static void main(String args[]) { solve(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 8, 4, 18, 4, 18, 13, 4, 18, 13, 2, 13, 17, 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 ], [ 71, 5 ], [ 71, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 41, 53 ], [ 38, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 8, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 6, 68 ], [ 68, 69 ], [ 0, 70 ], [ 70, 71 ], [ 70, 72 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n String ans = \"No\";\n for (int i = 0; i < n; i++) {\n count = sc.next().equals(sc.next()) ? count + 1 : 0;\n if(count == 3) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n String ans = \"No\";\n for (int i = 0; i < n; i++) {\n count = sc.next().equals(sc.next()) ? count + 1 : 0;\n if(count == 3) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n String ans = \"No\";\n for (int i = 0; i < n; i++) {\n count = sc.next().equals(sc.next()) ? count + 1 : 0;\n if(count == 3) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n String ans = \"No\";\n for (int i = 0; i < n; i++) {\n count = sc.next().equals(sc.next()) ? count + 1 : 0;\n if(count == 3) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = Integer.parseInt(sc.next());", "n", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "String ans = \"No\";", "ans", "\"No\"", "for (int i = 0; i < n; i++) {\n count = sc.next().equals(sc.next()) ? count + 1 : 0;\n if(count == 3) {\n ans = \"Yes\";\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n count = sc.next().equals(sc.next()) ? count + 1 : 0;\n if(count == 3) {\n ans = \"Yes\";\n }\n }", "{\n count = sc.next().equals(sc.next()) ? count + 1 : 0;\n if(count == 3) {\n ans = \"Yes\";\n }\n }", "count = sc.next().equals(sc.next()) ? count + 1 : 0", "count", "sc.next().equals(sc.next()) ? count + 1 : 0", "sc.next().equals(sc.next())", "sc.next().equals", "sc.next()", "sc.next", "sc", "sc.next()", "sc.next", "sc", "count + 1", "count", "1", "0", "if(count == 3) {\n ans = \"Yes\";\n }", "count == 3", "count", "3", "{\n ans = \"Yes\";\n }", "ans = \"Yes\"", "ans", "\"Yes\"", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n String ans = \"No\";\n for (int i = 0; i < n; i++) {\n count = sc.next().equals(sc.next()) ? count + 1 : 0;\n if(count == 3) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n String ans = \"No\";\n for (int i = 0; i < n; i++) {\n count = sc.next().equals(sc.next()) ? count + 1 : 0;\n if(count == 3) {\n ans = \"Yes\";\n }\n }\n\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int count = 0; String ans = "No"; for (int i = 0; i < n; i++) { count = sc.next().equals(sc.next()) ? count + 1 : 0; if(count == 3) { ans = "Yes"; } } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 29, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 40, 13, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 14, 13, 4, 18, 13, 17, 4, 18, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 249, 8 ], [ 249, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 14, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 31, 35 ], [ 11, 36 ], [ 36, 37 ], [ 37, 38 ], [ 9, 39 ], [ 39, 40 ], [ 249, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 41, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 47, 56 ], [ 56, 57 ], [ 41, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 58, 67 ], [ 67, 68 ], [ 41, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 75, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 71, 87 ], [ 87, 88 ], [ 41, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 92, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 102, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 91, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 41, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 41, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 132, 133 ], [ 41, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 141, 142 ], [ 249, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 147, 153 ], [ 153, 154 ], [ 153, 155 ], [ 147, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 158, 163 ], [ 163, 164 ], [ 163, 165 ], [ 158, 166 ], [ 166, 167 ], [ 167, 168 ], [ 158, 169 ], [ 170, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 171, 177 ], [ 177, 178 ], [ 178, 179 ], [ 170, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 181, 185 ], [ 180, 186 ], [ 186, 187 ], [ 187, 188 ], [ 147, 189 ], [ 189, 190 ], [ 189, 191 ], [ 147, 192 ], [ 192, 193 ], [ 192, 194 ], [ 147, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 195, 200 ], [ 200, 201 ], [ 200, 202 ], [ 195, 203 ], [ 203, 204 ], [ 204, 205 ], [ 195, 206 ], [ 207, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 210, 214 ], [ 209, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 208, 220 ], [ 220, 221 ], [ 208, 222 ], [ 222, 223 ], [ 222, 224 ], [ 207, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 225, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 229, 233 ], [ 147, 234 ], [ 234, 235 ], [ 234, 236 ], [ 236, 237 ], [ 237, 238 ], [ 236, 239 ], [ 234, 240 ], [ 240, 241 ], [ 241, 242 ], [ 240, 243 ], [ 145, 244 ], [ 244, 245 ], [ 145, 246 ], [ 246, 247 ], [ 0, 248 ], [ 248, 249 ], [ 248, 250 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n int n=in.nextInt();\n int[][] dice=new int[n][2];\n for(int i=0;i<n;i++){\n dice[i][0]=in.nextInt();\n dice[i][1]=in.nextInt();\n }\n int ans=0;\n boolean flag=false;\n for(int i=0;i<n;i++){\n if(dice[i][0]==dice[i][1])\n ans++;\n else\n ans=0;\n if(ans>=3){\n flag=true;\n break;\n }\n }\n if(flag)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n int n=in.nextInt();\n int[][] dice=new int[n][2];\n for(int i=0;i<n;i++){\n dice[i][0]=in.nextInt();\n dice[i][1]=in.nextInt();\n }\n int ans=0;\n boolean flag=false;\n for(int i=0;i<n;i++){\n if(dice[i][0]==dice[i][1])\n ans++;\n else\n ans=0;\n if(ans>=3){\n flag=true;\n break;\n }\n }\n if(flag)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }", "main", "{\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }", "InputStream inputstream = System.in;", "inputstream", "System.in", "System", "System.in", "OutputStream outputstream = System.out;", "outputstream", "System.out", "System", "System.out", "InputReader in = new InputReader(inputstream);", "in", "new InputReader(inputstream)", "PrintWriter out = new PrintWriter(outputstream);", "out", "new PrintWriter(outputstream)", "Task solver = new Task();", "solver", "new Task()", "solver.solve(in, out)", "solver.solve", "solver", "in", "out", "out.flush()", "out.flush", "out", "String args[]", "args", "static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }", "InputReader", "public BufferedReader reader;", "reader", "public StringTokenizer tok;", "tok", "public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }", "InputReader", "{\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }", "reader = new BufferedReader(new InputStreamReader(inputStream))", "reader", "new BufferedReader(new InputStreamReader(inputStream))", "tok = null", "tok", "null", "InputStream inputStream", "inputStream", "public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }", "InputReader", "{\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }", "reader = new BufferedReader(new FileReader(inputFile))", "reader", "new BufferedReader(new FileReader(inputFile))", "tok = null", "tok", "null", "String inputFile", "inputFile", "public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }", "nextLine", "{\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }", "String c = \"\";", "c", "\"\"", "try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n c = reader.readLine();\n }", "c = reader.readLine()", "c", "reader.readLine()", "reader.readLine", "reader", "return c;", "c", "public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }", "next", "{\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }", "while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "tok == null || !tok.hasMoreTokens()", "tok == null", "tok", "null", "!tok.hasMoreTokens()", "tok.hasMoreTokens()", "tok.hasMoreTokens", "tok", "{\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }", "catch (Exception e) {\n throw new RuntimeException(e);\n }", "Exception e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n tok = new StringTokenizer(nextLine());\n }", "tok = new StringTokenizer(nextLine())", "tok", "new StringTokenizer(nextLine())", "return tok.nextToken();", "tok.nextToken()", "tok.nextToken", "tok", "public int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public double nextDouble(){\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "static class Task {\n public void solve(InputReader in, PrintWriter out) {\n int n=in.nextInt();\n int[][] dice=new int[n][2];\n for(int i=0;i<n;i++){\n dice[i][0]=in.nextInt();\n dice[i][1]=in.nextInt();\n }\n int ans=0;\n boolean flag=false;\n for(int i=0;i<n;i++){\n if(dice[i][0]==dice[i][1])\n ans++;\n else\n ans=0;\n if(ans>=3){\n flag=true;\n break;\n }\n }\n if(flag)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }", "Task", "public void solve(InputReader in, PrintWriter out) {\n int n=in.nextInt();\n int[][] dice=new int[n][2];\n for(int i=0;i<n;i++){\n dice[i][0]=in.nextInt();\n dice[i][1]=in.nextInt();\n }\n int ans=0;\n boolean flag=false;\n for(int i=0;i<n;i++){\n if(dice[i][0]==dice[i][1])\n ans++;\n else\n ans=0;\n if(ans>=3){\n flag=true;\n break;\n }\n }\n if(flag)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }", "solve", "{\n int n=in.nextInt();\n int[][] dice=new int[n][2];\n for(int i=0;i<n;i++){\n dice[i][0]=in.nextInt();\n dice[i][1]=in.nextInt();\n }\n int ans=0;\n boolean flag=false;\n for(int i=0;i<n;i++){\n if(dice[i][0]==dice[i][1])\n ans++;\n else\n ans=0;\n if(ans>=3){\n flag=true;\n break;\n }\n }\n if(flag)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }", "int n=in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int[][] dice=new int[n][2];", "dice", "new int[n][2]", "n", "2", "for(int i=0;i<n;i++){\n dice[i][0]=in.nextInt();\n dice[i][1]=in.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n dice[i][0]=in.nextInt();\n dice[i][1]=in.nextInt();\n }", "{\n dice[i][0]=in.nextInt();\n dice[i][1]=in.nextInt();\n }", "dice[i][0]=in.nextInt()", "dice[i][0]", "dice[i]", "dice", "i", "0", "in.nextInt()", "in.nextInt", "in", "dice[i][1]=in.nextInt()", "dice[i][1]", "dice[i]", "dice", "i", "1", "in.nextInt()", "in.nextInt", "in", "int ans=0;", "ans", "0", "boolean flag=false;", "flag", "false", "for(int i=0;i<n;i++){\n if(dice[i][0]==dice[i][1])\n ans++;\n else\n ans=0;\n if(ans>=3){\n flag=true;\n break;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n if(dice[i][0]==dice[i][1])\n ans++;\n else\n ans=0;\n if(ans>=3){\n flag=true;\n break;\n }\n }", "{\n if(dice[i][0]==dice[i][1])\n ans++;\n else\n ans=0;\n if(ans>=3){\n flag=true;\n break;\n }\n }", "if(dice[i][0]==dice[i][1])\n ans++;\n else\n ans=0;", "dice[i][0]==dice[i][1]", "dice[i][0]", "dice[i]", "dice", "i", "0", "dice[i][1]", "dice[i]", "dice", "i", "1", "ans++", "ans", "ans=0", "ans", "0", "if(ans>=3){\n flag=true;\n break;\n }", "ans>=3", "ans", "3", "{\n flag=true;\n break;\n }", "flag=true", "flag", "true", "break;", "if(flag)\n out.println(\"Yes\");\n else\n out.println(\"No\");", "flag", "out.println(\"Yes\")", "out.println", "out", "\"Yes\"", "out.println(\"No\")", "out.println", "out", "\"No\"", "InputReader in", "in", "PrintWriter out", "out", "public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n int n=in.nextInt();\n int[][] dice=new int[n][2];\n for(int i=0;i<n;i++){\n dice[i][0]=in.nextInt();\n dice[i][1]=in.nextInt();\n }\n int ans=0;\n boolean flag=false;\n for(int i=0;i<n;i++){\n if(dice[i][0]==dice[i][1])\n ans++;\n else\n ans=0;\n if(ans>=3){\n flag=true;\n break;\n }\n }\n if(flag)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n}", "public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n int n=in.nextInt();\n int[][] dice=new int[n][2];\n for(int i=0;i<n;i++){\n dice[i][0]=in.nextInt();\n dice[i][1]=in.nextInt();\n }\n int ans=0;\n boolean flag=false;\n for(int i=0;i<n;i++){\n if(dice[i][0]==dice[i][1])\n ans++;\n else\n ans=0;\n if(ans>=3){\n flag=true;\n break;\n }\n }\n if(flag)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { static class InputReader { public BufferedReader reader; public StringTokenizer tok; public InputReader(InputStream inputStream) { reader = new BufferedReader(new InputStreamReader(inputStream)); tok = null; } public InputReader(String inputFile) throws FileNotFoundException { reader = new BufferedReader(new FileReader(inputFile)); tok = null; } public String nextLine() { String c = ""; try { c = reader.readLine(); } catch (IOException e) { throw new RuntimeException(e); } return c; } public String next() { while (tok == null || !tok.hasMoreTokens()) { try { tok = new StringTokenizer(nextLine()); } catch (Exception e) { throw new RuntimeException(e); } } return tok.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } public long nextLong() { return Long.parseLong(next()); } public double nextDouble(){ return Double.parseDouble(next()); } } public static void main(String args[]) { InputStream inputstream = System.in; OutputStream outputstream = System.out; InputReader in = new InputReader(inputstream); PrintWriter out = new PrintWriter(outputstream); Task solver = new Task(); solver.solve(in, out); out.flush(); } static class Task { public void solve(InputReader in, PrintWriter out) { int n=in.nextInt(); int[][] dice=new int[n][2]; for(int i=0;i<n;i++){ dice[i][0]=in.nextInt(); dice[i][1]=in.nextInt(); } int ans=0; boolean flag=false; for(int i=0;i<n;i++){ if(dice[i][0]==dice[i][1]) ans++; else ans=0; if(ans>=3){ flag=true; break; } } if(flag) out.println("Yes"); else out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 30, 40, 13, 14, 2, 13, 17, 3, 0, 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 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 51, 57 ], [ 57, 58 ], [ 58, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 74, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 73, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 73, 93 ], [ 93, 94 ], [ 93, 95 ], [ 8, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 96, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 6, 112 ], [ 112, 113 ] ]
[ "import java.util.*;\nclass Main\n{\n public static void main(String args[])\n {\n int N,k=0;\n Scanner sc= new Scanner(System.in);\n N=sc.nextInt();\n int D[][]= new int[N][2];\n for(int i=0;i<N;i++)\n for(int j=0;j<2;j++)\n D[i][j]=sc.nextInt();\n for(int i=0;i<N;i++)\n {\n if(D[i][0]==D[i][1])\n {\n k++;\n if(k==3)\n break;\n }\n else\n k=0; \n }\n if(k==3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "class Main\n{\n public static void main(String args[])\n {\n int N,k=0;\n Scanner sc= new Scanner(System.in);\n N=sc.nextInt();\n int D[][]= new int[N][2];\n for(int i=0;i<N;i++)\n for(int j=0;j<2;j++)\n D[i][j]=sc.nextInt();\n for(int i=0;i<N;i++)\n {\n if(D[i][0]==D[i][1])\n {\n k++;\n if(k==3)\n break;\n }\n else\n k=0; \n }\n if(k==3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String args[])\n {\n int N,k=0;\n Scanner sc= new Scanner(System.in);\n N=sc.nextInt();\n int D[][]= new int[N][2];\n for(int i=0;i<N;i++)\n for(int j=0;j<2;j++)\n D[i][j]=sc.nextInt();\n for(int i=0;i<N;i++)\n {\n if(D[i][0]==D[i][1])\n {\n k++;\n if(k==3)\n break;\n }\n else\n k=0; \n }\n if(k==3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "main", "{\n int N,k=0;\n Scanner sc= new Scanner(System.in);\n N=sc.nextInt();\n int D[][]= new int[N][2];\n for(int i=0;i<N;i++)\n for(int j=0;j<2;j++)\n D[i][j]=sc.nextInt();\n for(int i=0;i<N;i++)\n {\n if(D[i][0]==D[i][1])\n {\n k++;\n if(k==3)\n break;\n }\n else\n k=0; \n }\n if(k==3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "int N", "N", "k=0;", "k", "0", "Scanner sc= new Scanner(System.in);", "sc", "new Scanner(System.in)", "N=sc.nextInt()", "N", "sc.nextInt()", "sc.nextInt", "sc", "int D[][]= new int[N][2];", "D", "new int[N][2]", "N", "2", "for(int i=0;i<N;i++)\n for(int j=0;j<2;j++)\n D[i][j]=sc.nextInt();", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "for(int j=0;j<2;j++)\n D[i][j]=sc.nextInt();", "for(int j=0;j<2;j++)\n D[i][j]=sc.nextInt();", "int j=0;", "int j=0;", "j", "0", "j<2", "j", "2", "j++", "j++", "j", "D[i][j]=sc.nextInt();", "D[i][j]=sc.nextInt()", "D[i][j]", "D[i]", "D", "i", "j", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<N;i++)\n {\n if(D[i][0]==D[i][1])\n {\n k++;\n if(k==3)\n break;\n }\n else\n k=0; \n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n if(D[i][0]==D[i][1])\n {\n k++;\n if(k==3)\n break;\n }\n else\n k=0; \n }", "{\n if(D[i][0]==D[i][1])\n {\n k++;\n if(k==3)\n break;\n }\n else\n k=0; \n }", "if(D[i][0]==D[i][1])\n {\n k++;\n if(k==3)\n break;\n }\n else\n k=0;", "D[i][0]==D[i][1]", "D[i][0]", "D[i]", "D", "i", "0", "D[i][1]", "D[i]", "D", "i", "1", "{\n k++;\n if(k==3)\n break;\n }", "k++", "k", "if(k==3)\n break;", "k==3", "k", "3", "break;", "k=0", "k", "0", "if(k==3)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "k==3", "k", "3", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String args[]", "args" ]
import java.util.*; class Main { public static void main(String args[]) { int N,k=0; Scanner sc= new Scanner(System.in); N=sc.nextInt(); int D[][]= new int[N][2]; for(int i=0;i<N;i++) for(int j=0;j<2;j++) D[i][j]=sc.nextInt(); for(int i=0;i<N;i++) { if(D[i][0]==D[i][1]) { k++; if(k==3) break; } else k=0; } if(k==3) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 2, 17, 17, 41, 13, 2, 13, 13, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 2, 17, 17, 41, 13, 41, 13, 20, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 2, 13, 13, 17, 0, 18, 13, 2, 2, 13, 13, 17, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 2, 13, 13, 17, 0, 18, 13, 2, 2, 13, 13, 17, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 2, 13, 13, 17, 0, 18, 13, 2, 2, 13, 13, 17, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 2, 13, 13, 17, 0, 18, 13, 2, 2, 13, 13, 17, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 17, 12, 13, 30, 4, 18, 18, 13, 13, 17, 12, 13, 30, 41, 13, 40, 17, 41, 13, 13, 42, 2, 2, 13, 17, 13, 30, 41, 13, 2, 2, 13, 13, 17, 14, 2, 18, 13, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 29, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 40, 17, 41, 13, 13, 42, 2, 2, 13, 17, 13, 30, 41, 13, 2, 2, 13, 13, 17, 14, 2, 18, 13, 13, 13, 30, 0, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 2, 13, 17, 41, 13, 40, 17, 42, 2, 13, 13, 30, 41, 13, 2, 2, 13, 13, 17, 14, 2, 18, 13, 13, 13, 30, 0, 13, 2, 13, 17, 14, 2, 18, 13, 13, 13, 30, 0, 13, 2, 13, 17, 30, 0, 13, 13, 3, 29, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 4, 13, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 30, 40, 13, 0, 13, 17, 14, 2, 2, 13, 13, 13, 40, 13, 29, 13, 23, 13, 12, 13, 30, 0, 13, 20, 2, 13, 17, 4, 18, 13, 13, 17, 0, 18, 13, 17, 0, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 2, 13, 13, 13, 1, 40, 13, 30, 14, 18, 13, 13, 11, 1, 41, 13, 2, 13, 13, 2, 13, 13, 1, 0, 13, 13, 30, 0, 18, 13, 13, 17, 23, 13, 12, 13, 30, 0, 13, 20, 18, 13, 13, 0, 18, 13, 17, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 18, 13, 13, 18, 13, 2, 13, 17, 23, 13, 12, 13, 30, 29, 2, 2, 13, 17, 17, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 30, 0, 13, 17, 3, 29, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 13, 13, 29, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 17, 41, 13, 4, 13, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 30, 29, 2, 2, 13, 13, 13, 29, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 42, 2, 13, 17, 30, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 4, 18, 13, 2, 2, 17, 13, 17, 4, 18, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 4, 18, 13, 13, 17, 14, 40, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 17, 17, 17, 0, 13, 2, 13, 4, 13, 13, 2, 2, 13, 17, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 42, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 2, 2, 17, 2, 13, 13, 17, 13, 0, 13, 13, 12, 13, 30, 4, 18, 18, 13, 13, 2, 2, 13, 13, 13, 23, 13, 12, 13, 30, 0, 13, 4, 18, 13, 30, 4, 13, 0, 13, 4, 18, 13, 41, 13, 2, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 30, 0, 13, 17, 4, 18, 18, 13, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 1243, 8 ], [ 1243, 9 ], [ 9, 10 ], [ 9, 11 ], [ 1243, 12 ], [ 12, 13 ], [ 12, 14 ], [ 1243, 15 ], [ 15, 16 ], [ 1243, 17 ], [ 17, 18 ], [ 1243, 19 ], [ 19, 20 ], [ 1243, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 23, 25 ], [ 1243, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 1243, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 1243, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 1243, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 1243, 46 ], [ 46, 47 ], [ 1243, 48 ], [ 48, 49 ], [ 48, 50 ], [ 1243, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 86, 86 ], [ 86, 87 ], [ 86, 88 ], [ 86, 89 ], [ 73, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 94, 94 ], [ 94, 95 ], [ 94, 96 ], [ 94, 97 ], [ 90, 98 ], [ 51, 99 ], [ 99, 100 ], [ 1243, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 109, 119 ], [ 119, 120 ], [ 120, 121 ], [ 109, 122 ], [ 123, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 133, 134 ], [ 133, 135 ], [ 136, 136 ], [ 136, 137 ], [ 136, 138 ], [ 136, 139 ], [ 123, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 144, 144 ], [ 144, 145 ], [ 144, 146 ], [ 144, 147 ], [ 140, 148 ], [ 101, 149 ], [ 149, 150 ], [ 1243, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 156, 158 ], [ 153, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 166, 168 ], [ 159, 169 ], [ 169, 170 ], [ 170, 171 ], [ 159, 172 ], [ 173, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 176, 178 ], [ 173, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 183, 184 ], [ 183, 185 ], [ 186, 186 ], [ 186, 187 ], [ 186, 188 ], [ 186, 189 ], [ 173, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 194, 194 ], [ 194, 195 ], [ 194, 196 ], [ 194, 197 ], [ 190, 198 ], [ 151, 199 ], [ 199, 200 ], [ 1243, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 206, 208 ], [ 203, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 209, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 216, 218 ], [ 209, 219 ], [ 219, 220 ], [ 220, 221 ], [ 209, 222 ], [ 223, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 226, 228 ], [ 223, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 229, 233 ], [ 233, 234 ], [ 233, 235 ], [ 236, 236 ], [ 236, 237 ], [ 236, 238 ], [ 236, 239 ], [ 223, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 244, 244 ], [ 244, 245 ], [ 244, 246 ], [ 244, 247 ], [ 240, 248 ], [ 201, 249 ], [ 249, 250 ], [ 1243, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 254, 255 ], [ 254, 256 ], [ 256, 257 ], [ 256, 258 ], [ 253, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 261, 263 ], [ 259, 264 ], [ 264, 265 ], [ 264, 266 ], [ 259, 267 ], [ 267, 268 ], [ 268, 269 ], [ 259, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 271, 276 ], [ 276, 277 ], [ 277, 278 ], [ 277, 279 ], [ 276, 280 ], [ 253, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 251, 286 ], [ 286, 287 ], [ 1243, 288 ], [ 288, 289 ], [ 288, 290 ], [ 290, 291 ], [ 291, 292 ], [ 291, 293 ], [ 293, 294 ], [ 293, 295 ], [ 290, 296 ], [ 296, 297 ], [ 297, 298 ], [ 298, 299 ], [ 298, 300 ], [ 296, 301 ], [ 301, 302 ], [ 301, 303 ], [ 296, 304 ], [ 304, 305 ], [ 305, 306 ], [ 296, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 310, 311 ], [ 310, 312 ], [ 308, 313 ], [ 313, 314 ], [ 314, 315 ], [ 314, 316 ], [ 313, 317 ], [ 290, 318 ], [ 318, 319 ], [ 319, 320 ], [ 320, 321 ], [ 320, 322 ], [ 288, 323 ], [ 323, 324 ], [ 1243, 325 ], [ 325, 326 ], [ 325, 327 ], [ 327, 328 ], [ 328, 329 ], [ 328, 330 ], [ 330, 331 ], [ 330, 332 ], [ 327, 333 ], [ 333, 334 ], [ 334, 335 ], [ 335, 336 ], [ 335, 337 ], [ 333, 338 ], [ 338, 339 ], [ 338, 340 ], [ 333, 341 ], [ 341, 342 ], [ 342, 343 ], [ 333, 344 ], [ 344, 345 ], [ 345, 346 ], [ 346, 347 ], [ 347, 348 ], [ 347, 349 ], [ 345, 350 ], [ 350, 351 ], [ 351, 352 ], [ 351, 353 ], [ 350, 354 ], [ 327, 355 ], [ 355, 356 ], [ 356, 357 ], [ 357, 358 ], [ 357, 359 ], [ 325, 360 ], [ 360, 361 ], [ 1243, 362 ], [ 362, 363 ], [ 362, 364 ], [ 364, 365 ], [ 365, 366 ], [ 365, 367 ], [ 367, 368 ], [ 367, 369 ], [ 364, 370 ], [ 370, 371 ], [ 371, 372 ], [ 372, 373 ], [ 372, 374 ], [ 370, 375 ], [ 375, 376 ], [ 375, 377 ], [ 370, 378 ], [ 378, 379 ], [ 379, 380 ], [ 370, 381 ], [ 381, 382 ], [ 382, 383 ], [ 383, 384 ], [ 384, 385 ], [ 384, 386 ], [ 382, 387 ], [ 387, 388 ], [ 388, 389 ], [ 388, 390 ], [ 387, 391 ], [ 364, 392 ], [ 392, 393 ], [ 393, 394 ], [ 394, 395 ], [ 394, 396 ], [ 362, 397 ], [ 397, 398 ], [ 1243, 399 ], [ 399, 400 ], [ 399, 401 ], [ 401, 402 ], [ 402, 403 ], [ 403, 404 ], [ 404, 405 ], [ 404, 406 ], [ 402, 407 ], [ 1243, 408 ], [ 408, 409 ], [ 408, 410 ], [ 410, 411 ], [ 411, 412 ], [ 412, 413 ], [ 413, 414 ], [ 413, 415 ], [ 411, 416 ], [ 1243, 417 ], [ 417, 418 ], [ 417, 419 ], [ 419, 420 ], [ 420, 421 ], [ 420, 422 ], [ 422, 423 ], [ 419, 424 ], [ 424, 425 ], [ 424, 426 ], [ 419, 427 ], [ 427, 428 ], [ 428, 429 ], [ 429, 430 ], [ 429, 431 ], [ 428, 432 ], [ 427, 433 ], [ 433, 434 ], [ 434, 435 ], [ 434, 436 ], [ 436, 437 ], [ 437, 438 ], [ 437, 439 ], [ 436, 440 ], [ 433, 441 ], [ 441, 442 ], [ 442, 443 ], [ 443, 444 ], [ 443, 445 ], [ 442, 446 ], [ 441, 447 ], [ 447, 448 ], [ 448, 449 ], [ 448, 450 ], [ 441, 451 ], [ 451, 452 ], [ 452, 453 ], [ 452, 454 ], [ 419, 455 ], [ 455, 456 ], [ 417, 457 ], [ 457, 458 ], [ 417, 459 ], [ 459, 460 ], [ 417, 461 ], [ 461, 462 ], [ 1243, 463 ], [ 463, 464 ], [ 463, 465 ], [ 465, 466 ], [ 466, 467 ], [ 466, 468 ], [ 468, 469 ], [ 465, 470 ], [ 470, 471 ], [ 470, 472 ], [ 465, 473 ], [ 473, 474 ], [ 474, 475 ], [ 475, 476 ], [ 475, 477 ], [ 474, 478 ], [ 473, 479 ], [ 479, 480 ], [ 480, 481 ], [ 480, 482 ], [ 482, 483 ], [ 483, 484 ], [ 483, 485 ], [ 482, 486 ], [ 479, 487 ], [ 487, 488 ], [ 488, 489 ], [ 489, 490 ], [ 489, 491 ], [ 488, 492 ], [ 487, 493 ], [ 493, 494 ], [ 494, 495 ], [ 494, 496 ], [ 487, 497 ], [ 497, 498 ], [ 497, 499 ], [ 465, 500 ], [ 500, 501 ], [ 463, 502 ], [ 502, 503 ], [ 463, 504 ], [ 504, 505 ], [ 463, 506 ], [ 506, 507 ], [ 1243, 508 ], [ 508, 509 ], [ 508, 510 ], [ 510, 511 ], [ 511, 512 ], [ 511, 513 ], [ 510, 514 ], [ 514, 515 ], [ 514, 516 ], [ 516, 517 ], [ 516, 518 ], [ 510, 519 ], [ 519, 520 ], [ 519, 521 ], [ 521, 522 ], [ 510, 523 ], [ 523, 524 ], [ 524, 525 ], [ 524, 526 ], [ 523, 527 ], [ 527, 528 ], [ 528, 529 ], [ 528, 530 ], [ 530, 531 ], [ 531, 532 ], [ 531, 533 ], [ 530, 534 ], [ 527, 535 ], [ 535, 536 ], [ 536, 537 ], [ 537, 538 ], [ 537, 539 ], [ 536, 540 ], [ 535, 541 ], [ 541, 542 ], [ 542, 543 ], [ 542, 544 ], [ 544, 545 ], [ 544, 546 ], [ 535, 547 ], [ 547, 548 ], [ 548, 549 ], [ 549, 550 ], [ 549, 551 ], [ 548, 552 ], [ 547, 553 ], [ 553, 554 ], [ 554, 555 ], [ 554, 556 ], [ 556, 557 ], [ 556, 558 ], [ 547, 559 ], [ 559, 560 ], [ 560, 561 ], [ 560, 562 ], [ 559, 563 ], [ 510, 564 ], [ 564, 565 ], [ 508, 566 ], [ 566, 567 ], [ 508, 568 ], [ 568, 569 ], [ 508, 570 ], [ 570, 571 ], [ 1243, 572 ], [ 572, 573 ], [ 572, 574 ], [ 574, 575 ], [ 575, 576 ], [ 576, 577 ], [ 576, 578 ], [ 575, 579 ], [ 579, 580 ], [ 575, 581 ], [ 581, 582 ], [ 582, 583 ], [ 582, 584 ], [ 582, 585 ], [ 585, 586 ], [ 585, 587 ], [ 572, 588 ], [ 588, 589 ], [ 572, 590 ], [ 590, 591 ], [ 1243, 592 ], [ 592, 593 ], [ 592, 594 ], [ 594, 595 ], [ 595, 596 ], [ 596, 597 ], [ 597, 598 ], [ 597, 599 ], [ 599, 600 ], [ 599, 601 ], [ 599, 602 ], [ 596, 603 ], [ 592, 604 ], [ 604, 605 ], [ 592, 606 ], [ 606, 607 ], [ 1243, 608 ], [ 608, 609 ], [ 608, 610 ], [ 610, 611 ], [ 611, 612 ], [ 611, 613 ], [ 610, 614 ], [ 614, 615 ], [ 614, 616 ], [ 616, 617 ], [ 617, 618 ], [ 616, 619 ], [ 610, 620 ], [ 620, 621 ], [ 621, 622 ], [ 622, 623 ], [ 622, 624 ], [ 620, 625 ], [ 625, 626 ], [ 625, 627 ], [ 620, 628 ], [ 628, 629 ], [ 629, 630 ], [ 620, 631 ], [ 632, 632 ], [ 632, 633 ], [ 633, 634 ], [ 634, 635 ], [ 635, 636 ], [ 635, 637 ], [ 634, 638 ], [ 633, 639 ], [ 639, 640 ], [ 640, 641 ], [ 610, 642 ], [ 642, 643 ], [ 642, 644 ], [ 610, 645 ], [ 645, 646 ], [ 646, 647 ], [ 647, 648 ], [ 647, 649 ], [ 646, 650 ], [ 645, 651 ], [ 651, 652 ], [ 610, 653 ], [ 653, 654 ], [ 608, 655 ], [ 655, 656 ], [ 1243, 657 ], [ 657, 658 ], [ 657, 659 ], [ 659, 660 ], [ 660, 661 ], [ 660, 662 ], [ 663, 664 ], [ 663, 665 ], [ 659, 666 ], [ 666, 667 ], [ 667, 668 ], [ 666, 669 ], [ 666, 670 ], [ 659, 671 ], [ 671, 672 ], [ 672, 673 ], [ 672, 674 ], [ 671, 675 ], [ 675, 676 ], [ 676, 677 ], [ 676, 678 ], [ 675, 679 ], [ 659, 680 ], [ 680, 681 ], [ 681, 682 ], [ 682, 683 ], [ 682, 684 ], [ 680, 685 ], [ 685, 686 ], [ 686, 687 ], [ 686, 688 ], [ 685, 689 ], [ 680, 690 ], [ 690, 691 ], [ 691, 692 ], [ 680, 693 ], [ 693, 694 ], [ 694, 695 ], [ 695, 696 ], [ 695, 697 ], [ 694, 698 ], [ 698, 699 ], [ 699, 700 ], [ 700, 701 ], [ 700, 702 ], [ 702, 703 ], [ 702, 704 ], [ 698, 705 ], [ 705, 706 ], [ 705, 707 ], [ 698, 708 ], [ 708, 709 ], [ 709, 710 ], [ 709, 711 ], [ 698, 712 ], [ 712, 713 ], [ 713, 714 ], [ 714, 715 ], [ 714, 716 ], [ 713, 717 ], [ 657, 718 ], [ 718, 719 ], [ 1243, 720 ], [ 720, 721 ], [ 720, 722 ], [ 722, 723 ], [ 723, 724 ], [ 723, 725 ], [ 726, 727 ], [ 726, 728 ], [ 722, 729 ], [ 729, 730 ], [ 730, 731 ], [ 730, 732 ], [ 729, 733 ], [ 733, 734 ], [ 733, 735 ], [ 722, 736 ], [ 736, 737 ], [ 737, 738 ], [ 738, 739 ], [ 738, 740 ], [ 736, 741 ], [ 741, 742 ], [ 741, 743 ], [ 743, 744 ], [ 743, 745 ], [ 736, 746 ], [ 746, 747 ], [ 747, 748 ], [ 736, 749 ], [ 750, 750 ], [ 750, 751 ], [ 751, 752 ], [ 752, 753 ], [ 752, 754 ], [ 751, 755 ], [ 755, 756 ], [ 756, 757 ], [ 756, 758 ], [ 755, 759 ], [ 759, 760 ], [ 759, 761 ], [ 761, 762 ], [ 761, 763 ], [ 720, 764 ], [ 764, 765 ], [ 1243, 766 ], [ 766, 767 ], [ 766, 768 ], [ 768, 769 ], [ 769, 770 ], [ 770, 771 ], [ 771, 772 ], [ 771, 773 ], [ 770, 774 ], [ 766, 775 ], [ 775, 776 ], [ 1243, 777 ], [ 777, 778 ], [ 777, 779 ], [ 779, 780 ], [ 780, 781 ], [ 780, 782 ], [ 779, 783 ], [ 783, 784 ], [ 783, 785 ], [ 785, 786 ], [ 786, 787 ], [ 785, 788 ], [ 779, 789 ], [ 789, 790 ], [ 790, 791 ], [ 790, 792 ], [ 789, 793 ], [ 793, 794 ], [ 779, 795 ], [ 795, 796 ], [ 796, 797 ], [ 797, 798 ], [ 797, 799 ], [ 795, 800 ], [ 800, 801 ], [ 800, 802 ], [ 795, 803 ], [ 803, 804 ], [ 804, 805 ], [ 795, 806 ], [ 807, 807 ], [ 807, 808 ], [ 808, 809 ], [ 809, 810 ], [ 810, 811 ], [ 810, 812 ], [ 809, 813 ], [ 808, 814 ], [ 814, 815 ], [ 815, 816 ], [ 815, 817 ], [ 814, 818 ], [ 779, 819 ], [ 819, 820 ], [ 777, 821 ], [ 821, 822 ], [ 1243, 823 ], [ 823, 824 ], [ 823, 825 ], [ 825, 826 ], [ 826, 827 ], [ 826, 828 ], [ 825, 829 ], [ 829, 830 ], [ 830, 831 ], [ 831, 832 ], [ 831, 833 ], [ 829, 834 ], [ 834, 835 ], [ 834, 836 ], [ 829, 837 ], [ 837, 838 ], [ 838, 839 ], [ 829, 840 ], [ 840, 841 ], [ 841, 842 ], [ 841, 843 ], [ 825, 844 ], [ 844, 845 ], [ 823, 846 ], [ 846, 847 ], [ 1243, 848 ], [ 848, 849 ], [ 848, 850 ], [ 850, 851 ], [ 851, 852 ], [ 852, 853 ], [ 852, 854 ], [ 851, 855 ], [ 855, 856 ], [ 856, 857 ], [ 850, 858 ], [ 858, 859 ], [ 858, 860 ], [ 860, 861 ], [ 860, 862 ], [ 860, 863 ], [ 863, 864 ], [ 863, 865 ], [ 850, 866 ], [ 866, 867 ], [ 867, 868 ], [ 868, 869 ], [ 868, 870 ], [ 867, 871 ], [ 866, 872 ], [ 872, 873 ], [ 873, 874 ], [ 874, 875 ], [ 875, 876 ], [ 875, 877 ], [ 874, 878 ], [ 850, 879 ], [ 879, 880 ], [ 880, 881 ], [ 880, 882 ], [ 848, 883 ], [ 883, 884 ], [ 848, 885 ], [ 885, 886 ], [ 1243, 887 ], [ 887, 888 ], [ 887, 889 ], [ 889, 890 ], [ 890, 891 ], [ 890, 892 ], [ 892, 893 ], [ 893, 894 ], [ 889, 895 ], [ 895, 896 ], [ 895, 897 ], [ 897, 898 ], [ 898, 899 ], [ 889, 900 ], [ 900, 901 ], [ 900, 902 ], [ 889, 903 ], [ 903, 904 ], [ 904, 905 ], [ 904, 906 ], [ 903, 907 ], [ 907, 908 ], [ 908, 909 ], [ 908, 910 ], [ 910, 911 ], [ 910, 912 ], [ 907, 913 ], [ 913, 914 ], [ 914, 915 ], [ 914, 916 ], [ 913, 917 ], [ 917, 918 ], [ 918, 919 ], [ 919, 920 ], [ 918, 921 ], [ 921, 922 ], [ 922, 923 ], [ 922, 924 ], [ 921, 925 ], [ 913, 926 ], [ 926, 927 ], [ 927, 928 ], [ 926, 929 ], [ 907, 930 ], [ 930, 931 ], [ 930, 932 ], [ 889, 933 ], [ 933, 934 ], [ 934, 935 ], [ 935, 936 ], [ 935, 937 ], [ 933, 938 ], [ 938, 939 ], [ 939, 940 ], [ 1243, 941 ], [ 941, 942 ], [ 941, 943 ], [ 943, 944 ], [ 944, 945 ], [ 944, 946 ], [ 946, 947 ], [ 947, 948 ], [ 943, 949 ], [ 949, 950 ], [ 949, 951 ], [ 951, 952 ], [ 952, 953 ], [ 943, 954 ], [ 954, 955 ], [ 954, 956 ], [ 956, 957 ], [ 957, 958 ], [ 943, 959 ], [ 959, 960 ], [ 959, 961 ], [ 943, 962 ], [ 962, 963 ], [ 963, 964 ], [ 964, 965 ], [ 964, 966 ], [ 962, 967 ], [ 967, 968 ], [ 967, 969 ], [ 962, 970 ], [ 970, 971 ], [ 971, 972 ], [ 962, 973 ], [ 974, 974 ], [ 974, 975 ], [ 975, 976 ], [ 975, 977 ], [ 977, 978 ], [ 978, 979 ], [ 979, 980 ], [ 978, 981 ], [ 977, 982 ], [ 974, 983 ], [ 983, 984 ], [ 984, 985 ], [ 985, 986 ], [ 986, 987 ], [ 986, 988 ], [ 985, 989 ], [ 989, 990 ], [ 989, 991 ], [ 983, 992 ], [ 992, 993 ], [ 993, 994 ], [ 993, 995 ], [ 995, 996 ], [ 996, 997 ], [ 996, 998 ], [ 995, 999 ], [ 974, 1000 ], [ 1000, 1001 ], [ 1000, 1002 ], [ 1002, 1003 ], [ 1002, 1004 ], [ 1004, 1005 ], [ 1004, 1006 ], [ 1004, 1007 ], [ 1008, 1008 ], [ 1008, 1009 ], [ 1008, 1010 ], [ 1008, 1011 ], [ 943, 1012 ], [ 1012, 1013 ], [ 1013, 1014 ], [ 1014, 1015 ], [ 1014, 1016 ], [ 1012, 1017 ], [ 1243, 1018 ], [ 1018, 1019 ], [ 1018, 1020 ], [ 1020, 1021 ], [ 1021, 1022 ], [ 1021, 1023 ], [ 1023, 1024 ], [ 1024, 1025 ], [ 1020, 1026 ], [ 1026, 1027 ], [ 1026, 1028 ], [ 1028, 1029 ], [ 1029, 1030 ], [ 1020, 1031 ], [ 1031, 1032 ], [ 1032, 1033 ], [ 1032, 1034 ], [ 1031, 1035 ], [ 1035, 1036 ], [ 1036, 1037 ], [ 1037, 1038 ], [ 1038, 1039 ], [ 1038, 1040 ], [ 1036, 1041 ], [ 1043, 1042 ], [ 1042, 1043 ], [ 1043, 1044 ], [ 1043, 1045 ], [ 1045, 1046 ], [ 1045, 1047 ], [ 1042, 1048 ], [ 1043, 1049 ], [ 1035, 1050 ], [ 1050, 1051 ], [ 1050, 1052 ], [ 1243, 1053 ], [ 1053, 1054 ], [ 1053, 1055 ], [ 1055, 1056 ], [ 1056, 1057 ], [ 1057, 1058 ], [ 1058, 1059 ], [ 1058, 1060 ], [ 1056, 1061 ], [ 1062, 1062 ], [ 1062, 1063 ], [ 1062, 1064 ], [ 1062, 1065 ], [ 1053, 1066 ], [ 1066, 1067 ], [ 1243, 1068 ], [ 1068, 1069 ], [ 1068, 1070 ], [ 1070, 1071 ], [ 1071, 1072 ], [ 1071, 1073 ], [ 1073, 1074 ], [ 1074, 1075 ], [ 1070, 1076 ], [ 1076, 1077 ], [ 1077, 1078 ], [ 1070, 1079 ], [ 1079, 1080 ], [ 1079, 1081 ], [ 1081, 1082 ], [ 1082, 1083 ], [ 1070, 1084 ], [ 1084, 1085 ], [ 1084, 1086 ], [ 1086, 1087 ], [ 1086, 1088 ], [ 1068, 1089 ], [ 1089, 1090 ], [ 1243, 1091 ], [ 1091, 1092 ], [ 1091, 1093 ], [ 1093, 1094 ], [ 1094, 1095 ], [ 1094, 1096 ], [ 1096, 1097 ], [ 1097, 1098 ], [ 1093, 1099 ], [ 1099, 1100 ], [ 1099, 1101 ], [ 1093, 1102 ], [ 1102, 1103 ], [ 1103, 1104 ], [ 1104, 1105 ], [ 1104, 1106 ], [ 1102, 1107 ], [ 1107, 1108 ], [ 1107, 1109 ], [ 1102, 1110 ], [ 1110, 1111 ], [ 1111, 1112 ], [ 1102, 1113 ], [ 1114, 1114 ], [ 1114, 1115 ], [ 1115, 1116 ], [ 1115, 1117 ], [ 1117, 1118 ], [ 1118, 1119 ], [ 1114, 1120 ], [ 1120, 1121 ], [ 1120, 1122 ], [ 1122, 1123 ], [ 1123, 1124 ], [ 1114, 1125 ], [ 1125, 1126 ], [ 1126, 1127 ], [ 1126, 1128 ], [ 1125, 1129 ], [ 1129, 1130 ], [ 1130, 1131 ], [ 1129, 1132 ], [ 1132, 1133 ], [ 1133, 1134 ], [ 1133, 1135 ], [ 1132, 1136 ], [ 1136, 1137 ], [ 1137, 1138 ], [ 1138, 1139 ], [ 1139, 1140 ], [ 1139, 1141 ], [ 1137, 1142 ], [ 1136, 1143 ], [ 1125, 1144 ], [ 1144, 1145 ], [ 1145, 1146 ], [ 1145, 1147 ], [ 1093, 1148 ], [ 1148, 1149 ], [ 1149, 1150 ], [ 1150, 1151 ], [ 1150, 1152 ], [ 1148, 1153 ], [ 1243, 1154 ], [ 1154, 1155 ], [ 1154, 1156 ], [ 1156, 1157 ], [ 1154, 1158 ], [ 1158, 1159 ], [ 1154, 1160 ], [ 1160, 1161 ], [ 1160, 1162 ], [ 1162, 1163 ], [ 1163, 1164 ], [ 1163, 1165 ], [ 1154, 1166 ], [ 1166, 1167 ], [ 1166, 1168 ], [ 1168, 1169 ], [ 1169, 1170 ], [ 1170, 1171 ], [ 1171, 1172 ], [ 1171, 1173 ], [ 1170, 1174 ], [ 1174, 1175 ], [ 1175, 1176 ], [ 1176, 1177 ], [ 1169, 1178 ], [ 1178, 1179 ], [ 1179, 1180 ], [ 1180, 1181 ], [ 1180, 1182 ], [ 1182, 1183 ], [ 1183, 1184 ], [ 1184, 1185 ], [ 1179, 1186 ], [ 1186, 1187 ], [ 1187, 1188 ], [ 1187, 1189 ], [ 1168, 1190 ], [ 1190, 1191 ], [ 1191, 1192 ], [ 1192, 1193 ], [ 1154, 1194 ], [ 1194, 1195 ], [ 1194, 1196 ], [ 1196, 1197 ], [ 1197, 1198 ], [ 1198, 1199 ], [ 1199, 1200 ], [ 1198, 1201 ], [ 1201, 1202 ], [ 1154, 1203 ], [ 1203, 1204 ], [ 1203, 1205 ], [ 1205, 1206 ], [ 1206, 1207 ], [ 1207, 1208 ], [ 1208, 1209 ], [ 1207, 1210 ], [ 1210, 1211 ], [ 1154, 1212 ], [ 1212, 1213 ], [ 1212, 1214 ], [ 1214, 1215 ], [ 1215, 1216 ], [ 1216, 1217 ], [ 1217, 1218 ], [ 1216, 1219 ], [ 1219, 1220 ], [ 1154, 1221 ], [ 1221, 1222 ], [ 1221, 1223 ], [ 1223, 1224 ], [ 1224, 1225 ], [ 1224, 1226 ], [ 1223, 1227 ], [ 1227, 1228 ], [ 1228, 1229 ], [ 1228, 1230 ], [ 1230, 1231 ], [ 1231, 1232 ], [ 1232, 1233 ], [ 1227, 1234 ], [ 1234, 1235 ], [ 1235, 1236 ], [ 1235, 1237 ], [ 1237, 1238 ], [ 1238, 1239 ], [ 1223, 1240 ], [ 1240, 1241 ], [ 0, 1242 ], [ 1242, 1243 ], [ 1242, 1244 ] ]
[ "import java.io.*;\nimport java.util.*;\npublic class Main {\n public static final String ANSI_RED = \"\\u001B[31m\";\n public static final String ANSI_RESET = \"\\u001B[0m\";\n static long startTime;\n static long endTime;\n static Boolean [] prime ;\n static int M=(int)1e9+7;\n static long MM=M*M;\n static int MAX=Integer.MAX_VALUE;\n static int MIN=Integer.MIN_VALUE;\n static int SIZE = (int)1e9*2;\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void revArray(int [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n int temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(long [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(Long [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(Integer [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Integer temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n static void printArray(int[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(long[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(Integer[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(Long[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void yes(){\n System.out.println(\"YES\");\n }\n static void no(){System.out.println(\"NO\");}\n public static int lowerBound\n (Integer[] array, int length, int value) {\n // Returns the index of the value or\n // if there is no value, returns the closest to the left.\n int low=-1; // arr[low]<=tar\n int hi=length;//arr[hi]>tar\n while (low+1<hi){ // while pointers are not neighboring(low+1!=hi)\n int mid=(low+hi)/2;\n if(array[mid]<=value){\n low=mid;\n }\n else {\n hi=mid;\n }\n }\n return low;// if no such element, returns -1.\n }\n public static int upperBound(Integer[] array, int length, int value){\n // returns the index of the value or\n // if the value does not exist, returns the closest to the right\n int low=-1; // arr[low]<tar\n int hi=length;// arr[hi]>=tar\n while (low+1<hi){// Eventually, pointers should be adjacent.\n int mid=(low+hi)>>1;\n if(array[mid]>=value){\n hi=mid;\n }\n else low=mid;\n }\n return hi;\n }\n public static int binarySearch(Integer [] arr, int length, int value){\n // returns the index of the targeted value or -1 if there is no value.\n int low=0;\n int hi=length-1;\n int ans=-1;\n while (low<=hi){\n int mid=(low+hi)>>1;\n if(arr[mid]>value){\n hi=mid-1;\n }\n else if(arr[mid]<value){\n low=mid+1;\n }\n else {\n ans=mid;\n break;\n }\n }\n return ans;\n }\n public static long gcd(long a, long b){\n if (b == 0)\n return a;\n else return gcd(b, a % b);\n }\n public static long lcm(long a , long b){\n return a/gcd(a,b)*b;\n }\n public static long countDivs(long n ){\n int cn=0;\n long sqr = (long)Math.sqrt(n);\n for (long i = 1; i<=sqr ; ++i) {\n if(n%i==0){\n ++cn;\n }\n }\n cn*=2;\n if(sqr*sqr==n) cn--;\n return cn;\n\n }\n static void prime(int x) {\n //sieve algorithm. nlog(log(n)).\n prime=new Boolean[ (x+1)];\n Arrays.fill(prime,true);\n prime[0] = prime[1] = false;\n for (int i = 2; i * i <= x ; i++)\n if (prime[i])\n for (int j = i * i; j <= x; j += i)\n prime[j] = false;\n }\n static int[] sum;\n static void cumulitiveSum( int [] arr){\n sum = new int[arr.length];\n sum[0]=arr[0];\n for (int i = 1; i <arr.length; i++) {\n sum[i]=arr[i]+sum[i-1];\n }\n }\n static boolean isEven(long x ){\n return x % 2 == 0;\n }\n static boolean isPrime(long x ){\n boolean flag = true;\n int sqr = (int)Math.sqrt(x);\n if(x<2) return false;\n for (int i = 2; i <=sqr; i++) {\n if(x%i==0){\n flag=false;\n break;\n }\n }\n return flag;\n }\n static long factorial( long x) {\n long total = 1;\n for (int i = 2; i <= x; i++)\n total *= i;\n return total;\n }\n static long power(long x, long n) {\n if (n == 0) {\n return 1;\n }\n\n long pow = power(x, n / 2L);\n if ((n & 1) == 1) {\n return (x * (pow) * (pow));\n }\n\n return (pow * pow);\n }\n static void decimalToRadix(){\n int num=sc.nextInt(),radix=sc.nextInt();\n StringBuilder s = new StringBuilder();\n while (num>0){\n int x=num%radix;\n if(x>9){\n s.append((char)('A'+x-10));\n }\n else s.append(x);\n num/=radix;\n }\n System.out.println(s.reverse());\n }\n static void radixToDecimal(){\n String num=sc.next();\n int radix=sc.nextInt();\n int n =num.length();\n long ans=0;\n for (int i = 0; i < n; i++) {\n int number =num.charAt(i)-'0';\n if(!(number>=0 && number<=9)){\n number+='0'+10-'A';\n }\n ans+=number*power(radix,n-1-i);\n }\n System.out.println(ans);\n }\n static void remAndNumber(){\n int number=sc.nextInt(),radix=sc.nextInt();\n while (number>0) {\n System.out.println(\"Remainder: \" + number%radix +\" Number: \" + number );\n number /= radix;\n }\n\n }\n\n static void dg (String ss){\n System.out.println(ANSI_RED + ss + ANSI_RESET);\n }\n public static void main(String [] args) {\n startTime = System.currentTimeMillis();\n // int T = sc.nextInt();while (T--!=0)\n {\n solve();\n }\n endTime = System.currentTimeMillis();\n long duration= endTime-startTime;\n //System.out.println(duration);\n }\n\n // static Scanner sc = new Scanner(System.in);\n static FastReader sc = new FastReader();\n // dg(String.valueOf());\n public static void solve() {\n//////////////////////////////////////////////////////////////////////\n int n =sc.nextInt();\n int cn=0;\n for (int i = 0; i < n; i++) {\n int x=sc.nextInt(),y=sc.nextInt();\n if(x==y) {\n cn++;\n if(cn==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n else {\n cn=0;\n }\n }\n System.out.println(\"No\");\n ///////////////////////////////////////////////////////////////////////\n }\n\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n public static final String ANSI_RED = \"\\u001B[31m\";\n public static final String ANSI_RESET = \"\\u001B[0m\";\n static long startTime;\n static long endTime;\n static Boolean [] prime ;\n static int M=(int)1e9+7;\n static long MM=M*M;\n static int MAX=Integer.MAX_VALUE;\n static int MIN=Integer.MIN_VALUE;\n static int SIZE = (int)1e9*2;\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void revArray(int [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n int temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(long [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(Long [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(Integer [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Integer temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n static void printArray(int[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(long[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(Integer[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(Long[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void yes(){\n System.out.println(\"YES\");\n }\n static void no(){System.out.println(\"NO\");}\n public static int lowerBound\n (Integer[] array, int length, int value) {\n // Returns the index of the value or\n // if there is no value, returns the closest to the left.\n int low=-1; // arr[low]<=tar\n int hi=length;//arr[hi]>tar\n while (low+1<hi){ // while pointers are not neighboring(low+1!=hi)\n int mid=(low+hi)/2;\n if(array[mid]<=value){\n low=mid;\n }\n else {\n hi=mid;\n }\n }\n return low;// if no such element, returns -1.\n }\n public static int upperBound(Integer[] array, int length, int value){\n // returns the index of the value or\n // if the value does not exist, returns the closest to the right\n int low=-1; // arr[low]<tar\n int hi=length;// arr[hi]>=tar\n while (low+1<hi){// Eventually, pointers should be adjacent.\n int mid=(low+hi)>>1;\n if(array[mid]>=value){\n hi=mid;\n }\n else low=mid;\n }\n return hi;\n }\n public static int binarySearch(Integer [] arr, int length, int value){\n // returns the index of the targeted value or -1 if there is no value.\n int low=0;\n int hi=length-1;\n int ans=-1;\n while (low<=hi){\n int mid=(low+hi)>>1;\n if(arr[mid]>value){\n hi=mid-1;\n }\n else if(arr[mid]<value){\n low=mid+1;\n }\n else {\n ans=mid;\n break;\n }\n }\n return ans;\n }\n public static long gcd(long a, long b){\n if (b == 0)\n return a;\n else return gcd(b, a % b);\n }\n public static long lcm(long a , long b){\n return a/gcd(a,b)*b;\n }\n public static long countDivs(long n ){\n int cn=0;\n long sqr = (long)Math.sqrt(n);\n for (long i = 1; i<=sqr ; ++i) {\n if(n%i==0){\n ++cn;\n }\n }\n cn*=2;\n if(sqr*sqr==n) cn--;\n return cn;\n\n }\n static void prime(int x) {\n //sieve algorithm. nlog(log(n)).\n prime=new Boolean[ (x+1)];\n Arrays.fill(prime,true);\n prime[0] = prime[1] = false;\n for (int i = 2; i * i <= x ; i++)\n if (prime[i])\n for (int j = i * i; j <= x; j += i)\n prime[j] = false;\n }\n static int[] sum;\n static void cumulitiveSum( int [] arr){\n sum = new int[arr.length];\n sum[0]=arr[0];\n for (int i = 1; i <arr.length; i++) {\n sum[i]=arr[i]+sum[i-1];\n }\n }\n static boolean isEven(long x ){\n return x % 2 == 0;\n }\n static boolean isPrime(long x ){\n boolean flag = true;\n int sqr = (int)Math.sqrt(x);\n if(x<2) return false;\n for (int i = 2; i <=sqr; i++) {\n if(x%i==0){\n flag=false;\n break;\n }\n }\n return flag;\n }\n static long factorial( long x) {\n long total = 1;\n for (int i = 2; i <= x; i++)\n total *= i;\n return total;\n }\n static long power(long x, long n) {\n if (n == 0) {\n return 1;\n }\n\n long pow = power(x, n / 2L);\n if ((n & 1) == 1) {\n return (x * (pow) * (pow));\n }\n\n return (pow * pow);\n }\n static void decimalToRadix(){\n int num=sc.nextInt(),radix=sc.nextInt();\n StringBuilder s = new StringBuilder();\n while (num>0){\n int x=num%radix;\n if(x>9){\n s.append((char)('A'+x-10));\n }\n else s.append(x);\n num/=radix;\n }\n System.out.println(s.reverse());\n }\n static void radixToDecimal(){\n String num=sc.next();\n int radix=sc.nextInt();\n int n =num.length();\n long ans=0;\n for (int i = 0; i < n; i++) {\n int number =num.charAt(i)-'0';\n if(!(number>=0 && number<=9)){\n number+='0'+10-'A';\n }\n ans+=number*power(radix,n-1-i);\n }\n System.out.println(ans);\n }\n static void remAndNumber(){\n int number=sc.nextInt(),radix=sc.nextInt();\n while (number>0) {\n System.out.println(\"Remainder: \" + number%radix +\" Number: \" + number );\n number /= radix;\n }\n\n }\n\n static void dg (String ss){\n System.out.println(ANSI_RED + ss + ANSI_RESET);\n }\n public static void main(String [] args) {\n startTime = System.currentTimeMillis();\n // int T = sc.nextInt();while (T--!=0)\n {\n solve();\n }\n endTime = System.currentTimeMillis();\n long duration= endTime-startTime;\n //System.out.println(duration);\n }\n\n // static Scanner sc = new Scanner(System.in);\n static FastReader sc = new FastReader();\n // dg(String.valueOf());\n public static void solve() {\n//////////////////////////////////////////////////////////////////////\n int n =sc.nextInt();\n int cn=0;\n for (int i = 0; i < n; i++) {\n int x=sc.nextInt(),y=sc.nextInt();\n if(x==y) {\n cn++;\n if(cn==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n else {\n cn=0;\n }\n }\n System.out.println(\"No\");\n ///////////////////////////////////////////////////////////////////////\n }\n\n}", "Main", "public static final String ANSI_RED = \"\\u001B[31m\";", "ANSI_RED", "\"\\u001B[31m\"", "public static final String ANSI_RESET = \"\\u001B[0m\";", "ANSI_RESET", "\"\\u001B[0m\"", "static long startTime;", "startTime", "static long endTime;", "endTime", "static Boolean [] prime ;", "prime", "static int M=(int)1e9+7;", "M", "(int)1e9+7", "(int)1e9", "7", "static long MM=M*M;", "MM", "M*M", "M", "M", "static int MAX=Integer.MAX_VALUE;", "MAX", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "static int MIN=Integer.MIN_VALUE;", "MIN", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "static int SIZE = (int)1e9*2;", "SIZE", "(int)1e9*2", "(int)1e9", "2", "static int[] sum;", "sum", "// static Scanner sc = new Scanner(System.in);\n static FastReader sc = new FastReader();", "sc", "new FastReader()", "public static void revArray(int [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n int temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }", "revArray", "{\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n int temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }", "int n =arr.length;", "n", "arr.length", "arr", "arr.length", "for (int i = 0; i < n/2; i++) {\n int temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n/2", "i", "n/2", "n", "2", "i++", "i++", "i", "{\n int temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "{\n int temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "int temp=arr[i];", "temp", "arr[i]", "arr", "i", "arr[i]=arr[n-i-1]", "arr[i]", "arr", "i", "arr[n-i-1]", "arr", "n-i-1", "n-i-1", "n", "i", "1", "arr[n-i-1]=temp", "arr[n-i-1]", "arr", "n-i-1", "n-i-1", "n", "i", "1", "temp", "int [] arr", "arr", "public static void revArray(long [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }", "revArray", "{\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }", "int n =arr.length;", "n", "arr.length", "arr", "arr.length", "for (int i = 0; i < n/2; i++) {\n long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n/2", "i", "n/2", "n", "2", "i++", "i++", "i", "{\n long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "{\n long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "long temp=arr[i];", "temp", "arr[i]", "arr", "i", "arr[i]=arr[n-i-1]", "arr[i]", "arr", "i", "arr[n-i-1]", "arr", "n-i-1", "n-i-1", "n", "i", "1", "arr[n-i-1]=temp", "arr[n-i-1]", "arr", "n-i-1", "n-i-1", "n", "i", "1", "temp", "long [] arr", "arr", "public static void revArray(Long [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }", "revArray", "{\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }", "int n =arr.length;", "n", "arr.length", "arr", "arr.length", "for (int i = 0; i < n/2; i++) {\n Long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n/2", "i", "n/2", "n", "2", "i++", "i++", "i", "{\n Long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "{\n Long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "Long temp=arr[i];", "temp", "arr[i]", "arr", "i", "arr[i]=arr[n-i-1]", "arr[i]", "arr", "i", "arr[n-i-1]", "arr", "n-i-1", "n-i-1", "n", "i", "1", "arr[n-i-1]=temp", "arr[n-i-1]", "arr", "n-i-1", "n-i-1", "n", "i", "1", "temp", "Long [] arr", "arr", "public static void revArray(Integer [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Integer temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }", "revArray", "{\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Integer temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }", "int n =arr.length;", "n", "arr.length", "arr", "arr.length", "for (int i = 0; i < n/2; i++) {\n Integer temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n/2", "i", "n/2", "n", "2", "i++", "i++", "i", "{\n Integer temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "{\n Integer temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }", "Integer temp=arr[i];", "temp", "arr[i]", "arr", "i", "arr[i]=arr[n-i-1]", "arr[i]", "arr", "i", "arr[n-i-1]", "arr", "n-i-1", "n-i-1", "n", "i", "1", "arr[n-i-1]=temp", "arr[n-i-1]", "arr", "n-i-1", "n-i-1", "n", "i", "1", "temp", "Integer [] arr", "arr", "static void printArray(int[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }", "printArray", "{\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }", "int n = arr.length;", "n", "arr.length", "arr", "arr.length", "for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "System.out.print(arr[i] + \" \");", "System.out.print(arr[i] + \" \")", "System.out.print", "System.out", "System", "System.out", "arr[i] + \" \"", "arr[i]", "arr", "i", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] arr", "arr", "static void printArray(long[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }", "printArray", "{\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }", "int n = arr.length;", "n", "arr.length", "arr", "arr.length", "for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "System.out.print(arr[i] + \" \");", "System.out.print(arr[i] + \" \")", "System.out.print", "System.out", "System", "System.out", "arr[i] + \" \"", "arr[i]", "arr", "i", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "long[] arr", "arr", "static void printArray(Integer[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }", "printArray", "{\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }", "int n = arr.length;", "n", "arr.length", "arr", "arr.length", "for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "System.out.print(arr[i] + \" \");", "System.out.print(arr[i] + \" \")", "System.out.print", "System.out", "System", "System.out", "arr[i] + \" \"", "arr[i]", "arr", "i", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "Integer[] arr", "arr", "static void printArray(Long[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }", "printArray", "{\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }", "int n = arr.length;", "n", "arr.length", "arr", "arr.length", "for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "System.out.print(arr[i] + \" \");", "System.out.print(arr[i] + \" \")", "System.out.print", "System.out", "System", "System.out", "arr[i] + \" \"", "arr[i]", "arr", "i", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "Long[] arr", "arr", "static void yes(){\n System.out.println(\"YES\");\n }", "yes", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "static void no(){System.out.println(\"NO\");}", "no", "{System.out.println(\"NO\");}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "public static int lowerBound\n (Integer[] array, int length, int value) {\n // Returns the index of the value or\n // if there is no value, returns the closest to the left.\n int low=-1; // arr[low]<=tar\n int hi=length;//arr[hi]>tar\n while (low+1<hi){ // while pointers are not neighboring(low+1!=hi)\n int mid=(low+hi)/2;\n if(array[mid]<=value){\n low=mid;\n }\n else {\n hi=mid;\n }\n }\n return low;// if no such element, returns -1.\n }", "lowerBound", "{\n // Returns the index of the value or\n // if there is no value, returns the closest to the left.\n int low=-1; // arr[low]<=tar\n int hi=length;//arr[hi]>tar\n while (low+1<hi){ // while pointers are not neighboring(low+1!=hi)\n int mid=(low+hi)/2;\n if(array[mid]<=value){\n low=mid;\n }\n else {\n hi=mid;\n }\n }\n return low;// if no such element, returns -1.\n }", "int low=-1;", "low", "-1", "1", "int hi=length;", "hi", "length", "while (low+1<hi){ // while pointers are not neighboring(low+1!=hi)\n int mid=(low+hi)/2;\n if(array[mid]<=value){\n low=mid;\n }\n else {\n hi=mid;\n }\n }", "low+1<hi", "low+1", "low", "1", "hi", "{ // while pointers are not neighboring(low+1!=hi)\n int mid=(low+hi)/2;\n if(array[mid]<=value){\n low=mid;\n }\n else {\n hi=mid;\n }\n }", "int mid=(low+hi)/2;", "mid", "(low+hi)/2", "(low+hi)", "low", "hi", "2", "if(array[mid]<=value){\n low=mid;\n }\n else {\n hi=mid;\n }", "array[mid]<=value", "array[mid]", "array", "mid", "value", "{\n low=mid;\n }", "low=mid", "low", "mid", "{\n hi=mid;\n }", "hi=mid", "hi", "mid", "return low;// if no such element, returns -1.", "low", "Integer[] array", "array", "int length", "length", "int value", "value", "public static int upperBound(Integer[] array, int length, int value){\n // returns the index of the value or\n // if the value does not exist, returns the closest to the right\n int low=-1; // arr[low]<tar\n int hi=length;// arr[hi]>=tar\n while (low+1<hi){// Eventually, pointers should be adjacent.\n int mid=(low+hi)>>1;\n if(array[mid]>=value){\n hi=mid;\n }\n else low=mid;\n }\n return hi;\n }", "upperBound", "{\n // returns the index of the value or\n // if the value does not exist, returns the closest to the right\n int low=-1; // arr[low]<tar\n int hi=length;// arr[hi]>=tar\n while (low+1<hi){// Eventually, pointers should be adjacent.\n int mid=(low+hi)>>1;\n if(array[mid]>=value){\n hi=mid;\n }\n else low=mid;\n }\n return hi;\n }", "int low=-1;", "low", "-1", "1", "int hi=length;", "hi", "length", "while (low+1<hi){// Eventually, pointers should be adjacent.\n int mid=(low+hi)>>1;\n if(array[mid]>=value){\n hi=mid;\n }\n else low=mid;\n }", "low+1<hi", "low+1", "low", "1", "hi", "{// Eventually, pointers should be adjacent.\n int mid=(low+hi)>>1;\n if(array[mid]>=value){\n hi=mid;\n }\n else low=mid;\n }", "int mid=(low+hi)>>1;", "mid", "(low+hi)>>1", "(low+hi)", "low", "hi", "1", "if(array[mid]>=value){\n hi=mid;\n }\n else low=mid;", "array[mid]>=value", "array[mid]", "array", "mid", "value", "{\n hi=mid;\n }", "hi=mid", "hi", "mid", "low=mid", "low", "mid", "return hi;", "hi", "Integer[] array", "array", "int length", "length", "int value", "value", "public static int binarySearch(Integer [] arr, int length, int value){\n // returns the index of the targeted value or -1 if there is no value.\n int low=0;\n int hi=length-1;\n int ans=-1;\n while (low<=hi){\n int mid=(low+hi)>>1;\n if(arr[mid]>value){\n hi=mid-1;\n }\n else if(arr[mid]<value){\n low=mid+1;\n }\n else {\n ans=mid;\n break;\n }\n }\n return ans;\n }", "binarySearch", "{\n // returns the index of the targeted value or -1 if there is no value.\n int low=0;\n int hi=length-1;\n int ans=-1;\n while (low<=hi){\n int mid=(low+hi)>>1;\n if(arr[mid]>value){\n hi=mid-1;\n }\n else if(arr[mid]<value){\n low=mid+1;\n }\n else {\n ans=mid;\n break;\n }\n }\n return ans;\n }", "int low=0;", "low", "0", "int hi=length-1;", "hi", "length-1", "length", "1", "int ans=-1;", "ans", "-1", "1", "while (low<=hi){\n int mid=(low+hi)>>1;\n if(arr[mid]>value){\n hi=mid-1;\n }\n else if(arr[mid]<value){\n low=mid+1;\n }\n else {\n ans=mid;\n break;\n }\n }", "low<=hi", "low", "hi", "{\n int mid=(low+hi)>>1;\n if(arr[mid]>value){\n hi=mid-1;\n }\n else if(arr[mid]<value){\n low=mid+1;\n }\n else {\n ans=mid;\n break;\n }\n }", "int mid=(low+hi)>>1;", "mid", "(low+hi)>>1", "(low+hi)", "low", "hi", "1", "if(arr[mid]>value){\n hi=mid-1;\n }\n else if(arr[mid]<value){\n low=mid+1;\n }\n else {\n ans=mid;\n break;\n }", "arr[mid]>value", "arr[mid]", "arr", "mid", "value", "{\n hi=mid-1;\n }", "hi=mid-1", "hi", "mid-1", "mid", "1", "if(arr[mid]<value){\n low=mid+1;\n }\n else {\n ans=mid;\n break;\n }", "arr[mid]<value", "arr[mid]", "arr", "mid", "value", "{\n low=mid+1;\n }", "low=mid+1", "low", "mid+1", "mid", "1", "{\n ans=mid;\n break;\n }", "ans=mid", "ans", "mid", "break;", "return ans;", "ans", "Integer [] arr", "arr", "int length", "length", "int value", "value", "public static long gcd(long a, long b){\n if (b == 0)\n return a;\n else return gcd(b, a % b);\n }", "gcd", "{\n if (b == 0)\n return a;\n else return gcd(b, a % b);\n }", "if (b == 0)\n return a;\n else return gcd(b, a % b);", "b == 0", "b", "0", "return a;", "a", "return gcd(b, a % b);", "gcd(b, a % b)", "gcd", "b", "a % b", "a", "b", "long a", "a", "long b", "b", "public static long lcm(long a , long b){\n return a/gcd(a,b)*b;\n }", "lcm", "{\n return a/gcd(a,b)*b;\n }", "return a/gcd(a,b)*b;", "a/gcd(a,b)*b", "a/gcd(a,b)", "a", "gcd(a,b)", "gcd", "a", "b", "b", "long a", "a", "long b", "b", "public static long countDivs(long n ){\n int cn=0;\n long sqr = (long)Math.sqrt(n);\n for (long i = 1; i<=sqr ; ++i) {\n if(n%i==0){\n ++cn;\n }\n }\n cn*=2;\n if(sqr*sqr==n) cn--;\n return cn;\n\n }", "countDivs", "{\n int cn=0;\n long sqr = (long)Math.sqrt(n);\n for (long i = 1; i<=sqr ; ++i) {\n if(n%i==0){\n ++cn;\n }\n }\n cn*=2;\n if(sqr*sqr==n) cn--;\n return cn;\n\n }", "int cn=0;", "cn", "0", "long sqr = (long)Math.sqrt(n);", "sqr", "(long)Math.sqrt(n)", "Math.sqrt", "Math", "n", "for (long i = 1; i<=sqr ; ++i) {\n if(n%i==0){\n ++cn;\n }\n }", "long i = 1;", "long i = 1;", "i", "1", "i<=sqr", "i", "sqr", "++i", "++i", "i", "{\n if(n%i==0){\n ++cn;\n }\n }", "{\n if(n%i==0){\n ++cn;\n }\n }", "if(n%i==0){\n ++cn;\n }", "n%i==0", "n%i", "n", "i", "0", "{\n ++cn;\n }", "++cn", "cn", "cn*=2", "cn", "2", "if(sqr*sqr==n) cn--;", "sqr*sqr==n", "sqr*sqr", "sqr", "sqr", "n", "cn--", "cn", "return cn;", "cn", "long n", "n", "static void prime(int x) {\n //sieve algorithm. nlog(log(n)).\n prime=new Boolean[ (x+1)];\n Arrays.fill(prime,true);\n prime[0] = prime[1] = false;\n for (int i = 2; i * i <= x ; i++)\n if (prime[i])\n for (int j = i * i; j <= x; j += i)\n prime[j] = false;\n }", "prime", "{\n //sieve algorithm. nlog(log(n)).\n prime=new Boolean[ (x+1)];\n Arrays.fill(prime,true);\n prime[0] = prime[1] = false;\n for (int i = 2; i * i <= x ; i++)\n if (prime[i])\n for (int j = i * i; j <= x; j += i)\n prime[j] = false;\n }", "prime=new Boolean[ (x+1)]", "prime", "new Boolean[ (x+1)]", "(x+1)", "x", "1", "Arrays.fill(prime,true)", "Arrays.fill", "Arrays", "prime", "true", "prime[0] = prime[1] = false", "prime[0]", "prime", "0", "prime[1] = false", "prime[1]", "prime", "1", "false", "for (int i = 2; i * i <= x ; i++)\n if (prime[i])\n for (int j = i * i; j <= x; j += i)\n prime[j] = false;", "int i = 2;", "int i = 2;", "i", "2", "i * i <= x", "i * i", "i", "i", "x", "i++", "i++", "i", "if (prime[i])\n for (int j = i * i; j <= x; j += i)\n prime[j] = false;", "if (prime[i])\n for (int j = i * i; j <= x; j += i)\n prime[j] = false;", "prime[i]", "prime", "i", "for (int j = i * i; j <= x; j += i)\n prime[j] = false;", "int j = i * i;", "int j = i * i;", "j", "i * i", "i", "i", "j <= x", "j", "x", "j += i", "j += i", "j", "i", "prime[j] = false;", "prime[j] = false", "prime[j]", "prime", "j", "false", "int x", "x", "static void cumulitiveSum( int [] arr){\n sum = new int[arr.length];\n sum[0]=arr[0];\n for (int i = 1; i <arr.length; i++) {\n sum[i]=arr[i]+sum[i-1];\n }\n }", "cumulitiveSum", "{\n sum = new int[arr.length];\n sum[0]=arr[0];\n for (int i = 1; i <arr.length; i++) {\n sum[i]=arr[i]+sum[i-1];\n }\n }", "sum = new int[arr.length]", "sum", "new int[arr.length]", "arr.length", "arr", "arr.length", "sum[0]=arr[0]", "sum[0]", "sum", "0", "arr[0]", "arr", "0", "for (int i = 1; i <arr.length; i++) {\n sum[i]=arr[i]+sum[i-1];\n }", "int i = 1;", "int i = 1;", "i", "1", "i <arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n sum[i]=arr[i]+sum[i-1];\n }", "{\n sum[i]=arr[i]+sum[i-1];\n }", "sum[i]=arr[i]+sum[i-1]", "sum[i]", "sum", "i", "arr[i]+sum[i-1]", "arr[i]", "arr", "i", "sum[i-1]", "sum", "i-1", "i", "1", "int [] arr", "arr", "static boolean isEven(long x ){\n return x % 2 == 0;\n }", "isEven", "{\n return x % 2 == 0;\n }", "return x % 2 == 0;", "x % 2 == 0", "x % 2", "x", "2", "0", "long x", "x", "static boolean isPrime(long x ){\n boolean flag = true;\n int sqr = (int)Math.sqrt(x);\n if(x<2) return false;\n for (int i = 2; i <=sqr; i++) {\n if(x%i==0){\n flag=false;\n break;\n }\n }\n return flag;\n }", "isPrime", "{\n boolean flag = true;\n int sqr = (int)Math.sqrt(x);\n if(x<2) return false;\n for (int i = 2; i <=sqr; i++) {\n if(x%i==0){\n flag=false;\n break;\n }\n }\n return flag;\n }", "boolean flag = true;", "flag", "true", "int sqr = (int)Math.sqrt(x);", "sqr", "(int)Math.sqrt(x)", "Math.sqrt", "Math", "x", "if(x<2) return false;", "x<2", "x", "2", "return false;", "false", "for (int i = 2; i <=sqr; i++) {\n if(x%i==0){\n flag=false;\n break;\n }\n }", "int i = 2;", "int i = 2;", "i", "2", "i <=sqr", "i", "sqr", "i++", "i++", "i", "{\n if(x%i==0){\n flag=false;\n break;\n }\n }", "{\n if(x%i==0){\n flag=false;\n break;\n }\n }", "if(x%i==0){\n flag=false;\n break;\n }", "x%i==0", "x%i", "x", "i", "0", "{\n flag=false;\n break;\n }", "flag=false", "flag", "false", "break;", "return flag;", "flag", "long x", "x", "static long factorial( long x) {\n long total = 1;\n for (int i = 2; i <= x; i++)\n total *= i;\n return total;\n }", "factorial", "{\n long total = 1;\n for (int i = 2; i <= x; i++)\n total *= i;\n return total;\n }", "long total = 1;", "total", "1", "for (int i = 2; i <= x; i++)\n total *= i;", "int i = 2;", "int i = 2;", "i", "2", "i <= x", "i", "x", "i++", "i++", "i", "total *= i;", "total *= i", "total", "i", "return total;", "total", "long x", "x", "static long power(long x, long n) {\n if (n == 0) {\n return 1;\n }\n\n long pow = power(x, n / 2L);\n if ((n & 1) == 1) {\n return (x * (pow) * (pow));\n }\n\n return (pow * pow);\n }", "power", "{\n if (n == 0) {\n return 1;\n }\n\n long pow = power(x, n / 2L);\n if ((n & 1) == 1) {\n return (x * (pow) * (pow));\n }\n\n return (pow * pow);\n }", "if (n == 0) {\n return 1;\n }", "n == 0", "n", "0", "{\n return 1;\n }", "return 1;", "1", "long pow = power(x, n / 2L);", "pow", "power(x, n / 2L)", "power", "x", "n / 2L", "n", "2L", "if ((n & 1) == 1) {\n return (x * (pow) * (pow));\n }", "(n & 1) == 1", "(n & 1)", "n", "1", "1", "{\n return (x * (pow) * (pow));\n }", "return (x * (pow) * (pow));", "(x * (pow) * (pow))", "x * (pow) * (pow)", "x", "(pow)", "(pow)", "return (pow * pow);", "(pow * pow)", "pow", "pow", "long x", "x", "long n", "n", "static void decimalToRadix(){\n int num=sc.nextInt(),radix=sc.nextInt();\n StringBuilder s = new StringBuilder();\n while (num>0){\n int x=num%radix;\n if(x>9){\n s.append((char)('A'+x-10));\n }\n else s.append(x);\n num/=radix;\n }\n System.out.println(s.reverse());\n }", "decimalToRadix", "{\n int num=sc.nextInt(),radix=sc.nextInt();\n StringBuilder s = new StringBuilder();\n while (num>0){\n int x=num%radix;\n if(x>9){\n s.append((char)('A'+x-10));\n }\n else s.append(x);\n num/=radix;\n }\n System.out.println(s.reverse());\n }", "int num=sc.nextInt()", "num", "sc.nextInt()", "sc.nextInt", "sc", "radix=sc.nextInt();", "radix", "sc.nextInt()", "sc.nextInt", "sc", "StringBuilder s = new StringBuilder();", "s", "new StringBuilder()", "while (num>0){\n int x=num%radix;\n if(x>9){\n s.append((char)('A'+x-10));\n }\n else s.append(x);\n num/=radix;\n }", "num>0", "num", "0", "{\n int x=num%radix;\n if(x>9){\n s.append((char)('A'+x-10));\n }\n else s.append(x);\n num/=radix;\n }", "int x=num%radix;", "x", "num%radix", "num", "radix", "if(x>9){\n s.append((char)('A'+x-10));\n }\n else s.append(x);", "x>9", "x", "9", "{\n s.append((char)('A'+x-10));\n }", "s.append((char)('A'+x-10))", "s.append", "s", "(char)('A'+x-10)", "'A'+x", "'A'", "x", "10", "s.append(x)", "s.append", "s", "x", "num/=radix", "num", "radix", "System.out.println(s.reverse())", "System.out.println", "System.out", "System", "System.out", "s.reverse()", "s.reverse", "s", "static void radixToDecimal(){\n String num=sc.next();\n int radix=sc.nextInt();\n int n =num.length();\n long ans=0;\n for (int i = 0; i < n; i++) {\n int number =num.charAt(i)-'0';\n if(!(number>=0 && number<=9)){\n number+='0'+10-'A';\n }\n ans+=number*power(radix,n-1-i);\n }\n System.out.println(ans);\n }", "radixToDecimal", "{\n String num=sc.next();\n int radix=sc.nextInt();\n int n =num.length();\n long ans=0;\n for (int i = 0; i < n; i++) {\n int number =num.charAt(i)-'0';\n if(!(number>=0 && number<=9)){\n number+='0'+10-'A';\n }\n ans+=number*power(radix,n-1-i);\n }\n System.out.println(ans);\n }", "String num=sc.next();", "num", "sc.next()", "sc.next", "sc", "int radix=sc.nextInt();", "radix", "sc.nextInt()", "sc.nextInt", "sc", "int n =num.length();", "n", "num.length()", "num.length", "num", "long ans=0;", "ans", "0", "for (int i = 0; i < n; i++) {\n int number =num.charAt(i)-'0';\n if(!(number>=0 && number<=9)){\n number+='0'+10-'A';\n }\n ans+=number*power(radix,n-1-i);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int number =num.charAt(i)-'0';\n if(!(number>=0 && number<=9)){\n number+='0'+10-'A';\n }\n ans+=number*power(radix,n-1-i);\n }", "{\n int number =num.charAt(i)-'0';\n if(!(number>=0 && number<=9)){\n number+='0'+10-'A';\n }\n ans+=number*power(radix,n-1-i);\n }", "int number =num.charAt(i)-'0';", "number", "num.charAt(i)-'0'", "num.charAt(i)", "num.charAt", "num", "i", "'0'", "if(!(number>=0 && number<=9)){\n number+='0'+10-'A';\n }", "!(number>=0 && number<=9)", "(number>=0 && number<=9)", "number>=0", "number", "0", "number<=9", "number", "9", "{\n number+='0'+10-'A';\n }", "number+='0'+10-'A'", "number", "'0'+10-'A'", "'0'+10", "'0'", "10", "'A'", "ans+=number*power(radix,n-1-i)", "ans", "number*power(radix,n-1-i)", "number", "power(radix,n-1-i)", "power", "radix", "n-1-i", "n-1-i", "n", "1", "i", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "static void remAndNumber(){\n int number=sc.nextInt(),radix=sc.nextInt();\n while (number>0) {\n System.out.println(\"Remainder: \" + number%radix +\" Number: \" + number );\n number /= radix;\n }\n\n }", "remAndNumber", "{\n int number=sc.nextInt(),radix=sc.nextInt();\n while (number>0) {\n System.out.println(\"Remainder: \" + number%radix +\" Number: \" + number );\n number /= radix;\n }\n\n }", "int number=sc.nextInt()", "number", "sc.nextInt()", "sc.nextInt", "sc", "radix=sc.nextInt();", "radix", "sc.nextInt()", "sc.nextInt", "sc", "while (number>0) {\n System.out.println(\"Remainder: \" + number%radix +\" Number: \" + number );\n number /= radix;\n }", "number>0", "number", "0", "{\n System.out.println(\"Remainder: \" + number%radix +\" Number: \" + number );\n number /= radix;\n }", "System.out.println(\"Remainder: \" + number%radix +\" Number: \" + number )", "System.out.println", "System.out", "System", "System.out", "\"Remainder: \" + number%radix +\" Number: \" + number", "\" Number: \"", "\"Remainder: \" + number%radix +\" Number: \" + number", "\"Remainder: \"", "number%radix", "number", "radix", "\" Number: \"", "number", "number /= radix", "number", "radix", "static void dg (String ss){\n System.out.println(ANSI_RED + ss + ANSI_RESET);\n }", "dg", "{\n System.out.println(ANSI_RED + ss + ANSI_RESET);\n }", "System.out.println(ANSI_RED + ss + ANSI_RESET)", "System.out.println", "System.out", "System", "System.out", "ANSI_RED + ss + ANSI_RESET", "ANSI_RED + ss + ANSI_RESET", "ANSI_RED", "ss", "ANSI_RESET", "String ss", "ss", "public static void main(String [] args) {\n startTime = System.currentTimeMillis();\n // int T = sc.nextInt();while (T--!=0)\n {\n solve();\n }\n endTime = System.currentTimeMillis();\n long duration= endTime-startTime;\n //System.out.println(duration);\n }", "main", "{\n startTime = System.currentTimeMillis();\n // int T = sc.nextInt();while (T--!=0)\n {\n solve();\n }\n endTime = System.currentTimeMillis();\n long duration= endTime-startTime;\n //System.out.println(duration);\n }", "startTime = System.currentTimeMillis()", "startTime", "System.currentTimeMillis()", "System.currentTimeMillis", "System", "{\n solve();\n }", "solve()", "solve", "endTime = System.currentTimeMillis()", "endTime", "System.currentTimeMillis()", "System.currentTimeMillis", "System", "long duration= endTime-startTime;", "duration", "endTime-startTime", "endTime", "startTime", "String [] args", "args", "// dg(String.valueOf());\n public static void solve() {\n//////////////////////////////////////////////////////////////////////\n int n =sc.nextInt();\n int cn=0;\n for (int i = 0; i < n; i++) {\n int x=sc.nextInt(),y=sc.nextInt();\n if(x==y) {\n cn++;\n if(cn==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n else {\n cn=0;\n }\n }\n System.out.println(\"No\");\n ///////////////////////////////////////////////////////////////////////\n }", "solve", "{\n//////////////////////////////////////////////////////////////////////\n int n =sc.nextInt();\n int cn=0;\n for (int i = 0; i < n; i++) {\n int x=sc.nextInt(),y=sc.nextInt();\n if(x==y) {\n cn++;\n if(cn==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n else {\n cn=0;\n }\n }\n System.out.println(\"No\");\n ///////////////////////////////////////////////////////////////////////\n }", "int n =sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int cn=0;", "cn", "0", "for (int i = 0; i < n; i++) {\n int x=sc.nextInt(),y=sc.nextInt();\n if(x==y) {\n cn++;\n if(cn==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n else {\n cn=0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int x=sc.nextInt(),y=sc.nextInt();\n if(x==y) {\n cn++;\n if(cn==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n else {\n cn=0;\n }\n }", "{\n int x=sc.nextInt(),y=sc.nextInt();\n if(x==y) {\n cn++;\n if(cn==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n else {\n cn=0;\n }\n }", "int x=sc.nextInt()", "x", "sc.nextInt()", "sc.nextInt", "sc", "y=sc.nextInt();", "y", "sc.nextInt()", "sc.nextInt", "sc", "if(x==y) {\n cn++;\n if(cn==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n else {\n cn=0;\n }", "x==y", "x", "y", "{\n cn++;\n if(cn==3){\n System.out.println(\"Yes\");\n return;\n }\n }", "cn++", "cn", "if(cn==3){\n System.out.println(\"Yes\");\n return;\n }", "cn==3", "cn", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "{\n cn=0;\n }", "cn=0", "cn", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }", "FastReader", "{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }", "br = new BufferedReader(new\n InputStreamReader(System.in))", "br", "new BufferedReader(new\n InputStreamReader(System.in))", "String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }", "catch (IOException e)\n {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt()\n {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong()\n {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble()\n {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }", "catch (IOException e)\n {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n public static final String ANSI_RED = \"\\u001B[31m\";\n public static final String ANSI_RESET = \"\\u001B[0m\";\n static long startTime;\n static long endTime;\n static Boolean [] prime ;\n static int M=(int)1e9+7;\n static long MM=M*M;\n static int MAX=Integer.MAX_VALUE;\n static int MIN=Integer.MIN_VALUE;\n static int SIZE = (int)1e9*2;\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void revArray(int [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n int temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(long [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(Long [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(Integer [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Integer temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n static void printArray(int[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(long[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(Integer[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(Long[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void yes(){\n System.out.println(\"YES\");\n }\n static void no(){System.out.println(\"NO\");}\n public static int lowerBound\n (Integer[] array, int length, int value) {\n // Returns the index of the value or\n // if there is no value, returns the closest to the left.\n int low=-1; // arr[low]<=tar\n int hi=length;//arr[hi]>tar\n while (low+1<hi){ // while pointers are not neighboring(low+1!=hi)\n int mid=(low+hi)/2;\n if(array[mid]<=value){\n low=mid;\n }\n else {\n hi=mid;\n }\n }\n return low;// if no such element, returns -1.\n }\n public static int upperBound(Integer[] array, int length, int value){\n // returns the index of the value or\n // if the value does not exist, returns the closest to the right\n int low=-1; // arr[low]<tar\n int hi=length;// arr[hi]>=tar\n while (low+1<hi){// Eventually, pointers should be adjacent.\n int mid=(low+hi)>>1;\n if(array[mid]>=value){\n hi=mid;\n }\n else low=mid;\n }\n return hi;\n }\n public static int binarySearch(Integer [] arr, int length, int value){\n // returns the index of the targeted value or -1 if there is no value.\n int low=0;\n int hi=length-1;\n int ans=-1;\n while (low<=hi){\n int mid=(low+hi)>>1;\n if(arr[mid]>value){\n hi=mid-1;\n }\n else if(arr[mid]<value){\n low=mid+1;\n }\n else {\n ans=mid;\n break;\n }\n }\n return ans;\n }\n public static long gcd(long a, long b){\n if (b == 0)\n return a;\n else return gcd(b, a % b);\n }\n public static long lcm(long a , long b){\n return a/gcd(a,b)*b;\n }\n public static long countDivs(long n ){\n int cn=0;\n long sqr = (long)Math.sqrt(n);\n for (long i = 1; i<=sqr ; ++i) {\n if(n%i==0){\n ++cn;\n }\n }\n cn*=2;\n if(sqr*sqr==n) cn--;\n return cn;\n\n }\n static void prime(int x) {\n //sieve algorithm. nlog(log(n)).\n prime=new Boolean[ (x+1)];\n Arrays.fill(prime,true);\n prime[0] = prime[1] = false;\n for (int i = 2; i * i <= x ; i++)\n if (prime[i])\n for (int j = i * i; j <= x; j += i)\n prime[j] = false;\n }\n static int[] sum;\n static void cumulitiveSum( int [] arr){\n sum = new int[arr.length];\n sum[0]=arr[0];\n for (int i = 1; i <arr.length; i++) {\n sum[i]=arr[i]+sum[i-1];\n }\n }\n static boolean isEven(long x ){\n return x % 2 == 0;\n }\n static boolean isPrime(long x ){\n boolean flag = true;\n int sqr = (int)Math.sqrt(x);\n if(x<2) return false;\n for (int i = 2; i <=sqr; i++) {\n if(x%i==0){\n flag=false;\n break;\n }\n }\n return flag;\n }\n static long factorial( long x) {\n long total = 1;\n for (int i = 2; i <= x; i++)\n total *= i;\n return total;\n }\n static long power(long x, long n) {\n if (n == 0) {\n return 1;\n }\n\n long pow = power(x, n / 2L);\n if ((n & 1) == 1) {\n return (x * (pow) * (pow));\n }\n\n return (pow * pow);\n }\n static void decimalToRadix(){\n int num=sc.nextInt(),radix=sc.nextInt();\n StringBuilder s = new StringBuilder();\n while (num>0){\n int x=num%radix;\n if(x>9){\n s.append((char)('A'+x-10));\n }\n else s.append(x);\n num/=radix;\n }\n System.out.println(s.reverse());\n }\n static void radixToDecimal(){\n String num=sc.next();\n int radix=sc.nextInt();\n int n =num.length();\n long ans=0;\n for (int i = 0; i < n; i++) {\n int number =num.charAt(i)-'0';\n if(!(number>=0 && number<=9)){\n number+='0'+10-'A';\n }\n ans+=number*power(radix,n-1-i);\n }\n System.out.println(ans);\n }\n static void remAndNumber(){\n int number=sc.nextInt(),radix=sc.nextInt();\n while (number>0) {\n System.out.println(\"Remainder: \" + number%radix +\" Number: \" + number );\n number /= radix;\n }\n\n }\n\n static void dg (String ss){\n System.out.println(ANSI_RED + ss + ANSI_RESET);\n }\n public static void main(String [] args) {\n startTime = System.currentTimeMillis();\n // int T = sc.nextInt();while (T--!=0)\n {\n solve();\n }\n endTime = System.currentTimeMillis();\n long duration= endTime-startTime;\n //System.out.println(duration);\n }\n\n // static Scanner sc = new Scanner(System.in);\n static FastReader sc = new FastReader();\n // dg(String.valueOf());\n public static void solve() {\n//////////////////////////////////////////////////////////////////////\n int n =sc.nextInt();\n int cn=0;\n for (int i = 0; i < n; i++) {\n int x=sc.nextInt(),y=sc.nextInt();\n if(x==y) {\n cn++;\n if(cn==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n else {\n cn=0;\n }\n }\n System.out.println(\"No\");\n ///////////////////////////////////////////////////////////////////////\n }\n\n}", "public class Main {\n public static final String ANSI_RED = \"\\u001B[31m\";\n public static final String ANSI_RESET = \"\\u001B[0m\";\n static long startTime;\n static long endTime;\n static Boolean [] prime ;\n static int M=(int)1e9+7;\n static long MM=M*M;\n static int MAX=Integer.MAX_VALUE;\n static int MIN=Integer.MIN_VALUE;\n static int SIZE = (int)1e9*2;\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void revArray(int [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n int temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(long [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(Long [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Long temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n public static void revArray(Integer [] arr){\n int n =arr.length;\n for (int i = 0; i < n/2; i++) {\n Integer temp=arr[i];\n arr[i]=arr[n-i-1];\n arr[n-i-1]=temp;\n }\n }\n static void printArray(int[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(long[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(Integer[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void printArray(Long[] arr)\n {\n int n = arr.length;\n for (int i = 0; i < n; ++i)\n System.out.print(arr[i] + \" \");\n System.out.println();\n }\n static void yes(){\n System.out.println(\"YES\");\n }\n static void no(){System.out.println(\"NO\");}\n public static int lowerBound\n (Integer[] array, int length, int value) {\n // Returns the index of the value or\n // if there is no value, returns the closest to the left.\n int low=-1; // arr[low]<=tar\n int hi=length;//arr[hi]>tar\n while (low+1<hi){ // while pointers are not neighboring(low+1!=hi)\n int mid=(low+hi)/2;\n if(array[mid]<=value){\n low=mid;\n }\n else {\n hi=mid;\n }\n }\n return low;// if no such element, returns -1.\n }\n public static int upperBound(Integer[] array, int length, int value){\n // returns the index of the value or\n // if the value does not exist, returns the closest to the right\n int low=-1; // arr[low]<tar\n int hi=length;// arr[hi]>=tar\n while (low+1<hi){// Eventually, pointers should be adjacent.\n int mid=(low+hi)>>1;\n if(array[mid]>=value){\n hi=mid;\n }\n else low=mid;\n }\n return hi;\n }\n public static int binarySearch(Integer [] arr, int length, int value){\n // returns the index of the targeted value or -1 if there is no value.\n int low=0;\n int hi=length-1;\n int ans=-1;\n while (low<=hi){\n int mid=(low+hi)>>1;\n if(arr[mid]>value){\n hi=mid-1;\n }\n else if(arr[mid]<value){\n low=mid+1;\n }\n else {\n ans=mid;\n break;\n }\n }\n return ans;\n }\n public static long gcd(long a, long b){\n if (b == 0)\n return a;\n else return gcd(b, a % b);\n }\n public static long lcm(long a , long b){\n return a/gcd(a,b)*b;\n }\n public static long countDivs(long n ){\n int cn=0;\n long sqr = (long)Math.sqrt(n);\n for (long i = 1; i<=sqr ; ++i) {\n if(n%i==0){\n ++cn;\n }\n }\n cn*=2;\n if(sqr*sqr==n) cn--;\n return cn;\n\n }\n static void prime(int x) {\n //sieve algorithm. nlog(log(n)).\n prime=new Boolean[ (x+1)];\n Arrays.fill(prime,true);\n prime[0] = prime[1] = false;\n for (int i = 2; i * i <= x ; i++)\n if (prime[i])\n for (int j = i * i; j <= x; j += i)\n prime[j] = false;\n }\n static int[] sum;\n static void cumulitiveSum( int [] arr){\n sum = new int[arr.length];\n sum[0]=arr[0];\n for (int i = 1; i <arr.length; i++) {\n sum[i]=arr[i]+sum[i-1];\n }\n }\n static boolean isEven(long x ){\n return x % 2 == 0;\n }\n static boolean isPrime(long x ){\n boolean flag = true;\n int sqr = (int)Math.sqrt(x);\n if(x<2) return false;\n for (int i = 2; i <=sqr; i++) {\n if(x%i==0){\n flag=false;\n break;\n }\n }\n return flag;\n }\n static long factorial( long x) {\n long total = 1;\n for (int i = 2; i <= x; i++)\n total *= i;\n return total;\n }\n static long power(long x, long n) {\n if (n == 0) {\n return 1;\n }\n\n long pow = power(x, n / 2L);\n if ((n & 1) == 1) {\n return (x * (pow) * (pow));\n }\n\n return (pow * pow);\n }\n static void decimalToRadix(){\n int num=sc.nextInt(),radix=sc.nextInt();\n StringBuilder s = new StringBuilder();\n while (num>0){\n int x=num%radix;\n if(x>9){\n s.append((char)('A'+x-10));\n }\n else s.append(x);\n num/=radix;\n }\n System.out.println(s.reverse());\n }\n static void radixToDecimal(){\n String num=sc.next();\n int radix=sc.nextInt();\n int n =num.length();\n long ans=0;\n for (int i = 0; i < n; i++) {\n int number =num.charAt(i)-'0';\n if(!(number>=0 && number<=9)){\n number+='0'+10-'A';\n }\n ans+=number*power(radix,n-1-i);\n }\n System.out.println(ans);\n }\n static void remAndNumber(){\n int number=sc.nextInt(),radix=sc.nextInt();\n while (number>0) {\n System.out.println(\"Remainder: \" + number%radix +\" Number: \" + number );\n number /= radix;\n }\n\n }\n\n static void dg (String ss){\n System.out.println(ANSI_RED + ss + ANSI_RESET);\n }\n public static void main(String [] args) {\n startTime = System.currentTimeMillis();\n // int T = sc.nextInt();while (T--!=0)\n {\n solve();\n }\n endTime = System.currentTimeMillis();\n long duration= endTime-startTime;\n //System.out.println(duration);\n }\n\n // static Scanner sc = new Scanner(System.in);\n static FastReader sc = new FastReader();\n // dg(String.valueOf());\n public static void solve() {\n//////////////////////////////////////////////////////////////////////\n int n =sc.nextInt();\n int cn=0;\n for (int i = 0; i < n; i++) {\n int x=sc.nextInt(),y=sc.nextInt();\n if(x==y) {\n cn++;\n if(cn==3){\n System.out.println(\"Yes\");\n return;\n }\n }\n else {\n cn=0;\n }\n }\n System.out.println(\"No\");\n ///////////////////////////////////////////////////////////////////////\n }\n\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static final String ANSI_RED = "\u001B[31m"; public static final String ANSI_RESET = "\u001B[0m"; static long startTime; static long endTime; static Boolean [] prime ; static int M=(int)1e9+7; static long MM=M*M; static int MAX=Integer.MAX_VALUE; static int MIN=Integer.MIN_VALUE; static int SIZE = (int)1e9*2; static class FastReader{ BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } public static void revArray(int [] arr){ int n =arr.length; for (int i = 0; i < n/2; i++) { int temp=arr[i]; arr[i]=arr[n-i-1]; arr[n-i-1]=temp; } } public static void revArray(long [] arr){ int n =arr.length; for (int i = 0; i < n/2; i++) { long temp=arr[i]; arr[i]=arr[n-i-1]; arr[n-i-1]=temp; } } public static void revArray(Long [] arr){ int n =arr.length; for (int i = 0; i < n/2; i++) { Long temp=arr[i]; arr[i]=arr[n-i-1]; arr[n-i-1]=temp; } } public static void revArray(Integer [] arr){ int n =arr.length; for (int i = 0; i < n/2; i++) { Integer temp=arr[i]; arr[i]=arr[n-i-1]; arr[n-i-1]=temp; } } static void printArray(int[] arr) { int n = arr.length; for (int i = 0; i < n; ++i) System.out.print(arr[i] + " "); System.out.println(); } static void printArray(long[] arr) { int n = arr.length; for (int i = 0; i < n; ++i) System.out.print(arr[i] + " "); System.out.println(); } static void printArray(Integer[] arr) { int n = arr.length; for (int i = 0; i < n; ++i) System.out.print(arr[i] + " "); System.out.println(); } static void printArray(Long[] arr) { int n = arr.length; for (int i = 0; i < n; ++i) System.out.print(arr[i] + " "); System.out.println(); } static void yes(){ System.out.println("YES"); } static void no(){System.out.println("NO");} public static int lowerBound (Integer[] array, int length, int value) { // Returns the index of the value or // if there is no value, returns the closest to the left. int low=-1; // arr[low]<=tar int hi=length;//arr[hi]>tar while (low+1<hi){ // while pointers are not neighboring(low+1!=hi) int mid=(low+hi)/2; if(array[mid]<=value){ low=mid; } else { hi=mid; } } return low;// if no such element, returns -1. } public static int upperBound(Integer[] array, int length, int value){ // returns the index of the value or // if the value does not exist, returns the closest to the right int low=-1; // arr[low]<tar int hi=length;// arr[hi]>=tar while (low+1<hi){// Eventually, pointers should be adjacent. int mid=(low+hi)>>1; if(array[mid]>=value){ hi=mid; } else low=mid; } return hi; } public static int binarySearch(Integer [] arr, int length, int value){ // returns the index of the targeted value or -1 if there is no value. int low=0; int hi=length-1; int ans=-1; while (low<=hi){ int mid=(low+hi)>>1; if(arr[mid]>value){ hi=mid-1; } else if(arr[mid]<value){ low=mid+1; } else { ans=mid; break; } } return ans; } public static long gcd(long a, long b){ if (b == 0) return a; else return gcd(b, a % b); } public static long lcm(long a , long b){ return a/gcd(a,b)*b; } public static long countDivs(long n ){ int cn=0; long sqr = (long)Math.sqrt(n); for (long i = 1; i<=sqr ; ++i) { if(n%i==0){ ++cn; } } cn*=2; if(sqr*sqr==n) cn--; return cn; } static void prime(int x) { //sieve algorithm. nlog(log(n)). prime=new Boolean[ (x+1)]; Arrays.fill(prime,true); prime[0] = prime[1] = false; for (int i = 2; i * i <= x ; i++) if (prime[i]) for (int j = i * i; j <= x; j += i) prime[j] = false; } static int[] sum; static void cumulitiveSum( int [] arr){ sum = new int[arr.length]; sum[0]=arr[0]; for (int i = 1; i <arr.length; i++) { sum[i]=arr[i]+sum[i-1]; } } static boolean isEven(long x ){ return x % 2 == 0; } static boolean isPrime(long x ){ boolean flag = true; int sqr = (int)Math.sqrt(x); if(x<2) return false; for (int i = 2; i <=sqr; i++) { if(x%i==0){ flag=false; break; } } return flag; } static long factorial( long x) { long total = 1; for (int i = 2; i <= x; i++) total *= i; return total; } static long power(long x, long n) { if (n == 0) { return 1; } long pow = power(x, n / 2L); if ((n & 1) == 1) { return (x * (pow) * (pow)); } return (pow * pow); } static void decimalToRadix(){ int num=sc.nextInt(),radix=sc.nextInt(); StringBuilder s = new StringBuilder(); while (num>0){ int x=num%radix; if(x>9){ s.append((char)('A'+x-10)); } else s.append(x); num/=radix; } System.out.println(s.reverse()); } static void radixToDecimal(){ String num=sc.next(); int radix=sc.nextInt(); int n =num.length(); long ans=0; for (int i = 0; i < n; i++) { int number =num.charAt(i)-'0'; if(!(number>=0 && number<=9)){ number+='0'+10-'A'; } ans+=number*power(radix,n-1-i); } System.out.println(ans); } static void remAndNumber(){ int number=sc.nextInt(),radix=sc.nextInt(); while (number>0) { System.out.println("Remainder: " + number%radix +" Number: " + number ); number /= radix; } } static void dg (String ss){ System.out.println(ANSI_RED + ss + ANSI_RESET); } public static void main(String [] args) { startTime = System.currentTimeMillis(); // int T = sc.nextInt();while (T--!=0) { solve(); } endTime = System.currentTimeMillis(); long duration= endTime-startTime; //System.out.println(duration); } // static Scanner sc = new Scanner(System.in); static FastReader sc = new FastReader(); // dg(String.valueOf()); public static void solve() { ////////////////////////////////////////////////////////////////////// int n =sc.nextInt(); int cn=0; for (int i = 0; i < n; i++) { int x=sc.nextInt(),y=sc.nextInt(); if(x==y) { cn++; if(cn==3){ System.out.println("Yes"); return; } } else { cn=0; } } System.out.println("No"); /////////////////////////////////////////////////////////////////////// } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 28, 13, 13, 30, 30, 14, 2, 18, 13, 17, 18, 13, 17, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 30, 0, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 8, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 63, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 83, 90 ], [ 68, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int input = scanner.nextInt();\n int[][] nums = new int[input][2];\n for (int i = 0; i < input; i++) {\n for (int j = 0; j < 2; j++) {\n nums[i][j] = scanner.nextInt();\n }\n }\n\n scanner.close();\n\n int count = 0;\n for(int[] a:nums){\n if(a[0]== a[1]){\n count++;\n if(count ==3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n\n System.out.println(\"No\");\n\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int input = scanner.nextInt();\n int[][] nums = new int[input][2];\n for (int i = 0; i < input; i++) {\n for (int j = 0; j < 2; j++) {\n nums[i][j] = scanner.nextInt();\n }\n }\n\n scanner.close();\n\n int count = 0;\n for(int[] a:nums){\n if(a[0]== a[1]){\n count++;\n if(count ==3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n\n System.out.println(\"No\");\n\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int input = scanner.nextInt();\n int[][] nums = new int[input][2];\n for (int i = 0; i < input; i++) {\n for (int j = 0; j < 2; j++) {\n nums[i][j] = scanner.nextInt();\n }\n }\n\n scanner.close();\n\n int count = 0;\n for(int[] a:nums){\n if(a[0]== a[1]){\n count++;\n if(count ==3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n\n System.out.println(\"No\");\n\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int input = scanner.nextInt();\n int[][] nums = new int[input][2];\n for (int i = 0; i < input; i++) {\n for (int j = 0; j < 2; j++) {\n nums[i][j] = scanner.nextInt();\n }\n }\n\n scanner.close();\n\n int count = 0;\n for(int[] a:nums){\n if(a[0]== a[1]){\n count++;\n if(count ==3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n\n System.out.println(\"No\");\n\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int input = scanner.nextInt();", "input", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[][] nums = new int[input][2];", "nums", "new int[input][2]", "input", "2", "for (int i = 0; i < input; i++) {\n for (int j = 0; j < 2; j++) {\n nums[i][j] = scanner.nextInt();\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < input", "i", "input", "i++", "i++", "i", "{\n for (int j = 0; j < 2; j++) {\n nums[i][j] = scanner.nextInt();\n }\n }", "{\n for (int j = 0; j < 2; j++) {\n nums[i][j] = scanner.nextInt();\n }\n }", "for (int j = 0; j < 2; j++) {\n nums[i][j] = scanner.nextInt();\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 2", "j", "2", "j++", "j++", "j", "{\n nums[i][j] = scanner.nextInt();\n }", "{\n nums[i][j] = scanner.nextInt();\n }", "nums[i][j] = scanner.nextInt()", "nums[i][j]", "nums[i]", "nums", "i", "j", "scanner.nextInt()", "scanner.nextInt", "scanner", "scanner.close()", "scanner.close", "scanner", "int count = 0;", "count", "0", "for(int[] a:nums){\n if(a[0]== a[1]){\n count++;\n if(count ==3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }", "int[] a", "nums", "{\n if(a[0]== a[1]){\n count++;\n if(count ==3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }", "{\n if(a[0]== a[1]){\n count++;\n if(count ==3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }", "if(a[0]== a[1]){\n count++;\n if(count ==3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }", "a[0]== a[1]", "a[0]", "a", "0", "a[1]", "a", "1", "{\n count++;\n if(count ==3){\n System.out.println(\"Yes\");\n return;\n }\n }", "count++", "count", "if(count ==3){\n System.out.println(\"Yes\");\n return;\n }", "count ==3", "count", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "{\n count = 0;\n }", "count = 0", "count", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int input = scanner.nextInt();\n int[][] nums = new int[input][2];\n for (int i = 0; i < input; i++) {\n for (int j = 0; j < 2; j++) {\n nums[i][j] = scanner.nextInt();\n }\n }\n\n scanner.close();\n\n int count = 0;\n for(int[] a:nums){\n if(a[0]== a[1]){\n count++;\n if(count ==3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n\n System.out.println(\"No\");\n\n }\n\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int input = scanner.nextInt();\n int[][] nums = new int[input][2];\n for (int i = 0; i < input; i++) {\n for (int j = 0; j < 2; j++) {\n nums[i][j] = scanner.nextInt();\n }\n }\n\n scanner.close();\n\n int count = 0;\n for(int[] a:nums){\n if(a[0]== a[1]){\n count++;\n if(count ==3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n\n System.out.println(\"No\");\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 input = scanner.nextInt(); int[][] nums = new int[input][2]; for (int i = 0; i < input; i++) { for (int j = 0; j < 2; j++) { nums[i][j] = scanner.nextInt(); } } scanner.close(); int count = 0; for(int[] a:nums){ if(a[0]== a[1]){ count++; if(count ==3){ System.out.println("Yes"); return; } }else{ count = 0; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 167, 14 ], [ 167, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 63, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 52, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 17, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 15, 84 ], [ 84, 85 ], [ 167, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 97, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 103, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 96, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 86, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 86, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 139, 141 ], [ 134, 142 ], [ 142, 143 ], [ 143, 144 ], [ 134, 145 ], [ 146, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 129, 153 ], [ 153, 154 ], [ 127, 155 ], [ 155, 156 ], [ 86, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 164, 165 ], [ 0, 166 ], [ 166, 167 ], [ 166, 168 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic final class Main {\n\n\tpublic static void main(String[] args) {\n\t\tfinal FastScanner fs = new FastScanner();\n\t\tfinal int time = fs.nextInt();\n\t\tint sameTime = 0;\n\n\t\tfor (int i = 0; i < time; i++) {\n\t\t\tint a = fs.nextInt();\n\t\t\tint b = fs.nextInt();\n\t\t\t//System.out.println(\"a=\" + a + \"b=\" + b);\n\t\t\tif (a == b) {\n\t\t\t\tsameTime++;\n\t\t\t\tif (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tsameTime = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++) { a[i] = nextInt(); }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public final class Main {\n\n\tpublic static void main(String[] args) {\n\t\tfinal FastScanner fs = new FastScanner();\n\t\tfinal int time = fs.nextInt();\n\t\tint sameTime = 0;\n\n\t\tfor (int i = 0; i < time; i++) {\n\t\t\tint a = fs.nextInt();\n\t\t\tint b = fs.nextInt();\n\t\t\t//System.out.println(\"a=\" + a + \"b=\" + b);\n\t\t\tif (a == b) {\n\t\t\t\tsameTime++;\n\t\t\t\tif (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tsameTime = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++) { a[i] = nextInt(); }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "Main", "public static void main(String[] args) {\n\t\tfinal FastScanner fs = new FastScanner();\n\t\tfinal int time = fs.nextInt();\n\t\tint sameTime = 0;\n\n\t\tfor (int i = 0; i < time; i++) {\n\t\t\tint a = fs.nextInt();\n\t\t\tint b = fs.nextInt();\n\t\t\t//System.out.println(\"a=\" + a + \"b=\" + b);\n\t\t\tif (a == b) {\n\t\t\t\tsameTime++;\n\t\t\t\tif (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tsameTime = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}", "main", "{\n\t\tfinal FastScanner fs = new FastScanner();\n\t\tfinal int time = fs.nextInt();\n\t\tint sameTime = 0;\n\n\t\tfor (int i = 0; i < time; i++) {\n\t\t\tint a = fs.nextInt();\n\t\t\tint b = fs.nextInt();\n\t\t\t//System.out.println(\"a=\" + a + \"b=\" + b);\n\t\t\tif (a == b) {\n\t\t\t\tsameTime++;\n\t\t\t\tif (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tsameTime = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}", "final FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "final int time = fs.nextInt();", "time", "fs.nextInt()", "fs.nextInt", "fs", "int sameTime = 0;", "sameTime", "0", "for (int i = 0; i < time; i++) {\n\t\t\tint a = fs.nextInt();\n\t\t\tint b = fs.nextInt();\n\t\t\t//System.out.println(\"a=\" + a + \"b=\" + b);\n\t\t\tif (a == b) {\n\t\t\t\tsameTime++;\n\t\t\t\tif (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tsameTime = 0;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < time", "i", "time", "i++", "i++", "i", "{\n\t\t\tint a = fs.nextInt();\n\t\t\tint b = fs.nextInt();\n\t\t\t//System.out.println(\"a=\" + a + \"b=\" + b);\n\t\t\tif (a == b) {\n\t\t\t\tsameTime++;\n\t\t\t\tif (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tsameTime = 0;\n\t\t\t}\n\t\t}", "{\n\t\t\tint a = fs.nextInt();\n\t\t\tint b = fs.nextInt();\n\t\t\t//System.out.println(\"a=\" + a + \"b=\" + b);\n\t\t\tif (a == b) {\n\t\t\t\tsameTime++;\n\t\t\t\tif (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tsameTime = 0;\n\t\t\t}\n\t\t}", "int a = fs.nextInt();", "a", "fs.nextInt()", "fs.nextInt", "fs", "int b = fs.nextInt();", "b", "fs.nextInt()", "fs.nextInt", "fs", "if (a == b) {\n\t\t\t\tsameTime++;\n\t\t\t\tif (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tsameTime = 0;\n\t\t\t}", "a == b", "a", "b", "{\n\t\t\t\tsameTime++;\n\t\t\t\tif (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t}", "sameTime++", "sameTime", "if (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}", "sameTime >= 3", "sameTime", "3", "{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.exit(0)", "System.exit", "System", "0", "{\n\t\t\t\tsameTime = 0;\n\t\t\t}", "sameTime = 0", "sameTime", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++) { a[i] = nextInt(); }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }", "FastScanner", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st = new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }\n }", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }", "catch (IOException e) {\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }", "IOException e", "{\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "int[] readArray(int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++) { a[i] = nextInt(); }\n return a;\n }", "readArray", "{\n final int[] a = new int[n];\n for (int i = 0; i < n; i++) { a[i] = nextInt(); }\n return a;\n }", "final int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++) { a[i] = nextInt(); }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{ a[i] = nextInt(); }", "{ a[i] = nextInt(); }", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public final class Main {\n\n\tpublic static void main(String[] args) {\n\t\tfinal FastScanner fs = new FastScanner();\n\t\tfinal int time = fs.nextInt();\n\t\tint sameTime = 0;\n\n\t\tfor (int i = 0; i < time; i++) {\n\t\t\tint a = fs.nextInt();\n\t\t\tint b = fs.nextInt();\n\t\t\t//System.out.println(\"a=\" + a + \"b=\" + b);\n\t\t\tif (a == b) {\n\t\t\t\tsameTime++;\n\t\t\t\tif (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tsameTime = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++) { a[i] = nextInt(); }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "public final class Main {\n\n\tpublic static void main(String[] args) {\n\t\tfinal FastScanner fs = new FastScanner();\n\t\tfinal int time = fs.nextInt();\n\t\tint sameTime = 0;\n\n\t\tfor (int i = 0; i < time; i++) {\n\t\t\tint a = fs.nextInt();\n\t\t\tint b = fs.nextInt();\n\t\t\t//System.out.println(\"a=\" + a + \"b=\" + b);\n\t\t\tif (a == b) {\n\t\t\t\tsameTime++;\n\t\t\t\tif (sameTime >= 3) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tsameTime = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n //noinspection CallToPrintStackTrace\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++) { a[i] = nextInt(); }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public final class Main { public static void main(String[] args) { final FastScanner fs = new FastScanner(); final int time = fs.nextInt(); int sameTime = 0; for (int i = 0; i < time; i++) { int a = fs.nextInt(); int b = fs.nextInt(); //System.out.println("a=" + a + "b=" + b); if (a == b) { sameTime++; if (sameTime >= 3) { System.out.println("Yes"); System.exit(0); } } else { sameTime = 0; } } System.out.println("No"); } static class FastScanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); String next() { while (!st.hasMoreTokens()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { //noinspection CallToPrintStackTrace e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } int[] readArray(int n) { final int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = nextInt(); } return a; } long nextLong() { return Long.parseLong(next()); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 0, 13, 4, 13, 41, 13, 42, 40, 4, 13, 13, 30, 0, 13, 13, 0, 13, 4, 13, 29, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 18, 13, 13, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 6, 13, 12, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 349, 26 ], [ 349, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 29, 38 ], [ 38, 39 ], [ 38, 40 ], [ 29, 41 ], [ 41, 42 ], [ 41, 43 ], [ 29, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 67, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 56, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 29, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 86, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 27, 102 ], [ 102, 103 ], [ 349, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 104, 112 ], [ 112, 113 ], [ 104, 114 ], [ 114, 115 ], [ 104, 116 ], [ 116, 117 ], [ 104, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 118, 126 ], [ 126, 127 ], [ 104, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 131, 136 ], [ 136, 137 ], [ 130, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 146, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 155, 158 ], [ 142, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 164, 165 ], [ 130, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 104, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 173, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 173, 187 ], [ 187, 188 ], [ 187, 189 ], [ 173, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 190, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 196, 199 ], [ 195, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 173, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 104, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 210, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 210, 224 ], [ 224, 225 ], [ 210, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 226, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 231, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 210, 239 ], [ 239, 240 ], [ 104, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 246, 247 ], [ 243, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 248, 252 ], [ 252, 253 ], [ 252, 254 ], [ 254, 255 ], [ 243, 256 ], [ 256, 257 ], [ 256, 258 ], [ 243, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 259, 263 ], [ 263, 264 ], [ 264, 265 ], [ 264, 266 ], [ 266, 267 ], [ 263, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 243, 272 ], [ 272, 273 ], [ 272, 274 ], [ 243, 275 ], [ 275, 276 ], [ 276, 277 ], [ 277, 278 ], [ 277, 279 ], [ 275, 280 ], [ 280, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 282, 286 ], [ 286, 287 ], [ 286, 288 ], [ 281, 289 ], [ 289, 290 ], [ 280, 291 ], [ 291, 292 ], [ 291, 293 ], [ 280, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 296, 298 ], [ 280, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 243, 303 ], [ 303, 304 ], [ 304, 305 ], [ 304, 306 ], [ 104, 307 ], [ 307, 308 ], [ 307, 309 ], [ 309, 310 ], [ 310, 311 ], [ 311, 312 ], [ 311, 313 ], [ 310, 314 ], [ 314, 315 ], [ 315, 316 ], [ 316, 317 ], [ 315, 318 ], [ 309, 319 ], [ 319, 320 ], [ 323, 321 ], [ 333, 322 ], [ 330, 323 ], [ 323, 324 ], [ 324, 325 ], [ 324, 326 ], [ 323, 327 ], [ 327, 328 ], [ 327, 329 ], [ 330, 330 ], [ 330, 331 ], [ 330, 332 ], [ 333, 333 ], [ 333, 334 ], [ 333, 335 ], [ 323, 336 ], [ 336, 337 ], [ 336, 338 ], [ 338, 339 ], [ 307, 340 ], [ 340, 341 ], [ 104, 342 ], [ 342, 343 ], [ 342, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 0, 348 ], [ 348, 349 ], [ 348, 350 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.InputMismatchException;\nimport java.util.LinkedList;\nimport java.util.PriorityQueue;\nimport java.util.TreeSet;\n \n \n \npublic class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n\n int counter = 0;\n boolean clearchecker = false;\n for(int i = 0; i < n; i++){\n int num1 = sc.nextInt();\n int num2 = sc.nextInt();\n if(num1 == num2){\n counter++;\n }else{\n counter = 0;\n }\n if(counter >= 3){\n clearchecker = true;\n }\n } \n\n if(clearchecker){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }\n \n //ここからテンプレ\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n \n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n \n public char nextChar() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n char ret;\n do{\n ret = (char)c;\n c = next();\n }while(!isSpaceChar(c));\n return ret;\n }\n \n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.util.LinkedList;", "LinkedList", "java.util", "import java.util.PriorityQueue;", "PriorityQueue", "java.util", "import java.util.TreeSet;", "TreeSet", "java.util", "public class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n\n int counter = 0;\n boolean clearchecker = false;\n for(int i = 0; i < n; i++){\n int num1 = sc.nextInt();\n int num2 = sc.nextInt();\n if(num1 == num2){\n counter++;\n }else{\n counter = 0;\n }\n if(counter >= 3){\n clearchecker = true;\n }\n } \n\n if(clearchecker){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }\n \n //ここからテンプレ\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n \n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n \n public char nextChar() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n char ret;\n do{\n ret = (char)c;\n c = next();\n }while(!isSpaceChar(c));\n return ret;\n }\n \n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "Main", "public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n\n int counter = 0;\n boolean clearchecker = false;\n for(int i = 0; i < n; i++){\n int num1 = sc.nextInt();\n int num2 = sc.nextInt();\n if(num1 == num2){\n counter++;\n }else{\n counter = 0;\n }\n if(counter >= 3){\n clearchecker = true;\n }\n } \n\n if(clearchecker){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }", "main", "{\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n\n int counter = 0;\n boolean clearchecker = false;\n for(int i = 0; i < n; i++){\n int num1 = sc.nextInt();\n int num2 = sc.nextInt();\n if(num1 == num2){\n counter++;\n }else{\n counter = 0;\n }\n if(counter >= 3){\n clearchecker = true;\n }\n } \n\n if(clearchecker){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }", "InputReader sc = new InputReader(System.in);", "sc", "new InputReader(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int counter = 0;", "counter", "0", "boolean clearchecker = false;", "clearchecker", "false", "for(int i = 0; i < n; i++){\n int num1 = sc.nextInt();\n int num2 = sc.nextInt();\n if(num1 == num2){\n counter++;\n }else{\n counter = 0;\n }\n if(counter >= 3){\n clearchecker = true;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int num1 = sc.nextInt();\n int num2 = sc.nextInt();\n if(num1 == num2){\n counter++;\n }else{\n counter = 0;\n }\n if(counter >= 3){\n clearchecker = true;\n }\n }", "{\n int num1 = sc.nextInt();\n int num2 = sc.nextInt();\n if(num1 == num2){\n counter++;\n }else{\n counter = 0;\n }\n if(counter >= 3){\n clearchecker = true;\n }\n }", "int num1 = sc.nextInt();", "num1", "sc.nextInt()", "sc.nextInt", "sc", "int num2 = sc.nextInt();", "num2", "sc.nextInt()", "sc.nextInt", "sc", "if(num1 == num2){\n counter++;\n }else{\n counter = 0;\n }", "num1 == num2", "num1", "num2", "{\n counter++;\n }", "counter++", "counter", "{\n counter = 0;\n }", "counter = 0", "counter", "0", "if(counter >= 3){\n clearchecker = true;\n }", "counter >= 3", "counter", "3", "{\n clearchecker = true;\n }", "clearchecker = true", "clearchecker", "true", "if(clearchecker){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "clearchecker", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", " static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n \n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n \n public char nextChar() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n char ret;\n do{\n ret = (char)c;\n c = next();\n }while(!isSpaceChar(c));\n return ret;\n }\n \n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }", "InputReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private SpaceCharFilter filter;", "filter", "public InputReader(InputStream stream) {\n this.stream = stream;\n }", "InputReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }", "next", "{\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }", "if (numChars == -1)\n throw new InputMismatchException();", "numChars == -1", "numChars", "-1", "1", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0)\n return -1;", "numChars <= 0", "numChars", "0", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }", "nextStr", "{\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }", "int c = next();", "c", "next()", "next", "while(isSpaceChar(c)){c = next();}", "isSpaceChar(c)", "isSpaceChar", "c", "{c = next();}", "c = next()", "c", "next()", "next", "StringBuffer str = new StringBuffer();", "str", "new StringBuffer()", "do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n str.append((char)c);\n c = next();\n }", "str.append((char)c)", "str.append", "str", "(char)c", "c = next()", "c", "next()", "next", "return str.toString();", "str.toString()", "str.toString", "str", "public char nextChar() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n char ret;\n do{\n ret = (char)c;\n c = next();\n }while(!isSpaceChar(c));\n return ret;\n }", "nextChar", "{\n int c = next();\n while(isSpaceChar(c)){c = next();}\n char ret;\n do{\n ret = (char)c;\n c = next();\n }while(!isSpaceChar(c));\n return ret;\n }", "int c = next();", "c", "next()", "next", "while(isSpaceChar(c)){c = next();}", "isSpaceChar(c)", "isSpaceChar", "c", "{c = next();}", "c = next()", "c", "next()", "next", "char ret;", "ret", "do{\n ret = (char)c;\n c = next();\n }while(!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n ret = (char)c;\n c = next();\n }", "ret = (char)c", "ret", "(char)c", "c = next()", "c", "next()", "next", "return ret;", "ret", "public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "nextInt", "{\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = next();", "c", "next()", "next", "while (isSpaceChar(c))\n c = next();", "isSpaceChar(c)", "isSpaceChar", "c", "c = next()", "c", "next()", "next", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = next();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = next();\n }", "sgn = -1", "sgn", "-1", "1", "c = next()", "c", "next()", "next", "int res = 0;", "res", "0", "do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n }", "if (c < '0' || c > '9')\n throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = next()", "c", "next()", "next", "return res * sgn;", "res * sgn", "res", "sgn", "public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isSpaceChar", "{\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "if (filter != null)\n return filter.isSpaceChar(c);", "filter != null", "filter", "null", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "public class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n\n int counter = 0;\n boolean clearchecker = false;\n for(int i = 0; i < n; i++){\n int num1 = sc.nextInt();\n int num2 = sc.nextInt();\n if(num1 == num2){\n counter++;\n }else{\n counter = 0;\n }\n if(counter >= 3){\n clearchecker = true;\n }\n } \n\n if(clearchecker){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }\n \n //ここからテンプレ\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n \n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n \n public char nextChar() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n char ret;\n do{\n ret = (char)c;\n c = next();\n }while(!isSpaceChar(c));\n return ret;\n }\n \n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n \n int n = sc.nextInt();\n\n int counter = 0;\n boolean clearchecker = false;\n for(int i = 0; i < n; i++){\n int num1 = sc.nextInt();\n int num2 = sc.nextInt();\n if(num1 == num2){\n counter++;\n }else{\n counter = 0;\n }\n if(counter >= 3){\n clearchecker = true;\n }\n } \n\n if(clearchecker){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n \n }\n \n //ここからテンプレ\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n \n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n \n public int next() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n \n public String nextStr() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n StringBuffer str = new StringBuffer();\n do{\n str.append((char)c);\n c = next();\n }while(!isSpaceChar(c));\n return str.toString();\n }\n \n public char nextChar() {\n int c = next();\n while(isSpaceChar(c)){c = next();}\n char ret;\n do{\n ret = (char)c;\n c = next();\n }while(!isSpaceChar(c));\n return ret;\n }\n \n public int nextInt() {\n int c = next();\n while (isSpaceChar(c))\n c = next();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = next();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = next();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n \n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n \n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "Main" ]
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; import java.util.LinkedList; import java.util.PriorityQueue; import java.util.TreeSet; public class Main { public static void main(String[] args) { InputReader sc = new InputReader(System.in); int n = sc.nextInt(); int counter = 0; boolean clearchecker = false; for(int i = 0; i < n; i++){ int num1 = sc.nextInt(); int num2 = sc.nextInt(); if(num1 == num2){ counter++; }else{ counter = 0; } if(counter >= 3){ clearchecker = true; } } if(clearchecker){ System.out.println("Yes"); }else{ System.out.println("No"); } } //ここからテンプレ static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private SpaceCharFilter filter; public InputReader(InputStream stream) { this.stream = stream; } public int next() { if (numChars == -1) throw new InputMismatchException(); if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) return -1; } return buf[curChar++]; } public String nextStr() { int c = next(); while(isSpaceChar(c)){c = next();} StringBuffer str = new StringBuffer(); do{ str.append((char)c); c = next(); }while(!isSpaceChar(c)); return str.toString(); } public char nextChar() { int c = next(); while(isSpaceChar(c)){c = next();} char ret; do{ ret = (char)c; c = next(); }while(!isSpaceChar(c)); return ret; } public int nextInt() { int c = next(); while (isSpaceChar(c)) c = next(); int sgn = 1; if (c == '-') { sgn = -1; c = next(); } int res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = next(); } while (!isSpaceChar(c)); return res * sgn; } public boolean isSpaceChar(int c) { if (filter != null) return filter.isSpaceChar(c); return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 30, 41, 13, 20, 41, 13, 17, 0, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 0, 18, 18, 13, 13, 17, 4, 18, 13, 18, 13, 17, 0, 18, 18, 13, 13, 17, 4, 18, 13, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 17, 3, 14, 2, 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 ], [ 13, 14 ], [ 13, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 16, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 16, 31 ], [ 31, 32 ], [ 31, 33 ], [ 16, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 36, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 53, 58 ], [ 50, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 59, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 50, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 71, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 16, 83 ], [ 83, 84 ], [ 83, 85 ], [ 16, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 86, 98 ], [ 98, 99 ], [ 99, 100 ], [ 86, 101 ], [ 102, 102 ], [ 102, 103 ], [ 103, 104 ], [ 105, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 105, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 118, 124 ], [ 117, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 125, 131 ], [ 105, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 136, 138 ], [ 133, 139 ], [ 132, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 140, 146 ], [ 103, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 147, 154 ], [ 154, 155 ], [ 154, 156 ], [ 147, 157 ], [ 16, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 163, 168 ], [ 9, 169 ], [ 169, 170 ] ]
[ "import java.io.*;\nimport java.util.*;\nclass Main\n{\n\t public static void main (String[] args) throws IOException\n {\n try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int a=0;\n a=Integer.parseInt(br.readLine());\n \tint n[][]=new int[a][2];\n \tfor(int i=0;i<n.length;i++)\n \t{\n \t String c[]=br.readLine().split(\" \");\n n[i][0]=Integer.parseInt(c[0]);\n n[i][1]=Integer.parseInt(c[1]);\n \t}\n \tboolean b=false;\n \tfor(int i=0;i<n.length-2;i++)\n \t{\n \t\tif(n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1])\n \t\t{\n \t\t\tSystem.out.println(\"Yes\");\n \t\t\tb=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif(b==false)\n \t{\n \t\tSystem.out.println(\"No\");\n \t}\n \t}\n catch(Exception e){}\n}}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main\n{\n\t public static void main (String[] args) throws IOException\n {\n try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int a=0;\n a=Integer.parseInt(br.readLine());\n \tint n[][]=new int[a][2];\n \tfor(int i=0;i<n.length;i++)\n \t{\n \t String c[]=br.readLine().split(\" \");\n n[i][0]=Integer.parseInt(c[0]);\n n[i][1]=Integer.parseInt(c[1]);\n \t}\n \tboolean b=false;\n \tfor(int i=0;i<n.length-2;i++)\n \t{\n \t\tif(n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1])\n \t\t{\n \t\t\tSystem.out.println(\"Yes\");\n \t\t\tb=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif(b==false)\n \t{\n \t\tSystem.out.println(\"No\");\n \t}\n \t}\n catch(Exception e){}\n}}", "Main", "public static void main (String[] args) throws IOException\n {\n try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int a=0;\n a=Integer.parseInt(br.readLine());\n \tint n[][]=new int[a][2];\n \tfor(int i=0;i<n.length;i++)\n \t{\n \t String c[]=br.readLine().split(\" \");\n n[i][0]=Integer.parseInt(c[0]);\n n[i][1]=Integer.parseInt(c[1]);\n \t}\n \tboolean b=false;\n \tfor(int i=0;i<n.length-2;i++)\n \t{\n \t\tif(n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1])\n \t\t{\n \t\t\tSystem.out.println(\"Yes\");\n \t\t\tb=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif(b==false)\n \t{\n \t\tSystem.out.println(\"No\");\n \t}\n \t}\n catch(Exception e){}\n}", "main", "{\n try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int a=0;\n a=Integer.parseInt(br.readLine());\n \tint n[][]=new int[a][2];\n \tfor(int i=0;i<n.length;i++)\n \t{\n \t String c[]=br.readLine().split(\" \");\n n[i][0]=Integer.parseInt(c[0]);\n n[i][1]=Integer.parseInt(c[1]);\n \t}\n \tboolean b=false;\n \tfor(int i=0;i<n.length-2;i++)\n \t{\n \t\tif(n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1])\n \t\t{\n \t\t\tSystem.out.println(\"Yes\");\n \t\t\tb=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif(b==false)\n \t{\n \t\tSystem.out.println(\"No\");\n \t}\n \t}\n catch(Exception e){}\n}", "try{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int a=0;\n a=Integer.parseInt(br.readLine());\n \tint n[][]=new int[a][2];\n \tfor(int i=0;i<n.length;i++)\n \t{\n \t String c[]=br.readLine().split(\" \");\n n[i][0]=Integer.parseInt(c[0]);\n n[i][1]=Integer.parseInt(c[1]);\n \t}\n \tboolean b=false;\n \tfor(int i=0;i<n.length-2;i++)\n \t{\n \t\tif(n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1])\n \t\t{\n \t\t\tSystem.out.println(\"Yes\");\n \t\t\tb=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif(b==false)\n \t{\n \t\tSystem.out.println(\"No\");\n \t}\n \t}\n catch(Exception e){}", "catch(Exception e){}", "Exception e", "{}", "{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int a=0;\n a=Integer.parseInt(br.readLine());\n \tint n[][]=new int[a][2];\n \tfor(int i=0;i<n.length;i++)\n \t{\n \t String c[]=br.readLine().split(\" \");\n n[i][0]=Integer.parseInt(c[0]);\n n[i][1]=Integer.parseInt(c[1]);\n \t}\n \tboolean b=false;\n \tfor(int i=0;i<n.length-2;i++)\n \t{\n \t\tif(n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1])\n \t\t{\n \t\t\tSystem.out.println(\"Yes\");\n \t\t\tb=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif(b==false)\n \t{\n \t\tSystem.out.println(\"No\");\n \t}\n \t}", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int a=0;", "a", "0", "a=Integer.parseInt(br.readLine())", "a", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int n[][]=new int[a][2];", "n", "new int[a][2]", "a", "2", "for(int i=0;i<n.length;i++)\n \t{\n \t String c[]=br.readLine().split(\" \");\n n[i][0]=Integer.parseInt(c[0]);\n n[i][1]=Integer.parseInt(c[1]);\n \t}", "int i=0;", "int i=0;", "i", "0", "i<n.length", "i", "n.length", "n", "n.length", "i++", "i++", "i", "{\n \t String c[]=br.readLine().split(\" \");\n n[i][0]=Integer.parseInt(c[0]);\n n[i][1]=Integer.parseInt(c[1]);\n \t}", "{\n \t String c[]=br.readLine().split(\" \");\n n[i][0]=Integer.parseInt(c[0]);\n n[i][1]=Integer.parseInt(c[1]);\n \t}", "String c[]=br.readLine().split(\" \");", "c", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "n[i][0]=Integer.parseInt(c[0])", "n[i][0]", "n[i]", "n", "i", "0", "Integer.parseInt(c[0])", "Integer.parseInt", "Integer", "c[0]", "c", "0", "n[i][1]=Integer.parseInt(c[1])", "n[i][1]", "n[i]", "n", "i", "1", "Integer.parseInt(c[1])", "Integer.parseInt", "Integer", "c[1]", "c", "1", "boolean b=false;", "b", "false", "for(int i=0;i<n.length-2;i++)\n \t{\n \t\tif(n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1])\n \t\t{\n \t\t\tSystem.out.println(\"Yes\");\n \t\t\tb=true;\n \t\t\tbreak;\n \t\t}\n \t}", "int i=0;", "int i=0;", "i", "0", "i<n.length-2", "i", "n.length-2", "n.length", "n", "n.length", "2", "i++", "i++", "i", "{\n \t\tif(n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1])\n \t\t{\n \t\t\tSystem.out.println(\"Yes\");\n \t\t\tb=true;\n \t\t\tbreak;\n \t\t}\n \t}", "{\n \t\tif(n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1])\n \t\t{\n \t\t\tSystem.out.println(\"Yes\");\n \t\t\tb=true;\n \t\t\tbreak;\n \t\t}\n \t}", "if(n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1])\n \t\t{\n \t\t\tSystem.out.println(\"Yes\");\n \t\t\tb=true;\n \t\t\tbreak;\n \t\t}", "n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1]", "n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1]", "n[i][0]==n[i][1]", "n[i][0]", "n[i]", "n", "i", "0", "n[i][1]", "n[i]", "n", "i", "1", "n[i+1][0]==n[i+1][1]", "n[i+1][0]", "n[i+1]", "n", "i+1", "i", "1", "0", "n[i+1][1]", "n[i+1]", "n", "i+1", "i", "1", "1", "n[i+2][0]==n[i+2][1]", "n[i+2][0]", "n[i+2]", "n", "i+2", "i", "2", "0", "n[i+2][1]", "n[i+2]", "n", "i+2", "i", "2", "1", "{\n \t\t\tSystem.out.println(\"Yes\");\n \t\t\tb=true;\n \t\t\tbreak;\n \t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "b=true", "b", "true", "break;", "if(b==false)\n \t{\n \t\tSystem.out.println(\"No\");\n \t}", "b==false", "b", "false", "{\n \t\tSystem.out.println(\"No\");\n \t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.io.*; import java.util.*; class Main { public static void main (String[] args) throws IOException { try{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int a=0; a=Integer.parseInt(br.readLine()); int n[][]=new int[a][2]; for(int i=0;i<n.length;i++) { String c[]=br.readLine().split(" "); n[i][0]=Integer.parseInt(c[0]); n[i][1]=Integer.parseInt(c[1]); } boolean b=false; for(int i=0;i<n.length-2;i++) { if(n[i][0]==n[i][1]&&n[i+1][0]==n[i+1][1]&&n[i+2][0]==n[i+2][1]) { System.out.println("Yes"); b=true; break; } } if(b==false) { System.out.println("No"); } } catch(Exception e){} }}
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 41, 13, 17, 41, 13, 17, 28, 13, 13, 30, 30, 14, 2, 18, 13, 17, 18, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 98, 5 ], [ 98, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 8, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 59, 61 ], [ 59, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 64, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 63, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 6, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int[][] dice = new int[N][2];\n for(int i = 0; i < N; i++){\n dice[i][0] = scan.nextInt();\n dice[i][1] = scan.nextInt();\n }\n \n int count = 0;\n String judge = \"No\";\n for(int[] roll: dice){\n if(roll[0] != roll[1]){\n count = 0;\n } else {\n count += 1;\n }\n \n if(count == 3){\n judge = \"Yes\";\n break;\n }\n }\n \n System.out.println(judge);\t\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int[][] dice = new int[N][2];\n for(int i = 0; i < N; i++){\n dice[i][0] = scan.nextInt();\n dice[i][1] = scan.nextInt();\n }\n \n int count = 0;\n String judge = \"No\";\n for(int[] roll: dice){\n if(roll[0] != roll[1]){\n count = 0;\n } else {\n count += 1;\n }\n \n if(count == 3){\n judge = \"Yes\";\n break;\n }\n }\n \n System.out.println(judge);\t\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int[][] dice = new int[N][2];\n for(int i = 0; i < N; i++){\n dice[i][0] = scan.nextInt();\n dice[i][1] = scan.nextInt();\n }\n \n int count = 0;\n String judge = \"No\";\n for(int[] roll: dice){\n if(roll[0] != roll[1]){\n count = 0;\n } else {\n count += 1;\n }\n \n if(count == 3){\n judge = \"Yes\";\n break;\n }\n }\n \n System.out.println(judge);\t\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int[][] dice = new int[N][2];\n for(int i = 0; i < N; i++){\n dice[i][0] = scan.nextInt();\n dice[i][1] = scan.nextInt();\n }\n \n int count = 0;\n String judge = \"No\";\n for(int[] roll: dice){\n if(roll[0] != roll[1]){\n count = 0;\n } else {\n count += 1;\n }\n \n if(count == 3){\n judge = \"Yes\";\n break;\n }\n }\n \n System.out.println(judge);\t\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "int[][] dice = new int[N][2];", "dice", "new int[N][2]", "N", "2", "for(int i = 0; i < N; i++){\n dice[i][0] = scan.nextInt();\n dice[i][1] = scan.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n dice[i][0] = scan.nextInt();\n dice[i][1] = scan.nextInt();\n }", "{\n dice[i][0] = scan.nextInt();\n dice[i][1] = scan.nextInt();\n }", "dice[i][0] = scan.nextInt()", "dice[i][0]", "dice[i]", "dice", "i", "0", "scan.nextInt()", "scan.nextInt", "scan", "dice[i][1] = scan.nextInt()", "dice[i][1]", "dice[i]", "dice", "i", "1", "scan.nextInt()", "scan.nextInt", "scan", "int count = 0;", "count", "0", "String judge = \"No\";", "judge", "\"No\"", "for(int[] roll: dice){\n if(roll[0] != roll[1]){\n count = 0;\n } else {\n count += 1;\n }\n \n if(count == 3){\n judge = \"Yes\";\n break;\n }\n }", "int[] roll", "dice", "{\n if(roll[0] != roll[1]){\n count = 0;\n } else {\n count += 1;\n }\n \n if(count == 3){\n judge = \"Yes\";\n break;\n }\n }", "{\n if(roll[0] != roll[1]){\n count = 0;\n } else {\n count += 1;\n }\n \n if(count == 3){\n judge = \"Yes\";\n break;\n }\n }", "if(roll[0] != roll[1]){\n count = 0;\n } else {\n count += 1;\n }", "roll[0] != roll[1]", "roll[0]", "roll", "0", "roll[1]", "roll", "1", "{\n count = 0;\n }", "count = 0", "count", "0", "{\n count += 1;\n }", "count += 1", "count", "1", "if(count == 3){\n judge = \"Yes\";\n break;\n }", "count == 3", "count", "3", "{\n judge = \"Yes\";\n break;\n }", "judge = \"Yes\"", "judge", "\"Yes\"", "break;", "System.out.println(judge)", "System.out.println", "System.out", "System", "System.out", "judge", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int[][] dice = new int[N][2];\n for(int i = 0; i < N; i++){\n dice[i][0] = scan.nextInt();\n dice[i][1] = scan.nextInt();\n }\n \n int count = 0;\n String judge = \"No\";\n for(int[] roll: dice){\n if(roll[0] != roll[1]){\n count = 0;\n } else {\n count += 1;\n }\n \n if(count == 3){\n judge = \"Yes\";\n break;\n }\n }\n \n System.out.println(judge);\t\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n int[][] dice = new int[N][2];\n for(int i = 0; i < N; i++){\n dice[i][0] = scan.nextInt();\n dice[i][1] = scan.nextInt();\n }\n \n int count = 0;\n String judge = \"No\";\n for(int[] roll: dice){\n if(roll[0] != roll[1]){\n count = 0;\n } else {\n count += 1;\n }\n \n if(count == 3){\n judge = \"Yes\";\n break;\n }\n }\n \n System.out.println(judge);\t\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int[][] dice = new int[N][2]; for(int i = 0; i < N; i++){ dice[i][0] = scan.nextInt(); dice[i][1] = scan.nextInt(); } int count = 0; String judge = "No"; for(int[] roll: dice){ if(roll[0] != roll[1]){ count = 0; } else { count += 1; } if(count == 3){ judge = "Yes"; break; } } System.out.println(judge); } }
[ 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, 17, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 17, 41, 13, 41, 13, 17, 12, 13, 30, 29, 2, 17, 13, 23, 13, 12, 13, 30, 29, 2, 2, 17, 13, 17, 23, 13, 12, 13, 30, 29, 4, 18, 13, 2, 13, 17, 23, 13, 12, 13, 30, 14, 2, 13, 13, 0, 18, 13, 13, 18, 13, 13, 30, 4, 13, 4, 13, 13, 13, 2, 2, 13, 13, 17, 4, 13, 4, 13, 13, 2, 2, 2, 13, 13, 17, 17, 13, 41, 13, 18, 13, 4, 13, 13, 41, 13, 18, 13, 4, 13, 13, 14, 2, 13, 13, 0, 18, 13, 13, 13, 0, 18, 13, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 13, 17, 17, 2, 13, 17, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 2, 13, 13, 30, 29, 40, 17, 14, 2, 2, 13, 13, 2, 13, 13, 29, 18, 13, 13, 30, 41, 13, 4, 13, 4, 13, 13, 13, 2, 2, 13, 13, 17, 13, 13, 41, 13, 4, 13, 4, 13, 13, 2, 2, 2, 13, 13, 17, 17, 13, 13, 13, 14, 2, 13, 40, 17, 29, 13, 14, 2, 13, 40, 17, 29, 13, 29, 4, 18, 13, 13, 13, 23, 13, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 0, 18, 13, 13, 13, 0, 13, 17, 4, 13, 17, 17, 2, 13, 17, 13, 0, 18, 13, 13, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 42, 17, 30, 0, 13, 4, 13, 13, 14, 2, 13, 17, 3, 41, 13, 18, 13, 4, 13, 13, 41, 13, 18, 13, 4, 13, 13, 14, 2, 13, 13, 0, 18, 13, 13, 13, 0, 18, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 13, 29, 14, 2, 2, 13, 13, 2, 13, 2, 2, 13, 13, 17, 4, 13, 4, 13, 13, 13, 2, 2, 13, 13, 17, 13, 14, 2, 2, 2, 2, 2, 13, 13, 17, 17, 13, 2, 13, 13, 4, 13, 4, 13, 13, 2, 2, 2, 13, 13, 17, 17, 13, 13, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 4, 18, 13, 17, 17, 12, 13, 30, 41, 13, 4, 18, 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, 12, 13, 30, 41, 13, 4, 18, 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, 12, 13, 30, 41, 13, 17, 0, 13, 2, 13, 13, 42, 2, 13, 17, 30, 14, 2, 2, 13, 17, 17, 0, 13, 2, 2, 13, 13, 13, 0, 13, 2, 13, 17, 0, 13, 2, 2, 13, 13, 13, 29, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 13, 13, 2, 13, 17, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 14, 2, 13, 17, 29, 13, 14, 2, 13, 13, 29, 4, 13, 2, 13, 13, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 0, 13, 20, 41, 13, 20, 41, 13, 4, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 13, 0, 18, 13, 13, 2, 18, 13, 17, 18, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 40, 13, 30, 14, 2, 13, 17, 30, 0, 13, 17, 3, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 717, 23 ], [ 717, 24 ], [ 24, 25 ], [ 24, 26 ], [ 717, 27 ], [ 27, 28 ], [ 27, 29 ], [ 717, 31 ], [ 31, 32 ], [ 31, 33 ], [ 717, 35 ], [ 35, 36 ], [ 35, 37 ], [ 717, 38 ], [ 38, 39 ], [ 717, 40 ], [ 40, 41 ], [ 40, 42 ], [ 717, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 43, 50 ], [ 50, 51 ], [ 717, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 52, 61 ], [ 61, 62 ], [ 717, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 63, 73 ], [ 73, 74 ], [ 717, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 78, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 89, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 106, 112 ], [ 101, 113 ], [ 89, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 89, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 89, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 128, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 75, 142 ], [ 142, 143 ], [ 75, 144 ], [ 144, 145 ], [ 75, 146 ], [ 146, 147 ], [ 717, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 152, 155 ], [ 152, 156 ], [ 156, 157 ], [ 156, 158 ], [ 152, 159 ], [ 152, 160 ], [ 148, 161 ], [ 161, 162 ], [ 148, 163 ], [ 163, 164 ], [ 717, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 173, 175 ], [ 168, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 167, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 181, 185 ], [ 185, 186 ], [ 185, 187 ], [ 180, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 180, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 197, 199 ], [ 195, 200 ], [ 195, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 201, 205 ], [ 195, 206 ], [ 195, 207 ], [ 192, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 212, 214 ], [ 210, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 216, 220 ], [ 215, 221 ], [ 210, 222 ], [ 210, 223 ], [ 210, 224 ], [ 192, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 225, 230 ], [ 230, 231 ], [ 192, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 235, 236 ], [ 232, 237 ], [ 237, 238 ], [ 192, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 240, 243 ], [ 240, 244 ], [ 165, 245 ], [ 245, 246 ], [ 165, 247 ], [ 247, 248 ], [ 165, 249 ], [ 249, 250 ], [ 165, 251 ], [ 251, 252 ], [ 165, 253 ], [ 253, 254 ], [ 717, 255 ], [ 255, 256 ], [ 255, 257 ], [ 257, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 258, 262 ], [ 257, 263 ], [ 263, 264 ], [ 263, 265 ], [ 257, 266 ], [ 266, 267 ], [ 266, 268 ], [ 266, 269 ], [ 266, 270 ], [ 270, 271 ], [ 270, 272 ], [ 266, 273 ], [ 257, 274 ], [ 274, 275 ], [ 275, 276 ], [ 275, 277 ], [ 274, 278 ], [ 257, 279 ], [ 279, 280 ], [ 279, 281 ], [ 255, 282 ], [ 282, 283 ], [ 255, 284 ], [ 284, 285 ], [ 717, 286 ], [ 286, 287 ], [ 286, 288 ], [ 288, 289 ], [ 289, 290 ], [ 289, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 294, 296 ], [ 291, 297 ], [ 297, 298 ], [ 298, 299 ], [ 298, 300 ], [ 297, 301 ], [ 291, 302 ], [ 302, 303 ], [ 302, 304 ], [ 304, 305 ], [ 304, 306 ], [ 306, 307 ], [ 306, 308 ], [ 291, 309 ], [ 309, 310 ], [ 309, 311 ], [ 311, 312 ], [ 311, 313 ], [ 313, 314 ], [ 313, 315 ], [ 291, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 316, 320 ], [ 320, 321 ], [ 321, 322 ], [ 321, 323 ], [ 320, 324 ], [ 316, 325 ], [ 325, 326 ], [ 326, 327 ], [ 326, 328 ], [ 325, 329 ], [ 286, 330 ], [ 330, 331 ], [ 717, 332 ], [ 332, 333 ], [ 332, 334 ], [ 334, 335 ], [ 335, 336 ], [ 336, 337 ], [ 337, 338 ], [ 337, 339 ], [ 336, 340 ], [ 340, 341 ], [ 340, 342 ], [ 335, 343 ], [ 343, 344 ], [ 344, 345 ], [ 344, 346 ], [ 343, 347 ], [ 335, 348 ], [ 348, 349 ], [ 349, 350 ], [ 350, 351 ], [ 350, 352 ], [ 349, 353 ], [ 353, 354 ], [ 353, 355 ], [ 355, 356 ], [ 356, 357 ], [ 356, 358 ], [ 355, 359 ], [ 348, 360 ], [ 360, 361 ], [ 360, 362 ], [ 362, 363 ], [ 362, 364 ], [ 360, 365 ], [ 360, 366 ], [ 366, 367 ], [ 367, 368 ], [ 367, 369 ], [ 366, 370 ], [ 360, 371 ], [ 348, 372 ], [ 372, 373 ], [ 373, 374 ], [ 374, 375 ], [ 375, 376 ], [ 376, 377 ], [ 377, 378 ], [ 377, 379 ], [ 376, 380 ], [ 375, 381 ], [ 374, 382 ], [ 373, 383 ], [ 383, 384 ], [ 383, 385 ], [ 372, 386 ], [ 386, 387 ], [ 386, 388 ], [ 388, 389 ], [ 388, 390 ], [ 386, 391 ], [ 391, 392 ], [ 392, 393 ], [ 393, 394 ], [ 393, 395 ], [ 392, 396 ], [ 391, 397 ], [ 386, 398 ], [ 386, 399 ], [ 332, 400 ], [ 400, 401 ], [ 332, 402 ], [ 402, 403 ], [ 332, 404 ], [ 404, 405 ], [ 332, 406 ], [ 406, 407 ], [ 717, 408 ], [ 408, 409 ], [ 408, 410 ], [ 410, 411 ], [ 411, 412 ], [ 412, 413 ], [ 413, 414 ], [ 412, 415 ], [ 415, 416 ], [ 416, 417 ], [ 417, 418 ], [ 418, 419 ], [ 415, 420 ], [ 415, 421 ], [ 717, 422 ], [ 422, 423 ], [ 422, 424 ], [ 424, 425 ], [ 425, 426 ], [ 425, 427 ], [ 427, 428 ], [ 428, 429 ], [ 429, 430 ], [ 430, 431 ], [ 427, 432 ], [ 424, 433 ], [ 433, 434 ], [ 433, 435 ], [ 436, 437 ], [ 436, 438 ], [ 424, 439 ], [ 439, 440 ], [ 440, 441 ], [ 441, 442 ], [ 441, 443 ], [ 439, 444 ], [ 444, 445 ], [ 444, 446 ], [ 446, 447 ], [ 446, 448 ], [ 439, 449 ], [ 449, 450 ], [ 450, 451 ], [ 439, 452 ], [ 453, 453 ], [ 453, 454 ], [ 454, 455 ], [ 455, 456 ], [ 455, 457 ], [ 454, 458 ], [ 458, 459 ], [ 459, 460 ], [ 458, 461 ], [ 461, 462 ], [ 461, 463 ], [ 424, 464 ], [ 464, 465 ], [ 717, 466 ], [ 466, 467 ], [ 466, 468 ], [ 468, 469 ], [ 469, 470 ], [ 469, 471 ], [ 471, 472 ], [ 472, 473 ], [ 473, 474 ], [ 474, 475 ], [ 471, 476 ], [ 468, 477 ], [ 477, 478 ], [ 477, 479 ], [ 480, 481 ], [ 480, 482 ], [ 468, 483 ], [ 483, 484 ], [ 484, 485 ], [ 485, 486 ], [ 485, 487 ], [ 483, 488 ], [ 488, 489 ], [ 488, 490 ], [ 490, 491 ], [ 490, 492 ], [ 483, 493 ], [ 493, 494 ], [ 494, 495 ], [ 483, 496 ], [ 497, 497 ], [ 497, 498 ], [ 498, 499 ], [ 499, 500 ], [ 499, 501 ], [ 498, 502 ], [ 502, 503 ], [ 503, 504 ], [ 502, 505 ], [ 505, 506 ], [ 505, 507 ], [ 468, 508 ], [ 508, 509 ], [ 717, 510 ], [ 510, 511 ], [ 510, 512 ], [ 512, 513 ], [ 513, 514 ], [ 513, 515 ], [ 512, 516 ], [ 516, 517 ], [ 516, 518 ], [ 518, 519 ], [ 518, 520 ], [ 512, 521 ], [ 521, 522 ], [ 522, 523 ], [ 522, 524 ], [ 521, 525 ], [ 525, 526 ], [ 526, 527 ], [ 527, 528 ], [ 528, 529 ], [ 528, 530 ], [ 527, 531 ], [ 526, 532 ], [ 532, 533 ], [ 532, 534 ], [ 534, 535 ], [ 535, 536 ], [ 535, 537 ], [ 534, 538 ], [ 525, 539 ], [ 539, 540 ], [ 539, 541 ], [ 541, 542 ], [ 541, 543 ], [ 525, 544 ], [ 544, 545 ], [ 544, 546 ], [ 546, 547 ], [ 547, 548 ], [ 547, 549 ], [ 546, 550 ], [ 512, 551 ], [ 551, 552 ], [ 552, 553 ], [ 552, 554 ], [ 510, 555 ], [ 555, 556 ], [ 510, 557 ], [ 557, 558 ], [ 717, 559 ], [ 559, 560 ], [ 559, 561 ], [ 561, 562 ], [ 562, 563 ], [ 563, 564 ], [ 563, 565 ], [ 563, 566 ], [ 566, 567 ], [ 566, 568 ], [ 559, 569 ], [ 569, 570 ], [ 717, 571 ], [ 571, 572 ], [ 571, 573 ], [ 573, 574 ], [ 574, 575 ], [ 575, 576 ], [ 575, 577 ], [ 574, 578 ], [ 578, 579 ], [ 573, 580 ], [ 580, 581 ], [ 581, 582 ], [ 581, 583 ], [ 580, 584 ], [ 584, 585 ], [ 573, 586 ], [ 586, 587 ], [ 587, 588 ], [ 587, 589 ], [ 586, 590 ], [ 590, 591 ], [ 591, 592 ], [ 591, 593 ], [ 593, 594 ], [ 593, 595 ], [ 591, 596 ], [ 573, 597 ], [ 597, 598 ], [ 598, 599 ], [ 598, 600 ], [ 598, 601 ], [ 601, 602 ], [ 601, 603 ], [ 571, 604 ], [ 604, 605 ], [ 571, 606 ], [ 606, 607 ], [ 717, 608 ], [ 608, 609 ], [ 608, 610 ], [ 610, 611 ], [ 611, 612 ], [ 611, 613 ], [ 610, 614 ], [ 614, 615 ], [ 614, 616 ], [ 610, 617 ], [ 617, 618 ], [ 617, 619 ], [ 619, 620 ], [ 610, 621 ], [ 621, 622 ], [ 621, 623 ], [ 610, 625 ], [ 625, 626 ], [ 626, 627 ], [ 627, 628 ], [ 627, 629 ], [ 625, 630 ], [ 630, 631 ], [ 630, 632 ], [ 625, 633 ], [ 633, 634 ], [ 634, 635 ], [ 625, 636 ], [ 637, 637 ], [ 637, 638 ], [ 638, 639 ], [ 638, 640 ], [ 640, 641 ], [ 637, 642 ], [ 642, 643 ], [ 643, 644 ], [ 643, 645 ], [ 642, 646 ], [ 646, 647 ], [ 647, 648 ], [ 647, 649 ], [ 646, 650 ], [ 650, 651 ], [ 650, 652 ], [ 610, 653 ], [ 653, 654 ], [ 653, 655 ], [ 610, 656 ], [ 656, 657 ], [ 656, 658 ], [ 610, 659 ], [ 659, 660 ], [ 660, 661 ], [ 661, 662 ], [ 661, 663 ], [ 659, 664 ], [ 664, 665 ], [ 664, 666 ], [ 659, 667 ], [ 667, 668 ], [ 668, 669 ], [ 659, 670 ], [ 671, 671 ], [ 671, 672 ], [ 672, 673 ], [ 673, 674 ], [ 674, 675 ], [ 674, 676 ], [ 673, 677 ], [ 672, 678 ], [ 678, 679 ], [ 672, 680 ], [ 680, 681 ], [ 681, 682 ], [ 682, 683 ], [ 682, 684 ], [ 681, 685 ], [ 685, 686 ], [ 686, 687 ], [ 686, 688 ], [ 685, 689 ], [ 680, 690 ], [ 690, 691 ], [ 690, 692 ], [ 610, 693 ], [ 693, 694 ], [ 694, 695 ], [ 694, 696 ], [ 693, 697 ], [ 697, 698 ], [ 697, 699 ], [ 610, 700 ], [ 700, 701 ], [ 700, 702 ], [ 702, 703 ], [ 703, 704 ], [ 704, 705 ], [ 704, 706 ], [ 702, 707 ], [ 700, 708 ], [ 708, 709 ], [ 709, 710 ], [ 710, 711 ], [ 710, 712 ], [ 708, 713 ], [ 608, 714 ], [ 714, 715 ], [ 0, 716 ], [ 716, 717 ], [ 716, 718 ] ]
[ "\nimport java.io.*;\nimport java.math.*;\nimport java.security.*;\nimport java.text.*;\nimport java.util.*;\nimport java.util.concurrent.*;\nimport java.util.regex.*;\npublic class Main{\n\tstatic int len=0;\n\tstatic long[] a=new long[10];\n\tstatic long[] segment_tree=new long[10];\n\tstatic int d=0;\n\tstatic int left(int p)\n\t{\n\t\treturn 2*p;\n\t}\n\tstatic int right(int p)\n\t{\n\t\treturn 2*p+1;\n\t}\n\tstatic int parent(int p)\n\t{\n\t\treturn (int) Math.floor(p/2.0);\n\t} \n\tstatic void build_segment_tree(int p,int L,int R)\n\t{\n\t\tif(L==R)\n\t\t\tsegment_tree[p]=a[L]; \n\t\telse\n\t\t{\n\t\t\tbuild_segment_tree(left(p),L,(L+R)/2);\n\t\t\tbuild_segment_tree(right(p),((L+R)/2)+1,R);\n\t\t\tlong x=segment_tree[left(p)];\n\t\t\tlong y=segment_tree[right(p)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[p]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[p]=x;\n\t\t}\n\t}\n\tstatic long rmq(int i,int j)\n\t{\n\t\treturn rmq_helper(1,0,len-1,i,j);\n\t}\n\tstatic long rmq_helper(int p,int L,int R,int i,int j)\n\t{\n\t\tif(j<L || i>R)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\tif(i<=L && j>=R)\n\t\t\treturn segment_tree[p];\n\t\telse\n\t\t{\n\t\t\tlong x=rmq_helper(left(p),L,(L+R)/2,i,j);\n\t\t\tlong y=rmq_helper(right(p),(L+R)/2+1,R,i,j);\n\t\t\tif(x==-1)\n\t\t\t\treturn y;\n\t\t\tif(y==-1)\n\t\t\t\treturn x;\n\t\t\treturn Math.max(x,y);\n\t\t}\n\t}\n\tstatic void update(int index,long value)\n\t{\n\t\ta[index]=value;\n\t\td=0;\n\t\tupdate_helper1(1,0,len-1,index);\n\t\tsegment_tree[d]=value;\n\t\tupdate_helper2(d);\n\t}\n\tstatic void update_helper2(int d)\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\td=parent(d);\n\t\t\tif(d==0)\n\t\t\t\tbreak;\n\t\t\tlong x=segment_tree[right(d)];\n\t\t\tlong y=segment_tree[left(d)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[d]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[d]=x;\n\t\t}\n\t}\n\tstatic void update_helper1(int p,int L,int R,int index)\n\t{\n\t\tif(L==index && R==index)\n\t\t{\n\t\t\td=p;\n\t\t\treturn;\n\t\t}\n\t\telse if(L<=index && index<=(L+R)/2)\n\t\t\tupdate_helper1(left(p),L,(L+R)/2,index);\n\t\telse if((L+R)/2+1<=index && index<=R)\n\t\t\tupdate_helper1(right(p),(L+R)/2+1,R,index);\n\t}\n\tstatic BufferedReader br;\n\tstatic int cin() throws Exception\n\t{\n\t\treturn Integer.valueOf(br.readLine().replaceAll(\"\\\\s\", \"\"));\n\t}\n\tstatic int[] split() throws Exception\n\t{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tint[] ans=new int[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Integer.valueOf(cmd[i]);\n\t\t} \n\t\treturn ans;\n\t} \n\tstatic long[] splitL() throws IOException\n\t{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tlong[] ans=new long[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Long.valueOf(cmd[i]);\n\t\t}\n\t\treturn ans;\n\t}\n\tstatic long mod=1000000007;\n\tstatic long power(long x,long y) \n { \n long res = 1; \n x = x % mod; \n while (y > 0) { \n if (y % 2 == 1) \n res = (res * x) % mod; \n y = y >> 1;\n x = (x * x) % mod; \n } \n return res%mod; \n } \n static long modInverse(long n) \n { \n return power(n, mod-2); \n } \n static long gcd(long a,long b)\n\t{\n\t\tif(a==0)\n\t\t\treturn b;\n\t\tif(b==0)\n\t\t\treturn a;\n\t\tif(a>b)\n\t\t\treturn gcd(a%b,b);\n\t\treturn gcd(a,b%a);\n\t}\n public static void main(String[] args) throws Exception {\n \tbr=new BufferedReader(new InputStreamReader(System.in));\n \tBufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));\n \tint n=cin();\n \tint[]arr=new int[n];\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tint[]ar=split();\n \t\tarr[i]=ar[0]-ar[1];\n \t}\n \tboolean b=false;\n \tint cnt=0;\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tif(arr[i]==0)\n \t\t\tcnt++;\n \t\telse\n \t\t{\n \t\t\tif(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcnt=0;\n \t\t}\n \t}\n \tif(cnt>=3)\n \t\tb=true;\n \tif(b)\n \t\tSystem.out.println(\"Yes\");\n \telse\n \t\tSystem.out.println(\"No\");\n }\n}", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "import java.security.*;", "security.*", "java", "import java.text.*;", "text.*", "java", "import java.util.*;", "util.*", "java", "import java.util.concurrent.*;", "concurrent.*", "java.util", "import java.util.regex.*;", "regex.*", "java.util", "public class Main{\n\tstatic int len=0;\n\tstatic long[] a=new long[10];\n\tstatic long[] segment_tree=new long[10];\n\tstatic int d=0;\n\tstatic int left(int p)\n\t{\n\t\treturn 2*p;\n\t}\n\tstatic int right(int p)\n\t{\n\t\treturn 2*p+1;\n\t}\n\tstatic int parent(int p)\n\t{\n\t\treturn (int) Math.floor(p/2.0);\n\t} \n\tstatic void build_segment_tree(int p,int L,int R)\n\t{\n\t\tif(L==R)\n\t\t\tsegment_tree[p]=a[L]; \n\t\telse\n\t\t{\n\t\t\tbuild_segment_tree(left(p),L,(L+R)/2);\n\t\t\tbuild_segment_tree(right(p),((L+R)/2)+1,R);\n\t\t\tlong x=segment_tree[left(p)];\n\t\t\tlong y=segment_tree[right(p)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[p]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[p]=x;\n\t\t}\n\t}\n\tstatic long rmq(int i,int j)\n\t{\n\t\treturn rmq_helper(1,0,len-1,i,j);\n\t}\n\tstatic long rmq_helper(int p,int L,int R,int i,int j)\n\t{\n\t\tif(j<L || i>R)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\tif(i<=L && j>=R)\n\t\t\treturn segment_tree[p];\n\t\telse\n\t\t{\n\t\t\tlong x=rmq_helper(left(p),L,(L+R)/2,i,j);\n\t\t\tlong y=rmq_helper(right(p),(L+R)/2+1,R,i,j);\n\t\t\tif(x==-1)\n\t\t\t\treturn y;\n\t\t\tif(y==-1)\n\t\t\t\treturn x;\n\t\t\treturn Math.max(x,y);\n\t\t}\n\t}\n\tstatic void update(int index,long value)\n\t{\n\t\ta[index]=value;\n\t\td=0;\n\t\tupdate_helper1(1,0,len-1,index);\n\t\tsegment_tree[d]=value;\n\t\tupdate_helper2(d);\n\t}\n\tstatic void update_helper2(int d)\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\td=parent(d);\n\t\t\tif(d==0)\n\t\t\t\tbreak;\n\t\t\tlong x=segment_tree[right(d)];\n\t\t\tlong y=segment_tree[left(d)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[d]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[d]=x;\n\t\t}\n\t}\n\tstatic void update_helper1(int p,int L,int R,int index)\n\t{\n\t\tif(L==index && R==index)\n\t\t{\n\t\t\td=p;\n\t\t\treturn;\n\t\t}\n\t\telse if(L<=index && index<=(L+R)/2)\n\t\t\tupdate_helper1(left(p),L,(L+R)/2,index);\n\t\telse if((L+R)/2+1<=index && index<=R)\n\t\t\tupdate_helper1(right(p),(L+R)/2+1,R,index);\n\t}\n\tstatic BufferedReader br;\n\tstatic int cin() throws Exception\n\t{\n\t\treturn Integer.valueOf(br.readLine().replaceAll(\"\\\\s\", \"\"));\n\t}\n\tstatic int[] split() throws Exception\n\t{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tint[] ans=new int[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Integer.valueOf(cmd[i]);\n\t\t} \n\t\treturn ans;\n\t} \n\tstatic long[] splitL() throws IOException\n\t{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tlong[] ans=new long[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Long.valueOf(cmd[i]);\n\t\t}\n\t\treturn ans;\n\t}\n\tstatic long mod=1000000007;\n\tstatic long power(long x,long y) \n { \n long res = 1; \n x = x % mod; \n while (y > 0) { \n if (y % 2 == 1) \n res = (res * x) % mod; \n y = y >> 1;\n x = (x * x) % mod; \n } \n return res%mod; \n } \n static long modInverse(long n) \n { \n return power(n, mod-2); \n } \n static long gcd(long a,long b)\n\t{\n\t\tif(a==0)\n\t\t\treturn b;\n\t\tif(b==0)\n\t\t\treturn a;\n\t\tif(a>b)\n\t\t\treturn gcd(a%b,b);\n\t\treturn gcd(a,b%a);\n\t}\n public static void main(String[] args) throws Exception {\n \tbr=new BufferedReader(new InputStreamReader(System.in));\n \tBufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));\n \tint n=cin();\n \tint[]arr=new int[n];\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tint[]ar=split();\n \t\tarr[i]=ar[0]-ar[1];\n \t}\n \tboolean b=false;\n \tint cnt=0;\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tif(arr[i]==0)\n \t\t\tcnt++;\n \t\telse\n \t\t{\n \t\t\tif(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcnt=0;\n \t\t}\n \t}\n \tif(cnt>=3)\n \t\tb=true;\n \tif(b)\n \t\tSystem.out.println(\"Yes\");\n \telse\n \t\tSystem.out.println(\"No\");\n }\n}", "Main", "static int len=0;", "len", "0", "static long[] a=new long[10];", "a", "new long[10]", "10", "static long[] segment_tree=new long[10];", "segment_tree", "new long[10]", "10", "static int d=0;", "d", "0", "static BufferedReader br;", "br", "static long mod=1000000007;", "mod", "1000000007", "static int left(int p)\n\t{\n\t\treturn 2*p;\n\t}", "left", "{\n\t\treturn 2*p;\n\t}", "return 2*p;", "2*p", "2", "p", "int p", "p", "static int right(int p)\n\t{\n\t\treturn 2*p+1;\n\t}", "right", "{\n\t\treturn 2*p+1;\n\t}", "return 2*p+1;", "2*p+1", "2*p", "2", "p", "1", "int p", "p", "static int parent(int p)\n\t{\n\t\treturn (int) Math.floor(p/2.0);\n\t}", "parent", "{\n\t\treturn (int) Math.floor(p/2.0);\n\t}", "return (int) Math.floor(p/2.0);", "(int) Math.floor(p/2.0)", "Math.floor", "Math", "p/2.0", "p", "2.0", "int p", "p", "static void build_segment_tree(int p,int L,int R)\n\t{\n\t\tif(L==R)\n\t\t\tsegment_tree[p]=a[L]; \n\t\telse\n\t\t{\n\t\t\tbuild_segment_tree(left(p),L,(L+R)/2);\n\t\t\tbuild_segment_tree(right(p),((L+R)/2)+1,R);\n\t\t\tlong x=segment_tree[left(p)];\n\t\t\tlong y=segment_tree[right(p)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[p]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[p]=x;\n\t\t}\n\t}", "build_segment_tree", "{\n\t\tif(L==R)\n\t\t\tsegment_tree[p]=a[L]; \n\t\telse\n\t\t{\n\t\t\tbuild_segment_tree(left(p),L,(L+R)/2);\n\t\t\tbuild_segment_tree(right(p),((L+R)/2)+1,R);\n\t\t\tlong x=segment_tree[left(p)];\n\t\t\tlong y=segment_tree[right(p)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[p]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[p]=x;\n\t\t}\n\t}", "if(L==R)\n\t\t\tsegment_tree[p]=a[L]; \n\t\telse\n\t\t{\n\t\t\tbuild_segment_tree(left(p),L,(L+R)/2);\n\t\t\tbuild_segment_tree(right(p),((L+R)/2)+1,R);\n\t\t\tlong x=segment_tree[left(p)];\n\t\t\tlong y=segment_tree[right(p)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[p]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[p]=x;\n\t\t}", "L==R", "L", "R", "segment_tree[p]=a[L]", "segment_tree[p]", "segment_tree", "p", "a[L]", "a", "L", "{\n\t\t\tbuild_segment_tree(left(p),L,(L+R)/2);\n\t\t\tbuild_segment_tree(right(p),((L+R)/2)+1,R);\n\t\t\tlong x=segment_tree[left(p)];\n\t\t\tlong y=segment_tree[right(p)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[p]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[p]=x;\n\t\t}", "build_segment_tree(left(p),L,(L+R)/2)", "build_segment_tree", "left(p)", "left", "p", "L", "(L+R)/2", "(L+R)", "L", "R", "2", "build_segment_tree(right(p),((L+R)/2)+1,R)", "build_segment_tree", "right(p)", "right", "p", "((L+R)/2)+1", "((L+R)/2)", "(L+R)", "L", "R", "2", "1", "R", "long x=segment_tree[left(p)];", "x", "segment_tree[left(p)]", "segment_tree", "left(p)", "left", "p", "long y=segment_tree[right(p)];", "y", "segment_tree[right(p)]", "segment_tree", "right(p)", "right", "p", "if(x<=y)\n\t\t\t\tsegment_tree[p]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[p]=x;", "x<=y", "x", "y", "segment_tree[p]=y", "segment_tree[p]", "segment_tree", "p", "y", "segment_tree[p]=x", "segment_tree[p]", "segment_tree", "p", "x", "int p", "p", "int L", "L", "int R", "R", "static long rmq(int i,int j)\n\t{\n\t\treturn rmq_helper(1,0,len-1,i,j);\n\t}", "rmq", "{\n\t\treturn rmq_helper(1,0,len-1,i,j);\n\t}", "return rmq_helper(1,0,len-1,i,j);", "rmq_helper(1,0,len-1,i,j)", "rmq_helper", "1", "0", "len-1", "len", "1", "i", "j", "int i", "i", "int j", "j", "static long rmq_helper(int p,int L,int R,int i,int j)\n\t{\n\t\tif(j<L || i>R)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\tif(i<=L && j>=R)\n\t\t\treturn segment_tree[p];\n\t\telse\n\t\t{\n\t\t\tlong x=rmq_helper(left(p),L,(L+R)/2,i,j);\n\t\t\tlong y=rmq_helper(right(p),(L+R)/2+1,R,i,j);\n\t\t\tif(x==-1)\n\t\t\t\treturn y;\n\t\t\tif(y==-1)\n\t\t\t\treturn x;\n\t\t\treturn Math.max(x,y);\n\t\t}\n\t}", "rmq_helper", "{\n\t\tif(j<L || i>R)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\tif(i<=L && j>=R)\n\t\t\treturn segment_tree[p];\n\t\telse\n\t\t{\n\t\t\tlong x=rmq_helper(left(p),L,(L+R)/2,i,j);\n\t\t\tlong y=rmq_helper(right(p),(L+R)/2+1,R,i,j);\n\t\t\tif(x==-1)\n\t\t\t\treturn y;\n\t\t\tif(y==-1)\n\t\t\t\treturn x;\n\t\t\treturn Math.max(x,y);\n\t\t}\n\t}", "if(j<L || i>R)\n\t\t{\n\t\t\treturn -1;\n\t\t}", "j<L || i>R", "j<L", "j", "L", "i>R", "i", "R", "{\n\t\t\treturn -1;\n\t\t}", "return -1;", "-1", "1", "if(i<=L && j>=R)\n\t\t\treturn segment_tree[p];\n\t\telse\n\t\t{\n\t\t\tlong x=rmq_helper(left(p),L,(L+R)/2,i,j);\n\t\t\tlong y=rmq_helper(right(p),(L+R)/2+1,R,i,j);\n\t\t\tif(x==-1)\n\t\t\t\treturn y;\n\t\t\tif(y==-1)\n\t\t\t\treturn x;\n\t\t\treturn Math.max(x,y);\n\t\t}", "i<=L && j>=R", "i<=L", "i", "L", "j>=R", "j", "R", "return segment_tree[p];", "segment_tree[p]", "segment_tree", "p", "{\n\t\t\tlong x=rmq_helper(left(p),L,(L+R)/2,i,j);\n\t\t\tlong y=rmq_helper(right(p),(L+R)/2+1,R,i,j);\n\t\t\tif(x==-1)\n\t\t\t\treturn y;\n\t\t\tif(y==-1)\n\t\t\t\treturn x;\n\t\t\treturn Math.max(x,y);\n\t\t}", "long x=rmq_helper(left(p),L,(L+R)/2,i,j);", "x", "rmq_helper(left(p),L,(L+R)/2,i,j)", "rmq_helper", "left(p)", "left", "p", "L", "(L+R)/2", "(L+R)", "L", "R", "2", "i", "j", "long y=rmq_helper(right(p),(L+R)/2+1,R,i,j);", "y", "rmq_helper(right(p),(L+R)/2+1,R,i,j)", "rmq_helper", "right(p)", "right", "p", "(L+R)/2+1", "(L+R)/2", "(L+R)", "L", "R", "2", "1", "R", "i", "j", "if(x==-1)\n\t\t\t\treturn y;", "x==-1", "x", "-1", "1", "return y;", "y", "if(y==-1)\n\t\t\t\treturn x;", "y==-1", "y", "-1", "1", "return x;", "x", "return Math.max(x,y);", "Math.max(x,y)", "Math.max", "Math", "x", "y", "int p", "p", "int L", "L", "int R", "R", "int i", "i", "int j", "j", "static void update(int index,long value)\n\t{\n\t\ta[index]=value;\n\t\td=0;\n\t\tupdate_helper1(1,0,len-1,index);\n\t\tsegment_tree[d]=value;\n\t\tupdate_helper2(d);\n\t}", "update", "{\n\t\ta[index]=value;\n\t\td=0;\n\t\tupdate_helper1(1,0,len-1,index);\n\t\tsegment_tree[d]=value;\n\t\tupdate_helper2(d);\n\t}", "a[index]=value", "a[index]", "a", "index", "value", "d=0", "d", "0", "update_helper1(1,0,len-1,index)", "update_helper1", "1", "0", "len-1", "len", "1", "index", "segment_tree[d]=value", "segment_tree[d]", "segment_tree", "d", "value", "update_helper2(d)", "update_helper2", "d", "int index", "index", "long value", "value", "static void update_helper2(int d)\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\td=parent(d);\n\t\t\tif(d==0)\n\t\t\t\tbreak;\n\t\t\tlong x=segment_tree[right(d)];\n\t\t\tlong y=segment_tree[left(d)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[d]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[d]=x;\n\t\t}\n\t}", "update_helper2", "{\n\t\twhile(true)\n\t\t{\n\t\t\td=parent(d);\n\t\t\tif(d==0)\n\t\t\t\tbreak;\n\t\t\tlong x=segment_tree[right(d)];\n\t\t\tlong y=segment_tree[left(d)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[d]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[d]=x;\n\t\t}\n\t}", "while(true)\n\t\t{\n\t\t\td=parent(d);\n\t\t\tif(d==0)\n\t\t\t\tbreak;\n\t\t\tlong x=segment_tree[right(d)];\n\t\t\tlong y=segment_tree[left(d)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[d]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[d]=x;\n\t\t}", "true", "{\n\t\t\td=parent(d);\n\t\t\tif(d==0)\n\t\t\t\tbreak;\n\t\t\tlong x=segment_tree[right(d)];\n\t\t\tlong y=segment_tree[left(d)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[d]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[d]=x;\n\t\t}", "d=parent(d)", "d", "parent(d)", "parent", "d", "if(d==0)\n\t\t\t\tbreak;", "d==0", "d", "0", "break;", "long x=segment_tree[right(d)];", "x", "segment_tree[right(d)]", "segment_tree", "right(d)", "right", "d", "long y=segment_tree[left(d)];", "y", "segment_tree[left(d)]", "segment_tree", "left(d)", "left", "d", "if(x<=y)\n\t\t\t\tsegment_tree[d]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[d]=x;", "x<=y", "x", "y", "segment_tree[d]=y", "segment_tree[d]", "segment_tree", "d", "y", "segment_tree[d]=x", "segment_tree[d]", "segment_tree", "d", "x", "int d", "d", "static void update_helper1(int p,int L,int R,int index)\n\t{\n\t\tif(L==index && R==index)\n\t\t{\n\t\t\td=p;\n\t\t\treturn;\n\t\t}\n\t\telse if(L<=index && index<=(L+R)/2)\n\t\t\tupdate_helper1(left(p),L,(L+R)/2,index);\n\t\telse if((L+R)/2+1<=index && index<=R)\n\t\t\tupdate_helper1(right(p),(L+R)/2+1,R,index);\n\t}", "update_helper1", "{\n\t\tif(L==index && R==index)\n\t\t{\n\t\t\td=p;\n\t\t\treturn;\n\t\t}\n\t\telse if(L<=index && index<=(L+R)/2)\n\t\t\tupdate_helper1(left(p),L,(L+R)/2,index);\n\t\telse if((L+R)/2+1<=index && index<=R)\n\t\t\tupdate_helper1(right(p),(L+R)/2+1,R,index);\n\t}", "if(L==index && R==index)\n\t\t{\n\t\t\td=p;\n\t\t\treturn;\n\t\t}\n\t\telse if(L<=index && index<=(L+R)/2)\n\t\t\tupdate_helper1(left(p),L,(L+R)/2,index);\n\t\telse if((L+R)/2+1<=index && index<=R)\n\t\t\tupdate_helper1(right(p),(L+R)/2+1,R,index);", "L==index && R==index", "L==index", "L", "index", "R==index", "R", "index", "{\n\t\t\td=p;\n\t\t\treturn;\n\t\t}", "d=p", "d", "p", "return;", "if(L<=index && index<=(L+R)/2)\n\t\t\tupdate_helper1(left(p),L,(L+R)/2,index);\n\t\telse if((L+R)/2+1<=index && index<=R)\n\t\t\tupdate_helper1(right(p),(L+R)/2+1,R,index);", "L<=index && index<=(L+R)/2", "L<=index", "L", "index", "index<=(L+R)/2", "index", "(L+R)/2", "(L+R)", "L", "R", "2", "update_helper1(left(p),L,(L+R)/2,index)", "update_helper1", "left(p)", "left", "p", "L", "(L+R)/2", "(L+R)", "L", "R", "2", "index", "if((L+R)/2+1<=index && index<=R)\n\t\t\tupdate_helper1(right(p),(L+R)/2+1,R,index);", "(L+R)/2+1<=index && index<=R", "(L+R)/2+1<=index", "(L+R)/2+1", "(L+R)/2", "(L+R)", "L", "R", "2", "1", "index", "index<=R", "index", "R", "update_helper1(right(p),(L+R)/2+1,R,index)", "update_helper1", "right(p)", "right", "p", "(L+R)/2+1", "(L+R)/2", "(L+R)", "L", "R", "2", "1", "R", "index", "int p", "p", "int L", "L", "int R", "R", "int index", "index", "static int cin() throws Exception\n\t{\n\t\treturn Integer.valueOf(br.readLine().replaceAll(\"\\\\s\", \"\"));\n\t}", "cin", "{\n\t\treturn Integer.valueOf(br.readLine().replaceAll(\"\\\\s\", \"\"));\n\t}", "return Integer.valueOf(br.readLine().replaceAll(\"\\\\s\", \"\"));", "Integer.valueOf(br.readLine().replaceAll(\"\\\\s\", \"\"))", "Integer.valueOf", "Integer", "br.readLine().replaceAll(\"\\\\s\", \"\")", "br.readLine().replaceAll", "br.readLine()", "br.readLine", "br", "\"\\\\s\"", "\"\"", "static int[] split() throws Exception\n\t{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tint[] ans=new int[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Integer.valueOf(cmd[i]);\n\t\t} \n\t\treturn ans;\n\t}", "split", "{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tint[] ans=new int[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Integer.valueOf(cmd[i]);\n\t\t} \n\t\treturn ans;\n\t}", "String[] cmd=br.readLine().split(\" \");", "cmd", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] ans=new int[cmd.length];", "ans", "new int[cmd.length]", "cmd.length", "cmd", "cmd.length", "for(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Integer.valueOf(cmd[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<cmd.length", "i", "cmd.length", "cmd", "cmd.length", "i++", "i++", "i", "{\n\t\t\tans[i]=Integer.valueOf(cmd[i]);\n\t\t}", "{\n\t\t\tans[i]=Integer.valueOf(cmd[i]);\n\t\t}", "ans[i]=Integer.valueOf(cmd[i])", "ans[i]", "ans", "i", "Integer.valueOf(cmd[i])", "Integer.valueOf", "Integer", "cmd[i]", "cmd", "i", "return ans;", "ans", "static long[] splitL() throws IOException\n\t{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tlong[] ans=new long[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Long.valueOf(cmd[i]);\n\t\t}\n\t\treturn ans;\n\t}", "splitL", "{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tlong[] ans=new long[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Long.valueOf(cmd[i]);\n\t\t}\n\t\treturn ans;\n\t}", "String[] cmd=br.readLine().split(\" \");", "cmd", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "long[] ans=new long[cmd.length];", "ans", "new long[cmd.length]", "cmd.length", "cmd", "cmd.length", "for(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Long.valueOf(cmd[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<cmd.length", "i", "cmd.length", "cmd", "cmd.length", "i++", "i++", "i", "{\n\t\t\tans[i]=Long.valueOf(cmd[i]);\n\t\t}", "{\n\t\t\tans[i]=Long.valueOf(cmd[i]);\n\t\t}", "ans[i]=Long.valueOf(cmd[i])", "ans[i]", "ans", "i", "Long.valueOf(cmd[i])", "Long.valueOf", "Long", "cmd[i]", "cmd", "i", "return ans;", "ans", "static long power(long x,long y) \n { \n long res = 1; \n x = x % mod; \n while (y > 0) { \n if (y % 2 == 1) \n res = (res * x) % mod; \n y = y >> 1;\n x = (x * x) % mod; \n } \n return res%mod; \n }", "power", "{ \n long res = 1; \n x = x % mod; \n while (y > 0) { \n if (y % 2 == 1) \n res = (res * x) % mod; \n y = y >> 1;\n x = (x * x) % mod; \n } \n return res%mod; \n }", "long res = 1;", "res", "1", "x = x % mod", "x", "x % mod", "x", "mod", "while (y > 0) { \n if (y % 2 == 1) \n res = (res * x) % mod; \n y = y >> 1;\n x = (x * x) % mod; \n }", "y > 0", "y", "0", "{ \n if (y % 2 == 1) \n res = (res * x) % mod; \n y = y >> 1;\n x = (x * x) % mod; \n }", "if (y % 2 == 1) \n res = (res * x) % mod;", "y % 2 == 1", "y % 2", "y", "2", "1", "res = (res * x) % mod", "res", "(res * x) % mod", "(res * x)", "res", "x", "mod", "y = y >> 1", "y", "y >> 1", "y", "1", "x = (x * x) % mod", "x", "(x * x) % mod", "(x * x)", "x", "x", "mod", "return res%mod;", "res%mod", "res", "mod", "long x", "x", "long y", "y", "static long modInverse(long n) \n { \n return power(n, mod-2); \n }", "modInverse", "{ \n return power(n, mod-2); \n }", "return power(n, mod-2);", "power(n, mod-2)", "power", "n", "mod-2", "mod", "2", "long n", "n", "static long gcd(long a,long b)\n\t{\n\t\tif(a==0)\n\t\t\treturn b;\n\t\tif(b==0)\n\t\t\treturn a;\n\t\tif(a>b)\n\t\t\treturn gcd(a%b,b);\n\t\treturn gcd(a,b%a);\n\t}", "gcd", "{\n\t\tif(a==0)\n\t\t\treturn b;\n\t\tif(b==0)\n\t\t\treturn a;\n\t\tif(a>b)\n\t\t\treturn gcd(a%b,b);\n\t\treturn gcd(a,b%a);\n\t}", "if(a==0)\n\t\t\treturn b;", "a==0", "a", "0", "return b;", "b", "if(b==0)\n\t\t\treturn a;", "b==0", "b", "0", "return a;", "a", "if(a>b)\n\t\t\treturn gcd(a%b,b);", "a>b", "a", "b", "return gcd(a%b,b);", "gcd(a%b,b)", "gcd", "a%b", "a", "b", "b", "return gcd(a,b%a);", "gcd(a,b%a)", "gcd", "a", "b%a", "b", "a", "long a", "a", "long b", "b", "public static void main(String[] args) throws Exception {\n \tbr=new BufferedReader(new InputStreamReader(System.in));\n \tBufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));\n \tint n=cin();\n \tint[]arr=new int[n];\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tint[]ar=split();\n \t\tarr[i]=ar[0]-ar[1];\n \t}\n \tboolean b=false;\n \tint cnt=0;\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tif(arr[i]==0)\n \t\t\tcnt++;\n \t\telse\n \t\t{\n \t\t\tif(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcnt=0;\n \t\t}\n \t}\n \tif(cnt>=3)\n \t\tb=true;\n \tif(b)\n \t\tSystem.out.println(\"Yes\");\n \telse\n \t\tSystem.out.println(\"No\");\n }", "main", "{\n \tbr=new BufferedReader(new InputStreamReader(System.in));\n \tBufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));\n \tint n=cin();\n \tint[]arr=new int[n];\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tint[]ar=split();\n \t\tarr[i]=ar[0]-ar[1];\n \t}\n \tboolean b=false;\n \tint cnt=0;\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tif(arr[i]==0)\n \t\t\tcnt++;\n \t\telse\n \t\t{\n \t\t\tif(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcnt=0;\n \t\t}\n \t}\n \tif(cnt>=3)\n \t\tb=true;\n \tif(b)\n \t\tSystem.out.println(\"Yes\");\n \telse\n \t\tSystem.out.println(\"No\");\n }", "br=new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));", "writer", "new BufferedWriter(new OutputStreamWriter(System.out))", "int n=cin();", "n", "cin()", "cin", "int[]arr=new int[n];", "arr", "new int[n]", "n", "for(int i=0;i<n;i++)\n \t{\n \t\tint[]ar=split();\n \t\tarr[i]=ar[0]-ar[1];\n \t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \t\tint[]ar=split();\n \t\tarr[i]=ar[0]-ar[1];\n \t}", "{\n \t\tint[]ar=split();\n \t\tarr[i]=ar[0]-ar[1];\n \t}", "int[]ar=split();", "ar", "split()", "split", "arr[i]=ar[0]-ar[1]", "arr[i]", "arr", "i", "ar[0]-ar[1]", "ar[0]", "ar", "0", "ar[1]", "ar", "1", "boolean b=false;", "b", "false", "int cnt=0;", "cnt", "0", "for(int i=0;i<n;i++)\n \t{\n \t\tif(arr[i]==0)\n \t\t\tcnt++;\n \t\telse\n \t\t{\n \t\t\tif(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcnt=0;\n \t\t}\n \t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \t\tif(arr[i]==0)\n \t\t\tcnt++;\n \t\telse\n \t\t{\n \t\t\tif(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcnt=0;\n \t\t}\n \t}", "{\n \t\tif(arr[i]==0)\n \t\t\tcnt++;\n \t\telse\n \t\t{\n \t\t\tif(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcnt=0;\n \t\t}\n \t}", "if(arr[i]==0)\n \t\t\tcnt++;\n \t\telse\n \t\t{\n \t\t\tif(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcnt=0;\n \t\t}", "arr[i]==0", "arr[i]", "arr", "i", "0", "cnt++", "cnt", "{\n \t\t\tif(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcnt=0;\n \t\t}", "if(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}", "cnt>=3", "cnt", "3", "{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}", "b=true", "b", "true", "break;", "cnt=0", "cnt", "0", "if(cnt>=3)\n \t\tb=true;", "cnt>=3", "cnt", "3", "b=true", "b", "true", "if(b)\n \t\tSystem.out.println(\"Yes\");\n \telse\n \t\tSystem.out.println(\"No\");", "b", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main{\n\tstatic int len=0;\n\tstatic long[] a=new long[10];\n\tstatic long[] segment_tree=new long[10];\n\tstatic int d=0;\n\tstatic int left(int p)\n\t{\n\t\treturn 2*p;\n\t}\n\tstatic int right(int p)\n\t{\n\t\treturn 2*p+1;\n\t}\n\tstatic int parent(int p)\n\t{\n\t\treturn (int) Math.floor(p/2.0);\n\t} \n\tstatic void build_segment_tree(int p,int L,int R)\n\t{\n\t\tif(L==R)\n\t\t\tsegment_tree[p]=a[L]; \n\t\telse\n\t\t{\n\t\t\tbuild_segment_tree(left(p),L,(L+R)/2);\n\t\t\tbuild_segment_tree(right(p),((L+R)/2)+1,R);\n\t\t\tlong x=segment_tree[left(p)];\n\t\t\tlong y=segment_tree[right(p)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[p]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[p]=x;\n\t\t}\n\t}\n\tstatic long rmq(int i,int j)\n\t{\n\t\treturn rmq_helper(1,0,len-1,i,j);\n\t}\n\tstatic long rmq_helper(int p,int L,int R,int i,int j)\n\t{\n\t\tif(j<L || i>R)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\tif(i<=L && j>=R)\n\t\t\treturn segment_tree[p];\n\t\telse\n\t\t{\n\t\t\tlong x=rmq_helper(left(p),L,(L+R)/2,i,j);\n\t\t\tlong y=rmq_helper(right(p),(L+R)/2+1,R,i,j);\n\t\t\tif(x==-1)\n\t\t\t\treturn y;\n\t\t\tif(y==-1)\n\t\t\t\treturn x;\n\t\t\treturn Math.max(x,y);\n\t\t}\n\t}\n\tstatic void update(int index,long value)\n\t{\n\t\ta[index]=value;\n\t\td=0;\n\t\tupdate_helper1(1,0,len-1,index);\n\t\tsegment_tree[d]=value;\n\t\tupdate_helper2(d);\n\t}\n\tstatic void update_helper2(int d)\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\td=parent(d);\n\t\t\tif(d==0)\n\t\t\t\tbreak;\n\t\t\tlong x=segment_tree[right(d)];\n\t\t\tlong y=segment_tree[left(d)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[d]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[d]=x;\n\t\t}\n\t}\n\tstatic void update_helper1(int p,int L,int R,int index)\n\t{\n\t\tif(L==index && R==index)\n\t\t{\n\t\t\td=p;\n\t\t\treturn;\n\t\t}\n\t\telse if(L<=index && index<=(L+R)/2)\n\t\t\tupdate_helper1(left(p),L,(L+R)/2,index);\n\t\telse if((L+R)/2+1<=index && index<=R)\n\t\t\tupdate_helper1(right(p),(L+R)/2+1,R,index);\n\t}\n\tstatic BufferedReader br;\n\tstatic int cin() throws Exception\n\t{\n\t\treturn Integer.valueOf(br.readLine().replaceAll(\"\\\\s\", \"\"));\n\t}\n\tstatic int[] split() throws Exception\n\t{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tint[] ans=new int[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Integer.valueOf(cmd[i]);\n\t\t} \n\t\treturn ans;\n\t} \n\tstatic long[] splitL() throws IOException\n\t{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tlong[] ans=new long[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Long.valueOf(cmd[i]);\n\t\t}\n\t\treturn ans;\n\t}\n\tstatic long mod=1000000007;\n\tstatic long power(long x,long y) \n { \n long res = 1; \n x = x % mod; \n while (y > 0) { \n if (y % 2 == 1) \n res = (res * x) % mod; \n y = y >> 1;\n x = (x * x) % mod; \n } \n return res%mod; \n } \n static long modInverse(long n) \n { \n return power(n, mod-2); \n } \n static long gcd(long a,long b)\n\t{\n\t\tif(a==0)\n\t\t\treturn b;\n\t\tif(b==0)\n\t\t\treturn a;\n\t\tif(a>b)\n\t\t\treturn gcd(a%b,b);\n\t\treturn gcd(a,b%a);\n\t}\n public static void main(String[] args) throws Exception {\n \tbr=new BufferedReader(new InputStreamReader(System.in));\n \tBufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));\n \tint n=cin();\n \tint[]arr=new int[n];\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tint[]ar=split();\n \t\tarr[i]=ar[0]-ar[1];\n \t}\n \tboolean b=false;\n \tint cnt=0;\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tif(arr[i]==0)\n \t\t\tcnt++;\n \t\telse\n \t\t{\n \t\t\tif(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcnt=0;\n \t\t}\n \t}\n \tif(cnt>=3)\n \t\tb=true;\n \tif(b)\n \t\tSystem.out.println(\"Yes\");\n \telse\n \t\tSystem.out.println(\"No\");\n }\n}", "public class Main{\n\tstatic int len=0;\n\tstatic long[] a=new long[10];\n\tstatic long[] segment_tree=new long[10];\n\tstatic int d=0;\n\tstatic int left(int p)\n\t{\n\t\treturn 2*p;\n\t}\n\tstatic int right(int p)\n\t{\n\t\treturn 2*p+1;\n\t}\n\tstatic int parent(int p)\n\t{\n\t\treturn (int) Math.floor(p/2.0);\n\t} \n\tstatic void build_segment_tree(int p,int L,int R)\n\t{\n\t\tif(L==R)\n\t\t\tsegment_tree[p]=a[L]; \n\t\telse\n\t\t{\n\t\t\tbuild_segment_tree(left(p),L,(L+R)/2);\n\t\t\tbuild_segment_tree(right(p),((L+R)/2)+1,R);\n\t\t\tlong x=segment_tree[left(p)];\n\t\t\tlong y=segment_tree[right(p)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[p]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[p]=x;\n\t\t}\n\t}\n\tstatic long rmq(int i,int j)\n\t{\n\t\treturn rmq_helper(1,0,len-1,i,j);\n\t}\n\tstatic long rmq_helper(int p,int L,int R,int i,int j)\n\t{\n\t\tif(j<L || i>R)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\tif(i<=L && j>=R)\n\t\t\treturn segment_tree[p];\n\t\telse\n\t\t{\n\t\t\tlong x=rmq_helper(left(p),L,(L+R)/2,i,j);\n\t\t\tlong y=rmq_helper(right(p),(L+R)/2+1,R,i,j);\n\t\t\tif(x==-1)\n\t\t\t\treturn y;\n\t\t\tif(y==-1)\n\t\t\t\treturn x;\n\t\t\treturn Math.max(x,y);\n\t\t}\n\t}\n\tstatic void update(int index,long value)\n\t{\n\t\ta[index]=value;\n\t\td=0;\n\t\tupdate_helper1(1,0,len-1,index);\n\t\tsegment_tree[d]=value;\n\t\tupdate_helper2(d);\n\t}\n\tstatic void update_helper2(int d)\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\td=parent(d);\n\t\t\tif(d==0)\n\t\t\t\tbreak;\n\t\t\tlong x=segment_tree[right(d)];\n\t\t\tlong y=segment_tree[left(d)];\n\t\t\tif(x<=y)\n\t\t\t\tsegment_tree[d]=y;\n\t\t\telse\n\t\t\t\tsegment_tree[d]=x;\n\t\t}\n\t}\n\tstatic void update_helper1(int p,int L,int R,int index)\n\t{\n\t\tif(L==index && R==index)\n\t\t{\n\t\t\td=p;\n\t\t\treturn;\n\t\t}\n\t\telse if(L<=index && index<=(L+R)/2)\n\t\t\tupdate_helper1(left(p),L,(L+R)/2,index);\n\t\telse if((L+R)/2+1<=index && index<=R)\n\t\t\tupdate_helper1(right(p),(L+R)/2+1,R,index);\n\t}\n\tstatic BufferedReader br;\n\tstatic int cin() throws Exception\n\t{\n\t\treturn Integer.valueOf(br.readLine().replaceAll(\"\\\\s\", \"\"));\n\t}\n\tstatic int[] split() throws Exception\n\t{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tint[] ans=new int[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Integer.valueOf(cmd[i]);\n\t\t} \n\t\treturn ans;\n\t} \n\tstatic long[] splitL() throws IOException\n\t{\n\t\tString[] cmd=br.readLine().split(\" \");\n\t\tlong[] ans=new long[cmd.length];\n\t\tfor(int i=0;i<cmd.length;i++)\n\t\t{\n\t\t\tans[i]=Long.valueOf(cmd[i]);\n\t\t}\n\t\treturn ans;\n\t}\n\tstatic long mod=1000000007;\n\tstatic long power(long x,long y) \n { \n long res = 1; \n x = x % mod; \n while (y > 0) { \n if (y % 2 == 1) \n res = (res * x) % mod; \n y = y >> 1;\n x = (x * x) % mod; \n } \n return res%mod; \n } \n static long modInverse(long n) \n { \n return power(n, mod-2); \n } \n static long gcd(long a,long b)\n\t{\n\t\tif(a==0)\n\t\t\treturn b;\n\t\tif(b==0)\n\t\t\treturn a;\n\t\tif(a>b)\n\t\t\treturn gcd(a%b,b);\n\t\treturn gcd(a,b%a);\n\t}\n public static void main(String[] args) throws Exception {\n \tbr=new BufferedReader(new InputStreamReader(System.in));\n \tBufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));\n \tint n=cin();\n \tint[]arr=new int[n];\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tint[]ar=split();\n \t\tarr[i]=ar[0]-ar[1];\n \t}\n \tboolean b=false;\n \tint cnt=0;\n \tfor(int i=0;i<n;i++)\n \t{\n \t\tif(arr[i]==0)\n \t\t\tcnt++;\n \t\telse\n \t\t{\n \t\t\tif(cnt>=3)\n \t\t\t{\n \t\t\t\tb=true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tcnt=0;\n \t\t}\n \t}\n \tif(cnt>=3)\n \t\tb=true;\n \tif(b)\n \t\tSystem.out.println(\"Yes\");\n \telse\n \t\tSystem.out.println(\"No\");\n }\n}", "Main" ]
import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class Main{ static int len=0; static long[] a=new long[10]; static long[] segment_tree=new long[10]; static int d=0; static int left(int p) { return 2*p; } static int right(int p) { return 2*p+1; } static int parent(int p) { return (int) Math.floor(p/2.0); } static void build_segment_tree(int p,int L,int R) { if(L==R) segment_tree[p]=a[L]; else { build_segment_tree(left(p),L,(L+R)/2); build_segment_tree(right(p),((L+R)/2)+1,R); long x=segment_tree[left(p)]; long y=segment_tree[right(p)]; if(x<=y) segment_tree[p]=y; else segment_tree[p]=x; } } static long rmq(int i,int j) { return rmq_helper(1,0,len-1,i,j); } static long rmq_helper(int p,int L,int R,int i,int j) { if(j<L || i>R) { return -1; } if(i<=L && j>=R) return segment_tree[p]; else { long x=rmq_helper(left(p),L,(L+R)/2,i,j); long y=rmq_helper(right(p),(L+R)/2+1,R,i,j); if(x==-1) return y; if(y==-1) return x; return Math.max(x,y); } } static void update(int index,long value) { a[index]=value; d=0; update_helper1(1,0,len-1,index); segment_tree[d]=value; update_helper2(d); } static void update_helper2(int d) { while(true) { d=parent(d); if(d==0) break; long x=segment_tree[right(d)]; long y=segment_tree[left(d)]; if(x<=y) segment_tree[d]=y; else segment_tree[d]=x; } } static void update_helper1(int p,int L,int R,int index) { if(L==index && R==index) { d=p; return; } else if(L<=index && index<=(L+R)/2) update_helper1(left(p),L,(L+R)/2,index); else if((L+R)/2+1<=index && index<=R) update_helper1(right(p),(L+R)/2+1,R,index); } static BufferedReader br; static int cin() throws Exception { return Integer.valueOf(br.readLine().replaceAll("\\s", "")); } static int[] split() throws Exception { String[] cmd=br.readLine().split(" "); int[] ans=new int[cmd.length]; for(int i=0;i<cmd.length;i++) { ans[i]=Integer.valueOf(cmd[i]); } return ans; } static long[] splitL() throws IOException { String[] cmd=br.readLine().split(" "); long[] ans=new long[cmd.length]; for(int i=0;i<cmd.length;i++) { ans[i]=Long.valueOf(cmd[i]); } return ans; } static long mod=1000000007; static long power(long x,long y) { long res = 1; x = x % mod; while (y > 0) { if (y % 2 == 1) res = (res * x) % mod; y = y >> 1; x = (x * x) % mod; } return res%mod; } static long modInverse(long n) { return power(n, mod-2); } static long gcd(long a,long b) { if(a==0) return b; if(b==0) return a; if(a>b) return gcd(a%b,b); return gcd(a,b%a); } public static void main(String[] args) throws Exception { br=new BufferedReader(new InputStreamReader(System.in)); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out)); int n=cin(); int[]arr=new int[n]; for(int i=0;i<n;i++) { int[]ar=split(); arr[i]=ar[0]-ar[1]; } boolean b=false; int cnt=0; for(int i=0;i<n;i++) { if(arr[i]==0) cnt++; else { if(cnt>=3) { b=true; break; } cnt=0; } } if(cnt>=3) b=true; if(b) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 20, 12, 13, 30, 41, 13, 4, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 13, 41, 13, 4, 13, 14, 2, 13, 13, 30, 40, 13, 30, 14, 2, 13, 13, 0, 13, 13, 0, 13, 17, 14, 2, 13, 13, 0, 13, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 2, 13, 13, 13, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 2, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 404, 11 ], [ 404, 12 ], [ 12, 13 ], [ 12, 14 ], [ 404, 15 ], [ 15, 16 ], [ 15, 17 ], [ 404, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 28, 30 ], [ 20, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 43, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 52, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 67, 69 ], [ 20, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 20, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 18, 93 ], [ 93, 94 ], [ 404, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 107, 109 ], [ 102, 110 ], [ 110, 111 ], [ 111, 112 ], [ 102, 113 ], [ 114, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 97, 122 ], [ 122, 123 ], [ 95, 124 ], [ 124, 125 ], [ 404, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 138, 140 ], [ 133, 141 ], [ 141, 142 ], [ 142, 143 ], [ 133, 144 ], [ 145, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 150, 151 ], [ 151, 152 ], [ 128, 153 ], [ 153, 154 ], [ 126, 155 ], [ 155, 156 ], [ 404, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 169, 170 ], [ 169, 171 ], [ 164, 172 ], [ 172, 173 ], [ 173, 174 ], [ 164, 175 ], [ 176, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 181, 182 ], [ 182, 183 ], [ 159, 184 ], [ 184, 185 ], [ 157, 186 ], [ 186, 187 ], [ 404, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 191, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 198, 200 ], [ 191, 201 ], [ 201, 202 ], [ 202, 203 ], [ 191, 204 ], [ 205, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 206, 210 ], [ 210, 211 ], [ 211, 212 ], [ 205, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 213, 217 ], [ 217, 218 ], [ 218, 219 ], [ 188, 220 ], [ 220, 221 ], [ 188, 222 ], [ 222, 223 ], [ 404, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 229, 233 ], [ 228, 234 ], [ 224, 235 ], [ 235, 236 ], [ 404, 237 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 404, 244 ], [ 244, 245 ], [ 244, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 404, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 404, 258 ], [ 258, 259 ], [ 258, 260 ], [ 260, 261 ], [ 261, 262 ], [ 261, 263 ], [ 263, 264 ], [ 263, 265 ], [ 260, 266 ], [ 266, 267 ], [ 266, 268 ], [ 260, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 271, 273 ], [ 269, 274 ], [ 274, 275 ], [ 274, 276 ], [ 269, 277 ], [ 277, 278 ], [ 278, 279 ], [ 269, 280 ], [ 281, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 284, 286 ], [ 281, 287 ], [ 287, 288 ], [ 287, 289 ], [ 289, 290 ], [ 289, 291 ], [ 291, 292 ], [ 292, 293 ], [ 291, 294 ], [ 294, 295 ], [ 294, 296 ], [ 281, 297 ], [ 297, 298 ], [ 298, 299 ], [ 298, 300 ], [ 297, 301 ], [ 301, 302 ], [ 301, 303 ], [ 281, 304 ], [ 304, 305 ], [ 305, 306 ], [ 305, 307 ], [ 304, 308 ], [ 260, 309 ], [ 309, 310 ], [ 310, 311 ], [ 309, 312 ], [ 258, 313 ], [ 313, 314 ], [ 404, 315 ], [ 315, 316 ], [ 315, 317 ], [ 317, 318 ], [ 315, 319 ], [ 319, 320 ], [ 315, 321 ], [ 321, 322 ], [ 321, 323 ], [ 323, 324 ], [ 324, 325 ], [ 324, 326 ], [ 315, 327 ], [ 327, 328 ], [ 327, 329 ], [ 329, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 332, 334 ], [ 331, 335 ], [ 335, 336 ], [ 336, 337 ], [ 337, 338 ], [ 330, 339 ], [ 339, 340 ], [ 340, 341 ], [ 341, 342 ], [ 341, 343 ], [ 343, 344 ], [ 344, 345 ], [ 345, 346 ], [ 340, 347 ], [ 347, 348 ], [ 348, 349 ], [ 348, 350 ], [ 329, 351 ], [ 351, 352 ], [ 352, 353 ], [ 353, 354 ], [ 315, 355 ], [ 355, 356 ], [ 355, 357 ], [ 357, 358 ], [ 358, 359 ], [ 359, 360 ], [ 360, 361 ], [ 359, 362 ], [ 362, 363 ], [ 315, 364 ], [ 364, 365 ], [ 364, 366 ], [ 366, 367 ], [ 367, 368 ], [ 368, 369 ], [ 369, 370 ], [ 368, 371 ], [ 371, 372 ], [ 315, 373 ], [ 373, 374 ], [ 373, 375 ], [ 375, 376 ], [ 376, 377 ], [ 377, 378 ], [ 378, 379 ], [ 377, 380 ], [ 380, 381 ], [ 315, 382 ], [ 382, 383 ], [ 382, 384 ], [ 384, 385 ], [ 385, 386 ], [ 385, 387 ], [ 384, 388 ], [ 388, 389 ], [ 389, 390 ], [ 389, 391 ], [ 391, 392 ], [ 392, 393 ], [ 393, 394 ], [ 388, 395 ], [ 395, 396 ], [ 396, 397 ], [ 396, 398 ], [ 398, 399 ], [ 399, 400 ], [ 384, 401 ], [ 401, 402 ], [ 0, 403 ], [ 403, 404 ], [ 403, 405 ] ]
[ "\n\nimport java.util.*;\nimport java.io.*;\nimport java.math.*;\n\npublic class Main \n\n{ \nstatic int mod=1000000007;\n\n\t static FastReader sc=new FastReader(); \n\t \n\t\t public static void main(String[] args) \n {\n\t\t\t int n=i();\n\t\t\t int max=0;\n\t\t\t int c=0;\n\t\t\t for(int i=0;i<n;i++) {\n\t\t\t\t int a=i();\n\t\t\t\t int b=i();\n\t\t\t\t if(a==b) {\n\t\t\t\t\t c++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t if(c>max)\n\t\t\t\t\t\t max=c;\n\t\t\t\t\t c=0;\n\t\t\t\t }\n\t\t\t }\n\t\t\t if(c>max)\n\t\t\t\t max=c;\n\t\t\t if(max>=3)\n\t\t\t\t System.out.println(\"Yes\");\n\t\t\t else\n\t\t\t\t System.out.println(\"No\");\n\t\t\t \n\t\t\t \n\t\t\t \n }\n\n\t\t \n\t\t \n\t\t \nstatic int[] input(int n) {\n\tint A[]=new int[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextInt();\n\t }\n\t return A;\n }\nstatic long[] inputL(int n) {\n\tlong A[]=new long[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextLong();\n\t }\n\t return A;\n }\nstatic String[] inputS(int n) {\n\tString A[]=new String[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.next();\n\t }\n\t return A;\n }\n\n\nstatic void input(int A[],int B[]) {\n\t for(int i=0;i<A.length;i++) {\n\t\t A[i]=sc.nextInt();\n\t\t B[i]=sc.nextInt();\n\t }\n}\nstatic long mod(long x) {\n\t return ((x%mod + mod)%mod);\n}\n\n static int i() {\n \t return sc.nextInt();\n }\n static String s() {\n \t return sc.next();\n }\n static long l() {\n \t return sc.nextLong();\n } \n static void sort(int[] arr){\n int n = arr.length;\n Random rnd = new Random();\n for(int i=0; i<n; ++i){\n int tmp = arr[i];\n int randomPos = i + rnd.nextInt(n-i);\n arr[i] = arr[randomPos];\n arr[randomPos] = tmp;\n }\n Arrays.sort(arr);\n }\n \n \n \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n} \n\n\n", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "public class Main \n\n{ \nstatic int mod=1000000007;\n\n\t static FastReader sc=new FastReader(); \n\t \n\t\t public static void main(String[] args) \n {\n\t\t\t int n=i();\n\t\t\t int max=0;\n\t\t\t int c=0;\n\t\t\t for(int i=0;i<n;i++) {\n\t\t\t\t int a=i();\n\t\t\t\t int b=i();\n\t\t\t\t if(a==b) {\n\t\t\t\t\t c++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t if(c>max)\n\t\t\t\t\t\t max=c;\n\t\t\t\t\t c=0;\n\t\t\t\t }\n\t\t\t }\n\t\t\t if(c>max)\n\t\t\t\t max=c;\n\t\t\t if(max>=3)\n\t\t\t\t System.out.println(\"Yes\");\n\t\t\t else\n\t\t\t\t System.out.println(\"No\");\n\t\t\t \n\t\t\t \n\t\t\t \n }\n\n\t\t \n\t\t \n\t\t \nstatic int[] input(int n) {\n\tint A[]=new int[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextInt();\n\t }\n\t return A;\n }\nstatic long[] inputL(int n) {\n\tlong A[]=new long[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextLong();\n\t }\n\t return A;\n }\nstatic String[] inputS(int n) {\n\tString A[]=new String[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.next();\n\t }\n\t return A;\n }\n\n\nstatic void input(int A[],int B[]) {\n\t for(int i=0;i<A.length;i++) {\n\t\t A[i]=sc.nextInt();\n\t\t B[i]=sc.nextInt();\n\t }\n}\nstatic long mod(long x) {\n\t return ((x%mod + mod)%mod);\n}\n\n static int i() {\n \t return sc.nextInt();\n }\n static String s() {\n \t return sc.next();\n }\n static long l() {\n \t return sc.nextLong();\n } \n static void sort(int[] arr){\n int n = arr.length;\n Random rnd = new Random();\n for(int i=0; i<n; ++i){\n int tmp = arr[i];\n int randomPos = i + rnd.nextInt(n-i);\n arr[i] = arr[randomPos];\n arr[randomPos] = tmp;\n }\n Arrays.sort(arr);\n }\n \n \n \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n}", "Main", "static int mod=1000000007;", "mod", "1000000007", "static FastReader sc=new FastReader();", "sc", "new FastReader()", "public static void main(String[] args) \n {\n\t\t\t int n=i();\n\t\t\t int max=0;\n\t\t\t int c=0;\n\t\t\t for(int i=0;i<n;i++) {\n\t\t\t\t int a=i();\n\t\t\t\t int b=i();\n\t\t\t\t if(a==b) {\n\t\t\t\t\t c++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t if(c>max)\n\t\t\t\t\t\t max=c;\n\t\t\t\t\t c=0;\n\t\t\t\t }\n\t\t\t }\n\t\t\t if(c>max)\n\t\t\t\t max=c;\n\t\t\t if(max>=3)\n\t\t\t\t System.out.println(\"Yes\");\n\t\t\t else\n\t\t\t\t System.out.println(\"No\");\n\t\t\t \n\t\t\t \n\t\t\t \n }", "main", "{\n\t\t\t int n=i();\n\t\t\t int max=0;\n\t\t\t int c=0;\n\t\t\t for(int i=0;i<n;i++) {\n\t\t\t\t int a=i();\n\t\t\t\t int b=i();\n\t\t\t\t if(a==b) {\n\t\t\t\t\t c++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t if(c>max)\n\t\t\t\t\t\t max=c;\n\t\t\t\t\t c=0;\n\t\t\t\t }\n\t\t\t }\n\t\t\t if(c>max)\n\t\t\t\t max=c;\n\t\t\t if(max>=3)\n\t\t\t\t System.out.println(\"Yes\");\n\t\t\t else\n\t\t\t\t System.out.println(\"No\");\n\t\t\t \n\t\t\t \n\t\t\t \n }", "int n=i();", "n", "i()", "i", "int max=0;", "max", "0", "int c=0;", "c", "0", "for(int i=0;i<n;i++) {\n\t\t\t\t int a=i();\n\t\t\t\t int b=i();\n\t\t\t\t if(a==b) {\n\t\t\t\t\t c++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t if(c>max)\n\t\t\t\t\t\t max=c;\n\t\t\t\t\t c=0;\n\t\t\t\t }\n\t\t\t }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t int a=i();\n\t\t\t\t int b=i();\n\t\t\t\t if(a==b) {\n\t\t\t\t\t c++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t if(c>max)\n\t\t\t\t\t\t max=c;\n\t\t\t\t\t c=0;\n\t\t\t\t }\n\t\t\t }", "{\n\t\t\t\t int a=i();\n\t\t\t\t int b=i();\n\t\t\t\t if(a==b) {\n\t\t\t\t\t c++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t if(c>max)\n\t\t\t\t\t\t max=c;\n\t\t\t\t\t c=0;\n\t\t\t\t }\n\t\t\t }", "int a=i();", "a", "i()", "i", "int b=i();", "b", "i()", "i", "if(a==b) {\n\t\t\t\t\t c++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t if(c>max)\n\t\t\t\t\t\t max=c;\n\t\t\t\t\t c=0;\n\t\t\t\t }", "a==b", "a", "b", "{\n\t\t\t\t\t c++;\n\t\t\t\t }", "c++", "c", "{\n\t\t\t\t\t if(c>max)\n\t\t\t\t\t\t max=c;\n\t\t\t\t\t c=0;\n\t\t\t\t }", "if(c>max)\n\t\t\t\t\t\t max=c;", "c>max", "c", "max", "max=c", "max", "c", "c=0", "c", "0", "if(c>max)\n\t\t\t\t max=c;", "c>max", "c", "max", "max=c", "max", "c", "if(max>=3)\n\t\t\t\t System.out.println(\"Yes\");\n\t\t\t else\n\t\t\t\t System.out.println(\"No\");", "max>=3", "max", "3", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "static int[] input(int n) {\n\tint A[]=new int[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextInt();\n\t }\n\t return A;\n }", "input", "{\n\tint A[]=new int[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextInt();\n\t }\n\t return A;\n }", "int A[]=new int[n];", "A", "new int[n]", "n", "for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextInt();\n\t }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t A[i]=sc.nextInt();\n\t }", "{\n\t\t A[i]=sc.nextInt();\n\t }", "A[i]=sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "return A;", "A", "int n", "n", "static long[] inputL(int n) {\n\tlong A[]=new long[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextLong();\n\t }\n\t return A;\n }", "inputL", "{\n\tlong A[]=new long[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextLong();\n\t }\n\t return A;\n }", "long A[]=new long[n];", "A", "new long[n]", "n", "for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextLong();\n\t }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t A[i]=sc.nextLong();\n\t }", "{\n\t\t A[i]=sc.nextLong();\n\t }", "A[i]=sc.nextLong()", "A[i]", "A", "i", "sc.nextLong()", "sc.nextLong", "sc", "return A;", "A", "int n", "n", "static String[] inputS(int n) {\n\tString A[]=new String[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.next();\n\t }\n\t return A;\n }", "inputS", "{\n\tString A[]=new String[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.next();\n\t }\n\t return A;\n }", "String A[]=new String[n];", "A", "new String[n]", "n", "for(int i=0;i<n;i++) {\n\t\t A[i]=sc.next();\n\t }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t A[i]=sc.next();\n\t }", "{\n\t\t A[i]=sc.next();\n\t }", "A[i]=sc.next()", "A[i]", "A", "i", "sc.next()", "sc.next", "sc", "return A;", "A", "int n", "n", "static void input(int A[],int B[]) {\n\t for(int i=0;i<A.length;i++) {\n\t\t A[i]=sc.nextInt();\n\t\t B[i]=sc.nextInt();\n\t }\n}", "input", "{\n\t for(int i=0;i<A.length;i++) {\n\t\t A[i]=sc.nextInt();\n\t\t B[i]=sc.nextInt();\n\t }\n}", "for(int i=0;i<A.length;i++) {\n\t\t A[i]=sc.nextInt();\n\t\t B[i]=sc.nextInt();\n\t }", "int i=0;", "int i=0;", "i", "0", "i<A.length", "i", "A.length", "A", "A.length", "i++", "i++", "i", "{\n\t\t A[i]=sc.nextInt();\n\t\t B[i]=sc.nextInt();\n\t }", "{\n\t\t A[i]=sc.nextInt();\n\t\t B[i]=sc.nextInt();\n\t }", "A[i]=sc.nextInt()", "A[i]", "A", "i", "sc.nextInt()", "sc.nextInt", "sc", "B[i]=sc.nextInt()", "B[i]", "B", "i", "sc.nextInt()", "sc.nextInt", "sc", "int A[]", "A", "int B[]", "B", "static long mod(long x) {\n\t return ((x%mod + mod)%mod);\n}", "mod", "{\n\t return ((x%mod + mod)%mod);\n}", "return ((x%mod + mod)%mod);", "((x%mod + mod)%mod)", "(x%mod + mod)", "x%mod", "x", "mod", "mod", "mod", "long x", "x", "static int i() {\n \t return sc.nextInt();\n }", "i", "{\n \t return sc.nextInt();\n }", "return sc.nextInt();", "sc.nextInt()", "sc.nextInt", "sc", "static String s() {\n \t return sc.next();\n }", "s", "{\n \t return sc.next();\n }", "return sc.next();", "sc.next()", "sc.next", "sc", "static long l() {\n \t return sc.nextLong();\n }", "l", "{\n \t return sc.nextLong();\n }", "return sc.nextLong();", "sc.nextLong()", "sc.nextLong", "sc", "static void sort(int[] arr){\n int n = arr.length;\n Random rnd = new Random();\n for(int i=0; i<n; ++i){\n int tmp = arr[i];\n int randomPos = i + rnd.nextInt(n-i);\n arr[i] = arr[randomPos];\n arr[randomPos] = tmp;\n }\n Arrays.sort(arr);\n }", "sort", "{\n int n = arr.length;\n Random rnd = new Random();\n for(int i=0; i<n; ++i){\n int tmp = arr[i];\n int randomPos = i + rnd.nextInt(n-i);\n arr[i] = arr[randomPos];\n arr[randomPos] = tmp;\n }\n Arrays.sort(arr);\n }", "int n = arr.length;", "n", "arr.length", "arr", "arr.length", "Random rnd = new Random();", "rnd", "new Random()", "for(int i=0; i<n; ++i){\n int tmp = arr[i];\n int randomPos = i + rnd.nextInt(n-i);\n arr[i] = arr[randomPos];\n arr[randomPos] = tmp;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "++i", "++i", "i", "{\n int tmp = arr[i];\n int randomPos = i + rnd.nextInt(n-i);\n arr[i] = arr[randomPos];\n arr[randomPos] = tmp;\n }", "{\n int tmp = arr[i];\n int randomPos = i + rnd.nextInt(n-i);\n arr[i] = arr[randomPos];\n arr[randomPos] = tmp;\n }", "int tmp = arr[i];", "tmp", "arr[i]", "arr", "i", "int randomPos = i + rnd.nextInt(n-i);", "randomPos", "i + rnd.nextInt(n-i)", "i", "rnd.nextInt(n-i)", "rnd.nextInt", "rnd", "n-i", "n", "i", "arr[i] = arr[randomPos]", "arr[i]", "arr", "i", "arr[randomPos]", "arr", "randomPos", "arr[randomPos] = tmp", "arr[randomPos]", "arr", "randomPos", "tmp", "Arrays.sort(arr)", "Arrays.sort", "Arrays", "arr", "int[] arr", "arr", "static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }", "FastReader", "{ \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }", "br = new BufferedReader(new\n InputStreamReader(System.in))", "br", "new BufferedReader(new\n InputStreamReader(System.in))", "String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }", "next", "{ \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }", "while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{ \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }", "try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }", "catch (IOException e) \n { \n e.printStackTrace(); \n }", "IOException e", "{ \n e.printStackTrace(); \n }", "e.printStackTrace()", "e.printStackTrace", "e", "{ \n st = new StringTokenizer(br.readLine()); \n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() \n { \n return Integer.parseInt(next()); \n }", "nextInt", "{ \n return Integer.parseInt(next()); \n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() \n { \n return Long.parseLong(next()); \n }", "nextLong", "{ \n return Long.parseLong(next()); \n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() \n { \n return Double.parseDouble(next()); \n }", "nextDouble", "{ \n return Double.parseDouble(next()); \n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }", "nextLine", "{ \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }", "String str = \"\";", "str", "\"\"", "try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }", "catch (IOException e) \n { \n e.printStackTrace(); \n }", "IOException e", "{ \n e.printStackTrace(); \n }", "e.printStackTrace()", "e.printStackTrace", "e", "{ \n str = br.readLine(); \n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main \n\n{ \nstatic int mod=1000000007;\n\n\t static FastReader sc=new FastReader(); \n\t \n\t\t public static void main(String[] args) \n {\n\t\t\t int n=i();\n\t\t\t int max=0;\n\t\t\t int c=0;\n\t\t\t for(int i=0;i<n;i++) {\n\t\t\t\t int a=i();\n\t\t\t\t int b=i();\n\t\t\t\t if(a==b) {\n\t\t\t\t\t c++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t if(c>max)\n\t\t\t\t\t\t max=c;\n\t\t\t\t\t c=0;\n\t\t\t\t }\n\t\t\t }\n\t\t\t if(c>max)\n\t\t\t\t max=c;\n\t\t\t if(max>=3)\n\t\t\t\t System.out.println(\"Yes\");\n\t\t\t else\n\t\t\t\t System.out.println(\"No\");\n\t\t\t \n\t\t\t \n\t\t\t \n }\n\n\t\t \n\t\t \n\t\t \nstatic int[] input(int n) {\n\tint A[]=new int[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextInt();\n\t }\n\t return A;\n }\nstatic long[] inputL(int n) {\n\tlong A[]=new long[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextLong();\n\t }\n\t return A;\n }\nstatic String[] inputS(int n) {\n\tString A[]=new String[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.next();\n\t }\n\t return A;\n }\n\n\nstatic void input(int A[],int B[]) {\n\t for(int i=0;i<A.length;i++) {\n\t\t A[i]=sc.nextInt();\n\t\t B[i]=sc.nextInt();\n\t }\n}\nstatic long mod(long x) {\n\t return ((x%mod + mod)%mod);\n}\n\n static int i() {\n \t return sc.nextInt();\n }\n static String s() {\n \t return sc.next();\n }\n static long l() {\n \t return sc.nextLong();\n } \n static void sort(int[] arr){\n int n = arr.length;\n Random rnd = new Random();\n for(int i=0; i<n; ++i){\n int tmp = arr[i];\n int randomPos = i + rnd.nextInt(n-i);\n arr[i] = arr[randomPos];\n arr[randomPos] = tmp;\n }\n Arrays.sort(arr);\n }\n \n \n \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n}", "public class Main \n\n{ \nstatic int mod=1000000007;\n\n\t static FastReader sc=new FastReader(); \n\t \n\t\t public static void main(String[] args) \n {\n\t\t\t int n=i();\n\t\t\t int max=0;\n\t\t\t int c=0;\n\t\t\t for(int i=0;i<n;i++) {\n\t\t\t\t int a=i();\n\t\t\t\t int b=i();\n\t\t\t\t if(a==b) {\n\t\t\t\t\t c++;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t if(c>max)\n\t\t\t\t\t\t max=c;\n\t\t\t\t\t c=0;\n\t\t\t\t }\n\t\t\t }\n\t\t\t if(c>max)\n\t\t\t\t max=c;\n\t\t\t if(max>=3)\n\t\t\t\t System.out.println(\"Yes\");\n\t\t\t else\n\t\t\t\t System.out.println(\"No\");\n\t\t\t \n\t\t\t \n\t\t\t \n }\n\n\t\t \n\t\t \n\t\t \nstatic int[] input(int n) {\n\tint A[]=new int[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextInt();\n\t }\n\t return A;\n }\nstatic long[] inputL(int n) {\n\tlong A[]=new long[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.nextLong();\n\t }\n\t return A;\n }\nstatic String[] inputS(int n) {\n\tString A[]=new String[n];\n\t for(int i=0;i<n;i++) {\n\t\t A[i]=sc.next();\n\t }\n\t return A;\n }\n\n\nstatic void input(int A[],int B[]) {\n\t for(int i=0;i<A.length;i++) {\n\t\t A[i]=sc.nextInt();\n\t\t B[i]=sc.nextInt();\n\t }\n}\nstatic long mod(long x) {\n\t return ((x%mod + mod)%mod);\n}\n\n static int i() {\n \t return sc.nextInt();\n }\n static String s() {\n \t return sc.next();\n }\n static long l() {\n \t return sc.nextLong();\n } \n static void sort(int[] arr){\n int n = arr.length;\n Random rnd = new Random();\n for(int i=0; i<n; ++i){\n int tmp = arr[i];\n int randomPos = i + rnd.nextInt(n-i);\n arr[i] = arr[randomPos];\n arr[randomPos] = tmp;\n }\n Arrays.sort(arr);\n }\n \n \n \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n}", "Main" ]
import java.util.*; import java.io.*; import java.math.*; public class Main { static int mod=1000000007; static FastReader sc=new FastReader(); public static void main(String[] args) { int n=i(); int max=0; int c=0; for(int i=0;i<n;i++) { int a=i(); int b=i(); if(a==b) { c++; } else { if(c>max) max=c; c=0; } } if(c>max) max=c; if(max>=3) System.out.println("Yes"); else System.out.println("No"); } static int[] input(int n) { int A[]=new int[n]; for(int i=0;i<n;i++) { A[i]=sc.nextInt(); } return A; } static long[] inputL(int n) { long A[]=new long[n]; for(int i=0;i<n;i++) { A[i]=sc.nextLong(); } return A; } static String[] inputS(int n) { String A[]=new String[n]; for(int i=0;i<n;i++) { A[i]=sc.next(); } return A; } static void input(int A[],int B[]) { for(int i=0;i<A.length;i++) { A[i]=sc.nextInt(); B[i]=sc.nextInt(); } } static long mod(long x) { return ((x%mod + mod)%mod); } static int i() { return sc.nextInt(); } static String s() { return sc.next(); } static long l() { return sc.nextLong(); } static void sort(int[] arr){ int n = arr.length; Random rnd = new Random(); for(int i=0; i<n; ++i){ int tmp = arr[i]; int randomPos = i + rnd.nextInt(n-i); arr[i] = arr[randomPos]; arr[randomPos] = tmp; } Arrays.sort(arr); } static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 2, 13, 17, 13, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 13, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 14, 13, 30, 4, 18, 13, 17, 29, 4, 18, 13, 17, 12, 13, 30, 0, 13, 20, 0, 13, 20, 4, 13, 4, 18, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 4, 18, 13, 2, 13, 17, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 4, 18, 13, 2, 13, 17, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 4, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 4, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 4, 13, 17, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 4, 18, 13, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 499, 8 ], [ 499, 9 ], [ 9, 10 ], [ 499, 11 ], [ 11, 12 ], [ 499, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 21, 23 ], [ 15, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 15, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 46, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 64, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 60, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 94, 99 ], [ 15, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 499, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 110, 112 ], [ 106, 113 ], [ 113, 114 ], [ 106, 115 ], [ 115, 116 ], [ 116, 117 ], [ 104, 118 ], [ 118, 119 ], [ 499, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 123, 133 ], [ 133, 134 ], [ 134, 135 ], [ 123, 136 ], [ 137, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 140, 144 ], [ 144, 145 ], [ 144, 146 ], [ 137, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 149, 151 ], [ 137, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 156, 157 ], [ 156, 158 ], [ 137, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 120, 164 ], [ 164, 165 ], [ 499, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 169, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 176, 178 ], [ 169, 179 ], [ 179, 180 ], [ 180, 181 ], [ 169, 182 ], [ 183, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 186, 190 ], [ 190, 191 ], [ 190, 192 ], [ 183, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 195, 197 ], [ 183, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 198, 202 ], [ 202, 203 ], [ 202, 204 ], [ 183, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 205, 209 ], [ 166, 210 ], [ 210, 211 ], [ 499, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 212, 216 ], [ 216, 217 ], [ 212, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 218, 224 ], [ 224, 225 ], [ 212, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 226, 232 ], [ 232, 233 ], [ 212, 234 ], [ 234, 235 ], [ 234, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 238, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 237, 246 ], [ 246, 247 ], [ 246, 248 ], [ 236, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 212, 253 ], [ 253, 254 ], [ 253, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 255, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 262, 264 ], [ 260, 265 ], [ 265, 266 ], [ 265, 267 ], [ 260, 268 ], [ 268, 269 ], [ 269, 270 ], [ 260, 271 ], [ 271, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 272, 276 ], [ 276, 277 ], [ 255, 278 ], [ 278, 279 ], [ 253, 280 ], [ 280, 281 ], [ 212, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 284, 289 ], [ 289, 290 ], [ 290, 291 ], [ 291, 292 ], [ 291, 293 ], [ 289, 294 ], [ 294, 295 ], [ 294, 296 ], [ 289, 297 ], [ 297, 298 ], [ 298, 299 ], [ 289, 300 ], [ 300, 301 ], [ 301, 302 ], [ 302, 303 ], [ 302, 304 ], [ 301, 305 ], [ 305, 306 ], [ 284, 307 ], [ 307, 308 ], [ 282, 309 ], [ 309, 310 ], [ 212, 311 ], [ 311, 312 ], [ 311, 313 ], [ 313, 314 ], [ 314, 315 ], [ 314, 316 ], [ 313, 318 ], [ 318, 319 ], [ 319, 320 ], [ 320, 321 ], [ 320, 322 ], [ 318, 323 ], [ 323, 324 ], [ 323, 325 ], [ 318, 326 ], [ 326, 327 ], [ 327, 328 ], [ 318, 329 ], [ 329, 330 ], [ 330, 331 ], [ 331, 332 ], [ 331, 333 ], [ 330, 334 ], [ 334, 335 ], [ 313, 336 ], [ 336, 337 ], [ 336, 338 ], [ 313, 339 ], [ 339, 340 ], [ 340, 341 ], [ 339, 342 ], [ 313, 343 ], [ 343, 344 ], [ 311, 345 ], [ 345, 346 ], [ 212, 347 ], [ 347, 348 ], [ 347, 349 ], [ 349, 350 ], [ 350, 351 ], [ 350, 352 ], [ 349, 354 ], [ 354, 355 ], [ 355, 356 ], [ 356, 357 ], [ 356, 358 ], [ 354, 359 ], [ 359, 360 ], [ 359, 361 ], [ 354, 362 ], [ 362, 363 ], [ 363, 364 ], [ 354, 365 ], [ 365, 366 ], [ 366, 367 ], [ 367, 368 ], [ 367, 369 ], [ 366, 370 ], [ 370, 371 ], [ 349, 372 ], [ 372, 373 ], [ 372, 374 ], [ 349, 375 ], [ 375, 376 ], [ 376, 377 ], [ 375, 378 ], [ 349, 379 ], [ 379, 380 ], [ 347, 381 ], [ 381, 382 ], [ 212, 383 ], [ 383, 384 ], [ 383, 385 ], [ 385, 386 ], [ 386, 387 ], [ 386, 388 ], [ 385, 390 ], [ 390, 391 ], [ 391, 392 ], [ 392, 393 ], [ 392, 394 ], [ 390, 395 ], [ 395, 396 ], [ 395, 397 ], [ 390, 398 ], [ 398, 399 ], [ 399, 400 ], [ 390, 401 ], [ 401, 402 ], [ 402, 403 ], [ 403, 404 ], [ 403, 405 ], [ 402, 406 ], [ 406, 407 ], [ 385, 408 ], [ 408, 409 ], [ 383, 410 ], [ 410, 411 ], [ 212, 412 ], [ 412, 413 ], [ 412, 414 ], [ 414, 415 ], [ 415, 416 ], [ 415, 417 ], [ 414, 419 ], [ 419, 420 ], [ 420, 421 ], [ 421, 422 ], [ 421, 423 ], [ 419, 424 ], [ 424, 425 ], [ 424, 426 ], [ 419, 427 ], [ 427, 428 ], [ 428, 429 ], [ 419, 430 ], [ 430, 431 ], [ 431, 432 ], [ 432, 433 ], [ 432, 434 ], [ 431, 435 ], [ 435, 436 ], [ 414, 437 ], [ 437, 438 ], [ 412, 439 ], [ 439, 440 ], [ 212, 441 ], [ 441, 442 ], [ 441, 443 ], [ 443, 444 ], [ 444, 445 ], [ 445, 446 ], [ 446, 447 ], [ 212, 448 ], [ 448, 449 ], [ 448, 450 ], [ 450, 451 ], [ 451, 452 ], [ 452, 453 ], [ 453, 454 ], [ 452, 455 ], [ 455, 456 ], [ 212, 457 ], [ 457, 458 ], [ 457, 459 ], [ 459, 460 ], [ 460, 461 ], [ 461, 462 ], [ 462, 463 ], [ 461, 464 ], [ 464, 465 ], [ 212, 466 ], [ 466, 467 ], [ 466, 468 ], [ 468, 469 ], [ 469, 470 ], [ 470, 471 ], [ 471, 472 ], [ 472, 473 ], [ 470, 474 ], [ 212, 475 ], [ 475, 476 ], [ 475, 477 ], [ 477, 478 ], [ 478, 479 ], [ 479, 480 ], [ 480, 481 ], [ 479, 482 ], [ 482, 483 ], [ 212, 484 ], [ 484, 485 ], [ 484, 486 ], [ 486, 487 ], [ 487, 488 ], [ 488, 489 ], [ 489, 490 ], [ 212, 491 ], [ 491, 492 ], [ 491, 493 ], [ 493, 494 ], [ 494, 495 ], [ 495, 496 ], [ 494, 497 ], [ 0, 498 ], [ 498, 499 ], [ 498, 500 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main{\n\tstatic void main() throws Exception{\n\t\tint n=sc.nextInt();\n\t\tint[][]in=new int[n][2];\n\t\tfor(int i=0;i<n;i++)in[i]=sc.intArr(2);\n\t\tfor(int i=0;i+2<n;i++) {\n\t\t\tboolean ok=true;\n\t\t\tfor(int j=i;j<i+3;j++) {\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}\n\t\t\tif(ok) {\n\t\t\t\tpw.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tpw.println(\"No\");\n\t}\n\tpublic static void main(String[] args) throws Exception {\n\t\tsc = new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n//\t\tint tc = 1;\n//\t\ttc=sc.nextInt();\n//\t\twhile (tc-- > 0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int[] intArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\n\tstatic void shuffle(int[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n\n\tstatic void shuffle(long[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n\tstatic void main() throws Exception{\n\t\tint n=sc.nextInt();\n\t\tint[][]in=new int[n][2];\n\t\tfor(int i=0;i<n;i++)in[i]=sc.intArr(2);\n\t\tfor(int i=0;i+2<n;i++) {\n\t\t\tboolean ok=true;\n\t\t\tfor(int j=i;j<i+3;j++) {\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}\n\t\t\tif(ok) {\n\t\t\t\tpw.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tpw.println(\"No\");\n\t}\n\tpublic static void main(String[] args) throws Exception {\n\t\tsc = new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n//\t\tint tc = 1;\n//\t\ttc=sc.nextInt();\n//\t\twhile (tc-- > 0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int[] intArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\n\tstatic void shuffle(int[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n\n\tstatic void shuffle(long[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n}", "Main", "static PrintWriter pw;", "pw", "static MScanner sc;", "sc", "static void main() throws Exception{\n\t\tint n=sc.nextInt();\n\t\tint[][]in=new int[n][2];\n\t\tfor(int i=0;i<n;i++)in[i]=sc.intArr(2);\n\t\tfor(int i=0;i+2<n;i++) {\n\t\t\tboolean ok=true;\n\t\t\tfor(int j=i;j<i+3;j++) {\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}\n\t\t\tif(ok) {\n\t\t\t\tpw.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tpw.println(\"No\");\n\t}", "main", "{\n\t\tint n=sc.nextInt();\n\t\tint[][]in=new int[n][2];\n\t\tfor(int i=0;i<n;i++)in[i]=sc.intArr(2);\n\t\tfor(int i=0;i+2<n;i++) {\n\t\t\tboolean ok=true;\n\t\t\tfor(int j=i;j<i+3;j++) {\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}\n\t\t\tif(ok) {\n\t\t\t\tpw.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tpw.println(\"No\");\n\t}", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[][]in=new int[n][2];", "in", "new int[n][2]", "n", "2", "for(int i=0;i<n;i++)in[i]=sc.intArr(2);", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "in[i]=sc.intArr(2);", "in[i]=sc.intArr(2)", "in[i]", "in", "i", "sc.intArr(2)", "sc.intArr", "sc", "2", "for(int i=0;i+2<n;i++) {\n\t\t\tboolean ok=true;\n\t\t\tfor(int j=i;j<i+3;j++) {\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}\n\t\t\tif(ok) {\n\t\t\t\tpw.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i+2<n", "i+2", "i", "2", "n", "i++", "i++", "i", "{\n\t\t\tboolean ok=true;\n\t\t\tfor(int j=i;j<i+3;j++) {\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}\n\t\t\tif(ok) {\n\t\t\t\tpw.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "{\n\t\t\tboolean ok=true;\n\t\t\tfor(int j=i;j<i+3;j++) {\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}\n\t\t\tif(ok) {\n\t\t\t\tpw.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "boolean ok=true;", "ok", "true", "for(int j=i;j<i+3;j++) {\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}", "int j=i;", "int j=i;", "j", "i", "j<i+3", "j", "i+3", "i", "3", "j++", "j++", "j", "{\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}", "{\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}", "ok&=(in[j][0]==in[j][1])", "ok", "(in[j][0]==in[j][1])", "in[j][0]", "in[j]", "in", "j", "0", "in[j][1]", "in[j]", "in", "j", "1", "if(ok) {\n\t\t\t\tpw.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "ok", "{\n\t\t\t\tpw.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "pw.println(\"Yes\")", "pw.println", "pw", "\"Yes\"", "return;", "pw.println(\"No\")", "pw.println", "pw", "\"No\"", "public static void main(String[] args) throws Exception {\n\t\tsc = new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n//\t\tint tc = 1;\n//\t\ttc=sc.nextInt();\n//\t\twhile (tc-- > 0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}", "main", "{\n\t\tsc = new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n//\t\tint tc = 1;\n//\t\ttc=sc.nextInt();\n//\t\twhile (tc-- > 0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}", "sc = new MScanner(System.in)", "sc", "new MScanner(System.in)", "pw = new PrintWriter(System.out)", "pw", "new PrintWriter(System.out)", "main()", "main", "pw.flush()", "pw.flush", "pw", "String[] args", "args", "static void shuffle(int[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}", "shuffle", "{\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}", "for (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < in.length", "i", "in.length", "in", "in.length", "i++", "i++", "i", "{\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}", "{\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}", "int idx = (int) (Math.random() * (i + 1));", "idx", "(int) (Math.random() * (i + 1))", "Math.random()", "Math.random", "Math", "(i + 1)", "i", "1", "int tmp = in[i];", "tmp", "in[i]", "in", "i", "in[i] = in[idx]", "in[i]", "in", "i", "in[idx]", "in", "idx", "in[idx] = tmp", "in[idx]", "in", "idx", "tmp", "int[] in", "in", "static void shuffle(long[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}", "shuffle", "{\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}", "for (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < in.length", "i", "in.length", "in", "in.length", "i++", "i++", "i", "{\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}", "{\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}", "int idx = (int) (Math.random() * (i + 1));", "idx", "(int) (Math.random() * (i + 1))", "Math.random()", "Math.random", "Math", "(i + 1)", "i", "1", "long tmp = in[i];", "tmp", "in[i]", "in", "i", "in[i] = in[idx]", "in[i]", "in", "i", "in[idx]", "in", "idx", "in[idx] = tmp", "in[idx]", "in", "idx", "tmp", "long[] in", "in", "static class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int[] intArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}", "MScanner", "StringTokenizer st;", "st", "BufferedReader br;", "br", "public MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}", "MScanner", "{\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}", "br = new BufferedReader(new InputStreamReader(system))", "br", "new BufferedReader(new InputStreamReader(system))", "InputStream system", "system", "public MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}", "MScanner", "{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}", "br = new BufferedReader(new FileReader(file))", "br", "new BufferedReader(new FileReader(file))", "String file", "file", "public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}", "next", "{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}", "while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public int[] intArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}", "intArr", "{\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}", "int[] in = new int[n];", "in", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "in[i] = nextInt();", "in[i] = nextInt()", "in[i]", "in", "i", "nextInt()", "nextInt", "return in;", "in", "int n", "n", "public long[] longArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}", "longArr", "{\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}", "long[] in = new long[n];", "in", "new long[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "in[i] = nextLong();", "in[i] = nextLong()", "in[i]", "in", "i", "nextLong()", "nextLong", "return in;", "in", "int n", "n", "public int[] intSortedArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}", "intSortedArr", "{\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}", "int[] in = new int[n];", "in", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "in[i] = nextInt();", "in[i] = nextInt()", "in[i]", "in", "i", "nextInt()", "nextInt", "shuffle(in)", "shuffle", "in", "Arrays.sort(in)", "Arrays.sort", "Arrays", "in", "return in;", "in", "int n", "n", "public long[] longSortedArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}", "longSortedArr", "{\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}", "long[] in = new long[n];", "in", "new long[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "in[i] = nextLong();", "in[i] = nextLong()", "in[i]", "in", "i", "nextLong()", "nextLong", "shuffle(in)", "shuffle", "in", "Arrays.sort(in)", "Arrays.sort", "Arrays", "in", "return in;", "in", "int n", "n", "public Integer[] IntegerArr(int n) throws IOException {\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}", "IntegerArr", "{\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}", "Integer[] in = new Integer[n];", "in", "new Integer[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "in[i] = nextInt();", "in[i] = nextInt()", "in[i]", "in", "i", "nextInt()", "nextInt", "return in;", "in", "int n", "n", "public Long[] LongArr(int n) throws IOException {\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}", "LongArr", "{\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}", "Long[] in = new Long[n];", "in", "new Long[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "in[i] = nextLong();", "in[i] = nextLong()", "in[i]", "in", "i", "nextLong()", "nextLong", "return in;", "in", "int n", "n", "public String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}", "nextLine", "{\n\t\t\treturn br.readLine();\n\t\t}", "return br.readLine();", "br.readLine()", "br.readLine", "br", "public int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "nextInt", "{\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "nextDouble", "{\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}", "nextChar", "{\n\t\t\treturn next().charAt(0);\n\t\t}", "return next().charAt(0);", "next().charAt(0)", "next().charAt", "next()", "next", "0", "public long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}", "nextLong", "{\n\t\t\treturn Long.parseLong(next());\n\t\t}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}", "ready", "{\n\t\t\treturn br.ready();\n\t\t}", "return br.ready();", "br.ready()", "br.ready", "br", "public void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}", "waitForInput", "{\n\t\t\tThread.sleep(3000);\n\t\t}", "Thread.sleep(3000)", "Thread.sleep", "Thread", "3000", "public class Main{\n\tstatic void main() throws Exception{\n\t\tint n=sc.nextInt();\n\t\tint[][]in=new int[n][2];\n\t\tfor(int i=0;i<n;i++)in[i]=sc.intArr(2);\n\t\tfor(int i=0;i+2<n;i++) {\n\t\t\tboolean ok=true;\n\t\t\tfor(int j=i;j<i+3;j++) {\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}\n\t\t\tif(ok) {\n\t\t\t\tpw.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tpw.println(\"No\");\n\t}\n\tpublic static void main(String[] args) throws Exception {\n\t\tsc = new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n//\t\tint tc = 1;\n//\t\ttc=sc.nextInt();\n//\t\twhile (tc-- > 0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int[] intArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\n\tstatic void shuffle(int[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n\n\tstatic void shuffle(long[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n}", "public class Main{\n\tstatic void main() throws Exception{\n\t\tint n=sc.nextInt();\n\t\tint[][]in=new int[n][2];\n\t\tfor(int i=0;i<n;i++)in[i]=sc.intArr(2);\n\t\tfor(int i=0;i+2<n;i++) {\n\t\t\tboolean ok=true;\n\t\t\tfor(int j=i;j<i+3;j++) {\n\t\t\t\tok&=(in[j][0]==in[j][1]);\n\t\t\t}\n\t\t\tif(ok) {\n\t\t\t\tpw.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tpw.println(\"No\");\n\t}\n\tpublic static void main(String[] args) throws Exception {\n\t\tsc = new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n//\t\tint tc = 1;\n//\t\ttc=sc.nextInt();\n//\t\twhile (tc-- > 0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int[] intArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\n\tstatic void shuffle(int[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n\n\tstatic void shuffle(long[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * (i + 1));\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ static void main() throws Exception{ int n=sc.nextInt(); int[][]in=new int[n][2]; for(int i=0;i<n;i++)in[i]=sc.intArr(2); for(int i=0;i+2<n;i++) { boolean ok=true; for(int j=i;j<i+3;j++) { ok&=(in[j][0]==in[j][1]); } if(ok) { pw.println("Yes"); return; } } pw.println("No"); } public static void main(String[] args) throws Exception { sc = new MScanner(System.in); pw = new PrintWriter(System.out); // int tc = 1; // tc=sc.nextInt(); // while (tc-- > 0) main(); pw.flush(); } static PrintWriter pw; static MScanner sc; static class MScanner { StringTokenizer st; BufferedReader br; public MScanner(InputStream system) { br = new BufferedReader(new InputStreamReader(system)); } public MScanner(String file) throws Exception { br = new BufferedReader(new FileReader(file)); } public String next() throws IOException { while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine()); return st.nextToken(); } public int[] intArr(int n) throws IOException { int[] in = new int[n]; for (int i = 0; i < n; i++) in[i] = nextInt(); return in; } public long[] longArr(int n) throws IOException { long[] in = new long[n]; for (int i = 0; i < n; i++) in[i] = nextLong(); return in; } public int[] intSortedArr(int n) throws IOException { int[] in = new int[n]; for (int i = 0; i < n; i++) in[i] = nextInt(); shuffle(in); Arrays.sort(in); return in; } public long[] longSortedArr(int n) throws IOException { long[] in = new long[n]; for (int i = 0; i < n; i++) in[i] = nextLong(); shuffle(in); Arrays.sort(in); return in; } public Integer[] IntegerArr(int n) throws IOException { Integer[] in = new Integer[n]; for (int i = 0; i < n; i++) in[i] = nextInt(); return in; } public Long[] LongArr(int n) throws IOException { Long[] in = new Long[n]; for (int i = 0; i < n; i++) in[i] = nextLong(); return in; } public String nextLine() throws IOException { return br.readLine(); } public int nextInt() throws IOException { return Integer.parseInt(next()); } public double nextDouble() throws IOException { return Double.parseDouble(next()); } public char nextChar() throws IOException { return next().charAt(0); } public long nextLong() throws IOException { return Long.parseLong(next()); } public boolean ready() throws IOException { return br.ready(); } public void waitForInput() throws InterruptedException { Thread.sleep(3000); } } static void shuffle(int[] in) { for (int i = 0; i < in.length; i++) { int idx = (int) (Math.random() * (i + 1)); int tmp = in[i]; in[i] = in[idx]; in[idx] = tmp; } } static void shuffle(long[] in) { for (int i = 0; i < in.length; i++) { int idx = (int) (Math.random() * (i + 1)); long tmp = in[i]; in[i] = in[idx]; in[idx] = tmp; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 40, 13, 0, 13, 17, 14, 2, 13, 17, 3, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 76, 5 ], [ 76, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 32, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 6, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String [] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int cnt = 0;\n for(int i=0;i<N;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a==b)cnt++;\n else cnt = 0;\n if(cnt==3) break;\n }\n if(cnt==3) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String [] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int cnt = 0;\n for(int i=0;i<N;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a==b)cnt++;\n else cnt = 0;\n if(cnt==3) break;\n }\n if(cnt==3) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "Main", "public static void main(String [] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int cnt = 0;\n for(int i=0;i<N;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a==b)cnt++;\n else cnt = 0;\n if(cnt==3) break;\n }\n if(cnt==3) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int cnt = 0;\n for(int i=0;i<N;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a==b)cnt++;\n else cnt = 0;\n if(cnt==3) break;\n }\n if(cnt==3) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int cnt = 0;", "cnt", "0", "for(int i=0;i<N;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a==b)cnt++;\n else cnt = 0;\n if(cnt==3) break;\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a==b)cnt++;\n else cnt = 0;\n if(cnt==3) break;\n }", "{\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a==b)cnt++;\n else cnt = 0;\n if(cnt==3) break;\n }", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "if(a==b)cnt++;\n else cnt = 0;", "a==b", "a", "b", "cnt++", "cnt", "cnt = 0", "cnt", "0", "if(cnt==3) break;", "cnt==3", "cnt", "3", "break;", "if(cnt==3) System.out.println(\"Yes\");\n else System.out.println(\"No\");", "cnt==3", "cnt", "3", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String [] args", "args", "public class Main {\n public static void main(String [] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int cnt = 0;\n for(int i=0;i<N;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a==b)cnt++;\n else cnt = 0;\n if(cnt==3) break;\n }\n if(cnt==3) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String [] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int cnt = 0;\n for(int i=0;i<N;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n if(a==b)cnt++;\n else cnt = 0;\n if(cnt==3) break;\n }\n if(cnt==3) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String [] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int cnt = 0; for(int i=0;i<N;i++){ int a = sc.nextInt(); int b = sc.nextInt(); if(a==b)cnt++; else cnt = 0; if(cnt==3) break; } if(cnt==3) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 30, 0, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 83, 90 ], [ 68, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] d1 = new int[n];\n int[] d2 = new int[n];\n for (int i = 0; i < n; i++) {\n d1[i] = sc.nextInt();\n d2[i] = sc.nextInt();\n }\n int count = 0;\n for (int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n count++;\n if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] d1 = new int[n];\n int[] d2 = new int[n];\n for (int i = 0; i < n; i++) {\n d1[i] = sc.nextInt();\n d2[i] = sc.nextInt();\n }\n int count = 0;\n for (int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n count++;\n if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] d1 = new int[n];\n int[] d2 = new int[n];\n for (int i = 0; i < n; i++) {\n d1[i] = sc.nextInt();\n d2[i] = sc.nextInt();\n }\n int count = 0;\n for (int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n count++;\n if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] d1 = new int[n];\n int[] d2 = new int[n];\n for (int i = 0; i < n; i++) {\n d1[i] = sc.nextInt();\n d2[i] = sc.nextInt();\n }\n int count = 0;\n for (int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n count++;\n if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] d1 = new int[n];", "d1", "new int[n]", "n", "int[] d2 = new int[n];", "d2", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n d1[i] = sc.nextInt();\n d2[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n d1[i] = sc.nextInt();\n d2[i] = sc.nextInt();\n }", "{\n d1[i] = sc.nextInt();\n d2[i] = sc.nextInt();\n }", "d1[i] = sc.nextInt()", "d1[i]", "d1", "i", "sc.nextInt()", "sc.nextInt", "sc", "d2[i] = sc.nextInt()", "d2[i]", "d2", "i", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "for (int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n count++;\n if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if(d1[i] == d2[i]) {\n count++;\n if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }", "{\n if(d1[i] == d2[i]) {\n count++;\n if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }", "if(d1[i] == d2[i]) {\n count++;\n if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }", "d1[i] == d2[i]", "d1[i]", "d1", "i", "d2[i]", "d2", "i", "{\n count++;\n if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }\n }", "count++", "count", "if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }", "count > 2", "count", "2", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "{\n count = 0;\n }", "count = 0", "count", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] d1 = new int[n];\n int[] d2 = new int[n];\n for (int i = 0; i < n; i++) {\n d1[i] = sc.nextInt();\n d2[i] = sc.nextInt();\n }\n int count = 0;\n for (int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n count++;\n if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] d1 = new int[n];\n int[] d2 = new int[n];\n for (int i = 0; i < n; i++) {\n d1[i] = sc.nextInt();\n d2[i] = sc.nextInt();\n }\n int count = 0;\n for (int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n count++;\n if(count > 2) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] d1 = new int[n]; int[] d2 = new int[n]; for (int i = 0; i < n; i++) { d1[i] = sc.nextInt(); d2[i] = sc.nextInt(); } int count = 0; for (int i = 0; i < n; i++) { if(d1[i] == d2[i]) { count++; if(count > 2) { System.out.println("Yes"); return; } } else { count = 0; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 0, 18, 36, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 30, 0, 13, 17, 4, 18, 18, 13, 13, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 6 ], [ 6, 7 ], [ 85, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 85, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 29, 31 ], [ 18, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 66, 73 ], [ 55, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 18, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.*;\n\n/**\n * B Main\n *\n * @date 2020.09.19\n * @author 焼き鮭 <[email protected]>\n */\n\npublic class Main {\n Scanner sc;\n\n public static void main(String[] args) {\n new Main().execute();\n }\n\n public void execute() {\n this.sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n int d0 = sc.nextInt();\n int d1 = sc.nextInt();\n if (d0 == d1) {\n cnt++;\n if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n cnt = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n Scanner sc;\n\n public static void main(String[] args) {\n new Main().execute();\n }\n\n public void execute() {\n this.sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n int d0 = sc.nextInt();\n int d1 = sc.nextInt();\n if (d0 == d1) {\n cnt++;\n if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n cnt = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main", "Scanner sc;", "sc", "public static void main(String[] args) {\n new Main().execute();\n }", "main", "{\n new Main().execute();\n }", "new Main().execute()", "new Main().execute", "new Main()", "String[] args", "args", "public void execute() {\n this.sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n int d0 = sc.nextInt();\n int d1 = sc.nextInt();\n if (d0 == d1) {\n cnt++;\n if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n cnt = 0;\n }\n }\n System.out.println(\"No\");\n }", "execute", "{\n this.sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n int d0 = sc.nextInt();\n int d1 = sc.nextInt();\n if (d0 == d1) {\n cnt++;\n if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n cnt = 0;\n }\n }\n System.out.println(\"No\");\n }", "this.sc = new Scanner(System.in)", "this.sc", "this", "this.sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int cnt = 0;", "cnt", "0", "for (int i = 0; i < n; i++) {\n int d0 = sc.nextInt();\n int d1 = sc.nextInt();\n if (d0 == d1) {\n cnt++;\n if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n cnt = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int d0 = sc.nextInt();\n int d1 = sc.nextInt();\n if (d0 == d1) {\n cnt++;\n if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n cnt = 0;\n }\n }", "{\n int d0 = sc.nextInt();\n int d1 = sc.nextInt();\n if (d0 == d1) {\n cnt++;\n if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n cnt = 0;\n }\n }", "int d0 = sc.nextInt();", "d0", "sc.nextInt()", "sc.nextInt", "sc", "int d1 = sc.nextInt();", "d1", "sc.nextInt()", "sc.nextInt", "sc", "if (d0 == d1) {\n cnt++;\n if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n cnt = 0;\n }", "d0 == d1", "d0", "d1", "{\n cnt++;\n if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n }", "cnt++", "cnt", "if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }", "cnt >= 3", "cnt", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "{\n cnt = 0;\n }", "cnt = 0", "cnt", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "public class Main {\n Scanner sc;\n\n public static void main(String[] args) {\n new Main().execute();\n }\n\n public void execute() {\n this.sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n int d0 = sc.nextInt();\n int d1 = sc.nextInt();\n if (d0 == d1) {\n cnt++;\n if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n cnt = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "public class Main {\n Scanner sc;\n\n public static void main(String[] args) {\n new Main().execute();\n }\n\n public void execute() {\n this.sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int cnt = 0;\n for (int i = 0; i < n; i++) {\n int d0 = sc.nextInt();\n int d1 = sc.nextInt();\n if (d0 == d1) {\n cnt++;\n if (cnt >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n } else {\n cnt = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.*; /** * B Main * * @date 2020.09.19 * @author 焼き鮭 <[email protected]> */ public class Main { Scanner sc; public static void main(String[] args) { new Main().execute(); } public void execute() { this.sc = new Scanner(System.in); int n = sc.nextInt(); int cnt = 0; for (int i = 0; i < n; i++) { int d0 = sc.nextInt(); int d1 = sc.nextInt(); if (d0 == d1) { cnt++; if (cnt >= 3) { System.out.println("Yes"); return; } } else { cnt = 0; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 4, 13, 17, 4, 13, 17, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 40, 13, 14, 2, 13, 17, 30, 0, 13, 17, 3, 30, 0, 13, 17, 4, 18, 13, 8, 13, 17, 17, 4, 18, 13, 23, 13, 12, 13, 30, 14, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 0, 13, 20, 30, 0, 13, 20, 0, 13, 20, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 323, 8 ], [ 323, 9 ], [ 9, 10 ], [ 323, 11 ], [ 11, 12 ], [ 323, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 19, 21 ], [ 13, 22 ], [ 22, 23 ], [ 323, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 45, 47 ], [ 39, 49 ], [ 49, 50 ], [ 49, 51 ], [ 39, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 39, 80 ], [ 80, 81 ], [ 80, 82 ], [ 39, 83 ], [ 83, 84 ], [ 83, 85 ], [ 39, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 86, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 99, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 39, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 126, 127 ], [ 126, 128 ], [ 126, 129 ], [ 26, 130 ], [ 130, 131 ], [ 131, 132 ], [ 24, 133 ], [ 133, 134 ], [ 323, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 141, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 152, 154 ], [ 138, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 159, 161 ], [ 135, 162 ], [ 162, 163 ], [ 323, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 164, 168 ], [ 168, 169 ], [ 164, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 173, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 170, 184 ], [ 184, 185 ], [ 164, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 189, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 199, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 188, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 164, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 218, 221 ], [ 221, 222 ], [ 164, 223 ], [ 223, 224 ], [ 223, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 227, 230 ], [ 230, 231 ], [ 164, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 236, 239 ], [ 239, 240 ], [ 164, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 247, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 247, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 257, 258 ], [ 258, 259 ], [ 243, 260 ], [ 260, 261 ], [ 164, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 265, 267 ], [ 264, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 271, 273 ], [ 269, 274 ], [ 274, 275 ], [ 274, 276 ], [ 269, 277 ], [ 277, 278 ], [ 278, 279 ], [ 269, 280 ], [ 281, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 282, 286 ], [ 286, 287 ], [ 264, 288 ], [ 288, 289 ], [ 262, 290 ], [ 290, 291 ], [ 164, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 294, 299 ], [ 299, 300 ], [ 300, 301 ], [ 301, 302 ], [ 301, 303 ], [ 299, 304 ], [ 304, 305 ], [ 304, 306 ], [ 299, 307 ], [ 307, 308 ], [ 308, 309 ], [ 299, 310 ], [ 311, 311 ], [ 311, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 312, 316 ], [ 316, 317 ], [ 294, 318 ], [ 318, 319 ], [ 292, 320 ], [ 320, 321 ], [ 0, 322 ], [ 322, 323 ], [ 322, 324 ] ]
[ "//package atcoder.beginner179;\n\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n\n public static void main(String[] args) {\n //initReaderPrinter(true);\n initReaderPrinter(false);\n //solve(in.nextInt());\n solve(1); \n }\n\n static void solve(int testCnt) {\n for (int testNumber = 0; testNumber < testCnt; testNumber++) {\n int n = in.nextInt();\n int[] d1 = new int[n], d2 = new int[n];\n for(int i = 0; i < n; i++) {\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }\n int cnt = 0;\n boolean found = false;\n for(int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }\n out.print(found ? \"Yes\" : \"No\");\n } \n out.close();\n }\n\n static void initReaderPrinter(boolean test) {\n if (test) {\n try {\n in = new InputReader(new FileInputStream(\"src/input.in\"));\n out = new PrintWriter(new FileOutputStream(\"src/output.out\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n }\n }\n\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n InputReader(InputStream stream) {\n try {\n br = new BufferedReader(new InputStreamReader(stream), 32768);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n Integer[] nextIntArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n Long[] nextLongArray(int n) {\n Long[] a = new Long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }\n }\n}\n\n", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n static InputReader in;\n static PrintWriter out;\n\n public static void main(String[] args) {\n //initReaderPrinter(true);\n initReaderPrinter(false);\n //solve(in.nextInt());\n solve(1); \n }\n\n static void solve(int testCnt) {\n for (int testNumber = 0; testNumber < testCnt; testNumber++) {\n int n = in.nextInt();\n int[] d1 = new int[n], d2 = new int[n];\n for(int i = 0; i < n; i++) {\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }\n int cnt = 0;\n boolean found = false;\n for(int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }\n out.print(found ? \"Yes\" : \"No\");\n } \n out.close();\n }\n\n static void initReaderPrinter(boolean test) {\n if (test) {\n try {\n in = new InputReader(new FileInputStream(\"src/input.in\"));\n out = new PrintWriter(new FileOutputStream(\"src/output.out\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n }\n }\n\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n InputReader(InputStream stream) {\n try {\n br = new BufferedReader(new InputStreamReader(stream), 32768);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n Integer[] nextIntArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n Long[] nextLongArray(int n) {\n Long[] a = new Long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }\n }\n}", "Main", "static InputReader in;", "in", "static PrintWriter out;", "out", "public static void main(String[] args) {\n //initReaderPrinter(true);\n initReaderPrinter(false);\n //solve(in.nextInt());\n solve(1); \n }", "main", "{\n //initReaderPrinter(true);\n initReaderPrinter(false);\n //solve(in.nextInt());\n solve(1); \n }", "initReaderPrinter(false)", "initReaderPrinter", "false", "solve(1)", "solve", "1", "String[] args", "args", "static void solve(int testCnt) {\n for (int testNumber = 0; testNumber < testCnt; testNumber++) {\n int n = in.nextInt();\n int[] d1 = new int[n], d2 = new int[n];\n for(int i = 0; i < n; i++) {\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }\n int cnt = 0;\n boolean found = false;\n for(int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }\n out.print(found ? \"Yes\" : \"No\");\n } \n out.close();\n }", "solve", "{\n for (int testNumber = 0; testNumber < testCnt; testNumber++) {\n int n = in.nextInt();\n int[] d1 = new int[n], d2 = new int[n];\n for(int i = 0; i < n; i++) {\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }\n int cnt = 0;\n boolean found = false;\n for(int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }\n out.print(found ? \"Yes\" : \"No\");\n } \n out.close();\n }", "for (int testNumber = 0; testNumber < testCnt; testNumber++) {\n int n = in.nextInt();\n int[] d1 = new int[n], d2 = new int[n];\n for(int i = 0; i < n; i++) {\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }\n int cnt = 0;\n boolean found = false;\n for(int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }\n out.print(found ? \"Yes\" : \"No\");\n }", "int testNumber = 0;", "int testNumber = 0;", "testNumber", "0", "testNumber < testCnt", "testNumber", "testCnt", "testNumber++", "testNumber++", "testNumber", "{\n int n = in.nextInt();\n int[] d1 = new int[n], d2 = new int[n];\n for(int i = 0; i < n; i++) {\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }\n int cnt = 0;\n boolean found = false;\n for(int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }\n out.print(found ? \"Yes\" : \"No\");\n }", "{\n int n = in.nextInt();\n int[] d1 = new int[n], d2 = new int[n];\n for(int i = 0; i < n; i++) {\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }\n int cnt = 0;\n boolean found = false;\n for(int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }\n out.print(found ? \"Yes\" : \"No\");\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int[] d1 = new int[n]", "d1", "new int[n]", "n", "d2 = new int[n];", "d2", "new int[n]", "n", "for(int i = 0; i < n; i++) {\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }", "{\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }", "d1[i] = in.nextInt()", "d1[i]", "d1", "i", "in.nextInt()", "in.nextInt", "in", "d2[i] = in.nextInt()", "d2[i]", "d2", "i", "in.nextInt()", "in.nextInt", "in", "int cnt = 0;", "cnt", "0", "boolean found = false;", "found", "false", "for(int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }", "{\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }", "if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }", "d1[i] == d2[i]", "d1[i]", "d1", "i", "d2[i]", "d2", "i", "{\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }", "cnt++", "cnt", "if(cnt == 3) {\n found = true;\n break;\n }", "cnt == 3", "cnt", "3", "{\n found = true;\n break;\n }", "found = true", "found", "true", "break;", "{\n cnt = 0;\n }", "cnt = 0", "cnt", "0", "out.print(found ? \"Yes\" : \"No\")", "out.print", "out", "found ? \"Yes\" : \"No\"", "found", "\"Yes\"", "\"No\"", "out.close()", "out.close", "out", "int testCnt", "testCnt", "static void initReaderPrinter(boolean test) {\n if (test) {\n try {\n in = new InputReader(new FileInputStream(\"src/input.in\"));\n out = new PrintWriter(new FileOutputStream(\"src/output.out\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n }\n }", "initReaderPrinter", "{\n if (test) {\n try {\n in = new InputReader(new FileInputStream(\"src/input.in\"));\n out = new PrintWriter(new FileOutputStream(\"src/output.out\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n }\n }", "if (test) {\n try {\n in = new InputReader(new FileInputStream(\"src/input.in\"));\n out = new PrintWriter(new FileOutputStream(\"src/output.out\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n }", "test", "{\n try {\n in = new InputReader(new FileInputStream(\"src/input.in\"));\n out = new PrintWriter(new FileOutputStream(\"src/output.out\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n in = new InputReader(new FileInputStream(\"src/input.in\"));\n out = new PrintWriter(new FileOutputStream(\"src/output.out\"));\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n in = new InputReader(new FileInputStream(\"src/input.in\"));\n out = new PrintWriter(new FileOutputStream(\"src/output.out\"));\n }", "in = new InputReader(new FileInputStream(\"src/input.in\"))", "in", "new InputReader(new FileInputStream(\"src/input.in\"))", "out = new PrintWriter(new FileOutputStream(\"src/output.out\"))", "out", "new PrintWriter(new FileOutputStream(\"src/output.out\"))", "{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n }", "in = new InputReader(System.in)", "in", "new InputReader(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "boolean test", "test", "static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n InputReader(InputStream stream) {\n try {\n br = new BufferedReader(new InputStreamReader(stream), 32768);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n Integer[] nextIntArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n Long[] nextLongArray(int n) {\n Long[] a = new Long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }\n }", "InputReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "InputReader(InputStream stream) {\n try {\n br = new BufferedReader(new InputStreamReader(stream), 32768);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "InputReader", "{\n try {\n br = new BufferedReader(new InputStreamReader(stream), 32768);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "try {\n br = new BufferedReader(new InputStreamReader(stream), 32768);\n } catch (Exception e) {\n e.printStackTrace();\n }", "catch (Exception e) {\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n br = new BufferedReader(new InputStreamReader(stream), 32768);\n }", "br = new BufferedReader(new InputStreamReader(stream), 32768)", "br", "new BufferedReader(new InputStreamReader(stream), 32768)", "InputStream stream", "stream", "String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "Integer[] nextIntArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }", "nextIntArray", "{\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }", "Integer[] a = new Integer[n];", "a", "new Integer[n]", "n", "for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = nextInt();\n }", "{\n a[i] = nextInt();\n }", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "Long[] nextLongArray(int n) {\n Long[] a = new Long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }", "nextLongArray", "{\n Long[] a = new Long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }", "Long[] a = new Long[n];", "a", "new Long[n]", "n", "for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = nextLong();\n }", "{\n a[i] = nextLong();\n }", "a[i] = nextLong()", "a[i]", "a", "i", "nextLong()", "nextLong", "return a;", "a", "int n", "n", "public class Main {\n static InputReader in;\n static PrintWriter out;\n\n public static void main(String[] args) {\n //initReaderPrinter(true);\n initReaderPrinter(false);\n //solve(in.nextInt());\n solve(1); \n }\n\n static void solve(int testCnt) {\n for (int testNumber = 0; testNumber < testCnt; testNumber++) {\n int n = in.nextInt();\n int[] d1 = new int[n], d2 = new int[n];\n for(int i = 0; i < n; i++) {\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }\n int cnt = 0;\n boolean found = false;\n for(int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }\n out.print(found ? \"Yes\" : \"No\");\n } \n out.close();\n }\n\n static void initReaderPrinter(boolean test) {\n if (test) {\n try {\n in = new InputReader(new FileInputStream(\"src/input.in\"));\n out = new PrintWriter(new FileOutputStream(\"src/output.out\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n }\n }\n\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n InputReader(InputStream stream) {\n try {\n br = new BufferedReader(new InputStreamReader(stream), 32768);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n Integer[] nextIntArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n Long[] nextLongArray(int n) {\n Long[] a = new Long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }\n }\n}", "public class Main {\n static InputReader in;\n static PrintWriter out;\n\n public static void main(String[] args) {\n //initReaderPrinter(true);\n initReaderPrinter(false);\n //solve(in.nextInt());\n solve(1); \n }\n\n static void solve(int testCnt) {\n for (int testNumber = 0; testNumber < testCnt; testNumber++) {\n int n = in.nextInt();\n int[] d1 = new int[n], d2 = new int[n];\n for(int i = 0; i < n; i++) {\n d1[i] = in.nextInt();\n d2[i] = in.nextInt();\n }\n int cnt = 0;\n boolean found = false;\n for(int i = 0; i < n; i++) {\n if(d1[i] == d2[i]) {\n cnt++;\n if(cnt == 3) {\n found = true;\n break;\n }\n }\n else {\n cnt = 0;\n }\n }\n out.print(found ? \"Yes\" : \"No\");\n } \n out.close();\n }\n\n static void initReaderPrinter(boolean test) {\n if (test) {\n try {\n in = new InputReader(new FileInputStream(\"src/input.in\"));\n out = new PrintWriter(new FileOutputStream(\"src/output.out\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n }\n }\n\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n InputReader(InputStream stream) {\n try {\n br = new BufferedReader(new InputStreamReader(stream), 32768);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n Integer[] nextIntArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n Long[] nextLongArray(int n) {\n Long[] a = new Long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }\n }\n}", "Main" ]
//package atcoder.beginner179; import java.io.*; import java.util.*; public class Main { static InputReader in; static PrintWriter out; public static void main(String[] args) { //initReaderPrinter(true); initReaderPrinter(false); //solve(in.nextInt()); solve(1); } static void solve(int testCnt) { for (int testNumber = 0; testNumber < testCnt; testNumber++) { int n = in.nextInt(); int[] d1 = new int[n], d2 = new int[n]; for(int i = 0; i < n; i++) { d1[i] = in.nextInt(); d2[i] = in.nextInt(); } int cnt = 0; boolean found = false; for(int i = 0; i < n; i++) { if(d1[i] == d2[i]) { cnt++; if(cnt == 3) { found = true; break; } } else { cnt = 0; } } out.print(found ? "Yes" : "No"); } out.close(); } static void initReaderPrinter(boolean test) { if (test) { try { in = new InputReader(new FileInputStream("src/input.in")); out = new PrintWriter(new FileOutputStream("src/output.out")); } catch (IOException e) { e.printStackTrace(); } } else { in = new InputReader(System.in); out = new PrintWriter(System.out); } } static class InputReader { BufferedReader br; StringTokenizer st; InputReader(InputStream stream) { try { br = new BufferedReader(new InputStreamReader(stream), 32768); } catch (Exception e) { e.printStackTrace(); } } String next() { while (st == null || !st.hasMoreTokens()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } Integer[] nextIntArray(int n) { Integer[] a = new Integer[n]; for (int i = 0; i < n; i++) { a[i] = nextInt(); } return a; } Long[] nextLongArray(int n) { Long[] a = new Long[n]; for (int i = 0; i < n; i++) { a[i] = nextLong(); } return a; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 2, 17, 17, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 17, 2, 18, 13, 2, 13, 17, 17, 2, 18, 13, 2, 13, 17, 17, 30, 4, 18, 13, 17, 29, 4, 18, 13, 17, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 4, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 6, 13, 41, 13, 12, 13, 30, 4, 13, 18, 13, 13, 12, 13, 30, 0, 18, 36, 13, 20, 23, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 4, 18, 18, 36, 13, 12, 13, 30, 41, 13, 4, 13, 14, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 37, 20, 29, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 40, 17, 30, 41, 13, 17, 41, 13, 4, 18, 13, 42, 2, 2, 2, 2, 13, 17, 2, 17, 13, 2, 13, 17, 2, 13, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 2, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 17, 13, 29, 2, 13, 13, 0, 13, 17, 0, 13, 2, 13, 17, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 18, 13, 13, 30, 41, 13, 17, 41, 13, 4, 18, 13, 42, 2, 2, 2, 2, 13, 17, 2, 17, 13, 2, 13, 17, 2, 13, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 2, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 17, 13, 3, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 13, 17, 29, 2, 13, 13, 41, 13, 17, 0, 13, 4, 18, 13, 42, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 17, 0, 13, 4, 18, 13, 29, 2, 2, 13, 13, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 17, 30, 41, 13, 4, 18, 13, 42, 4, 18, 13, 13, 30, 0, 13, 4, 18, 13, 29, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 17, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 4, 18, 13, 13, 30, 0, 13, 4, 18, 13, 42, 2, 2, 13, 40, 17, 40, 4, 18, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 18, 13, 29, 4, 18, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 17, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 2, 13, 40, 17, 2, 13, 17, 30, 4, 18, 13, 13, 0, 13, 4, 18, 13, 29, 4, 18, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 4, 13, 17, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 4, 13, 17, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 795, 11 ], [ 795, 12 ], [ 12, 13 ], [ 795, 14 ], [ 14, 15 ], [ 795, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 18, 20 ], [ 795, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 23, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 74, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 80, 86 ], [ 74, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 72, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 94, 99 ], [ 23, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 795, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 104, 110 ], [ 110, 111 ], [ 795, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 118, 120 ], [ 114, 121 ], [ 121, 122 ], [ 114, 123 ], [ 123, 124 ], [ 124, 125 ], [ 114, 126 ], [ 126, 127 ], [ 127, 128 ], [ 114, 129 ], [ 129, 130 ], [ 130, 131 ], [ 795, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 132, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 141, 143 ], [ 132, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 144, 152 ], [ 152, 153 ], [ 132, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 157, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 132, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 172, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 181, 183 ], [ 178, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 186, 188 ], [ 177, 189 ], [ 189, 190 ], [ 172, 191 ], [ 191, 192 ], [ 132, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 199, 203 ], [ 203, 204 ], [ 204, 205 ], [ 196, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 206, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 206, 215 ], [ 215, 216 ], [ 217, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 222, 223 ], [ 222, 224 ], [ 217, 225 ], [ 225, 226 ], [ 225, 227 ], [ 217, 228 ], [ 228, 229 ], [ 228, 230 ], [ 215, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 235, 236 ], [ 206, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 237, 241 ], [ 241, 242 ], [ 242, 243 ], [ 242, 244 ], [ 244, 245 ], [ 241, 246 ], [ 246, 247 ], [ 246, 248 ], [ 248, 249 ], [ 249, 250 ], [ 237, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 251, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 258, 259 ], [ 259, 260 ], [ 206, 261 ], [ 261, 262 ], [ 261, 263 ], [ 263, 264 ], [ 263, 265 ], [ 206, 266 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 271, 272 ], [ 272, 273 ], [ 268, 274 ], [ 274, 275 ], [ 275, 276 ], [ 276, 277 ], [ 276, 278 ], [ 275, 279 ], [ 279, 280 ], [ 279, 281 ], [ 274, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 268, 286 ], [ 286, 287 ], [ 286, 288 ], [ 268, 289 ], [ 289, 290 ], [ 289, 291 ], [ 291, 292 ], [ 291, 293 ], [ 132, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 297, 298 ], [ 298, 299 ], [ 298, 300 ], [ 300, 301 ], [ 301, 302 ], [ 302, 303 ], [ 300, 304 ], [ 304, 305 ], [ 305, 306 ], [ 305, 307 ], [ 297, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 308, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 315, 316 ], [ 308, 317 ], [ 317, 318 ], [ 319, 319 ], [ 319, 320 ], [ 320, 321 ], [ 321, 322 ], [ 321, 323 ], [ 320, 324 ], [ 324, 325 ], [ 324, 326 ], [ 319, 327 ], [ 327, 328 ], [ 327, 329 ], [ 319, 330 ], [ 330, 331 ], [ 330, 332 ], [ 317, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 336, 337 ], [ 337, 338 ], [ 308, 339 ], [ 339, 340 ], [ 340, 341 ], [ 340, 342 ], [ 339, 343 ], [ 343, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 343, 348 ], [ 348, 349 ], [ 348, 350 ], [ 350, 351 ], [ 351, 352 ], [ 339, 353 ], [ 353, 354 ], [ 354, 355 ], [ 354, 356 ], [ 353, 357 ], [ 357, 358 ], [ 358, 359 ], [ 358, 360 ], [ 360, 361 ], [ 361, 362 ], [ 308, 363 ], [ 363, 364 ], [ 363, 365 ], [ 365, 366 ], [ 365, 367 ], [ 308, 368 ], [ 368, 369 ], [ 368, 370 ], [ 370, 371 ], [ 371, 372 ], [ 371, 373 ], [ 373, 374 ], [ 374, 375 ], [ 370, 376 ], [ 376, 377 ], [ 377, 378 ], [ 378, 379 ], [ 378, 380 ], [ 377, 381 ], [ 381, 382 ], [ 381, 383 ], [ 376, 384 ], [ 370, 385 ], [ 385, 386 ], [ 385, 387 ], [ 370, 388 ], [ 388, 389 ], [ 388, 390 ], [ 390, 391 ], [ 390, 392 ], [ 308, 393 ], [ 393, 394 ], [ 394, 395 ], [ 394, 396 ], [ 393, 397 ], [ 397, 398 ], [ 398, 399 ], [ 398, 400 ], [ 308, 401 ], [ 401, 402 ], [ 401, 403 ], [ 308, 404 ], [ 404, 405 ], [ 404, 406 ], [ 406, 407 ], [ 407, 408 ], [ 308, 409 ], [ 409, 410 ], [ 410, 411 ], [ 411, 412 ], [ 411, 413 ], [ 410, 414 ], [ 414, 415 ], [ 414, 416 ], [ 409, 417 ], [ 417, 418 ], [ 418, 419 ], [ 418, 420 ], [ 417, 421 ], [ 421, 422 ], [ 421, 423 ], [ 423, 424 ], [ 423, 425 ], [ 417, 426 ], [ 426, 427 ], [ 426, 428 ], [ 417, 429 ], [ 429, 430 ], [ 429, 431 ], [ 431, 432 ], [ 432, 433 ], [ 308, 434 ], [ 434, 435 ], [ 435, 436 ], [ 436, 437 ], [ 436, 438 ], [ 435, 439 ], [ 132, 440 ], [ 440, 441 ], [ 440, 442 ], [ 442, 443 ], [ 443, 444 ], [ 444, 445 ], [ 444, 446 ], [ 446, 447 ], [ 447, 448 ], [ 448, 449 ], [ 446, 450 ], [ 450, 451 ], [ 443, 452 ], [ 452, 453 ], [ 453, 454 ], [ 453, 455 ], [ 455, 456 ], [ 456, 457 ], [ 452, 458 ], [ 458, 459 ], [ 459, 460 ], [ 460, 461 ], [ 459, 462 ], [ 458, 463 ], [ 463, 464 ], [ 464, 465 ], [ 464, 466 ], [ 466, 467 ], [ 467, 468 ], [ 452, 469 ], [ 469, 470 ], [ 132, 471 ], [ 471, 472 ], [ 471, 473 ], [ 473, 474 ], [ 474, 475 ], [ 475, 476 ], [ 475, 477 ], [ 477, 478 ], [ 478, 479 ], [ 479, 480 ], [ 477, 481 ], [ 481, 482 ], [ 474, 483 ], [ 483, 484 ], [ 484, 485 ], [ 484, 486 ], [ 483, 487 ], [ 487, 488 ], [ 487, 489 ], [ 489, 490 ], [ 490, 491 ], [ 483, 492 ], [ 492, 493 ], [ 493, 494 ], [ 494, 495 ], [ 493, 496 ], [ 492, 497 ], [ 497, 498 ], [ 498, 499 ], [ 498, 500 ], [ 500, 501 ], [ 501, 502 ], [ 483, 503 ], [ 503, 504 ], [ 504, 505 ], [ 505, 506 ], [ 505, 507 ], [ 507, 508 ], [ 504, 509 ], [ 509, 510 ], [ 510, 511 ], [ 511, 512 ], [ 510, 513 ], [ 503, 514 ], [ 514, 515 ], [ 515, 516 ], [ 516, 517 ], [ 515, 518 ], [ 514, 519 ], [ 519, 520 ], [ 519, 521 ], [ 521, 522 ], [ 522, 523 ], [ 483, 524 ], [ 524, 525 ], [ 525, 526 ], [ 526, 527 ], [ 132, 528 ], [ 528, 529 ], [ 528, 530 ], [ 530, 531 ], [ 531, 532 ], [ 532, 533 ], [ 532, 534 ], [ 534, 535 ], [ 535, 536 ], [ 536, 537 ], [ 534, 538 ], [ 538, 539 ], [ 531, 540 ], [ 540, 541 ], [ 541, 542 ], [ 541, 543 ], [ 540, 544 ], [ 544, 545 ], [ 544, 546 ], [ 546, 547 ], [ 547, 548 ], [ 540, 549 ], [ 549, 550 ], [ 550, 551 ], [ 551, 552 ], [ 551, 553 ], [ 553, 554 ], [ 550, 555 ], [ 555, 556 ], [ 555, 557 ], [ 549, 558 ], [ 558, 559 ], [ 559, 560 ], [ 560, 561 ], [ 559, 562 ], [ 558, 563 ], [ 563, 564 ], [ 563, 565 ], [ 565, 566 ], [ 566, 567 ], [ 540, 568 ], [ 568, 569 ], [ 569, 570 ], [ 570, 571 ], [ 132, 572 ], [ 572, 573 ], [ 572, 574 ], [ 574, 575 ], [ 575, 576 ], [ 575, 577 ], [ 574, 579 ], [ 579, 580 ], [ 580, 581 ], [ 581, 582 ], [ 581, 583 ], [ 579, 584 ], [ 584, 585 ], [ 584, 586 ], [ 579, 587 ], [ 587, 588 ], [ 588, 589 ], [ 579, 590 ], [ 591, 591 ], [ 591, 592 ], [ 592, 593 ], [ 593, 594 ], [ 593, 595 ], [ 592, 596 ], [ 596, 597 ], [ 574, 598 ], [ 598, 599 ], [ 572, 600 ], [ 600, 601 ], [ 132, 602 ], [ 602, 603 ], [ 602, 604 ], [ 604, 605 ], [ 605, 606 ], [ 605, 607 ], [ 604, 609 ], [ 609, 610 ], [ 610, 611 ], [ 611, 612 ], [ 611, 613 ], [ 609, 614 ], [ 614, 615 ], [ 614, 616 ], [ 609, 617 ], [ 617, 618 ], [ 618, 619 ], [ 609, 620 ], [ 621, 621 ], [ 621, 622 ], [ 622, 623 ], [ 623, 624 ], [ 623, 625 ], [ 622, 626 ], [ 626, 627 ], [ 627, 628 ], [ 626, 629 ], [ 604, 630 ], [ 630, 631 ], [ 602, 632 ], [ 632, 633 ], [ 132, 634 ], [ 634, 635 ], [ 634, 636 ], [ 636, 637 ], [ 637, 638 ], [ 637, 639 ], [ 640, 641 ], [ 640, 642 ], [ 636, 643 ], [ 643, 644 ], [ 644, 645 ], [ 645, 646 ], [ 645, 647 ], [ 643, 648 ], [ 648, 649 ], [ 648, 650 ], [ 643, 651 ], [ 651, 652 ], [ 652, 653 ], [ 643, 654 ], [ 655, 655 ], [ 655, 656 ], [ 656, 657 ], [ 657, 658 ], [ 657, 659 ], [ 659, 660 ], [ 659, 661 ], [ 656, 662 ], [ 662, 663 ], [ 636, 664 ], [ 664, 665 ], [ 634, 666 ], [ 666, 667 ], [ 132, 668 ], [ 668, 669 ], [ 668, 670 ], [ 670, 671 ], [ 671, 672 ], [ 671, 673 ], [ 670, 675 ], [ 675, 676 ], [ 676, 677 ], [ 677, 678 ], [ 677, 679 ], [ 675, 680 ], [ 680, 681 ], [ 680, 682 ], [ 675, 683 ], [ 683, 684 ], [ 684, 685 ], [ 675, 686 ], [ 687, 687 ], [ 687, 688 ], [ 688, 689 ], [ 689, 690 ], [ 689, 691 ], [ 688, 692 ], [ 692, 693 ], [ 670, 694 ], [ 694, 695 ], [ 668, 696 ], [ 696, 697 ], [ 132, 698 ], [ 698, 699 ], [ 698, 700 ], [ 700, 701 ], [ 701, 702 ], [ 701, 703 ], [ 700, 705 ], [ 705, 706 ], [ 706, 707 ], [ 707, 708 ], [ 707, 709 ], [ 705, 710 ], [ 710, 711 ], [ 710, 712 ], [ 705, 713 ], [ 713, 714 ], [ 714, 715 ], [ 705, 716 ], [ 717, 717 ], [ 717, 718 ], [ 718, 719 ], [ 719, 720 ], [ 719, 721 ], [ 718, 722 ], [ 722, 723 ], [ 723, 724 ], [ 722, 725 ], [ 700, 726 ], [ 726, 727 ], [ 698, 728 ], [ 728, 729 ], [ 132, 730 ], [ 730, 731 ], [ 730, 732 ], [ 732, 733 ], [ 733, 734 ], [ 733, 735 ], [ 736, 737 ], [ 736, 738 ], [ 732, 739 ], [ 739, 740 ], [ 740, 741 ], [ 741, 742 ], [ 741, 743 ], [ 739, 744 ], [ 744, 745 ], [ 744, 746 ], [ 739, 747 ], [ 747, 748 ], [ 748, 749 ], [ 739, 750 ], [ 751, 751 ], [ 751, 752 ], [ 752, 753 ], [ 753, 754 ], [ 753, 755 ], [ 755, 756 ], [ 755, 757 ], [ 752, 758 ], [ 758, 759 ], [ 732, 760 ], [ 760, 761 ], [ 730, 762 ], [ 762, 763 ], [ 132, 764 ], [ 764, 765 ], [ 764, 766 ], [ 766, 767 ], [ 767, 768 ], [ 767, 769 ], [ 766, 771 ], [ 771, 772 ], [ 772, 773 ], [ 773, 774 ], [ 773, 775 ], [ 771, 776 ], [ 776, 777 ], [ 776, 778 ], [ 771, 779 ], [ 779, 780 ], [ 780, 781 ], [ 771, 782 ], [ 783, 783 ], [ 783, 784 ], [ 784, 785 ], [ 785, 786 ], [ 785, 787 ], [ 784, 788 ], [ 788, 789 ], [ 766, 790 ], [ 790, 791 ], [ 764, 792 ], [ 792, 793 ], [ 0, 794 ], [ 794, 795 ], [ 794, 796 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.math.BigDecimal;\n\n@SuppressWarnings(\"unused\")\npublic class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n int[] D = new int[N];\n for(int i = 0; i < N; i++){\n D[i] = in.nextInt() - in.nextInt();\n }\n \n for(int i = 0; i < N - 2; i++){\n if(D[i] == 0 && D[i+1] == 0 && D[i+2] == 0){\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.math.BigDecimal;", "BigDecimal", "java.math", "public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n int[] D = new int[N];\n for(int i = 0; i < N; i++){\n D[i] = in.nextInt() - in.nextInt();\n }\n \n for(int i = 0; i < N - 2; i++){\n if(D[i] == 0 && D[i+1] == 0 && D[i+2] == 0){\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}", "Main", "FastScanner in;", "in", "PrintWriter out;", "out", "final static int MOD = (int)1e9+7;", "MOD", "(int)1e9+7", "(int)1e9", "7", "void solve(){\n int N = in.nextInt();\n int[] D = new int[N];\n for(int i = 0; i < N; i++){\n D[i] = in.nextInt() - in.nextInt();\n }\n \n for(int i = 0; i < N - 2; i++){\n if(D[i] == 0 && D[i+1] == 0 && D[i+2] == 0){\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }", "solve", "{\n int N = in.nextInt();\n int[] D = new int[N];\n for(int i = 0; i < N; i++){\n D[i] = in.nextInt() - in.nextInt();\n }\n \n for(int i = 0; i < N - 2; i++){\n if(D[i] == 0 && D[i+1] == 0 && D[i+2] == 0){\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }", "int N = in.nextInt();", "N", "in.nextInt()", "in.nextInt", "in", "int[] D = new int[N];", "D", "new int[N]", "N", "for(int i = 0; i < N; i++){\n D[i] = in.nextInt() - in.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n D[i] = in.nextInt() - in.nextInt();\n }", "{\n D[i] = in.nextInt() - in.nextInt();\n }", "D[i] = in.nextInt() - in.nextInt()", "D[i]", "D", "i", "in.nextInt() - in.nextInt()", "in.nextInt()", "in.nextInt", "in", "in.nextInt()", "in.nextInt", "in", "for(int i = 0; i < N - 2; i++){\n if(D[i] == 0 && D[i+1] == 0 && D[i+2] == 0){\n out.println(\"Yes\");\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N - 2", "i", "N - 2", "N", "2", "i++", "i++", "i", "{\n if(D[i] == 0 && D[i+1] == 0 && D[i+2] == 0){\n out.println(\"Yes\");\n return;\n }\n }", "{\n if(D[i] == 0 && D[i+1] == 0 && D[i+2] == 0){\n out.println(\"Yes\");\n return;\n }\n }", "if(D[i] == 0 && D[i+1] == 0 && D[i+2] == 0){\n out.println(\"Yes\");\n return;\n }", "D[i] == 0 && D[i+1] == 0 && D[i+2] == 0", "D[i] == 0 && D[i+1] == 0 && D[i+2] == 0", "D[i] == 0", "D[i]", "D", "i", "0", "D[i+1] == 0", "D[i+1]", "D", "i+1", "i", "1", "0", "D[i+2] == 0", "D[i+2]", "D", "i+2", "i", "2", "0", "{\n out.println(\"Yes\");\n return;\n }", "out.println(\"Yes\")", "out.println", "out", "\"Yes\"", "return;", "out.println(\"No\")", "out.println", "out", "\"No\"", "public static void main(String[] args) {\n new Main().m();\n }", "main", "{\n new Main().m();\n }", "new Main().m()", "new Main().m", "new Main()", "String[] args", "args", "private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }", "m", "{\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }", "in = new FastScanner(System.in)", "in", "new FastScanner(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "solve()", "solve", "out.flush()", "out.flush", "out", "in.close()", "in.close", "in", "out.close()", "out.close", "out", "static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }", "FastScanner", "private Reader input;", "input", "public FastScanner() {this(System.in);}", "FastScanner", "{this(System.in);}", "this(System.in)", "this", "System.in", "System", "System.in", "public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}", "FastScanner", "{this.input = new BufferedReader(new InputStreamReader(stream));}", "this.input = new BufferedReader(new InputStreamReader(stream))", "this.input", "this", "this.input", "new BufferedReader(new InputStreamReader(stream))", "InputStream stream", "stream", "public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "close", "{\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n this.input.close();\n }", "this.input.close()", "this.input.close", "this.input", "this", "this.input", "public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }", "nextInt", "{\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }", "long nl = nextLong();", "nl", "nextLong()", "nextLong", "if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();", "nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE", "nl < Integer.MIN_VALUE", "nl", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "nl > Integer.MAX_VALUE", "nl", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "throw new NumberFormatException();", "new NumberFormatException()", "return (int) nl;", "(int) nl", "public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }", "nextLong", "{\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }", "try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }", "catch (IOException e) {\n e.printStackTrace();\n return -1;\n }", "IOException e", "{\n e.printStackTrace();\n return -1;\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return -1;", "-1", "1", "{\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n }", "int sign = 1;", "sign", "1", "int b = input.read();", "b", "input.read()", "input.read", "input", "while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }", "(b < '0' || '9' < b) && b != '-' && b != '+'", "(b < '0' || '9' < b) && b != '-' && b != '+'", "(b < '0' || '9' < b)", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "b != '-'", "b", "'-'", "b != '+'", "b", "'+'", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }", "b == '-'", "b", "'-'", "{\n sign = -1;\n b = input.read();\n }", "sign = -1", "sign", "-1", "1", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b == '+') {\n b = input.read();\n }", "b == '+'", "b", "'+'", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "long ret = b - '0';", "ret", "b - '0'", "b", "'0'", "while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }", "true", "{\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b < '0' || '9' < b) return ret * sign;", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "return ret * sign;", "ret * sign", "ret", "sign", "ret *= 10", "ret", "10", "ret += b - '0'", "ret", "b - '0'", "b", "'0'", "public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }", "nextDouble", "{\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }", "try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }", "catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }", "IOException e", "{\n e.printStackTrace();\n return Double.NaN;\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return Double.NaN;", "Double.NaN", "Double", "Double.NaN", "{\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n }", "double sign = 1;", "sign", "1", "int b = input.read();", "b", "input.read()", "input.read", "input", "while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }", "(b < '0' || '9' < b) && b != '-' && b != '+'", "(b < '0' || '9' < b) && b != '-' && b != '+'", "(b < '0' || '9' < b)", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "b != '-'", "b", "'-'", "b != '+'", "b", "'+'", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }", "b == '-'", "b", "'-'", "{\n sign = -1;\n b = input.read();\n }", "sign = -1", "sign", "-1", "1", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b == '+') {\n b = input.read();\n }", "b == '+'", "b", "'+'", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "double ret = b - '0';", "ret", "b - '0'", "b", "'0'", "while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }", "true", "{\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b < '0' || '9' < b) break;", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "break;", "ret *= 10", "ret", "10", "ret += b - '0'", "ret", "b - '0'", "b", "'0'", "if (b != '.') return sign * ret;", "b != '.'", "b", "'.'", "return sign * ret;", "sign * ret", "sign", "ret", "double div = 1;", "div", "1", "b = input.read()", "b", "input.read()", "input.read", "input", "while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }", "ret *= 10", "ret", "10", "ret += b - '0'", "ret", "b - '0'", "b", "'0'", "div *= 10", "div", "10", "b = input.read()", "b", "input.read()", "input.read", "input", "return sign * ret / div;", "sign * ret / div", "sign * ret", "sign", "ret", "div", "public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }", "nextChar", "{\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }", "try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }", "catch (IOException e) {\n e.printStackTrace();\n return 0;\n }", "IOException e", "{\n e.printStackTrace();\n return 0;\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return 0;", "0", "{\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n }", "int b = input.read();", "b", "input.read()", "input.read", "input", "while (Character.isWhitespace(b)) {\n b = input.read();\n }", "Character.isWhitespace(b)", "Character.isWhitespace", "Character", "b", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "return (char) b;", "(char) b", "public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }", "nextStr", "{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }", "try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }", "catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }", "IOException e", "{\n e.printStackTrace();\n return \"\";\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return \"\";", "\"\"", "{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = input.read();", "b", "input.read()", "input.read", "input", "while (Character.isWhitespace(b)) {\n b = input.read();\n }", "Character.isWhitespace(b)", "Character.isWhitespace", "Character", "b", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }", "b != -1 && !Character.isWhitespace(b)", "b != -1", "b", "-1", "1", "!Character.isWhitespace(b)", "Character.isWhitespace(b)", "Character.isWhitespace", "Character", "b", "{\n sb.append((char) b);\n b = input.read();\n }", "sb.append((char) b)", "sb.append", "sb", "(char) b", "b = input.read()", "b", "input.read()", "input.read", "input", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }", "nextLine", "{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }", "try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }", "catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }", "IOException e", "{\n e.printStackTrace();\n return \"\";\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return \"\";", "\"\"", "{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = input.read();", "b", "input.read()", "input.read", "input", "while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }", "b != -1 && b != '\\n'", "b != -1", "b", "-1", "1", "b != '\\n'", "b", "'\\n'", "{\n sb.append((char) b);\n b = input.read();\n }", "sb.append((char) b)", "sb.append", "sb", "(char) b", "b = input.read()", "b", "input.read()", "input.read", "input", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }", "nextIntArray", "{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }", "int[] res = new int[n];", "res", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i] = nextInt();\n }", "{\n res[i] = nextInt();\n }", "res[i] = nextInt()", "res[i]", "res", "i", "nextInt()", "nextInt", "return res;", "res", "int n", "n", "public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }", "nextIntArrayDec", "{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }", "int[] res = new int[n];", "res", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i] = nextInt() - 1;\n }", "{\n res[i] = nextInt() - 1;\n }", "res[i] = nextInt() - 1", "res[i]", "res", "i", "nextInt() - 1", "nextInt()", "nextInt", "1", "return res;", "res", "int n", "n", "public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }", "nextIntArray1Index", "{\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }", "int[] res = new int[n + 1];", "res", "new int[n + 1]", "n + 1", "n", "1", "for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i + 1] = nextInt();\n }", "{\n res[i + 1] = nextInt();\n }", "res[i + 1] = nextInt()", "res[i + 1]", "res", "i + 1", "i", "1", "nextInt()", "nextInt", "return res;", "res", "int n", "n", "public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }", "nextLongArray", "{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }", "long[] res = new long[n];", "res", "new long[n]", "n", "for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i] = nextLong();\n }", "{\n res[i] = nextLong();\n }", "res[i] = nextLong()", "res[i]", "res", "i", "nextLong()", "nextLong", "return res;", "res", "int n", "n", "public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }", "nextLongArrayDec", "{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }", "long[] res = new long[n];", "res", "new long[n]", "n", "for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i] = nextLong() - 1;\n }", "{\n res[i] = nextLong() - 1;\n }", "res[i] = nextLong() - 1", "res[i]", "res", "i", "nextLong() - 1", "nextLong()", "nextLong", "1", "return res;", "res", "int n", "n", "public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }", "nextLongArray1Index", "{\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }", "long[] res = new long[n + 1];", "res", "new long[n + 1]", "n + 1", "n", "1", "for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i + 1] = nextLong();\n }", "{\n res[i + 1] = nextLong();\n }", "res[i + 1] = nextLong()", "res[i + 1]", "res", "i + 1", "i", "1", "nextLong()", "nextLong", "return res;", "res", "int n", "n", "public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }", "nextDoubleArray", "{\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }", "double[] res = new double[n];", "res", "new double[n]", "n", "for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i] = nextDouble();\n }", "{\n res[i] = nextDouble();\n }", "res[i] = nextDouble()", "res[i]", "res", "i", "nextDouble()", "nextDouble", "return res;", "res", "int n", "n", "public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n int[] D = new int[N];\n for(int i = 0; i < N; i++){\n D[i] = in.nextInt() - in.nextInt();\n }\n \n for(int i = 0; i < N - 2; i++){\n if(D[i] == 0 && D[i+1] == 0 && D[i+2] == 0){\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}", "public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n int[] D = new int[N];\n for(int i = 0; i < N; i++){\n D[i] = in.nextInt() - in.nextInt();\n }\n \n for(int i = 0; i < N - 2; i++){\n if(D[i] == 0 && D[i+1] == 0 && D[i+2] == 0){\n out.println(\"Yes\");\n return;\n }\n }\n out.println(\"No\");\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}", "Main" ]
import java.io.*; import java.util.*; import java.math.BigDecimal; @SuppressWarnings("unused") public class Main { FastScanner in; PrintWriter out; final static int MOD = (int)1e9+7; void solve(){ int N = in.nextInt(); int[] D = new int[N]; for(int i = 0; i < N; i++){ D[i] = in.nextInt() - in.nextInt(); } for(int i = 0; i < N - 2; i++){ if(D[i] == 0 && D[i+1] == 0 && D[i+2] == 0){ out.println("Yes"); return; } } out.println("No"); } public static void main(String[] args) { new Main().m(); } private void m() { in = new FastScanner(System.in); out = new PrintWriter(System.out); /* try { String path = "input.txt"; out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path)))); }catch (IOException e){ e.printStackTrace(); } */ solve(); out.flush(); in.close(); out.close(); } static class FastScanner { private Reader input; public FastScanner() {this(System.in);} public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));} public void close() { try { this.input.close(); } catch (IOException e) { e.printStackTrace(); } } public int nextInt() { long nl = nextLong(); if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public long nextLong() { try { int sign = 1; int b = input.read(); while ((b < '0' || '9' < b) && b != '-' && b != '+') { b = input.read(); } if (b == '-') { sign = -1; b = input.read(); } else if (b == '+') { b = input.read(); } long ret = b - '0'; while (true) { b = input.read(); if (b < '0' || '9' < b) return ret * sign; ret *= 10; ret += b - '0'; } } catch (IOException e) { e.printStackTrace(); return -1; } } public double nextDouble() { try { double sign = 1; int b = input.read(); while ((b < '0' || '9' < b) && b != '-' && b != '+') { b = input.read(); } if (b == '-') { sign = -1; b = input.read(); } else if (b == '+') { b = input.read(); } double ret = b - '0'; while (true) { b = input.read(); if (b < '0' || '9' < b) break; ret *= 10; ret += b - '0'; } if (b != '.') return sign * ret; double div = 1; b = input.read(); while ('0' <= b && b <= '9') { ret *= 10; ret += b - '0'; div *= 10; b = input.read(); } return sign * ret / div; } catch (IOException e) { e.printStackTrace(); return Double.NaN; } } public char nextChar() { try { int b = input.read(); while (Character.isWhitespace(b)) { b = input.read(); } return (char) b; } catch (IOException e) { e.printStackTrace(); return 0; } } public String nextStr() { try { StringBuilder sb = new StringBuilder(); int b = input.read(); while (Character.isWhitespace(b)) { b = input.read(); } while (b != -1 && !Character.isWhitespace(b)) { sb.append((char) b); b = input.read(); } return sb.toString(); } catch (IOException e) { e.printStackTrace(); return ""; } } public String nextLine() { try { StringBuilder sb = new StringBuilder(); int b = input.read(); while (b != -1 && b != '\n') { sb.append((char) b); b = input.read(); } return sb.toString(); } catch (IOException e) { e.printStackTrace(); return ""; } } public int[] nextIntArray(int n) { int[] res = new int[n]; for (int i = 0; i < n; i++) { res[i] = nextInt(); } return res; } public int[] nextIntArrayDec(int n) { int[] res = new int[n]; for (int i = 0; i < n; i++) { res[i] = nextInt() - 1; } return res; } public int[] nextIntArray1Index(int n) { int[] res = new int[n + 1]; for (int i = 0; i < n; i++) { res[i + 1] = nextInt(); } return res; } public long[] nextLongArray(int n) { long[] res = new long[n]; for (int i = 0; i < n; i++) { res[i] = nextLong(); } return res; } public long[] nextLongArrayDec(int n) { long[] res = new long[n]; for (int i = 0; i < n; i++) { res[i] = nextLong() - 1; } return res; } public long[] nextLongArray1Index(int n) { long[] res = new long[n + 1]; for (int i = 0; i < n; i++) { res[i + 1] = nextLong(); } return res; } public double[] nextDoubleArray(int n) { double[] res = new double[n]; for (int i = 0; i < n; i++) { res[i] = nextDouble(); } return res; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 2, 13, 17, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 2, 13, 17, 30, 14, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 14, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 0, 13, 17, 3, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 125, 5 ], [ 125, 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 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 48, 60 ], [ 60, 61 ], [ 61, 62 ], [ 48, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 77, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 76, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 89, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 8, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 106, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 6, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int[] a=new int[n*2];\n for(int i=0;i<n*2;i++)\n {\n a[i]=sc.nextInt();\n }\n int ans=0;\n for(int j=0;j<=(n*2)-6;j++)\n {\n if(a[j]==a[j+1])\n {\n if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }\n }\n }\n if(ans==1)\n \tSystem.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n \n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int[] a=new int[n*2];\n for(int i=0;i<n*2;i++)\n {\n a[i]=sc.nextInt();\n }\n int ans=0;\n for(int j=0;j<=(n*2)-6;j++)\n {\n if(a[j]==a[j+1])\n {\n if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }\n }\n }\n if(ans==1)\n \tSystem.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n \n }\n}", "Main", "public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int[] a=new int[n*2];\n for(int i=0;i<n*2;i++)\n {\n a[i]=sc.nextInt();\n }\n int ans=0;\n for(int j=0;j<=(n*2)-6;j++)\n {\n if(a[j]==a[j+1])\n {\n if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }\n }\n }\n if(ans==1)\n \tSystem.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n \n }", "main", "{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int[] a=new int[n*2];\n for(int i=0;i<n*2;i++)\n {\n a[i]=sc.nextInt();\n }\n int ans=0;\n for(int j=0;j<=(n*2)-6;j++)\n {\n if(a[j]==a[j+1])\n {\n if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }\n }\n }\n if(ans==1)\n \tSystem.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n \n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] a=new int[n*2];", "a", "new int[n*2]", "n*2", "n", "2", "for(int i=0;i<n*2;i++)\n {\n a[i]=sc.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<n*2", "i", "n*2", "n", "2", "i++", "i++", "i", "{\n a[i]=sc.nextInt();\n }", "{\n a[i]=sc.nextInt();\n }", "a[i]=sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "int ans=0;", "ans", "0", "for(int j=0;j<=(n*2)-6;j++)\n {\n if(a[j]==a[j+1])\n {\n if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }\n }\n }", "int j=0;", "int j=0;", "j", "0", "j<=(n*2)-6", "j", "(n*2)-6", "(n*2)", "n", "2", "6", "j++", "j++", "j", "{\n if(a[j]==a[j+1])\n {\n if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }\n }\n }", "{\n if(a[j]==a[j+1])\n {\n if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }\n }\n }", "if(a[j]==a[j+1])\n {\n if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }\n }", "a[j]==a[j+1]", "a[j]", "a", "j", "a[j+1]", "a", "j+1", "j", "1", "{\n if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }\n }", "if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }", "a[j+2]==a[j+3]", "a[j+2]", "a", "j+2", "j", "2", "a[j+3]", "a", "j+3", "j", "3", "{\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }", "if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }", "a[j+4]==a[j+5]", "a[j+4]", "a", "j+4", "j", "4", "a[j+5]", "a", "j+5", "j", "5", "{\n ans=1;\n break;\n }", "ans=1", "ans", "1", "break;", "if(ans==1)\n \tSystem.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "ans==1", "ans", "1", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main{\n public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int[] a=new int[n*2];\n for(int i=0;i<n*2;i++)\n {\n a[i]=sc.nextInt();\n }\n int ans=0;\n for(int j=0;j<=(n*2)-6;j++)\n {\n if(a[j]==a[j+1])\n {\n if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }\n }\n }\n if(ans==1)\n \tSystem.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n \n }\n}", "public class Main{\n public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int[] a=new int[n*2];\n for(int i=0;i<n*2;i++)\n {\n a[i]=sc.nextInt();\n }\n int ans=0;\n for(int j=0;j<=(n*2)-6;j++)\n {\n if(a[j]==a[j+1])\n {\n if(a[j+2]==a[j+3])\n {\n if(a[j+4]==a[j+5])\n {\n ans=1;\n break;\n }\n }\n }\n }\n if(ans==1)\n \tSystem.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n \n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] a=new int[n*2]; for(int i=0;i<n*2;i++) { a[i]=sc.nextInt(); } int ans=0; for(int j=0;j<=(n*2)-6;j++) { if(a[j]==a[j+1]) { if(a[j+2]==a[j+3]) { if(a[j+4]==a[j+5]) { ans=1; break; } } } } if(ans==1) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 18, 13, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 2, 13, 17, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 18, 13, 2, 13, 17, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 2, 18, 13, 2, 13, 17, 17, 30, 0, 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 ], [ 159, 5 ], [ 159, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 8, 83 ], [ 83, 84 ], [ 83, 85 ], [ 8, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 86, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 103, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 113, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 103, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 124, 130 ], [ 101, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 8, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 135, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 8, 153 ], [ 153, 154 ], [ 154, 155 ], [ 6, 156 ], [ 156, 157 ], [ 0, 158 ], [ 158, 159 ], [ 158, 160 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc =new Scanner (System.in);\n int n=sc.nextInt();\n int []arr1=new int[n];\n int []arr2=new int[n];\n for(int i=0;i<n;i++)\n {\n arr1[i]=sc.nextInt();\n arr2[i]=sc.nextInt();\n }\n int res[]=new int [n];\n for(int i=0;i<n;i++)\n {\n if(arr1[i]==arr2[i])\n {\n res[i]=1;\n }\n }\n boolean flag=false;\n for(int i=0;i+2<n;i++)\n {\n if(res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1)\n {\n flag=true;\n }\n }\n if(flag==true)\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n // String s=sc.nextLine();\n // int length=s.length();\n // char c=s.charAt(length-1);\n // if(Character.isLowerCase(c))\n // {\n // if(c=='s')\n // {\n // System.out.println(s+\"es\");\n // }\n // else{\n // System.out.println(s+\"s\");\n // }\n // }\n sc.close();\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 int n=sc.nextInt();\n int []arr1=new int[n];\n int []arr2=new int[n];\n for(int i=0;i<n;i++)\n {\n arr1[i]=sc.nextInt();\n arr2[i]=sc.nextInt();\n }\n int res[]=new int [n];\n for(int i=0;i<n;i++)\n {\n if(arr1[i]==arr2[i])\n {\n res[i]=1;\n }\n }\n boolean flag=false;\n for(int i=0;i+2<n;i++)\n {\n if(res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1)\n {\n flag=true;\n }\n }\n if(flag==true)\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n // String s=sc.nextLine();\n // int length=s.length();\n // char c=s.charAt(length-1);\n // if(Character.isLowerCase(c))\n // {\n // if(c=='s')\n // {\n // System.out.println(s+\"es\");\n // }\n // else{\n // System.out.println(s+\"s\");\n // }\n // }\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc =new Scanner (System.in);\n int n=sc.nextInt();\n int []arr1=new int[n];\n int []arr2=new int[n];\n for(int i=0;i<n;i++)\n {\n arr1[i]=sc.nextInt();\n arr2[i]=sc.nextInt();\n }\n int res[]=new int [n];\n for(int i=0;i<n;i++)\n {\n if(arr1[i]==arr2[i])\n {\n res[i]=1;\n }\n }\n boolean flag=false;\n for(int i=0;i+2<n;i++)\n {\n if(res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1)\n {\n flag=true;\n }\n }\n if(flag==true)\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n // String s=sc.nextLine();\n // int length=s.length();\n // char c=s.charAt(length-1);\n // if(Character.isLowerCase(c))\n // {\n // if(c=='s')\n // {\n // System.out.println(s+\"es\");\n // }\n // else{\n // System.out.println(s+\"s\");\n // }\n // }\n sc.close();\n }", "main", "{\n Scanner sc =new Scanner (System.in);\n int n=sc.nextInt();\n int []arr1=new int[n];\n int []arr2=new int[n];\n for(int i=0;i<n;i++)\n {\n arr1[i]=sc.nextInt();\n arr2[i]=sc.nextInt();\n }\n int res[]=new int [n];\n for(int i=0;i<n;i++)\n {\n if(arr1[i]==arr2[i])\n {\n res[i]=1;\n }\n }\n boolean flag=false;\n for(int i=0;i+2<n;i++)\n {\n if(res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1)\n {\n flag=true;\n }\n }\n if(flag==true)\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n // String s=sc.nextLine();\n // int length=s.length();\n // char c=s.charAt(length-1);\n // if(Character.isLowerCase(c))\n // {\n // if(c=='s')\n // {\n // System.out.println(s+\"es\");\n // }\n // else{\n // System.out.println(s+\"s\");\n // }\n // }\n sc.close();\n }", "Scanner sc =new Scanner (System.in);", "sc", "new Scanner (System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int []arr1=new int[n];", "arr1", "new int[n]", "n", "int []arr2=new int[n];", "arr2", "new int[n]", "n", "for(int i=0;i<n;i++)\n {\n arr1[i]=sc.nextInt();\n arr2[i]=sc.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n arr1[i]=sc.nextInt();\n arr2[i]=sc.nextInt();\n }", "{\n arr1[i]=sc.nextInt();\n arr2[i]=sc.nextInt();\n }", "arr1[i]=sc.nextInt()", "arr1[i]", "arr1", "i", "sc.nextInt()", "sc.nextInt", "sc", "arr2[i]=sc.nextInt()", "arr2[i]", "arr2", "i", "sc.nextInt()", "sc.nextInt", "sc", "int res[]=new int [n];", "res", "new int [n]", "n", "for(int i=0;i<n;i++)\n {\n if(arr1[i]==arr2[i])\n {\n res[i]=1;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n if(arr1[i]==arr2[i])\n {\n res[i]=1;\n }\n }", "{\n if(arr1[i]==arr2[i])\n {\n res[i]=1;\n }\n }", "if(arr1[i]==arr2[i])\n {\n res[i]=1;\n }", "arr1[i]==arr2[i]", "arr1[i]", "arr1", "i", "arr2[i]", "arr2", "i", "{\n res[i]=1;\n }", "res[i]=1", "res[i]", "res", "i", "1", "boolean flag=false;", "flag", "false", "for(int i=0;i+2<n;i++)\n {\n if(res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1)\n {\n flag=true;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i+2<n", "i+2", "i", "2", "n", "i++", "i++", "i", "{\n if(res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1)\n {\n flag=true;\n }\n }", "{\n if(res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1)\n {\n flag=true;\n }\n }", "if(res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1)\n {\n flag=true;\n }", "res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1", "res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1", "res[i]==res[i+1]", "res[i]", "res", "i", "res[i+1]", "res", "i+1", "i", "1", "res[i+1]==res[i+2]", "res[i+1]", "res", "i+1", "i", "1", "res[i+2]", "res", "i+2", "i", "2", "res[i+2]==1", "res[i+2]", "res", "i+2", "i", "2", "1", "{\n flag=true;\n }", "flag=true", "flag", "true", "if(flag==true)\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }", "flag==true", "flag", "true", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc =new Scanner (System.in);\n int n=sc.nextInt();\n int []arr1=new int[n];\n int []arr2=new int[n];\n for(int i=0;i<n;i++)\n {\n arr1[i]=sc.nextInt();\n arr2[i]=sc.nextInt();\n }\n int res[]=new int [n];\n for(int i=0;i<n;i++)\n {\n if(arr1[i]==arr2[i])\n {\n res[i]=1;\n }\n }\n boolean flag=false;\n for(int i=0;i+2<n;i++)\n {\n if(res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1)\n {\n flag=true;\n }\n }\n if(flag==true)\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n // String s=sc.nextLine();\n // int length=s.length();\n // char c=s.charAt(length-1);\n // if(Character.isLowerCase(c))\n // {\n // if(c=='s')\n // {\n // System.out.println(s+\"es\");\n // }\n // else{\n // System.out.println(s+\"s\");\n // }\n // }\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc =new Scanner (System.in);\n int n=sc.nextInt();\n int []arr1=new int[n];\n int []arr2=new int[n];\n for(int i=0;i<n;i++)\n {\n arr1[i]=sc.nextInt();\n arr2[i]=sc.nextInt();\n }\n int res[]=new int [n];\n for(int i=0;i<n;i++)\n {\n if(arr1[i]==arr2[i])\n {\n res[i]=1;\n }\n }\n boolean flag=false;\n for(int i=0;i+2<n;i++)\n {\n if(res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1)\n {\n flag=true;\n }\n }\n if(flag==true)\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n // String s=sc.nextLine();\n // int length=s.length();\n // char c=s.charAt(length-1);\n // if(Character.isLowerCase(c))\n // {\n // if(c=='s')\n // {\n // System.out.println(s+\"es\");\n // }\n // else{\n // System.out.println(s+\"s\");\n // }\n // }\n sc.close();\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc =new Scanner (System.in); int n=sc.nextInt(); int []arr1=new int[n]; int []arr2=new int[n]; for(int i=0;i<n;i++) { arr1[i]=sc.nextInt(); arr2[i]=sc.nextInt(); } int res[]=new int [n]; for(int i=0;i<n;i++) { if(arr1[i]==arr2[i]) { res[i]=1; } } boolean flag=false; for(int i=0;i+2<n;i++) { if(res[i]==res[i+1]&&res[i+1]==res[i+2]&&res[i+2]==1) { flag=true; } } if(flag==true) { System.out.println("Yes"); } else { System.out.println("No"); } // String s=sc.nextLine(); // int length=s.length(); // char c=s.charAt(length-1); // if(Character.isLowerCase(c)) // { // if(c=='s') // { // System.out.println(s+"es"); // } // else{ // System.out.println(s+"s"); // } // } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 3, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 82, 5 ], [ 82, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 32, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 61, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 6, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力(スペース改行関係なし)\n\t\tint n = sc.nextInt();\n \tint kaisuu = 0;\n \n \n\t\tfor(int i = 0 ; i < n ; i++){\n \tint n1 = sc.nextInt();\n \tint n2 = sc.nextInt();\n \n if(n1==n2){\n kaisuu += 1;\n }else{\n kaisuu = 0;\n }\n \n if(kaisuu ==3){\n \tbreak;\n }\n }\n\n\t\tif(kaisuu ==3){\n\t\t\t// 出力\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力(スペース改行関係なし)\n\t\tint n = sc.nextInt();\n \tint kaisuu = 0;\n \n \n\t\tfor(int i = 0 ; i < n ; i++){\n \tint n1 = sc.nextInt();\n \tint n2 = sc.nextInt();\n \n if(n1==n2){\n kaisuu += 1;\n }else{\n kaisuu = 0;\n }\n \n if(kaisuu ==3){\n \tbreak;\n }\n }\n\n\t\tif(kaisuu ==3){\n\t\t\t// 出力\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力(スペース改行関係なし)\n\t\tint n = sc.nextInt();\n \tint kaisuu = 0;\n \n \n\t\tfor(int i = 0 ; i < n ; i++){\n \tint n1 = sc.nextInt();\n \tint n2 = sc.nextInt();\n \n if(n1==n2){\n kaisuu += 1;\n }else{\n kaisuu = 0;\n }\n \n if(kaisuu ==3){\n \tbreak;\n }\n }\n\n\t\tif(kaisuu ==3){\n\t\t\t// 出力\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力(スペース改行関係なし)\n\t\tint n = sc.nextInt();\n \tint kaisuu = 0;\n \n \n\t\tfor(int i = 0 ; i < n ; i++){\n \tint n1 = sc.nextInt();\n \tint n2 = sc.nextInt();\n \n if(n1==n2){\n kaisuu += 1;\n }else{\n kaisuu = 0;\n }\n \n if(kaisuu ==3){\n \tbreak;\n }\n }\n\n\t\tif(kaisuu ==3){\n\t\t\t// 出力\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int kaisuu = 0;", "kaisuu", "0", "for(int i = 0 ; i < n ; i++){\n \tint n1 = sc.nextInt();\n \tint n2 = sc.nextInt();\n \n if(n1==n2){\n kaisuu += 1;\n }else{\n kaisuu = 0;\n }\n \n if(kaisuu ==3){\n \tbreak;\n }\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \tint n1 = sc.nextInt();\n \tint n2 = sc.nextInt();\n \n if(n1==n2){\n kaisuu += 1;\n }else{\n kaisuu = 0;\n }\n \n if(kaisuu ==3){\n \tbreak;\n }\n }", "{\n \tint n1 = sc.nextInt();\n \tint n2 = sc.nextInt();\n \n if(n1==n2){\n kaisuu += 1;\n }else{\n kaisuu = 0;\n }\n \n if(kaisuu ==3){\n \tbreak;\n }\n }", "int n1 = sc.nextInt();", "n1", "sc.nextInt()", "sc.nextInt", "sc", "int n2 = sc.nextInt();", "n2", "sc.nextInt()", "sc.nextInt", "sc", "if(n1==n2){\n kaisuu += 1;\n }else{\n kaisuu = 0;\n }", "n1==n2", "n1", "n2", "{\n kaisuu += 1;\n }", "kaisuu += 1", "kaisuu", "1", "{\n kaisuu = 0;\n }", "kaisuu = 0", "kaisuu", "0", "if(kaisuu ==3){\n \tbreak;\n }", "kaisuu ==3", "kaisuu", "3", "{\n \tbreak;\n }", "break;", "if(kaisuu ==3){\n\t\t\t// 出力\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "kaisuu ==3", "kaisuu", "3", "{\n\t\t\t// 出力\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力(スペース改行関係なし)\n\t\tint n = sc.nextInt();\n \tint kaisuu = 0;\n \n \n\t\tfor(int i = 0 ; i < n ; i++){\n \tint n1 = sc.nextInt();\n \tint n2 = sc.nextInt();\n \n if(n1==n2){\n kaisuu += 1;\n }else{\n kaisuu = 0;\n }\n \n if(kaisuu ==3){\n \tbreak;\n }\n }\n\n\t\tif(kaisuu ==3){\n\t\t\t// 出力\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力(スペース改行関係なし)\n\t\tint n = sc.nextInt();\n \tint kaisuu = 0;\n \n \n\t\tfor(int i = 0 ; i < n ; i++){\n \tint n1 = sc.nextInt();\n \tint n2 = sc.nextInt();\n \n if(n1==n2){\n kaisuu += 1;\n }else{\n kaisuu = 0;\n }\n \n if(kaisuu ==3){\n \tbreak;\n }\n }\n\n\t\tif(kaisuu ==3){\n\t\t\t// 出力\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力(スペース改行関係なし) int n = sc.nextInt(); int kaisuu = 0; for(int i = 0 ; i < n ; i++){ int n1 = sc.nextInt(); int n2 = sc.nextInt(); if(n1==n2){ kaisuu += 1; }else{ kaisuu = 0; } if(kaisuu ==3){ break; } } if(kaisuu ==3){ // 出力 System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 4, 18, 13, 30, 40, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 8, 2, 13, 17, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 81, 5 ], [ 81, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 47, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 72, 77 ], [ 6, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int count = 0;\n int max = 0;\n for(int i=0;i<N;i++){\n if(sc.nextInt()==sc.nextInt()){\n count++;\n }else{\n if(count>max){\n max = count;\n }\n count = 0;\n }\n }\n if(count>max){\n max = count;\n }\n System.out.println(max>=3?\"Yes\":\"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int count = 0;\n int max = 0;\n for(int i=0;i<N;i++){\n if(sc.nextInt()==sc.nextInt()){\n count++;\n }else{\n if(count>max){\n max = count;\n }\n count = 0;\n }\n }\n if(count>max){\n max = count;\n }\n System.out.println(max>=3?\"Yes\":\"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int count = 0;\n int max = 0;\n for(int i=0;i<N;i++){\n if(sc.nextInt()==sc.nextInt()){\n count++;\n }else{\n if(count>max){\n max = count;\n }\n count = 0;\n }\n }\n if(count>max){\n max = count;\n }\n System.out.println(max>=3?\"Yes\":\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int count = 0;\n int max = 0;\n for(int i=0;i<N;i++){\n if(sc.nextInt()==sc.nextInt()){\n count++;\n }else{\n if(count>max){\n max = count;\n }\n count = 0;\n }\n }\n if(count>max){\n max = count;\n }\n System.out.println(max>=3?\"Yes\":\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "int max = 0;", "max", "0", "for(int i=0;i<N;i++){\n if(sc.nextInt()==sc.nextInt()){\n count++;\n }else{\n if(count>max){\n max = count;\n }\n count = 0;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n if(sc.nextInt()==sc.nextInt()){\n count++;\n }else{\n if(count>max){\n max = count;\n }\n count = 0;\n }\n }", "{\n if(sc.nextInt()==sc.nextInt()){\n count++;\n }else{\n if(count>max){\n max = count;\n }\n count = 0;\n }\n }", "if(sc.nextInt()==sc.nextInt()){\n count++;\n }else{\n if(count>max){\n max = count;\n }\n count = 0;\n }", "sc.nextInt()==sc.nextInt()", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextInt()", "sc.nextInt", "sc", "{\n count++;\n }", "count++", "count", "{\n if(count>max){\n max = count;\n }\n count = 0;\n }", "if(count>max){\n max = count;\n }", "count>max", "count", "max", "{\n max = count;\n }", "max = count", "max", "count", "count = 0", "count", "0", "if(count>max){\n max = count;\n }", "count>max", "count", "max", "{\n max = count;\n }", "max = count", "max", "count", "System.out.println(max>=3?\"Yes\":\"No\")", "System.out.println", "System.out", "System", "System.out", "max>=3?\"Yes\":\"No\"", "max>=3", "max", "3", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int count = 0;\n int max = 0;\n for(int i=0;i<N;i++){\n if(sc.nextInt()==sc.nextInt()){\n count++;\n }else{\n if(count>max){\n max = count;\n }\n count = 0;\n }\n }\n if(count>max){\n max = count;\n }\n System.out.println(max>=3?\"Yes\":\"No\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int count = 0;\n int max = 0;\n for(int i=0;i<N;i++){\n if(sc.nextInt()==sc.nextInt()){\n count++;\n }else{\n if(count>max){\n max = count;\n }\n count = 0;\n }\n }\n if(count>max){\n max = count;\n }\n System.out.println(max>=3?\"Yes\":\"No\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int count = 0; int max = 0; for(int i=0;i<N;i++){ if(sc.nextInt()==sc.nextInt()){ count++; }else{ if(count>max){ max = count; } count = 0; } } if(count>max){ max = count; } System.out.println(max>=3?"Yes":"No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 30, 0, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 75, 5 ], [ 75, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 54, 61 ], [ 43, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 6, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n int i = sc.nextInt();\n for (int i1 = 0; i1 < i; i1++) {\n int l = sc.nextInt();\n int r = sc.nextInt();\n if(l == r){\n count++;\n if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n int i = sc.nextInt();\n for (int i1 = 0; i1 < i; i1++) {\n int l = sc.nextInt();\n int r = sc.nextInt();\n if(l == r){\n count++;\n if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n int i = sc.nextInt();\n for (int i1 = 0; i1 < i; i1++) {\n int l = sc.nextInt();\n int r = sc.nextInt();\n if(l == r){\n count++;\n if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n System.out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int count = 0;\n int i = sc.nextInt();\n for (int i1 = 0; i1 < i; i1++) {\n int l = sc.nextInt();\n int r = sc.nextInt();\n if(l == r){\n count++;\n if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n System.out.println(\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = 0;", "count", "0", "int i = sc.nextInt();", "i", "sc.nextInt()", "sc.nextInt", "sc", "for (int i1 = 0; i1 < i; i1++) {\n int l = sc.nextInt();\n int r = sc.nextInt();\n if(l == r){\n count++;\n if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }", "int i1 = 0;", "int i1 = 0;", "i1", "0", "i1 < i", "i1", "i", "i1++", "i1++", "i1", "{\n int l = sc.nextInt();\n int r = sc.nextInt();\n if(l == r){\n count++;\n if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }", "{\n int l = sc.nextInt();\n int r = sc.nextInt();\n if(l == r){\n count++;\n if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }", "int l = sc.nextInt();", "l", "sc.nextInt()", "sc.nextInt", "sc", "int r = sc.nextInt();", "r", "sc.nextInt()", "sc.nextInt", "sc", "if(l == r){\n count++;\n if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }", "l == r", "l", "r", "{\n count++;\n if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }", "count++", "count", "if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }", "count >= 3", "count", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "{\n count = 0;\n }", "count = 0", "count", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n int i = sc.nextInt();\n for (int i1 = 0; i1 < i; i1++) {\n int l = sc.nextInt();\n int r = sc.nextInt();\n if(l == r){\n count++;\n if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n int i = sc.nextInt();\n for (int i1 = 0; i1 < i; i1++) {\n int l = sc.nextInt();\n int r = sc.nextInt();\n if(l == r){\n count++;\n if(count >= 3){\n System.out.println(\"Yes\");\n return;\n }\n }else{\n count = 0;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; int i = sc.nextInt(); for (int i1 = 0; i1 < i; i1++) { int l = sc.nextInt(); int r = sc.nextInt(); if(l == r){ count++; if(count >= 3){ System.out.println("Yes"); return; } }else{ count = 0; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 4, 18, 13, 13, 4, 18, 13, 13, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 30, 0, 13, 17, 14, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 6, 13, 41, 13, 18, 13, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 14, 2, 13, 13, 30, 29, 17, 30, 0, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 17, 29, 17, 12, 13, 30, 14, 4, 13, 29, 18, 13, 40, 13, 29, 40, 17, 12, 13, 30, 29, 2, 2, 17, 13, 2, 13, 17, 23, 13, 12, 13, 30, 42, 2, 4, 13, 40, 4, 13, 18, 13, 13, 40, 13, 29, 4, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 20, 41, 13, 4, 13, 42, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 17, 41, 13, 17, 41, 13, 4, 13, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 14, 2, 2, 13, 17, 2, 17, 13, 30, 37, 20, 42, 17, 30, 14, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 2, 13, 40, 17, 40, 4, 13, 13, 30, 29, 8, 13, 40, 13, 13, 30, 37, 20, 0, 13, 4, 13, 12, 13, 30, 41, 13, 4, 13, 14, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 37, 20, 29, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 381, 11 ], [ 381, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 41, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 14, 54 ], [ 54, 55 ], [ 54, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 75, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 74, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 88, 90 ], [ 84, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 94, 96 ], [ 74, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 101, 103 ], [ 97, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 107, 109 ], [ 72, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 14, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 114, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 12, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 134, 136 ], [ 130, 137 ], [ 137, 138 ], [ 137, 139 ], [ 130, 141 ], [ 141, 142 ], [ 141, 143 ], [ 130, 144 ], [ 144, 145 ], [ 144, 146 ], [ 130, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 150, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 161, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 157, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 175, 179 ], [ 179, 180 ], [ 180, 181 ], [ 149, 182 ], [ 182, 183 ], [ 130, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 187, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 187, 195 ], [ 195, 196 ], [ 196, 197 ], [ 130, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 202, 206 ], [ 206, 207 ], [ 206, 208 ], [ 198, 209 ], [ 209, 210 ], [ 130, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 215, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 221, 223 ], [ 214, 224 ], [ 224, 225 ], [ 213, 226 ], [ 226, 227 ], [ 227, 228 ], [ 130, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 234, 235 ], [ 232, 236 ], [ 236, 237 ], [ 231, 238 ], [ 238, 239 ], [ 238, 240 ], [ 231, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 231, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 245, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 250, 253 ], [ 249, 254 ], [ 254, 255 ], [ 254, 256 ], [ 256, 257 ], [ 231, 258 ], [ 258, 259 ], [ 259, 260 ], [ 260, 261 ], [ 130, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 267, 268 ], [ 265, 269 ], [ 269, 270 ], [ 264, 271 ], [ 271, 272 ], [ 271, 273 ], [ 264, 274 ], [ 274, 275 ], [ 274, 276 ], [ 264, 277 ], [ 277, 278 ], [ 277, 279 ], [ 279, 280 ], [ 264, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 281, 285 ], [ 285, 286 ], [ 286, 287 ], [ 286, 288 ], [ 285, 289 ], [ 289, 290 ], [ 289, 291 ], [ 291, 292 ], [ 264, 293 ], [ 293, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 294, 298 ], [ 298, 299 ], [ 298, 300 ], [ 293, 301 ], [ 301, 302 ], [ 302, 303 ], [ 264, 304 ], [ 304, 305 ], [ 304, 306 ], [ 306, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 308, 312 ], [ 312, 313 ], [ 312, 314 ], [ 307, 315 ], [ 315, 316 ], [ 316, 317 ], [ 316, 318 ], [ 315, 319 ], [ 319, 320 ], [ 319, 321 ], [ 321, 322 ], [ 321, 323 ], [ 307, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 326, 328 ], [ 328, 329 ], [ 325, 330 ], [ 330, 331 ], [ 331, 332 ], [ 331, 333 ], [ 324, 334 ], [ 334, 335 ], [ 335, 336 ], [ 336, 337 ], [ 336, 338 ], [ 338, 339 ], [ 336, 340 ], [ 324, 341 ], [ 341, 342 ], [ 342, 343 ], [ 306, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 130, 348 ], [ 348, 349 ], [ 348, 350 ], [ 350, 351 ], [ 351, 352 ], [ 351, 353 ], [ 353, 354 ], [ 350, 355 ], [ 355, 356 ], [ 356, 357 ], [ 357, 358 ], [ 357, 359 ], [ 359, 360 ], [ 359, 361 ], [ 356, 362 ], [ 362, 363 ], [ 362, 364 ], [ 364, 365 ], [ 364, 366 ], [ 355, 367 ], [ 367, 368 ], [ 350, 369 ], [ 369, 370 ], [ 130, 371 ], [ 371, 372 ], [ 371, 373 ], [ 373, 374 ], [ 374, 375 ], [ 375, 376 ], [ 376, 377 ], [ 375, 378 ], [ 378, 379 ], [ 0, 380 ], [ 380, 381 ], [ 380, 382 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n List<Integer> listA = new ArrayList<>();\n List<Integer> listB = new ArrayList<>();\n\n for (int i = 0; i < N; ++i) {\n listA.add((fs.nextInt()));\n listB.add((fs.nextInt()));\n }\n\n boolean flag = false;\n for (int i = 0; i <= N-3; ++i) {\n if (listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)) {\n flag = true;\n }\n }\n\n if (flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n\n\n }\n}\n\nclass FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n\n public double nextDouble() { return Double.parseDouble(next());}\n}\n\n", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n List<Integer> listA = new ArrayList<>();\n List<Integer> listB = new ArrayList<>();\n\n for (int i = 0; i < N; ++i) {\n listA.add((fs.nextInt()));\n listB.add((fs.nextInt()));\n }\n\n boolean flag = false;\n for (int i = 0; i <= N-3; ++i) {\n if (listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)) {\n flag = true;\n }\n }\n\n if (flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n\n\n }\n}", "Main", "public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n List<Integer> listA = new ArrayList<>();\n List<Integer> listB = new ArrayList<>();\n\n for (int i = 0; i < N; ++i) {\n listA.add((fs.nextInt()));\n listB.add((fs.nextInt()));\n }\n\n boolean flag = false;\n for (int i = 0; i <= N-3; ++i) {\n if (listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)) {\n flag = true;\n }\n }\n\n if (flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n\n\n }", "main", "{\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n List<Integer> listA = new ArrayList<>();\n List<Integer> listB = new ArrayList<>();\n\n for (int i = 0; i < N; ++i) {\n listA.add((fs.nextInt()));\n listB.add((fs.nextInt()));\n }\n\n boolean flag = false;\n for (int i = 0; i <= N-3; ++i) {\n if (listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)) {\n flag = true;\n }\n }\n\n if (flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n\n\n }", "FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "int N = fs.nextInt();", "N", "fs.nextInt()", "fs.nextInt", "fs", "List<Integer> listA = new ArrayList<>();", "listA", "new ArrayList<>()", "List<Integer> listB = new ArrayList<>();", "listB", "new ArrayList<>()", "for (int i = 0; i < N; ++i) {\n listA.add((fs.nextInt()));\n listB.add((fs.nextInt()));\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "++i", "++i", "i", "{\n listA.add((fs.nextInt()));\n listB.add((fs.nextInt()));\n }", "{\n listA.add((fs.nextInt()));\n listB.add((fs.nextInt()));\n }", "listA.add((fs.nextInt()))", "listA.add", "listA", "(fs.nextInt())", "fs.nextInt", "fs", "listB.add((fs.nextInt()))", "listB.add", "listB", "(fs.nextInt())", "fs.nextInt", "fs", "boolean flag = false;", "flag", "false", "for (int i = 0; i <= N-3; ++i) {\n if (listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)) {\n flag = true;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i <= N-3", "i", "N-3", "N", "3", "++i", "++i", "i", "{\n if (listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)) {\n flag = true;\n }\n }", "{\n if (listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)) {\n flag = true;\n }\n }", "if (listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)) {\n flag = true;\n }", "listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)", "listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)", "listA.get(i) == listB.get(i)", "listA.get(i)", "listA.get", "listA", "i", "listB.get(i)", "listB.get", "listB", "i", "listA.get(i+1) == listB.get(i+1)", "listA.get(i+1)", "listA.get", "listA", "i+1", "i", "1", "listB.get(i+1)", "listB.get", "listB", "i+1", "i", "1", "listA.get(i+2) == listB.get(i+2)", "listA.get(i+2)", "listA.get", "listA", "i+2", "i", "2", "listB.get(i+2)", "listB.get", "listB", "i+2", "i", "2", "{\n flag = true;\n }", "flag = true", "flag", "true", "if (flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");", "flag", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n\n public double nextDouble() { return Double.parseDouble(next());}\n}", "FastScanner", "private final InputStream in = System.in;", "in", "System.in", "System", "System.in", "private final byte[] buffer = new byte[1024];", "buffer", "new byte[1024]", "1024", "private int ptr = 0;", "ptr", "0", "private int buflen = 0;", "buflen", "0", "private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }", "hasNextByte", "{\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }", "if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }", "ptr < buflen", "ptr", "buflen", "{\n return true;\n }", "return true;", "true", "{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }", "ptr = 0", "ptr", "0", "try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n buflen = in.read(buffer);\n }", "buflen = in.read(buffer)", "buflen", "in.read(buffer)", "in.read", "in", "buffer", "if (buflen <= 0) {\n return false;\n }", "buflen <= 0", "buflen", "0", "{\n return false;\n }", "return false;", "false", "return true;", "true", "private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}", "readByte", "{ if (hasNextByte()) return buffer[ptr++]; else return -1;}", "if (hasNextByte()) return buffer[ptr++]; else return -1;", "hasNextByte()", "hasNextByte", "return buffer[ptr++];", "buffer[ptr++]", "buffer", "ptr++", "ptr", "return -1;", "-1", "1", "private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}", "isPrintableChar", "{ return 33 <= c && c <= 126;}", "return 33 <= c && c <= 126;", "33 <= c && c <= 126", "33 <= c", "33", "c", "c <= 126", "c", "126", "int c", "c", "public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}", "hasNext", "{ while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}", "while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;", "hasNextByte() && !isPrintableChar(buffer[ptr])", "hasNextByte()", "hasNextByte", "!isPrintableChar(buffer[ptr])", "isPrintableChar(buffer[ptr])", "isPrintableChar", "buffer[ptr]", "buffer", "ptr", "ptr++", "ptr", "return hasNextByte();", "hasNextByte()", "hasNextByte", "public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }", "next", "{\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }", "if (!hasNext()) throw new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = readByte();", "b", "readByte()", "readByte", "while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }", "isPrintableChar(b)", "isPrintableChar", "b", "{\n sb.appendCodePoint(b);\n b = readByte();\n }", "sb.appendCodePoint(b)", "sb.appendCodePoint", "sb", "b", "b = readByte()", "b", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }", "nextLong", "{\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }", "if (!hasNext()) throw new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "long n = 0;", "n", "0", "boolean minus = false;", "minus", "false", "int b = readByte();", "b", "readByte()", "readByte", "if (b == '-') {\n minus = true;\n b = readByte();\n }", "b == '-'", "b", "'-'", "{\n minus = true;\n b = readByte();\n }", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "{\n throw new NumberFormatException();\n }", "throw new NumberFormatException();", "new NumberFormatException()", "while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }", "true", "{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }", "if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n n *= 10;\n n += b - '0';\n }", "n *= 10", "n", "10", "n += b - '0'", "n", "b - '0'", "b", "'0'", "if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }", "b == -1 || !isPrintableChar(b)", "b == -1", "b", "-1", "1", "!isPrintableChar(b)", "isPrintableChar(b)", "isPrintableChar", "b", "{\n return minus ? -n : n;\n }", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "{\n throw new NumberFormatException();\n }", "throw new NumberFormatException();", "new NumberFormatException()", "b = readByte()", "b", "readByte()", "readByte", "public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }", "nextInt", "{\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }", "long nl = nextLong();", "nl", "nextLong()", "nextLong", "if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();", "nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE", "nl < Integer.MIN_VALUE", "nl", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "nl > Integer.MAX_VALUE", "nl", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "throw new NumberFormatException();", "new NumberFormatException()", "return (int) nl;", "(int) nl", "public double nextDouble() { return Double.parseDouble(next());}", "nextDouble", "{ return Double.parseDouble(next());}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n List<Integer> listA = new ArrayList<>();\n List<Integer> listB = new ArrayList<>();\n\n for (int i = 0; i < N; ++i) {\n listA.add((fs.nextInt()));\n listB.add((fs.nextInt()));\n }\n\n boolean flag = false;\n for (int i = 0; i <= N-3; ++i) {\n if (listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)) {\n flag = true;\n }\n }\n\n if (flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n\n\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int N = fs.nextInt();\n List<Integer> listA = new ArrayList<>();\n List<Integer> listB = new ArrayList<>();\n\n for (int i = 0; i < N; ++i) {\n listA.add((fs.nextInt()));\n listB.add((fs.nextInt()));\n }\n\n boolean flag = false;\n for (int i = 0; i <= N-3; ++i) {\n if (listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1)\n && listA.get(i+2) == listB.get(i+2)) {\n flag = true;\n }\n }\n\n if (flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n\n\n }\n}", "Main" ]
import java.io.IOException; import java.io.InputStream; import java.util.*; public class Main { public static void main(String[] args) { FastScanner fs = new FastScanner(); int N = fs.nextInt(); List<Integer> listA = new ArrayList<>(); List<Integer> listB = new ArrayList<>(); for (int i = 0; i < N; ++i) { listA.add((fs.nextInt())); listB.add((fs.nextInt())); } boolean flag = false; for (int i = 0; i <= N-3; ++i) { if (listA.get(i) == listB.get(i) && listA.get(i+1) == listB.get(i+1) && listA.get(i+2) == listB.get(i+2)) { flag = true; } } if (flag) System.out.println("Yes"); else System.out.println("No"); } } class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr < buflen) { return true; }else{ ptr = 0; try { buflen = in.read(buffer); } catch (IOException e) { e.printStackTrace(); } if (buflen <= 0) { return false; } } return true; } private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;} private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;} public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();} public String next() { if (!hasNext()) throw new NoSuchElementException(); StringBuilder sb = new StringBuilder(); int b = readByte(); while(isPrintableChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public long nextLong() { if (!hasNext()) throw new NoSuchElementException(); long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while(true){ if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; }else if(b == -1 || !isPrintableChar(b)){ return minus ? -n : n; }else{ throw new NumberFormatException(); } b = readByte(); } } public int nextInt() { long nl = nextLong(); if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next());} }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 14, 2, 13, 13, 30, 0, 13, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 4, 18, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 112, 5 ], [ 112, 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 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 44, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 44, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 61, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 76, 85 ], [ 85, 86 ], [ 85, 87 ], [ 8, 88 ], [ 88, 89 ], [ 89, 90 ], [ 8, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 91, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 6, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "import java.util.Scanner;\n\npublic class Main { \n public static void main(String[] args) {\n\n int count = 0;\n int max = 0;\n int D1 = 0;\n int D2 = 0; \n\n Scanner scanner = new Scanner(System.in);\n int N = Integer.parseInt(scanner.next());\n for (int i = 0; i < N; i++){\n D1 = Integer.parseInt(scanner.next());\n D2 = Integer.parseInt(scanner.next());\n if (D1 == D2) {\n count++;\n if (count == N){\n max = count;\n }\n } else {\n if (count > max){\n max = count;\n }\n count = 0;\n }\n }\n scanner.close();\n\n if (max >= 3){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main { \n public static void main(String[] args) {\n\n int count = 0;\n int max = 0;\n int D1 = 0;\n int D2 = 0; \n\n Scanner scanner = new Scanner(System.in);\n int N = Integer.parseInt(scanner.next());\n for (int i = 0; i < N; i++){\n D1 = Integer.parseInt(scanner.next());\n D2 = Integer.parseInt(scanner.next());\n if (D1 == D2) {\n count++;\n if (count == N){\n max = count;\n }\n } else {\n if (count > max){\n max = count;\n }\n count = 0;\n }\n }\n scanner.close();\n\n if (max >= 3){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n\n int count = 0;\n int max = 0;\n int D1 = 0;\n int D2 = 0; \n\n Scanner scanner = new Scanner(System.in);\n int N = Integer.parseInt(scanner.next());\n for (int i = 0; i < N; i++){\n D1 = Integer.parseInt(scanner.next());\n D2 = Integer.parseInt(scanner.next());\n if (D1 == D2) {\n count++;\n if (count == N){\n max = count;\n }\n } else {\n if (count > max){\n max = count;\n }\n count = 0;\n }\n }\n scanner.close();\n\n if (max >= 3){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "main", "{\n\n int count = 0;\n int max = 0;\n int D1 = 0;\n int D2 = 0; \n\n Scanner scanner = new Scanner(System.in);\n int N = Integer.parseInt(scanner.next());\n for (int i = 0; i < N; i++){\n D1 = Integer.parseInt(scanner.next());\n D2 = Integer.parseInt(scanner.next());\n if (D1 == D2) {\n count++;\n if (count == N){\n max = count;\n }\n } else {\n if (count > max){\n max = count;\n }\n count = 0;\n }\n }\n scanner.close();\n\n if (max >= 3){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "int count = 0;", "count", "0", "int max = 0;", "max", "0", "int D1 = 0;", "D1", "0", "int D2 = 0;", "D2", "0", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N = Integer.parseInt(scanner.next());", "N", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "for (int i = 0; i < N; i++){\n D1 = Integer.parseInt(scanner.next());\n D2 = Integer.parseInt(scanner.next());\n if (D1 == D2) {\n count++;\n if (count == N){\n max = count;\n }\n } else {\n if (count > max){\n max = count;\n }\n count = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n D1 = Integer.parseInt(scanner.next());\n D2 = Integer.parseInt(scanner.next());\n if (D1 == D2) {\n count++;\n if (count == N){\n max = count;\n }\n } else {\n if (count > max){\n max = count;\n }\n count = 0;\n }\n }", "{\n D1 = Integer.parseInt(scanner.next());\n D2 = Integer.parseInt(scanner.next());\n if (D1 == D2) {\n count++;\n if (count == N){\n max = count;\n }\n } else {\n if (count > max){\n max = count;\n }\n count = 0;\n }\n }", "D1 = Integer.parseInt(scanner.next())", "D1", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "D2 = Integer.parseInt(scanner.next())", "D2", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "if (D1 == D2) {\n count++;\n if (count == N){\n max = count;\n }\n } else {\n if (count > max){\n max = count;\n }\n count = 0;\n }", "D1 == D2", "D1", "D2", "{\n count++;\n if (count == N){\n max = count;\n }\n }", "count++", "count", "if (count == N){\n max = count;\n }", "count == N", "count", "N", "{\n max = count;\n }", "max = count", "max", "count", "{\n if (count > max){\n max = count;\n }\n count = 0;\n }", "if (count > max){\n max = count;\n }", "count > max", "count", "max", "{\n max = count;\n }", "max = count", "max", "count", "count = 0", "count", "0", "scanner.close()", "scanner.close", "scanner", "if (max >= 3){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "max >= 3", "max", "3", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main { \n public static void main(String[] args) {\n\n int count = 0;\n int max = 0;\n int D1 = 0;\n int D2 = 0; \n\n Scanner scanner = new Scanner(System.in);\n int N = Integer.parseInt(scanner.next());\n for (int i = 0; i < N; i++){\n D1 = Integer.parseInt(scanner.next());\n D2 = Integer.parseInt(scanner.next());\n if (D1 == D2) {\n count++;\n if (count == N){\n max = count;\n }\n } else {\n if (count > max){\n max = count;\n }\n count = 0;\n }\n }\n scanner.close();\n\n if (max >= 3){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "public class Main { \n public static void main(String[] args) {\n\n int count = 0;\n int max = 0;\n int D1 = 0;\n int D2 = 0; \n\n Scanner scanner = new Scanner(System.in);\n int N = Integer.parseInt(scanner.next());\n for (int i = 0; i < N; i++){\n D1 = Integer.parseInt(scanner.next());\n D2 = Integer.parseInt(scanner.next());\n if (D1 == D2) {\n count++;\n if (count == N){\n max = count;\n }\n } else {\n if (count > max){\n max = count;\n }\n count = 0;\n }\n }\n scanner.close();\n\n if (max >= 3){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int count = 0; int max = 0; int D1 = 0; int D2 = 0; Scanner scanner = new Scanner(System.in); int N = Integer.parseInt(scanner.next()); for (int i = 0; i < N; i++){ D1 = Integer.parseInt(scanner.next()); D2 = Integer.parseInt(scanner.next()); if (D1 == D2) { count++; if (count == N){ max = count; } } else { if (count > max){ max = count; } count = 0; } } scanner.close(); if (max >= 3){ System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 4, 18, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 69, 5 ], [ 69, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 32, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 52, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 6, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint count = 0;\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\tif ( sc.nextInt()== sc.nextInt()) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif ( count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\n\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\t\tint n = sc.nextInt();\n\n\t\tint count = 0;\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\tif ( sc.nextInt()== sc.nextInt()) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif ( count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint count = 0;\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\tif ( sc.nextInt()== sc.nextInt()) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif ( count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint count = 0;\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\tif ( sc.nextInt()== sc.nextInt()) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif ( count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "for ( int i = 0; i < n; i++) {\n\t\t\tif ( sc.nextInt()== sc.nextInt()) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif ( count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tif ( sc.nextInt()== sc.nextInt()) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif ( count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}", "{\n\t\t\tif ( sc.nextInt()== sc.nextInt()) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif ( count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}", "if ( sc.nextInt()== sc.nextInt()) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}", "sc.nextInt()== sc.nextInt()", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextInt()", "sc.nextInt", "sc", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "{\n\t\t\t\tcount = 0;\n\t\t\t}", "count = 0", "count", "0", "if ( count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "count == 3", "count", "3", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint count = 0;\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\tif ( sc.nextInt()== sc.nextInt()) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif ( count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\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\t\tint n = sc.nextInt();\n\n\t\tint count = 0;\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\tif ( sc.nextInt()== sc.nextInt()) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\n\t\t\tif ( count == 3) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"No\");\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); int n = sc.nextInt(); int count = 0; for ( int i = 0; i < n; i++) { if ( sc.nextInt()== sc.nextInt()) { count++; } else { count = 0; } if ( count == 3) { System.out.println("Yes"); return; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 2, 18, 18, 13, 2, 13, 17, 17, 18, 18, 13, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 41, 13, 20, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 2, 40, 4, 13, 13, 2, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 17, 29, 2, 13, 4, 18, 13, 17, 4, 13, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 14, 2, 13, 17, 30, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 29, 2, 13, 4, 18, 13, 17, 4, 13, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 2, 13, 17, 13, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 18, 13, 13, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 12, 13, 30, 29, 4, 13, 6, 13, 12, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 590, 14 ], [ 590, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 17, 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 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 79, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 91, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 79, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 107, 113 ], [ 106, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 114, 120 ], [ 77, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 121, 128 ], [ 17, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 15, 135 ], [ 135, 136 ], [ 590, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 137, 141 ], [ 141, 142 ], [ 141, 143 ], [ 137, 145 ], [ 145, 146 ], [ 137, 147 ], [ 147, 148 ], [ 137, 149 ], [ 149, 150 ], [ 137, 151 ], [ 151, 152 ], [ 151, 153 ], [ 137, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 154, 162 ], [ 162, 163 ], [ 137, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 167, 172 ], [ 172, 173 ], [ 166, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 174, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 182, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 192, 193 ], [ 191, 194 ], [ 178, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 195, 199 ], [ 199, 200 ], [ 200, 201 ], [ 166, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 137, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 213, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 223, 224 ], [ 224, 225 ], [ 209, 226 ], [ 226, 227 ], [ 137, 228 ], [ 228, 229 ], [ 228, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 230, 235 ], [ 235, 236 ], [ 236, 237 ], [ 236, 238 ], [ 235, 239 ], [ 239, 240 ], [ 239, 241 ], [ 241, 242 ], [ 230, 243 ], [ 243, 244 ], [ 243, 245 ], [ 230, 246 ], [ 246, 247 ], [ 247, 248 ], [ 247, 249 ], [ 246, 250 ], [ 250, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 250, 255 ], [ 255, 256 ], [ 255, 257 ], [ 257, 258 ], [ 230, 259 ], [ 259, 260 ], [ 259, 261 ], [ 230, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 264, 266 ], [ 262, 267 ], [ 267, 268 ], [ 268, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 269, 273 ], [ 273, 274 ], [ 273, 275 ], [ 268, 276 ], [ 276, 277 ], [ 267, 278 ], [ 278, 279 ], [ 278, 280 ], [ 267, 281 ], [ 281, 282 ], [ 281, 283 ], [ 283, 284 ], [ 283, 285 ], [ 267, 286 ], [ 286, 287 ], [ 286, 288 ], [ 288, 289 ], [ 230, 290 ], [ 290, 291 ], [ 291, 292 ], [ 291, 293 ], [ 137, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 296, 301 ], [ 301, 302 ], [ 302, 303 ], [ 302, 304 ], [ 301, 305 ], [ 305, 306 ], [ 305, 307 ], [ 307, 308 ], [ 296, 309 ], [ 309, 310 ], [ 309, 311 ], [ 296, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 312, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 319, 320 ], [ 316, 321 ], [ 321, 322 ], [ 321, 323 ], [ 323, 324 ], [ 296, 325 ], [ 325, 326 ], [ 325, 327 ], [ 296, 328 ], [ 328, 329 ], [ 329, 330 ], [ 330, 331 ], [ 330, 332 ], [ 328, 333 ], [ 333, 334 ], [ 334, 335 ], [ 335, 336 ], [ 336, 337 ], [ 336, 338 ], [ 335, 339 ], [ 339, 340 ], [ 339, 341 ], [ 334, 342 ], [ 342, 343 ], [ 333, 344 ], [ 344, 345 ], [ 344, 346 ], [ 333, 347 ], [ 347, 348 ], [ 347, 349 ], [ 349, 350 ], [ 349, 351 ], [ 333, 352 ], [ 352, 353 ], [ 352, 354 ], [ 354, 355 ], [ 296, 356 ], [ 356, 357 ], [ 357, 358 ], [ 357, 359 ], [ 137, 360 ], [ 360, 361 ], [ 360, 362 ], [ 362, 363 ], [ 363, 364 ], [ 363, 365 ], [ 365, 366 ], [ 362, 367 ], [ 367, 368 ], [ 368, 369 ], [ 368, 370 ], [ 367, 371 ], [ 371, 372 ], [ 371, 373 ], [ 373, 374 ], [ 362, 375 ], [ 375, 376 ], [ 375, 377 ], [ 362, 378 ], [ 378, 379 ], [ 379, 380 ], [ 379, 381 ], [ 378, 382 ], [ 382, 383 ], [ 383, 384 ], [ 383, 385 ], [ 385, 386 ], [ 382, 387 ], [ 387, 388 ], [ 387, 389 ], [ 389, 390 ], [ 362, 391 ], [ 391, 392 ], [ 391, 393 ], [ 362, 394 ], [ 394, 395 ], [ 395, 396 ], [ 396, 397 ], [ 397, 398 ], [ 397, 399 ], [ 395, 400 ], [ 400, 401 ], [ 400, 402 ], [ 394, 403 ], [ 403, 404 ], [ 404, 405 ], [ 405, 406 ], [ 406, 407 ], [ 406, 408 ], [ 405, 409 ], [ 409, 410 ], [ 409, 411 ], [ 404, 412 ], [ 412, 413 ], [ 413, 414 ], [ 413, 415 ], [ 415, 416 ], [ 416, 417 ], [ 415, 418 ], [ 415, 419 ], [ 419, 420 ], [ 403, 421 ], [ 421, 422 ], [ 422, 423 ], [ 423, 424 ], [ 423, 425 ], [ 422, 426 ], [ 426, 427 ], [ 426, 428 ], [ 421, 429 ], [ 429, 430 ], [ 403, 431 ], [ 431, 432 ], [ 431, 433 ], [ 403, 434 ], [ 434, 435 ], [ 434, 436 ], [ 436, 437 ], [ 436, 438 ], [ 403, 439 ], [ 439, 440 ], [ 439, 441 ], [ 441, 442 ], [ 362, 443 ], [ 443, 444 ], [ 444, 445 ], [ 444, 446 ], [ 443, 447 ], [ 447, 448 ], [ 448, 449 ], [ 448, 450 ], [ 450, 451 ], [ 447, 452 ], [ 452, 453 ], [ 452, 454 ], [ 447, 455 ], [ 455, 456 ], [ 456, 457 ], [ 457, 458 ], [ 457, 459 ], [ 455, 460 ], [ 460, 461 ], [ 461, 462 ], [ 462, 463 ], [ 463, 464 ], [ 463, 465 ], [ 462, 466 ], [ 466, 467 ], [ 466, 468 ], [ 461, 469 ], [ 469, 470 ], [ 470, 471 ], [ 470, 472 ], [ 472, 473 ], [ 473, 474 ], [ 472, 475 ], [ 472, 476 ], [ 476, 477 ], [ 460, 478 ], [ 478, 479 ], [ 479, 480 ], [ 480, 481 ], [ 480, 482 ], [ 479, 483 ], [ 483, 484 ], [ 483, 485 ], [ 478, 486 ], [ 486, 487 ], [ 460, 488 ], [ 488, 489 ], [ 488, 490 ], [ 460, 491 ], [ 491, 492 ], [ 491, 493 ], [ 493, 494 ], [ 494, 495 ], [ 494, 496 ], [ 493, 497 ], [ 460, 498 ], [ 498, 499 ], [ 498, 500 ], [ 500, 501 ], [ 362, 502 ], [ 502, 503 ], [ 503, 504 ], [ 503, 505 ], [ 137, 506 ], [ 506, 507 ], [ 506, 508 ], [ 508, 509 ], [ 509, 510 ], [ 509, 511 ], [ 511, 512 ], [ 508, 513 ], [ 513, 514 ], [ 514, 515 ], [ 514, 516 ], [ 513, 517 ], [ 517, 518 ], [ 517, 519 ], [ 519, 520 ], [ 508, 521 ], [ 521, 522 ], [ 521, 523 ], [ 508, 524 ], [ 524, 525 ], [ 525, 526 ], [ 526, 527 ], [ 526, 528 ], [ 524, 529 ], [ 529, 530 ], [ 530, 531 ], [ 531, 532 ], [ 530, 533 ], [ 529, 534 ], [ 534, 535 ], [ 534, 536 ], [ 536, 537 ], [ 508, 538 ], [ 538, 539 ], [ 539, 540 ], [ 540, 541 ], [ 137, 542 ], [ 542, 543 ], [ 542, 544 ], [ 544, 545 ], [ 545, 546 ], [ 546, 547 ], [ 546, 548 ], [ 545, 549 ], [ 549, 550 ], [ 550, 551 ], [ 551, 552 ], [ 550, 553 ], [ 544, 554 ], [ 554, 555 ], [ 558, 556 ], [ 568, 557 ], [ 565, 558 ], [ 558, 559 ], [ 559, 560 ], [ 559, 561 ], [ 558, 562 ], [ 562, 563 ], [ 562, 564 ], [ 565, 565 ], [ 565, 566 ], [ 565, 567 ], [ 568, 568 ], [ 568, 569 ], [ 568, 570 ], [ 558, 571 ], [ 571, 572 ], [ 571, 573 ], [ 573, 574 ], [ 542, 575 ], [ 575, 576 ], [ 137, 577 ], [ 577, 578 ], [ 577, 579 ], [ 579, 580 ], [ 580, 581 ], [ 581, 582 ], [ 137, 583 ], [ 583, 584 ], [ 583, 585 ], [ 585, 586 ], [ 585, 587 ], [ 587, 588 ], [ 0, 589 ], [ 589, 590 ], [ 589, 591 ] ]
[ "// A Java Program to detect cycle in a graph \nimport java.awt.*;\nimport java.io.*;\nimport java.util.*;\nimport java.util.List;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n InputReader sc=new InputReader(System.in);\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n for (int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n for (int i=0;i<n-2;i++){\n if (arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}\n", "import java.awt.*;", "awt.*", "java", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.util.List;", "List", "java.util", "public class Main {\n\n public static void main(String[] args) throws Exception {\n InputReader sc=new InputReader(System.in);\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n for (int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n for (int i=0;i<n-2;i++){\n if (arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n InputReader sc=new InputReader(System.in);\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n for (int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n for (int i=0;i<n-2;i++){\n if (arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }", "main", "{\n InputReader sc=new InputReader(System.in);\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n for (int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n for (int i=0;i<n-2;i++){\n if (arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }", "InputReader sc=new InputReader(System.in);", "sc", "new InputReader(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int arr[][]=new int[n][2];", "arr", "new int[n][2]", "n", "2", "for (int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }", "{\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }", "arr[i][0]=sc.nextInt()", "arr[i][0]", "arr[i]", "arr", "i", "0", "sc.nextInt()", "sc.nextInt", "sc", "arr[i][1]=sc.nextInt()", "arr[i][1]", "arr[i]", "arr", "i", "1", "sc.nextInt()", "sc.nextInt", "sc", "for (int i=0;i<n-2;i++){\n if (arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n-2", "i", "n-2", "n", "2", "i++", "i++", "i", "{\n if (arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n if (arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }", "if (arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){\n System.out.println(\"Yes\");\n return;\n }", "arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]", "arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]", "arr[i][0]==arr[i][1]", "arr[i][0]", "arr[i]", "arr", "i", "0", "arr[i][1]", "arr[i]", "arr", "i", "1", "arr[i+1][0]==arr[i+1][1]", "arr[i+1][0]", "arr[i+1]", "arr", "i+1", "i", "1", "0", "arr[i+1][1]", "arr[i+1]", "arr", "i+1", "i", "1", "1", "arr[i+2][0]==arr[i+2][1]", "arr[i+2][0]", "arr[i+2]", "arr", "i+2", "i", "2", "0", "arr[i+2][1]", "arr[i+2]", "arr", "i+2", "i", "2", "1", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }", "InputReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private SpaceCharFilter filter;", "filter", "private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "public InputReader(InputStream stream) {\n this.stream = stream;\n }", "InputReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }", "if (numChars == -1) throw new InputMismatchException();", "numChars == -1", "numChars", "-1", "1", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0) return -1;\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0) return -1;\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0) return -1;", "numChars <= 0", "numChars", "0", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "nextInt", "{\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "int res = 0;", "res", "0", "do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9') throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "nextLong", "{\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "long res = 0;", "res", "0", "do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9') throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }", "nextDouble", "{\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "double res = 0;", "res", "0", "while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "!isSpaceChar(c) && c != '.'", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "c != '.'", "c", "'.'", "{\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());", "c == 'e' || c == 'E'", "c == 'e'", "c", "'e'", "c == 'E'", "c", "'E'", "return res * Math.pow(10, nextInt());", "res * Math.pow(10, nextInt())", "res", "Math.pow(10, nextInt())", "Math.pow", "Math", "10", "nextInt()", "nextInt", "if (c < '0' || c > '9') throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }", "c == '.'", "c", "'.'", "{\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }", "c = read()", "c", "read()", "read", "double m = 1;", "m", "1", "while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }", "if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());", "c == 'e' || c == 'E'", "c == 'e'", "c", "'e'", "c == 'E'", "c", "'E'", "return res * Math.pow(10, nextInt());", "res * Math.pow(10, nextInt())", "res", "Math.pow(10, nextInt())", "Math.pow", "Math", "10", "nextInt()", "nextInt", "if (c < '0' || c > '9') throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "m /= 10", "m", "10", "res += (c - '0') * m", "res", "(c - '0') * m", "(c - '0')", "c", "'0'", "m", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public String readString() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }", "readString", "{\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "StringBuilder res = new StringBuilder();", "res", "new StringBuilder()", "do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n res.appendCodePoint(c);\n c = read();\n }", "res.appendCodePoint(c)", "res.appendCodePoint", "res", "c", "c = read()", "c", "read()", "read", "return res.toString();", "res.toString()", "res.toString", "res", "public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isSpaceChar", "{\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "if (filter != null) return filter.isSpaceChar(c);", "filter != null", "filter", "null", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public String next() {\n return readString();\n }", "next", "{\n return readString();\n }", "return readString();", "readString()", "readString", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "public class Main {\n\n public static void main(String[] args) throws Exception {\n InputReader sc=new InputReader(System.in);\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n for (int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n for (int i=0;i<n-2;i++){\n if (arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) throws Exception {\n InputReader sc=new InputReader(System.in);\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n for (int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n for (int i=0;i<n-2;i++){\n if (arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9') throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n}", "Main" ]
// A Java Program to detect cycle in a graph import java.awt.*; import java.io.*; import java.util.*; import java.util.List; public class Main { public static void main(String[] args) throws Exception { InputReader sc=new InputReader(System.in); int n=sc.nextInt(); int arr[][]=new int[n][2]; for (int i=0;i<n;i++){ arr[i][0]=sc.nextInt(); arr[i][1]=sc.nextInt(); } for (int i=0;i<n-2;i++){ if (arr[i][0]==arr[i][1] && arr[i+1][0]==arr[i+1][1] && arr[i+2][0]==arr[i+2][1]){ System.out.println("Yes"); return; } } System.out.println("No"); } static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private SpaceCharFilter filter; private BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public InputReader(InputStream stream) { this.stream = stream; } public int read() { if (numChars == -1) throw new InputMismatchException(); if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) return -1; } return buf[curChar++]; } public String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } public int nextInt() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } int res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public long nextLong() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } long res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public double nextDouble() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } double res = 0; while (!isSpaceChar(c) && c != '.') { if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt()); if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } if (c == '.') { c = read(); double m = 1; while (!isSpaceChar(c)) { if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt()); if (c < '0' || c > '9') throw new InputMismatchException(); m /= 10; res += (c - '0') * m; c = read(); } } return res * sgn; } public String readString() { int c = read(); while (isSpaceChar(c)) c = read(); StringBuilder res = new StringBuilder(); do { res.appendCodePoint(c); c = read(); } while (!isSpaceChar(c)); return res.toString(); } public boolean isSpaceChar(int c) { if (filter != null) return filter.isSpaceChar(c); return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public String next() { return readString(); } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 40, 13, 14, 2, 13, 2, 13, 17, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 3, 0, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 71, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 104, 111 ], [ 100, 112 ], [ 112, 113 ], [ 112, 114 ], [ 8, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 6, 125 ], [ 125, 126 ] ]
[ "import java.util.*;\nclass Main {\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n int[] ar = new int[n];\n for(int i=0;i<n;i++)\n {\n arr[i] = sc.nextInt();\n ar[i] = sc.nextInt();\n }\n int c=0;\n int m=1;\n for(int i=0;i<n;i++)\n {\n if(arr[i]==ar[i])\n {\n c++;\n if(i==n-1)\n {\n if(c>=3)\n System.out.println(\"Yes\");\n }\n }\n else\n {\n if(c>=3)\n {\n System.out.println(\"Yes\");\n break;\n }\n else\n c=0;\n }\n }\n if(c<3)\n System.out.println(\"No\");\n \n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n int[] ar = new int[n];\n for(int i=0;i<n;i++)\n {\n arr[i] = sc.nextInt();\n ar[i] = sc.nextInt();\n }\n int c=0;\n int m=1;\n for(int i=0;i<n;i++)\n {\n if(arr[i]==ar[i])\n {\n c++;\n if(i==n-1)\n {\n if(c>=3)\n System.out.println(\"Yes\");\n }\n }\n else\n {\n if(c>=3)\n {\n System.out.println(\"Yes\");\n break;\n }\n else\n c=0;\n }\n }\n if(c<3)\n System.out.println(\"No\");\n \n }\n}", "Main", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n int[] ar = new int[n];\n for(int i=0;i<n;i++)\n {\n arr[i] = sc.nextInt();\n ar[i] = sc.nextInt();\n }\n int c=0;\n int m=1;\n for(int i=0;i<n;i++)\n {\n if(arr[i]==ar[i])\n {\n c++;\n if(i==n-1)\n {\n if(c>=3)\n System.out.println(\"Yes\");\n }\n }\n else\n {\n if(c>=3)\n {\n System.out.println(\"Yes\");\n break;\n }\n else\n c=0;\n }\n }\n if(c<3)\n System.out.println(\"No\");\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n int[] ar = new int[n];\n for(int i=0;i<n;i++)\n {\n arr[i] = sc.nextInt();\n ar[i] = sc.nextInt();\n }\n int c=0;\n int m=1;\n for(int i=0;i<n;i++)\n {\n if(arr[i]==ar[i])\n {\n c++;\n if(i==n-1)\n {\n if(c>=3)\n System.out.println(\"Yes\");\n }\n }\n else\n {\n if(c>=3)\n {\n System.out.println(\"Yes\");\n break;\n }\n else\n c=0;\n }\n }\n if(c<3)\n System.out.println(\"No\");\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] arr = new int[n];", "arr", "new int[n]", "n", "int[] ar = new int[n];", "ar", "new int[n]", "n", "for(int i=0;i<n;i++)\n {\n arr[i] = sc.nextInt();\n ar[i] = sc.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n arr[i] = sc.nextInt();\n ar[i] = sc.nextInt();\n }", "{\n arr[i] = sc.nextInt();\n ar[i] = sc.nextInt();\n }", "arr[i] = sc.nextInt()", "arr[i]", "arr", "i", "sc.nextInt()", "sc.nextInt", "sc", "ar[i] = sc.nextInt()", "ar[i]", "ar", "i", "sc.nextInt()", "sc.nextInt", "sc", "int c=0;", "c", "0", "int m=1;", "m", "1", "for(int i=0;i<n;i++)\n {\n if(arr[i]==ar[i])\n {\n c++;\n if(i==n-1)\n {\n if(c>=3)\n System.out.println(\"Yes\");\n }\n }\n else\n {\n if(c>=3)\n {\n System.out.println(\"Yes\");\n break;\n }\n else\n c=0;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n if(arr[i]==ar[i])\n {\n c++;\n if(i==n-1)\n {\n if(c>=3)\n System.out.println(\"Yes\");\n }\n }\n else\n {\n if(c>=3)\n {\n System.out.println(\"Yes\");\n break;\n }\n else\n c=0;\n }\n }", "{\n if(arr[i]==ar[i])\n {\n c++;\n if(i==n-1)\n {\n if(c>=3)\n System.out.println(\"Yes\");\n }\n }\n else\n {\n if(c>=3)\n {\n System.out.println(\"Yes\");\n break;\n }\n else\n c=0;\n }\n }", "if(arr[i]==ar[i])\n {\n c++;\n if(i==n-1)\n {\n if(c>=3)\n System.out.println(\"Yes\");\n }\n }\n else\n {\n if(c>=3)\n {\n System.out.println(\"Yes\");\n break;\n }\n else\n c=0;\n }", "arr[i]==ar[i]", "arr[i]", "arr", "i", "ar[i]", "ar", "i", "{\n c++;\n if(i==n-1)\n {\n if(c>=3)\n System.out.println(\"Yes\");\n }\n }", "c++", "c", "if(i==n-1)\n {\n if(c>=3)\n System.out.println(\"Yes\");\n }", "i==n-1", "i", "n-1", "n", "1", "{\n if(c>=3)\n System.out.println(\"Yes\");\n }", "if(c>=3)\n System.out.println(\"Yes\");", "c>=3", "c", "3", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n if(c>=3)\n {\n System.out.println(\"Yes\");\n break;\n }\n else\n c=0;\n }", "if(c>=3)\n {\n System.out.println(\"Yes\");\n break;\n }\n else\n c=0;", "c>=3", "c", "3", "{\n System.out.println(\"Yes\");\n break;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "c=0", "c", "0", "if(c<3)\n System.out.println(\"No\");", "c<3", "c", "3", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; int[] ar = new int[n]; for(int i=0;i<n;i++) { arr[i] = sc.nextInt(); ar[i] = sc.nextInt(); } int c=0; int m=1; for(int i=0;i<n;i++) { if(arr[i]==ar[i]) { c++; if(i==n-1) { if(c>=3) System.out.println("Yes"); } } else { if(c>=3) { System.out.println("Yes"); break; } else c=0; } } if(c<3) System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 14, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 41, 13, 20, 41, 13, 4, 18, 13, 13, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 6, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 30, 40, 13, 0, 13, 17, 14, 2, 13, 17, 29, 17, 29, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 144, 11 ], [ 144, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 22, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 22, 64 ], [ 64, 65 ], [ 64, 66 ], [ 22, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 22, 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 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 12, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 100, 108 ], [ 108, 109 ], [ 109, 110 ], [ 100, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 114, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 113, 125 ], [ 125, 126 ], [ 126, 127 ], [ 113, 128 ], [ 128, 129 ], [ 128, 130 ], [ 112, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 135, 136 ], [ 96, 137 ], [ 137, 138 ], [ 94, 139 ], [ 139, 140 ], [ 94, 141 ], [ 141, 142 ], [ 0, 143 ], [ 143, 144 ], [ 143, 145 ] ]
[ "import java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n if(sc.hasNextInt()) \n {\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n \tfor(int i=0;i<n;i++)\n \t{\n arr[i][0]=sc.nextInt();\n\t arr[i][1]=sc.nextInt(); \n \t}\n deployB obj=new deployB();\n boolean ans=obj.solve(arr,n);\n if(ans==true)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\"); \n }\n \n }\n \n}\nclass deployB\n{\n public boolean solve(int a[][],int n)\n {\n int cnt=0;\n for(int i=0;i<n;i++)\n {\n if(a[i][0]==a[i][1])\n {\n cnt++;\n }\n else\n cnt=0;\n if(cnt==3)\n return true;\n }\n return false;\n }\n \n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n if(sc.hasNextInt()) \n {\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n \tfor(int i=0;i<n;i++)\n \t{\n arr[i][0]=sc.nextInt();\n\t arr[i][1]=sc.nextInt(); \n \t}\n deployB obj=new deployB();\n boolean ans=obj.solve(arr,n);\n if(ans==true)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\"); \n }\n \n }\n \n}", "Main", "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n if(sc.hasNextInt()) \n {\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n \tfor(int i=0;i<n;i++)\n \t{\n arr[i][0]=sc.nextInt();\n\t arr[i][1]=sc.nextInt(); \n \t}\n deployB obj=new deployB();\n boolean ans=obj.solve(arr,n);\n if(ans==true)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\"); \n }\n \n }", "main", "{\n Scanner sc=new Scanner(System.in);\n if(sc.hasNextInt()) \n {\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n \tfor(int i=0;i<n;i++)\n \t{\n arr[i][0]=sc.nextInt();\n\t arr[i][1]=sc.nextInt(); \n \t}\n deployB obj=new deployB();\n boolean ans=obj.solve(arr,n);\n if(ans==true)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\"); \n }\n \n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "if(sc.hasNextInt()) \n {\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n \tfor(int i=0;i<n;i++)\n \t{\n arr[i][0]=sc.nextInt();\n\t arr[i][1]=sc.nextInt(); \n \t}\n deployB obj=new deployB();\n boolean ans=obj.solve(arr,n);\n if(ans==true)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\"); \n }", "sc.hasNextInt()", "sc.hasNextInt", "sc", "{\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n \tfor(int i=0;i<n;i++)\n \t{\n arr[i][0]=sc.nextInt();\n\t arr[i][1]=sc.nextInt(); \n \t}\n deployB obj=new deployB();\n boolean ans=obj.solve(arr,n);\n if(ans==true)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\"); \n }", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int arr[][]=new int[n][2];", "arr", "new int[n][2]", "n", "2", "for(int i=0;i<n;i++)\n \t{\n arr[i][0]=sc.nextInt();\n\t arr[i][1]=sc.nextInt(); \n \t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n arr[i][0]=sc.nextInt();\n\t arr[i][1]=sc.nextInt(); \n \t}", "{\n arr[i][0]=sc.nextInt();\n\t arr[i][1]=sc.nextInt(); \n \t}", "arr[i][0]=sc.nextInt()", "arr[i][0]", "arr[i]", "arr", "i", "0", "sc.nextInt()", "sc.nextInt", "sc", "arr[i][1]=sc.nextInt()", "arr[i][1]", "arr[i]", "arr", "i", "1", "sc.nextInt()", "sc.nextInt", "sc", "deployB obj=new deployB();", "obj", "new deployB()", "boolean ans=obj.solve(arr,n);", "ans", "obj.solve(arr,n)", "obj.solve", "obj", "arr", "n", "if(ans==true)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "ans==true", "ans", "true", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "class deployB\n{\n public boolean solve(int a[][],int n)\n {\n int cnt=0;\n for(int i=0;i<n;i++)\n {\n if(a[i][0]==a[i][1])\n {\n cnt++;\n }\n else\n cnt=0;\n if(cnt==3)\n return true;\n }\n return false;\n }\n \n}", "deployB", "public boolean solve(int a[][],int n)\n {\n int cnt=0;\n for(int i=0;i<n;i++)\n {\n if(a[i][0]==a[i][1])\n {\n cnt++;\n }\n else\n cnt=0;\n if(cnt==3)\n return true;\n }\n return false;\n }", "solve", "{\n int cnt=0;\n for(int i=0;i<n;i++)\n {\n if(a[i][0]==a[i][1])\n {\n cnt++;\n }\n else\n cnt=0;\n if(cnt==3)\n return true;\n }\n return false;\n }", "int cnt=0;", "cnt", "0", "for(int i=0;i<n;i++)\n {\n if(a[i][0]==a[i][1])\n {\n cnt++;\n }\n else\n cnt=0;\n if(cnt==3)\n return true;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n if(a[i][0]==a[i][1])\n {\n cnt++;\n }\n else\n cnt=0;\n if(cnt==3)\n return true;\n }", "{\n if(a[i][0]==a[i][1])\n {\n cnt++;\n }\n else\n cnt=0;\n if(cnt==3)\n return true;\n }", "if(a[i][0]==a[i][1])\n {\n cnt++;\n }\n else\n cnt=0;", "a[i][0]==a[i][1]", "a[i][0]", "a[i]", "a", "i", "0", "a[i][1]", "a[i]", "a", "i", "1", "{\n cnt++;\n }", "cnt++", "cnt", "cnt=0", "cnt", "0", "if(cnt==3)\n return true;", "cnt==3", "cnt", "3", "return true;", "true", "return false;", "false", "int a[][]", "a", "int n", "n", "public class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n if(sc.hasNextInt()) \n {\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n \tfor(int i=0;i<n;i++)\n \t{\n arr[i][0]=sc.nextInt();\n\t arr[i][1]=sc.nextInt(); \n \t}\n deployB obj=new deployB();\n boolean ans=obj.solve(arr,n);\n if(ans==true)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\"); \n }\n \n }\n \n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n if(sc.hasNextInt()) \n {\n int n=sc.nextInt();\n int arr[][]=new int[n][2];\n \tfor(int i=0;i<n;i++)\n \t{\n arr[i][0]=sc.nextInt();\n\t arr[i][1]=sc.nextInt(); \n \t}\n deployB obj=new deployB();\n boolean ans=obj.solve(arr,n);\n if(ans==true)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\"); \n }\n \n }\n \n}", "Main" ]
import java.util.*; import java.lang.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); if(sc.hasNextInt()) { int n=sc.nextInt(); int arr[][]=new int[n][2]; for(int i=0;i<n;i++) { arr[i][0]=sc.nextInt(); arr[i][1]=sc.nextInt(); } deployB obj=new deployB(); boolean ans=obj.solve(arr,n); if(ans==true) System.out.println("Yes"); else System.out.println("No"); } } } class deployB { public boolean solve(int a[][],int n) { int cnt=0; for(int i=0;i<n;i++) { if(a[i][0]==a[i][1]) { cnt++; } else cnt=0; if(cnt==3) return true; } return false; } }