Gaurav is a strange little boy. Every day he tires his friends with strange questions. Today's question is:
How many integers in the interval [A,B] are there such that the sum of their digits is S, and which is the smallest such number?
Write a program that answers Gaurav's question so that he can get some sleep.