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

#define ll long long int
#define ull unsigned long long int


/**********************************************/


void solve() {



}


int main() {

#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	ll t = 1;
	// cin >> t;
	while (t--) {
		int a, b, c;
		cin >> a >> b >> c;

		if (a > b || (a == b && c == 1)) {
			cout << "Takahashi" << endl;
		} else if (a < b || (a == b && c == 0)) {
			cout << "Aoki" << endl;
		}
	}
}


// Winners don't quit and Quitters don't win
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define pii pair<int,int>
#define pll pair<ll,ll>
#define vii vector<int>
#define vll vector<ll>
#define mod 998244353
#define MAX 100005
int main()
{

	#ifndef ONLINE_JUDGE
    // for getting input from input.txt
    freopen("input.txt", "r", stdin);
    // for writing output to output.txt
    freopen("output.txt", "w", stdout);
    #endif

    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    ll n,w,i,x,y,p,m = -100;
    ll idx[2*MAX];
    for(i=0;i<=200005;++i){
        idx[i] = 0;
    }
    cin>>n>>w;
    for(i=0;i<n;++i){
        cin>>x>>y>>p;
        idx[x] += p;
        idx[y] -= p;
        m = max(m,y);
    }
    for(i=1;i<=m;++i){
        idx[i] += idx[i-1];
    }
    for(i=0;i<=m;++i){
        if(idx[i] > w){
            cout<<"No";
            return 0;
        }
    }
    cout<<"Yes";
}
