import sys, time
def digdp(s):
cn = len(s)
dp = [[0,0] for z in range(9*cn+11)]
dp[0][0] = 1
for i in range(cn):
ndp = [[0,0] for z in range(9*cn+11)]
for j in range(cn*9 + 1):
for d in range(10):
if j + d > cn*9: continue
if d < int(s[i]): ndp[j+d][1] += dp[j][0]
elif d == int(s[i]): ndp[j+d][0] += dp[j][0]
ndp[j+d][1] += dp[j][1]
dp = ndp
rtn = []
for z in dp: rtn.append(z[0] + z[1])
return rtn
for line in sys.stdin:
X, Y = line.split()
X1 = str(int(X) - 1) # X-1
vx = digdp(X1) if X1 != '-1' else [0]
vy = digdp(Y)
for i in range(len(vx)): vy[i] -= vx[i]
print( "{} {} --> {}".format(X, Y, max(vy)))
aW1wb3J0IHN5cywgdGltZQoKZGVmIGRpZ2RwKHMpOgogIGNuID0gIGxlbihzKQogIGRwID0gW1swLDBdIGZvciB6IGluIHJhbmdlKDkqY24rMTEpXQogIGRwWzBdWzBdID0gMQoKICBmb3IgaSBpbiByYW5nZShjbik6CiAgICBuZHAgPSBbWzAsMF0gZm9yIHogaW4gcmFuZ2UoOSpjbisxMSldCiAgICBmb3IgaiBpbiByYW5nZShjbio5ICsgMSk6CiAgICAgIGZvciBkIGluIHJhbmdlKDEwKToKICAgICAgICBpZiBqICsgZCA+IGNuKjk6IGNvbnRpbnVlCiAgICAgICAgaWYgZCA8IGludChzW2ldKTogbmRwW2orZF1bMV0gKz0gZHBbal1bMF0KICAgICAgICBlbGlmIGQgPT0gaW50KHNbaV0pOiBuZHBbaitkXVswXSArPSBkcFtqXVswXQogICAgICAgIG5kcFtqK2RdWzFdICs9IGRwW2pdWzFdCiAgICBkcCA9IG5kcAogIAogIHJ0biA9IFtdCiAgZm9yIHogaW4gZHA6IHJ0bi5hcHBlbmQoelswXSArIHpbMV0pCiAgcmV0dXJuIHJ0bgoKCmZvciBsaW5lIGluIHN5cy5zdGRpbjoKICBYLCBZID0gbGluZS5zcGxpdCgpCiAgWDEgPSBzdHIoaW50KFgpIC0gMSkgIyBYLTEKCiAgdnggPSBkaWdkcChYMSkgaWYgWDEgIT0gJy0xJyBlbHNlIFswXQogIHZ5ID0gZGlnZHAoWSkKCiAgZm9yIGkgaW4gcmFuZ2UobGVuKHZ4KSk6IHZ5W2ldIC09IHZ4W2ldCgogIHByaW50KCAie30ge30gLS0+IHt9Ii5mb3JtYXQoWCwgWSwgbWF4KHZ5KSkpCiAg
MCA5OTk5IAoxMjM0NTY3IDk4NzY1NDMgCjEgNTAwMDAwMDAwMDAwCjEyMzQ1Njc4OTA5IDQ5ODc2NTQzMjEyMwowIDkyMjMzNzIwMzY4NTQ3NzU4MDcKMCAxMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMA==
0 9999
1234567 9876543
1 500000000000
12345678909 498765432123
0 9223372036854775807
0 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000