<?xml version="1.0" encoding="UTF-8"?> 
<fps version="1.0" url="http://code.google.com/p/freeproblemset/">
	<generator name="HUSTOJ" url="http://code.google.com/p/hustoj/"/>
	<item>
<title><![CDATA[Problem A: Fire Station]]></title>
<time_limit><![CDATA[10]]></time_limit>
<memory_limit><![CDATA[128]]></memory_limit>
<description><![CDATA[<p></p>
<p>
<title></title>
</p>
<h2>Problem A: Fire Station</h2>
<p>A city is served by a number of fire stations.  Some residents have complained that the distance from their houses to the nearest station is too far, so a new station is to be built.  You are to choose the location of the fire station so as to reduce the distance to the nearest station from the houses of the disgruntled residents.</p>
<p>The city has up to 500 intersections, connected by road segments of various lengths.  No more than 20 road segments intersect at a given intersection.  The location of houses and firestations alike are considered to be at intersections (the travel distance from the intersection to the actual building can be discounted).  Furthermore, we assume that there is at least one house associated with every intersection.  There may be more than one firestation per intersection.</p>]]></description>
<input><![CDATA[<p>The first line of input contains two positive integers:  <i>f</i>,the  number of existing fire stations (<i>f</i> &lt;= 100) and <i>i</i>, the number of  intersections  (<i>i</i> &lt;= 500).  The intersections are numbered from 1 to <i>i</i> consecutively.  <i>f</i> lines follow; each contains the intersection number at which an existing fire station is found.  A number of lines follow, each containing three positive integers:  the number of an intersection, the number of a different intersection, and the length of the road segment connecting the intersections.  All road segments are two-way (at least as far as fire engines are concerned), and there will exist a route between any pair of intersections.</p>]]></input> 
<output><![CDATA[<p>You are to output a single integer:  the lowest intersection number at  which a new fire station should be built so as to minimize the maximum distance from any intersection to the nearest fire station.</p>]]></output>
<sample_input><![CDATA[1 6
2
1 2 10
2 3 10
3 4 10
4 5 10
5 6 10
6 1 10
]]></sample_input>
<sample_output><![CDATA[5
]]></sample_output>
<test_input><![CDATA[1 6
2
1 2 10
2 3 10
3 4 10
4 5 10
5 6 10
6 1 10
]]></test_input>
<test_output><![CDATA[5
]]></test_output>
<test_input><![CDATA[10 500
54
415
328
303
132
286
231
12
68
351
2 1 10
3 2 7
4 3 4
5 4 1
6 1 7
7 3 10
8 2 5
9 8 2
10 8 6
11 9 4
12 1 4
13 2 9
14 1 10
15 10 9
16 11 5
17 7 10
18 17 10
19 4 3
20 15 10
21 13 6
22 21 7
23 21 1
24 14 2
25 10 7
26 5 10
27 14 10
28 25 10
29 28 2
30 3 5
31 22 3
32 31 3
33 5 5
34 25 4
35 22 5
36 23 2
37 10 9
38 18 9
39 7 3
40 36 2
41 11 9
42 32 3
43 29 9
44 6 10
45 30 4
46 5 3
47 42 6
48 16 2
49 42 9
50 29 9
51 15 8
52 11 7
53 38 3
54 39 8
55 17 6
56 7 6
57 55 7
58 38 5
59 53 3
60 28 8
61 46 2
62 57 3
63 7 9
64 14 9
65 17 2
66 54 3
67 43 1
68 14 1
69 21 3
70 40 10
71 69 1
72 9 5
73 31 8
74 64 3
75 72 6
76 17 5
77 12 4
78 32 6
79 46 5
80 15 10
81 18 5
82 65 9
83 11 1
84 37 10
85 19 8
86 21 5
87 61 9
88 62 9
89 36 3
90 16 5
91 19 5
92 90 8
93 66 1
94 2 1
95 10 1
96 10 5
97 23 4
98 93 3
99 86 5
100 49 10
101 83 4
102 25 5
103 76 7
104 66 1
105 8 6
106 62 2
107 41 7
108 38 8
109 62 5
110 79 5
111 7 2
112 50 3
113 87 6
114 15 10
115 30 9
116 32 4
117 83 8
118 2 8
119 58 1
120 60 7
121 56 7
122 95 6
123 58 10
124 69 3
125 11 8
126 104 1
127 97 9
128 45 4
129 100 9
130 45 4
131 97 4
132 122 3
133 67 5
134 66 1
135 25 1
136 49 2
137 81 9
138 40 2
139 38 7
140 5 2
141 114 4
142 88 2
143 123 8
144 69 8
145 32 10
146 21 6
147 13 10
148 38 8
149 114 1
150 24 10
151 133 8
152 136 1
153 110 2
154 5 6
155 58 10
156 74 1
157 98 5
158 37 10
159 88 9
160 135 1
161 150 2
162 141 5
163 45 9
164 61 6
165 39 3
166 12 3
167 148 1
168 29 10
169 155 7
170 92 2
171 79 7
172 4 6
173 88 9
174 144 5
175 97 5
176 163 9
177 158 6
178 79 10
179 68 6
180 14 6
181 70 3
182 74 1
183 50 10
184 162 8
185 173 8
186 31 9
187 159 5
188 77 8
189 9 10
190 119 4
191 6 1
192 42 6
193 16 6
194 119 3
195 11 2
196 88 2
197 32 5
198 53 1
199 5 4
200 130 7
201 13 1
202 40 7
203 1 10
204 119 10
205 197 8
206 80 8
207 126 8
208 184 8
209 103 10
210 190 7
211 151 10
212 199 8
213 38 1
214 31 4
215 64 8
216 205 9
217 88 6
218 179 5
219 83 3
220 211 9
221 42 10
222 95 1
223 35 1
224 124 3
225 192 10
226 44 2
227 61 8
228 57 6
229 172 8
230 10 4
231 167 9
232 176 5
233 215 10
234 31 3
235 128 6
236 189 3
237 185 10
238 205 3
239 204 3
240 182 2
241 222 5
242 158 2
243 218 2
244 60 1
245 91 7
246 119 6
247 37 7
248 8 3
249 99 2
250 199 8
251 247 1
252 101 3
253 240 6
254 75 3
255 160 1
256 94 2
257 93 7
258 179 8
259 56 2
260 254 9
261 140 4
262 202 7
263 110 9
264 5 8
265 28 10
266 108 8
267 36 10
268 202 5
269 33 6
270 219 6
271 68 1
272 255 4
273 7 6
274 120 7
275 119 2
276 257 9
277 253 4
278 52 9
279 144 9
280 53 3
281 201 5
282 162 2
283 190 1
284 142 2
285 226 6
286 265 5
287 6 10
288 196 5
289 99 4
290 182 6
291 265 1
292 248 2
293 50 2
294 173 5
295 226 9
296 147 2
297 276 8
298 185 9
299 286 2
300 205 5
301 87 4
302 185 4
303 237 10
304 252 10
305 59 2
306 272 9
307 264 10
308 126 7
309 55 5
310 90 4
311 124 1
312 89 7
313 222 1
314 116 7
315 32 9
316 203 10
317 8 3
318 85 9
319 152 3
320 256 8
321 146 4
322 109 10
323 289 2
324 205 9
325 321 1
326 92 2
327 211 7
328 5 1
329 323 6
330 70 10
331 137 2
332 116 10
333 170 4
334 268 2
335 134 7
336 31 3
337 188 1
338 276 6
339 73 2
340 203 1
341 312 8
342 5 4
343 32 1
344 155 5
345 186 5
346 106 4
347 130 7
348 83 5
349 108 3
350 5 7
351 230 7
352 241 3
353 347 5
354 16 1
355 98 6
356 98 9
357 159 6
358 296 1
359 224 10
360 59 6
361 196 2
362 66 3
363 234 4
364 62 9
365 111 3
366 2 10
367 283 8
368 337 9
369 310 2
370 175 7
371 248 6
372 102 4
373 338 10
374 96 9
375 67 10
376 294 4
377 320 5
378 181 3
379 154 5
380 158 8
381 299 8
382 355 1
383 213 1
384 152 8
385 98 4
386 171 3
387 250 2
388 386 3
389 40 10
390 158 4
391 62 7
392 294 7
393 361 7
394 214 2
395 35 2
396 177 3
397 218 10
398 61 10
399 54 6
400 276 6
401 49 3
402 16 10
403 229 4
404 16 10
405 270 5
406 115 9
407 341 4
408 67 5
409 251 7
410 57 5
411 211 7
412 247 4
413 159 2
414 379 10
415 393 2
416 155 8
417 403 5
418 196 3
419 206 1
420 269 7
421 305 8
422 129 7
423 130 3
424 218 4
425 352 8
426 318 2
427 9 7
428 237 7
429 249 9
430 299 5
431 183 3
432 208 9
433 293 1
434 362 6
435 261 6
436 408 7
437 7 9
438 9 8
439 436 7
440 213 7
441 66 3
442 317 4
443 421 6
444 26 7
445 32 6
446 434 8
447 8 7
448 357 4
449 45 8
450 41 1
451 133 5
452 134 10
453 136 5
454 362 9
455 17 2
456 165 9
457 44 4
458 264 2
459 241 2
460 410 6
461 229 6
462 8 6
463 158 9
464 180 3
465 409 3
466 85 1
467 8 6
468 27 3
469 116 1
470 448 5
471 432 9
472 409 5
473 218 6
474 217 4
475 455 10
476 229 7
477 213 2
478 128 9
479 331 6
480 57 1
481 399 9
482 216 6
483 294 5
484 415 8
485 47 2
486 312 8
487 316 6
488 432 5
489 237 3
490 170 2
491 93 6
492 220 9
493 198 6
494 17 2
495 327 1
496 214 1
497 282 8
498 399 7
499 272 7
500 455 10
]]></test_input>
<test_output><![CDATA[8
]]></test_output>
<test_input><![CDATA[10 500
229
231
89
37
312
173
413
448
195
322
2 1 7
3 2 7
4 3 10
5 4 1
6 1 10
7 1 2
8 4 2
9 4 6
10 7 9
11 6 3
12 4 7
13 8 2
14 11 9
15 14 7
16 6 1
17 13 4
18 5 2
19 18 3
20 1 9
21 5 8
22 21 10
23 22 8
24 12 5
25 23 9
26 21 3
27 10 9
28 14 7
29 8 5
30 1 5
31 14 2
32 23 4
33 29 4
34 23 8
35 2 7
36 34 3
37 21 9
38 25 6
39 10 6
40 5 3
41 4 7
42 3 7
43 39 7
44 15 8
45 11 1
46 43 6
47 28 9
48 33 10
49 24 5
50 6 10
51 4 10
52 20 10
53 14 5
54 31 7
55 52 6
56 6 7
57 25 7
58 50 9
59 49 10
60 34 8
61 31 1
62 24 4
63 57 4
64 6 3
65 62 7
66 17 5
67 42 5
68 63 5
69 9 8
70 52 2
71 24 4
72 47 8
73 66 3
74 62 5
75 19 6
76 69 7
77 44 8
78 38 9
79 21 7
80 44 3
81 25 2
82 37 2
83 50 3
84 63 8
85 6 1
86 66 5
87 36 10
88 36 7
89 47 2
90 86 9
91 7 6
92 67 7
93 22 6
94 83 6
95 19 5
96 48 9
97 64 7
98 71 5
99 47 10
100 79 10
101 22 2
102 1 7
103 31 6
104 60 5
105 7 6
106 25 8
107 10 9
108 75 5
109 53 8
110 67 1
111 74 10
112 102 1
113 82 3
114 84 8
115 71 8
116 47 8
117 37 1
118 20 1
119 9 2
120 97 7
121 79 2
122 95 10
123 1 9
124 107 9
125 98 8
126 4 1
127 97 1
128 67 8
129 112 9
130 98 10
131 26 1
132 123 6
133 84 5
134 14 4
135 92 8
136 85 5
137 75 6
138 85 3
139 122 4
140 107 4
141 21 3
142 119 1
143 116 7
144 121 9
145 117 2
146 5 3
147 104 8
148 84 7
149 29 8
150 24 10
151 145 2
152 140 8
153 101 2
154 67 4
155 11 5
156 7 5
157 149 3
158 8 2
159 97 4
160 32 5
161 27 1
162 16 10
163 79 9
164 85 3
165 4 8
166 62 3
167 61 8
168 48 1
169 131 1
170 30 3
171 25 3
172 143 4
173 75 5
174 18 7
175 150 9
176 79 6
177 17 2
178 52 1
179 88 5
180 16 6
181 155 9
182 42 5
183 18 9
184 67 6
185 155 2
186 103 8
187 8 8
188 22 3
189 106 9
190 99 3
191 59 4
192 80 2
193 168 8
194 84 7
195 41 9
196 154 7
197 15 3
198 194 2
199 93 10
200 5 4
201 113 6
202 23 9
203 107 5
204 6 8
205 61 3
206 147 6
207 147 3
208 99 4
209 164 2
210 110 2
211 90 4
212 53 8
213 112 3
214 78 1
215 142 9
216 126 7
217 202 8
218 13 8
219 48 9
220 184 8
221 13 8
222 121 1
223 150 3
224 221 10
225 111 6
226 213 6
227 195 3
228 174 10
229 173 4
230 201 10
231 193 7
232 132 8
233 116 4
234 176 7
235 206 4
236 57 7
237 160 1
238 165 5
239 58 5
240 6 10
241 240 9
242 205 2
243 153 8
244 238 9
245 72 3
246 10 6
247 15 8
248 96 5
249 167 2
250 228 5
251 218 9
252 207 1
253 182 1
254 144 7
255 167 3
256 81 6
257 99 10
258 172 3
259 194 10
260 118 3
261 92 10
262 64 2
263 97 2
264 113 10
265 158 9
266 61 3
267 257 8
268 227 10
269 220 1
270 101 5
271 233 3
272 138 5
273 223 9
274 100 4
275 38 9
276 256 1
277 223 5
278 220 7
279 258 8
280 206 3
281 28 3
282 183 6
283 112 3
284 178 2
285 250 3
286 83 8
287 194 7
288 182 2
289 195 1
290 108 6
291 200 10
292 81 8
293 138 10
294 36 3
295 201 4
296 146 6
297 70 4
298 235 10
299 55 8
300 16 2
301 203 10
302 123 10
303 274 5
304 183 3
305 48 5
306 285 5
307 242 6
308 224 1
309 79 9
310 244 5
311 184 10
312 283 2
313 80 2
314 248 2
315 116 5
316 135 2
317 268 5
318 34 9
319 160 3
320 111 5
321 239 3
322 233 6
323 170 4
324 147 6
325 136 10
326 30 8
327 54 1
328 312 7
329 86 1
330 86 1
331 297 4
332 21 10
333 84 6
334 42 9
335 254 3
336 140 10
337 123 5
338 132 8
339 110 10
340 121 4
341 332 6
342 116 3
343 206 1
344 324 7
345 203 10
346 40 9
347 317 5
348 225 4
349 311 9
350 50 2
351 173 1
352 202 9
353 342 6
354 338 7
355 240 2
356 122 9
357 73 4
358 17 4
359 348 3
360 123 10
361 244 2
362 221 8
363 244 9
364 78 10
365 158 7
366 279 10
367 354 7
368 285 7
369 182 10
370 22 1
371 4 7
372 86 2
373 102 3
374 222 6
375 301 10
376 90 10
377 263 5
378 182 10
379 339 2
380 247 2
381 250 5
382 296 7
383 339 2
384 171 4
385 9 8
386 15 6
387 72 7
388 137 5
389 308 5
390 108 10
391 294 7
392 297 6
393 45 10
394 310 5
395 75 6
396 202 3
397 346 8
398 153 2
399 391 4
400 181 3
401 283 4
402 178 8
403 90 8
404 306 1
405 276 4
406 1 5
407 272 4
408 313 2
409 343 6
410 390 6
411 364 2
412 149 7
413 251 8
414 133 3
415 59 6
416 128 7
417 289 8
418 344 10
419 307 8
420 235 6
421 383 5
422 136 4
423 352 1
424 76 2
425 164 2
426 112 3
427 320 6
428 66 6
429 344 10
430 403 8
431 317 8
432 62 7
433 419 2
434 316 9
435 235 10
436 366 3
437 158 5
438 221 3
439 193 2
440 303 6
441 164 3
442 97 9
443 183 2
444 63 4
445 253 4
446 158 9
447 49 9
448 137 7
449 373 4
450 423 1
451 256 2
452 154 1
453 96 1
454 397 6
455 263 10
456 262 6
457 78 2
458 332 4
459 13 9
460 206 7
461 355 2
462 145 7
463 442 3
464 84 10
465 412 2
466 298 5
467 398 8
468 245 1
469 282 3
470 311 2
471 304 10
472 331 7
473 179 4
474 9 7
475 287 9
476 370 9
477 392 1
478 251 2
479 135 2
480 427 2
481 424 5
482 16 9
483 174 6
484 280 2
485 54 9
486 460 3
487 486 6
488 223 2
489 441 1
490 370 5
491 340 4
492 88 1
493 198 2
494 75 8
495 377 7
496 477 6
497 99 10
498 437 5
499 149 5
500 216 6
]]></test_input>
<test_output><![CDATA[22
]]></test_output>
<test_input><![CDATA[100 500
362
48
363
418
127
252
110
308
218
352
135
453
47
233
3
296
36
149
404
235
325
217
164
465
89
45
284
295
190
350
460
463
18
288
227
421
284
266
69
64
173
254
268
454
360
381
209
262
204
107
329
447
498
424
12
73
474
59
177
444
191
30
396
39
235
214
234
343
356
352
282
269
39
26
307
248
202
424
477
51
327
190
313
176
387
315
196
437
50
239
212
184
316
408
284
399
92
51
73
186
2 4 105
3 4 130
1 4 62
3 5 143
1 5 104
4 5 101
2 6 129
3 6 139
5 6 86
1 7 63
6 7 94
3 7 57
7 8 91
2 8 116
5 8 118
5 9 52
6 9 73
2 9 54
7 10 84
2 10 82
1 10 88
7 11 94
5 11 137
10 11 144
2 12 107
10 12 77
7 12 58
1 13 53
8 13 99
10 13 76
10 14 116
2 14 61
7 14 124
13 15 137
2 15 106
14 15 75
13 16 52
10 16 116
5 16 100
11 17 54
8 17 51
4 17 83
6 18 112
8 18 119
11 18 77
4 19 95
16 19 129
3 19 129
1 20 63
14 20 119
18 20 72
18 21 143
17 21 87
14 21 58
12 22 147
15 22 128
6 22 121
20 23 145
9 23 85
21 23 109
15 24 90
16 24 95
3 24 69
21 25 54
8 25 121
6 25 144
4 26 105
24 26 104
20 26 118
16 27 70
4 27 82
19 27 117
25 28 146
3 28 125
18 28 137
23 29 77
17 29 82
12 29 120
26 30 103
27 30 141
15 30 58
30 31 91
16 31 84
1 31 52
13 32 131
9 32 57
23 32 134
32 33 59
8 33 104
24 33 67
26 34 60
9 34 64
18 34 64
13 35 114
14 35 50
16 35 139
28 36 102
9 36 113
32 36 68
34 37 93
33 37 67
14 37 100
17 38 92
27 38 69
18 38 149
28 39 104
13 39 52
19 39 141
34 40 103
1 40 117
19 40 52
32 41 51
21 41 97
11 41 131
11 42 98
36 42 132
37 42 88
19 43 88
9 43 96
11 43 87
27 44 127
24 44 83
28 44 128
29 45 106
39 45 97
30 45 71
36 46 98
42 46 55
12 46 63
45 47 116
28 47 54
33 47 66
39 48 92
44 48 59
40 48 108
35 49 147
26 49 82
36 49 75
47 50 96
28 50 57
42 50 116
38 51 111
23 51 133
37 51 53
38 52 51
12 52 54
32 52 75
38 53 54
32 53 125
50 53 72
38 54 148
15 54 98
30 54 137
33 55 72
42 55 51
30 55 115
26 56 105
23 56 56
36 56 130
54 57 52
12 57 113
25 57 50
36 58 53
25 58 57
40 58 65
40 59 139
52 59 117
26 59 73
22 60 143
42 60 65
38 60 93
3 61 142
17 61 126
31 61 60
60 62 120
57 62 116
54 62 111
60 63 84
34 63 147
24 63 105
63 64 52
53 64 94
20 64 115
17 65 125
29 65 51
54 65 131
52 66 125
49 66 76
57 66 99
59 67 144
21 67 114
52 67 69
43 68 93
35 68 63
63 68 148
61 69 52
58 69 80
55 69 68
51 70 63
47 70 73
37 70 117
57 71 128
59 71 87
55 71 62
21 72 56
24 72 143
69 72 143
39 73 72
15 73 65
40 73 136
47 74 53
27 74 53
37 74 84
49 75 77
65 75 61
33 75 74
74 76 64
20 76 114
22 76 65
62 77 59
22 77 94
68 77 58
65 78 97
75 78 69
70 78 148
54 79 87
50 79 63
43 79 108
45 80 114
72 80 81
22 80 59
37 81 61
67 81 147
42 81 95
62 82 63
39 82 77
22 82 118
23 83 62
82 83 116
30 83 130
61 84 94
41 84 71
49 84 120
75 85 138
40 85 125
80 85 90
33 86 73
67 86 86
19 86 80
31 87 62
62 87 115
78 87 77
34 88 135
73 88 66
55 88 52
78 89 148
60 89 136
48 89 95
84 90 75
89 90 62
59 90 97
65 91 141
56 91 61
45 91 135
80 92 146
49 92 83
64 92 67
57 93 109
61 93 53
74 93 58
29 94 135
31 94 96
93 94 77
58 95 123
49 95 55
91 95 119
34 96 92
29 96 52
87 96 69
85 97 114
55 97 70
65 97 78
57 98 116
65 98 78
72 98 98
44 99 144
93 99 61
61 99 56
29 100 73
94 100 124
86 100 121
43 101 92
27 101 145
64 101 102
85 102 99
52 102 71
100 102 60
95 103 57
71 103 111
67 103 128
95 104 72
79 104 51
101 104 142
45 105 97
84 105 145
70 105 94
56 106 119
87 106 110
25 106 126
31 107 86
94 107 107
86 107 136
93 108 65
84 108 77
78 108 86
70 109 146
103 109 77
96 109 56
99 110 122
52 110 56
63 110 104
81 111 86
53 111 144
103 111 50
66 112 137
62 112 115
91 112 138
76 113 58
47 113 117
84 113 73
54 114 124
100 114 135
79 114 51
61 115 136
51 115 89
60 115 102
72 116 52
95 116 120
108 116 79
68 117 72
104 117 119
60 117 125
106 118 75
112 118 76
91 118 111
95 119 144
99 119 116
79 119 70
115 120 56
99 120 90
76 120 84
77 121 104
104 121 104
110 121 123
97 122 140
59 122 118
50 122 139
83 123 78
59 123 105
80 123 59
67 124 127
107 124 85
63 124 99
121 125 59
78 125 82
75 125 111
66 126 118
121 126 82
95 126 77
91 127 101
109 127 93
88 127 103
103 128 148
31 128 51
118 128 85
56 129 56
91 129 148
73 129 92
92 130 103
75 130 87
105 130 91
111 131 121
100 131 108
116 131 136
88 132 114
84 132 133
100 132 120
117 133 91
128 133 68
20 133 109
55 134 136
80 134 121
51 134 111
103 135 85
35 135 80
64 135 139
117 136 56
83 136 53
106 136 84
86 137 139
69 137 89
77 137 50
74 138 76
106 138 104
97 138 86
72 139 101
92 139 134
86 139 98
94 140 91
115 140 79
56 140 66
104 141 92
107 141 91
75 141 125
93 142 83
129 142 90
68 142 72
132 143 108
97 143 73
122 143 91
51 144 87
71 144 124
41 144 75
107 145 81
70 145 77
79 145 125
126 146 55
69 146 67
43 146 138
139 147 63
44 147 106
90 147 56
125 148 68
45 148 84
129 148 85
99 149 84
58 149 80
126 149 88
103 150 121
133 150 122
112 150 115
105 151 136
145 151 137
93 151 128
139 152 50
39 152 122
67 152 115
149 153 88
66 153 80
72 153 103
122 154 54
86 154 51
62 154 98
152 155 86
48 155 145
125 155 147
48 156 125
87 156 109
41 156 77
46 157 143
69 157 127
137 157 128
35 158 86
127 158 88
102 158 114
155 159 73
56 159 87
70 159 82
64 160 145
51 160 120
151 160 94
87 161 69
88 161 117
74 161 130
94 162 122
140 162 129
100 162 85
77 163 145
134 163 110
138 163 127
110 164 121
154 164 138
73 164 72
155 165 97
164 165 125
141 165 101
125 166 127
71 166 126
156 166 65
76 167 87
50 167 60
123 167 84
87 168 105
152 168 149
66 168 66
162 169 118
96 169 147
149 169 138
143 170 86
50 170 113
25 170 112
74 171 133
110 171 68
158 171 50
64 172 92
112 172 128
116 172 112
166 173 105
141 173 107
169 173 141
73 174 52
118 174 51
155 174 125
149 175 81
142 175 73
157 175 115
41 176 85
125 176 54
113 176 84
124 177 106
108 177 88
132 177 141
156 178 51
134 178 126
175 178 62
158 179 59
139 179 64
92 179 64
73 180 81
83 180 55
112 180 64
71 181 114
144 181 64
99 181 138
117 182 127
83 182 58
151 182 137
160 183 100
113 183 88
141 183 84
114 184 101
136 184 107
150 184 127
162 185 70
46 185 106
154 185 74
79 186 118
143 186 93
168 186 80
164 187 64
169 187 127
162 187 125
145 188 57
96 188 88
131 188 96
188 189 125
85 189 66
186 189 86
176 190 118
69 190 77
80 190 108
111 191 53
105 191 142
155 191 139
66 192 79
177 192 120
85 192 50
173 193 50
162 193 133
129 193 143
147 194 129
164 194 62
128 194 84
76 195 114
44 195 79
179 195 133
183 196 57
35 196 147
172 196 51
117 197 112
43 197 115
81 197 65
118 198 145
85 198 50
146 198 145
107 199 96
176 199 99
158 199 79
166 200 143
120 200 94
148 200 86
107 201 113
90 201 70
198 201 69
174 202 131
133 202 149
200 202 70
195 203 118
182 203 126
186 203 81
174 204 112
193 204 115
198 204 89
193 205 134
195 205 116
94 205 139
97 206 130
170 206 83
194 206 115
83 207 148
197 207 83
183 207 110
155 208 95
104 208 104
129 208 111
158 209 63
147 209 125
128 209 132
88 210 57
177 210 93
90 210 77
146 211 83
121 211 86
189 211 140
200 212 94
114 212 125
141 212 105
151 213 70
184 213 144
90 213 92
134 214 141
137 214 126
151 214 81
210 215 123
130 215 66
163 215 101
196 216 145
146 216 97
201 216 123
131 217 62
200 217 111
139 217 105
174 218 72
153 218 67
187 218 149
68 219 120
159 219 102
169 219 97
158 220 134
142 220 123
206 220 66
78 221 85
109 221 59
217 221 72
130 222 54
156 222 124
204 222 136
160 223 144
111 223 124
110 223 69
209 224 64
97 224 95
136 224 91
191 225 122
108 225 66
219 225 59
47 226 79
89 226 80
133 226 62
58 227 86
204 227 141
146 227 109
115 228 89
123 228 58
181 228 73
58 229 70
183 229 122
202 229 71
187 230 83
219 230 66
92 230 91
149 231 127
135 231 132
46 231 56
126 232 93
165 232 101
125 232 66
197 233 105
140 233 58
41 233 102
108 234 85
193 234 120
214 234 90
48 235 124
225 235 131
105 235 75
134 236 51
111 236 84
201 236 67
230 237 78
108 237 142
164 237 104
116 238 110
138 238 143
234 238 61
149 239 130
220 239 58
166 239 82
177 240 132
159 240 100
219 240 95
120 241 56
156 241 122
199 241 72
133 242 121
101 242 73
169 242 110
88 243 95
189 243 75
241 243 100
225 244 100
187 244 80
200 244 50
237 245 84
104 245 66
230 245 81
123 246 112
227 246 115
127 246 85
139 247 130
151 247 89
178 247 70
90 248 52
220 248 85
217 248 138
141 249 114
123 249 145
122 249 102
183 250 94
169 250 60
240 250 118
211 251 91
46 251 56
206 251 56
142 252 136
182 252 110
113 252 132
109 253 146
226 253 126
147 253 55
243 254 100
110 254 138
82 254 111
254 255 79
178 255 140
71 255 107
114 256 85
214 256 56
179 256 74
229 257 134
174 257 71
209 257 145
230 258 82
106 258 147
115 258 68
136 259 134
116 259 126
232 259 136
121 260 71
214 260 118
243 260 59
175 261 67
129 261 121
212 261 112
248 262 92
252 262 56
161 262 128
156 263 125
115 263 113
142 263 84
130 264 85
164 264 53
253 264 144
157 265 98
116 265 99
135 265 91
118 266 61
196 266 140
127 266 105
200 267 102
222 267 120
205 267 70
219 268 81
235 268 58
162 268 112
189 269 73
131 269 85
142 269 142
222 270 113
235 270 86
188 270 149
249 271 56
53 271 96
127 271 113
166 272 142
109 272 61
195 272 146
251 273 125
150 273 106
167 273 105
216 274 89
113 274 149
224 274 149
222 275 121
173 275 143
98 275 145
92 276 144
120 276 50
96 276 60
243 277 57
180 277 87
229 277 112
209 278 51
167 278 53
265 278 52
138 279 69
194 279 59
101 279 82
255 280 111
256 280 109
238 280 59
96 281 80
144 281 91
170 281 117
250 282 104
147 282 123
222 282 65
251 283 121
263 283 112
247 283 85
144 284 107
46 284 87
225 284 72
251 285 117
276 285 99
179 285 129
226 286 110
258 286 100
224 286 84
184 287 109
44 287 139
179 287 120
230 288 116
201 288 101
232 288 128
101 289 136
230 289 85
109 289 90
251 290 130
206 290 68
244 290 136
133 291 106
210 291 66
222 291 69
256 292 107
181 292 102
184 292 71
127 293 91
249 293 121
233 293 107
247 294 111
150 294 74
136 294 116
227 295 147
233 295 141
283 295 144
286 296 145
208 296 67
229 296 95
196 297 54
258 297 128
124 297 66
183 298 123
140 298 58
120 298 117
272 299 71
213 299 89
106 299 87
119 300 126
244 300 140
242 300 70
89 301 96
119 301 107
246 301 84
178 302 141
267 302 89
138 302 64
205 303 61
105 303 103
147 303 147
175 304 98
286 304 88
68 304 99
190 305 116
134 305 65
268 305 63
207 306 141
77 306 105
197 306 130
203 307 63
260 307 121
270 307 64
77 308 114
229 308 98
175 308 57
173 309 88
177 309 106
235 309 140
196 310 58
175 310 98
167 310 94
178 311 112
120 311 113
131 311 96
178 312 70
191 312 134
255 312 125
143 313 77
305 313 56
211 313 128
168 314 50
152 314 66
145 314 86
223 315 110
154 315 74
148 315 57
226 316 83
190 316 65
138 316 127
145 317 112
216 317 127
284 317 128
308 318 124
312 318 132
98 318 54
259 319 64
262 319 146
182 319 92
102 320 134
254 320 120
228 320 115
286 321 89
194 321 117
187 321 57
247 322 131
154 322 56
284 322 136
280 323 81
304 323 68
154 323 105
223 324 123
89 324 138
63 324 111
117 325 122
296 325 137
279 325 103
279 326 51
98 326 99
252 326 54
220 327 122
144 327 55
241 327 144
223 328 63
291 328 115
180 328 55
304 329 104
232 329 53
274 329 93
253 330 80
310 330 128
152 330 113
146 331 146
181 331 51
238 331 66
254 332 52
201 332 126
204 332 64
198 333 78
315 333 89
239 333 135
290 334 102
197 334 76
206 334 132
132 335 64
308 335 74
246 335 114
124 336 104
53 336 81
298 336 132
195 337 100
282 337 129
327 337 125
277 338 142
196 338 102
328 338 146
262 339 118
199 339 148
243 339 104
326 340 77
225 340 121
315 340 83
132 341 135
290 341 120
185 341 50
132 342 73
277 342 51
143 342 83
82 343 141
240 343 100
181 343 135
248 344 118
136 344 51
300 344 77
303 345 113
210 345 89
124 345 64
137 346 63
214 346 116
215 346 95
238 347 91
194 347 103
260 347 110
122 348 60
281 348 80
313 348 144
335 349 145
258 349 74
143 349 79
257 350 75
324 350 67
199 350 128
316 351 140
297 351 112
167 351 139
247 352 67
287 352 104
260 352 136
325 353 149
194 353 96
307 353 113
211 354 122
283 354 129
118 354 131
240 355 53
231 355 85
348 355 139
306 356 78
193 356 95
346 356 64
193 357 110
128 357 114
208 357 116
89 358 133
182 358 104
145 358 102
315 359 102
252 359 59
285 359 133
343 360 66
315 360 109
291 360 113
344 361 50
243 361 139
244 361 146
261 362 101
102 362 92
254 362 74
361 363 124
185 363 93
119 363 111
316 364 80
349 364 99
128 364 98
201 365 130
307 365 147
212 365 107
220 366 87
198 366 93
199 366 127
225 367 86
285 367 85
330 367 129
167 368 56
165 368 60
367 368 124
265 369 149
213 369 77
221 369 126
209 370 101
343 370 84
360 370 82
82 371 81
228 371 120
296 371 92
290 372 100
294 372 141
264 372 141
211 373 66
119 373 146
324 373 90
244 374 114
152 374 65
338 374 137
365 375 60
263 375 128
180 375 140
247 376 122
361 376 101
153 376 141
342 377 112
326 377 87
296 377 104
318 378 63
232 378 94
305 378 106
121 379 105
347 379 57
259 379 52
299 380 100
377 380 53
255 380 140
372 381 93
289 381 91
309 381 105
160 382 117
249 382 139
273 382 118
98 383 112
314 383 53
298 383 66
219 384 140
150 384 121
254 384 118
195 385 97
213 385 90
370 385 77
319 386 149
362 386 135
310 386 129
309 387 125
205 387 69
373 387 141
185 388 86
261 388 75
216 388 124
371 389 104
202 389 66
328 389 91
262 390 113
345 390 147
210 390 145
313 391 65
265 391 146
186 391 106
122 392 55
339 392 134
294 392 134
123 393 115
199 393 84
221 393 149
371 394 59
347 394 142
150 394 71
362 395 145
260 395 59
265 395 96
270 396 70
124 396 101
271 396 145
280 397 103
240 397 75
184 397 97
111 398 147
262 398 73
140 398 124
282 399 118
368 399 147
190 399 124
212 400 55
364 400 95
267 400 55
319 401 136
176 401 57
226 401 122
295 402 125
213 402 127
250 402 68
351 403 109
326 403 81
192 403 96
235 404 135
394 404 50
309 404 137
385 405 106
284 405 54
328 405 144
257 406 120
402 406 147
76 406 52
210 407 60
349 407 54
286 407 104
237 408 71
159 408 78
334 408 92
180 409 58
220 409 108
252 409 111
102 410 64
283 410 133
333 410 66
311 411 72
276 411 83
352 411 72
293 412 75
289 412 126
381 412 61
260 413 77
221 413 123
309 413 63
148 414 69
365 414 55
182 414 118
303 415 138
358 415 131
205 415 63
257 416 81
294 416 142
327 416 129
207 417 140
48 417 143
355 417 51
218 418 145
383 418 60
266 418 71
340 419 61
359 419 57
357 419 93
176 420 80
333 420 88
404 420 135
279 421 67
325 421 84
255 421 50
185 422 96
229 422 110
184 422 99
355 423 52
255 423 79
112 423 139
234 424 50
265 424 149
191 424 125
192 425 63
174 425 82
267 425 122
292 426 81
369 426 122
137 426 140
392 427 141
410 427 143
218 427 135
317 428 89
333 428 85
288 428 50
318 429 101
294 429 129
215 429 87
291 430 82
337 430 61
297 430 103
412 431 83
251 431 72
135 431 135
180 432 106
261 432 78
400 432 80
168 433 135
408 433 141
331 433 145
428 434 78
82 434 96
318 434 143
380 435 105
249 435 81
197 435 74
278 436 89
157 436 66
228 436 122
163 437 123
302 437 73
427 437 126
346 438 133
214 438 129
300 438 62
341 439 129
315 439 106
424 439 83
302 440 95
340 440 50
102 440 93
198 441 64
221 441 77
321 441 149
323 442 83
345 442 63
333 442 67
131 443 117
332 443 121
268 443 64
428 444 91
185 444 58
324 444 82
235 445 108
363 445 148
430 445 102
366 446 77
405 446 110
306 446 71
236 447 52
397 447 112
319 447 114
357 448 60
344 448 109
385 448 77
385 449 54
269 449 84
356 449 103
206 450 115
272 450 90
276 450 57
170 451 141
420 451 98
350 451 109
353 452 136
330 452 107
326 452 146
213 453 55
286 453 66
204 453 70
448 454 99
376 454 105
325 454 53
328 455 140
440 455 112
257 455 141
264 456 122
296 456 138
291 456 137
288 457 52
101 457 119
410 457 129
188 458 146
303 458 133
320 458 112
323 459 71
209 459 116
303 459 93
269 460 50
281 460 143
406 460 118
349 461 109
352 461 51
436 461 110
461 462 142
426 462 101
245 462 56
327 463 104
460 463 130
440 463 124
207 464 102
340 464 68
455 464 96
267 465 136
433 465 131
439 465 138
300 466 89
415 466 64
410 466 81
319 467 93
376 467 79
309 467 149
253 468 68
370 468 139
363 468 100
303 469 121
443 469 93
282 469 128
295 470 98
430 470 140
370 470 123
311 471 75
373 471 148
227 471 142
322 472 71
374 472 95
204 472 59
465 473 68
320 473 56
278 473 133
153 474 143
399 474 108
262 474 97
420 475 90
437 475 57
433 475 109
274 476 88
218 476 109
313 476 79
177 477 144
421 477 134
239 477 100
306 478 138
179 478 141
403 478 83
283 479 53
340 479 66
353 479 145
416 480 87
173 480 115
272 480 101
280 481 116
464 481 121
302 481 82
344 482 148
308 482 115
343 482 148
205 483 57
448 483 61
393 483 97
227 484 54
287 484 100
439 484 142
186 485 59
386 485 126
475 485 114
275 486 52
413 486 59
305 486 80
246 487 60
298 487 147
226 487 124
479 488 65
389 488 123
469 488 76
413 489 102
351 489 134
393 489 115
487 490 133
348 490 51
408 490 77
406 491 52
231 491 129
172 491 106
391 492 91
135 492 112
410 492 54
327 493 134
416 493 81
245 493 113
171 494 92
289 494 54
380 494 113
316 495 135
414 495 75
242 495 68
297 496 59
301 496 140
352 496 93
186 497 144
221 497 141
359 497 79
424 498 83
297 498 107
440 498 146
366 499 119
330 499 57
428 499 124
325 500 106
381 500 75
338 500 102
]]></test_input>
<test_output><![CDATA[123
]]></test_output>
<test_input><![CDATA[100 500
362
48
363
418
127
252
110
308
218
352
135
453
47
233
3
296
36
149
404
235
325
217
164
465
89
45
284
295
190
350
460
463
18
288
227
421
284
266
69
64
173
254
268
454
360
381
209
262
204
107
329
447
498
424
12
73
474
59
177
444
191
30
396
39
235
214
234
343
356
352
282
269
39
26
307
248
202
424
477
51
327
190
313
176
387
315
196
437
50
239
212
184
316
408
284
399
92
51
73
186
2 4 205
3 4 130
1 4 662
3 5 1043
1 5 304
4 5 901
2 6 329
3 6 539
5 6 86
1 7 963
6 7 894
3 7 957
7 8 191
2 8 416
5 8 718
5 9 252
6 9 273
2 9 554
7 10 884
2 10 282
1 10 688
7 11 694
5 11 537
10 11 744
2 12 807
10 12 177
7 12 258
1 13 353
8 13 299
10 13 976
10 14 316
2 14 461
7 14 624
13 15 837
2 15 106
14 15 375
13 16 452
10 16 916
5 16 600
11 17 354
8 17 751
4 17 883
6 18 912
8 18 219
11 18 177
4 19 195
16 19 929
3 19 129
1 20 863
14 20 819
18 20 172
18 21 743
17 21 687
14 21 58
12 22 547
15 22 1028
6 22 721
20 23 345
9 23 185
21 23 509
15 24 390
16 24 295
3 24 369
21 25 154
8 25 821
6 25 944
4 26 605
24 26 604
20 26 118
16 27 270
4 27 482
19 27 317
25 28 946
3 28 725
18 28 837
23 29 677
17 29 782
12 29 420
26 30 303
27 30 241
15 30 858
30 31 991
16 31 584
1 31 652
13 32 831
9 32 857
23 32 134
32 33 759
8 33 504
24 33 567
26 34 660
9 34 364
18 34 264
13 35 214
14 35 350
16 35 139
28 36 602
9 36 413
32 36 268
34 37 293
33 37 467
14 37 500
17 38 192
27 38 169
18 38 349
28 39 1004
13 39 652
19 39 241
34 40 503
1 40 617
19 40 352
32 41 251
21 41 797
11 41 431
11 42 198
36 42 132
37 42 788
19 43 288
9 43 896
11 43 87
27 44 327
24 44 483
28 44 228
29 45 1006
39 45 497
30 45 371
36 46 998
42 46 755
12 46 363
45 47 516
28 47 554
33 47 166
39 48 792
44 48 459
40 48 708
35 49 947
26 49 582
36 49 675
47 50 896
28 50 457
42 50 916
38 51 111
23 51 633
37 51 553
38 52 751
12 52 754
32 52 875
38 53 454
32 53 225
50 53 772
38 54 848
15 54 198
30 54 237
33 55 72
42 55 251
30 55 615
26 56 905
23 56 456
36 56 430
54 57 652
12 57 113
25 57 250
36 58 453
25 58 957
40 58 65
40 59 839
52 59 1017
26 59 573
22 60 443
42 60 965
38 60 593
3 61 842
17 61 226
31 61 160
60 62 1020
57 62 616
54 62 811
60 63 984
34 63 147
24 63 405
63 64 852
53 64 994
20 64 1015
17 65 625
29 65 51
54 65 531
52 66 425
49 66 876
57 66 799
59 67 544
21 67 1014
52 67 169
43 68 393
35 68 863
63 68 548
61 69 452
58 69 280
55 69 468
51 70 263
47 70 173
37 70 717
57 71 628
59 71 987
55 71 362
21 72 656
24 72 843
69 72 543
39 73 572
15 73 265
40 73 436
47 74 653
27 74 753
37 74 384
49 75 977
65 75 861
33 75 674
74 76 764
20 76 814
22 76 65
62 77 659
22 77 794
68 77 558
65 78 497
75 78 69
70 78 848
54 79 287
50 79 963
43 79 408
45 80 914
72 80 281
22 80 559
37 81 861
67 81 747
42 81 595
62 82 663
39 82 477
22 82 918
23 83 862
82 83 516
30 83 430
61 84 894
41 84 771
49 84 920
75 85 138
40 85 525
80 85 290
33 86 973
67 86 586
19 86 880
31 87 862
62 87 615
78 87 577
34 88 835
73 88 366
55 88 52
78 89 248
60 89 136
48 89 95
84 90 575
89 90 762
59 90 97
65 91 1041
56 91 861
45 91 235
80 92 946
49 92 583
64 92 67
57 93 209
61 93 153
74 93 158
29 94 235
31 94 696
93 94 477
58 95 323
49 95 55
91 95 919
34 96 392
29 96 252
87 96 369
85 97 314
55 97 670
65 97 578
57 98 516
65 98 978
72 98 398
44 99 644
93 99 461
61 99 856
29 100 973
94 100 224
86 100 621
43 101 492
27 101 1045
64 101 202
85 102 499
52 102 571
100 102 860
95 103 57
71 103 411
67 103 728
95 104 972
79 104 651
101 104 142
45 105 397
84 105 1045
70 105 894
56 106 419
87 106 410
25 106 1026
31 107 286
94 107 407
86 107 336
93 108 865
84 108 777
78 108 86
70 109 746
103 109 577
96 109 156
99 110 922
52 110 256
63 110 1004
81 111 886
53 111 444
103 111 650
66 112 437
62 112 815
91 112 138
76 113 858
47 113 417
84 113 773
54 114 424
100 114 1035
79 114 251
61 115 736
51 115 389
60 115 602
72 116 52
95 116 220
108 116 379
68 117 972
104 117 519
60 117 225
106 118 375
112 118 976
91 118 711
95 119 644
99 119 516
79 119 70
115 120 856
99 120 90
76 120 984
77 121 804
104 121 804
110 121 123
97 122 240
59 122 1018
50 122 639
83 123 78
59 123 405
80 123 859
67 124 627
107 124 485
63 124 99
121 125 559
78 125 82
75 125 811
66 126 518
121 126 282
95 126 477
91 127 101
109 127 693
88 127 803
103 128 948
31 128 351
118 128 85
56 129 656
91 129 1048
73 129 192
92 130 403
75 130 387
105 130 91
111 131 321
100 131 908
116 131 336
88 132 914
84 132 433
100 132 520
117 133 791
128 133 968
20 133 609
55 134 1036
80 134 921
51 134 311
103 135 185
35 135 280
64 135 739
117 136 256
83 136 53
106 136 684
86 137 239
69 137 589
77 137 450
74 138 776
106 138 904
97 138 886
72 139 101
92 139 534
86 139 398
94 140 791
115 140 479
56 140 366
104 141 992
107 141 191
75 141 525
93 142 483
129 142 690
68 142 272
132 143 708
97 143 473
122 143 91
51 144 787
71 144 324
41 144 975
107 145 481
70 145 277
79 145 1025
126 146 55
69 146 467
43 146 938
139 147 263
44 147 606
90 147 56
125 148 868
45 148 484
129 148 85
99 149 384
58 149 380
126 149 388
103 150 821
133 150 1022
112 150 515
105 151 136
145 151 737
93 151 728
139 152 550
39 152 222
67 152 115
149 153 288
66 153 980
72 153 503
122 154 54
86 154 351
62 154 998
152 155 686
48 155 345
125 155 247
48 156 825
87 156 509
41 156 77
46 157 443
69 157 727
137 157 428
35 158 486
127 158 288
102 158 414
155 159 973
56 159 987
70 159 282
64 160 445
51 160 220
151 160 794
87 161 869
88 161 617
74 161 330
94 162 822
140 162 929
100 162 685
77 163 945
134 163 410
138 163 327
110 164 221
154 164 538
73 164 872
155 165 97
164 165 625
141 165 801
125 166 1027
71 166 526
156 166 165
76 167 87
50 167 260
123 167 484
87 168 905
152 168 1049
66 168 466
162 169 818
96 169 247
149 169 638
143 170 386
50 170 1013
25 170 912
74 171 633
110 171 668
158 171 650
64 172 692
112 172 228
116 172 912
166 173 705
141 173 1007
169 173 641
73 174 252
118 174 551
155 174 625
149 175 981
142 175 873
157 175 715
41 176 285
125 176 654
113 176 984
124 177 906
108 177 488
132 177 541
156 178 751
134 178 626
175 178 562
158 179 859
139 179 664
92 179 264
73 180 481
83 180 455
112 180 64
71 181 314
144 181 564
99 181 138
117 182 627
83 182 758
151 182 137
160 183 600
113 183 388
141 183 684
114 184 201
136 184 407
150 184 327
162 185 970
46 185 606
154 185 474
79 186 418
143 186 893
168 186 480
164 187 964
169 187 227
162 187 425
145 188 157
96 188 688
131 188 496
188 189 225
85 189 266
186 189 786
176 190 918
69 190 277
80 190 808
111 191 853
105 191 542
155 191 739
66 192 879
177 192 120
85 192 650
173 193 50
162 193 133
129 193 143
147 194 229
164 194 862
128 194 984
76 195 114
44 195 279
179 195 233
183 196 57
35 196 347
172 196 751
117 197 612
43 197 515
81 197 365
118 198 845
85 198 450
146 198 545
107 199 296
176 199 699
158 199 279
166 200 943
120 200 94
148 200 886
107 201 113
90 201 770
198 201 669
174 202 831
133 202 549
200 202 270
195 203 318
182 203 726
186 203 481
174 204 1012
193 204 415
198 204 89
193 205 134
195 205 616
94 205 639
97 206 630
170 206 583
194 206 615
83 207 948
197 207 383
183 207 510
155 208 995
104 208 504
129 208 111
158 209 963
147 209 825
128 209 432
88 210 57
177 210 893
90 210 277
146 211 683
121 211 386
189 211 640
200 212 94
114 212 425
141 212 305
151 213 870
184 213 244
90 213 992
134 214 941
137 214 226
151 214 681
210 215 1023
130 215 266
163 215 201
196 216 345
146 216 97
201 216 1023
131 217 462
200 217 311
139 217 305
174 218 472
153 218 367
187 218 349
68 219 620
159 219 502
169 219 897
158 220 834
142 220 1023
206 220 466
78 221 685
109 221 359
217 221 972
130 222 554
156 222 424
204 222 536
160 223 144
111 223 124
110 223 69
209 224 164
97 224 795
136 224 791
191 225 922
108 225 166
219 225 459
47 226 179
89 226 780
133 226 562
58 227 986
204 227 141
146 227 409
115 228 189
123 228 558
181 228 873
58 229 370
183 229 622
202 229 871
187 230 783
219 230 966
92 230 791
149 231 227
135 231 632
46 231 156
126 232 993
165 232 401
125 232 266
197 233 305
140 233 658
41 233 802
108 234 385
193 234 420
214 234 390
48 235 224
225 235 431
105 235 275
134 236 651
111 236 984
201 236 267
230 237 178
108 237 542
164 237 504
116 238 410
138 238 743
234 238 961
149 239 130
220 239 258
166 239 382
177 240 332
159 240 900
219 240 195
120 241 656
156 241 522
199 241 872
133 242 421
101 242 173
169 242 310
88 243 95
189 243 375
241 243 500
225 244 700
187 244 380
200 244 150
237 245 184
104 245 766
230 245 381
123 246 612
227 246 215
127 246 85
139 247 730
151 247 789
178 247 70
90 248 652
220 248 185
217 248 838
141 249 214
123 249 145
122 249 202
183 250 694
169 250 660
240 250 1018
211 251 491
46 251 956
206 251 656
142 252 136
182 252 210
113 252 932
109 253 246
226 253 626
147 253 655
243 254 400
110 254 938
82 254 211
254 255 79
178 255 140
71 255 707
114 256 585
214 256 256
179 256 174
229 257 734
174 257 471
209 257 445
230 258 982
106 258 847
115 258 568
136 259 1034
116 259 626
232 259 936
121 260 171
214 260 618
243 260 459
175 261 767
129 261 121
212 261 512
248 262 792
252 262 556
161 262 628
156 263 925
115 263 413
142 263 584
130 264 285
164 264 53
253 264 244
157 265 998
116 265 699
135 265 91
118 266 261
196 266 940
127 266 105
200 267 602
222 267 620
205 267 470
219 268 281
235 268 358
162 268 812
189 269 373
131 269 685
142 269 142
222 270 313
235 270 186
188 270 1049
249 271 156
53 271 896
127 271 513
166 272 242
109 272 661
195 272 346
251 273 425
150 273 406
167 273 205
216 274 589
113 274 149
224 274 749
222 275 521
173 275 843
98 275 645
92 276 144
120 276 250
96 276 60
243 277 557
180 277 387
229 277 512
209 278 251
167 278 753
265 278 252
138 279 769
194 279 659
101 279 82
255 280 211
256 280 609
238 280 359
96 281 980
144 281 891
170 281 917
250 282 904
147 282 823
222 282 665
251 283 421
263 283 412
247 283 585
144 284 907
46 284 987
225 284 72
251 285 917
276 285 499
179 285 429
226 286 910
258 286 700
224 286 884
184 287 509
44 287 339
179 287 1020
230 288 616
201 288 201
232 288 828
101 289 236
230 289 185
109 289 690
251 290 330
206 290 568
244 290 436
133 291 1006
210 291 566
222 291 869
256 292 707
181 292 702
184 292 771
127 293 491
249 293 1021
233 293 407
247 294 311
150 294 674
136 294 716
227 295 647
233 295 741
283 295 444
286 296 145
208 296 667
229 296 795
196 297 254
258 297 628
124 297 366
183 298 1023
140 298 958
120 298 1017
272 299 171
213 299 889
106 299 987
119 300 526
244 300 340
242 300 970
89 301 496
119 301 1007
246 301 884
178 302 141
267 302 89
138 302 264
205 303 561
105 303 803
147 303 547
175 304 498
286 304 188
68 304 499
190 305 716
134 305 865
268 305 63
207 306 341
77 306 905
197 306 330
203 307 863
260 307 521
270 307 564
77 308 614
229 308 398
175 308 557
173 309 288
177 309 506
235 309 240
196 310 958
175 310 798
167 310 694
178 311 712
120 311 613
131 311 296
178 312 770
191 312 434
255 312 225
143 313 977
305 313 556
211 313 828
168 314 950
152 314 666
145 314 486
223 315 310
154 315 74
148 315 557
226 316 283
190 316 265
138 316 227
145 317 812
216 317 427
284 317 128
308 318 1024
312 318 232
98 318 754
259 319 664
262 319 946
182 319 992
102 320 634
254 320 720
228 320 715
286 321 889
194 321 517
187 321 557
247 322 831
154 322 556
284 322 736
280 323 381
304 323 868
154 323 305
223 324 523
89 324 638
63 324 711
117 325 822
296 325 637
279 325 103
279 326 751
98 326 399
252 326 154
220 327 922
144 327 455
241 327 844
223 328 563
291 328 1015
180 328 955
304 329 904
232 329 553
274 329 993
253 330 80
310 330 328
152 330 1013
146 331 546
181 331 651
238 331 866
254 332 52
201 332 1026
204 332 864
198 333 978
315 333 889
239 333 335
290 334 602
197 334 676
206 334 732
132 335 664
308 335 74
246 335 214
124 336 204
53 336 981
298 336 432
195 337 500
282 337 829
327 337 625
277 338 342
196 338 802
328 338 446
262 339 1018
199 339 748
243 339 1004
326 340 777
225 340 921
315 340 383
132 341 235
290 341 1020
185 341 750
132 342 373
277 342 51
143 342 283
82 343 741
240 343 500
181 343 835
248 344 318
136 344 551
300 344 977
303 345 813
210 345 89
124 345 364
137 346 363
214 346 616
215 346 395
238 347 991
194 347 803
260 347 210
122 348 660
281 348 780
313 348 944
335 349 145
258 349 674
143 349 879
257 350 175
324 350 867
199 350 228
316 351 540
297 351 812
167 351 139
247 352 567
287 352 104
260 352 936
325 353 149
194 353 496
307 353 113
211 354 222
283 354 429
118 354 431
240 355 153
231 355 885
348 355 1039
306 356 978
193 356 795
346 356 164
193 357 810
128 357 314
208 357 916
89 358 1033
182 358 704
145 358 602
315 359 502
252 359 459
285 359 133
343 360 666
315 360 509
291 360 113
344 361 250
243 361 539
244 361 846
261 362 601
102 362 92
254 362 374
361 363 1024
185 363 493
119 363 1011
316 364 680
349 364 999
128 364 598
201 365 530
307 365 247
212 365 107
220 366 387
198 366 93
199 366 727
225 367 486
285 367 785
330 367 929
167 368 656
165 368 660
367 368 1024
265 369 849
213 369 477
221 369 1026
209 370 701
343 370 184
360 370 682
82 371 381
228 371 920
296 371 492
290 372 800
294 372 741
264 372 1041
211 373 266
119 373 846
324 373 890
244 374 714
152 374 465
338 374 1037
365 375 860
263 375 728
180 375 940
247 376 322
361 376 601
153 376 141
342 377 612
326 377 387
296 377 304
318 378 163
232 378 794
305 378 206
121 379 705
347 379 57
259 379 52
299 380 400
377 380 653
255 380 940
372 381 493
289 381 591
309 381 505
160 382 317
249 382 1039
273 382 118
98 383 112
314 383 653
298 383 66
219 384 340
150 384 621
254 384 218
195 385 397
213 385 90
370 385 877
319 386 849
362 386 235
310 386 629
309 387 425
205 387 569
373 387 841
185 388 86
261 388 375
216 388 324
371 389 604
202 389 766
328 389 391
262 390 813
345 390 947
210 390 945
313 391 265
265 391 746
186 391 706
122 392 755
339 392 534
294 392 434
123 393 615
199 393 584
221 393 849
371 394 259
347 394 442
150 394 271
362 395 345
260 395 259
265 395 896
270 396 770
124 396 801
271 396 945
280 397 603
240 397 275
184 397 797
111 398 447
262 398 373
140 398 824
282 399 518
368 399 447
190 399 824
212 400 55
364 400 895
267 400 155
319 401 636
176 401 957
226 401 422
295 402 125
213 402 527
250 402 668
351 403 909
326 403 181
192 403 196
235 404 735
394 404 550
309 404 537
385 405 906
284 405 454
328 405 144
257 406 220
402 406 947
76 406 752
210 407 60
349 407 154
286 407 804
237 408 671
159 408 478
334 408 292
180 409 758
220 409 408
252 409 1011
102 410 764
283 410 633
333 410 266
311 411 772
276 411 783
352 411 72
293 412 575
289 412 126
381 412 261
260 413 677
221 413 923
309 413 163
148 414 69
365 414 555
182 414 518
303 415 338
358 415 531
205 415 763
257 416 581
294 416 442
327 416 229
207 417 340
48 417 743
355 417 251
218 418 845
383 418 360
266 418 671
340 419 161
359 419 157
357 419 93
176 420 980
333 420 188
404 420 235
279 421 867
325 421 284
255 421 950
185 422 96
229 422 410
184 422 499
355 423 152
255 423 179
112 423 839
234 424 250
265 424 349
191 424 525
192 425 263
174 425 682
267 425 1022
292 426 381
369 426 222
137 426 640
392 427 241
410 427 343
218 427 835
317 428 789
333 428 985
288 428 450
318 429 101
294 429 529
215 429 187
291 430 682
337 430 461
297 430 1003
412 431 83
251 431 772
135 431 835
180 432 306
261 432 78
400 432 680
168 433 835
408 433 241
331 433 145
428 434 678
82 434 96
318 434 743
380 435 505
249 435 681
197 435 674
278 436 489
157 436 66
228 436 822
163 437 123
302 437 573
427 437 326
346 438 233
214 438 929
300 438 162
341 439 729
315 439 506
424 439 383
302 440 795
340 440 50
102 440 493
198 441 64
221 441 77
321 441 449
323 442 683
345 442 663
333 442 667
131 443 117
332 443 421
268 443 264
428 444 591
185 444 558
324 444 782
235 445 508
363 445 348
430 445 102
366 446 777
405 446 110
306 446 471
236 447 552
397 447 312
319 447 314
357 448 260
344 448 709
385 448 777
385 449 654
269 449 84
356 449 703
206 450 515
272 450 990
276 450 557
170 451 141
420 451 598
350 451 609
353 452 536
330 452 107
326 452 246
213 453 55
286 453 166
204 453 70
448 454 899
376 454 805
325 454 153
328 455 140
440 455 512
257 455 1041
264 456 722
296 456 938
291 456 1037
288 457 152
101 457 919
410 457 429
188 458 246
303 458 833
320 458 212
323 459 971
209 459 216
303 459 693
269 460 150
281 460 343
406 460 118
349 461 209
352 461 251
436 461 1010
461 462 542
426 462 701
245 462 356
327 463 504
460 463 330
440 463 1024
207 464 402
340 464 268
455 464 696
267 465 636
433 465 431
439 465 138
300 466 889
415 466 64
410 466 581
319 467 393
376 467 579
309 467 949
253 468 968
370 468 839
363 468 900
303 469 121
443 469 93
282 469 128
295 470 798
430 470 640
370 470 723
311 471 475
373 471 448
227 471 342
322 472 671
374 472 295
204 472 259
465 473 568
320 473 656
278 473 933
153 474 143
399 474 708
262 474 697
420 475 190
437 475 257
433 475 909
274 476 388
218 476 109
313 476 579
177 477 844
421 477 534
239 477 1000
306 478 738
179 478 141
403 478 583
283 479 753
340 479 366
353 479 345
416 480 187
173 480 115
272 480 101
280 481 716
464 481 221
302 481 82
344 482 348
308 482 815
343 482 548
205 483 557
448 483 261
393 483 497
227 484 154
287 484 600
439 484 242
186 485 159
386 485 426
475 485 1014
275 486 252
413 486 159
305 486 180
246 487 760
298 487 147
226 487 624
479 488 565
389 488 1023
469 488 776
413 489 402
351 489 534
393 489 515
487 490 733
348 490 651
408 490 877
406 491 252
231 491 1029
172 491 1006
391 492 891
135 492 212
410 492 854
327 493 234
416 493 481
245 493 913
171 494 692
289 494 854
380 494 1013
316 495 835
414 495 875
242 495 768
297 496 559
301 496 140
352 496 393
186 497 444
221 497 1041
359 497 179
424 498 983
297 498 807
440 498 246
366 499 719
330 499 857
428 499 524
325 500 906
381 500 75
338 500 802
]]></test_input>
<test_output><![CDATA[171
]]></test_output>
<test_input><![CDATA[1 1
1
]]></test_input>
<test_output><![CDATA[1
]]></test_output>
<test_input><![CDATA[7 4
1
1
1
1
1
1
1
1 2 1000
2 3 5
3 4 2
2 4 4
]]></test_input>
<test_output><![CDATA[4
]]></test_output>
<test_input><![CDATA[1 22
21
1 2 57
1 3 29
1 4 20
1 5 23
1 6 39
1 7 50
1 8 39
1 9 40
1 10 39
1 11 29
1 12 40
1 13 39
1 14 48
1 15 30
1 16 48
1 17 24
1 18 20
1 19 31
1 20 14
1 21 59
2 22 49
3 22 29
4 22 40
5 22 29
6 22 29
7 22 52
8 22 19
9 22 59
10 22 38
11 22 45
12 22 28
13 22 59
14 22 67
15 22 34
16 22 31
17 22 41
18 22 47
19 22 28
20 22 20
21 22 59
]]></test_input>
<test_output><![CDATA[1
]]></test_output>
<test_input><![CDATA[100 500
339
259
114
16
52
128
11
420
213
87
250
268
85
61
226
44
90
184
138
67
467
479
496
312
368
55
32
146
383
237
25
6
395
103
352
68
255
154
62
97
129
189
86
144
468
407
166
404
63
335
354
421
445
304
463
319
423
328
458
446
480
484
252
395
171
260
249
258
130
307
107
491
239
17
415
263
117
326
182
135
344
23
234
37
261
480
72
202
337
62
161
6
230
145
476
194
15
140
89
22
1 2 3
2 3 72
3 4 35
4 5 18
5 6 83
6 7 16
7 8 87
8 9 54
9 10 7
10 11 75
11 12 52
12 13 49
13 14 74
14 15 35
15 16 94
16 17 11
17 18 49
18 19 11
19 20 21
20 21 50
21 22 57
22 23 63
23 24 67
24 25 98
25 26 94
26 27 11
27 28 92
28 29 100
29 30 27
30 31 6
31 32 86
32 33 83
33 34 11
34 35 1
35 36 53
36 37 66
37 38 21
38 39 81
39 40 40
40 41 5
41 42 86
42 43 76
43 44 26
44 45 66
45 46 15
46 47 72
47 48 77
48 49 98
49 50 44
50 51 98
51 52 20
52 53 88
53 54 24
54 55 50
55 56 66
56 57 57
57 58 74
58 59 2
59 60 14
60 61 58
61 62 100
62 63 68
63 64 14
64 65 99
65 66 27
66 67 12
67 68 47
68 69 67
69 70 37
70 71 89
71 72 79
72 73 27
73 74 74
74 75 88
75 76 72
76 77 18
77 78 53
78 79 89
79 80 92
80 81 84
81 82 23
82 83 45
83 84 29
84 85 86
85 86 64
86 87 60
87 88 42
88 89 77
89 90 76
90 91 79
91 92 64
92 93 86
93 94 45
94 95 90
95 96 14
96 97 12
97 98 62
98 99 27
99 100 46
100 101 97
101 102 4
102 103 71
103 104 71
104 105 30
105 106 100
106 107 1
107 108 8
108 109 9
109 110 26
110 111 58
111 112 43
112 113 75
113 114 32
114 115 23
115 116 53
116 117 25
117 118 95
118 119 16
119 120 48
120 121 77
121 122 79
122 123 66
123 124 47
124 125 77
125 126 93
126 127 52
127 128 89
128 129 64
129 130 32
130 131 34
131 132 33
132 133 7
133 134 12
134 135 75
135 136 49
136 137 45
137 138 90
138 139 75
139 140 92
140 141 90
141 142 96
142 143 36
143 144 65
144 145 41
145 146 93
146 147 36
147 148 80
148 149 93
149 150 51
150 151 91
151 152 96
152 153 69
153 154 32
154 155 90
155 156 82
156 157 3
157 158 71
158 159 87
159 160 72
160 161 81
161 162 62
162 163 88
163 164 30
164 165 91
165 166 47
166 167 34
167 168 9
168 169 64
169 170 82
170 171 2
171 172 100
172 173 87
173 174 15
174 175 30
175 176 23
176 177 8
177 178 29
178 179 93
179 180 6
180 181 91
181 182 30
182 183 76
183 184 30
184 185 92
185 186 89
186 187 43
187 188 34
188 189 76
189 190 20
190 191 43
191 192 95
192 193 93
193 194 10
194 195 14
195 196 78
196 197 83
197 198 12
198 199 96
199 200 75
200 201 70
201 202 51
202 203 80
203 204 90
204 205 35
205 206 53
206 207 65
207 208 81
208 209 30
209 210 36
210 211 33
211 212 46
212 213 57
213 214 44
214 215 80
215 216 89
216 217 8
217 218 80
218 219 58
219 220 15
220 221 88
221 222 41
222 223 23
223 224 50
224 225 10
225 226 10
226 227 34
227 228 97
228 229 33
229 230 100
230 231 64
231 232 70
232 233 77
233 234 78
234 235 2
235 236 92
236 237 41
237 238 4
238 239 16
239 240 30
240 241 21
241 242 18
242 243 65
243 244 25
244 245 44
245 246 63
246 247 30
247 248 47
248 249 44
249 250 68
250 251 26
251 252 84
252 253 35
253 254 23
254 255 43
255 256 96
256 257 13
257 258 65
258 259 11
259 260 86
260 261 27
261 262 89
262 263 86
263 264 79
264 265 51
265 266 77
266 267 66
267 268 27
268 269 94
269 270 82
270 271 12
271 272 59
272 273 50
273 274 48
274 275 32
275 276 51
276 277 75
277 278 81
278 279 34
279 280 69
280 281 79
281 282 25
282 283 16
283 284 46
284 285 93
285 286 9
286 287 40
287 288 86
288 289 3
289 290 19
290 291 35
291 292 59
292 293 63
293 294 85
294 295 2
295 296 85
296 297 90
297 298 42
298 299 3
299 300 54
300 301 59
301 302 29
302 303 64
303 304 88
304 305 53
305 306 36
306 307 10
307 308 76
308 309 56
309 310 76
310 311 89
311 312 54
312 313 58
313 314 59
314 315 23
315 316 89
316 317 46
317 318 95
318 319 1
319 320 72
320 321 6
321 322 52
322 323 2
323 324 9
324 325 15
325 326 78
326 327 66
327 328 70
328 329 16
329 330 31
330 331 78
331 332 50
332 333 38
333 334 100
334 335 100
335 336 32
336 337 18
337 338 68
338 339 80
339 340 67
340 341 98
341 342 86
342 343 42
343 344 28
344 345 50
345 346 86
346 347 16
347 348 77
348 349 54
349 350 37
350 351 31
351 352 69
352 353 11
353 354 20
354 355 9
355 356 43
356 357 100
357 358 50
358 359 47
359 360 39
360 361 42
361 362 82
362 363 27
363 364 39
364 365 48
365 366 48
366 367 1
367 368 40
368 369 97
369 370 67
370 371 86
371 372 72
372 373 57
373 374 34
374 375 90
375 376 52
376 377 13
377 378 27
378 379 58
379 380 57
380 381 53
381 382 11
382 383 85
383 384 54
384 385 30
385 386 80
386 387 83
387 388 83
388 389 78
389 390 69
390 391 3
391 392 3
392 393 13
393 394 66
394 395 80
395 396 57
396 397 45
397 398 71
398 399 66
399 400 20
400 401 66
401 402 94
402 403 42
403 404 85
404 405 60
405 406 1
406 407 12
407 408 45
408 409 36
409 410 5
410 411 21
411 412 90
412 413 22
413 414 14
414 415 72
415 416 70
416 417 71
417 418 95
418 419 88
419 420 94
420 421 18
421 422 89
422 423 41
423 424 96
424 425 91
425 426 60
426 427 7
427 428 87
428 429 98
429 430 63
430 431 44
431 432 48
432 433 93
433 434 47
434 435 63
435 436 80
436 437 85
437 438 53
438 439 45
439 440 96
440 441 99
441 442 15
442 443 38
443 444 47
444 445 83
445 446 65
446 447 47
447 448 23
448 449 66
449 450 69
450 451 93
451 452 91
452 453 62
453 454 60
454 455 18
455 456 55
456 457 5
457 458 46
458 459 48
459 460 26
460 461 81
461 462 39
462 463 66
463 464 91
464 465 42
465 466 100
466 467 98
467 468 78
468 469 11
469 470 48
470 471 68
471 472 17
472 473 74
473 474 64
474 475 48
475 476 18
476 477 66
477 478 72
478 479 86
479 480 47
480 481 38
481 482 42
482 483 62
483 484 71
484 485 67
485 486 80
486 487 46
487 488 8
488 489 39
489 490 14
490 491 2
491 492 17
492 493 15
493 494 99
494 495 53
495 496 18
496 497 65
497 498 27
498 499 66
499 500 46
500 1 33
]]></test_input>
<test_output><![CDATA[277
]]></test_output>
<hint><![CDATA[]]></hint>
<source><![CDATA[]]></source>
<solution language="C"><![CDATA[#define ONE_ANSWER 1

int n, d[500][500];
int nf, f[100];
int fd[500];

main() {
	int i, j, k, x, y, z, min, nmin;

	scanf( " %d %d", &nf, &n );
	for( i = 0; i < nf; i++ ) {
		scanf( " %d", &f[i] );
		f[i]--;
	}
	for( i = 0; i < n; i++ ) for( j = 0; j < n; j++ ) d[i][j] = 1000000000;
	for( i = 0; i < n; i++ ) d[i][i] = 0;
	while( scanf( " %d %d %d", &x, &y, &z ) == 3 ) {
		x--; y--;
		d[x][y] = d[y][x] = z;
	}
	for( i = 0; i < n; i++ ) for( j = 0; j < n; j++ ) for( k = 0; k < n; k++ ) {
		x = d[j][i] + d[i][k];
		if( d[j][k] > x ) d[j][k] = x;
	}
	for( i = 0; i < n; i++ ) {
		fd[i] = 1000000000;
		for( j = 0; j < nf; j++ )
			if( d[i][f[j]] < fd[i] ) fd[i] = d[i][f[j]];
	}
	nmin = -1; min = 1000000000;
	for( i = 0; i < n; i++ ) {
		x = -1;
		for( j = 0; j < n; j++ ) {
			y = (d[j][i]<fd[j]) ? d[j][i] : fd[j];
			if( y > x ) x = y;
		}
		if( x < min ) {
			nmin = i; 
			min = x;
		}
	}
#if !ONE_ANSWER
	printf( "Possible answers:" );
	for( i = 0; i < n; i++ ) {
		x = -1;
		for( j = 0; j < n; j++ ) {
			y = (d[j][i]<fd[j]) ? d[j][i] : fd[j];
			if( y > x ) x = y;
		}
		if( x == min ) printf( " %d", i+1 );
	}
	putchar( '\n' );
#else
	printf( "%d\n", nmin+1 );
#endif
}
]]></solution>
<![CDATA[]]>
</item>
<item>
<title><![CDATA[Problem B: Soundex]]></title>
<time_limit><![CDATA[1]]></time_limit>
<memory_limit><![CDATA[128]]></memory_limit>
<description><![CDATA[<p></p>
<p>
<title></title>
</p>
<h2>Problem B: Soundex</h2>
<p>Soundex coding groups together words that appear to sound alike based on their spelling.  For example, &quot;can&quot; and &quot;khawn&quot;, &quot;con&quot; and &quot;gone&quot; would be equivalent under Soundex coding.</p>
<p>Soundex coding involves translating each word into a series of digits in which each digit represents a letter:</p>
<pre>
      1 represents B, F, P, or V
      2 represents C, G, J, K, Q, S, X,  or Z
      3 represents D or T
      4 represents L
      5 represents M or N
      6 represents R
</pre>
<p>The letters A, E, I, O, U, H, W, and Y are not represented in Soundex coding, and repeated letters with the same code digit are represented by a single instance of that digit.  Words with the same Soundex coding are considered equivalent.</p>
<p>Each line of input contains a single word, all upper case, less than 20 letters long.  For each line of input, produce a line of output giving the Soundex code.</p>]]></description>
<input><![CDATA[]]></input> 
<output><![CDATA[]]></output>
<sample_input><![CDATA[KHAWN
PFISTER
BOBBY
]]></sample_input>
<sample_output><![CDATA[25
1236
11
]]></sample_output>
<test_input><![CDATA[KAWN
PFISTER
BOBBY
ANOREXIC
A
AH
PHOBIA
]]></test_input>
<test_output><![CDATA[25
1236
11
5622


11
]]></test_output>
<test_input><![CDATA[MORLEY
MORMON
MORN
MOROCCAN
MOROCCO
MORON
MOROSE
MORPHEME
MORPHEMIC
MORPHINE
MORPHISM
MORPHOLOGY
MORPHOPHONEMIC
MORRILL
MORRIS
MORRISON
MORRISSEY
MORRISTOWN
MORROW
MORSE
MORSEL
MORT
MORTAL
MORTAR
MORTEM
MORTGAGE
MORTGAGEE
MORTGAGOR
MORTICIAN
MORTIFY
MORTISE
MORTON
MOSAIC
MOSCOW
MOSER
MOSES
MOSLEM
MOSQUE
MOSQUITO
MOSS
MOSSY
MOST
MOT
MOTEL
MOTET
MOTH
MOTHBALL
MOTHER
MOTHERHOOD
MOTHERLAND
MOTIF
MOTION
MOTIVATE
MOTIVE
MOTLEY
MOTOR
MOTORCYCLE
MOTOROLA
MOTTLE
MOTTO
MOULD
MOULTON
MOUND
MOUNT
MOUNTAIN
MOUNTAINEER
MOUNTAINOUS
MOUNTAINSIDE
MOURN
MOURNFUL
MOUSE
MOUSTACHE
MOUSY
MOUTH
MOUTHFUL
MOUTHPIECE
MOUTON
MOVE
MOVIE
MOW
MOYER
MOZART
MPH
MR
MRS
MS
MT
MU
MUCH
MUCILAGE
MUCK
MUCOSA
MUCUS
MUD
MUDD
MUDDLE
MUDDLEHEAD
MUDDY
MUDGUARD
]]></test_input>
<test_output><![CDATA[564
5655
565
5625
562
565
562
5615
56152
5615
56125
56142
5611552
564
562
5625
562
56235
56
562
5624
563
5634
5636
5635
56322
56322
563226
56325
5631
5632
5635
522
52
526
522
5245
52
523
52
52
523
53
534
533
53
5314
536
5363
536453
531
535
5313
531
534
536
536224
5364
534
53
543
5435
553
553
5535
55356
55352
553523
565
56514
52
5232
52
53
5314
5312
535
51
51
5
56
5263
51
56
562
52
53
5
52
5242
52
522
522
53
53
534
5343
53
53263
]]></test_output>
<test_input><![CDATA[ANTHROPOMORPHISM
ARTERIOLOSCLEROSIS
ARTERIOSCLEROSIS
CONTRADISTINCTION
CONTRADISTINGUISH
COUNTERCLOCKWISE
COUNTERINTUITIVE
COUNTERPRODUCTIVE
CRYSTALLOGRAPHER
DEOXYRIBONUCLEIC
DIETHYLSTILBESTROL
ELECTROCARDIOGRAM
ELECTROCARDIOGRAPH
EXTRATERRESTRIAL
GASTROINTESTINAL
INCOMPREHENSIBLE
INCONTROVERTIBLE
INDISTINGUISHABLE
INEXTINGUISHABLE
MISPRONUNCIATION
NEUROPSYCHIATRIC
PSYCHOPHYSIOLOGY
PSYCHOTHERAPEUTIC
SPECTROPHOTOMETER
TRANSCONDUCTANCE
TRANSCONTINENTAL
TRIPHENYLPHOSPHINE
WEATHERSTRIPPING
]]></test_input>
<test_output><![CDATA[536156125
636424622
63624622
25363235235
2536323522
25362422
25365331
2536163231
262342616
32615242
33423412364
4236263265
4236263261
236362364
2236532354
525165214
5253616314
532352214
52352214
521655235
56122362
1221242
12236132
2123613536
3652532352
3652535534
361541215
36236152
]]></test_output>
<test_input><![CDATA[WHEREAREYOUWHOAREYO
SBCDXLZMRFGTNPJVKDL
AEIOUHWYAEIOUHWYAEI
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
AAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDD
EEEEEEEEEEEEEEEEEEE
FFFFFFFFFFFFFFFFFFF
GGGGGGGGGGGGGGGGGGG
HHHHHHHHHHHHHHHHHHH
IIIIIIIIIIIIIIIIIII
JJJJJJJJJJJJJJJJJJJ
KKKKKKKKKKKKKKKKKKK
LLLLLLLLLLLLLLLLLLL
MMMMMMMMMMMMMMMMMMM
NNNNNNNNNNNNNNNNNNN
OOOOOOOOOOOOOOOOOOO
PPPPPPPPPPPPPPPPPPP
QQQQQQQQQQQQQQQQQQQ
RRRRRRRRRRRRRRRRRRR
SSSSSSSSSSSSSSSSSSS
TTTTTTTTTTTTTTTTTTT
UUUUUUUUUUUUUUUUUUU
VVVVVVVVVVVVVVVVVVV
WWWWWWWWWWWWWWWWWWW
XXXXXXXXXXXXXXXXXXX
YYYYYYYYYYYYYYYYYYY
ZZZZZZZZZZZZZZZZZZZ
]]></test_input>
<test_output><![CDATA[666
2123242561235121234


1
2
3

1
2


2
2
4
5
5

1
2
6
2
3

1

2

2

1
2
3

1
2


2
2
4
5
5

1
2
6
2
3

1

2

2
]]></test_output>
<hint><![CDATA[]]></hint>
<source><![CDATA[]]></source>
<solution language="C"><![CDATA[#include <stdio.h>

char alph[27] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
char code[27] = "01230120022455012623010202";

main() {
	int ch;
	char last = '0';

	while( (ch=getchar()) != EOF ) {
		if( ch == '\n' ) {
			putchar( '\n' );
			last = '0';
		} else if( code[ch-'A'] != last ) {
			last = code[ch-'A'];
			if( last != '0' ) putchar( last );
		}
	}
}
]]></solution>
<![CDATA[]]>
</item>
<item>
<title><![CDATA[Problem C: Ferry Loading]]></title>
<time_limit><![CDATA[1]]></time_limit>
<memory_limit><![CDATA[128]]></memory_limit>
<description><![CDATA[<p></p>
<p>
<title></title>
</p>
<h2>Problem C: Ferry Loading</h2>
<p>Before bridges were common, ferries were used to transport cars across rivers.  River ferries, unlike their larger cousins, run on a guide line and are powered by the river's current.  Two lanes of cars drive onto the ferry from one end, the ferry crosses the river, and the cars exit from the other end of the ferry.</p>
<p>The cars waiting to board the ferry form a single queue, and the operator directs each car in turn to drive onto the port (left) or starboard (right) lane of the ferry so as to balance the load. Each car in the queue has a different length, which the operator estimates by inspecting the queue.  Based on this inspection, the operator decides which side of the ferry each car should board, and boards as many cars as possible from the queue, subject to the length limit of the ferry. Your job is to write a program that will tell the operator which car to load on which side so as to maximize the number of cars loaded.</p>]]></description>
<input><![CDATA[<p>The first line of input contains a single integer between 1 and 100: the length of the ferry (in metres). For each car in the queue there is an additional line of input  specifying the length of the car (in cm, an integer between 100 and 3000  inclusive).   A final line of input contains the integer 0. The cars must be loaded in order, subject to the constraint that the total length of cars on either side does not exceed the length of the ferry. Subject to this constraint as many cars should be loaded as possible, starting with the first car in the queue and loading cars in order until no more can be loaded.</p>]]></input> 
<output><![CDATA[<p>The first line of outuput should give the number of cars that can be loaded onto the ferry. For each car that can be loaded onto the ferry, in the order the cars appear in the input, output a line containing &quot;port&quot; if the car is to be directed to the port side and &quot;starboard&quot; if the car is to be directed to the starboard side.  If several arrangements of the cars meet the criteria above, any one will do.</p>]]></output>
<sample_input><![CDATA[50
2500
3000
1000
1000
1500
700
800
0
]]></sample_input>
<sample_output><![CDATA[6
port
starboard
starboard
port
port
starboard
]]></sample_output>
<test_input><![CDATA[50
2500
3000
1000
1000
1500
700
800
0
]]></test_input>
<test_output><![CDATA[6
port
starboard
starboard
port
port
starboard
]]></test_output>
<test_input><![CDATA[100
153
114
127
102
131
185
130
111
167
150
107
139
129
116
179
103
199
190
140
126
132
129
182
164
115
161
173
175
138
123
140
143
137
168
146
169
105
128
180
124
178
139
163
159
107
142
163
159
132
155
185
116
136
120
132
151
181
106
179
119
181
119
163
119
139
161
140
144
141
172
169
172
164
184
131
123
127
194
182
111
101
168
180
138
140
112
189
121
170
168
193
152
140
108
171
179
121
163
124
162
187
145
186
151
129
118
175
108
164
157
172
166
177
152
104
117
164
145
191
135
114
136
139
154
144
162
185
117
125
161
131
112
106
118
116
188
136
191
148
152
100
120
118
130
172
122
147
189
168
190
176
134
126
167
140
122
129
125
191
154
187
123
118
145
141
134
185
129
177
134
181
178
106
100
108
179
174
107
120
194
150
148
180
128
115
172
151
144
198
194
150
137
117
120
134
110
155
120
139
184
0
]]></test_input>
<test_output><![CDATA[136
starboard
port
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
port
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
port
starboard
starboard
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
]]></test_output>
<test_input><![CDATA[100
1699
1730
1147
1704
2374
1216
995
1266
745
562
2281
1706
600
1946
809
655
1253
2172
302
2075
1748
1636
2397
1071
322
1538
1052
1495
1706
240
1839
468
1870
486
2073
1744
1166
131
509
1375
593
2254
580
657
1263
1289
1213
1981
960
979
1555
2172
2079
1016
306
2301
2454
1259
860
1659
963
198
2028
333
148
1164
1541
1214
759
1514
2490
817
832
133
1374
1559
1323
2487
1039
1747
529
2495
983
108
574
1189
2309
527
1912
668
1651
375
331
742
608
379
1370
1613
1494
2029
190
1047
2310
922
1080
1184
2382
1867
734
920
678
1164
478
1561
1172
952
249
544
944
2062
1113
2059
1901
1344
300
1973
1187
1134
1085
2145
226
1175
691
2437
1562
1236
1120
1443
166
1318
1827
744
2382
1770
2205
1053
221
1919
1498
629
1044
2075
187
2409
482
2352
1881
1569
549
465
1214
676
1104
1369
612
165
2069
1196
1072
2136
2414
399
2344
2296
2069
2049
412
1754
1031
1374
1848
1539
512
1499
1447
458
1351
827
1928
1364
756
205
1940
1324
1038
2016
1390
607
711
1926
0
]]></test_input>
<test_output><![CDATA[14
starboard
starboard
port
port
starboard
port
starboard
starboard
starboard
starboard
port
port
starboard
port
]]></test_output>
<test_input><![CDATA[100
1836
2007
812
1464
1574
532
2291
451
678
630
891
2266
1650
2023
1855
1340
1410
1176
1760
513
489
238
2052
1610
1592
1376
1063
308
1419
943
1395
318
2414
2107
1683
1488
139
1473
1839
281
1568
230
2448
717
1717
1366
1522
626
2442
781
1039
430
483
155
1505
1975
1431
2468
2183
2314
474
641
132
388
2213
1715
1776
1816
251
678
1997
1719
372
1508
1901
1990
374
486
2080
2280
1167
183
210
1551
2203
1615
589
697
1146
2237
511
1520
377
107
1372
2054
1286
647
1369
1437
1226
430
220
1062
1838
1585
551
2112
1971
2096
1892
201
1743
1566
1216
1009
244
1706
1606
854
1006
2017
1838
1283
2024
710
837
809
821
1670
1711
1947
2000
1395
2474
1338
479
2489
513
1914
2084
1869
2015
890
934
731
1799
642
1901
905
1396
406
2386
734
1153
1910
908
1454
2183
1629
624
957
640
2088
2252
613
489
2195
601
903
1608
2150
2236
687
539
234
882
1803
776
282
207
1637
152
2493
1835
1205
1466
242
159
713
1771
247
1570
2311
2235
886
423
224
144
489
0
]]></test_input>
<test_output><![CDATA[14
port
starboard
port
port
port
port
starboard
port
port
port
starboard
starboard
starboard
port
]]></test_output>
<test_input><![CDATA[100
1109
1841
545
1484
2088
1077
507
524
1715
1093
1672
707
799
1862
2389
2428
172
550
1918
1254
923
1417
1537
254
1447
1761
1312
2489
624
1688
831
1634
592
841
181
179
1818
589
604
596
1146
1740
767
1845
1101
655
1336
1174
1105
753
2328
1928
1635
1365
1646
145
189
2422
133
713
1173
429
1811
1665
1170
1457
1745
2452
1510
2249
111
2120
1488
778
1028
2053
1333
2264
290
2339
516
118
1330
1615
947
2441
1660
600
2362
1258
777
1035
1587
2053
199
2221
573
1408
2172
1983
1156
2183
1166
2108
2425
2094
1225
1257
1857
1415
659
1837
997
1454
952
1844
1394
2076
1908
819
833
2150
1318
1884
1702
1418
1168
2175
325
839
1221
946
2486
2287
117
1974
1444
1242
731
800
157
854
136
1054
2208
552
2363
665
128
1334
1385
425
983
202
1774
2149
1084
441
1823
874
745
107
1284
730
1858
1301
2169
801
2008
399
1065
2065
717
666
182
2390
1118
2009
554
710
843
1839
600
1726
1506
2274
1375
2490
2179
261
427
423
2234
1611
618
1591
412
286
1857
2320
0
]]></test_input>
<test_output><![CDATA[15
starboard
port
starboard
starboard
starboard
port
port
port
starboard
port
starboard
port
starboard
port
port
]]></test_output>
<test_input><![CDATA[100
253
214
227
102
131
385
130
311
167
350
307
339
129
316
279
203
299
290
240
126
132
329
182
164
215
161
173
375
138
323
240
343
137
368
346
169
105
128
380
224
378
339
163
159
307
342
263
259
232
155
285
316
136
120
132
251
181
206
279
219
181
119
163
219
139
161
340
144
241
372
269
272
364
384
331
323
327
194
182
211
301
368
180
338
140
212
189
221
370
368
393
152
140
208
271
179
321
263
224
162
287
145
386
251
129
318
175
108
164
257
272
366
277
352
304
317
164
145
191
135
114
236
239
154
344
162
285
317
325
161
131
212
206
118
116
288
336
191
348
152
100
220
118
330
172
322
247
289
368
390
376
134
226
267
240
222
329
125
191
254
187
223
118
345
241
134
285
229
277
234
281
278
106
300
208
179
274
107
120
294
150
148
380
328
315
272
151
244
298
294
150
137
117
220
134
310
255
320
139
184
0
]]></test_input>
<test_output><![CDATA[83
starboard
starboard
starboard
starboard
port
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
port
starboard
starboard
starboard
port
starboard
starboard
starboard
starboard
starboard
starboard
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
]]></test_output>
<test_input><![CDATA[100
128
251
295
164
347
316
267
190
140
376
278
342
324
237
380
356
115
355
170
121
341
303
183
166
117
259
203
255
134
287
301
215
190
248
279
138
165
199
228
205
175
106
199
151
243
179
107
310
186
230
384
127
185
219
193
202
378
297
109
165
236
310
280
326
211
211
116
276
362
296
133
189
302
284
293
197
115
352
160
201
182
196
280
267
315
126
122
345
375
131
110
211
394
342
189
205
206
206
133
220
102
166
310
357
102
203
206
117
155
266
218
290
114
150
209
329
176
231
275
151
315
337
314
361
332
104
218
138
262
251
258
316
369
220
273
371
375
380
140
183
298
258
373
313
360
234
294
189
118
221
292
385
211
207
346
143
263
164
233
177
367
143
393
336
264
319
359
291
299
399
374
249
309
399
214
321
234
109
110
304
282
303
289
393
110
235
136
325
351
321
102
318
365
147
306
281
366
265
172
265
0
]]></test_input>
<test_output><![CDATA[86
starboard
starboard
starboard
port
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
port
starboard
starboard
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
]]></test_output>
<test_input><![CDATA[100
128
251
295
164
347
316
267
190
140
376
278
342
324
237
380
356
115
355
170
121
341
303
183
166
117
259
203
255
134
287
301
215
190
248
279
138
165
199
228
205
175
106
199
151
243
179
107
310
186
230
384
127
185
219
193
202
378
297
109
165
236
310
280
326
211
211
116
276
362
296
133
189
302
284
293
197
115
352
160
201
182
196
280
0
]]></test_input>
<test_output><![CDATA[83
starboard
starboard
starboard
port
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
port
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
]]></test_output>
<test_input><![CDATA[1
101
2000
302
102
0
]]></test_input>
<test_output><![CDATA[0
]]></test_output>
<test_input><![CDATA[100
0
]]></test_input>
<test_output><![CDATA[0
]]></test_output>
<test_input><![CDATA[100
10000
5000
1000
3000
500
300
0
]]></test_input>
<test_output><![CDATA[6
port
starboard
starboard
starboard
starboard
starboard
]]></test_output>
<test_input><![CDATA[100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
0
]]></test_input>
<test_output><![CDATA[200
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
starboard
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
port
]]></test_output>
<hint><![CDATA[]]></hint>
<source><![CDATA[]]></source>
<solution language="C"><![CDATA[#include <stdio.h>
#include <stdlib.h>

int ar[201][10001];
int len;

void pr( int i, int j ) {
	if( i == 0 ) return;
	pr( i-1, ar[i][j] );
	printf( (j == ar[i][j]) ? "port\n" : "starboard\n" );
}

main() {
	int i, j, k, x, y, z, n;

	scanf( " %d", &len );
	len *= 100;
	for( i = 0; i <= 200; i++ ) for( j = 0; j <= 10000; j++ ) ar[i][j] = -1;
	ar[0][0] = 0;
	y = 0;
	for( i = 0; i < 200; i++ ) {
		scanf( " %d", &x );
		if( !x ) break;
		y += x;
		z = 0;
		for( j = 0; j <= 10000; j++ ) if( ar[i][j] >= 0 ) {
			if( j+x <= len && y-x-j <= len ) {ar[i+1][j+x] = j; z = 1;}
			if( j <= len && y-j <= len ) {ar[i+1][j] = j; z = 1;}
		}
		if( !z ) break;
	}
	printf( "%d\n", i );
	for( j = 0; j <= 10000; j++ ) if( ar[i][j] >= 0 ) break;
	pr( i, j );
}
]]></solution>
<![CDATA[]]>
</item>
<item>
<title><![CDATA[Problem D:  Dog & Gopher]]></title>
<time_limit><![CDATA[1]]></time_limit>
<memory_limit><![CDATA[128]]></memory_limit>
<description><![CDATA[<p></p>
<p>
<title></title>
</p>
<h2>Problem D:  Dog &amp; Gopher</h2>
<p>A large field has a dog and a gopher.  The dog wants to eat the gopher, while the gopher wants to run to safety through one of several gopher holes dug in the surface of the field.</p>
<p>Neither the dog nor the gopher is a math major; however, neither is entirely stupid. The gopher decides on a particular gopher hole and heads for that  hole in a straight line at a fixed speed.  The dog, which is very good at reading body language, anticipates which hole the gopher has chosen, and heads at double the speed of the gopher to the hole, where it intends to gobble up the gopher.  If the dog reaches the hole first, the gopher gets gobbled; otherwise, the gopher escapes.</p>
<p>You have been retained by the gopher to select a hole through which it can escape, if such a hole exists.</p>
<p>The first line of input contains four floating point numbers:  the  (x,y) coordinates of the gopher followed by the (x,y) coordinates of the dog.  Subsequent lines of input each contain two floating point numbers:  the (x,y) coordinates of a gopher hole.  All distances are in metres, to the nearest mm.</p>
<p>Your output should consist of a single line.  If the gopher can escape the line should read &quot;The gopher can escape through the hole at (<i>x</i>,<i>y</i>).&quot;  identifying the appropriate hole to the nearest mm.   Otherwise the output line should read &quot;The gopher cannot escape.&quot;  If the gopher may escape through more than one hole, any one will do.  If the gopher and dog reach the hole at the same time either answer may be given. There are not more than 1000 gopher holes and all coordinates are between -10000 and +10000.</p>]]></description>
<input><![CDATA[]]></input> 
<output><![CDATA[]]></output>
<sample_input><![CDATA[1.000 1.000 2.000 2.000
1.500 1.500
]]></sample_input>
<sample_output><![CDATA[The gopher cannot escape.
]]></sample_output>
<test_input><![CDATA[1.000 1.000 2.000 2.000
1.500 1.500
]]></test_input>
<test_output><![CDATA[The gopher cannot escape.
]]></test_output>
<test_input><![CDATA[2.000 2.000 1.000 1.000
1.500 1.500
2.500 2.500
]]></test_input>
<test_output><![CDATA[The gopher can escape through the hole at (2.500,2.500).
]]></test_output>
<test_input><![CDATA[-100.000 -100.000 100.000 100.000
-1346.811 -3834.102
-2084.707 1000.799
2948.126 -8869.162
-5667.79 -2704.900
-8771.990 8285.465
4770.598 7685.355
-7690.328 1576.118
-7781.821 -721.137
-9007.126 107.61
8372.836 -197.730
-3176.999 -4130.558
1554.622 2572.573
-9316.659 9312.736
-6945.244 5417.5
288.745 -1720.178
-8685.17 -6996.664
-5263.490 -4621.433
-5460.277 344.866
-2644.358 -7900.799
-6687.356 -9706.113
-6255.892 4623.96
-6072.925 -8957.745
7509.252 2522.189
41.14 -1817.863
116.479 -4719.875
-2790.157 1846.719
123.67 5573.283
-3047.758 -1112.144
-6857.274 -1308.730
-8589.50 -6002.421
-4335.338 -3466.464
9211.956 1530.844
-3178.220 -2851.635
-5288.468 5646.705
-5382.703 543.468
1208.711 1661.570
-4474.476 1715.950
-1864.962 286.90
-6866.738 6579.212
7165.996 -8137.697
8457.393 2354.321
1213.907 -6500.56
-4667.929 -7480.8
-7657.564 8488.199
6998.419 -4845.892
2579.174 -3668.320
9437.508 4650.927
-1911.381 -8807.20
-9143.463 -2007.134
1185.570 -3502.907
-2094.426 2739.544
-312.535 -4793.582
351.342 -2719.820
5206.133 3439.120
-897.721 6771.2
2008.64 -9130.854
-691.910 9652.399
-5058.952 -6612.908
-2567.425 9245.684
-4345.8 -5781.553
-4937.502 -685.358
638.688 -9435.776
-2206.1 7461.654
-9059.396 -4565.983
-9746.532 -269.503
326.21 -2210.682
8466.711 -4193.789
-4279.301 -8878.79
-9931.474 -3486.954
1025.318 -4002.481
-1048.755 -7493.457
-3402.898 -6773.167
5123.916 3573.957
-3430.306 -9019.292
-522.547 -2547.881
-8790.137 -6381.943
-3468.82 9857.416
1591.207 -8775.707
-8383.943 6183.348
-2857.721 5773.374
6500.659 -6663.865
-5111.110 9110.852
-8836.53 481.809
3744.169 -1247.603
6765.471 -2864.144
632.940 4295.134
2601.542 -3192.855
-7879.257 9487.316
9193.147 -332.227
657.833 -2325.608
-9092.598 9680.781
5252.920 9529.489
-7465.800 1856.433
-483.268 -3545.418
-137.79 -1583.866
-8622.459 2885.681
-5299.620 -8287.330
4008.44 -4646.625
-7218.870 -6119.365
3501.379 5523.778
-7706.318 -1204.869
2684.344 -1715.958
-9182.866 -3686.92
-6624.55 -7865.133
-8798.29 -2894.592
-9080.247 2939.640
-9683.572 7628.720
9331.172 6725.159
9494.752 -6004.699
-2351.255 8014.364
7876.768 -7391.911
8564.99 -8943.543
6338.414 293.20
-2332.345 -3895.131
-9045.192 9510.600
3886.323 -4761.454
-4031.383 -8010.458
2224.258 -8469.219
-939.433 9589.986
8779.586 -9965.65
-5560.64 -8559.517
9144.178 -7370.787
-5628.306 -3392.116
4150.559 -6411.304
-4230.810 -5881.579
-2705.472 -3180.82
-9842.292 6357.109
-3844.209 -1811.986
2060.586 -791.276
-4996.219 -3742.808
-5843.436 4492.740
-2589.8 863.253
-358.881 1906.855
-7637.721 6754.259
8097.793 502.431
3132.530 -4333.177
-8639.373 9067.386
6279.875 1756.66
8898.259 -7225.535
6798.431 2118.893
-9443.533 910.132
-5541.766 -8143.261
-7954.241 881.930
-9240.45 -4197.880
581.600 -564.757
-1230.955 2629.481
5562.633 -7670.927
-7026.291 6201.256
-7369.950 -6502.387
-6314.999 -9704.343
-4922.651 -5154.708
-2381.649 -414.917
-1972.996 5541.662
-3117.434 -3825.645
-3891.270 6983.930
-2019.221 7927.814
2209.98 2214.725
-4010.210 -3190.970
-4729.128 -6217.695
5366.174 -2659.249
9773.536 8334.733
-4668.224 -7116.126
-6353.665 -2629.153
-4145.716 -8552.87
9553.36 -814.536
-7923.130 -7897.583
-923.791 2029.713
-8500.621 -185.117
8580.52 31.963
-8100.870 5353.772
9053.330 -4609.101
2014.745 -4210.266
-2845.65 -3283.877
-420.420 -6559.364
5175.80 -6495.643
-3413.621 -5678.967
-6103.89 -3119.934
213.852 -6164.334
1583.562 5893.332
9409.139 406.57
-5811.275 9462.860
2577.842 -1487.706
-8295.916 -4923.494
-8499.975 6908.224
-8143.815 8087.55
-1341.48 689.614
9943.744 -9461.999
-395.434 -5913.371
-3480.74 -7739.725
-7922.164 7118.513
-3740.75 -2350.864
-2588.186 7418.288
8051.340 -338.861
-5762.741 3150.83
5076.508 2246.918
-1078.567 6040.95
-531.885 3979.72
-8926.481 -523.361
4808.348 -9375.714
-3119.623 6117.303
-5237.171 -3891.250
2565.680 -1120.956
-8166.271 -335.194
-4930.641 -5181.95
-498.452 -5241.556
-3283.361 -7625.106
1093.775 -5336.828
4450.357 8148.621
-3503.753 -6802.709
-1527.715 7644.427
7299.1 -67.57
-6713.161 -7841.977
-9143.0 5999.731
5376.237 1332.276
2768.485 -5532.886
-3945.860 -6461.570
6135.624 -7579.318
-1823.398 -8676.430
9702.985 9769.99
-5344.30 6369.791
1684.840 4826.508
7575.13 124.447
-5823.389 -5082.392
-2075.5 -2812.454
-5667.872 -695.284
-6258.680 4981.110
9500.223 -3925.506
-2213.625 -1049.863
-5944.301 2401.87
-8628.455 -5970.331
-8109.183 3244.442
-633.600 8879.321
-7114.600 -9353.873
1983.449 258.820
3835.340 -4675.821
-2862.185 740.962
-4963.30 1150.331
7888.38 -7875.456
-6376.580 -371.260
7213.851 6050.427
-6951.928 -5497.244
-4432.226 1979.190
9309.439 4176.644
-4222.886 -9774.64
71.692 -3549.930
-8671.95 3904.21
9322.844 2748.661
9687.369 1011.771
-1694.65 -8116.148
-9771.699 -8459.293
-3560.945 8867.7
8764.305 -6455.426
2371.734 6029.698
-8267.436 -6251.204
-4380.558 857.55
-7460.231 -4588.563
-6713.234 607.394
-9682.490 3528.409
744.297 1358.229
-7458.186 -1056.742
-3704.389 7795.740
9445.733 -6318.691
1374.554 2390.441
4590.847 -3131.985
-5152.444 9756.223
-7828.626 -5361.98
-6657.256 -7900.992
1082.439 9549.685
8428.208 3692.593
-4887.361 -7703.380
-8950.217 -182.714
-9491.865 2332.967
6534.254 -5862.929
744.296 9217.592
8665.597 -4418.870
-3025.147 -3858.671
-725.759 6929.847
-4777.328 -3076.605
-7577.482 2420.828
-7511.796 -1908.411
-1422.241 -180.633
-3170.862 950.403
-3248.880 -2440.729
7565.787 -2855.92
-3978.395 9210.687
-664.347 5913.520
1641.302 6884.861
-5885.856 9170.199
7894.300 -3088.119
5984.316 -3289.715
-138.986 2281.327
1588.778 7553.547
-9141.19 -6495.425
7315.993 3583.643
-5684.180 -7751.718
-9044.662 4389.649
3632.343 -5987.460
-4852.121 -56.224
6949.274 -281.250
-7466.933 -4445.614
9888.320 1271.733
-5134.779 -3643.311
-7261.173 -9498.200
-34.461 -7011.594
1624.67 5446.390
-3980.373 54.601
-806.729 -3351.976
2508.470 4214.380
-6865.537 -1989.107
765.384 -7232.533
-1338.119 -2332.161
-4367.206 -8140.842
-1151.255 2345.702
1686.801 -9754.728
-1080.46 -1654.42
-3310.541 -1292.372
-7155.926 7715.635
-5907.424 1770.827
-6702.109 -4501.586
8283.480 -5541.177
-9945.404 -5666.316
2760.604 -3090.460
679.242 8574.576
-2212.464 -911.96
7953.296 -7128.301
-5772.380 1656.154
4539.85 -4681.51
-8677.340 209.359
3906.865 -3242.975
160.383 1323.164
-7057.884 -4860.370
4354.962 -6938.335
-3143.239 7229.145
1936.204 3912.986
-5797.471 -4136.724
8448.937 -2130.356
2985.7 -5454.785
-9356.601 6866.650
1949.557 -8435.504
-9216.920 3210.8
-8137.898 -4192.103
2743.943 9358.235
9097.12 -1778.669
-791.359 -1693.880
2100.213 -7197.745
-414.963 -8196.468
-3229.396 -4587.954
8999.629 -229.852
-2491.201 -5114.934
-1982.349 -6302.92
-2817.235 -3571.238
681.399 -1647.619
2748.188 -6555.143
-2878.36 -5183.611
4249.321 2738.752
6774.310 2314.508
-7748.93 -759.224
-7801.111 -6947.423
5871.221 8558.679
-8675.945 -1367.237
-6888.419 -3123.394
-3546.556 -3301.120
-2085.805 8090.594
-5052.357 -1936.894
-6000.837 -5088.988
-7200.548 5655.835
-5190.297 -1592.832
-5640.587 197.606
-6399.178 2004.276
6631.196 349.705
-2016.335 -9942.464
-5339.794 -5335.907
-7103.713 -6336.761
-9594.148 -8152.680
4783.879 6580.129
8851.856 -8257.109
-6997.754 -8236.387
-222.27 -3680.823
-8641.952 -1512.241
-9871.580 1868.347
7454.322 -3163.209
-6868.800 5159.517
1582.400 -596.361
-3063.141 -3152.340
-9354.522 358.993
-8914.522 -4416.138
-2830.479 8956.631
-5819.611 -1234.598
1190.512 -1274.122
-9522.96 -4307.652
-633.75 1698.914
-3406.772 -4343.98
1456.107 2172.876
-6723.88 -1550.58
2923.292 8302.697
-2825.648 -2359.180
4301.450 -2340.885
2246.259 6738.827
-9928.673 -4909.530
-9438.245 7049.926
-1862.684 -6061.717
461.302 -7119.735
-6104.784 -5371.630
-227.386 -7116.125
-6321.88 -2307.939
-7001.449 -9073.68
-457.745 -296.315
-9806.455 -6298.113
1765.982 -1885.556
-8491.139 8943.761
2050.667 -9925.680
-1522.226 -6233.977
-7105.395 6910.386
1451.459 8535.69
319.860 8610.195
2684.2 -8521.156
-8816.744 -4351.258
-6100.744 -2869.472
7722.668 9732.221
-1592.895 9979.184
4981.658 4670.387
-8918.16 -5272.808
-1151.673 4465.996
-8.119 -1642.757
-6389.266 -8470.813
5417.660 -2730.180
1792.67 -7268.222
-3330.130 7785.474
-7569.950 8817.230
-6019.17 -7689.931
-645.89 -4359.596
2685.669 7192.901
-5961.397 -3536.38
-5850.367 2382.940
-9260.161 2234.12
-1018.762 -6137.782
-8353.126 -4304.563
-232.525 -1024.599
7203.563 -5452.236
1635.989 5720.476
-6942.232 -7572.109
-3205.746 -5173.482
-8412.565 -5643.277
6910.327 2542.790
-1506.59 -1547.90
6681.469 1748.948
-5551.335 6549.284
-9214.814 9324.419
1804.724 -1799.98
352.612 -8160.580
2504.912 2022.530
-451.994 -2506.617
1065.172 -9581.643
-9513.784 8078.90
-1856.966 -6181.701
-77.281 -4499.336
-214.536 5518.596
9353.182 -1690.452
2803.617 3877.411
-937.866 2806.894
-4174.977 -5499.950
-9980.734 -6934.577
-9055.263 9785.37
-3635.925 2163.348
-1260.421 -2621.861
9714.303 6776.752
2338.184 2604.152
-9307.216 4679.695
4241.699 -669.258
-7265.520 1145.241
8818.587 842.669
-3958.754 -3435.782
-2910.914 816.972
4883.528 -883.954
-7891.598 -6164.809
1059.715 -3038.370
-5534.649 -7966.713
3612.45 -2824.122
-9431.81 -9820.405
-356.105 6380.944
-7282.336 1358.137
-5850.576 -2371.432
9798.163 -4444.102
3235.436 -4387.712
-5890.156 9312.818
-9289.78 897.700
5534.210 -7743.804
2019.322 1394.881
-2579.22 -9742.619
-5669.567 -510.307
-7444.965 -1301.39
-2782.922 4238.490
-8072.867 -4720.900
5153.322 1382.502
-8564.685 -5513.628
-2768.75 -6504.849
2454.628 -4428.580
3633.22 -8785.676
9747.111 -75.292
534.45 -5901.446
1673.679 -3601.417
-6086.650 8127.962
-1787.538 1086.388
6271.279 541.848
-8697.363 -3375.770
5023.164 -7489.377
-875.790 -1760.52
-6215.918 5790.69
-1750.39 -689.647
1490.101 -1716.23
2501.586 1997.796
2120.939 -3047.85
8592.682 -7078.535
-2692.314 -7576.459
-3797.444 60.945
7869.285 331.823
-5674.715 -5303.768
1000.579 -1667.372
7617.892 3967.83
6370.537 -7969.746
-8814.826 -913.41
-4862.31 -6809.714
4871.65 -5845.650
2307.56 -6381.612
-1826.492 -9958.242
-4142.997 2410.139
9110.377 -530.379
-9081.417 -4502.757
2621.890 4383.121
-2077.740 845.142
-5976.428 9467.206
1370.546 -9113.620
-4159.170 -6986.198
-218.826 -7695.194
-3558.440 -533.402
-9268.626 -814.24
363.450 425.663
-768.800 7384.951
-766.861 -8243.14
-9280.768 3334.471
7284.867 -4686.52
2333.547 4678.387
5761.570 -1037.234
3847.612 9805.889
-359.867 4547.916
-8152.971 -5857.397
2769.477 -7504.835
6315.836 -1272.765
-847.722 -7315.652
3374.967 -1693.540
5448.502 -8548.545
-8618.224 1718.745
-8711.589 -7420.486
-4520.718 -2667.639
808.404 -29.483
1652.102 -289.845
4778.956 -643.366
-8619.135 6844.454
-2203.525 1693.832
-9712.245 4164.888
-8861.311 -2841.342
-5398.601 -6408.351
1759.856 -4580.439
-1167.781 2120.801
2495.275 2517.226
-412.730 4365.905
-2670.246 5714.488
2279.860 1264.127
-5516.281 -8896.276
3984.883 1662.412
-6510.300 -3116.472
-9732.25 -8868.624
-989.703 -8299.320
2617.65 7053.645
-285.521 -1966.263
-9540.420 -753.476
-9470.532 -3191.208
-216.764 -4832.677
-9446.749 -4639.780
4204.387 6796.121
-6739.47 -3380.632
7078.923 5971.171
-7149.759 -8334.198
-4545.446 -8007.464
-4829.647 2393.881
-9852.309 2611.284
1417.5 -1350.316
6425.355 -3177.774
-3591.131 -3429.434
-6261.952 -166.649
-8681.919 3658.997
970.857 -6198.827
3758.995 -5529.401
-9854.285 7374.503
-5989.652 280.232
-1445.47 -3435.805
765.636 -8972.430
8118.505 -3308.63
1931.210 2327.420
-678.509 8311.741
-8896.727 9230.767
-5930.92 -6736.424
-4283.593 -9417.200
-1939.522 -2056.648
-1903.186 -3730.844
-8409.333 -9439.535
-7353.695 8938.123
-5185.427 -5957.662
-8529.779 -9722.267
4824.835 -6581.37
-6620.748 -7158.556
7167.1 -1155.245
-370.27 -153.331
1362.589 -752.464
-9121.687 -5661.586
-1319.731 -2838.253
273.640 3556.84
1156.482 8631.847
526.822 -5621.692
9489.110 6491.213
3275.890 -4974.69
-7821.360 -6240.458
3500.513 2322.881
1371.315 -1283.156
-7619.814 -4797.460
6571.472 -5425.335
-8167.302 1007.359
6168.641 2986.217
-6368.588 -886.664
1851.367 -23.101
-3158.821 -6506.207
1947.406 -5363.218
433.892 923.529
5964.341 -5430.723
-259.997 2579.207
-5809.553 -1919.359
7525.419 7909.14
-3189.33 348.720
-1621.580 1408.590
-4681.161 -4272.30
-97.714 -3391.21
1756.866 -5952.908
-2156.962 -5331.171
840.974 -3590.184
2930.535 -4292.141
8241.182 -3942.621
-6642.238 -3571.949
6692.910 -6781.930
-8737.905 -5043.254
-7787.918 6088.298
-812.342 -3116.82
-3521.433 -2518.516
-9953.335 -6392.430
-4051.271 -7915.546
-4602.793 7412.259
-8419.917 -5095.692
-16.640 -7300.141
-6871.842 5883.45
9047.528 7329.366
-5463.625 -4308.155
-1467.3 -7107.90
2804.228 -6172.753
-9653.568 1711.858
1332.309 9002.606
-5630.415 6752.954
1687.77 -3727.741
-6153.464 2604.269
-2940.415 -6920.573
-8035.44 7190.223
1984.843 -5660.704
-9259.896 5168.208
-2395.686 -1390.166
495.439 -9164.94
-172.303 7745.490
-540.647 3340.169
-1918.834 1025.289
601.209 -9682.222
-3035.847 8779.608
1343.667 436.598
-2106.513 -5528.77
-8878.312 2707.783
-1895.297 132.835
3998.820 8666.800
251.851 4100.497
-295.571 117.143
-163.133 -5584.650
8063.17 -4110.909
-9999.189 -3327.556
-1532.577 7533.838
-8166.306 -6318.834
-516.584 -3794.491
2060.529 -3784.900
-7088.753 -1524.866
223.767 1708.452
-3731.937 -8830.915
-2434.51 -7052.25
3125.866 -7167.203
-9515.211 3522.982
-8143.18 386.394
-470.404 -8297.641
8852.627 229.863
-3642.677 -9543.919
3553.899 -2821.217
1761.298 -8546.885
-3769.596 4612.646
1056.292 6894.518
-2405.755 -4183.558
4525.413 -5771.146
-9917.386 4247.966
-3222.30 -4663.395
1430.464 3318.7
-7625.835 2455.280
-2709.734 -5391.63
-4689.531 8683.428
-3986.746 -6084.853
-787.427 -4887.742
-8622.238 -6559.135
7549.626 -8551.200
-4676.671 -9747.605
2265.965 -7215.794
-1957.729 5818.709
-8066.314 8660.902
-8575.959 -9864.512
1602.415 6096.804
1433.942 3667.617
-3873.898 -4000.166
1205.417 -2863.155
-3720.160 777.523
-3089.652 5277.130
-5627.657 1471.342
368.379 110.359
5.584 -4512.149
-4368.810 7594.94
-5279.982 1077.565
-2125.77 -61.161
-1036.61 8566.539
-994.287 -1487.301
1917.279 9413.426
531.310 9052.346
-1426.7 4784.570
1584.939 3614.765
-3072.412 -6350.413
1902.116 -5195.487
1310.940 5936.353
1666.275 -3223.253
-1383.300 -3104.275
-3714.607 -4872.248
-1005.459 4825.601
816.672 -5850.261
-6124.894 1102.933
-8995.245 -5314.357
1236.539 -9680.759
-3851.736 899.380
-4553.9 3201.218
4234.374 -6695.203
-1205.580 -5901.219
-5688.442 7351.504
6991.300 -5378.863
669.496 -3426.51
-4120.469 1257.452
394.108 4660.664
2601.94 8039.325
436.36 -2950.938
-8654.483 -1259.680
2512.464 -4595.540
6319.901 -3104.378
-5243.150 -2364.280
9303.271 -1285.944
-8197.618 -6891.219
-8340.177 456.949
2094.800 -7219.77
319.144 7000.912
-224.970 1759.11
-7795.138 1639.629
-3415.111 -8147.278
-2439.891 -779.418
7231.39 -4674.747
-2728.285 9915.578
-1358.890 2033.763
-311.241 2004.123
-7310.745 -4412.683
-4711.386 2987.50
8929.457 -8307.171
-7454.209 5271.268
-9774.934 -1112.9
-1151.607 -4775.212
6198.83 985.574
-729.89 -5472.961
1755.356 -9898.149
-5165.653 -4503.975
-5972.895 -6335.681
1996.504 -4076.396
-8984.108 -2904.198
4416.969 8378.131
343.243 -4609.908
-8043.933 -9770.50
-5838.924 9770.361
402.884 -9708.21
8025.142 -1.118
-8816.456 -9337.451
-710.459 56.792
-2159.435 -2059.751
3338.177 9497.990
935.655 2413.758
-5131.352 -7973.864
-918.422 -1084.13
-697.168 4190.156
-6011.450 3846.754
-1346.667 3597.168
7750.164 5667.535
4135.317 -1180.173
-7531.839 956.661
-8332.561 -3359.560
6580.780 567.749
-2616.565 -8999.593
1825.501 -8052.903
-2288.195 358.758
-8612.252 2652.389
-8856.576 4592.167
8663.236 8921.847
-4336.558 -9199.714
1675.637 -8994.238
9562.636 3681.518
-5278.562 -916.939
-1015.755 3155.122
1836.196 409.192
-543.953 4861.509
1927.694 4257.843
791.832 -8731.182
-6556.841 -814.0
-8493.237 9526.683
-2536.448 -8512.878
-1092.916 -5614.412
-8602.963 -209.335
-9140.465 3391.631
511.70 -212.155
-8469.958 530.179
6809.641 8942.763
-8887.313 1548.664
-3774.216 1348.248
6144.261 -5062.676
-7926.850 2072.884
-638.143 -4785.486
-2576.316 -2325.797
731.760 5109.515
4226.989 -6551.231
2962.56 -3204.630
-5292.17 -888.17
8820.623 -1346.481
622.624 -9364.181
120.339 -601.224
-167.550 6045.227
6245.151 -2748.589
-3241.164 -933.84
1100.672 -9187.107
-7542.707 6731.129
8971.689 1725.61
-8664.454 -3488.244
-6710.190 -4808.54
-338.367 9591.643
-158.290 -6761.929
-6995.454 1500.746
6252.227 -9592.751
6549.543 2725.808
8094.627 7753.239
-113.675 -1613.367
-7058.383 -3037.239
4681.452 659.222
-28.122 615.654
-2595.780 4099.81
5835.265 -6345.276
2676.949 490.182
-5626.926 2688.662
-7744.23 -8489.55
-7393.855 -6281.245
-7039.431 -761.117
4549.678 -120.710
-9756.693 5097.465
6719.649 -8421.289
-3173.515 1073.658
8218.858 -7340.108
-2513.171 4323.20
-273.861 9588.287
-8816.864 205.686
-9056.7 8340.167
-3438.681 -2395.481
2466.28 -2445.454
838.236 -6825.86
-8812.245 606.943
-5066.422 150.487
1208.442 -3890.13
-9206.710 7769.802
-4019.404 -5433.227
2790.169 2385.459
6091.64 -2089.331
-8696.269 372.825
-2936.162 732.129
-212.17 -8351.350
-3819.421 -5603.126
-8150.329 -665.777
4862.253 -7148.144
-7114.213 2307.166
-2700.512 -2533.303
6201.712 2810.674
-6450.766 192.520
-2455.363 -8098.18
-2308.175 -8709.692
4708.18 -5586.435
562.955 1524.767
-6120.804 7891.649
2481.602 5078.116
-6185.61 -632.947
-6653.235 -9822.261
9541.37 1639.411
-1752.863 -2336.365
-4424.472 167.40
-35.230 4639.609
-4125.102 -8229.398
-5285.654 869.104
-7276.443 -7279.394
-9700.529 -1315.625
-5351.246 -9067.353
-8503.661 -2656.699
8181.556 325.368
-581.277 3055.468
-2411.132 -237.107
-7924.4 3453.965
-2645.458 -1266.512
-9517.159 -6105.10
-6883.903 -2501.947
1631.834 -9033.532
-5125.533 -2648.403
-3587.920 3354.41
9726.157 1488.753
-6212.774 2714.753
-7565.571 2614.542
1114.422 794.641
-2811.551 -6060.739
1217.126 -2343.602
5531.372 -2495.337
-1021.927 3385.848
4380.538 -245.752
-1470.401 -5746.117
-1468.949 2759.930
-5585.396 -9908.334
-6736.670 504.784
9505.599 581.235
-1357.904 7466.641
-2018.924 -7738.537
3942.338 -517.265
-8330.575 -9517.298
-6252.393 1361.101
9288.948 9302.33
-273.141 -450.578
-9249.871 3082.352
-2539.665 1567.461
-5174.316 -2411.812
-6123.789 6012.658
-9197.535 2307.894
-2433.870 -653.455
-1440.492 -1103.274
-3650.11 1087.128
-9652.342 -9143.233
-608.592 -9296.683
-7937.993 -1761.273
9947.756 -5979.276
-5333.74 6354.634
-5764.53 1440.368
-5494.996 -9392.185
-6793.497 -2767.652
-1307.659 2548.750
1060.788 4508.173
-8300.467 -8421.112
3766.39 -6934.975
-5766.768 -3940.302
-3388.477 -7215.960
8862.676 5745.253
-2102.982 -6702.340
7327.559 -4701.903
-6753.990 -3589.305
-4797.728 -8219.345
-9986.837 5895.51
7157.743 3353.810
2313.614 -6594.559
56.69 -6966.560
-585.250 -1615.362
7252.561 -4175.748
-2966.637 7487.129
5183.91 -1259.883
-6328.54 -8172.544
-9446.378 -1343.662
-9655.105 -9023.237
5967.263 -9230.313
4275.22 7565.860
8924.433 3797.5
-1738.570 -761.435
2022.113 -1922.464
2795.691 -2172.701
-4550.134 -9111.722
-9990.990 -4720.738
]]></test_input>
<test_output><![CDATA[The gopher cannot escape.
]]></test_output>
<test_input><![CDATA[-200.000 -200.000 200.000 200.000
6839.758 114.515
1053.627 -6988.419
6213.086 -7250.767
-915.060 2227.543
-4909.183 -4861.566
-3032.978 -9503.311
1368.054 7032.145
9883.736 526.505
-1604.102 -5147.067
2755.653 -3438.096
3629.188 2087.143
-3032.406 -5833.403
-4436.834 1355.920
445.803 -2037.318
-8577.327 458.945
4480.983 8752.894
8671.259 6249.757
5630.306 -1392.990
1739.516 -8585.262
7117.825 -6818.134
-4655.022 1234.536
-239.979 -927.201
-8662.061 -7838.005
731.644 -2523.693
-4484.139 -7910.521
-4797.171 -5565.317
-5416.815 -5413.653
-3692.174 8452.448
-3526.434 -1806.110
-5250.210 -678.049
2957.162 -5833.997
-2206.310 -8607.799
-2073.905 -4113.582
5611.000 -1947.965
-9878.380 5640.204
-5613.475 5726.265
-6785.471 1377.697
-4455.297 4620.087
-6876.549 8066.256
8974.901 -4385.157
-100.267 -7585.598
8527.711 47.566
8537.988 9879.626
-5726.387 -8828.017
-6247.388 -8807.483
8123.744 8529.585
-4636.159 -4358.176
-424.578 -2635.685
-654.489 7714.511
-8537.626 -1354.496
-3295.270 3871.529
-2499.500 -1392.808
5726.457 6543.474
1532.222 -6047.024
9895.015 8248.276
-3720.365 -1253.976
8093.851 -910.163
-7768.233 -266.106
-4588.874 -4551.344
-2409.574 -8808.789
-9304.735 -9634.040
7893.035 -3019.092
-9149.390 -9803.668
-9467.989 2282.902
2971.186 9572.680
-2738.187 -1469.190
-9553.233 3709.863
-3318.001 -7500.786
-4785.829 -8677.907
9629.192 -2494.990
-9869.875 9830.591
2389.042 -166.775
-5280.342 -1004.392
-9489.313 -9321.282
1512.795 -6525.469
-7249.879 991.134
-246.364 -5119.629
-7764.332 -5853.356
-4756.079 -6011.807
-5019.357 -9085.187
-6459.022 150.609
-989.833 6697.432
-4999.863 6370.676
-5921.701 -8308.840
-1295.515 -7769.420
9818.264 9325.343
-8537.929 -6453.043
8968.325 2684.634
-3677.642 -4603.612
-7134.910 -8013.126
3989.685 -3021.050
6477.365 -8872.193
-1318.011 -6940.249
1249.731 -1348.774
-2019.833 -2130.778
-6374.115 -8354.892
-590.939 7286.202
-1980.334 -5941.062
-6215.901 -3315.289
-2857.702 -3145.458
-1470.363 -8911.052
1237.109 7076.755
676.288 2055.157
-4241.222 7489.945
295.200 -4828.305
-2048.601 -6390.214
-3622.865 -4629.215
-1969.177 6850.337
-7300.099 -1468.517
7568.479 -33.597
4886.341 5228.149
-9214.615 -3523.753
-5763.730 9669.210
-2479.608 -4857.999
-9549.246 8639.941
2482.726 6739.047
-1051.300 -8359.996
-6132.785 -2427.356
2634.289 -9447.312
4427.357 -1943.252
-9588.384 -5646.029
-6419.882 1884.577
1370.502 8903.012
1367.379 4257.244
-2128.365 -380.665
-8705.441 9485.759
5401.211 -5855.335
-7294.520 -6209.121
-8085.571 2370.770
-8405.887 8094.317
1189.640 -5704.490
-4139.106 -5212.097
-4937.943 1249.292
6847.962 -1519.584
-8646.044 1697.498
-5285.737 7347.482
-5934.946 -177.265
-7131.792 -6009.561
6960.917 -244.104
-4253.347 -4173.980
8339.465 -4508.541
-9399.097 -3321.510
5348.667 6317.673
-1836.647 2818.965
-1127.485 -3153.937
-3758.861 -5328.166
-3119.445 409.638
1115.101 -7482.014
3899.452 -1882.364
2927.465 3846.032
-8303.585 3456.092
8289.755 -831.412
-4968.717 -5156.572
-3605.828 1806.660
-4161.046 8183.772
2355.377 4886.759
-7064.903 -3840.145
46.847 7402.783
-5832.781 -5711.347
-6596.964 4712.637
-9305.417 939.313
5542.528 -6979.618
-6283.402 6271.242
-1531.045 604.286
561.674 -4852.019
1245.197 -3128.908
-9551.327 -1513.622
4891.883 944.201
702.682 -6475.895
-2722.798 2512.522
-5687.209 -3639.912
-1239.148 -3315.877
-1428.334 6332.324
-9422.635 -3335.061
-9547.544 6985.693
9976.519 -8526.641
-650.391 565.184
9959.041 -2332.363
-4654.410 -1363.006
-9930.660 -9436.323
3765.307 -2226.683
-986.216 -1164.571
5242.303 -5244.928
-6582.048 2019.931
7622.209 4670.098
-9443.662 2445.109
6761.574 4545.339
612.189 -5449.320
-5917.264 -3977.847
9522.628 -2447.278
-9125.029 2491.359
1354.279 -1282.560
-6809.583 -9204.687
-3659.935 -6011.703
-2040.212 9568.553
3369.047 3069.611
-5845.429 -1103.393
910.960 171.462
-2675.929 2151.305
-850.724 2586.224
-9586.281 2390.357
-5112.532 -8444.299
-509.460 -5087.183
-7294.412 -9037.382
-6391.811 -2831.794
2287.771 -2154.684
1256.227 -3038.448
-913.526 -8788.131
-1354.552 8628.110
-4849.828 2050.559
-330.167 -6948.588
7747.929 2411.791
-4013.737 3953.576
-8624.485 -5076.941
-8442.700 1410.826
-1786.301 -6318.161
-1608.500 2718.768
-1919.599 8950.357
2422.804 7718.490
-3770.112 2017.512
-1247.015 -7446.164
-3799.464 -2140.212
3807.444 -4289.377
9418.994 -2658.706
-3159.707 3594.820
-6762.254 1689.003
2205.788 -6083.199
3425.408 -3509.655
-8405.310 -6927.038
-4912.697 -6472.448
7498.802 9650.555
-4107.020 8268.366
-6590.848 -236.042
-6746.440 -8188.626
9089.158 -7629.156
3214.434 194.541
-9112.766 -5886.574
2207.418 5374.113
-8417.670 -6796.714
3898.731 9106.253
-5797.608 -80.338
1065.366 -7028.723
-9091.202 -6619.626
-219.206 2367.539
5234.614 -9999.205
2029.186 -9969.343
-2762.497 378.564
-4459.808 -9847.918
-7987.693 -3209.740
-4553.015 6474.604
-3354.225 -5337.999
-5157.674 1591.687
-8383.566 -8136.489
-5133.266 -6526.785
-440.746 9214.410
-4001.171 2121.891
-914.895 -93.336
-1750.699 1273.254
278.619 -3725.956
4267.192 2404.234
4780.191 -3443.114
-1433.090 -5135.065
7562.202 -9287.380
-4788.371 -7702.210
1591.253 6218.574
-3914.667 -4338.169
-8606.558 -8767.377
-4083.512 -1313.476
619.304 -2260.058
-7645.488 -2831.781
-4744.896 5440.266
-2729.896 1155.589
-9310.895 -4986.798
2487.871 8352.053
2886.469 -3415.662
-968.321 6429.381
1717.274 9257.192
222.230 2077.975
3336.180 -5842.148
-8968.635 -1491.786
-1308.662 -1459.640
-2558.358 -7061.818
3256.093 7874.107
-5149.708 -5191.893
-4347.252 -5472.980
2000.484 2314.733
6418.959 7193.234
-6042.107 -5407.467
-2634.250 310.627
625.416 5122.656
-6768.961 -859.600
-8471.695 2345.700
3920.942 2693.245
593.049 9331.281
-1426.617 7834.092
8280.304 8979.574
-2063.369 637.881
-1830.430 1026.431
-7001.382 1227.853
-3553.941 2437.233
-5295.297 1393.637
1978.197 -8848.657
-6667.624 3401.882
-2391.619 1663.492
-1684.285 23.113
3127.487 -6657.750
9427.222 5161.706
-8865.036 1671.366
2876.125 -4930.699
2432.833 3445.574
-9091.007 -7522.356
-9683.308 7516.350
3102.510 -4228.626
-6688.076 -6507.967
3310.129 -8455.127
1888.740 -9563.482
-4468.713 -6110.030
6847.261 9534.720
-9023.035 -625.625
8927.866 3521.018
9121.643 3684.853
9611.084 3927.409
432.534 -525.371
-1927.213 -7689.636
6456.901 -714.591
-2354.255 -5149.295
-5643.766 5207.931
-4809.885 -5689.809
-5652.301 -9175.587
8753.871 -6942.075
-5042.885 -6226.592
-9563.785 -1481.166
3352.850 -8814.239
323.690 -296.707
-364.112 -3187.569
5003.662 -7833.779
1751.651 -4478.906
-2229.894 -1365.783
-8412.719 -3932.532
1720.949 4090.382
6149.735 -6451.116
3446.371 4825.804
6550.696 -473.194
-971.660 -1290.960
-4549.109 -5401.323
-464.544 -6711.251
-9368.587 939.297
-3954.603 -9989.270
1463.516 8832.263
-8574.812 285.482
-5710.463 -4512.360
6540.976 3214.360
-8209.948 -9394.407
7224.150 2839.713
-2607.826 7003.813
2300.810 -7855.860
9826.706 -2012.544
-8259.621 -3428.309
8735.675 -7442.905
-5656.641 -4633.730
-6197.919 8434.084
-2916.439 9676.607
-8903.787 -3090.138
-9251.339 2931.857
-3227.833 -6770.720
-3362.877 -6483.365
-4777.079 2635.334
-2142.856 1432.264
-8793.095 393.875
-4335.772 3839.350
-9578.678 6265.918
-3579.822 762.478
8977.744 -1961.837
-7488.060 -8631.402
-1455.736 -2196.208
-9968.220 858.665
-6820.563 8364.660
-9100.980 3018.870
6274.188 7479.394
-4272.057 606.377
5346.071 -70.840
-2249.283 -7513.219
-2587.265 5260.445
-7571.501 -4794.845
-4416.499 -45.679
2712.528 -221.535
-2059.325 -1314.934
-2926.782 -2154.723
-8527.463 6603.264
-7873.593 -352.058
2765.295 -7614.326
-8626.636 8145.691
-6258.560 1269.764
-7591.047 -3966.690
2470.344 2055.730
3015.901 2747.124
-365.351 -4668.239
5709.975 4972.597
-6084.012 -2172.723
1803.728 3765.069
-3109.722 -4789.106
-1172.801 -352.421
-7476.357 -1749.103
869.717 7684.236
8800.024 1885.252
-1124.044 8226.334
-6512.384 -2963.636
1726.282 1035.817
-6273.744 -9587.491
3881.295 -4939.792
4065.189 -6338.195
-6205.167 5450.083
-9837.713 526.151
-4927.353 4059.899
6940.162 5650.889
-545.737 8263.288
-2058.938 -461.062
-1908.896 7129.077
8668.519 -2979.510
797.425 -9050.273
8833.274 -8754.607
-6411.853 -5232.206
-2499.882 8878.666
-858.166 6950.739
-1165.865 -4557.787
-3255.605 -9949.291
-9865.043 -8292.914
-7131.534 -6034.318
9379.276 -3627.190
4016.896 -8010.373
9541.169 -2343.743
2472.344 702.240
-9295.172 6088.297
-9032.661 -8788.426
-1051.706 -3787.630
696.932 -839.241
3058.911 -1571.755
-8213.539 -6680.265
-335.358 1415.023
6976.679 -4763.000
-5466.523 -375.746
499.169 108.450
-2172.076 1986.706
1420.763 -8381.276
581.081 3964.589
-132.469 156.954
-8842.874 6388.236
6021.748 -3306.275
-9236.367 -4531.948
9841.168 -4421.306
-2137.664 6197.318
-6439.803 -7008.630
-652.013 -1973.501
-163.543 -5685.488
6766.924 -8233.469
-9489.295 -6681.993
6522.936 -2931.544
-661.330 9647.380
682.606 -4404.465
-1289.766 -9109.254
-3783.480 9698.964
-6426.552 -7509.891
-9615.501 -6457.169
-41.999 1009.130
2857.549 -6400.303
-361.032 -3550.102
-9247.751 -4579.277
-4003.529 -3271.078
1960.277 -6214.504
-6739.689 -8200.699
3669.148 -6563.378
-8587.172 -2229.030
-6961.238 -8961.047
2768.282 -2227.578
-4153.570 3870.704
5926.606 7877.236
6811.513 -3641.546
6923.777 -6842.352
-3340.657 -2798.494
4990.063 9261.389
9798.892 1090.729
-22.022 -2490.654
-7883.480 8714.596
-6232.444 -1722.609
-6772.782 293.571
5656.113 -3792.106
4388.909 3547.511
-3347.319 -3983.039
7013.646 -6047.429
9440.367 7205.923
2399.520 -9321.623
635.660 -4940.518
4815.300 -4118.953
-9139.392 -8373.121
-4192.799 754.011
5433.756 6222.556
-9212.189 -3372.283
1322.058 516.650
-5471.978 63.282
-2058.038 1925.329
-2592.993 8527.893
-7454.174 1587.301
6556.008 2830.475
668.591 -2597.260
-547.760 -3695.787
-5602.545 -8486.377
-2512.159 -5417.966
-1516.760 -4237.083
-6476.880 -8948.183
-7284.724 6524.061
4500.999 -4950.672
1994.744 274.214
6947.384 2514.565
-9481.140 3613.625
-283.223 1529.657
-5719.412 -4426.028
-4858.223 -1383.743
296.241 5600.259
-8579.325 1178.032
-9569.534 2120.156
-2252.100 -2255.833
9065.394 647.586
1880.041 -546.164
4273.282 -4762.460
5386.606 -6195.316
-9336.558 7319.493
1329.249 -3752.044
-8240.145 -9353.100
4707.500 2977.631
-1968.187 1329.500
-1437.341 -132.191
-606.289 -3716.579
-7621.165 8768.544
-1111.906 -4936.805
2152.660 6554.324
7605.234 1207.272
5675.729 -4002.127
2945.640 -6287.047
-1734.100 -1686.498
-812.522 9580.865
-9072.286 -5843.122
-7966.989 -7363.281
-4265.388 9660.312
2665.856 -1504.334
-7579.946 -6913.848
-2059.968 -960.883
7256.613 -5629.741
-6497.003 -813.006
2529.670 -888.874
232.840 411.915
-5542.892 1620.344
4705.467 -5144.231
3396.400 -3749.148
7461.092 7892.872
180.656 -6658.632
8027.159 -1498.130
-4632.039 -8726.447
2231.499 -8051.977
-6459.642 -3016.044
-8201.228 3050.116
9285.050 -8469.738
6248.099 -8727.157
-3320.862 -8206.778
5985.812 8572.412
4313.664 7853.619
-5692.101 -4310.412
-1260.590 -5661.699
-9373.627 -7587.115
-5313.713 -3770.457
4886.246 2292.556
-2455.879 -2440.845
-792.954 -1903.702
-3537.370 -6521.524
1354.718 -3352.212
-3042.313 -9237.423
-7364.927 5464.333
-9113.220 -6620.203
-2968.652 -3828.396
-4209.138 -3032.624
-2936.281 5113.591
5601.997 -4878.356
253.359 -1437.273
1785.634 -5400.919
-2119.720 -5930.082
-5832.419 -4416.766
-6124.142 -5907.212
-8875.087 379.034
4760.354 847.878
-569.935 -60.969
-5191.895 -3794.771
6269.161 -7308.018
-3276.303 -2262.418
1962.247 2862.763
757.474 1036.286
2704.031 -8890.285
-9422.901 -6903.645
-2118.594 -876.508
819.903 3077.090
-4315.055 3140.378
2594.603 -9136.909
-8844.120 -2423.403
2240.275 2401.336
-9160.985 2051.479
-1361.353 -9921.642
7569.470 670.781
9924.126 9247.822
-3545.260 -4686.781
4767.021 -4514.027
5325.540 2278.788
-8499.871 -1531.363
6376.286 -951.082
5058.774 428.367
1797.306 -10.117
9604.940 -7564.303
-5542.271 9847.069
-9950.052 -4243.524
272.030 9088.847
-9674.222 4399.808
-4233.589 -8014.612
104.397 3811.290
556.398 -5162.042
-2355.658 5242.613
569.832 -6902.744
-6143.665 -9293.360
-7054.427 3085.332
-1965.225 3000.853
-2309.799 2004.255
-8425.622 -1376.628
3294.827 8694.373
2131.760 7916.271
1273.776 -4542.367
1911.691 -7444.470
-7476.285 -6618.891
-8517.175 -808.123
-2484.139 -4025.713
3111.015 -7399.037
1687.225 -9234.518
-239.356 2816.311
8050.718 5814.626
-2536.434 -2675.768
407.780 355.996
8901.304 5543.522
-7164.313 4804.123
-4111.314 1128.685
-4214.238 -170.549
-2464.033 -48.204
-8161.523 -2910.802
-7618.295 1454.140
-6390.103 -9893.015
-1172.245 -3267.394
-4837.650 -9340.677
-309.119 1698.948
-9358.069 7621.825
-13.468 4209.933
-2506.374 -4838.997
-5630.377 1801.988
6908.694 5543.836
101.262 7857.827
-4535.957 1435.695
-5392.037 -542.178
-2010.235 -2860.068
-6969.816 -4641.924
-3442.007 -4519.212
8668.953 -973.614
1768.082 2527.778
-5368.857 3356.117
-1372.827 1831.553
-8971.004 -5570.471
3485.970 -4582.661
-7117.858 -4723.879
5569.175 -778.271
-9182.462 -7480.372
803.811 -6277.987
-7056.633 8085.304
1765.707 -3270.291
-4814.661 -5712.363
-2221.130 7985.508
-6707.548 -969.175
2215.645 -6712.357
-2258.209 5467.284
4390.975 -2478.430
3091.123 9014.404
-4093.990 -6640.237
9153.816 -3954.670
-101.050 -1136.176
-3377.006 -8971.933
-9129.042 1383.016
-8873.737 -5751.655
-5941.689 3580.202
-3799.802 757.409
-2919.691 -8097.383
-230.676 -2864.880
6639.154 -9428.291
-4465.519 -9444.015
904.238 -1523.383
1269.686 4582.462
-1978.614 5586.993
-6294.003 43.518
2460.074 -3423.008
-4748.849 -2898.760
-4055.347 -4799.835
5766.543 4549.494
-9933.119 -7504.954
-4000.401 2604.423
9490.736 2957.385
-1586.536 -8753.677
8678.420 4555.058
8582.647 -4094.752
-7554.852 -2201.690
-1106.167 -5174.186
6641.895 8167.048
-8238.394 -3437.539
-9946.519 -861.716
-2099.073 -6375.805
-946.864 2583.300
1354.783 -4380.806
-1464.214 1908.022
-8741.950 -9150.347
-5478.326 8718.115
2527.040 2355.178
-933.746 -9460.288
-4416.989 -5917.797
9133.023 3134.325
-1767.833 425.084
-547.456 -4895.128
-6648.548 -8572.745
9828.419 -4134.194
5345.187 -2013.060
-2968.521 -4095.926
-2050.292 1635.527
-4391.832 9942.623
1415.380 2153.488
-9034.691 -3771.200
429.091 -4215.124
8136.270 -4636.452
5873.084 1886.273
-8859.661 -5830.582
-5440.927 179.841
172.244 5239.504
8942.568 -6943.900
2764.278 2616.951
-9184.336 5255.436
-8288.224 -8540.114
7302.610 9046.952
809.605 1072.800
-7493.005 1256.796
-1570.762 -4709.642
-5305.550 1955.174
-1546.897 -9900.987
-8548.213 1594.609
9504.945 -5872.533
-4103.349 426.675
-7858.506 -7465.252
-6964.503 -8706.960
-92.443 -7912.299
-9911.342 -9140.607
-6131.013 -1458.277
-5962.817 3126.314
9923.343 2915.651
-6240.518 -6451.761
-9299.139 -405.202
-3387.404 -1176.110
-8102.590 -8345.636
2380.358 -8880.007
-8473.874 -926.381
-1113.181 -5866.201
8064.653 -9676.541
-6699.269 6360.738
3194.224 -6524.738
-2141.252 -7198.996
-9931.363 8510.101
1896.720 1737.926
-6593.510 -4220.683
-3384.200 -4527.125
-1519.656 122.331
2768.921 -8314.877
1327.338 -3337.308
8924.064 -2941.347
2318.403 8440.270
2038.948 9359.357
2633.740 9549.230
910.475 -4356.685
9641.386 109.045
-4825.194 4458.196
-9275.073 2909.256
-7736.792 -7999.867
-4001.901 -4276.847
-6259.729 2746.266
97.697 -233.592
1301.773 3572.691
2245.963 -3416.531
4914.209 33.381
9235.572 -9999.214
-8287.483 -3241.236
-388.370 -1327.592
-3452.615 -7232.133
-4932.767 -2919.768
-2380.727 -2481.693
3675.986 1566.997
-3316.789 -9666.401
-4141.763 1447.478
3098.657 7036.110
-575.801 -8671.393
-6923.167 -3748.880
1812.654 -9366.814
1.208 -9372.220
8004.143 -3348.243
-1749.390 6014.665
1817.591 -744.631
3632.467 -6585.656
-2686.043 -8239.730
-3753.273 6597.938
-4258.845 -6396.377
-5578.416 -3540.777
-4010.907 3622.429
456.637 1527.323
-7745.551 -4993.923
826.000 -334.948
5691.191 -3460.443
2051.292 -7918.179
-9961.844 -7875.003
9928.560 -2083.074
619.765 -6169.843
-8327.090 -1025.504
-9921.228 464.888
-275.744 -6638.337
5345.125 -6503.732
9552.448 -5826.450
-6510.476 9132.290
-1356.176 -8909.568
8793.758 -8411.061
1655.940 8112.080
-6194.149 -8570.960
-475.589 -4735.150
9294.046 -3810.388
887.437 -1861.881
-7350.348 6060.968
-9779.502 8641.691
-5894.709 5240.322
4921.315 -6430.363
-5820.466 -5035.929
-1353.124 -6216.925
-2758.169 7749.029
8493.820 -4793.503
7991.317 -4395.355
8462.717 3652.851
-4857.995 -5606.692
-2629.744 7629.410
-5828.580 2171.644
2430.575 -6100.173
-4420.263 -8506.398
-6578.325 -1288.395
-6097.094 -3813.364
-3602.858 4081.664
-1132.007 4384.593
-335.690 -8087.482
-9332.674 -8438.082
-4562.333 1015.381
-9845.111 313.366
-5745.151 -8667.543
2541.872 -4197.804
-8793.671 -7230.258
4475.457 -2650.275
8307.250 -4308.126
-5525.253 9534.345
3617.727 8177.550
-6496.818 54.095
-7351.594 8933.977
1670.930 2634.537
-5171.300 -5333.969
-9388.074 8383.880
-4356.223 8657.325
-5836.836 -2866.826
-4014.948 -2222.121
-9612.271 596.175
-1131.119 9491.634
4050.796 8895.020
5050.288 7912.109
-4615.369 9383.378
-8447.042 -2929.503
-6084.728 -2254.581
-908.429 -7375.740
-6051.607 -9684.951
715.662 5862.498
1899.551 -9162.605
-4504.883 7216.197
5278.407 -2027.327
1755.306 381.132
8444.552 -5055.722
-4670.697 -9592.336
-4906.817 1622.967
-3711.021 -1449.994
1353.826 -9564.236
-2676.430 7706.499
4543.571 -4191.416
-4957.551 149.123
846.181 9107.489
-9837.217 -1844.045
-1355.373 -7350.824
-7696.166 -2598.752
8002.270 929.913
-2464.512 -608.790
-8654.958 3042.925
3280.946 44.366
-6330.806 -895.482
-7873.388 -3913.443
-9423.068 -7201.944
5776.001 -1780.917
-5871.618 -409.300
-6567.578 -5608.749
-9457.519 -1679.726
8634.594 -8613.723
1695.635 -4925.125
61.242 6530.618
164.477 2733.648
-3207.829 609.609
-1302.319 -3348.348
-9069.011 -7526.338
6445.990 4325.051
-3655.000 -1315.804
848.965 -1582.433
1416.748 -6077.402
6756.961 -5619.848
1285.122 4595.620
-7095.676 -856.443
-6524.596 -6176.491
-9946.588 2233.492
263.371 -2521.655
-7951.803 3490.320
-4363.273 -4109.299
236.431 -9064.048
-55.753 -2150.557
-5372.242 -172.256
357.052 2431.817
4593.385 -1057.465
6231.012 -3504.838
-9862.246 -5777.289
9085.354 -6136.093
4401.816 1316.112
2078.762 -9843.934
2898.656 8264.050
-4372.731 8241.741
-5561.468 -9067.514
-5753.698 -7885.887
9412.173 -6959.899
122.462 7997.776
9740.595 5705.495
-7171.892 -1050.006
-5490.270 6971.755
-9741.690 -9456.821
3422.941 400.543
9066.837 2823.547
-1913.017 -4676.608
-9823.934 2249.779
-6570.800 1089.015
2108.983 3771.541
-5364.293 2503.353
-5552.616 -3728.666
7600.996 8041.511
-8708.006 1988.538
3832.457 -1202.230
-5172.809 -6236.816
-2361.248 4640.311
1206.115 -8187.210
6215.716 -7325.190
-7458.598 -5527.556
-3051.075 5816.276
-2638.485 5089.324
6546.261 8600.639
-3888.527 9028.805
148.003 3107.454
-6593.697 -7621.503
566.012 1028.968
881.195 7383.283
8130.167 -3052.285
1254.649 790.577
46.446 -552.833
2985.465 -5051.644
9272.215 8959.502
8914.377 7958.810
-5997.276 7911.216
-2812.600 -6192.847
-9965.050 -4074.809
-7216.578 -130.713
-7936.348 4547.405
9165.399 539.435
1707.591 -6835.709
-2842.434 -2385.037
3985.317 -606.359
9487.636 201.760
5469.052 -4266.250
-7930.288 2444.356
867.550 -4397.843
-8556.735 9695.028
-860.544 3493.389
1717.548 8058.062
-7026.030 42.875
-3895.600 -6560.438
-3302.515 620.134
-4927.661 -5411.874
]]></test_input>
<test_output><![CDATA[The gopher can escape through the hole at (-569.935,-60.969).
]]></test_output>
<test_input><![CDATA[0.000 0.000 0.000 0.000
615.781 9503.729
-214.683 -3024.232
-1877.150 6456.825
2216.895 -8204.706
3505.092 -5893.160
1190.509 -4363.395
-523.044 -3007.928
-9103.038 -6457.130
-4462.621 -8581.224
6221.641 6202.428
3929.170 -1314.793
9664.197 -8258.458
6431.434 6065.146
-9689.898 -7651.991
2128.145 4606.582
9788.431 9564.109
2162.654 -1462.411
-1416.611 -4515.032
4237.172 7186.555
-6196.070 -3520.863
-4670.444 -6123.277
7305.071 -421.232
-309.792 -4184.122
9720.702 774.914
8291.832 -9662.531
1474.425 -5711.139
2016.630 3822.208
3078.457 -82.162
145.460 2526.080
3495.820 259.612
-8030.995 -6699.622
9469.067 -3528.033
-1219.643 -8231.935
162.835 2862.646
-2713.088 -5141.727
-634.919 -7708.394
-6590.888 -8603.500
9175.394 -8047.355
-9719.600 6909.959
6787.503 7821.753
-617.415 -5045.624
4432.586 -7765.872
-3490.928 959.041
-9248.774 -5386.096
1329.978 -192.360
851.960 -8070.719
-7620.761 890.504
-1598.136 -1538.091
135.317 -6353.246
-4185.573 4224.474
-2342.072 9952.118
-4623.496 -8544.764
8850.513 -5750.366
-462.678 -679.222
7535.702 -6111.199
-7213.552 -4416.095
-2487.515 1532.561
-3493.380 -3034.836
-396.814 9610.110
-7953.780 -1830.230
7360.886 -9928.564
6923.092 -1499.344
-1315.717 -9972.869
-8148.022 9932.308
-495.323 6699.208
-1240.583 -6156.838
-8957.452 2101.048
-1454.242 -4647.517
-1933.023 868.722
1975.506 -8141.367
5820.944 -4941.986
2022.810 3035.539
539.589 4402.244
2723.679 -5437.391
-5663.658 -8779.845
-8368.490 -7306.450
-8000.694 -3675.650
9870.377 -3584.833
9830.053 -3635.133
3160.796 -26.860
6555.231 -2932.301
-6939.082 -3159.904
-9404.638 -987.524
5348.748 -2103.581
-6142.970 -1163.338
1993.847 -3872.783
1426.790 -5966.079
-7587.389 -8926.071
-2836.242 -5713.194
-6588.970 -5280.281
133.209 3613.295
1637.769 -5012.493
5391.531 5193.658
-5761.054 4044.752
-6088.506 2554.399
7592.612 -4248.003
-5435.455 -7180.852
-836.366 256.689
7549.724 3093.172
-275.456 468.267
-9055.593 -644.596
-4057.285 -3234.773
8718.090 -3649.623
-8969.248 -1328.753
-1987.237 -8943.851
-861.358 -3712.097
-7198.606 2691.123
-497.401 -7300.247
-4241.445 -317.782
8185.053 -3861.446
9872.268 -1291.621
-8738.004 -6411.144
430.796 97.110
-6096.115 1978.897
-3249.887 -5181.230
-9080.420 2521.272
-5103.445 -8297.496
-8977.788 333.795
3987.074 -1608.913
-4204.037 6729.801
-8210.412 -7335.967
-4226.099 8962.816
-8233.599 -6489.915
-8180.017 9861.447
-6754.795 -6351.364
-3744.380 5530.179
-6960.611 5790.133
-3338.660 -6581.076
-9801.670 1426.635
-2272.624 -9259.543
9430.919 -1716.786
-9897.849 -105.140
2128.998 -7383.424
1893.940 4237.919
-5633.055 -1535.327
-6218.178 -5780.585
-3649.992 6213.981
2802.297 6054.798
-7164.558 -2487.565
1564.099 -5880.214
-8386.862 -4362.061
-621.196 6972.366
7897.422 8373.887
9904.582 -1207.439
-6465.876 1259.443
-5300.342 -2800.564
-6794.531 -491.850
-712.567 4815.566
-1793.572 -3086.610
-9788.172 -4960.602
-3851.032 183.623
-4324.552 2041.551
-6831.353 -4806.414
1636.208 -9972.786
2664.464 -247.122
2561.045 2277.052
-4532.542 -7726.985
2098.276 6064.505
-2998.510 7418.221
-6512.456 2419.025
3720.831 -3416.861
-1964.565 -4370.744
-7922.285 -4644.276
9647.013 -6878.096
-7683.102 -9745.975
-9359.373 2917.915
-9072.087 -3686.482
-9755.886 1936.764
-5440.486 -6062.170
4529.703 -5806.142
4291.224 -3866.553
-2214.639 1981.081
-1429.347 -6206.023
-196.014 4790.474
-704.531 270.085
-940.819 7846.705
-2352.103 -8148.603
-969.205 3918.251
-6337.355 -6465.073
-9575.012 4269.424
-4436.445 225.983
3145.207 1660.548
532.682 1548.127
-6286.758 -3505.744
7536.001 -6832.304
123.271 -6212.072
2680.820 -8288.604
1062.211 -8276.804
-1703.173 -408.288
-2959.184 1518.305
-4351.988 -4882.816
-9190.591 -4988.040
1368.340 2359.530
-1867.093 3568.868
-3577.069 -3551.329
5559.004 6866.862
-8406.305 -1974.786
-8691.793 -4093.339
-6209.434 -9654.240
388.430 -4230.786
4416.352 -7244.953
7903.015 9350.936
-4670.390 697.241
2597.311 -2537.574
-4362.763 -93.204
7507.179 -7306.112
-7768.075 9307.366
-6844.307 7466.902
-8224.341 1478.125
4944.142 -7532.300
7973.373 4576.283
4296.813 370.340
-1257.002 -1527.383
636.332 -2242.745
-7469.039 -9832.579
-4584.479 2350.875
-559.684 3423.941
9280.961 3346.480
-26.683 -4624.745
1752.572 -9540.895
-6492.782 6901.579
-9791.774 2225.925
-2857.294 3799.839
-4173.888 -2085.850
-5080.059 4506.714
7142.416 -2342.795
-7683.057 -5218.329
-2193.878 -6612.168
-6572.471 -7234.391
-5288.408 -919.069
-1651.344 8242.521
5871.400 7978.843
4927.220 -498.636
-3491.675 1856.062
-5887.302 -8349.315
8736.474 -1638.655
130.741 -9187.604
-1158.131 -674.857
9325.302 -4063.650
-2298.102 -2859.526
464.758 3125.779
1561.594 -8511.057
4299.066 7544.169
-4665.792 -7395.043
6753.569 2952.346
-960.989 -794.769
305.582 -6278.362
2444.539 -6446.906
-4882.569 4484.094
5460.950 -5424.891
9939.765 117.233
-2629.417 -7568.821
-7121.770 -1735.625
5183.256 -3172.708
-3123.906 -6087.672
-4261.637 -9382.952
-3850.622 -139.414
-4121.742 1002.869
7921.960 -7502.195
820.459 -598.741
-4865.232 -6999.096
4434.891 -4458.915
-6.833 -7856.245
-565.854 -1950.664
7869.955 -7297.218
1160.122 355.327
-9507.209 -3323.161
-9367.416 -1373.282
5515.147 5036.063
-2609.310 2252.589
-1261.996 -4930.857
-5642.029 9126.537
-2819.450 -6373.867
6928.770 -8684.633
-1969.682 -9879.881
-3723.007 -6767.726
-8629.547 4957.408
-3600.849 -5352.964
6476.329 -7339.931
7535.458 2365.332
-8115.754 418.065
-7752.214 3349.882
736.618 -845.684
-4884.104 2669.542
-4585.769 -2251.729
-7219.068 1199.766
-9759.610 368.772
-9485.429 -7394.304
-3164.659 -281.700
-4843.743 -3297.667
-1371.562 -2724.081
7337.571 -2832.773
-9817.220 -9975.667
-8709.448 1161.987
-5882.917 -4729.564
1047.846 -1758.975
-7750.958 -3577.771
-1790.563 -4821.379
-1830.360 -9315.465
1026.729 -2255.953
-3660.380 6643.814
6740.924 -9887.885
3094.636 -5615.139
3091.142 -9856.895
-758.049 -2950.159
-2602.340 7821.371
-2668.006 -17.572
1554.280 -3798.115
-2859.569 -4214.873
1841.120 -5585.442
-792.295 9125.672
-2110.364 1040.344
-4022.638 9748.623
457.425 -7230.795
-5012.722 -5369.553
-5043.922 7888.786
5664.643 -8889.661
-3415.652 -7098.442
-7372.884 -1922.524
-5416.320 -3862.868
3216.036 -4623.341
-5900.859 -6595.299
-7398.342 9565.674
-8212.038 6173.528
-4112.299 673.641
-8366.752 -956.399
8881.308 -236.398
-7632.970 2503.505
2615.323 1958.295
-8755.904 2202.258
-5772.537 -5875.613
-5654.701 745.395
4379.303 6928.695
-2296.645 -1218.855
-9447.240 1563.880
3873.498 -321.096
5653.187 -850.957
-3444.746 -3120.617
-7946.516 -7956.394
-1636.669 6538.707
-2469.497 -499.509
6176.010 -5619.315
-6110.959 -9203.503
708.777 3529.440
-827.853 -3457.073
6443.023 5940.512
854.325 -5775.458
-8676.696 7578.281
2632.024 7952.724
180.446 -6650.850
-7802.513 261.078
685.365 702.370
-165.151 -9102.105
-9247.297 -5790.110
-7540.318 -8490.357
6911.148 -6863.197
-8744.869 3472.323
9049.244 5061.493
6907.559 -6697.131
-1095.512 -4139.982
-2029.219 604.861
-8922.120 -2704.612
-7633.454 9139.523
-9439.155 1575.799
8642.318 -2811.939
6634.681 -8638.076
9275.823 -8483.535
3901.689 9990.100
-4576.496 -3238.031
7985.194 1592.714
-4103.461 -6017.035
-553.765 -9037.694
9858.733 7400.852
-7009.422 -2351.159
-1315.339 -1876.810
3187.289 -5141.579
479.031 4864.181
1019.449 -1266.839
959.443 -1613.854
4186.480 1228.220
-7442.313 -5968.917
-5619.892 5645.797
4343.210 -3711.355
-3982.390 248.308
-1530.638 4808.296
1469.731 -5009.444
-6404.505 -3673.052
7137.726 -9684.510
-4706.794 2487.711
-5648.130 2318.615
-3642.380 3569.452
-4911.066 -7736.366
-2675.511 -3574.471
1293.882 -3665.017
2439.893 -3823.117
9638.917 -277.663
905.520 1489.618
4348.704 -9044.661
1885.097 -8076.490
-9623.771 7796.635
-6901.608 1180.915
2500.357 5062.005
-1287.625 6250.648
-7999.855 8960.573
360.139 -9221.670
-6900.334 -7138.318
3445.681 6019.048
-1933.955 1746.256
4440.267 -6759.252
539.909 7023.889
-3768.324 2028.357
-6488.099 1093.865
-7245.604 6184.082
8311.428 -7108.163
-8312.757 -619.276
-4988.986 -199.872
5359.359 1174.218
-2936.136 6080.413
-3059.151 -6612.910
-7565.362 -2802.194
-221.706 -3756.111
-8875.851 6686.339
-147.556 -1758.743
888.918 -3261.617
-7546.061 7949.428
-1755.632 9650.817
-7393.104 -9850.777
6011.042 216.713
174.308 -8875.500
-5571.690 -6562.952
-8996.614 3235.664
-3963.801 -7416.660
4915.155 3702.915
-3544.212 -4067.604
-4104.489 -9012.615
-9543.533 22.070
-6419.349 930.035
-4375.417 -9647.904
9100.003 2161.832
-222.833 -9088.665
-9934.731 -1495.054
3049.076 -6088.775
-3473.216 -7171.423
-6269.378 1124.177
2231.298 2934.449
15.264 -1808.292
-4840.403 4447.223
-9593.672 -1150.792
5047.948 -8708.871
1122.648 -3877.361
-7651.735 -4086.851
-9997.345 -6727.977
3718.236 8807.825
2952.847 1268.547
-1675.335 5003.693
3501.662 -3995.232
-4866.270 -760.268
-23.577 -6883.124
-8969.565 -1264.192
-353.122 -2997.143
-1774.316 -2609.121
-6771.543 1909.062
-9669.086 362.441
2541.369 -3388.673
-4580.001 -4377.797
665.661 4537.853
8375.067 1415.625
321.853 -3596.378
-4240.993 1922.714
-1387.111 5994.493
-1725.552 1461.852
-4482.514 150.301
-3639.518 6415.124
-2329.390 2502.839
2774.903 5699.668
-2418.139 6346.116
-5.027 8347.324
5846.303 -9811.527
4613.165 -830.886
2169.042 -8655.562
-3458.268 -776.791
9995.011 -4549.864
7978.043 -1185.794
-190.499 5256.819
-8341.018 -8526.855
-6581.559 1938.813
1626.965 -1238.454
-9870.352 2320.937
4372.002 -5637.758
-4385.156 -4623.513
333.830 2388.515
-9486.445 2341.215
-5932.175 -8416.018
-1205.471 -7756.567
9720.297 -1784.277
2630.764 -632.865
-9150.546 1007.099
-1286.914 -481.098
-1226.608 6902.830
-9513.873 -7946.994
-8557.936 5049.477
5646.623 -4340.965
-871.575 -8400.258
-1974.054 -9357.356
7871.796 -6195.996
2450.827 1437.658
-2405.097 1089.780
-7735.671 3479.410
-2179.655 -6279.010
-3380.288 -785.214
980.521 -1541.415
-8039.919 -4920.375
-8379.486 -3732.050
-5500.897 -7294.803
-777.322 9771.357
-3713.648 5407.216
2605.683 1078.503
-1122.657 -8202.019
-9312.694 -30.410
-6489.813 9631.925
-8054.890 -8156.204
3202.043 -6007.866
-4094.609 -9524.664
-6957.835 2949.123
-7754.981 -2232.493
250.914 315.580
-2666.494 4475.788
3501.810 -5199.732
8519.887 -8850.355
-5815.641 -8790.682
2482.360 670.383
-771.416 -7999.644
-7594.579 1606.395
-6919.627 2452.896
7053.322 257.204
-5497.509 -5355.093
-9163.661 -799.207
-6258.291 1050.345
9152.582 1141.679
-7790.799 -7988.555
7487.814 -9652.274
8689.125 -6087.696
-5889.488 9994.963
-7480.359 -8764.728
2058.932 949.648
-1781.978 -9007.752
-5755.051 3693.763
-7828.848 -6786.359
-4434.095 -9394.306
-2625.118 -509.971
8131.538 -9233.017
-4695.102 -9802.692
2400.564 -4252.141
-907.445 -9621.990
-6859.920 8989.257
-28.347 -8915.594
-8233.901 -5530.547
-4362.312 9224.443
-4207.159 -409.662
-7644.099 706.002
-5331.190 -2652.871
-9336.819 -4517.948
-5106.339 4859.202
-4560.537 -4268.289
4885.552 -4340.468
-8271.330 9474.398
-2558.575 -4886.609
-624.703 4416.706
2570.744 -563.062
-4872.990 -2786.010
67.606 -926.981
-9846.113 4199.975
7999.137 2295.886
-7130.252 4617.085
-2292.315 1457.451
-8954.185 -2391.579
6862.540 -9896.121
-8032.230 6183.056
-4336.016 1032.859
-5336.923 -4606.978
2317.886 2431.033
-7506.614 2581.783
2119.513 -8396.891
1020.273 -3724.198
9203.657 -2629.105
6871.033 -5134.765
-7031.009 69.516
-1499.575 -995.355
4407.801 -1477.252
1314.105 2076.501
6028.075 5705.050
1931.152 -1735.867
1073.552 -9103.646
-8267.121 981.010
-8600.794 -80.208
4628.830 -2805.890
-6570.953 5734.000
5175.172 -7400.047
-7084.816 3850.624
5385.692 6673.922
-3458.679 271.559
-9806.597 -6968.231
-1498.649 -2971.142
-6703.902 6762.934
-8864.022 8087.917
-7254.879 -30.956
1622.016 527.029
-5262.687 -4620.658
-2189.640 2255.773
4869.325 1381.827
-1127.464 3928.103
-9037.697 -3025.568
-5364.456 9541.986
-6642.586 2479.797
-4727.332 -2609.720
-7683.920 -5415.940
-3098.802 8008.864
-2649.785 -9440.767
5242.662 -1374.291
3058.574 658.368
9174.312 1225.608
8092.501 -5256.098
-9337.490 3266.106
-6113.327 -7496.591
6739.373 -4139.983
978.985 5269.211
-7069.971 -6466.785
1222.349 1419.941
-2955.948 -4103.527
-2994.824 471.955
-5595.292 1377.939
-269.068 906.468
-2704.865 -1464.771
9753.086 -2854.350
-153.263 2686.546
1608.991 -813.392
-4099.566 -8209.134
-8100.444 -9695.191
1246.073 -5116.850
-3665.224 2343.691
-6091.630 1470.140
-5031.935 -312.409
-7966.643 -7169.878
1037.226 -8093.321
4299.901 8771.703
-1988.472 -3249.127
-4245.777 8577.656
1933.097 -2618.108
-2728.861 -8274.953
6887.371 -1130.108
-1877.589 -2119.036
6384.400 -4466.127
-2155.297 1101.919
-7674.404 3098.347
5087.652 -45.749
963.913 2910.366
-3786.517 -9234.188
9212.853 -3012.126
9339.887 609.621
5192.384 -4878.403
-5263.635 -9788.817
-9197.496 -9349.234
-2697.018 -4625.168
-3159.119 -630.074
3841.398 5529.698
-2607.130 -7340.248
-504.160 -3504.345
-3251.202 -6268.077
6843.401 -2529.307
-6083.389 -8506.365
-2488.268 -560.603
-2503.083 -321.640
6933.912 -956.990
-1380.803 -3021.146
-9461.800 -4578.104
-7913.566 -7555.501
-9687.621 -8583.718
-9959.481 6806.347
-1045.865 76.619
4298.862 -1384.199
2090.467 -182.678
6294.465 -2637.364
-228.576 -27.905
-4322.645 8658.594
9425.158 2216.722
4830.790 -9756.590
-2536.577 -2086.131
-2411.502 -3797.152
-4267.616 -7552.259
-7208.931 -7989.637
8786.790 -3942.101
3736.293 -9440.773
-8946.412 7203.174
-9848.627 -8218.692
-8539.012 -6476.001
2225.437 -3984.699
723.678 -7455.645
9463.401 2676.734
-7161.356 599.227
4225.592 -2884.181
-9801.927 -3578.507
2381.152 -7820.822
270.850 1875.670
-9037.090 -7584.463
8662.580 -957.859
-593.067 -3644.150
2547.953 -619.700
-8689.541 -1922.531
-8316.248 8772.800
-6973.286 2981.339
266.308 6795.994
-7847.805 3314.173
-2406.021 -9188.806
-844.042 1909.415
42.101 -7415.280
-1862.597 -6019.727
-4307.758 -4134.551
1959.099 -716.172
-9585.745 -9639.172
-3498.383 4638.213
2614.070 -7798.270
2529.892 671.086
6665.929 -6900.143
-3175.366 -5547.473
-2229.912 -9060.366
-1365.657 6967.977
-9419.753 3504.589
-2458.310 -4131.070
-5822.336 -9120.914
-3219.875 -9701.918
8038.099 -4554.344
-1532.986 8825.968
-9486.009 7170.733
8107.175 2695.905
-9546.300 -2900.972
-3298.300 39.426
-1899.268 -9.051
-4625.702 6460.997
-2087.581 6848.820
-1322.975 -4475.677
-7041.646 -7865.254
3326.325 1146.909
-4920.658 9187.467
-75.216 -1805.990
-4439.617 -5689.873
1826.773 1153.604
-136.950 3394.851
963.079 -3472.024
1193.728 -6654.943
1756.003 -1140.437
-7900.171 -563.792
4903.378 -5063.509
-9675.975 8553.219
-5222.945 -8388.051
-1633.318 -6124.668
-1114.194 6288.536
1125.000 -7285.697
-162.026 -7919.129
4514.256 227.851
2761.330 -1581.917
-4016.238 -8172.506
-9839.224 -8600.914
7715.405 8716.848
-554.206 1120.398
-434.277 -6217.291
7449.128 6145.496
-9317.632 -1666.430
-3627.536 2038.719
-204.375 -6815.334
-4353.148 -2372.800
4797.468 -1724.847
1388.693 9812.130
-6855.447 -1661.846
-8247.807 -2824.939
-1212.627 2161.423
354.917 -4484.915
535.656 -3928.183
-7651.868 -7343.741
-5369.601 84.768
-3106.149 -9751.444
-606.702 -8509.434
-6653.710 -694.730
-2087.105 5594.374
9990.312 -645.232
3410.731 5567.644
354.760 -4833.643
-7947.206 6067.828
2660.064 -1677.387
-7105.306 3823.703
-8193.173 -9775.796
1422.771 -8627.941
-2147.553 -2387.199
-9314.015 -7774.726
-1276.657 -5379.064
33.522 -4678.659
-5640.309 716.431
-9178.364 322.948
-8777.989 -8828.402
-3650.631 -5052.194
-4515.624 -7638.071
-14.996 -4541.244
-8962.077 -1500.133
-8637.861 1343.237
6640.981 -5110.618
4019.283 -6860.882
1890.172 1403.771
-448.999 -6601.550
-4900.734 1995.370
-8475.770 160.503
7079.230 -2166.473
6962.072 -9667.185
359.398 7400.714
7611.543 -3943.792
-5225.892 -3504.393
-9524.330 3741.840
-1035.009 -2619.646
-6352.970 -5459.615
-9929.779 -23.205
-9656.609 -2647.544
-4655.802 -2723.520
4855.464 8332.151
-3568.540 -2728.554
-3302.312 -2609.009
-9985.803 -1520.412
4522.299 -2172.340
-6713.844 -2472.713
7611.466 -9827.929
3176.352 7103.563
-5632.902 -1914.007
-4221.428 877.735
-4382.242 163.417
-4302.387 8807.211
-9554.301 -1890.085
-2099.697 -590.877
229.242 -9040.373
-5596.432 -4216.637
4587.786 603.128
4553.861 2469.983
-7236.022 -9421.232
9670.489 -2879.620
7536.592 -2129.371
9601.834 -214.608
5021.609 9051.788
-1442.650 7471.564
-7917.418 3878.321
-4837.757 -6469.307
-9281.558 1559.109
-8205.525 -4268.943
44.556 -462.134
-6947.976 9146.083
1403.240 -4586.198
-8628.230 2637.896
8783.104 -2464.579
-1009.334 -3674.747
-1498.361 423.745
-784.136 506.747
2038.722 5471.653
4663.226 1532.438
-1386.717 6488.810
-6904.157 -7462.987
3670.755 5598.006
-8066.655 -1635.606
3876.783 8889.252
2520.113 5322.865
2952.152 -338.625
-5718.680 -3770.608
-441.394 7577.409
4647.102 6444.379
6626.588 4794.121
-3904.544 3479.685
1046.944 1383.157
-1504.471 381.625
347.216 500.090
-9270.122 8848.026
4199.462 3922.195
4228.425 9949.952
-2646.425 -6517.790
-7442.745 -946.280
-5966.573 6729.333
8447.917 -6102.619
1605.121 -8146.503
113.256 5778.388
7852.649 7930.479
-3753.406 6660.012
3685.092 2731.522
8605.227 -9510.487
-3314.701 8149.764
-7342.608 -2358.702
9472.915 -6320.201
9208.011 4197.117
1200.059 6410.222
-8682.317 3738.197
3277.555 -305.480
-3959.340 -492.361
-3481.200 -3962.385
-2388.625 -5835.227
9282.415 -8588.400
-3466.002 -7935.438
4744.565 -6663.032
-8199.815 -873.339
1913.320 -2991.166
102.430 304.223
-7441.014 722.709
8774.273 4033.577
1733.811 -7887.660
-413.765 -6338.303
-112.645 2623.092
-8198.083 -5677.840
2432.195 1704.501
-9457.296 -3830.193
-9726.855 -5839.664
3355.775 -3095.866
2879.065 -9984.260
-5162.828 5745.695
-2147.317 9813.539
-8367.153 -3933.058
1339.826 -4787.284
-3908.658 1175.350
-7817.811 1021.521
-2463.811 -5086.236
-8629.744 -710.521
-2265.639 -5834.327
5224.972 -2381.085
-2189.353 -7036.154
-7806.703 -1097.196
6145.925 7408.575
-3834.043 2058.969
942.517 2054.559
8444.488 -9806.178
-4528.567 -4444.943
-8822.002 1456.625
8602.627 -6679.479
-3315.848 -4227.029
156.727 3279.708
-4536.478 -3725.576
477.949 -5204.741
-9298.474 -3226.153
1448.970 -2670.783
249.408 -7163.401
-5984.911 79.722
-906.359 -5701.223
-1760.850 -4790.620
-6861.420 4304.022
-3515.388 -1298.948
2872.484 -9142.171
8039.130 -7848.118
-435.260 8743.530
-2504.294 3113.531
-6479.171 -955.633
-7737.837 -6823.216
383.477 1177.402
1054.801 -8191.076
6738.608 8056.611
6597.782 7310.181
-8384.704 564.551
-224.623 6930.586
-5032.293 -5484.692
-1399.616 -2059.360
3749.793 1860.157
-7520.076 1246.055
-7787.237 7303.031
219.582 9805.235
-5751.187 1309.110
9482.362 1283.526
8258.803 -2079.248
-5697.340 1046.715
-386.121 -4276.142
-6428.325 4926.075
-8201.603 240.336
5438.179 2957.346
-4865.997 9471.504
-7470.735 -6064.328
-6424.551 -4668.260
927.847 -2413.674
-7518.284 -7929.327
7807.348 -1223.057
-6639.778 5675.774
-3926.604 -6362.000
2843.727 -7598.373
-6192.887 -5483.160
-764.528 -7244.105
6242.435 677.893
-3322.409 1838.557
-4051.634 -4953.952
7354.603 -3184.312
6611.648 -6035.253
2998.039 -2613.772
4410.416 -2102.221
-2165.494 3369.271
-3007.087 6977.059
1892.699 3126.099
-7806.125 -8770.209
-405.292 1268.727
-3949.257 -2081.426
9350.671 6114.406
-5590.076 -3037.208
2869.817 -5251.357
-8334.475 -3293.358
5940.423 6747.559
2488.455 1143.540
]]></test_input>
<test_output><![CDATA[The gopher cannot escape.
]]></test_output>
<test_input><![CDATA[0.000 6.000 0.000 -6.000
0.000 -1.999
0.000 1.999
0.000 -17.999
0.000 17.999
0.000 0.000
0.000 -6.000
]]></test_input>
<test_output><![CDATA[The gopher can escape through the hole at (0.000,17.999).
]]></test_output>
<test_input><![CDATA[0.000 6.000 0.000 -6.000
0.000 -2.001
0.000 2.001
0.000 -18.001
0.000 18.001
0.000 0.000
0.000 -6.000
]]></test_input>
<test_output><![CDATA[The gopher can escape through the hole at (0.000,2.001).
]]></test_output>
<test_input><![CDATA[0.000 6.000 0.000 -6.000
0.000 -1.999
0.000 1.999
0.000 -18.001
0.000 18.001
0.000 0.000
0.000 -6.000
]]></test_input>
<test_output><![CDATA[The gopher cannot escape.
]]></test_output>
<test_input><![CDATA[0.000 0.000 12.000 -3.000
3.999 3.000
]]></test_input>
<test_output><![CDATA[The gopher can escape through the hole at (3.999,3.000).
]]></test_output>
<test_input><![CDATA[0.000 0.000 12.000 -3.000
4.001 3.000
]]></test_input>
<test_output><![CDATA[The gopher cannot escape.
]]></test_output>
<test_input><![CDATA[0.000 0.000 9999.999 9999.999
-9999.998 -9999.998
]]></test_input>
<test_output><![CDATA[The gopher can escape through the hole at (-9999.998,-9999.998).
]]></test_output>
<test_input><![CDATA[0.001 0.001 9999.999 9999.999
-9999.998 -9999.998
]]></test_input>
<test_output><![CDATA[The gopher cannot escape.
]]></test_output>
<hint><![CDATA[<h3>Sample Input 2</h3>
<pre>
2.000 2.000 1.000 1.000
1.500 1.500
2.500 2.500
</pre>
<h3>Output for Sample Input 2</h3>
<pre>
The gopher can escape through the hole at (2.500,2.500).
</pre>]]></hint>
<source><![CDATA[]]></source>
<solution language="C"><![CDATA[#include <math.h>

main() {
	double dx, dy, gx, gy;
	double x, y;
	double dd, gd;

	scanf( " %lf %lf %lf %lf", &gx, &gy, &dx, &dy );
	while( scanf( " %lf %lf", &x, &y ) == 2 ) {
		dd = hypot( dx-x, dy-y );
		gd = hypot( gx-x, gy-y );
		if( gd * 2.0 < dd ) {
			printf( "The gopher can escape through the hole at "
					"(%.3f,%.3f).\n", x, y );
			return;
		}
	}
	printf( "The gopher cannot escape.\n" );
}
]]></solution>
<![CDATA[]]>
</item>
<item>
<title><![CDATA[Problem E: Gas Station Numbers]]></title>
<time_limit><![CDATA[1]]></time_limit>
<memory_limit><![CDATA[128]]></memory_limit>
<description><![CDATA[<p></p>
<p>
<title></title>
</p>
<h2>Problem E: Gas Station Numbers</h2>
<p>Many gas stations use plastic digits on an illuminated sign to indicate prices.  When there is an insufficient quantity of a particular digit, the attendant may substitute another one upside down.</p>
<p>The digit &quot;6&quot; looks much like &quot;9&quot; upside down.  The digits &quot;0&quot;, &quot;1&quot;  and &quot;8&quot; look  like themselves.  The digit &quot;2&quot; looks a bit like a &quot;5&quot; upside down (well, at least enough so that gas stations use it).</p>
<p>Due to rapidly increasing prices, a certain gas station has used all of its available digits to display the current price.  Fortunately, this shortage of digits need not prevent the attendant from raising  prices.  She can simply rearrange the digits, possibly reversing some of them as described above.</p>
<p>Your job is to compute, given the current price of gas, the next highest price that can be displayed using exactly the same digits. The input consists of several lines, each containing between 2 and 30 digits (to account for future prices) and a decimal point immediately before the last digit. There are no useless leading zeroes; that is, there is a leading zero only if the price is less than 1. You are to compute the next highest price that can be displayed using the same digits and the same format rules.  An input line containing a decimal  point alone terminates the input.  If the price  cannot be raised,  print &quot;The price cannot be raised.&quot;</p>]]></description>
<input><![CDATA[]]></input> 
<output><![CDATA[]]></output>
<sample_input><![CDATA[65.2
76.7
77.7
.
]]></sample_input>
<sample_output><![CDATA[65.5
77.6
The price cannot be raised.
]]></sample_output>
<test_input><![CDATA[65.2
76.7
77.7
.
]]></test_input>
<test_output><![CDATA[65.5
77.6
The price cannot be raised.
]]></test_output>
<test_input><![CDATA[660.9
938.2
938.5
953.8
958.3
982.3
983.2
983.5
985.3
11111111111111111111111111111.1
22222222222222222222222222222.2
33333333333333333333333333333.3
44444444444444444444444444444.4
55555555555555555555555555555.5
66666666666666666666666666666.6
77777777777777777777777777777.7
88888888888888888888888888888.8
99999999999999999999999999999.9
10000000000000000000000000000.0
18888888888888888888888888888.8
21111111111111111111111111111.1
34111111111111111111111111111.1
34111111111111111112111111111.1
34111111111111111113111111311.1
34111110111110111100111111011.0
19999888777775555544433333311.1
29999888777775555544433333311.1
49999888777775555544433333311.1
4.5
54.3
293.2
4928.5
39851.2
583209.5
3932501.3
54219853.5
932038329.2
4912045865.1
24393823945.9
214958323233.2
2438451259821.3
21398402140423.2
213098457582499.2
2194842185292494.9
21398582102392321.1
999488842887389999.9
3291283824758243956.3
29145290512061820155.3
214920139568329534534.4
1209125098235098325235.2
12094312450932153250923.7
120492140593125098532555.3
4986098097833209841244853.6
21409863127098646230984343.9
231095763098472310421867384.8
5109243814209824213748593956.7
48291509356084703986430958435.5
.
]]></test_input>
<test_output><![CDATA[666.0
938.5
953.8
958.3
982.3
983.2
983.5
985.3
The price cannot be raised.
The price cannot be raised.
22222222222222222222222222222.5
The price cannot be raised.
The price cannot be raised.
The price cannot be raised.
66666666666666666666666666666.9
The price cannot be raised.
The price cannot be raised.
The price cannot be raised.
The price cannot be raised.
81888888888888888888888888888.8
51111111111111111111111111111.1
41111111111111111111111111111.3
34111111111111111115111111111.1
34111111111111111113111113111.1
34111110111110111100111111100.1
21111222233333344466667777788.8
31112222223333344466667777788.8
51112222333333444466667777788.8
5.4
The price cannot be raised.
293.5
4952.8
39851.5
583220.6
3932503.1
54219855.3
932038329.5
4912045891.2
24393823946.2
214958323233.5
2438451259823.1
21398402140423.5
213098457582499.5
2194842185292496.4
21398582102392351.1
999488842887396666.8
3291283824758243959.3
29145290512061820212.3
214920139568329534543.4
1209125098235098325235.5
12094312450932153250927.3
120492140593125098533222.2
4986098097833209841244853.9
21409863127098646230984346.3
231095763098472310421867388.4
5109243814209824213748593957.6
48291509356084703986430958452.3
]]></test_output>
<test_input><![CDATA[0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
2.0
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
3.0
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
4.0
4.1
4.2
4.3
4.4
4.5
4.6
4.7
4.8
4.9
5.0
5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8
5.9
6.0
6.1
6.2
6.3
6.4
6.5
6.6
6.7
6.8
6.9
7.0
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
7.9
8.0
8.1
8.2
8.3
8.4
8.5
8.6
8.7
8.8
8.9
9.0
9.1
9.2
9.3
9.4
9.5
9.6
9.7
9.8
9.9
10.0
10.1
10.2
10.3
10.4
10.5
10.6
10.7
10.8
10.9
11.0
11.1
11.2
11.3
11.4
11.5
11.6
11.7
11.8
11.9
12.0
12.1
12.2
12.3
12.4
12.5
12.6
12.7
12.8
12.9
13.0
13.1
13.2
13.3
13.4
13.5
13.6
13.7
13.8
13.9
14.0
14.1
14.2
14.3
14.4
14.5
14.6
14.7
14.8
14.9
15.0
15.1
15.2
15.3
15.4
15.5
15.6
15.7
15.8
15.9
16.0
16.1
16.2
16.3
16.4
16.5
16.6
16.7
16.8
16.9
17.0
17.1
17.2
17.3
17.4
17.5
17.6
17.7
17.8
17.9
18.0
18.1
18.2
18.3
18.4
18.5
18.6
18.7
18.8
18.9
19.0
19.1
19.2
19.3
19.4
19.5
19.6
19.7
19.8
19.9
20.0
20.1
20.2
20.3
20.4
20.5
20.6
20.7
20.8
20.9
21.0
21.1
21.2
21.3
21.4
21.5
21.6
21.7
21.8
21.9
22.0
22.1
22.2
22.3
22.4
22.5
22.6
22.7
22.8
22.9
23.0
23.1
23.2
23.3
23.4
23.5
23.6
23.7
23.8
23.9
24.0
24.1
24.2
24.3
24.4
24.5
24.6
24.7
24.8
24.9
.
]]></test_input>
<test_output><![CDATA[The price cannot be raised.
1.0
0.5
3.0
4.0
2.0
0.9
7.0
8.0
6.0
The price cannot be raised.
The price cannot be raised.
1.5
3.1
4.1
2.1
1.9
7.1
8.1
6.1
5.0
5.1
2.5
3.2
4.2
5.2
2.9
5.7
5.8
5.6
The price cannot be raised.
The price cannot be raised.
3.5
The price cannot be raised.
4.3
5.3
3.9
7.3
8.3
6.3
The price cannot be raised.
The price cannot be raised.
4.5
The price cannot be raised.
The price cannot be raised.
5.4
4.9
7.4
8.4
6.4
The price cannot be raised.
The price cannot be raised.
5.5
The price cannot be raised.
The price cannot be raised.
The price cannot be raised.
5.9
7.2
8.2
6.2
9.0
9.1
6.5
9.3
9.4
9.2
6.9
7.6
8.6
9.6
The price cannot be raised.
The price cannot be raised.
7.5
The price cannot be raised.
The price cannot be raised.
The price cannot be raised.
7.9
The price cannot be raised.
8.7
9.7
The price cannot be raised.
The price cannot be raised.
8.5
The price cannot be raised.
The price cannot be raised.
The price cannot be raised.
8.9
The price cannot be raised.
The price cannot be raised.
9.8
The price cannot be raised.
The price cannot be raised.
9.5
The price cannot be raised.
The price cannot be raised.
The price cannot be raised.
9.9
The price cannot be raised.
The price cannot be raised.
The price cannot be raised.
The price cannot be raised.
11.0
10.5
13.0
14.0
12.0
10.9
17.0
18.0
16.0
The price cannot be raised.
The price cannot be raised.
11.5
13.1
14.1
12.1
11.9
17.1
18.1
16.1
15.0
15.1
12.5
13.2
14.2
15.2
12.9
15.7
15.8
15.6
30.1
31.1
13.5
31.3
14.3
15.3
13.9
17.3
18.3
16.3
40.1
41.1
14.5
31.4
41.4
15.4
14.9
17.4
18.4
16.4
20.1
21.1
15.5
21.3
21.4
21.2
15.9
17.2
18.2
16.2
19.0
19.1
16.5
19.3
19.4
19.2
16.9
17.6
18.6
19.6
70.1
71.1
17.5
31.7
41.7
21.7
17.9
71.7
18.7
19.7
80.1
81.1
18.5
31.8
41.8
21.8
18.9
71.8
81.8
19.8
60.1
61.1
19.5
31.6
41.6
21.6
19.9
61.7
61.8
61.6
50.0
21.0
20.5
23.0
24.0
22.0
20.9
27.0
28.0
26.0
50.1
51.1
21.5
23.1
24.1
22.1
21.9
27.1
28.1
26.1
25.0
25.1
22.5
23.2
24.2
25.2
22.9
25.7
25.8
25.6
30.2
31.2
23.5
32.3
24.3
25.3
23.9
27.3
28.3
26.3
40.2
41.2
24.5
32.4
42.4
25.4
24.9
27.4
28.4
26.4
]]></test_output>
<hint><![CDATA[]]></hint>
<source><![CDATA[]]></source>
<solution language="C"><![CDATA[char dig[50];

int ccmp( void *a, void *b ) {
	return *((char*)a)-(int)*((char*)b);
}

main() {
	int i, j, k, x, y, z, n;

	for(;;) {
		scanf( " %s", dig );
		if( !dig[1] ) break;
		n = strlen(dig);
		dig[n-2] = dig[n-1];
		dig[n-1] = 0;
		n--;
		for( i = n-1; i >= 0; i-- ) {
			for( j = dig[i]+1; j <= '9'; j++ ) {
				for( k = i; dig[k]; k++ ) {
					if( dig[k] == j ||
						dig[k] == '2' && j == '5' ||
						dig[k] == '5' && j == '2' ||
						dig[k] == '6' && j == '9' ||
						dig[k] == '9' && j == '6' ) {
						dig[k] = dig[i];
						dig[i] = j;
						goto found;
					}
				}
			}
		}
found:
		if( i < 0 ) {
			printf( "The price cannot be raised.\n" );
			continue;
		}
		for( k = i+1; dig[k]; k++ ) {
			if( dig[k] == '5' ) dig[k] = '2';
			if( dig[k] == '9' ) dig[k] = '6';
		}
		qsort( &dig[i+1], n-i-1, sizeof(char), ccmp );
		dig[n] = dig[n-1];
		dig[n-1] = '.';
		printf( "%s\n", dig );
	}
}
]]></solution>
<![CDATA[]]>
</item>
</fps>