#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
struct gold{
int x,y;
};
int cmp(gold a,gold b)
{
return a.y<b.y;
}
int main()
{
gold golds[52];
int g,n,temp,time,flag;
cin>>g;
for(int i=0;i<g;i++)
{
cin>>n;
temp=0;
time=0;
flag=1;
for(int j=0;j<n;j++)
{
cin>>golds[j].x>>golds[j].y;
}
sort(golds,golds+n,cmp);
for(int j=0;j<n;j++)
{
if(golds[j].y-time>=abs(golds[j].x-temp))
{
temp=golds[j].x;
time=golds[j].y;
}
else
{
flag=0;
break;
}
}
if(flag==0)
{
cout<<"Notabletocatch"<<endl;
}
else
{
cout<<"Abletocatch"<<endl;
}
}
return 0;
}