import java.util.*;
import java.io.*;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	
		String s = sc.nextLine();
		String[] t = s.split("/");
		int[] n = new int[3];
		for (int i=0; i<3; i++) n[i] = Integer.parseInt(t[i]); 
		if (n[0]<2019) {
			System.out.println("Heisei");
		} else if (n[0]==2019) {
			if (n[1]<4) System.out.println("Heisei");
			else if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD");
		} else System.out.println("TBD");
		
		
		
		
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	
		String s = sc.nextLine();
		String[] t = s.split("/");
		int[] n = new int[3];
		for (int i=0; i<3; i++) n[i] = Integer.parseInt(t[i]); 
		if (n[0]<2019) {
			System.out.println("Heisei");
		} else if (n[0]==2019) {
			if (n[1]<4) System.out.println("Heisei");
			else if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD");
		} else System.out.println("TBD");
		
		
		
		
	}
} Main public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	
		String s = sc.nextLine();
		String[] t = s.split("/");
		int[] n = new int[3];
		for (int i=0; i<3; i++) n[i] = Integer.parseInt(t[i]); 
		if (n[0]<2019) {
			System.out.println("Heisei");
		} else if (n[0]==2019) {
			if (n[1]<4) System.out.println("Heisei");
			else if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD");
		} else System.out.println("TBD");
		
		
		
		
	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	
		String s = sc.nextLine();
		String[] t = s.split("/");
		int[] n = new int[3];
		for (int i=0; i<3; i++) n[i] = Integer.parseInt(t[i]); 
		if (n[0]<2019) {
			System.out.println("Heisei");
		} else if (n[0]==2019) {
			if (n[1]<4) System.out.println("Heisei");
			else if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD");
		} else System.out.println("TBD");
		
		
		
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc String[] t = s.split("/"); t s.split("/") s.split s "/" int[] n = new int[3]; n new int[3] 3 for (int i=0; i<3; i++) n[i] = Integer.parseInt(t[i]); int i=0; int i=0; i 0 i<3 i 3 i++ i++ i n[i] = Integer.parseInt(t[i]); n[i] = Integer.parseInt(t[i]) n[i] n i Integer.parseInt(t[i]) Integer.parseInt Integer t[i] t i if (n[0]<2019) {
			System.out.println("Heisei");
		} else if (n[0]==2019) {
			if (n[1]<4) System.out.println("Heisei");
			else if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD");
		} else System.out.println("TBD"); n[0]<2019 n[0] n 0 2019 {
			System.out.println("Heisei");
		} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if (n[0]==2019) {
			if (n[1]<4) System.out.println("Heisei");
			else if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD");
		} else System.out.println("TBD"); n[0]==2019 n[0] n 0 2019 {
			if (n[1]<4) System.out.println("Heisei");
			else if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD");
		} if (n[1]<4) System.out.println("Heisei");
			else if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD"); n[1]<4 n[1] n 1 4 System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD"); n[1]==4 n[1] n 1 4 {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD"); n[2]<=30 n[2] n 2 30 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" System.out.println("TBD") System.out.println System.out System System.out "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) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	
		String s = sc.nextLine();
		String[] t = s.split("/");
		int[] n = new int[3];
		for (int i=0; i<3; i++) n[i] = Integer.parseInt(t[i]); 
		if (n[0]<2019) {
			System.out.println("Heisei");
		} else if (n[0]==2019) {
			if (n[1]<4) System.out.println("Heisei");
			else if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD");
		} else System.out.println("TBD");
		
		
		
		
	}
} public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	
		String s = sc.nextLine();
		String[] t = s.split("/");
		int[] n = new int[3];
		for (int i=0; i<3; i++) n[i] = Integer.parseInt(t[i]); 
		if (n[0]<2019) {
			System.out.println("Heisei");
		} else if (n[0]==2019) {
			if (n[1]<4) System.out.println("Heisei");
			else if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD");
		} else System.out.println("TBD");
		
		
		
		
	}
} Main
import java.util.*;
import java.io.*;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	
		String s = sc.nextLine();
		String[] t = s.split("/");
		int[] n = new int[3];
		for (int i=0; i<3; i++) n[i] = Integer.parseInt(t[i]); 
		if (n[0]<2019) {
			System.out.println("Heisei");
		} else if (n[0]==2019) {
			if (n[1]<4) System.out.println("Heisei");
			else if (n[1]==4) {
				if (n[2]<=30) System.out.println("Heisei");
				else System.out.println("TBD");
			} else System.out.println("TBD");
		} else System.out.println("TBD");
		
		
		
		
	}
}
