#ABC214B. [ABC214B] How many?

[ABC214B] How many?

提示:该题测试数据补录中,暂不支持评测提交。

No testdata at current.

No submission language available for this problem.

Score : 200200 points

Problem Statement

How many triples of non-negative integers (a,b,c)(a, b, c) satisfy a+b+c≤Sa+b+c \leq S and a×b×c≤Ta \times b \times c \leq T?

Constraints

  • 0≤S≤1000 \leq S \leq 100
  • 0≤T≤100000 \leq T \leq 10000
  • SS and TT are integers.

Input

Input is given from Standard Input in the following format:

SS TT

Output

Print the number of triples of non-negative integers (a,b,c)(a,b,c) satisfying the conditions.

1 0
4

The triples (a,b,c)(a,b,c) satisfying the conditions are (0,0,0)(0,0,0), (0,0,1)(0,0,1), (0,1,0)(0,1,0), and (1,0,0)(1,0,0) ― there are four of them.

2 5
10
10 10
213
30 100
2471