CF72G.Fibonacci army

传统题 时间 2000 ms 内存 256 MiB 5 尝试 1 已通过 1 标签

Fibonacci army

King Cambyses loves Fibonacci numbers. He has several armies. Today he wants to make a new army for himself and he wants the number of men in this army to be the n-th Fibonacci number.

Given n you should find n-th Fibonacci number. The set of Fibonacci numbers start with f0 = f1 = 1 and for each i ≥ 2, f**i = f**i - 1 + f**i - 2.

Input

Input contains a single integer n (1 ≤ n ≤ 20).

Output

Write a single integer. The n-th Fibonacci number.

Samples

2
2
1
1

在线编程 IDE

建议全屏模式获得最佳体验