import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String m = d.substring(5,7);
    if(4<Integer.parseInt(m)){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
  

  
} 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 m = d.substring(5,7);
    if(4<Integer.parseInt(m)){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
  

  
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String m = d.substring(5,7);
    if(4<Integer.parseInt(m)){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String m = d.substring(5,7);
    if(4<Integer.parseInt(m)){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String d = sc.next(); d sc.next() sc.next sc String m = d.substring(5,7); m d.substring(5,7) d.substring d 5 7 if(4<Integer.parseInt(m)){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    } 4<Integer.parseInt(m) 4 Integer.parseInt(m) Integer.parseInt Integer m {
      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 public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String m = d.substring(5,7);
    if(4<Integer.parseInt(m)){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
  

  
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String m = d.substring(5,7);
    if(4<Integer.parseInt(m)){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
  

  
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String d = sc.next();
    String m = d.substring(5,7);
    if(4<Integer.parseInt(m)){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
  

  
}
