Three ones#263

Three ones

1 second
128 megabytes
Very easy

Compute the number of sequences of length , consisting only of zeros and ones, where there are no three consecutive ones.

Input

One integer n~(1 \le n \le 10^5) is given — the length of the sequence.

Output

Print the number of such sequences modulo .

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading