import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    DateTimeFormatter sdf = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate reiwa = LocalDate.of(2019, 5, 1);

    LocalDate d = LocalDate.parse(S, sdf);
    if (d.isBefore(reiwa)) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} import java.time.LocalDate; LocalDate java.time import java.time.format.DateTimeFormatter; DateTimeFormatter java.time.format import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    DateTimeFormatter sdf = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate reiwa = LocalDate.of(2019, 5, 1);

    LocalDate d = LocalDate.parse(S, sdf);
    if (d.isBefore(reiwa)) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    DateTimeFormatter sdf = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate reiwa = LocalDate.of(2019, 5, 1);

    LocalDate d = LocalDate.parse(S, sdf);
    if (d.isBefore(reiwa)) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    DateTimeFormatter sdf = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate reiwa = LocalDate.of(2019, 5, 1);

    LocalDate d = LocalDate.parse(S, sdf);
    if (d.isBefore(reiwa)) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc DateTimeFormatter sdf = DateTimeFormatter.ofPattern("yyyy/MM/dd"); sdf DateTimeFormatter.ofPattern("yyyy/MM/dd") DateTimeFormatter.ofPattern DateTimeFormatter "yyyy/MM/dd" LocalDate reiwa = LocalDate.of(2019, 5, 1); reiwa LocalDate.of(2019, 5, 1) LocalDate.of LocalDate 2019 5 1 LocalDate d = LocalDate.parse(S, sdf); d LocalDate.parse(S, sdf) LocalDate.parse LocalDate S sdf if (d.isBefore(reiwa)) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    } d.isBefore(reiwa) d.isBefore d reiwa {
      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 S = sc.next();
    DateTimeFormatter sdf = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate reiwa = LocalDate.of(2019, 5, 1);

    LocalDate d = LocalDate.parse(S, sdf);
    if (d.isBefore(reiwa)) {
      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 S = sc.next();
    DateTimeFormatter sdf = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate reiwa = LocalDate.of(2019, 5, 1);

    LocalDate d = LocalDate.parse(S, sdf);
    if (d.isBefore(reiwa)) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} Main
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    DateTimeFormatter sdf = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate reiwa = LocalDate.of(2019, 5, 1);

    LocalDate d = LocalDate.parse(S, sdf);
    if (d.isBefore(reiwa)) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
}
