-
Notifications
You must be signed in to change notification settings - Fork 0
/
input1.txt
2269 lines (2004 loc) · 10.3 KB
/
input1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
3264
4043
2537
3319
2485
3218
5611
1753
7232
3265
1751
2233
10589
5121
11465
9307
1347
9392
12037
6025
4328
3982
4487
1139
1440
2970
3390
1844
5400
1651
4109
3584
2926
4297
8921
13298
12300
5607
3304
5037
1729
10057
3538
3984
3451
5638
2880
1008
2940
6245
3865
5060
2878
2460
6557
1584
6391
3479
2264
2683
3680
1183
5121
6499
5543
1192
4818
1337
8128
8966
7601
7749
5017
3251
1074
6095
11824
17144
5396
15416
6244
6589
4953
4250
1422
1252
4555
5240
4244
4088
27353
6629
7231
7673
7029
6994
6347
6381
1503
2145
1114
6068
3473
3935
4054
3558
3818
5370
4807
2703
5407
2532
6833
1675
20016
7587
13088
3477
3118
5815
3551
2316
4254
4814
5726
5324
6096
3596
3374
3975
4152
1946
4549
3639
6338
6882
3514
6488
2192
4522
4370
3637
3500
2964
1850
6900
5145
13864
8145
4579
1984
1589
9279
10987
5213
3997
1978
5061
2710
2695
4713
5930
3005
6189
2619
6897
5032
2374
1738
6817
1993
13747
8574
13341
3869
1810
3501
1366
4240
2005
6102
6069
4135
6667
1239
2799
1900
4711
1330
9725
5965
8271
11932
5319
6078
1652
1958
1992
1997
2824
6542
1998
2713
6806
4993
6569
9262
3814
11917
4812
1884
3686
10993
8845
6032
9899
10384
3834
2275
3559
2268
1446
2265
5503
5056
2547
7394
2514
8105
4630
9392
2377
10479
3452
9175
13773
6090
1467
2747
9310
2839
9392
10752
5771
8193
4139
4728
5180
5884
9236
5721
10884
10268
3255
2377
11574
4498
17228
7306
6465
69149
6323
3435
2801
6385
4192
1593
4373
6654
7190
6142
10960
3399
12251
8249
8210
3571
2299
4349
1476
5703
1497
4008
1435
5043
2203
4252
2407
5891
1419
1588
4266
2424
1846
3265
5720
5396
2013
2664
4712
1040
3186
1693
1537
3226
15568
16153
15408
9417
15524
18017
4247
1764
18920
14176
18583
4896
1029
14517
10183
9726
5242
4156
2314
4018
3542
1619
5349
2524
2620
4675
6491
5315
3959
5215
2638
5346
6209
1466
2854
6677
2242
8476
5236
3827
4489
7735
5656
11568
12323
8560
7046
5453
4141
1356
8940
8338
3749
7297
10693
7191
8803
10504
2033
6374
6820
10316
5869
12102
12675
7688
10906
12593
9028
8234
4453
2117
7328
9404
6664
7206
6357
3018
5515
6479
1522
4582
5881
4019
1288
5288
4007
5816
2354
5648
5405
4120
3890
11718
5713
6986
10362
5529
8243
2097
10194
3023
11120
9524
2052
12552
14406
3981
9703
10329
7256
9424
4701
5694
1262
3521
4194
3530
7472
1773
1787
6229
6608
5905
3065
3366
15198
25328
3805
4163
4192
4013
2693
3029
4559
5243
3088
4804
1245
1800
4999
3162
6114
3808
3672
6397
3747
4312
5015
4237
5326
3961
1382
1380
5517
1140
3360
6936
3880
4242
7431
5597
6195
5305
1051
1015
1866
3179
17144
2423
8330
5153
2301
4944
1566
5647
6726
6248
1537
6951
1272
1177
2013
7595
9953
19751
14200
2576
1684
6463
6643
2911
1650
2492
5726
4830
6591
4477
6691
6390
5209
5099
1115
5456
4573
5954
4389
1703
1595
1348
5814
4031
3086
4039
5445
3506
3956
1504
5435
5660
6882
1962
4891
2596
3838
7206
5554
10423
4792
16000
12857
5040
7410
2589
6769
8168
7526
4349
5160
12452
13889
7499
1985
12491
1033
9259
6288
5566
6134
11010
7512
5196
4644
1825
5564
5759
7134
5589
5387
1328
2314
4948
7354
6875
2105
3444
6997
3962
1141
2000
7561
6447
5629
7035
1499
7160
5201
3206
2719
5177
6566
3455
3304
1648
3273
6142
3697
2247
6537
5579
7126
2674
1842
1482
5504
1105
5669
7401
8229
6261
4378
5548
2360
5703
7650
2086
23865
10240
2321
4221
8067
1395
1397
5776
5136
6820
1428
3375
6117
4467
2505
4307
5626
8867
4709
5951
3811
4998
4460
6243
1790
2172
5694
6245
3273
2664
4813
5669
5803
4856
2508
6301
4454
2430
4868
4883
6211
1749
2998
3450
2414
5617
9135
8583
7582
8349
7609
4434
8362
3472
44093
7933
3349
6041
3238
5036
9100
4252
14356
24185
11887
23333
16694
6324
1438
5180
5329
6798
4806
5285
4757
4599
3897
2308
5014
1455
4268
1903
1436
4563
5135
4876
6561
4776
3530
3080
5724
5520
3419
2363
4474
6069
2504
6749
4094
5991
8045
1302
5649
20607
13990
7588
9960
8919
11254
6295
3856
10295
1161
3773
1559
1198
5967
5237
3369
4437
7698
2756
2639
43493
18577
2593
16336
13785
6567
2409
8001
4173
11587
8238
3023
5146
10077
2630
4827
6199
3701
3840
3068
3272
5212
3674
5352
3129
4242
2711
3064
4987
5362
4858
3180
6090
2265
4791
14702
1034
12170
8780
14933
3727
4239
7116
1120
7853
7862
5512
2309
3094
6359
9172
12494
8382
8629
11921
9629
11535
7792
9996
6887
10548
3429
2373
6208
5406
5440
2164
3233
1512
1556
5476
3462
4261
3563
2409
6236
2568
4638
4775
1131
27798
30212
5409
4676
5445
2119
3557
1135
6724
2779
1324
2157
4456
6329
2155
4084
1379
7443
12904
7167
12163
9588
11186
9015
35132
18974
3418
12568
1418
7691
12369
1144
6141
2523
5150
2276
6036
1492
5069
5782
2999
4505
2347
1234
5376
3356
2489
1456
30181
3189
2572
5145
4350
6403
1285
5678
3796
3792
2334
2710
3536
5580
2991
7718
1798
5300
11608
3376
11658
58468