eolymp
bolt
Try our new interface for solving problems
Problems

How many ways?

How many ways?

From the known amount of assessments, as well as the number of subjects - to determine how many ways you can get the same amount of points, provided that valid estimates are \textbf{8}, \textbf{9} and \textbf{10}. Of course, two ways are considered different if they differ by assessing at least one subject. Reply to \textbf{mod} \textbf{1000007}. \InputFile The input file two integers \textbf{n} and \textbf{m} (\textbf{1} ≤ \textbf{n} ≤ \textbf{100}, \textbf{m} ≤ \textbf{1000}). The first of these - the number of subjects, and the second - the amount of points. \OutputFile The output file a single number - the answer of the problem.
Time limit 1 second
Memory limit 64 MiB
Input example #1
2 19
Output example #1
2