import java.util.Scanner;

public class Main
{

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);

		String yyyy_mm_dd = sc.next();
		
		
		int month = Integer.parseInt(yyyy_mm_dd.substring(5, 7));

		
		String ans = (month >= 5) ? "TBD" : "Heisei";

		System.out.println(ans);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main
{

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);

		String yyyy_mm_dd = sc.next();
		
		
		int month = Integer.parseInt(yyyy_mm_dd.substring(5, 7));

		
		String ans = (month >= 5) ? "TBD" : "Heisei";

		System.out.println(ans);
		sc.close();
	}
} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);

		String yyyy_mm_dd = sc.next();
		
		
		int month = Integer.parseInt(yyyy_mm_dd.substring(5, 7));

		
		String ans = (month >= 5) ? "TBD" : "Heisei";

		System.out.println(ans);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		String yyyy_mm_dd = sc.next();
		
		
		int month = Integer.parseInt(yyyy_mm_dd.substring(5, 7));

		
		String ans = (month >= 5) ? "TBD" : "Heisei";

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

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);

		String yyyy_mm_dd = sc.next();
		
		
		int month = Integer.parseInt(yyyy_mm_dd.substring(5, 7));

		
		String ans = (month >= 5) ? "TBD" : "Heisei";

		System.out.println(ans);
		sc.close();
	}
} public class Main
{

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);

		String yyyy_mm_dd = sc.next();
		
		
		int month = Integer.parseInt(yyyy_mm_dd.substring(5, 7));

		
		String ans = (month >= 5) ? "TBD" : "Heisei";

		System.out.println(ans);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main
{

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);

		String yyyy_mm_dd = sc.next();
		
		
		int month = Integer.parseInt(yyyy_mm_dd.substring(5, 7));

		
		String ans = (month >= 5) ? "TBD" : "Heisei";

		System.out.println(ans);
		sc.close();
	}
}