#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbiwgYVsxMDAwXSwgcz0wOwoJY2luPj5uOwoJZm9yKGludCBpPTA7IGk8bjtpKyspCgl7CgkJY2luPj5hW2ldOwoJCXMrPWFbaV07Cgl9CglpZihzJTEwPT0wKQogICAgICAgIGNvdXQ8PCJERVAiOwogICAgZWxzZSBpZihzJTU9PTApCiAgICAgICAgY291dDw8IlRSVU5HQklOSCI7CiAgICBlbHNlIGNvdXQ8PCJYQVUiOwogICAgCglyZXR1cm4gMDsKfQ==