#P1641. [SCOI2010] 生成字符串

[SCOI2010] 生成字符串

Description

lxhgww recently received a task to generate a string. The task requires him to use nn copies of 11 and mm copies of 00 to form a string, and it also requires that in any first k (0kn+m)k\ (0 \le k \le n+m) characters, the number of 11 is not less than the number of 00. Now lxhgww wants to know how many strings satisfy the requirement. Can you help him? The answer is taken modulo 2010040320100403.

Input Format

The input contains a single line with 22 integers nn and mm.

Output Format

Output a single line with 11 integer, the number of strings that satisfy the requirement. The answer is taken modulo 2010040320100403.

2 2
2

Hint

For 30%30\% of the testdata, it is guaranteed that 1mn1031 \leq m \leq n \leq 10^3. For 100%100\% of the testdata, it is guaranteed that 1mn1061 \leq m \leq n \leq 10^6.

Translated by ChatGPT 5