class Calc0102 def initialize(args) args = args.map { |l| l.chomp.split(/\s+/) } @ns = args.shift.map(&:to_i) end def calc @ns.inject(:^) & 3 == 0 end def run calc ? 'Jiro' : 'Taro' end end puts Calc0102.new(STDIN.readlines).run if __FILE__ == $0