import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String Sei = sc.nextLine();
		String[] array = Sei.split("/");
		String Str = "";
		for(int i = 0;i < array.length;i++) {
			Str +=array[i];
		}
		int in = Integer.parseInt(Str);
		if(in <= 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) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String Sei = sc.nextLine();
		String[] array = Sei.split("/");
		String Str = "";
		for(int i = 0;i < array.length;i++) {
			Str +=array[i];
		}
		int in = Integer.parseInt(Str);
		if(in <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String Sei = sc.nextLine();
		String[] array = Sei.split("/");
		String Str = "";
		for(int i = 0;i < array.length;i++) {
			Str +=array[i];
		}
		int in = Integer.parseInt(Str);
		if(in <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String Sei = sc.nextLine();
		String[] array = Sei.split("/");
		String Str = "";
		for(int i = 0;i < array.length;i++) {
			Str +=array[i];
		}
		int in = Integer.parseInt(Str);
		if(in <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String Sei = sc.nextLine(); Sei sc.nextLine() sc.nextLine sc String[] array = Sei.split("/"); array Sei.split("/") Sei.split Sei "/" String Str = ""; Str "" for(int i = 0;i < array.length;i++) {
			Str +=array[i];
		} int i = 0; int i = 0; i 0 i < array.length i array.length array array.length i++ i++ i {
			Str +=array[i];
		} {
			Str +=array[i];
		} Str +=array[i] Str array[i] array i int in = Integer.parseInt(Str); in Integer.parseInt(Str) Integer.parseInt Integer Str if(in <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		} in <= 20190430 in 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) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String Sei = sc.nextLine();
		String[] array = Sei.split("/");
		String Str = "";
		for(int i = 0;i < array.length;i++) {
			Str +=array[i];
		}
		int in = Integer.parseInt(Str);
		if(in <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String Sei = sc.nextLine();
		String[] array = Sei.split("/");
		String Str = "";
		for(int i = 0;i < array.length;i++) {
			Str +=array[i];
		}
		int in = Integer.parseInt(Str);
		if(in <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String Sei = sc.nextLine();
		String[] array = Sei.split("/");
		String Str = "";
		for(int i = 0;i < array.length;i++) {
			Str +=array[i];
		}
		int in = Integer.parseInt(Str);
		if(in <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	}

}
