#!/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(' '))) if b == 0: root = a elif b % a == 0: root = -b // a else: root = -b / a for a0 in range(q): queryType,first,second = input().strip().split(' ') queryType,first,second = [int(queryType),int(first),int(second)] if queryType == 1: c[first] = second else: if b != 0: j = 0 sum = 0 while j <= (second - first): sum += (root**j) * c[first + j] j += 1 if sum == 0: print('Yes') else: print('No') else: if c[first] == 0: print('Yes') else: print('No')