#include <iostream>
using namespace std;
int main() {
int a[1000],n,i,k=0;
cin>>n;
for(i=0;i<n;i++)
{cin>>a[i];
if (a[i]==0)k++;}
cout<<k;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CmludCBhWzEwMDBdLG4saSxrPTA7CmNpbj4+bjsKZm9yKGk9MDtpPG47aSsrKQoJe2Npbj4+YVtpXTsKCWlmIChhW2ldPT0wKWsrKzt9CmNvdXQ8PGs7CglyZXR1cm4gMDsKfQ==