20
1 8888888888 2222222222
2 9999999999 10000000000
2 10000000000 9999999999
2 8888 22
1 9999 99
2 9999 99999
2 22 8888
1 0 0
2 0 0
1 9 9
1 1 1
2 9 9
1 9876543210 1
1 9876543210 99
2 9876543210 987654321
2 13422 15599
1 25036 9910
2 26335 15576
2 30973 31989
2 1579 27146