import java.util.*;
import java.io.*;

public class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] s = br.readLine().split("/");
    
    if(Integer.parseInt(s[1]) <= 4){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] s = br.readLine().split("/");
    
    if(Integer.parseInt(s[1]) <= 4){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
} Main public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] s = br.readLine().split("/");
    
    if(Integer.parseInt(s[1]) <= 4){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] s = br.readLine().split("/");
    
    if(Integer.parseInt(s[1]) <= 4){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] s = br.readLine().split("/"); s br.readLine().split("/") br.readLine().split br.readLine() br.readLine br "/" if(Integer.parseInt(s[1]) <= 4){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    } Integer.parseInt(s[1]) <= 4 Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 4 {
      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) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] s = br.readLine().split("/");
    
    if(Integer.parseInt(s[1]) <= 4){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
} public class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] s = br.readLine().split("/");
    
    if(Integer.parseInt(s[1]) <= 4){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
} Main
import java.util.*;
import java.io.*;

public class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] s = br.readLine().split("/");
    
    if(Integer.parseInt(s[1]) <= 4){
      System.out.println("Heisei");
    }else{
      System.out.println("TBD");
    }
  }
}