N,K=map(int,input().split())
l=[int(x) for x in input().split()]
l.sort(reverse=True)
a=l[0]
c=0
while(K>=a):
  K=K-a
  c=c+1
if K==0:
  if c%2!=0:
    print("Taro")
  else:
    print("Jiro")
else:
  if K in l:
    c=c+1
    if c%2!=0:
      print("Taro")
    else:
      print("Jiro")