t = gets.to_i t.times do a = gets.split.map(&:to_i) print "Hitsuji ga " print a[2] + 1 puts " hiki" end