eolymp
bolt
Try our new interface for solving problems
Problems

Playing with graph

Playing with graph

Time limit 1 second
Memory limit 128 MiB

Peter and Vasil are playing another good game. They have a sheet of paper, which shows the n circles labeled with numbers from 1 to n. Participants in turn draw arrows connecting the circles. In this case the arrow of a ring in a circle b allowed to hold if the following two conditions:

  1. there are no arrows from a to b;

  2. can not get the arrow from b to a.

For example, at the left position we can put one of three arrows (shown at the right).

prb2220-01

The loser is one who can not make a move.

Peter decided to write a program that plays in this game. To do this, he wants to first count how many different positions can come on a sheet.

Here are all 25 items from the condition.

prb2220-02

Input data

One integer n (1n100).

Output data

Print the number of possible positions without leading zeros.

Examples

Input example #1
3
Output example #1
25
Source 2006, XIV St. Petersburg School Programming Team Championship, November 6, Problem D