using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { string[] tokens_n = Console.ReadLine().Split(' '); int n = Convert.ToInt32(tokens_n[0]); int a = Convert.ToInt32(tokens_n[1]); int b = Convert.ToInt32(tokens_n[2]); int q = Convert.ToInt32(tokens_n[3]); string[] c_temp = Console.ReadLine().Split(' '); int[] c = Array.ConvertAll(c_temp,Int32.Parse); for(int a0 = 0; a0 < q; a0++){ string[] tokens_queryType = Console.ReadLine().Split(' '); int queryType = Convert.ToInt32(tokens_queryType[0]); int first = Convert.ToInt32(tokens_queryType[1]); int second = Convert.ToInt32(tokens_queryType[2]); // your code goes here if (queryType == 2) Console.WriteLine("Yes"); } } }