Fibonacci Sequence#771

Fibonacci Sequence

1 second
128 megabytes
Medium

Fibonacci sequence is as follows:

, , , , , , , ,

It is not difficult to see that in this sequence, the first two numbers are equal to and all other numbers, starting with the third, are equal to the sum of the two previous numbers.

In other words, the Fibonacci sequence is given by the following recurrent formula:

f_1 = 1, \quad f_2 = 1, \quad f_n = f_{n-1} + f_{n-2}

Write a program that finds the -th Fibonacci number.

Input

One positive integer (1 \leq n \leq 10000).

Output

Print the -th Fibonacci number.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading