#d2129. 走楼梯2
走楼梯2
Stairs 2
Problem Description
A staircase has steps. You may climb it by going up one step at a time or two steps at a time.
However, you are not allowed to take three consecutive two-step moves. Compute the number of distinct ways to reach the -th step.
Input Format
A single line containing one integer .
Output Format
Output the total number of ways to climb the stairs.
Sample Input
6
Sample Output
12
Constraints
For of the data, .