#include <bits/stdc++.h>
using namespace std;
long long a,b;
//chuongtrinhcon
long long ucln(long long a,long long b)
{
if (b==0) return(a);
else return(ucln(b,a%b));
}
int main()
{
cin>>a>>b;
if (ucln(a,b)==1) cout<<"Toi gian";
else cout<<"Khong toi gian";
return 0;
}