// Danny Wasserman
// 7/10/2014
// Solution to SI@UCF Week #1 Algorithms Contest Problem: True Dan

import java.util.Scanner;

public class truedan {

  // We print these.
  public static final String danny = "Danny is currently #1!";
  public static final String sawyer = "Sawyer is the best!";

  public static void main(String[] args) {

    Scanner in = new Scanner(System.in);
    int cases = in.nextInt();

    // Process cases.
    while (cases-- != 0) {

      // Read both scores.
      int dScore = in.nextInt();
      int sScore = in.nextInt();

      // Tie goes to Danny!
      if (dScore >= sScore)
        System.out.println(danny);
      else
        System.out.println(sawyer);
    }
  }
}
