process.stdin.resume(); process.stdin.setEncoding('ascii'); var input_stdin = ""; var input_stdin_array = ""; var input_currentline = 0; process.stdin.on('data', function (data) { input_stdin += data; }); process.stdin.on('end', function () { input_stdin_array = input_stdin.split("\n"); main(); }); function readLine() { return input_stdin_array[input_currentline++]; } /////////////// ignore above this line //////////////////// function main() { var n_temp = readLine().split(' '); var n = parseInt(n_temp[0]); var a = parseInt(n_temp[1]); var b = parseInt(n_temp[2]); var q = parseInt(n_temp[3]); c = readLine().split(' '); c = c.map(Number); for(var a0 = 0; a0 < q; a0++){ var queryType_temp = readLine().split(' '); var queryType = parseInt(queryType_temp[0]); var first = parseInt(queryType_temp[1]); var second = parseInt(queryType_temp[2]); if (queryType == 2) console.log("Yes") } }