#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int a[] = {1,3,0,5,2,-2,5,0,4,3,0};
cout << count_if(begin(a),end(a),[](int x){return x!=0;});
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgYVtdID0gezEsMywwLDUsMiwtMiw1LDAsNCwzLDB9OwoJY291dCA8PCBjb3VudF9pZihiZWdpbihhKSxlbmQoYSksW10oaW50IHgpe3JldHVybiB4IT0wO30pOwoJcmV0dXJuIDA7Cn0=