#include using namespace std; using ll=long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin>>n; vector s(n); for(int i=0;i>s[i]; int cur=0; while(cur