import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((Integer.parseInt(S.substring(5, 7)) <= 4) ? "Heisei" : "TBD");
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((Integer.parseInt(S.substring(5, 7)) <= 4) ? "Heisei" : "TBD");
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((Integer.parseInt(S.substring(5, 7)) <= 4) ? "Heisei" : "TBD");
  } main {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((Integer.parseInt(S.substring(5, 7)) <= 4) ? "Heisei" : "TBD");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc System.out.println((Integer.parseInt(S.substring(5, 7)) <= 4) ? "Heisei" : "TBD") System.out.println System.out System System.out (Integer.parseInt(S.substring(5, 7)) <= 4) ? "Heisei" : "TBD" (Integer.parseInt(S.substring(5, 7)) <= 4) Integer.parseInt(S.substring(5, 7)) Integer.parseInt Integer S.substring(5, 7) S.substring S 5 7 4 "Heisei" "TBD" String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((Integer.parseInt(S.substring(5, 7)) <= 4) ? "Heisei" : "TBD");
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((Integer.parseInt(S.substring(5, 7)) <= 4) ? "Heisei" : "TBD");
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((Integer.parseInt(S.substring(5, 7)) <= 4) ? "Heisei" : "TBD");
  }
}