import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String[] s = scan.next().split("/",3);
		scan.close();

		int year =Integer.valueOf(s[0]);
		int month =Integer.valueOf(s[1]);
		//int day =Integer.valueOf(s[2]);
		System.out.println((year==2019&&month>=5)? "TBD":"Heisei");
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String[] s = scan.next().split("/",3);
		scan.close();

		int year =Integer.valueOf(s[0]);
		int month =Integer.valueOf(s[1]);
		//int day =Integer.valueOf(s[2]);
		System.out.println((year==2019&&month>=5)? "TBD":"Heisei");
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String[] s = scan.next().split("/",3);
		scan.close();

		int year =Integer.valueOf(s[0]);
		int month =Integer.valueOf(s[1]);
		//int day =Integer.valueOf(s[2]);
		System.out.println((year==2019&&month>=5)? "TBD":"Heisei");
	} main {
		Scanner scan = new Scanner(System.in);
		String[] s = scan.next().split("/",3);
		scan.close();

		int year =Integer.valueOf(s[0]);
		int month =Integer.valueOf(s[1]);
		//int day =Integer.valueOf(s[2]);
		System.out.println((year==2019&&month>=5)? "TBD":"Heisei");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String[] s = scan.next().split("/",3); s scan.next().split("/",3) scan.next().split scan.next() scan.next scan "/" 3 scan.close() scan.close scan int year =Integer.valueOf(s[0]); year Integer.valueOf(s[0]) Integer.valueOf Integer s[0] s 0 int month =Integer.valueOf(s[1]); month Integer.valueOf(s[1]) Integer.valueOf Integer s[1] s 1 System.out.println((year==2019&&month>=5)? "TBD":"Heisei") System.out.println System.out System System.out (year==2019&&month>=5)? "TBD":"Heisei" (year==2019&&month>=5) year==2019 year 2019 month>=5 month 5 "TBD" "Heisei" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String[] s = scan.next().split("/",3);
		scan.close();

		int year =Integer.valueOf(s[0]);
		int month =Integer.valueOf(s[1]);
		//int day =Integer.valueOf(s[2]);
		System.out.println((year==2019&&month>=5)? "TBD":"Heisei");
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String[] s = scan.next().split("/",3);
		scan.close();

		int year =Integer.valueOf(s[0]);
		int month =Integer.valueOf(s[1]);
		//int day =Integer.valueOf(s[2]);
		System.out.println((year==2019&&month>=5)? "TBD":"Heisei");
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String[] s = scan.next().split("/",3);
		scan.close();

		int year =Integer.valueOf(s[0]);
		int month =Integer.valueOf(s[1]);
		//int day =Integer.valueOf(s[2]);
		System.out.println((year==2019&&month>=5)? "TBD":"Heisei");
	}
}
