Print the number of ways to write $N$ as an unordered sum of positive integers, modulo $1{,}000{,}000{,}007$. For example $N=5$ has $7$ partitions.
Input
One integer $N$ ($1 \le N \le 1000$).
Output
Print the number of partitions of $N$ modulo $1{,}000{,}000{,}007$.
Example 1
Input
5
Output
7
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.