A bishop is a piece used in the game of chess which can onlymove diagonally from its current position. Two bishops attackeach other if one is on the path of the other. In the figurebelow, the dark squares
represent the reachable locations forbishop B1 from its current position. Bishops B1 and B2 arein attacking position,
while B1 and B3 are not. Bishops B2and B3 are also in non-attacking position.Given two numbers n and k,
determine the number ofways one can put k bishops on an n × n chessboard so thatno two of them are in attacking positions
Input
The input file may contain multiple test cases. Each testcase occupies a single line in the input file and contains twointegers n (1 ≤ n ≤ 8)
and k (0 ≤ k ≤ n2).A test case containing two zeros terminates the input.
Output
For each test case, print a line containing the total number of ways
one can put the given number ofbishops on a chessboard of the given size so that no two of them lie in attacking positions. You maysafely assume that this
number will be less than 1015