#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int a,b,c,d; cin>>a>>b>>c>>d; int arr[n]; for(int i=0;i>a[i]; } while(d--){ int m,n,p; cin>>m>>n>>p; if(m==2){ cout<<"Yes"<