Three-digit numbers#580

Three-digit numbers

1 second
64 megabytes
Easy (≈1000)

Determine the number of three-digit numbers where the digits are in increasing order and their sum equals m.

Input

A natural number m, where 1 ≤ m ≤ 27.

Output

A single integer representing the solution to the problem.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading