Problem G
Lucky Numbers

Mr. Lucky has a store that sells numbers. These numbers have
an interesting property: each number formed by its first
Mr. Unlucky wants to open a competing store. Price for lucky numbers is driven by demand and supply, and given by the formula
while demand for numbers with
where
Input
The input is a single integer
Output
Output the supply for
Limits
Sample Input 1 | Sample Output 1 |
---|---|
2 |
45 |
Sample Input 2 | Sample Output 2 |
---|---|
3 |
150 |