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

1460
5526
6839
INF
5817
776
3272
2316
2053
INF
5656
2807
4261
8507
8313
7898
INF
2681
INF
9052
7554
9435
8694
5378
INF
670
INF
5147
708
1473
8987
INF
728
INF
INF
INF
INF
569
8056
360
1166
746
7121
3689
5188
INF
INF
6146
INF
1526
INF
7265
469
4817
887
INF
8427
1209
4350
2011
INF
8077
INF
7794
INF
INF
INF
771
3520
6446
4407
5797
INF
415
5986
INF
760
INF
INF
1957
1425
INF
465
6550
3824
3089
813
390
3636
5554
INF
INF
3419
1328
INF
6883
1339
668
INF
5085
5453
6345
5201
8650
INF
INF
INF
838
3370
2011
606
758
907
INF
953
4758
8306
INF
705
999
3580
3154
INF
5136
954
INF
INF
8870
5747
3734
INF
INF
1859
6467
INF
802
6761
INF
6281
2729
3800
1788
1926
INF
20
561
5396
3150
INF
6556
3111
7615
546
713
9333
944
8518
INF
6438
INF
6171
2584
2226
INF
834
715
9133
7843
INF
6523
473
9451
9545
874
1792
INF
7395
INF
1031
1966
9023
INF
INF
1203
890
7630
6263
1266
5117
INF
INF
INF
INF
1003
9330
INF
6294
8072
INF
1579
INF
INF
4767
INF
INF
9418
INF
1038
4798
9690
7138
INF
514
8591
7553
6269
INF
2825
INF
3687
3837
2650
443
7174
INF
952

JOJ Answer

213
194
153
252
231
172
146
157
222
186
138
151
117
234
173
113
122
246
177
158
113
157
130
193
190
180
202
163
154
145
166
89
122
139
166
91
227
128
157
180
203
218
203
154
141
230
189
165
84
274
206
127
221
233
128
162
182
136
127
205
237
209
127
174
183
210
170
223
168
238
96
220
191
279
121
168
172
114
205
168
171
207
141
137
148
85
123
89
179
183
161
154
109
177
192
223
183
70
236
205
202
102
174
113
180
129
169
77
323
170
170
141
160
143
256
226
129
165
97
194
207
199
133
124
254
139
152
237
219
148
224
214
227
63
169
88
258
129
183
133
127
343
153
153
20
136
118
267
174
278
259
219
183
130
206
117
193
252
183
161
208
205
156
224
126
164
184
157
131
284
171
176
194
220
216
226
220
208
202
54
259
269
91
115
160
173
126
183
177
325
108
166
138
124
153
64
298
182
144
139
160
87
178
162
63
173
141
120
182
114
191
128
174
226
145
117
129
139
174
177
280
143
111
127
264
205
176
203
251
150
236
216
133
213
192
216
176
158
143
169
214
270
260
110
87
219
110
188
219
67
204
130
164
227
175
188
197
247
269
157
218