import java.util.* ;
class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);

    String s = scan.next();
    
    int s1 = Integer.parseInt(s.substring(5,7));
   // int s2 =Integer.parseInt(s.substring(8,10));
    if(s1>4){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
    
    
    
  }
} import java.util.* ; util.* java class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);

    String s = scan.next();
    
    int s1 = Integer.parseInt(s.substring(5,7));
   // int s2 =Integer.parseInt(s.substring(8,10));
    if(s1>4){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
    
    
    
  }
} Main public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);

    String s = scan.next();
    
    int s1 = Integer.parseInt(s.substring(5,7));
   // int s2 =Integer.parseInt(s.substring(8,10));
    if(s1>4){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
    
    
    
  } main {
    
    Scanner scan = new Scanner(System.in);

    String s = scan.next();
    
    int s1 = Integer.parseInt(s.substring(5,7));
   // int s2 =Integer.parseInt(s.substring(8,10));
    if(s1>4){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
    
    
    
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan int s1 = Integer.parseInt(s.substring(5,7)); s1 Integer.parseInt(s.substring(5,7)) Integer.parseInt Integer s.substring(5,7) s.substring s 5 7 if(s1>4){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    } s1>4 s1 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.* ;
class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);

    String s = scan.next();
    
    int s1 = Integer.parseInt(s.substring(5,7));
   // int s2 =Integer.parseInt(s.substring(8,10));
    if(s1>4){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
    
    
    
  }
}