#!/bin/python3 import sys import random 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)] one = random.randint(0,1) two = random.randint(0,1) if one == 0: print("Yes") else: print("No") if two == 0: print("No") else: print("Yes")