import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner s = new Scanner(System.in);
      	String D = s.next(), m = D.substring(5,7);
      	if(m.equals("01") || m.equals("02") || m.equals("03") || m.equals("04")){
          System.out.println("Heisei");
        } else System.out.println("TBD");
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception {
		Scanner s = new Scanner(System.in);
      	String D = s.next(), m = D.substring(5,7);
      	if(m.equals("01") || m.equals("02") || m.equals("03") || m.equals("04")){
          System.out.println("Heisei");
        } else System.out.println("TBD");
	}
} Main public static void main(String[] args) throws Exception {
		Scanner s = new Scanner(System.in);
      	String D = s.next(), m = D.substring(5,7);
      	if(m.equals("01") || m.equals("02") || m.equals("03") || m.equals("04")){
          System.out.println("Heisei");
        } else System.out.println("TBD");
	} main {
		Scanner s = new Scanner(System.in);
      	String D = s.next(), m = D.substring(5,7);
      	if(m.equals("01") || m.equals("02") || m.equals("03") || m.equals("04")){
          System.out.println("Heisei");
        } else System.out.println("TBD");
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) String D = s.next() D s.next() s.next s m = D.substring(5,7); m D.substring(5,7) D.substring D 5 7 if(m.equals("01") || m.equals("02") || m.equals("03") || m.equals("04")){
          System.out.println("Heisei");
        } else System.out.println("TBD"); m.equals("01") || m.equals("02") || m.equals("03") || m.equals("04") m.equals("03") m.equals("01") || m.equals("02") || m.equals("03") || m.equals("04") m.equals("01") m.equals m "01" m.equals("02") m.equals m "02" m.equals("03") m.equals m "03" m.equals("04") m.equals m "04" {
          System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" 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) throws Exception {
		Scanner s = new Scanner(System.in);
      	String D = s.next(), m = D.substring(5,7);
      	if(m.equals("01") || m.equals("02") || m.equals("03") || m.equals("04")){
          System.out.println("Heisei");
        } else System.out.println("TBD");
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner s = new Scanner(System.in);
      	String D = s.next(), m = D.substring(5,7);
      	if(m.equals("01") || m.equals("02") || m.equals("03") || m.equals("04")){
          System.out.println("Heisei");
        } else System.out.println("TBD");
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner s = new Scanner(System.in);
      	String D = s.next(), m = D.substring(5,7);
      	if(m.equals("01") || m.equals("02") || m.equals("03") || m.equals("04")){
          System.out.println("Heisei");
        } else System.out.println("TBD");
	}
}
