'use strict';
function main(input) {
    const args = input.split(' ').map((n) => parseInt(n, 10));;
	let total = 0
	for(let i = 0;i < args[0]; i++) {
    	let num_list = String(i).split('').map(x=> Nunmber(x))
      	const re = num_list.recude(a, b=>a+b)
        if(args[1] <= re && re <= args[2]) total = total + re
    }
  	console.log(total)
}
