#include using namespace std; int main() { int n,sum,ans=0; cin>>n; vector c(n); for(int i=0;i>c[i]; sum=accumulate(c.begin(),c.end(),0); for(int i=0;i=c[i])ans++; } cout<