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.replace("/", "");
		int date = Integer.parseInt(s);

		String answer = "";

		if(date <= 20190430){
			answer = "Heisei";
		}else{
			answer = "TBD";
		}
		
        System.out.println(answer);
    }
} 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.replace("/", "");
		int date = Integer.parseInt(s);

		String answer = "";

		if(date <= 20190430){
			answer = "Heisei";
		}else{
			answer = "TBD";
		}
		
        System.out.println(answer);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

		String S = sc.next();
		
		String s = S.replace("/", "");
		int date = Integer.parseInt(s);

		String answer = "";

		if(date <= 20190430){
			answer = "Heisei";
		}else{
			answer = "TBD";
		}
		
        System.out.println(answer);
    } main {
        Scanner sc = new Scanner(System.in);

		String S = sc.next();
		
		String s = S.replace("/", "");
		int date = Integer.parseInt(s);

		String answer = "";

		if(date <= 20190430){
			answer = "Heisei";
		}else{
			answer = "TBD";
		}
		
        System.out.println(answer);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String s = S.replace("/", ""); s S.replace("/", "") S.replace S "/" "" int date = Integer.parseInt(s); date Integer.parseInt(s) Integer.parseInt Integer s String answer = ""; answer "" if(date <= 20190430){
			answer = "Heisei";
		}else{
			answer = "TBD";
		} date <= 20190430 date 20190430 {
			answer = "Heisei";
		} answer = "Heisei" answer "Heisei" {
			answer = "TBD";
		} answer = "TBD" answer "TBD" System.out.println(answer) System.out.println System.out System System.out answer 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.replace("/", "");
		int date = Integer.parseInt(s);

		String answer = "";

		if(date <= 20190430){
			answer = "Heisei";
		}else{
			answer = "TBD";
		}
		
        System.out.println(answer);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

		String S = sc.next();
		
		String s = S.replace("/", "");
		int date = Integer.parseInt(s);

		String answer = "";

		if(date <= 20190430){
			answer = "Heisei";
		}else{
			answer = "TBD";
		}
		
        System.out.println(answer);
    }
} 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.replace("/", "");
		int date = Integer.parseInt(s);

		String answer = "";

		if(date <= 20190430){
			answer = "Heisei";
		}else{
			answer = "TBD";
		}
		
        System.out.println(answer);
    }
}
