#!/bin/python3 import sys x=2 n,a,b,q = input().strip().split(' ') n,a,b,q = [int(n),int(a),int(b),int(q)] c = list(map(int, input().strip().split(' '))) q=a*x+b p=0 for a0 in range(q): j=0 queryType,first,second = input().strip().split(' ') queryType,first,second = [int(queryType),int(first),int(second)] if queryType==1: c[first]=second if queryType==2: for i in range(first,second+1): p=p+(c[i]*(2**j)) j+=1 if p%q==0: print("yes") else: print("no")