import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		
		String s [] = S.split("/");
		
		
		if (s[0].equals("2019")!=true)
			System.out.println("Heisei");
		
		else {
			if (s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04"))
				System.out.println("Heisei");
			else
				System.out.println("TBD");
		}
		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 S = sc.next();
		
		String s [] = S.split("/");
		
		
		if (s[0].equals("2019")!=true)
			System.out.println("Heisei");
		
		else {
			if (s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04"))
				System.out.println("Heisei");
			else
				System.out.println("TBD");
		}
		sc.close();

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		
		String s [] = S.split("/");
		
		
		if (s[0].equals("2019")!=true)
			System.out.println("Heisei");
		
		else {
			if (s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04"))
				System.out.println("Heisei");
			else
				System.out.println("TBD");
		}
		sc.close();

	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		
		String s [] = S.split("/");
		
		
		if (s[0].equals("2019")!=true)
			System.out.println("Heisei");
		
		else {
			if (s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04"))
				System.out.println("Heisei");
			else
				System.out.println("TBD");
		}
		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String s [] = S.split("/"); s S.split("/") S.split S "/" if (s[0].equals("2019")!=true)
			System.out.println("Heisei");
		
		else {
			if (s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04"))
				System.out.println("Heisei");
			else
				System.out.println("TBD");
		} s[0].equals("2019")!=true s[0].equals("2019") s[0].equals s[0] s 0 "2019" true System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
			if (s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04"))
				System.out.println("Heisei");
			else
				System.out.println("TBD");
		} if (s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04"))
				System.out.println("Heisei");
			else
				System.out.println("TBD"); s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04") s[1].equals("03") s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04") s[1].equals("01") s[1].equals s[1] s 1 "01" s[1].equals("02") s[1].equals s[1] s 1 "02" s[1].equals("03") s[1].equals s[1] s 1 "03" s[1].equals("04") s[1].equals s[1] s 1 "04" 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" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		
		String s [] = S.split("/");
		
		
		if (s[0].equals("2019")!=true)
			System.out.println("Heisei");
		
		else {
			if (s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04"))
				System.out.println("Heisei");
			else
				System.out.println("TBD");
		}
		sc.close();

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		
		String s [] = S.split("/");
		
		
		if (s[0].equals("2019")!=true)
			System.out.println("Heisei");
		
		else {
			if (s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04"))
				System.out.println("Heisei");
			else
				System.out.println("TBD");
		}
		sc.close();

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		
		String s [] = S.split("/");
		
		
		if (s[0].equals("2019")!=true)
			System.out.println("Heisei");
		
		else {
			if (s[1].equals("01") || s[1].equals("02") || s[1].equals("03") || s[1].equals("04"))
				System.out.println("Heisei");
			else
				System.out.println("TBD");
		}
		sc.close();

	}

}
