#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ long long int n,a,b,q,ch,x,y; cin>>n>>a>>b>>q; float d=-(b/a); long long arr[n]; double po[n],sum=0; for(int i=0;i>arr[i]; po[i]=pow(d,i); } while(q--) { cin>>ch; if(ch==1) { cin>>x>>y; arr[x]=y; } else { sum=0; cin>>x>>y; for(int i=x;i<=y;i++) { sum=sum+arr[i]*po[i-x]; } if(sum==0) cout<<"Yes\n"; else cout<<"No\n"; } } return 0; }