import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String date = sc.nextLine();
		String[] dateParts = date.split("/");
		String dateStr = "";
		for(String part: dateParts){
			dateStr += part;
		}
		int date2Int = Integer.parseInt(dateStr);
		if(date2Int <= 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 sc = new Scanner(System.in);
		String date = sc.nextLine();
		String[] dateParts = date.split("/");
		String dateStr = "";
		for(String part: dateParts){
			dateStr += part;
		}
		int date2Int = Integer.parseInt(dateStr);
		if(date2Int <= 20190430){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
		
	}


} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String date = sc.nextLine();
		String[] dateParts = date.split("/");
		String dateStr = "";
		for(String part: dateParts){
			dateStr += part;
		}
		int date2Int = Integer.parseInt(dateStr);
		if(date2Int <= 20190430){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
		
	} main {
		Scanner sc = new Scanner(System.in);
		String date = sc.nextLine();
		String[] dateParts = date.split("/");
		String dateStr = "";
		for(String part: dateParts){
			dateStr += part;
		}
		int date2Int = Integer.parseInt(dateStr);
		if(date2Int <= 20190430){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String date = sc.nextLine(); date sc.nextLine() sc.nextLine sc String[] dateParts = date.split("/"); dateParts date.split("/") date.split date "/" String dateStr = ""; dateStr "" for(String part: dateParts){
			dateStr += part;
		} String part dateParts {
			dateStr += part;
		} {
			dateStr += part;
		} dateStr += part dateStr part int date2Int = Integer.parseInt(dateStr); date2Int Integer.parseInt(dateStr) Integer.parseInt Integer dateStr if(date2Int <= 20190430){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		} date2Int <= 20190430 date2Int 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 sc = new Scanner(System.in);
		String date = sc.nextLine();
		String[] dateParts = date.split("/");
		String dateStr = "";
		for(String part: dateParts){
			dateStr += part;
		}
		int date2Int = Integer.parseInt(dateStr);
		if(date2Int <= 20190430){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
		
	}


} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String date = sc.nextLine();
		String[] dateParts = date.split("/");
		String dateStr = "";
		for(String part: dateParts){
			dateStr += part;
		}
		int date2Int = Integer.parseInt(dateStr);
		if(date2Int <= 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 sc = new Scanner(System.in);
		String date = sc.nextLine();
		String[] dateParts = date.split("/");
		String dateStr = "";
		for(String part: dateParts){
			dateStr += part;
		}
		int date2Int = Integer.parseInt(dateStr);
		if(date2Int <= 20190430){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
		
	}


}