Company: Flipkart_18thjuly
Difficulty: easy
A megastore is running an unusual offer: if a customer can point to a product whose price is a golden price , that product is completely free for them. A price G is called a golden price when the difference between the sum of all of its digits and its highest digit is exactly equal to that highest digit. For example: 352 is golden, because (3 + 5 + 2) - 5 = 5 , and 5 is the highest digit. 3003 is golden, because (3 + 0 + 0 + 3) - 3 = 3 . 32812 is golden, because (3 + 2 + 8 + 1 + 2) - 8 = 8 . Narendra walks into the megastore and considers every price in the range from X to Y , both endpoints included. For every golden price in that range he buys exactly one unit of the product carrying that price, and he pays nothing for it. Given X and Y , report the total amount Narendra saved. Read the input from STDIN and write the output to STDOUT. Do not print any extra prompts or messages, since anything you print becomes part of the answer. Input Format A single line containing two space-separa