#P1255. 数楼梯

数楼梯

Description

A staircase has NN steps. You can climb either 1 step or 2 steps at a time. Write a program to compute the number of distinct ways to reach the top.

Input Format

A single integer NN, the number of steps.

Output Format

Output the total number of ways.

4
5

Hint

  • For 60%60\% of the testdata, N50N \leq 50.
  • For 100%100\% of the testdata, 1N50001 \le N \leq 5000.

Translated by ChatGPT 5