← Problem book: C Lesson 47 of 96 · 10 XP

Fibonacci numbers

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

Fibonacci numbers: F₁ = F₂ = 1, each next one is the sum of the two previous ones (1, 1, 2, 3, 5, 8, …). You are given n (1 ≤ n ≤ 90). Print Fₙ.

Example

Input:

6

Output:

8

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.