h,w= gets.split(" ").map(&:to_i) if h > w then print "TATE\n" else print "YOKO\n" end