What a cute rabbit ! BaiQian has

white rabbits , and the

rabbit has a cute value of

. Now Sister Bai Qian will paint these rabbits . Some rabbits are painted green , and the rest are still white . (Please note that you can't painted all rabbits green)
Now , BaiQian uses the numbers on each white rabbit to find the remainder of the numbers on the green rabbits . Suppose that there are

green rabbits and

white rabbits (obviously:

, then

remainder results will be obtained . If these remainder results are all the same , it indicates that this is a good coloring scheme .
BaiQian wants to know that among all the good coloring schemes , there can be at most how many green rabbits . If there is no good painting scheme , output 0 .