#include using namespace std; using ll = long long; int main() { ll N,P; cin>>N>>P; vector A(N); for(int i=0;i>A[i]; ll an=0; ll p=P; while(p<1e9+3){ unordered_map M; for(int i=0;i