import java.util.*;
public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    String[] data = new String[2];

    data[0] = "2019/04/30";
    data[1] = sc.nextLine();

    Arrays.sort(data);

    if (data[1].equals("2019/04/30")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    String[] data = new String[2];

    data[0] = "2019/04/30";
    data[1] = sc.nextLine();

    Arrays.sort(data);

    if (data[1].equals("2019/04/30")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} Main public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    String[] data = new String[2];

    data[0] = "2019/04/30";
    data[1] = sc.nextLine();

    Arrays.sort(data);

    if (data[1].equals("2019/04/30")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String[] data = new String[2];

    data[0] = "2019/04/30";
    data[1] = sc.nextLine();

    Arrays.sort(data);

    if (data[1].equals("2019/04/30")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] data = new String[2]; data new String[2] 2 data[0] = "2019/04/30" data[0] data 0 "2019/04/30" data[1] = sc.nextLine() data[1] data 1 sc.nextLine() sc.nextLine sc Arrays.sort(data) Arrays.sort Arrays data if (data[1].equals("2019/04/30")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    } data[1].equals("2019/04/30") data[1].equals data[1] data 1 "2019/04/30" {
      System.out.println("Heisei");
    } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
      System.out.println("TBD");
    } System.out.println("TBD") System.out.println System.out System System.out "TBD" String args[] args public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    String[] data = new String[2];

    data[0] = "2019/04/30";
    data[1] = sc.nextLine();

    Arrays.sort(data);

    if (data[1].equals("2019/04/30")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    String[] data = new String[2];

    data[0] = "2019/04/30";
    data[1] = sc.nextLine();

    Arrays.sort(data);

    if (data[1].equals("2019/04/30")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} Main
import java.util.*;
public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    String[] data = new String[2];

    data[0] = "2019/04/30";
    data[1] = sc.nextLine();

    Arrays.sort(data);

    if (data[1].equals("2019/04/30")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
}
