import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] inputs = line.split("/");

		String ans;
		if(Integer.parseInt(inputs[1]) > 4){
			ans = "TBD";
		}else{
			ans = "Heisei";
		}

		System.out.println(ans);
	}
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] inputs = line.split("/");

		String ans;
		if(Integer.parseInt(inputs[1]) > 4){
			ans = "TBD";
		}else{
			ans = "Heisei";
		}

		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] inputs = line.split("/");

		String ans;
		if(Integer.parseInt(inputs[1]) > 4){
			ans = "TBD";
		}else{
			ans = "Heisei";
		}

		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] inputs = line.split("/");

		String ans;
		if(Integer.parseInt(inputs[1]) > 4){
			ans = "TBD";
		}else{
			ans = "Heisei";
		}

		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] inputs = line.split("/"); inputs line.split("/") line.split line "/" String ans; ans if(Integer.parseInt(inputs[1]) > 4){
			ans = "TBD";
		}else{
			ans = "Heisei";
		} Integer.parseInt(inputs[1]) > 4 Integer.parseInt(inputs[1]) Integer.parseInt Integer inputs[1] inputs 1 4 {
			ans = "TBD";
		} ans = "TBD" ans "TBD" {
			ans = "Heisei";
		} ans = "Heisei" ans "Heisei" System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] inputs = line.split("/");

		String ans;
		if(Integer.parseInt(inputs[1]) > 4){
			ans = "TBD";
		}else{
			ans = "Heisei";
		}

		System.out.println(ans);
	}
}
