EasyRating 1000
1, 2 or 3 Steps
Now you can climb 1, 2 or 3 steps at a time. Print the number of ways mod 1 000 000 007.
Input
One integer n (1 ≤ n ≤ 10⁵).
Output
A count.
Sample 1
Input
3
Output
4
Sample 2
Input
1
Output
1
Output appears hereOne integer n (1 ≤ n ≤ 10⁵).
A count.
3
4
1
1
Output appears here