문제
Bessie has been procrastinating on her cow-mistry homework and now needs your help! She needs to create a mixture of three different cow-michals. As all good cows know though, some cow-michals cannot be mixed with each other or else they will cause an explosion. In particular, two cow-michals with labels
NOTE: Here,
Bessie has
입력
The first line contains two integers
Each of the next
출력
The number of mixtures of three different cow-michals Bessie can create, modulo
예제1
1 13
0 199
4280
We can split the chemicals into 13 groups that cannot cross-mix:
예제2
6 147
1 35
48 103
125 127
154 190
195 235
240 250
267188