#include<iostream> using namespace std; int main(){ int n,cnt = 0; cin>>n; while(n--){ int x; cin>>x; if(x == 0) cnt ++; } cout<<cnt<<endl; return 0; }