MONONUM

3
1000000
123
1233
2
2
5
2
24335
55435
1
3
2
24335
55435
3
2
5
10
4
2
5
10
1000000
3
2
5
10
999999
1000000
5
2
5
10
999999
1000000
6
2
3
5
10
999999
1000000
1
14
1
14213
4
1
3
5
7
3
1000000
123
1233
1
1000000
2
1000
10000
2
1000
10000
100000
3
1000
10000
100000
10
1
2
3
4
5
6
7
8
9
10
1000
10000
100000
5
1
2
3
4
5
5
5
100
1321
999999
1000000
5
4
5
100
1321
999999
1000000
5
4
5
120
1321
999999
1000000
5
4
5
120
500
1000
1000000
5
4
5
50
500
1000
1000000
3
5
3
4
1
3
1
4
1
5
1
999999
1
500000
1
250000
1
300000
1
400000
1
499999
1
532453
3
1
2
3
5
10000
2
1
3
4
5
1000000
2
1
3
4
5
10000000000
2
1
3
4
3
3
4
5
3
1
2
3
4
5
10
1
2
3
4
5
6
7
8
9
10
3
17
18
19
3
17
18
27
5
17
18
19
20
27
5
23
18
19
20
27
5
23
18
19
20
26
5
23
18
19
20
24
5
23
17
19
20
24
10
23
17
19
20
24
26
27
28
29
31