fork download
#include <bits/stdc++.h>
using namespace std;

#define ll long long int
int main() {
	// your code goes here
	ll t;
	cin>>t;
	pair<ll,ll> min_wid={1e9,1e9},min_hig={1e9,1e9};
	while(t--)
	{
		ll a,x,y;
		cin>>a>>x>>y;
		if(y>x)
		{
			swap(x,y);
		}
		if(a==0)
		{
			if(min_hig.first<x)
			{
				min_hig = {x,y};
			}
			if(min_wid.second < y)
			{
				min_wid = {x,y};
			}
			
		}
		else
		{
			if(x<=min_hig.first && min_wid.second>=y)
			{
				cout<<"Yes\n";
			}
			else
			{
				cout<<"No\n";
			}
		}
	}
	return 0;
}
Success #stdin #stdout 0s 5304KB
stdin
2
0 5 5
1 2 2
stdout
Yes