#!/usr/bin/env python3 # from typing import * import sys import io import math import collections import decimal import itertools import bisect import heapq def input(): return sys.stdin.readline()[:-1] # sys.setrecursionlimit(1000000) # _INPUT = """1 2 3 2 # """ # sys.stdin = io.StringIO(_INPUT) N1, N2, N3, N4 = map(int, input().split()) Gr = [i % 4 for i in range(14)] g = Gr[N1] ^ Gr[N2] ^ Gr[N3] ^ Gr[N4] if g == 0: print('Jiro') else: print('Taro')