#include #include using namespace std; int main(){ int N,M; scanf("%d%d",&N,&M); int A[N]; bool check[N]; for(int i=0;i