import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int m = Integer.parseInt(sc.next().substring(5,7));

		System.out.println(m >= 5 ? "TBD" : "Heisei");
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int m = Integer.parseInt(sc.next().substring(5,7));

		System.out.println(m >= 5 ? "TBD" : "Heisei");
	}
} Main public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int m = Integer.parseInt(sc.next().substring(5,7));

		System.out.println(m >= 5 ? "TBD" : "Heisei");
	} main {
		
		Scanner sc = new Scanner(System.in);
		
		int m = Integer.parseInt(sc.next().substring(5,7));

		System.out.println(m >= 5 ? "TBD" : "Heisei");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int m = Integer.parseInt(sc.next().substring(5,7)); m Integer.parseInt(sc.next().substring(5,7)) Integer.parseInt Integer sc.next().substring(5,7) sc.next().substring sc.next() sc.next sc 5 7 System.out.println(m >= 5 ? "TBD" : "Heisei") System.out.println System.out System System.out m >= 5 ? "TBD" : "Heisei" m >= 5 m 5 "TBD" "Heisei" String[] args args public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int m = Integer.parseInt(sc.next().substring(5,7));

		System.out.println(m >= 5 ? "TBD" : "Heisei");
	}
} public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int m = Integer.parseInt(sc.next().substring(5,7));

		System.out.println(m >= 5 ? "TBD" : "Heisei");
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int m = Integer.parseInt(sc.next().substring(5,7));

		System.out.println(m >= 5 ? "TBD" : "Heisei");
	}
}