import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	String a = sc.next();
    String b = a.substring(5,7);
    int n = Integer.parseInt(b);
    if (n>4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  }
} import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	String a = sc.next();
    String b = a.substring(5,7);
    int n = Integer.parseInt(b);
    if (n>4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	String a = sc.next();
    String b = a.substring(5,7);
    int n = Integer.parseInt(b);
    if (n>4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  } main {
    Scanner sc = new Scanner(System.in);
	String a = sc.next();
    String b = a.substring(5,7);
    int n = Integer.parseInt(b);
    if (n>4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = a.substring(5,7); b a.substring(5,7) a.substring a 5 7 int n = Integer.parseInt(b); n Integer.parseInt(b) Integer.parseInt Integer b if (n>4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    } n>4 n 4 {
      System.out.println("TBD");
    } System.out.println("TBD") System.out.println System.out System System.out "TBD" {
      System.out.println("Heisei");
    } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" String[] args args
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	String a = sc.next();
    String b = a.substring(5,7);
    int n = Integer.parseInt(b);
    if (n>4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  }
}