People in Silverland use coins.They have coins of value Silverland dollar.One day Tony opened his money-box and found there were some coins.He decided to buy a very nice watch in a nearby shop. He wanted to pay the exact price(without change) and he known the price would not more than m.But he didn't know the exact price of the watch. You are to write a program which readsandcorresponding to the number of Tony's coins of value then calculate how many prices(form 1 to m) Tony can pay use these coins.
输入描述:
The input contains several test cases. The first line of each test case contains two integers ,m.The second line contains 2n integers, denoting . The last test case is followed by two zeros.
输出描述:
For each test case output the answer on a single line.