Students love to celebrate their holidays. Especially if the holiday is the day of the end of exams!

Despite the fact that Igor K., unlike his groupmates, failed to pass a programming test, he decided to invite them to go to a cafe so that each of them could drink a bottle of... fresh cow milk. Having entered the cafe, the *m* friends found *n* different kinds of milk on the menu, that's why they ordered *n* bottles — one bottle of each kind. We know that the volume of milk in each bottle equals *w*.

When the bottles were brought in, they decided to pour all the milk evenly among the *m* cups, so that each got a cup. As a punishment for not passing the test Igor was appointed the person to pour the milk. He protested that he was afraid to mix something up and suggested to distribute the drink so that the milk from each bottle was in no more than two different cups. His friends agreed but they suddenly faced the following problem — and what is actually the way to do it?

Help them and write the program that will help to distribute the milk among the cups and drink it as quickly as possible!

Note that due to Igor K.'s perfectly accurate eye and unswerving hands, he can pour any fractional amount of milk from any bottle to any cup.
The only input data file contains three integers *n*, *w* and *m* (1 ≤ *n* ≤ 50, 100 ≤ *w* ≤ 1000, 2 ≤ *m* ≤ 50), where *n* stands for the number of ordered bottles, *w* stands for the volume of each of them and *m* stands for the number of friends in the company.
none
2 500 3
YES
1 333.333333
2 333.333333
2 166.666667 1 166.666667
4 100 5
YES
3 20.000000 4 60.000000
1 80.000000
4 40.000000 2 40.000000
3 80.000000
2 60.000000 1 20.000000
4 100 7
NO
5 500 2
YES
4 250.000000 5 500.000000 2 500.000000
3 500.000000 1 500.000000 4 250.000000
4 100 8
YES
3 50.000000
1 50.000000
2 50.000000
4 50.000000
1 50.000000
3 50.000000
2 50.000000
4 50.000000
1 1000 2
YES
1 500.000000
1 500.000000
2 500 4
YES
2 250.000000
2 250.000000
1 250.000000
1 250.000000
2 500 5
NO
9 1000 12
YES
3 750.000000
6 750.000000
7 250.000000 2 500.000000
5 750.000000
9 250.000000 2 500.000000
4 500.000000 8 250.000000
6 250.000000 1 500.000000
4 500.000000 5 250.000000
7 750.000000
8 750.000000
1 500.000000 3 250.000000
9 750.000000
20 1000 30
YES
5 666.666667
18 666.666667
19 666.666667
9 333.333333 18 333.333333
14 666.666667
1 666.666667
20 333.333333 8 333.333333
2 666.666667
1 333.333333 12 333.333333
12 666.666667
8 666.666667
16 666.666667
16 333.333333 5 333.333333
10 666.666667
20 666.666667
4 666.666667
9 666.666667
4 333.333333 7 333.333333
13 333.333333 2 333.333333
15 333.333333 14 333.333333
6 666.666667
19 333.333333 6 333.333333
7 666.666667
3 666.666667
11 333.333333 17 333.333333
15 666.666667
10 333....
50 1000 50
YES
50 1000.000000
46 1000.000000
15 1000.000000
32 1000.000000
11 1000.000000
24 1000.000000
12 1000.000000
16 1000.000000
1 1000.000000
36 1000.000000
40 1000.000000
25 1000.000000
2 1000.000000
44 1000.000000
33 1000.000000
31 1000.000000
38 1000.000000
47 1000.000000
30 1000.000000
34 1000.000000
19 1000.000000
5 1000.000000
4 1000.000000
42 1000.000000
49 1000.000000
35 1000.000000
27 1000.000000
43 1000.000000
22 1000.000000
8 1000.000000
28 1000.000000
37 1000.000000
...
50 1000 49
YES
1 81.632653 50 938.775510
46 816.326531 19 204.081633
15 142.857143 14 877.551020
32 857.142857 30 163.265306
11 306.122449 40 714.285714
24 714.285714 34 306.122449
6 571.428571 12 448.979592
29 938.775510 16 81.632653
28 102.040816 1 918.367347
36 326.530612 11 693.877551
26 734.693878 40 285.714286
25 102.040816 16 918.367347
10 40.816327 2 979.591837
44 224.489796 17 795.918367
33 755.102041 41 265.306122
8 510.204082 31 510.204082
15 857.142857 38 163.265306
33 244.897959 47 775....
49 1000 50
YES
40 280.000000 11 700.000000
19 220.000000 47 760.000000
13 20.000000 2 960.000000
30 180.000000 46 800.000000
15 860.000000 14 120.000000
35 480.000000 31 500.000000
17 200.000000 44 780.000000
30 820.000000 32 160.000000
3 380.000000 5 600.000000
3 620.000000 22 360.000000
12 440.000000 7 540.000000
40 720.000000 26 260.000000
10 940.000000 2 40.000000
1 100.000000 28 880.000000
23 460.000000 35 520.000000
32 840.000000 37 140.000000
16 80.000000 25 900.000000
20 40.000000 29 940.000...
40 1000 50
YES
12 800.000000
34 800.000000
35 800.000000
26 200.000000 4 600.000000
16 600.000000 30 200.000000
12 200.000000 7 600.000000
20 400.000000 23 400.000000
24 400.000000 39 400.000000
27 200.000000 38 600.000000
40 800.000000
1 200.000000 28 600.000000
18 200.000000 21 600.000000
25 800.000000
31 800.000000
2 600.000000 13 200.000000
18 800.000000
10 400.000000 2 400.000000
14 600.000000 17 200.000000
9 200.000000 20 600.000000
27 800.000000
15 200.000000 36 600.000000
36 400.000000 1...
48 1000 50
YES
20 40.000000 29 920.000000
24 400.000000 41 560.000000
6 200.000000 5 760.000000
42 720.000000 21 240.000000
40 480.000000 26 480.000000
44 600.000000 17 360.000000
3 280.000000 22 680.000000
1 800.000000 45 160.000000
41 440.000000 33 520.000000
25 160.000000 14 800.000000
7 120.000000 12 840.000000
34 360.000000 24 600.000000
22 320.000000 43 640.000000
23 80.000000 48 880.000000
31 40.000000 8 920.000000
31 960.000000
23 920.000000 35 40.000000
45 840.000000 10 120.000000
30 640.0...
45 1000 50
YES
15 700.000000 14 200.000000
14 800.000000 25 100.000000
12 900.000000
32 200.000000 37 700.000000
40 900.000000
5 700.000000 6 200.000000
8 200.000000 31 700.000000
13 100.000000 2 800.000000
1 500.000000 28 400.000000
41 500.000000 24 400.000000
42 900.000000
2 200.000000 10 700.000000
5 300.000000 3 600.000000
34 300.000000 24 600.000000
42 100.000000 27 800.000000
44 700.000000 4 200.000000
9 300.000000 20 600.000000
23 500.000000 20 400.000000
12 100.000000 6 800.000000
16 900.0...
30 1000 40
YES
7 250.000000 8 500.000000
11 250.000000 23 500.000000
14 500.000000 15 250.000000
18 500.000000 9 250.000000
27 500.000000 17 250.000000
13 750.000000
7 750.000000
3 750.000000
17 750.000000
3 250.000000 8 500.000000
6 500.000000 12 250.000000
24 750.000000
21 750.000000
29 750.000000
10 750.000000
1 500.000000 25 250.000000
28 250.000000 1 500.000000
27 500.000000 4 250.000000
19 500.000000 29 250.000000
19 500.000000 16 250.000000
4 750.000000
20 250.000000 23 500.000000
5 750....
20 1000 25
YES
16 400.000000 19 400.000000
13 800.000000
15 800.000000
9 600.000000 18 200.000000
7 800.000000
12 600.000000 1 200.000000
5 800.000000
2 400.000000 10 400.000000
12 400.000000 8 400.000000
8 600.000000 20 200.000000
20 800.000000
6 800.000000
6 200.000000 19 600.000000
10 600.000000 3 200.000000
16 600.000000 5 200.000000
3 800.000000
4 600.000000 7 200.000000
11 600.000000 17 200.000000
13 200.000000 2 600.000000
17 800.000000
14 400.000000 11 400.000000
15 200.000000 14 600.000...
21 1000 27
NO
21 1000 28
YES
2 500.000000 10 250.000000
16 250.000000 19 500.000000
4 750.000000
17 750.000000
1 500.000000 3 250.000000
15 750.000000
7 500.000000 4 250.000000
5 250.000000 20 500.000000
21 750.000000
12 750.000000
13 750.000000
5 750.000000
3 750.000000
6 750.000000
16 750.000000
7 500.000000 17 250.000000
8 750.000000
15 250.000000 14 500.000000
19 500.000000 6 250.000000
21 250.000000 18 500.000000
18 500.000000 9 250.000000
9 750.000000
1 500.000000 12 250.000000
10 750.000000
8 250.00...
21 1000 29
NO
22 1000 30
NO
3 356 14
NO
9 120 13
NO
1 301 20
NO
11 489 14
NO
6 218 16
NO
2 632 19
NO
14 157 19
NO
12 430 14
YES
9 122.857143 7 245.714286
1 122.857143 3 245.714286
9 307.142857 6 61.428571
4 307.142857 8 61.428571
10 245.714286 2 122.857143
1 307.142857 12 61.428571
4 122.857143 5 245.714286
7 184.285714 5 184.285714
10 184.285714 3 184.285714
8 368.571429
12 368.571429
11 368.571429
2 307.142857 11 61.428571
6 368.571429
16 980 19
NO
1 736 10
NO
4 650 19
NO
3 953 13
NO
10 524 8
YES
4 262.000000 5 393.000000
8 131.000000 6 524.000000
10 262.000000 3 393.000000
7 524.000000 5 131.000000
3 131.000000 1 524.000000
2 131.000000 9 524.000000
10 262.000000 2 393.000000
8 393.000000 4 262.000000
6 283 11
NO
5 825 16
NO
13 557 13
YES
5 557.000000
7 557.000000
6 557.000000
4 557.000000
3 557.000000
1 557.000000
10 557.000000
9 557.000000
8 557.000000
12 557.000000
11 557.000000
13 557.000000
2 557.000000
13 503 9
YES
6 223.555556 11 503.000000
5 335.333333 4 391.222222
2 223.555556 13 503.000000
9 447.111111 6 279.444444
12 391.222222 1 335.333333
4 111.777778 12 111.777778 8 503.000000
3 503.000000 10 55.888889 1 167.666667
2 279.444444 10 447.111111
9 55.888889 7 503.000000 5 167.666667
12 255 8
YES
11 255.000000 2 127.500000
4 127.500000 8 255.000000
2 127.500000 10 255.000000
12 255.000000 1 127.500000
1 127.500000 3 255.000000
4 127.500000 5 255.000000
6 255.000000 9 127.500000
9 127.500000 7 255.000000
11 827 13
NO
4 381 16
NO
18 624 32
NO
30 864 48
NO
26 637 16
YES
26 318.500000 12 637.000000 1 79.625000
6 238.875000 16 159.250000 19 637.000000
14 637.000000 24 398.125000
5 79.625000 26 318.500000 22 637.000000
4 79.625000 21 637.000000 18 318.500000
9 637.000000 18 318.500000 20 79.625000
8 637.000000 3 398.125000
23 477.750000 20 557.375000
7 159.250000 17 637.000000 24 238.875000
2 238.875000 10 637.000000 25 159.250000
23 159.250000 3 238.875000 11 637.000000
1 557.375000 25 477.750000
16 477.750000 5 557.375000
13 637.000000 2 398.125000
4 557...
13 322 43
NO
12 792 38
NO
30 628 23
YES
19 273.043478 16 546.086957
26 327.652174 28 491.478261
23 518.782609 11 300.347826
10 245.739130 25 573.391304
12 382.260870 6 436.869565
13 628.000000 2 191.130435
24 409.565217 17 409.565217
14 600.695652 24 218.434783
12 245.739130 7 573.391304
15 628.000000 29 163.826087 14 27.304348
23 109.217391 9 81.913043 20 628.000000
8 628.000000 7 54.608696 3 136.521739
27 600.695652 17 218.434783
9 546.086957 18 273.043478
1 628.000000 28 136.521739 25 54.608696
22 518.782609 26 300.347826
...
2 190 29
NO
33 353 40
NO
21 608 35
NO
46 328 27
YES
9 182.222222 20 328.000000 23 48.592593
4 170.074074 17 60.740741 44 328.000000
25 97.185185 15 133.629630 14 328.000000
30 170.074074 32 328.000000 37 60.740741
8 182.222222 35 48.592593 31 328.000000
28 291.555556 37 267.259259
21 242.962963 42 315.851852
9 145.777778 21 85.037037 18 328.000000
6 315.851852 12 242.962963
29 303.703704 19 255.111111
26 328.000000 40 72.888889 4 157.925926
3 218.666667 6 12.148148 5 328.000000
45 194.370370 1 328.000000 28 36.444444
34 218.666667 27 328.0...
44 371 47
NO
9 615 50
NO
4 574 9
NO
13 751 24
NO
5 556 43
NO
2 449 45
NO
21 665 45
NO
26 905 31
NO
26 856 49
NO
6 804 32
NO
15 737 26
NO
35 462 50
NO
34 948 42
NO
9 929 41
NO
11 324 24
NO
2 227 11
NO
3 606 41
NO
21 452 43
NO
19 134 48
NO
28 595 48
NO
36 371 42
YES
5 53.000000 6 265.000000
34 212.000000 27 106.000000
26 53.000000 32 265.000000
4 318.000000
3 318.000000
31 318.000000
18 265.000000 21 53.000000
30 159.000000 16 159.000000
33 318.000000
36 212.000000 11 106.000000
28 318.000000
35 318.000000
8 265.000000 31 53.000000
24 212.000000 14 106.000000
5 318.000000
2 265.000000 13 53.000000
17 53.000000 11 265.000000
36 159.000000 15 159.000000
13 318.000000
19 106.000000 16 212.000000
17 318.000000
18 106.000000 9 212.000000
25 159.0...
23 511 24
YES
7 149.041667 17 340.666667
16 212.916667 19 276.791667
3 85.166667 1 404.541667
21 404.541667 18 85.166667
2 468.416667 13 21.291667
22 170.333333 5 319.375000
22 340.666667 8 149.041667
4 127.750000 7 361.958333
12 127.750000 8 361.958333
23 489.708333
13 489.708333
19 234.208333 6 255.500000
5 191.625000 16 298.083333
6 255.500000 15 234.208333
4 383.250000 21 106.458333
1 106.458333 12 383.250000
20 42.583333 9 447.125000
11 191.625000 14 298.083333
18 425.833333 9 63.875000
23 2...
24 836 25
YES
13 802.560000
17 535.040000 7 267.520000
14 468.160000 24 334.400000
2 769.120000 13 33.440000
15 434.720000 14 367.840000
3 702.240000 10 100.320000
6 434.720000 19 367.840000
8 234.080000 22 568.480000
23 769.120000 11 33.440000
20 735.680000 23 66.880000
6 401.280000 15 401.280000
18 668.800000 9 133.760000
7 568.480000 4 234.080000
21 200.640000 4 601.920000
5 535.040000 22 267.520000
5 300.960000 16 501.600000
11 802.560000
20 100.320000 9 702.240000
10 735.680000 2 66.880000
1...
28 380 29
YES
18 262.068966 9 104.827586
28 78.620690 26 288.275862
5 117.931034 16 248.965517
4 235.862069 21 131.034483
11 65.517241 23 301.379310
15 209.655172 6 157.241379
3 327.586207 8 39.310345
6 222.758621 19 144.137931
27 157.241379 17 209.655172
23 78.620690 20 288.275862
14 196.551724 15 170.344828
20 91.724138 9 275.172414
2 353.793103 13 13.103448
10 340.689655 2 26.206897
13 366.896552
25 327.586207 10 39.310345
24 183.448276 14 183.448276
24 196.551724 17 170.344828
4 144.137931 27 ...
24 704 30
YES
13 563.200000
14 422.400000 15 140.800000
6 563.200000
13 140.800000 2 422.400000
19 422.400000 6 140.800000
10 422.400000 3 140.800000
5 140.800000 16 422.400000
12 281.600000 8 281.600000
20 281.600000 23 281.600000
21 281.600000 4 281.600000
19 281.600000 16 281.600000
9 140.800000 20 422.400000
24 281.600000 14 281.600000
17 140.800000 24 422.400000
11 563.200000
9 563.200000
18 563.200000
4 422.400000 7 140.800000
10 281.600000 2 281.600000
15 563.200000
17 563.200000
12 422....
30 565 40
YES
7 141.250000 8 282.500000
11 141.250000 23 282.500000
14 282.500000 15 141.250000
18 282.500000 9 141.250000
27 282.500000 17 141.250000
13 423.750000
7 423.750000
3 423.750000
17 423.750000
3 141.250000 8 282.500000
6 282.500000 12 141.250000
24 423.750000
21 423.750000
29 423.750000
10 423.750000
1 282.500000 25 141.250000
28 141.250000 1 282.500000
27 282.500000 4 141.250000
19 282.500000 29 141.250000
19 282.500000 16 141.250000
4 423.750000
20 141.250000 23 282.500000
5 423....
35 948 42
YES
7 632.000000 8 158.000000
33 474.000000 29 316.000000
21 632.000000 18 158.000000
28 790.000000
3 790.000000
17 632.000000 11 158.000000
16 158.000000 30 632.000000
19 158.000000 29 632.000000
10 474.000000 25 316.000000
16 790.000000
11 790.000000
18 790.000000
32 474.000000 26 316.000000
8 790.000000
1 790.000000
15 474.000000 22 316.000000
9 790.000000
5 158.000000 6 632.000000
4 474.000000 27 316.000000
31 158.000000 35 632.000000
31 790.000000
20 632.000000 9 158.000000
20 3...
6 578 9
YES
1 385.333333
1 192.666667 6 192.666667
3 385.333333
5 192.666667 2 192.666667
4 385.333333
4 192.666667 3 192.666667
2 385.333333
6 385.333333
5 385.333333
24 619 28
YES
13 530.571429
14 176.857143 24 353.714286
15 530.571429
2 442.142857 13 88.428571
6 530.571429
3 265.285714 10 265.285714
16 353.714286 19 176.857143
8 530.571429
11 530.571429
21 88.428571 18 442.142857
19 442.142857 6 88.428571
23 442.142857 11 88.428571
24 265.285714 17 265.285714
17 353.714286 7 176.857143
22 442.142857 8 88.428571
23 176.857143 20 353.714286
9 265.285714 20 265.285714
21 530.571429
10 353.714286 2 176.857143
14 442.142857 15 88.428571
4 88.428571 7 442.142857
...
30 986 32
YES
22 493.000000 26 431.375000
6 862.750000 5 61.625000
27 862.750000 17 61.625000
8 308.125000 3 616.250000
9 616.250000 18 308.125000
13 924.375000
29 246.500000 19 677.875000
7 246.500000 8 677.875000
18 677.875000 21 246.500000
16 369.750000 30 554.625000
5 924.375000
21 739.500000 4 184.875000
11 431.375000 23 493.000000
24 924.375000
10 184.875000 25 739.500000
28 616.250000 1 308.125000
28 369.750000 26 554.625000
20 554.625000 9 369.750000
24 61.625000 14 862.750000
14 123.2500...
26 381 28
YES
9 163.285714 18 190.500000
12 163.285714 26 190.500000
22 217.714286 5 136.071429
23 272.142857 11 81.642857
11 299.357143 3 54.428571
3 326.571429 8 27.214286
14 27.214286 24 326.571429
23 108.857143 20 244.928571
8 353.785714
2 326.571429 13 27.214286
7 108.857143 4 244.928571
10 299.357143 2 54.428571
18 190.500000 21 163.285714
21 217.714286 4 136.071429
19 81.642857 16 272.142857
7 272.142857 17 81.642857
15 353.785714
22 163.285714 26 190.500000
14 353.785714
13 353.785714
12...
24 743 32
YES
13 557.250000
15 557.250000
19 371.500000 6 185.750000
13 185.750000 2 371.500000
16 185.750000 19 371.500000
10 557.250000
5 557.250000
12 557.250000
9 557.250000
7 371.500000 4 185.750000
16 557.250000
18 371.500000 9 185.750000
14 371.500000 15 185.750000
24 185.750000 14 371.500000
20 185.750000 23 371.500000
18 371.500000 21 185.750000
21 557.250000
7 371.500000 17 185.750000
10 185.750000 2 371.500000
11 185.750000 23 371.500000
24 557.250000
11 557.250000
5 185.750000 22 3...
24 459 27
YES
13 408.000000
17 51.000000 24 357.000000
15 255.000000 14 153.000000
2 357.000000 13 51.000000
15 204.000000 6 204.000000
10 153.000000 3 255.000000
16 102.000000 19 306.000000
8 357.000000 22 51.000000
9 255.000000 20 153.000000
18 204.000000 9 204.000000
19 153.000000 6 255.000000
11 408.000000
17 408.000000
7 408.000000
22 408.000000
11 51.000000 23 357.000000
23 102.000000 20 306.000000
21 153.000000 18 255.000000
10 306.000000 2 102.000000
24 102.000000 14 306.000000
4 357.000...
25 531 26
YES
7 183.807692 17 326.769231
5 183.807692 16 326.769231
18 122.538462 21 388.038462
10 469.730769 2 40.846154
4 367.615385 21 142.961538
15 265.500000 14 245.076923
25 81.692308 1 428.884615
9 428.884615 20 81.692308
13 20.423077 2 490.153846
18 408.461538 9 102.115385
19 306.346154 16 204.230769
3 20.423077 11 490.153846
19 224.653846 6 285.923077
13 510.576923
25 449.307692 10 61.269231
8 388.038462 12 122.538462
5 347.192308 22 163.384615
3 510.576923
23 61.269231 20 449.307692
12 ...
40 897 42
YES
15 555.285714 36 299.000000
21 811.571429 18 42.714286
6 512.571429 12 341.714286
30 512.571429 32 341.714286
29 384.428571 19 469.857143
15 341.714286 22 512.571429
7 598.000000 8 256.285714
38 128.142857 27 726.142857
9 854.285714
13 854.285714
28 256.285714 37 598.000000
23 768.857143 20 85.428571
1 683.428571 25 170.857143
6 384.428571 5 469.857143
2 811.571429 13 42.714286
23 128.142857 35 726.142857
2 85.428571 10 768.857143
24 256.285714 39 598.000000
8 640.714286 31 213.57142...
24 371 26
YES
13 342.461538
24 85.615385 17 256.846154
14 313.923077 15 28.538462
13 28.538462 2 313.923077
15 342.461538
3 256.846154 10 85.615385
6 28.538462 19 313.923077
8 199.769231 22 142.692308
20 285.384615 23 57.076923
9 256.846154 20 85.615385
6 342.461538
21 199.769231 18 142.692308
17 114.153846 7 228.307692
7 142.692308 4 199.769231
5 114.153846 22 228.307692
11 342.461538
11 28.538462 23 313.923077
18 228.307692 9 114.153846
10 285.384615 2 57.076923
24 285.384615 14 57.076923
21 1...
18 169 20
YES
17 118.300000 7 33.800000
6 50.700000 15 101.400000
15 67.600000 14 84.500000
8 50.700000 12 101.400000
18 135.200000 5 16.900000
10 50.700000 3 101.400000
10 118.300000 2 33.800000
7 135.200000 4 16.900000
16 16.900000 9 135.200000
2 135.200000 13 16.900000
9 33.800000 6 118.300000
16 152.100000
4 152.100000
8 118.300000 18 33.800000
14 84.500000 11 67.600000
17 50.700000 11 101.400000
5 152.100000
1 84.500000 12 67.600000
1 84.500000 3 67.600000
13 152.100000
24 264 25
YES
13 253.440000
17 168.960000 7 84.480000
14 147.840000 24 105.600000
2 242.880000 13 10.560000
15 137.280000 14 116.160000
3 221.760000 10 31.680000
6 137.280000 19 116.160000
8 73.920000 22 179.520000
23 242.880000 11 10.560000
20 232.320000 23 21.120000
6 126.720000 15 126.720000
18 211.200000 9 42.240000
7 179.520000 4 73.920000
21 63.360000 4 190.080000
5 168.960000 22 84.480000
5 95.040000 16 158.400000
11 253.440000
20 31.680000 9 221.760000
10 232.320000 2 21.120000
17 95.0400...
27 884 28
YES
6 378.857143 15 473.571429
13 31.571429 2 820.857143
18 631.428571 9 221.000000
26 221.000000 22 631.428571
13 852.428571
23 726.142857 11 126.285714
20 694.571429 23 157.857143
10 789.285714 2 63.142857
1 726.142857 25 126.285714
4 568.285714 21 284.142857
25 757.714286 10 94.714286
27 347.285714 17 505.142857
5 599.857143 22 252.571429
18 252.571429 21 599.857143
7 852.428571
8 63.142857 3 789.285714
14 442.000000 15 410.428571
19 536.714286 16 315.714286
3 94.714286 11 757.714286
...
18 922 21
YES
11 395.142857 17 395.142857
6 790.285714
15 790.285714
12 790.285714
8 131.714286 18 658.571429
4 790.285714
10 526.857143 2 263.428571
17 526.857143 7 263.428571
16 526.857143 9 263.428571
2 658.571429 13 131.714286
9 658.571429 6 131.714286
5 395.142857 16 395.142857
4 131.714286 7 658.571429
8 790.285714
15 131.714286 14 658.571429
14 263.428571 11 526.857143
18 263.428571 5 526.857143
12 131.714286 1 658.571429
3 526.857143 1 263.428571
13 790.285714
3 395.142857 10 395.142857
...
37 772 38
YES
16 203.157895 19 548.526316
35 284.421053 23 467.263158
27 426.631579 34 325.052632
11 60.947368 36 690.736842
28 121.894737 37 629.789474
5 609.473684 3 142.210526
26 751.684211
9 345.368421 18 406.315789
10 60.947368 25 690.736842
19 223.473684 29 528.210526
4 406.315789 27 345.368421
7 223.473684 8 528.210526
23 304.736842 20 446.947368
24 467.263158 14 284.421053
26 20.315789 17 731.368421
6 182.842105 12 568.842105
3 629.789474 22 121.894737
18 365.684211 21 386.000000
5 162.526...
32 610 40
YES
17 122.000000 24 366.000000
13 488.000000
9 122.000000 20 366.000000
29 488.000000
30 488.000000
19 244.000000 16 244.000000
7 366.000000 12 122.000000
24 244.000000 14 244.000000
22 488.000000
31 488.000000
6 488.000000
27 488.000000
3 244.000000 5 244.000000
1 488.000000
7 244.000000 8 244.000000
9 488.000000
28 244.000000 26 244.000000
26 366.000000 32 122.000000
2 366.000000 13 122.000000
15 488.000000
15 122.000000 14 366.000000
21 366.000000 18 122.000000
25 122.000000 10 3...
22 771 23
YES
13 33.521739 2 703.956522
7 569.869565 4 167.608696
14 301.695652 15 435.782609
6 402.260870 15 335.217391
8 234.652174 22 502.826087
5 301.695652 16 435.782609
6 368.739130 19 368.739130
9 703.956522 20 33.521739
17 234.652174 11 502.826087
11 268.173913 14 469.304348
3 134.086957 1 603.391304
4 603.391304 21 134.086957
13 737.478261
16 335.217391 19 402.260870
21 636.913043 18 100.565217
22 268.173913 5 469.304348
12 201.130435 8 536.347826
9 67.043478 18 670.434783
10 670.434783 2...
22 792 24
YES
13 66.000000 2 660.000000
7 396.000000 17 330.000000
6 66.000000 15 660.000000
6 726.000000
8 462.000000 22 264.000000
5 594.000000 16 132.000000
19 726.000000
9 132.000000 18 594.000000
14 198.000000 11 528.000000
14 594.000000 15 132.000000
1 462.000000 3 264.000000
7 396.000000 4 330.000000
13 726.000000
16 660.000000 19 66.000000
4 462.000000 21 264.000000
22 528.000000 5 198.000000
12 396.000000 8 330.000000
21 528.000000 18 198.000000
10 594.000000 2 132.000000
20 66.000000 9 ...
40 100 48
YES
5 16.666667 6 66.666667
27 66.666667 34 16.666667
31 83.333333
14 66.666667 17 16.666667
16 83.333333
6 33.333333 12 50.000000
35 33.333333 23 50.000000
24 83.333333
38 50.000000 21 33.333333
4 50.000000 26 33.333333
28 83.333333
18 83.333333
25 66.666667 1 16.666667
8 83.333333
13 16.666667 2 66.666667
9 83.333333
10 50.000000 2 33.333333
33 50.000000 29 33.333333
23 50.000000 20 33.333333
27 33.333333 38 50.000000
11 83.333333
40 83.333333
9 16.666667 20 66.666667
7 33.333333 ...
42 501 48
YES
28 375.750000 37 62.625000
25 250.500000 10 187.875000
24 438.375000
34 375.750000 24 62.625000
26 125.250000 4 313.125000
16 313.125000 30 125.250000
19 250.500000 29 187.875000
37 438.375000
31 250.500000 8 187.875000
28 125.250000 1 313.125000
3 313.125000 5 125.250000
12 62.625000 7 375.750000
33 375.750000 41 62.625000
20 438.375000
3 187.875000 22 250.500000
29 313.125000 33 125.250000
32 438.375000
15 313.125000 36 125.250000
17 313.125000 39 125.250000
1 187.875000 25 250.50...
36 100 39
YES
3 53.846154 22 38.461538
4 53.846154 27 38.461538
30 30.769231 32 61.538462
18 38.461538 21 53.846154
15 69.230769 36 23.076923
8 15.384615 7 76.923077
20 23.076923 9 69.230769
16 76.923077 19 15.384615
33 7.692308 14 84.615385
6 61.538462 12 30.769231
26 46.153846 28 46.153846
8 84.615385 31 7.692308
12 69.230769 7 23.076923
34 69.230769 24 23.076923
15 30.769231 22 61.538462
13 7.692308 2 84.615385
10 76.923077 2 15.384615
17 92.307692
13 92.307692
29 7.692308 19 84.615385
30 69....
42 171 49
YES
28 146.571429
25 73.285714 10 73.285714
24 97.714286 41 48.857143
24 73.285714 34 73.285714
26 146.571429
16 73.285714 30 73.285714
19 122.142857 29 24.428571
37 146.571429
31 146.571429
1 122.142857 28 24.428571
5 146.571429
7 97.714286 8 48.857143
33 146.571429
20 73.285714 9 73.285714
3 146.571429
38 146.571429
32 122.142857 37 24.428571
22 48.857143 15 97.714286
14 73.285714 17 73.285714
25 97.714286 1 48.857143
2 48.857143 10 97.714286
3 24.428571 22 122.142857
4 122.142857 ...
17 100 10
YES
17 30.000000 14 40.000000 11 100.000000
4 100.000000 8 20.000000 5 50.000000
17 70.000000 7 100.000000
9 20.000000 16 100.000000 5 50.000000
3 40.000000 10 100.000000 2 30.000000
12 90.000000 8 80.000000
15 100.000000 6 10.000000 14 60.000000
3 60.000000 12 10.000000 1 100.000000
2 70.000000 13 100.000000
9 80.000000 6 90.000000
5 100 7
NO
#!/usr/bin/python3
from fractions import Fraction

N,W,M = [int(x) for x in input().strip().split()]
P = Fraction(N*W,M)
volume = [W]*N
counts = [0]*N
ans = []
idx = 0
for i in range(M):
	rem = P
	sel = []
	while rem > 0:
		counts[idx] += 1
		if volume[idx] > rem:
			sel.append((idx,rem))
			volume[idx] -= rem
			rem = 0
		else:
			sel.append((idx,volume[idx]))
			rem -= volume[idx]
			volume[idx] = 0
			idx += 1
	ans.append(sel)

if max(counts) > 2: print("NO")
else:
	print("YES")
	for sel in ans:
		for f in sel: print(f[0]+1,'{0:.9f}'.format(f[1].numerator/f[1].denominator),end=" ")
		print()