import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    String line = scanner.nextLine().trim();
    String[] fields = line.split("/");
    if (10000 * Integer.parseInt(fields[0]) + 100 * Integer.parseInt(fields[1]) + Integer.parseInt(fields[2]) <= 20190430) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    String line = scanner.nextLine().trim();
    String[] fields = line.split("/");
    if (10000 * Integer.parseInt(fields[0]) + 100 * Integer.parseInt(fields[1]) + Integer.parseInt(fields[2]) <= 20190430) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    String line = scanner.nextLine().trim();
    String[] fields = line.split("/");
    if (10000 * Integer.parseInt(fields[0]) + 100 * Integer.parseInt(fields[1]) + Integer.parseInt(fields[2]) <= 20190430) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  } main {
    Scanner scanner = new Scanner(System.in);
    String line = scanner.nextLine().trim();
    String[] fields = line.split("/");
    if (10000 * Integer.parseInt(fields[0]) + 100 * Integer.parseInt(fields[1]) + Integer.parseInt(fields[2]) <= 20190430) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String line = scanner.nextLine().trim(); line scanner.nextLine().trim() scanner.nextLine().trim scanner.nextLine() scanner.nextLine scanner String[] fields = line.split("/"); fields line.split("/") line.split line "/" if (10000 * Integer.parseInt(fields[0]) + 100 * Integer.parseInt(fields[1]) + Integer.parseInt(fields[2]) <= 20190430) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    } 10000 * Integer.parseInt(fields[0]) + 100 * Integer.parseInt(fields[1]) + Integer.parseInt(fields[2]) <= 20190430 10000 * Integer.parseInt(fields[0]) + 100 * Integer.parseInt(fields[1]) + Integer.parseInt(fields[2]) 10000 * Integer.parseInt(fields[0]) + 100 * Integer.parseInt(fields[1]) + Integer.parseInt(fields[2]) 10000 * Integer.parseInt(fields[0]) 10000 Integer.parseInt(fields[0]) Integer.parseInt Integer fields[0] fields 0 100 * Integer.parseInt(fields[1]) 100 Integer.parseInt(fields[1]) Integer.parseInt Integer fields[1] fields 1 Integer.parseInt(fields[2]) Integer.parseInt Integer fields[2] fields 2 20190430 {
      System.out.println("Heisei");
    } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
      System.out.println("TBD");
    } System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    String line = scanner.nextLine().trim();
    String[] fields = line.split("/");
    if (10000 * Integer.parseInt(fields[0]) + 100 * Integer.parseInt(fields[1]) + Integer.parseInt(fields[2]) <= 20190430) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    String line = scanner.nextLine().trim();
    String[] fields = line.split("/");
    if (10000 * Integer.parseInt(fields[0]) + 100 * Integer.parseInt(fields[1]) + Integer.parseInt(fields[2]) <= 20190430) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    String line = scanner.nextLine().trim();
    String[] fields = line.split("/");
    if (10000 * Integer.parseInt(fields[0]) + 100 * Integer.parseInt(fields[1]) + Integer.parseInt(fields[2]) <= 20190430) {
      System.out.println("Heisei");
    } else {
      System.out.println("TBD");
    }
  }
}
