#include using namespace std; int main() { long long int n,a,b,q; cin>>n>>a>>b>>q; b=-b; long long int arr[n]; for(int i=0;i>arr[i]; for(int i=0;i>x>>y>>z; if(x==1) { arr[y]=z; } else { long double ans=0.0; long double mul=1; for(int i=y,j=0;i<=z;i++,j++) { ans+=arr[i]*mul; mul*=((long double)b/a); } if(ans==0.0) cout<<"Yes"<