Pascal's triangle#2710

Pascal's triangle

1 second
64 megabytes
Very easy

Pascal's triangle is a triangle of numbers where the edges are ones, and each number inside is equal to the sum of the two numbers above it to the left and right.

Due to a typesetting error, Pascal's triangle was written out in a single line, forming the sequence: 1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1, 4, 6, 4, 1, \ldots

Input

A line containing an integer (N \leq 600) is given.

Output

Print the -th term of the resulting sequence.

Examples

Example 1

Loading
Loading