import java.util.*;
import java.text.*;
import java.io.*;
 
public class Main{
  public static void main(String[] args) throws ParseException,IOException {
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date heisei = f.parse("2019/04/30");
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    Date d = f.parse(in.readLine());
    if(d.after(heisei)) {
      System.out.println("TBD");
    }
    else {
      System.out.println("Heisei");
    }
  }
} import java.util.*; util.* java import java.text.*; text.* java import java.io.*; io.* java public class Main{
  public static void main(String[] args) throws ParseException,IOException {
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date heisei = f.parse("2019/04/30");
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    Date d = f.parse(in.readLine());
    if(d.after(heisei)) {
      System.out.println("TBD");
    }
    else {
      System.out.println("Heisei");
    }
  }
} Main public static void main(String[] args) throws ParseException,IOException {
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date heisei = f.parse("2019/04/30");
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    Date d = f.parse(in.readLine());
    if(d.after(heisei)) {
      System.out.println("TBD");
    }
    else {
      System.out.println("Heisei");
    }
  } main {
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date heisei = f.parse("2019/04/30");
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    Date d = f.parse(in.readLine());
    if(d.after(heisei)) {
      System.out.println("TBD");
    }
    else {
      System.out.println("Heisei");
    }
  } SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd"); f new SimpleDateFormat("yyyy/MM/dd") Date heisei = f.parse("2019/04/30"); heisei f.parse("2019/04/30") f.parse f "2019/04/30" BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) Date d = f.parse(in.readLine()); d f.parse(in.readLine()) f.parse f in.readLine() in.readLine in if(d.after(heisei)) {
      System.out.println("TBD");
    }
    else {
      System.out.println("Heisei");
    } d.after(heisei) d.after d heisei {
      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,IOException {
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date heisei = f.parse("2019/04/30");
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    Date d = f.parse(in.readLine());
    if(d.after(heisei)) {
      System.out.println("TBD");
    }
    else {
      System.out.println("Heisei");
    }
  }
} public class Main{
  public static void main(String[] args) throws ParseException,IOException {
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date heisei = f.parse("2019/04/30");
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    Date d = f.parse(in.readLine());
    if(d.after(heisei)) {
      System.out.println("TBD");
    }
    else {
      System.out.println("Heisei");
    }
  }
} Main
import java.util.*;
import java.text.*;
import java.io.*;
 
public class Main{
  public static void main(String[] args) throws ParseException,IOException {
    SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
    Date heisei = f.parse("2019/04/30");
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    Date d = f.parse(in.readLine());
    if(d.after(heisei)) {
      System.out.println("TBD");
    }
    else {
      System.out.println("Heisei");
    }
  }
}