#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long int ll; typedef pair pii; typedef vector vi; #define rep(i,x) for(int i=0;i<(int)(x);++i) int main(){ int x, n, ret = 0; cin >> x >> n; ll a, tmp; rep(i,n) { cin >> a; if (!a) ++ret; else { tmp = 1; for (ll j=0; j