//先到n-1的赢
#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std ;
int main()
{
int n , k;
while(scanf("%d%d",&n,&k) , n+k)
{
if((n-1)%(k+1) == 0) printf("Jiang\n") ;
else printf("Tang\n") ;
}
return 0;
}
时间: 2024-11-10 17:55:54