For instance, (0; 1; 1; -2) is a configuration of the 4-2-puzzle. Some equivalent configurations are: (a) (1; -2; 0; 1), (b) (-2; 1; 1; 0), (c) (0; -1; -1; 2), and (d) (-1; -1; 0; 2). Below is given a list of (the lexicographically largest) representatives of the 14 patterns of the 4-2-puzzle.
(0; 0; 0; 0) (2; -2; 2; -2) (2; 0; 0; -2) (1; -1; 1; -1) (2; -1; 0; -1) (2; 1; -2; -1) (1; 0; -1; 0) (2; -1; 1; -2) (2; 1; -1; -2) (1; 0; 0; -1) (2; 0; -2; 0) (2; 2; -2; -2) (1; 1; -1; -1) (2; 0; -1; -1)Your program computes the number of patterns for a sequence of n-k-puzzles. The input consists of a sequence of pairs of integers n and k, which are separated by a single space. Each pair appears on a single line. The input is terminated by an end-of-file. The value for n + k is at most 11. The output contains a sequence of integers, each on one line, representing the number of patterns for the corresponding n-k-puzzles in the input. No blank line should appear at the end of the output.
8 0 4 2
1 14