You can climb either 1 or 2 steps at a time. How many distinct ways are there to reach the top of a staircase with n steps?
Input
One integer 1 ≤ n ≤ 45.
Output
The number of distinct ways.
Hint
To stand on step n you arrived from n−1 or n−2, so ways(n) = ways(n−1) + ways(n−2). Yes — it is Fibonacci wearing a hat.
Read from standard input and write to standard output. 5 test cases in total (3 hidden). Tests for this language run inside your browser.