import java.util.Scanner;

public class Main{
  public static void heisei(){
    System.out.println("Heisei");
  }

  public static void tbd(){
    System.out.println("TBD");
  }


  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    String ss = s.replace("/","");

    if(ss.compareTo("20190430")<=0){
      heisei();
    }else{
      tbd();
    }

  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void heisei(){
    System.out.println("Heisei");
  }

  public static void tbd(){
    System.out.println("TBD");
  }


  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    String ss = s.replace("/","");

    if(ss.compareTo("20190430")<=0){
      heisei();
    }else{
      tbd();
    }

  }
} Main public static void heisei(){
    System.out.println("Heisei");
  } heisei {
    System.out.println("Heisei");
  } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" public static void tbd(){
    System.out.println("TBD");
  } tbd {
    System.out.println("TBD");
  } System.out.println("TBD") System.out.println System.out System System.out "TBD" public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    String ss = s.replace("/","");

    if(ss.compareTo("20190430")<=0){
      heisei();
    }else{
      tbd();
    }

  } main {
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    String ss = s.replace("/","");

    if(ss.compareTo("20190430")<=0){
      heisei();
    }else{
      tbd();
    }

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String ss = s.replace("/",""); ss s.replace("/","") s.replace s "/" "" if(ss.compareTo("20190430")<=0){
      heisei();
    }else{
      tbd();
    } ss.compareTo("20190430")<=0 ss.compareTo("20190430") ss.compareTo ss "20190430" 0 {
      heisei();
    } heisei() heisei {
      tbd();
    } tbd() tbd String[] args args public class Main{
  public static void heisei(){
    System.out.println("Heisei");
  }

  public static void tbd(){
    System.out.println("TBD");
  }


  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    String ss = s.replace("/","");

    if(ss.compareTo("20190430")<=0){
      heisei();
    }else{
      tbd();
    }

  }
} public class Main{
  public static void heisei(){
    System.out.println("Heisei");
  }

  public static void tbd(){
    System.out.println("TBD");
  }


  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    String ss = s.replace("/","");

    if(ss.compareTo("20190430")<=0){
      heisei();
    }else{
      tbd();
    }

  }
} Main
import java.util.Scanner;

public class Main{
  public static void heisei(){
    System.out.println("Heisei");
  }

  public static void tbd(){
    System.out.println("TBD");
  }


  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    String ss = s.replace("/","");

    if(ss.compareTo("20190430")<=0){
      heisei();
    }else{
      tbd();
    }

  }
}