#include <bits/stdc++.h> const int N = 2e3 + 10; long long a[N],dp[N]; int main() { long long n,m; std::cin >> n >> m; memset(dp,0x3f,sizeof dp); for(int i = 1; i <= n; i++) { std::cin >> a[i],dp[a[i]%m] = 1; } for(int i...