Lucky tickets#128

Lucky tickets

1 second
128 megabytes
Very easy

Count the number of lucky tickets for which the sum of the first three digits is equal to .

A lucky ticket is a six-digit ticket in which the sum of the first three digits is equal to the sum of the last three digits.

Input

One positive integer n~(n \le 27).

Output

Print the number of lucky tickets.

Examples

Example 1

Loading
Loading