import java.text.SimpleDateFormat;
import java.util.*;

public class Main {

  static Scanner sc = new Scanner(System.in);

  public static void main(String[] args) throws Exception {

    String S = sc.next();

    SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    Date d = sdFormat.parse(S);

    Date d2 = sdFormat.parse("2019/04/30");

    if (d.compareTo(d2) <= 0) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }

  }

} import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.*; util.* java public class Main {

  static Scanner sc = new Scanner(System.in);

  public static void main(String[] args) throws Exception {

    String S = sc.next();

    SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    Date d = sdFormat.parse(S);

    Date d2 = sdFormat.parse("2019/04/30");

    if (d.compareTo(d2) <= 0) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }

  }

} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) throws Exception {

    String S = sc.next();

    SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    Date d = sdFormat.parse(S);

    Date d2 = sdFormat.parse("2019/04/30");

    if (d.compareTo(d2) <= 0) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }

  } main {

    String S = sc.next();

    SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    Date d = sdFormat.parse(S);

    Date d2 = sdFormat.parse("2019/04/30");

    if (d.compareTo(d2) <= 0) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }

  } String S = sc.next(); S sc.next() sc.next sc SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd"); sdFormat new SimpleDateFormat("yyyy/MM/dd") Date d = sdFormat.parse(S); d sdFormat.parse(S) sdFormat.parse sdFormat S Date d2 = sdFormat.parse("2019/04/30"); d2 sdFormat.parse("2019/04/30") sdFormat.parse sdFormat "2019/04/30" if (d.compareTo(d2) <= 0) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    } d.compareTo(d2) <= 0 d.compareTo(d2) d.compareTo d d2 0 {
      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 {

  static Scanner sc = new Scanner(System.in);

  public static void main(String[] args) throws Exception {

    String S = sc.next();

    SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    Date d = sdFormat.parse(S);

    Date d2 = sdFormat.parse("2019/04/30");

    if (d.compareTo(d2) <= 0) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }

  }

} public class Main {

  static Scanner sc = new Scanner(System.in);

  public static void main(String[] args) throws Exception {

    String S = sc.next();

    SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    Date d = sdFormat.parse(S);

    Date d2 = sdFormat.parse("2019/04/30");

    if (d.compareTo(d2) <= 0) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }

  }

} Main
import java.text.SimpleDateFormat;
import java.util.*;

public class Main {

  static Scanner sc = new Scanner(System.in);

  public static void main(String[] args) throws Exception {

    String S = sc.next();

    SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    Date d = sdFormat.parse(S);

    Date d2 = sdFormat.parse("2019/04/30");

    if (d.compareTo(d2) <= 0) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }

  }

}