#!/bin/python import sys n,a,b,q = raw_input().strip().split(' ') n,a,b,q = [int(n),int(a),int(b),int(q)] c = map(int, raw_input().strip().split(' ')) x=-1*(float(b)/a) for a0 in xrange(q): queryType,first,second = raw_input().strip().split(' ') queryType,first,second = [int(queryType),int(first),int(second)] if queryType==1: c[first] = second else: sum1 = 0 val = 1 for i in range(first,second+1): sum1+= c[i]*val val*=x if sum1==0: print "Yes" else: print "No"