#include<fstream.h> ifstream f("date.in"); ofstream g("date.out"); int t[100],n; void citire() {f>>n; for(int i=1;i<=n;i++) f>>t[i]; } void main() {citire(); int k=0; for(int i=1;i<=n;i++) if(t[i]==0) k++; g<<k<<" "; }