output_description: Print the sum of the integers between 1 and N (inclusive), whose sum of digits
  written in base 10 is between A and B (inclusive).
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N A B
attempt: # _*_ coding:utf-8 _*_
  #  Atcoder_Beginners_Contest083-B
  #  https://atcoder.jp/contests/abc083/tasks/abc083_b
  
  
  def sumKeta(number):
      number2Str = str(number)
      numberLength = len(number2Str)
      thisNumberSum = 0
      ketaRange = range(0, numberLength, 1)
      for i in ketaRange:
          thisNumberKeta = int(number2Str[i])
          thisNumberSum = thisNumberKeta + thisNumberSum
  
      return thisNumberSum
  
  
  def sumRangeCalcRange(limitNumber, fromNumber, toNumber):
      sumValue = 0
      valueRange = range(0, limitNumber + 1, 1)
      for nowNumber in valueRange:
          thisSum = sumKeta(nowNumber)
          if fromNumber <= thisSum and thisSum <= toNumber:
              sumValue = sumValue + nowNumber
      answer = sumValue
      return answer
  
  
  if __name__ == "__main__":
      n, a, b = map(int, input().strip().split(" "))
      solution = sumRangeCalcRange(n, a, b)
      print(solution)
  
problem_description: Statement
  
  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).
samples: [{"input": "20 2 5", "output": "84\n    \n\nAmong the integers not greater than 20, the ones whose sums of digits are\nbetween 2 and 5, are: 2,3,4,5,11,12,13,14 and 20. We should print the sum of\nthese, 84.\n\n* * *"}, {"input": "10 1 2", "output": "13\n    \n\n* * *"}, {"input": "100 4 16", "output": "4554"}]