You are given a set of integers A. Find the smallest positive integer that does not belong to the set A and is divisible by a fixed number k.
Write a program that:
The first line contains two integers n and k (1≤n≤106, 1≤k≤1012), separated by a single space. Here n is the size (number of elements) of the set A. The second line contains n integers ai (1≤ai≤1018), separated by single spaces, representing the elements of the set A. All ai are pairwise distinct.
Print, on the first and only line, the smallest positive integer that does not belong to the set A and is divisible by k.