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).
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
a,b,c = map(int, input().split())

if a < b:
  print(c//a)
else:
  print(c//b)

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
n,a,b = map(int, input().split())

res=0

for i in range(1,n+1):
  s=str(i)
  m = 0
  for j in range(0,len(s)):
    m = m + int(s[j])
  if a <= m and m <= b:
    res = res + i
print(res)

