LearnPy Hub
← Arena
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
solution.py
Output appears here
1, 2 or 3 Steps · Python Arena problem · LearnPy Hub