#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
// your code goes here
vector<int> arr = {1,2,3,4,5};
printf("%d", upper_bound(arr.begin(), arr.end(), 0) - arr.begin());
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCgl2ZWN0b3I8aW50PiBhcnIgPSB7MSwyLDMsNCw1fTsKCXByaW50ZigiJWQiLCB1cHBlcl9ib3VuZChhcnIuYmVnaW4oKSwgYXJyLmVuZCgpLCAwKSAtIGFyci5iZWdpbigpKTsKCXJldHVybiAwOwp9