import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    String tbdLine = "2019/05/01";
    String ans = "";
    if (str.compareTo(tbdLine) < 0) {
      ans = "Heisei";
    } else if (str.compareTo(tbdLine) >= 0) {
      ans = "TBD";
    }
    System.out.println(ans);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    String tbdLine = "2019/05/01";
    String ans = "";
    if (str.compareTo(tbdLine) < 0) {
      ans = "Heisei";
    } else if (str.compareTo(tbdLine) >= 0) {
      ans = "TBD";
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    String tbdLine = "2019/05/01";
    String ans = "";
    if (str.compareTo(tbdLine) < 0) {
      ans = "Heisei";
    } else if (str.compareTo(tbdLine) >= 0) {
      ans = "TBD";
    }
    System.out.println(ans);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    String tbdLine = "2019/05/01";
    String ans = "";
    if (str.compareTo(tbdLine) < 0) {
      ans = "Heisei";
    } else if (str.compareTo(tbdLine) >= 0) {
      ans = "TBD";
    }
    System.out.println(ans);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String tbdLine = "2019/05/01"; tbdLine "2019/05/01" String ans = ""; ans "" if (str.compareTo(tbdLine) < 0) {
      ans = "Heisei";
    } else if (str.compareTo(tbdLine) >= 0) {
      ans = "TBD";
    } str.compareTo(tbdLine) < 0 str.compareTo(tbdLine) str.compareTo str tbdLine 0 {
      ans = "Heisei";
    } ans = "Heisei" ans "Heisei" if (str.compareTo(tbdLine) >= 0) {
      ans = "TBD";
    } str.compareTo(tbdLine) >= 0 str.compareTo(tbdLine) str.compareTo str tbdLine 0 {
      ans = "TBD";
    } ans = "TBD" ans "TBD" System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    String tbdLine = "2019/05/01";
    String ans = "";
    if (str.compareTo(tbdLine) < 0) {
      ans = "Heisei";
    } else if (str.compareTo(tbdLine) >= 0) {
      ans = "TBD";
    }
    System.out.println(ans);
  }
}