#include #include #include #include #include #include #include int main(){ long int d,b,n,q; scanf("%ld %ld %ld %ld",&n,&d,&b,&q); long int* a = (long int*) malloc(n * sizeof(long int)); for(long int i = 0;i < n;i++) scanf("%ld",&a[i]); while(q--) { int first; scanf("%d",&first); if(first == 1) { long int i,x; scanf("%ld %ld",&i,&x); a[i] = x; } else { long int l,r; scanf("%ld %ld",&l,&r); long int _ = -(b/d); long int p = a[r]; for(long int z = r-1;z >= l;z--) p = _*p + a[z]; if(abs(p) ==0) printf("Yes\n"); else printf("No\n"); } } return 0; }