Magic Knights
You have chess knights, and you want to place them on a certain number of chessboards of size in such a way that no pair of knights is attacking each other.
Because you are a very economical person, you are interested in the minimum number of chessboards of size that need to be purchased in order to accommodate at least chess knights in total.
A chess knight is a piece that can move in the following way in one move:
Input
The first line contains two integers , (, ).
Output
Output a single number in one line — the answer to the problem.
Examples
Note
An example of one of the optimal knight placements in the first test:
Scoring
In this problem, there are conditional blocks. If your solution works correctly for certain constraints, it will receive a certain number of points. Note that the evaluation is still in testing.
( points): ;
( points): ;
( points): ;
( points): without additional constraints.