Nicholas Problem#513

Nicholas Problem

1 second
128 megabytes
Very easy

Nicholas must deliver gifts to children (n \le 10^{18}). He wants to know in how many ways he can do this. Since this number may be very large, output the result modulo (m \le 2009).

Input

The input consists of two natural numbers and given in a single line.

Output

Print the number of ways to deliver the gifts.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading