#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n,m,b,q; cin>>n>>m>>b>>q; int a[n]; for(int i=0;i>a[i]; int x,y,z; int k= m+b; while(q--){ cin>>x>>y>>z; if(x==1){ a[y]=z; } else{ int sum=0; for(int i=y;i<=z;i++) sum = sum +a[i]; if(sum%k==0) printf("Yes\n"); else printf("No\n"); } } return 0; }