You are given a set S of distinct integers and an integer G. A sequence of integers is called a G-Avoiding Sequence if both of the following conditions hold:
Compute the number of G-Avoiding Sequences modulo the prime 1,234,567,891.
The input consists of several test cases. The first line of each test case contains two integers N (1≤N≤200), the size of S, and G (1≤G≤1000). The next line contains N integers, the elements of S, each between 0 and 106.
The input ends with a single line containing N=G=0, which must not be processed.
For each test case, output a single line containing the number of G-Avoiding Sequences modulo 1,234,567,891.