Steps - Number of Ways#8234

Steps - Number of Ways

1 second
128 megabytes
Very easy (≈850)

In how many ways can you reach the -th step if you can take a step to the next, skip one, or skip two steps?

Input

A single integer - representing the step number (n \le 60).

Output

Print the number of ways to reach the -th step.

Examples

Example 1

Loading
Loading