#include #include using namespace std; using ll = long long; using pii = pair; using vi = vector; #define fastio ios::sync_with_stdio(false); cin.tie(nullptr); #define all(x) (x).begin(), (x).end() int main() { // fastio; int n , e; string s; int total_powers=0 , total_e = 0 ; cin >> n; vectors_powers(n); cin >> s; for(int i=0;i> s_powers[i]; total_powers += s_powers[i]; } cin >> e; vectort(e); for(int i=0;i> t[i]; // main loop for(int b=0;b> spots(n); for(int i=0;i= s_powers[j] ) { local_max++; current_s_power-=s_powers[j]; } else{ break; } } if(local_max > max) { max = local_max; } } cout << max << "\n"; } return 0; }