11
1 1
5 2
10 20
100 999
1000 10000
10 9
9 10
10 10
9 9
1000 1
1 10000