40 780 U
39 1 0 0
2 999620
3 999620
4 999080
5 999280
6 1000000
7 999820
8 999820
9 999980
10 999980
11 999980
12 999980
13 999280
14 999920
15 999680
16 1000000
17 999680
18 1000000
19 999280
20 999920
21 999280
22 1000000
23 999920
24 999680
25 999920
26 999500
27 999500
28 1000000
29 999500
30 999920
31 1000000
32 999500
33 999980
34 999980
35 999980
36 999980
37 999980
38 999980
39 999980
40 999980
39 2 0 0
1 999620
3 999800
4 999620
5 999820
6 999820
7 1000000
8 1000000
9 999680
10 999680
11 999680
12 999680
13 999820
14 999980
15 999980
16 999820
17 999980
18 999820
19 999820
20 999980
21 999820
22 999820
23 999980
24 999980
25 999980
26 999920
27 999920
28 999820
29 999920
30 999980
31 999820
32 999920
33 999680
34 999680
35 999680
36 999680
37 999680
38 999680
39 999680
40 999680
39 3 0 0
1 999620
2 999800
4 999620
5 999820
6 999820
7 1000000
8 1000000
9 999680
10 999680
11 999680
12 999680
13 999820
14 999980
15 999980
16 999820
17 999980
18 999820
19 999820
20 999980
21 999820
22 999820
23 999980
24 999980
25 999980
26 999920
27 999920
28 999820
29 999920
30 999980
31 999820
32 999920
33 999680
34 999680
35 999680
36 999680
37 999680
38 999680
39 999680
40 999680
39 4 0 0
1 999080
2 999620
3 999620
5 1000000
6 999280
7 999820
8 999820
9 999020
10 999020
11 999020
12 999020
13 1000000
14 999680
15 999920
16 999280
17 999920
18 999280
19 1000000
20 999680
21 1000000
22 999280
23 999680
24 999920
25 999680
26 999980
27 999980
28 999280
29 999980
30 999680
31 999280
32 999980
33 999020
34 999020
35 999020
36 999020
37 999020
38 999020
39 999020
40 999020
39 5 0 0
1 999280
2 999820
3 999820
4 1000000
6 999080
7 999620
8 999620
9 999020
10 999020
11 999020
12 999020
13 1000000
14 999680
15 999920
16 999280
17 999920
18 999280
19 1000000
20 999680
21 1000000
22 999280
23 999680
24 999920
25 999680
26 999980
27 999980
28 999280
29 999980
30 999680
31 999280
32 999980
33 999020
34 999020
35 999020
36 999020
37 999020
38 999020
39 999020
40 999020
39 6 0 0
1 1000000
2 999820
3 999820
4 999280
5 999080
7 999620
8 999620
9 999980
10 999980
11 999980
12 999980
13 999280
14 999920
15 999680
16 1000000
17 999680
18 1000000
19 999280
20 999920
21 999280
22 1000000
23 999920
24 999680
25 999920
26 999500
27 999500
28 1000000
29 999500
30 999920
31 1000000
32 999500
33 999980
34 999980
35 999980
36 999980
37 999980
38 999980
39 999980
40 999980
39 7 0 0
1 999820
2 1000000
3 1000000
4 999820
5 999620
6 999620
8 999800
9 999680
10 999680
11 999680
12 999680
13 999820
14 999980
15 999980
16 999820
17 999980
18 999820
19 999820
20 999980
21 999820
22 999820
23 999980
24 999980
25 999980
26 999920
27 999920
28 999820
29 999920
30 999980
31 999820
32 999920
33 999680
34 999680
35 999680
36 999680
37 999680
38 999680
39 999680
40 999680
39 8 0 0
1 999820
2 1000000
3 1000000
4 999820
5 999620
6 999620
7 999800
9 999680
10 999680
11 999680
12 999680
13 999820
14 999980
15 999980
16 999820
17 999980
18 999820
19 999820
20 999980
21 999820
22 999820
23 999980
24 999980
25 999980
26 999920
27 999920
28 999820
29 999920
30 999980
31 999820
32 999920
33 999680
34 999680
35 999680
36 999680
37 999680
38 999680
39 999680
40 999680
39 9 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
10 999800
11 999800
12 999800
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
33 1000000
34 1000000
35 1000000
36 1000000
37 1000000
38 1000000
39 1000000
40 1000000
39 10 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
9 999800
11 999800
12 999800
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
33 1000000
34 1000000
35 1000000
36 1000000
37 1000000
38 1000000
39 1000000
40 1000000
39 11 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
9 999800
10 999800
12 999800
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
33 1000000
34 1000000
35 1000000
36 1000000
37 1000000
38 1000000
39 1000000
40 1000000
39 12 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
9 999800
10 999800
11 999800
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
33 1000000
34 1000000
35 1000000
36 1000000
37 1000000
38 1000000
39 1000000
40 1000000
39 13 0 0
1 999280
2 999820
3 999820
4 1000000
5 1000000
6 999280
7 999820
8 999820
9 999020
10 999020
11 999020
12 999020
14 999480
15 999720
16 999080
17 999920
18 999280
19 1000000
20 999680
21 1000000
22 999280
23 999680
24 999920
25 999680
26 999980
27 999980
28 999280
29 999980
30 999680
31 999280
32 999980
33 999020
34 999020
35 999020
36 999020
37 999020
38 999020
39 999020
40 999020
39 14 0 0
1 999920
2 999980
3 999980
4 999680
5 999680
6 999920
7 999980
8 999980
9 999820
10 999820
11 999820
12 999820
13 999480
15 999720
16 999720
17 999920
18 999920
19 999680
20 1000000
21 999680
22 999920
23 1000000
24 999920
25 1000000
26 999820
27 999820
28 999920
29 999820
30 1000000
31 999920
32 999820
33 999820
34 999820
35 999820
36 999820
37 999820
38 999820
39 999820
40 999820
39 15 0 0
1 999680
2 999980
3 999980
4 999920
5 999920
6 999680
7 999980
8 999980
9 999500
10 999500
11 999500
12 999500
13 999720
14 999720
16 999480
17 1000000
18 999680
19 999920
20 999920
21 999920
22 999680
23 999920
24 1000000
25 999920
26 999980
27 999980
28 999680
29 999980
30 999920
31 999680
32 999980
33 999500
34 999500
35 999500
36 999500
37 999500
38 999500
39 999500
40 999500
39 16 0 0
1 1000000
2 999820
3 999820
4 999280
5 999280
6 1000000
7 999820
8 999820
9 999980
10 999980
11 999980
12 999980
13 999080
14 999720
15 999480
17 999680
18 1000000
19 999280
20 999920
21 999280
22 1000000
23 999920
24 999680
25 999920
26 999500
27 999500
28 1000000
29 999500
30 999920
31 1000000
32 999500
33 999980
34 999980
35 999980
36 999980
37 999980
38 999980
39 999980
40 999980
39 17 0 0
1 999680
2 999980
3 999980
4 999920
5 999920
6 999680
7 999980
8 999980
9 999500
10 999500
11 999500
12 999500
13 999920
14 999920
15 1000000
16 999680
18 999480
19 999720
20 999720
21 999920
22 999680
23 999920
24 1000000
25 999920
26 999980
27 999980
28 999680
29 999980
30 999920
31 999680
32 999980
33 999500
34 999500
35 999500
36 999500
37 999500
38 999500
39 999500
40 999500
39 18 0 0
1 1000000
2 999820
3 999820
4 999280
5 999280
6 1000000
7 999820
8 999820
9 999980
10 999980
11 999980
12 999980
13 999280
14 999920
15 999680
16 1000000
17 999480
19 999080
20 999720
21 999280
22 1000000
23 999920
24 999680
25 999920
26 999500
27 999500
28 1000000
29 999500
30 999920
31 1000000
32 999500
33 999980
34 999980
35 999980
36 999980
37 999980
38 999980
39 999980
40 999980
39 19 0 0
1 999280
2 999820
3 999820
4 1000000
5 1000000
6 999280
7 999820
8 999820
9 999020
10 999020
11 999020
12 999020
13 1000000
14 999680
15 999920
16 999280
17 999720
18 999080
20 999480
21 1000000
22 999280
23 999680
24 999920
25 999680
26 999980
27 999980
28 999280
29 999980
30 999680
31 999280
32 999980
33 999020
34 999020
35 999020
36 999020
37 999020
38 999020
39 999020
40 999020
39 20 0 0
1 999920
2 999980
3 999980
4 999680
5 999680
6 999920
7 999980
8 999980
9 999820
10 999820
11 999820
12 999820
13 999680
14 1000000
15 999920
16 999920
17 999720
18 999720
19 999480
21 999680
22 999920
23 1000000
24 999920
25 1000000
26 999820
27 999820
28 999920
29 999820
30 1000000
31 999920
32 999820
33 999820
34 999820
35 999820
36 999820
37 999820
38 999820
39 999820
40 999820
39 21 0 0
1 999280
2 999820
3 999820
4 1000000
5 1000000
6 999280
7 999820
8 999820
9 999020
10 999020
11 999020
12 999020
13 1000000
14 999680
15 999920
16 999280
17 999920
18 999280
19 1000000
20 999680
22 999080
23 999480
24 999720
25 999680
26 999980
27 999980
28 999280
29 999980
30 999680
31 999280
32 999980
33 999020
34 999020
35 999020
36 999020
37 999020
38 999020
39 999020
40 999020
39 22 0 0
1 1000000
2 999820
3 999820
4 999280
5 999280
6 1000000
7 999820
8 999820
9 999980
10 999980
11 999980
12 999980
13 999280
14 999920
15 999680
16 1000000
17 999680
18 1000000
19 999280
20 999920
21 999080
23 999720
24 999480
25 999920
26 999500
27 999500
28 1000000
29 999500
30 999920
31 1000000
32 999500
33 999980
34 999980
35 999980
36 999980
37 999980
38 999980
39 999980
40 999980
39 23 0 0
1 999920
2 999980
3 999980
4 999680
5 999680
6 999920
7 999980
8 999980
9 999820
10 999820
11 999820
12 999820
13 999680
14 1000000
15 999920
16 999920
17 999920
18 999920
19 999680
20 1000000
21 999480
22 999720
24 999720
25 1000000
26 999820
27 999820
28 999920
29 999820
30 1000000
31 999920
32 999820
33 999820
34 999820
35 999820
36 999820
37 999820
38 999820
39 999820
40 999820
39 24 0 0
1 999680
2 999980
3 999980
4 999920
5 999920
6 999680
7 999980
8 999980
9 999500
10 999500
11 999500
12 999500
13 999920
14 999920
15 1000000
16 999680
17 1000000
18 999680
19 999920
20 999920
21 999720
22 999480
23 999720
25 999920
26 999980
27 999980
28 999680
29 999980
30 999920
31 999680
32 999980
33 999500
34 999500
35 999500
36 999500
37 999500
38 999500
39 999500
40 999500
39 25 0 0
1 999920
2 999980
3 999980
4 999680
5 999680
6 999920
7 999980
8 999980
9 999820
10 999820
11 999820
12 999820
13 999680
14 1000000
15 999920
16 999920
17 999920
18 999920
19 999680
20 1000000
21 999680
22 999920
23 1000000
24 999920
26 999620
27 999620
28 999720
29 999820
30 1000000
31 999920
32 999820
33 999820
34 999820
35 999820
36 999820
37 999820
38 999820
39 999820
40 999820
39 26 0 0
1 999500
2 999920
3 999920
4 999980
5 999980
6 999500
7 999920
8 999920
9 999280
10 999280
11 999280
12 999280
13 999980
14 999820
15 999980
16 999500
17 999980
18 999500
19 999980
20 999820
21 999980
22 999500
23 999820
24 999980
25 999620
27 999800
28 999300
29 1000000
30 999820
31 999500
32 1000000
33 999280
34 999280
35 999280
36 999280
37 999280
38 999280
39 999280
40 999280
39 27 0 0
1 999500
2 999920
3 999920
4 999980
5 999980
6 999500
7 999920
8 999920
9 999280
10 999280
11 999280
12 999280
13 999980
14 999820
15 999980
16 999500
17 999980
18 999500
19 999980
20 999820
21 999980
22 999500
23 999820
24 999980
25 999620
26 999800
28 999300
29 1000000
30 999820
31 999500
32 1000000
33 999280
34 999280
35 999280
36 999280
37 999280
38 999280
39 999280
40 999280
39 28 0 0
1 1000000
2 999820
3 999820
4 999280
5 999280
6 1000000
7 999820
8 999820
9 999980
10 999980
11 999980
12 999980
13 999280
14 999920
15 999680
16 1000000
17 999680
18 1000000
19 999280
20 999920
21 999280
22 1000000
23 999920
24 999680
25 999720
26 999300
27 999300
29 999500
30 999920
31 1000000
32 999500
33 999980
34 999980
35 999980
36 999980
37 999980
38 999980
39 999980
40 999980
39 29 0 0
1 999500
2 999920
3 999920
4 999980
5 999980
6 999500
7 999920
8 999920
9 999280
10 999280
11 999280
12 999280
13 999980
14 999820
15 999980
16 999500
17 999980
18 999500
19 999980
20 999820
21 999980
22 999500
23 999820
24 999980
25 999820
26 1000000
27 1000000
28 999500
30 999620
31 999300
32 999800
33 999280
34 999280
35 999280
36 999280
37 999280
38 999280
39 999280
40 999280
39 30 0 0
1 999920
2 999980
3 999980
4 999680
5 999680
6 999920
7 999980
8 999980
9 999820
10 999820
11 999820
12 999820
13 999680
14 1000000
15 999920
16 999920
17 999920
18 999920
19 999680
20 1000000
21 999680
22 999920
23 1000000
24 999920
25 1000000
26 999820
27 999820
28 999920
29 999620
31 999720
32 999620
33 999820
34 999820
35 999820
36 999820
37 999820
38 999820
39 999820
40 999820
39 31 0 0
1 1000000
2 999820
3 999820
4 999280
5 999280
6 1000000
7 999820
8 999820
9 999980
10 999980
11 999980
12 999980
13 999280
14 999920
15 999680
16 1000000
17 999680
18 1000000
19 999280
20 999920
21 999280
22 1000000
23 999920
24 999680
25 999920
26 999500
27 999500
28 1000000
29 999300
30 999720
32 999300
33 999980
34 999980
35 999980
36 999980
37 999980
38 999980
39 999980
40 999980
39 32 0 0
1 999500
2 999920
3 999920
4 999980
5 999980
6 999500
7 999920
8 999920
9 999280
10 999280
11 999280
12 999280
13 999980
14 999820
15 999980
16 999500
17 999980
18 999500
19 999980
20 999820
21 999980
22 999500
23 999820
24 999980
25 999820
26 1000000
27 1000000
28 999500
29 999800
30 999620
31 999300
33 999280
34 999280
35 999280
36 999280
37 999280
38 999280
39 999280
40 999280
39 33 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
9 1000000
10 1000000
11 1000000
12 1000000
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
34 999800
35 999800
36 999800
37 1000000
38 1000000
39 1000000
40 1000000
39 34 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
9 1000000
10 1000000
11 1000000
12 1000000
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
33 999800
35 999800
36 999800
37 1000000
38 1000000
39 1000000
40 1000000
39 35 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
9 1000000
10 1000000
11 1000000
12 1000000
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
33 999800
34 999800
36 999800
37 1000000
38 1000000
39 1000000
40 1000000
39 36 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
9 1000000
10 1000000
11 1000000
12 1000000
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
33 999800
34 999800
35 999800
37 1000000
38 1000000
39 1000000
40 1000000
39 37 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
9 1000000
10 1000000
11 1000000
12 1000000
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
33 1000000
34 1000000
35 1000000
36 1000000
38 999800
39 999800
40 999800
39 38 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
9 1000000
10 1000000
11 1000000
12 1000000
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
33 1000000
34 1000000
35 1000000
36 1000000
37 999800
39 999800
40 999800
39 39 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
9 1000000
10 1000000
11 1000000
12 1000000
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
33 1000000
34 1000000
35 1000000
36 1000000
37 999800
38 999800
40 999800
39 40 0 0
1 999980
2 999680
3 999680
4 999020
5 999020
6 999980
7 999680
8 999680
9 1000000
10 1000000
11 1000000
12 1000000
13 999020
14 999820
15 999500
16 999980
17 999500
18 999980
19 999020
20 999820
21 999020
22 999980
23 999820
24 999500
25 999820
26 999280
27 999280
28 999980
29 999280
30 999820
31 999980
32 999280
33 1000000
34 1000000
35 1000000
36 1000000
37 999800
38 999800
39 999800
