import java.util.*;
public class Main{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String p,S = s.next();
		p=Integer.parseInt(S.substring(5,7))>4?"TBD":"Heisei";
		System.out.println(p);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String p,S = s.next();
		p=Integer.parseInt(S.substring(5,7))>4?"TBD":"Heisei";
		System.out.println(p);
	}
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String p,S = s.next();
		p=Integer.parseInt(S.substring(5,7))>4?"TBD":"Heisei";
		System.out.println(p);
	} main {
		Scanner s = new Scanner(System.in);
		String p,S = s.next();
		p=Integer.parseInt(S.substring(5,7))>4?"TBD":"Heisei";
		System.out.println(p);
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) String p p S = s.next(); S s.next() s.next s p=Integer.parseInt(S.substring(5,7))>4?"TBD":"Heisei" p Integer.parseInt(S.substring(5,7))>4?"TBD":"Heisei" Integer.parseInt(S.substring(5,7))>4 Integer.parseInt(S.substring(5,7)) Integer.parseInt Integer S.substring(5,7) S.substring S 5 7 4 "TBD" "Heisei" System.out.println(p) System.out.println System.out System System.out p String[] args args public class Main{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String p,S = s.next();
		p=Integer.parseInt(S.substring(5,7))>4?"TBD":"Heisei";
		System.out.println(p);
	}
} public class Main{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String p,S = s.next();
		p=Integer.parseInt(S.substring(5,7))>4?"TBD":"Heisei";
		System.out.println(p);
	}
} Main
import java.util.*;
public class Main{
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String p,S = s.next();
		p=Integer.parseInt(S.substring(5,7))>4?"TBD":"Heisei";
		System.out.println(p);
	}
}