#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0); int n,q; cin>>n>>q; vector<int>a(n); for(int i=0,x=0;i<n;i++){ cin>>a[i]; a[i]+=x; x=a[i]; } while(q--){ int t; cin>>t; cout<<(upper_bound(a.begin(),a.end(),t)-...