eolymp
bolt
Try our new interface for solving problems
Problems

The Candies

The Candies

Ivanko likes candies very much. He has a lot of candies and he keeps them in the special small boxes. All Ivanko has \textbf{N} candies (\textbf{N} is even) and \textbf{S} of identical small boxes. In one small box placed no more then \textbf{N}/2 of candies. It became interestingly to Ivanko, by how many methods he can decompose candies to small boxes... Help him to find an answer for his question. Be attention, that all of candies are identical, that is why matters only the quantity of candies in each of the small boxes. That is means that you decompose candies to small boxes with two different methods if though in one of small boxes the quantity of candies in the small boxes with first methods differs from the quantity of candies in the small boxes with second methods (in tha same small box). \InputFile There are two numbers \textbf{N} and \textbf{S} in the first line. \textbf{2} ≤ \textbf{N} ≤ \textbf{1000} is a quantity of the candies, \textbf{N} - even; \textbf{2} ≤ \textbf{S} ≤ \textbf{1000} - is a quantity of small boxes. \OutputFile There is a one number. It is a quantity of different possible methods of decompose candies on small boxes.
Time limit 1 second
Memory limit 64 MiB
Input example #1
4 3
Output example #1
6