import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] date =  sc.next().toCharArray();
    int month = (date[5] - 48) * 10 + date[6] - 48;
    if(month >= 5){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] date =  sc.next().toCharArray();
    int month = (date[5] - 48) * 10 + date[6] - 48;
    if(month >= 5){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] date =  sc.next().toCharArray();
    int month = (date[5] - 48) * 10 + date[6] - 48;
    if(month >= 5){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    char[] date =  sc.next().toCharArray();
    int month = (date[5] - 48) * 10 + date[6] - 48;
    if(month >= 5){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] date =  sc.next().toCharArray(); date sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int month = (date[5] - 48) * 10 + date[6] - 48; month (date[5] - 48) * 10 + date[6] - 48 (date[5] - 48) * 10 + date[6] (date[5] - 48) * 10 (date[5] - 48) date[5] date 5 48 10 date[6] date 6 48 if(month >= 5){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    } month >= 5 month 5 {
      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;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] date =  sc.next().toCharArray();
    int month = (date[5] - 48) * 10 + date[6] - 48;
    if(month >= 5){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
}