#include using namespace std; using ll=long long; ll mod_pow(ll x,ll n,ll mo){ ll res=1; while(n>0){ if(n&1)res=res*x%mo; x=x*x%mo; n>>=1; } return res; } int main(){ ll x,n,ans=0;cin>>x>>n; vector a(n); for(int i=0;i>a[i]; for(int i=0;i