Playing with graph#2220

Playing with graph

1 second
128 megabytes
Medium

Peter and Vasil are playing a game. They have a sheet of paper with circles, labeled with numbers from to . The participants take turns drawing arrows connecting the circles. Drawing an arrow from circle to circle is allowed only if the following two conditions are met:

  1. There is no arrow from to ;

  2. It is not possible to reach from using arrows.

For example, in the position at the left, one of the three arrows shown on the right can be drawn.

prb2220-01

A player who cannot make a move loses.

Peter decided to write a program that plays this game. First, he wants to count how many different positions can appear on the sheet.

Below are all positions from the condition.

prb2220-02

Input

One integer (1 \leq n \leq 100).

Output

Print the number of possible positions without leading zeros.

Examples

Example 1

Loading
Loading