import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {
  public static void main(String[] args) throws ParseException {
    try (Scanner sc = new Scanner(System.in);) {
      String input = sc.next();

      SimpleDateFormat sdFormat1 = new SimpleDateFormat("yyyy/MM/dd");
      Date date = sdFormat1.parse(input);

      SimpleDateFormat sdFormat2 = new SimpleDateFormat("yyyy/MM/dd");
      Date heiseiDate = sdFormat2.parse("2019/04/30");

      String answer = heiseiDate.compareTo(date) < 0 ? "TBD" : "Heisei";
      System.out.println(answer);
    }
  }
} import java.text.ParseException; ParseException java.text import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.Date; Date java.util import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) throws ParseException {
    try (Scanner sc = new Scanner(System.in);) {
      String input = sc.next();

      SimpleDateFormat sdFormat1 = new SimpleDateFormat("yyyy/MM/dd");
      Date date = sdFormat1.parse(input);

      SimpleDateFormat sdFormat2 = new SimpleDateFormat("yyyy/MM/dd");
      Date heiseiDate = sdFormat2.parse("2019/04/30");

      String answer = heiseiDate.compareTo(date) < 0 ? "TBD" : "Heisei";
      System.out.println(answer);
    }
  }
} Main public static void main(String[] args) throws ParseException {
    try (Scanner sc = new Scanner(System.in);) {
      String input = sc.next();

      SimpleDateFormat sdFormat1 = new SimpleDateFormat("yyyy/MM/dd");
      Date date = sdFormat1.parse(input);

      SimpleDateFormat sdFormat2 = new SimpleDateFormat("yyyy/MM/dd");
      Date heiseiDate = sdFormat2.parse("2019/04/30");

      String answer = heiseiDate.compareTo(date) < 0 ? "TBD" : "Heisei";
      System.out.println(answer);
    }
  } main {
    try (Scanner sc = new Scanner(System.in);) {
      String input = sc.next();

      SimpleDateFormat sdFormat1 = new SimpleDateFormat("yyyy/MM/dd");
      Date date = sdFormat1.parse(input);

      SimpleDateFormat sdFormat2 = new SimpleDateFormat("yyyy/MM/dd");
      Date heiseiDate = sdFormat2.parse("2019/04/30");

      String answer = heiseiDate.compareTo(date) < 0 ? "TBD" : "Heisei";
      System.out.println(answer);
    }
  } try (Scanner sc = new Scanner(System.in);) {
      String input = sc.next();

      SimpleDateFormat sdFormat1 = new SimpleDateFormat("yyyy/MM/dd");
      Date date = sdFormat1.parse(input);

      SimpleDateFormat sdFormat2 = new SimpleDateFormat("yyyy/MM/dd");
      Date heiseiDate = sdFormat2.parse("2019/04/30");

      String answer = heiseiDate.compareTo(date) < 0 ? "TBD" : "Heisei";
      System.out.println(answer);
    } {
      String input = sc.next();

      SimpleDateFormat sdFormat1 = new SimpleDateFormat("yyyy/MM/dd");
      Date date = sdFormat1.parse(input);

      SimpleDateFormat sdFormat2 = new SimpleDateFormat("yyyy/MM/dd");
      Date heiseiDate = sdFormat2.parse("2019/04/30");

      String answer = heiseiDate.compareTo(date) < 0 ? "TBD" : "Heisei";
      System.out.println(answer);
    } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) String input = sc.next(); input sc.next() sc.next sc SimpleDateFormat sdFormat1 = new SimpleDateFormat("yyyy/MM/dd"); sdFormat1 new SimpleDateFormat("yyyy/MM/dd") Date date = sdFormat1.parse(input); date sdFormat1.parse(input) sdFormat1.parse sdFormat1 input SimpleDateFormat sdFormat2 = new SimpleDateFormat("yyyy/MM/dd"); sdFormat2 new SimpleDateFormat("yyyy/MM/dd") Date heiseiDate = sdFormat2.parse("2019/04/30"); heiseiDate sdFormat2.parse("2019/04/30") sdFormat2.parse sdFormat2 "2019/04/30" String answer = heiseiDate.compareTo(date) < 0 ? "TBD" : "Heisei"; answer heiseiDate.compareTo(date) < 0 ? "TBD" : "Heisei" heiseiDate.compareTo(date) < 0 heiseiDate.compareTo(date) heiseiDate.compareTo heiseiDate date 0 "TBD" "Heisei" System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
  public static void main(String[] args) throws ParseException {
    try (Scanner sc = new Scanner(System.in);) {
      String input = sc.next();

      SimpleDateFormat sdFormat1 = new SimpleDateFormat("yyyy/MM/dd");
      Date date = sdFormat1.parse(input);

      SimpleDateFormat sdFormat2 = new SimpleDateFormat("yyyy/MM/dd");
      Date heiseiDate = sdFormat2.parse("2019/04/30");

      String answer = heiseiDate.compareTo(date) < 0 ? "TBD" : "Heisei";
      System.out.println(answer);
    }
  }
} public class Main {
  public static void main(String[] args) throws ParseException {
    try (Scanner sc = new Scanner(System.in);) {
      String input = sc.next();

      SimpleDateFormat sdFormat1 = new SimpleDateFormat("yyyy/MM/dd");
      Date date = sdFormat1.parse(input);

      SimpleDateFormat sdFormat2 = new SimpleDateFormat("yyyy/MM/dd");
      Date heiseiDate = sdFormat2.parse("2019/04/30");

      String answer = heiseiDate.compareTo(date) < 0 ? "TBD" : "Heisei";
      System.out.println(answer);
    }
  }
} Main
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {
  public static void main(String[] args) throws ParseException {
    try (Scanner sc = new Scanner(System.in);) {
      String input = sc.next();

      SimpleDateFormat sdFormat1 = new SimpleDateFormat("yyyy/MM/dd");
      Date date = sdFormat1.parse(input);

      SimpleDateFormat sdFormat2 = new SimpleDateFormat("yyyy/MM/dd");
      Date heiseiDate = sdFormat2.parse("2019/04/30");

      String answer = heiseiDate.compareTo(date) < 0 ? "TBD" : "Heisei";
      System.out.println(answer);
    }
  }
}