#include typedef long long int ll; using namespace std; int main(){ ll N,M,ans=0; cin>>N>>M; vector A(N+1); set sum; for(int i=0;i>A[i]; A[N]=0; for(int i=0;i