Find the sum of the integers between 1 and N (inclusive), whose sum of digits written in base 10 is between A and B (inclusive).
n,a,b=map(int,input().split())
sum=0
for i in range(n):
     x10 = i // 10
     x1 = i - x10
     if 2 <= x10 + x1 and x10 + x1 <=5:
         sum +=x10+x1
print(sum)
n,a,b=map(int,input().split())
sum=0
for i in range(n+1):
     wa = int((i / 10000) % 10)+int((i / 1000) % 10) + int((i / 100) % 10) + int((i / 10) % 10)  + int(i % 10)
     if a <= wa and wa<=b:
         sum += i
print(sum)