import java.util.*;

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

    String strDate = sc.next();

    String[] dates = strDate.split("/");
    int month = Integer.parseInt(dates[1]);

    if (month > 4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String strDate = sc.next();

    String[] dates = strDate.split("/");
    int month = Integer.parseInt(dates[1]);

    if (month > 4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String strDate = sc.next();

    String[] dates = strDate.split("/");
    int month = Integer.parseInt(dates[1]);

    if (month > 4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  } main {
    Scanner sc = new Scanner(System.in);

    String strDate = sc.next();

    String[] dates = strDate.split("/");
    int month = Integer.parseInt(dates[1]);

    if (month > 4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String strDate = sc.next(); strDate sc.next() sc.next sc String[] dates = strDate.split("/"); dates strDate.split("/") strDate.split strDate "/" int month = Integer.parseInt(dates[1]); month Integer.parseInt(dates[1]) Integer.parseInt Integer dates[1] dates 1 if (month > 4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    } month > 4 month 4 {
      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) {
    Scanner sc = new Scanner(System.in);

    String strDate = sc.next();

    String[] dates = strDate.split("/");
    int month = Integer.parseInt(dates[1]);

    if (month > 4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String strDate = sc.next();

    String[] dates = strDate.split("/");
    int month = Integer.parseInt(dates[1]);

    if (month > 4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  }
} Main
import java.util.*;

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

    String strDate = sc.next();

    String[] dates = strDate.split("/");
    int month = Integer.parseInt(dates[1]);

    if (month > 4) {
      System.out.println("TBD");
    } else {
      System.out.println("Heisei");
    }
  }
}
