In this problem we consider the expressions defined as follows:
Every variable is a correct expresion;
if is a correct expression, so is ;
if and are correct expressions, so are ;
nothing else is a correct expression.
For instance, if the set of variables is , these are some correct expressions:
Write a program that, given two numbers and , prints the number of correct expressions of length exactly that can be made up with variables.
For instance, for and the result should be 6, corresponding to
Input consists of several cases, each with two natural numbers and between and .
For every case, print the number of correct expressions of length exactly that can be made up with variables. This number will always be smaller than .
Input
7 2 1 20 20 1 21 1 25 25
Output
6 20 0 212 307378150