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())

su = abs(A -B)
count = 0
for i in range(A, B):
    aa =str(i)
    rslt = aa[::-1]
    rr = aa
    # print("rslt{}".format(rslt))
    # print("rr{}".format(rr))
    if rr == rslt:
        count += 1
    print(count)
A,B = map(int,input().split())
su = abs(A -B)
count = 0
for i in range(A, B + 1):
    aa =str(i)
    rslt = aa[::-1]
    if aa == rslt:
        count += 1
print(count)