#include<bits/stdc++.h>
#define ll long long
#define ld long double
#define pb push_back
#define ff first
#define ss second
#define sp fixed<<setprecision
#define pll pair<ll,ll>
using namespace std;
ll MOD = (1e9)+7;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int tc=1;
cin>>tc;
for(int tt=1;tt<=tc;tt++)
{
ll n,k;
cin>>n>>k;
if(n==1){cout<<"Kilani"<<endl;continue;}
if(n==2){cout<<"Ayoub"<<endl;continue;}
if(k%2)k++;
if(n>k)cout<<"Kilani"<<endl;
else
{
if(n%2==0)cout<<"Ayoub"<<endl;
else cout<<"Kilani"<<endl;
}
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KI2RlZmluZSBsbCBsb25nIGxvbmcKI2RlZmluZSBsZCBsb25nIGRvdWJsZQojZGVmaW5lIHBiIHB1c2hfYmFjawojZGVmaW5lIGZmIGZpcnN0CiNkZWZpbmUgc3Mgc2Vjb25kCiNkZWZpbmUgc3AgZml4ZWQ8PHNldHByZWNpc2lvbgojZGVmaW5lIHBsbCBwYWlyPGxsLGxsPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwpsbCBNT0QgPSAoMWU5KSs3OwppbnQgbWFpbigpCnsKICAgIGlvc19iYXNlOjpzeW5jX3dpdGhfc3RkaW8oZmFsc2UpOwogICAgY2luLnRpZShOVUxMKTsKICAgIGNvdXQudGllKE5VTEwpOwogICAgaW50IHRjPTE7CiAgICBjaW4+PnRjOwogICAgZm9yKGludCB0dD0xO3R0PD10Yzt0dCsrKQogICAgewogICAgICAgIGxsIG4sazsKICAgICAgICBjaW4+Pm4+Pms7CiAgICAgICAgaWYobj09MSl7Y291dDw8IktpbGFuaSI8PGVuZGw7Y29udGludWU7fQogICAgICAgIGlmKG49PTIpe2NvdXQ8PCJBeW91YiI8PGVuZGw7Y29udGludWU7fQogICAgICAgIGlmKGslMilrKys7CiAgICAgICAgaWYobj5rKWNvdXQ8PCJLaWxhbmkiPDxlbmRsOwogICAgICAgIGVsc2UKICAgICAgICB7CiAgICAgICAgICAgIGlmKG4lMj09MCljb3V0PDwiQXlvdWIiPDxlbmRsOwogICAgICAgICAgICBlbHNlIGNvdXQ8PCJLaWxhbmkiPDxlbmRsOwogICAgICAgIH0KICAgIH0KICAgIHJldHVybiAwOwp9