import java.util.Scanner;

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

    while (in.hasNext()) {
      String[] date = in.next().split("/");
      int year = Integer.valueOf(date[0]);
      int month = Integer.valueOf(date[1]);
      int day = Integer.valueOf(date[2]);

      if (year < 2019) {
          System.out.println("Heisei");
      } else if (year == 2019 && month <= 4) {
          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 in = new Scanner(System.in);

    while (in.hasNext()) {
      String[] date = in.next().split("/");
      int year = Integer.valueOf(date[0]);
      int month = Integer.valueOf(date[1]);
      int day = Integer.valueOf(date[2]);

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

    while (in.hasNext()) {
      String[] date = in.next().split("/");
      int year = Integer.valueOf(date[0]);
      int month = Integer.valueOf(date[1]);
      int day = Integer.valueOf(date[2]);

      if (year < 2019) {
          System.out.println("Heisei");
      } else if (year == 2019 && month <= 4) {
          System.out.println("Heisei");
      } else {
          System.out.println("TBD");
      }
    }
  } main {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      String[] date = in.next().split("/");
      int year = Integer.valueOf(date[0]);
      int month = Integer.valueOf(date[1]);
      int day = Integer.valueOf(date[2]);

      if (year < 2019) {
          System.out.println("Heisei");
      } else if (year == 2019 && month <= 4) {
          System.out.println("Heisei");
      } else {
          System.out.println("TBD");
      }
    }
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) while (in.hasNext()) {
      String[] date = in.next().split("/");
      int year = Integer.valueOf(date[0]);
      int month = Integer.valueOf(date[1]);
      int day = Integer.valueOf(date[2]);

      if (year < 2019) {
          System.out.println("Heisei");
      } else if (year == 2019 && month <= 4) {
          System.out.println("Heisei");
      } else {
          System.out.println("TBD");
      }
    } in.hasNext() in.hasNext in {
      String[] date = in.next().split("/");
      int year = Integer.valueOf(date[0]);
      int month = Integer.valueOf(date[1]);
      int day = Integer.valueOf(date[2]);

      if (year < 2019) {
          System.out.println("Heisei");
      } else if (year == 2019 && month <= 4) {
          System.out.println("Heisei");
      } else {
          System.out.println("TBD");
      }
    } String[] date = in.next().split("/"); date in.next().split("/") in.next().split in.next() in.next in "/" int year = Integer.valueOf(date[0]); year Integer.valueOf(date[0]) Integer.valueOf Integer date[0] date 0 int month = Integer.valueOf(date[1]); month Integer.valueOf(date[1]) Integer.valueOf Integer date[1] date 1 int day = Integer.valueOf(date[2]); day Integer.valueOf(date[2]) Integer.valueOf Integer date[2] date 2 if (year < 2019) {
          System.out.println("Heisei");
      } else if (year == 2019 && month <= 4) {
          System.out.println("Heisei");
      } else {
          System.out.println("TBD");
      } year < 2019 year 2019 {
          System.out.println("Heisei");
      } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if (year == 2019 && month <= 4) {
          System.out.println("Heisei");
      } else {
          System.out.println("TBD");
      } year == 2019 && month <= 4 year == 2019 year 2019 month <= 4 month 4 {
          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 in = new Scanner(System.in);

    while (in.hasNext()) {
      String[] date = in.next().split("/");
      int year = Integer.valueOf(date[0]);
      int month = Integer.valueOf(date[1]);
      int day = Integer.valueOf(date[2]);

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

    while (in.hasNext()) {
      String[] date = in.next().split("/");
      int year = Integer.valueOf(date[0]);
      int month = Integer.valueOf(date[1]);
      int day = Integer.valueOf(date[2]);

      if (year < 2019) {
          System.out.println("Heisei");
      } else if (year == 2019 && month <= 4) {
          System.out.println("Heisei");
      } else {
          System.out.println("TBD");
      }
    }
  }
} Main
import java.util.Scanner;

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

    while (in.hasNext()) {
      String[] date = in.next().split("/");
      int year = Integer.valueOf(date[0]);
      int month = Integer.valueOf(date[1]);
      int day = Integer.valueOf(date[2]);

      if (year < 2019) {
          System.out.println("Heisei");
      } else if (year == 2019 && month <= 4) {
          System.out.println("Heisei");
      } else {
          System.out.println("TBD");
      }
    }
  }
}