#include using namespace std; #define ll long long int main() { ll n,a,b,q; cin>>n>>a>>b>>q; for (int i = 0; i < n; ++i) { ll tmp; cin>>tmp; } for (int i = 0; i < q; ++i) { ll x,y,z; cin>>x>>y>>z; if (x==2) { printf("YES\n"); } } return 0; }