#!/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(' '))) 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 else: root = -b/a sum = c[0] for i in range(1,len(c)): sum+= root**i*c[i] sum = round(sum) if sum ==0: print("Yes") else: print("No")