#abc214b. [abc214_b]How many?
[abc214_b]How many?
Problem Statement
How many triples of non-negative integers satisfy and ?
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of triples of non-negative integers satisfying the conditions.
Sample Input 1
1 0
Sample Output 1
4
The triples satisfying the conditions are , , , and ― there are four of them.
Sample Input 2
2 5
Sample Output 2
10
Sample Input 3
10 10
Sample Output 3
213
Sample Input 4
30 100
Sample Output 4
2471