Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr


        

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.

Please double check your code to solve this problem and try again.

Your Answer

375
196
262
126
437
62
154
142
360
258
168
187
224
129
206
237
177
336
192
329
188
229
167
137
123
120
284
207
362
112
134
97
377
167
357
298
233
256
140
428
224
335
81
342
392
167
304
384
255
280
403
218
322
204
158
213
314
264
41
194
327
226
128
78
241
150
310
112
368
274
142
193
124
217
185
118
328
48
311
173
302
368
247
304
272
143
207
294
210
32
204
155
164
79
382
159
369
95
182
226
247
247
131
175
337
301
327
206
25
233
356
159
218
295
82
326
273
199
228
291
324
376
74
85
82
366
352
300
182
388
338
287
125
111
98
182
185
287
117
304
228
345
220
385
329
299
214
380
120
206
59
118
89
230
268
132
190
375
251
350
371
173
284
196
195
382
191
189
122
185
223
279
278
223
33
327
221
229
88
131
282
132
264
344
163
75
186
139
260
216
190
146
290
295
46
345
360
300
308
205
123
175
263
149
429
323
276
311
229
261
318
404
138
289
80
100
225
67
79
284
83
197
187
227
209
151
340
287
238
220
208
240
179
217
256
130
139
149
165
240
223
233
237
151
73
284
41
132
349
255
190
241
229
216
331
27
289
234
144
75
107
186
265
3

JOJ Answer

Invalid graph. Exiting.