import java.util.*;
import java.text.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    Date date, heisei;
    try{
      date = sdf.parse(str);
      heisei = sdf.parse("2019/04/30");
      System.out.println((date.compareTo(heisei) <= 0) ? "Heisei" : "TBD");
    }catch(Exception e){
      
    }
  }
} import java.util.*; util.* java import java.text.*; text.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    Date date, heisei;
    try{
      date = sdf.parse(str);
      heisei = sdf.parse("2019/04/30");
      System.out.println((date.compareTo(heisei) <= 0) ? "Heisei" : "TBD");
    }catch(Exception e){
      
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    Date date, heisei;
    try{
      date = sdf.parse(str);
      heisei = sdf.parse("2019/04/30");
      System.out.println((date.compareTo(heisei) <= 0) ? "Heisei" : "TBD");
    }catch(Exception e){
      
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    Date date, heisei;
    try{
      date = sdf.parse(str);
      heisei = sdf.parse("2019/04/30");
      System.out.println((date.compareTo(heisei) <= 0) ? "Heisei" : "TBD");
    }catch(Exception e){
      
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); sdf new SimpleDateFormat("yyyy/MM/dd") Date date date heisei; heisei try{
      date = sdf.parse(str);
      heisei = sdf.parse("2019/04/30");
      System.out.println((date.compareTo(heisei) <= 0) ? "Heisei" : "TBD");
    }catch(Exception e){
      
    } catch(Exception e){
      
    } Exception e {
      
    } {
      date = sdf.parse(str);
      heisei = sdf.parse("2019/04/30");
      System.out.println((date.compareTo(heisei) <= 0) ? "Heisei" : "TBD");
    } date = sdf.parse(str) date sdf.parse(str) sdf.parse sdf str heisei = sdf.parse("2019/04/30") heisei sdf.parse("2019/04/30") sdf.parse sdf "2019/04/30" System.out.println((date.compareTo(heisei) <= 0) ? "Heisei" : "TBD") System.out.println System.out System System.out (date.compareTo(heisei) <= 0) ? "Heisei" : "TBD" (date.compareTo(heisei) <= 0) date.compareTo(heisei) date.compareTo date heisei 0 "Heisei" "TBD" String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    Date date, heisei;
    try{
      date = sdf.parse(str);
      heisei = sdf.parse("2019/04/30");
      System.out.println((date.compareTo(heisei) <= 0) ? "Heisei" : "TBD");
    }catch(Exception e){
      
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    Date date, heisei;
    try{
      date = sdf.parse(str);
      heisei = sdf.parse("2019/04/30");
      System.out.println((date.compareTo(heisei) <= 0) ? "Heisei" : "TBD");
    }catch(Exception e){
      
    }
  }
} Main
import java.util.*;
import java.text.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    Date date, heisei;
    try{
      date = sdf.parse(str);
      heisei = sdf.parse("2019/04/30");
      System.out.println((date.compareTo(heisei) <= 0) ? "Heisei" : "TBD");
    }catch(Exception e){
      
    }
  }
}