Find the number of _palindromic numbers_ among the integers between A and B (inclusive). Here, a palindromic number is a positive integer whose string representation in base 10 (without leading zeros) reads the same forward and backward.
A, B = map(int, input().split())
count=0
for i in range(B-A+1):
    if str(A+i)==str(A+1)[::-1]:
        count+=1
print(count)
A, B = map(int, input().split())
count=0
for i in range(B-A+1):
    if str(A+i)==str(A+i)[::-1]:
        count+=1
print(count)