n,a,b,q = raw_input().strip().split(' ') n,a,b,q = [int(n),int(a),int(b),int(q)] k = -b/a c = map(int, raw_input().strip().split(' ')) for x in range(q): qT,l,r = raw_input().strip().split(' ') qT,l,r = [int(qT),int(l),int(r)] # your code goes here if qT == 1: c[l] = r if qT == 2: s = 0 for i in range(l,r+1): s = s + (k**(i-l))*c[i] if s>0: print 'No' else: print 'Yes'