import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String s[] = d.split("/");
    System.out.println(Integer.parseInt(s[1])<5 ? "Heisei" : "TBD");
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String s[] = d.split("/");
    System.out.println(Integer.parseInt(s[1])<5 ? "Heisei" : "TBD");
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String s[] = d.split("/");
    System.out.println(Integer.parseInt(s[1])<5 ? "Heisei" : "TBD");
  } main {
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String s[] = d.split("/");
    System.out.println(Integer.parseInt(s[1])<5 ? "Heisei" : "TBD");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String d = sc.next(); d sc.next() sc.next sc String s[] = d.split("/"); s d.split("/") d.split d "/" System.out.println(Integer.parseInt(s[1])<5 ? "Heisei" : "TBD") System.out.println System.out System System.out Integer.parseInt(s[1])<5 ? "Heisei" : "TBD" Integer.parseInt(s[1])<5 Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 5 "Heisei" "TBD" String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String s[] = d.split("/");
    System.out.println(Integer.parseInt(s[1])<5 ? "Heisei" : "TBD");
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String s[] = d.split("/");
    System.out.println(Integer.parseInt(s[1])<5 ? "Heisei" : "TBD");
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String s[] = d.split("/");
    System.out.println(Integer.parseInt(s[1])<5 ? "Heisei" : "TBD");
  }
}