시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB131313100.000%

문제

Nathan owns a shop that sells souvenir nunchucks with unique design. Nunchucks is a traditional martial arts weapon consisting of two sticks connected with a chain. In Nathan's design, each stick is inlayed with $n$ gemstones arranged in a row. These gemstones are either quartz or onyx, and they create a nice black-and-white pattern. For aesthetics reasons, Nathan sells only nunchucks with exactly $k$ onyxes on both sticks in total. For example, here is one of the possible designs for $n=4$ and $k=5$.

Recently Nathan decided that it will be good to be able to sell nunchucks with every possible design. But that will require him to have nunchucks with all possible designs in the storage, and the number of possible designs is huge! 

Thus, Nathan decided to compromise. He will have a number of sticks in his storage. When a customer orders some design, Nathan will take two sticks from the storage and combine them with a chain. Sticks are symmetrical, and Nathan can connect the chain to any end of the stick. For example, if $n=3$ and $k=2$, and Nathan has these sticks in the storage:

Then he can make nunchucks of any possible design. For example, if the customer asks for nunchucks of this design:

Then Nathan can make it from sticks 1 and 3.

Now Nathan wonders: what is the minimum number of sticks he should have in the storage to be able to make nunchucks of any possible design? Help him find this number.

입력

The input contains two integers $n$ and $k$ ($1\le n\le 50$; $0\le k\le 2\cdot n$).

출력

Output one integer: the minimum number of sticks Nathan should have in the storage.

예제 입력 1

3 2

예제 출력 1

7

예제 입력 2

4 1

예제 출력 2

3

예제 입력 3

5 0

예제 출력 3

2

예제 입력 4

50 50

예제 출력 4

626155273417404