#include <bits/stdc++.h> 
#define ll long long  int

using namespace std;



int main() 
{ 
    #ifndef ONLINE_JUDGE
freopen("l.txt", "r", stdin);
freopen("m.txt", "w", stdout);
#else
#endif 
ll n,s,d;
cin>>n>>s>>d;
bool f=false;
for(ll i=0;i<n;i++)
{
  ll a,b;
  cin>>a>>b;
  if(a<s && b>d)
  {
    f=true;
  }
}
if(f)
{
  cout<<"Yes"<<endl;
}
else
{cout<<"No"<<endl;}
}
    
#include <iostream>

int main() {
  int a, b, c;
  
  std::cin >> a >> b >> c;
  
  
  if ( a > b )
    std::cout << "Takahashi" << std::endl;
  else if ( a < b )
    std::cout << "Aoki" << std::endl;
  else {
    if ( c == 0 )
      std::cout << "Aoki" << std::endl;
    else
      std::cout << "Takahashi" << std::endl;
  }
  return 0;
}