100 atcoder#ABC178D. [ABC178D] Redistribution

[ABC178D] Redistribution

Score : 400400 points

Problem Statement

Given is an integer SS. Find how many sequences there are whose terms are all integers greater than or equal to 33, and whose sum is equal to SS. The answer can be very large, so output it modulo 109+710^9 + 7.

Constraints

  • 1S20001 \leq S \leq 2000
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

SS

Output

Print the answer.

7
3

33 sequences satisfy the condition: {3,4}\{3,4\}, {4,3}\{4,3\} and {7}\{7\}.

2
0

There are no sequences that satisfy the condition.

1729
294867501