#include<bits/stdc++.h>
#define int long long
using namespace std;
int a[18][18]={},i,j;
void generate_square(int i)
{
for(j=i;j<=16-i;j++) a[i][j]=1;
for(j=i;j<=16-i;j++) a[16-i][j]=1;
for(j=i;j<=16-i;j++) a[j][i]=1;
for(j=i;j<=16-i;j++) a[j][16-i]=1;
}
signed main()
{
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
for(i=1;i<=7;i+=2) generate_square(i);
int x,y;
cin>>x>>y;
if (a[x][y]==1) cout<<"den";
else cout<<"trang";
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KI2RlZmluZSBpbnQgbG9uZyBsb25nCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBhWzE4XVsxOF09e30saSxqOwp2b2lkIGdlbmVyYXRlX3NxdWFyZShpbnQgaSkKewoJZm9yKGo9aTtqPD0xNi1pO2orKykgYVtpXVtqXT0xOwoJZm9yKGo9aTtqPD0xNi1pO2orKykgYVsxNi1pXVtqXT0xOwoJZm9yKGo9aTtqPD0xNi1pO2orKykgYVtqXVtpXT0xOwoJZm9yKGo9aTtqPD0xNi1pO2orKykgYVtqXVsxNi1pXT0xOwp9CnNpZ25lZCBtYWluKCkKewoJaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbygwKTsKCWNpbi50aWUoMCk7IGNvdXQudGllKDApOwoJZm9yKGk9MTtpPD03O2krPTIpIGdlbmVyYXRlX3NxdWFyZShpKTsKCWludCB4LHk7CgljaW4+Png+Pnk7CglpZiAoYVt4XVt5XT09MSkgY291dDw8ImRlbiI7CgllbHNlIGNvdXQ8PCJ0cmFuZyI7CglyZXR1cm4gMDsKfQ==