import java.util.*;
import java.io.*;

class Pr21
{
  public static void main (String[] args) throws Exception
  {
    Scanner scan = new Scanner(new File("pr21.dat"));
    
    int n = scan.nextInt(); // read in the number of input lines
    scan.nextLine(); // move to the next line (not really needed here but ...)
    
    for (int i=0; i<n; i++)
    {
      int first = scan.nextInt();
      int last = scan.nextInt();
      scan.nextLine(); // (not really needed here but ...)
      if (last >= first)
      {
        System.out.println("NEW HIGH SCORE");
      }
      else
      {
        System.out.println("TRY AGAIN");
      }
    }
  }
}