import java.util.*;
import java.text.SimpleDateFormat;
import java.text.ParseException;
public class Main{
  public static void main(String[] args)throws ParseException{
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date d = f.parse(s);
    Date dh = f.parse("2019/04/30");
    if(d.getTime() > dh.getTime()){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
} import java.util.*; util.* java import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.text.ParseException; ParseException java.text public class Main{
  public static void main(String[] args)throws ParseException{
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date d = f.parse(s);
    Date dh = f.parse("2019/04/30");
    if(d.getTime() > dh.getTime()){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
} Main public static void main(String[] args)throws ParseException{
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date d = f.parse(s);
    Date dh = f.parse("2019/04/30");
    if(d.getTime() > dh.getTime()){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date d = f.parse(s);
    Date dh = f.parse("2019/04/30");
    if(d.getTime() > dh.getTime()){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd"); f new SimpleDateFormat("yyyy/MM/dd") Date d = f.parse(s); d f.parse(s) f.parse f s Date dh = f.parse("2019/04/30"); dh f.parse("2019/04/30") f.parse f "2019/04/30" if(d.getTime() > dh.getTime()){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    } d.getTime() > dh.getTime() d.getTime() d.getTime d dh.getTime() dh.getTime dh {
      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)throws ParseException{
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date d = f.parse(s);
    Date dh = f.parse("2019/04/30");
    if(d.getTime() > dh.getTime()){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
} public class Main{
  public static void main(String[] args)throws ParseException{
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date d = f.parse(s);
    Date dh = f.parse("2019/04/30");
    if(d.getTime() > dh.getTime()){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
} Main
import java.util.*;
import java.text.SimpleDateFormat;
import java.text.ParseException;
public class Main{
  public static void main(String[] args)throws ParseException{
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date d = f.parse(s);
    Date dh = f.parse("2019/04/30");
    if(d.getTime() > dh.getTime()){
      System.out.println("TBD");
    }else{
      System.out.println("Heisei");
    }
  }
}
