import java.util.*;

public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String SS = S.substring(5,7);
    if(SS.equals("01") || SS.equals("02")||SS.equals("03")||SS.equals("04")) {
      System.out.println("Heisei");
    } else {
      System.out.println("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();
    String SS = S.substring(5,7);
    if(SS.equals("01") || SS.equals("02")||SS.equals("03")||SS.equals("04")) {
      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();
    String SS = S.substring(5,7);
    if(SS.equals("01") || SS.equals("02")||SS.equals("03")||SS.equals("04")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String SS = S.substring(5,7);
    if(SS.equals("01") || SS.equals("02")||SS.equals("03")||SS.equals("04")) {
      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 String SS = S.substring(5,7); SS S.substring(5,7) S.substring S 5 7 if(SS.equals("01") || SS.equals("02")||SS.equals("03")||SS.equals("04")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    } SS.equals("01") || SS.equals("02")||SS.equals("03")||SS.equals("04") SS.equals("03") SS.equals("01") || SS.equals("02")||SS.equals("03")||SS.equals("04") SS.equals("01") SS.equals SS "01" SS.equals("02") SS.equals SS "02" SS.equals("03") SS.equals SS "03" SS.equals("04") SS.equals SS "04" {
      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();
    String SS = S.substring(5,7);
    if(SS.equals("01") || SS.equals("02")||SS.equals("03")||SS.equals("04")) {
      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();
    String SS = S.substring(5,7);
    if(SS.equals("01") || SS.equals("02")||SS.equals("03")||SS.equals("04")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String SS = S.substring(5,7);
    if(SS.equals("01") || SS.equals("02")||SS.equals("03")||SS.equals("04")) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
}