#include using namespace std; int main() { int x,y,n,m; cin>>x>>y>>n>>m; while(m--) { int t; cin>>t; n+=t; while(ny) n-=y-x+1; cout<