#!/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(' '))) ln=len(c) for a0 in range(q): queryType,first,second = input().strip().split(' ') queryType,first,second = [int(queryType),int(first),int(second)] # your code goes here if queryType==1: c[first]=second if queryType==2: r=0 for i in range(ln-1): r=c[ln-1-i-1]-((c[ln-1-i]/(a-r))*b) if r%1==0: print('Yes') else: print('No')