Function f(n)#10165

Function f(n)

1 second
128 megabytes
Very easy

Function is given with recurrent relation:

f(n) = f(n-1) + f(n - 2) + ... + f(2) + f(1),
f(1) = 1

Find the value of f(n)~mod~123456789.

Input

One positive integer n~(1 \le n \le 10^9).

Output

Print the value of f(n)~mod~123456789.

Examples

Example 3

Loading
Loading

Example 4

Loading
Loading