Write a program that reads a sequence of integer numbers, and prints the first one that is multiple of a given number and appears at least a given number of times .
The input consists of two numbers , followed by a sequence of integers.
The output the first number in the sequence that is multiple of
and appears at least
times in the sequence. If there is no such number, the program will
print none.
Input
3 4 1 5 6 12 8 6 3 2 6 6 10 12 7 6 1
Output
6
Input
5 2 4 -8 10 10 25 -30 12
Output
10
Input
3 5 2 3 2 3 6 3 9 3 1
Output
none