import java.util.*;
import java.io.*;
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] A = S.split("/");
		int year = Integer.parseInt(A[0]);
		int month = Integer.parseInt(A[1]);
		int day = Integer.parseInt(A[2]);
		if(month <= 4) {
			System.out.println("Heisei");
			
		}
		else {
			System.out.println("TBD");
			
		}
		
		
		
	}

	
} import java.util.*; util.* java import java.io.*; io.* java import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] A = S.split("/");
		int year = Integer.parseInt(A[0]);
		int month = Integer.parseInt(A[1]);
		int day = Integer.parseInt(A[2]);
		if(month <= 4) {
			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 S = sc.next();
		String[] A = S.split("/");
		int year = Integer.parseInt(A[0]);
		int month = Integer.parseInt(A[1]);
		int day = Integer.parseInt(A[2]);
		if(month <= 4) {
			System.out.println("Heisei");
			
		}
		else {
			System.out.println("TBD");
			
		}
		
		
		
	} main {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] A = S.split("/");
		int year = Integer.parseInt(A[0]);
		int month = Integer.parseInt(A[1]);
		int day = Integer.parseInt(A[2]);
		if(month <= 4) {
			System.out.println("Heisei");
			
		}
		else {
			System.out.println("TBD");
			
		}
		
		
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String[] A = S.split("/"); A S.split("/") S.split S "/" int year = Integer.parseInt(A[0]); year Integer.parseInt(A[0]) Integer.parseInt Integer A[0] A 0 int month = Integer.parseInt(A[1]); month Integer.parseInt(A[1]) Integer.parseInt Integer A[1] A 1 int day = Integer.parseInt(A[2]); day Integer.parseInt(A[2]) Integer.parseInt Integer A[2] A 2 if(month <= 4) {
			System.out.println("Heisei");
			
		}
		else {
			System.out.println("TBD");
			
		} month <= 4 month 4 {
			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 S = sc.next();
		String[] A = S.split("/");
		int year = Integer.parseInt(A[0]);
		int month = Integer.parseInt(A[1]);
		int day = Integer.parseInt(A[2]);
		if(month <= 4) {
			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 S = sc.next();
		String[] A = S.split("/");
		int year = Integer.parseInt(A[0]);
		int month = Integer.parseInt(A[1]);
		int day = Integer.parseInt(A[2]);
		if(month <= 4) {
			System.out.println("Heisei");
			
		}
		else {
			System.out.println("TBD");
			
		}
		
		
		
	}

	
} Main
import java.util.*;
import java.io.*;
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] A = S.split("/");
		int year = Integer.parseInt(A[0]);
		int month = Integer.parseInt(A[1]);
		int day = Integer.parseInt(A[2]);
		if(month <= 4) {
			System.out.println("Heisei");
			
		}
		else {
			System.out.println("TBD");
			
		}
		
		
		
	}

	
}