#!/bin/python3 import sys 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(' '))) #print(c) for a0 in range(q): queryType,first,second = input().strip().split(' ') queryType,first,second = [int(queryType),int(first),int(second)] # coeff lists P=[] #E=[] Q=[a,b] # your code goes here if queryType == 1: c[first] = second #print("type 1") else: #print("type 2") # make a list of the coeff of P #counter = 0 x = -b/a ans = 0 for i in range(first, second+1): P.insert(0,c[i]) #E.insert(0,counter) #counter +=1 for i in range(len(P)): ans += P[i]*(x**i) if ans == 0: print("Yes") else: print("No") #print(P) #print(E)