#include #include using namespace std; int main(){ int n,a,b,q; cin>>n>>a>>b>>q; int *arr = new int[n]; for(int i=0;i>arr[i]; while(q--){ int type,l,r; cin>>type>>l>>r; if(type==1){ arr[l] = r; }else{ float sol = (-b)/(float)a; float ans = 0; for(int i=l,j=0;i<=r;i++,j++){ ans = ans + ((float)pow(sol,j)*(float)arr[i]); } if(ans == 0){ cout<<"Yes"<