Magic Sequence
View as PDFFor each integer , a magic sequence from 
 is defined to be a sequence that satisfies the following conditions:
- Each element of the magic sequence is one of the integers from 
.
 - The elements in the magic sequence are in strictly increasing order.
 - The elements in odd numbered positions are odd and the elements in even numbered positions are even.
 
Write a program to find the number of magic sequences from .
Input Specification
The first line will contain an integer .
Output Specification
Output one integer, the number of magic sequences from . The output will always be under 
.
Constraints
| Subtask | Points | Additional constraints | 
|---|---|---|
Sample Input 1
4
Sample Output 1
7
Explanation for Sample 1
There are  magic sequences: 
, 
, 
, 
, 
, 
, 
.
Sample Input 2
10
Sample Output 2
143
Sample Input 3
50
Sample Output 3
32951280098
Comments