Three-digit numbers 5#9995

Three-digit numbers 5

1 second
64 megabytes
Easy

Determine the sum of all three-digit numbers where the digits are in descending order and their sum equals .

Input

A natural number , where 1 \le m \le 27.

Output

A single integer representing the solution to the problem.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading