#include<bits/stdc++.h>
using namespace std;
int main(){
int g;
cin>>g;
int n;
for (int j=0;j<g;j++)
{
Fr: ;
cin>>n;
pair<int,int> a[n];
for (int i=0;i<n;i++)
{
cin>>a[i].second>>a[i].first;
}
if (g-j>1)
{
goto Fr;
}
else
{
goto Ba;
}
Ba: ;
sort(a,a+n);
for (int i=0;i<n-1;i++)
{
if (abs(a[i].second-a[i+1].second)<abs(a[i].first-a[i+1].first))
{
cout<<"Notabletocatch"<<endl;
goto ed;
}
}
cout<<"Abletocatch"<<endl;
ed: ;
}
return 0;
}