#include <iostream>
using namespace std;
int main() {
int n, a[1000], s=0;
cin>>n;
for(int i=0; i<=n;i++)
{
cin>>a[i];
s+=a[i];
}
if(s%10==0)
cout<<"DEP";
else if(s%5==0)
cout<<"TRUNGBINH";
else cout<<"XAU";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbiwgYVsxMDAwXSwgcz0wOwoJY2luPj5uOwoJZm9yKGludCBpPTA7IGk8PW47aSsrKQoJewoJCWNpbj4+YVtpXTsKCQlzKz1hW2ldOwoJfQoJaWYocyUxMD09MCkKICAgICAgICBjb3V0PDwiREVQIjsKICAgIGVsc2UgaWYocyU1PT0wKQogICAgICAgIGNvdXQ8PCJUUlVOR0JJTkgiOwogICAgZWxzZSBjb3V0PDwiWEFVIjsKICAgIAoJcmV0dXJuIDA7Cn0=