#P384. 【例67.1】 爬楼梯
【例67.1】 爬楼梯
Description
Teacher Shu is climbing stairs. He can take either or steps at a time. Given the number of stairs, find the number of different ways to climb them.
For example: If there are stairs, he can take one step each time, or take one step first and then two steps, or take two steps first and then one step, for a total of different methods.
Input Format
The input contains several lines, each containing a positive integer representing the number of stairs, where .
Output Format
The number of different ways to climb the stairs, with one output line for each input line.
Sample
5
8
108
34
89