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())
s=0
for C in range(a,b+1):
    C=str(C)
    c=C[::-1]
    s+=(C==c)
a,b=map(int,input().split())
s=0
for C in range(a,b+1):
    C=str(C)
    c=C[::-1]
    s+=(C==c)
print(s)