import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Calc c = new Calc();
		c.abc119A();
	}

}

class Calc{
	void abc119A() {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int m = Integer.valueOf(s.substring(5,7));
		if(m>=5) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Calc c = new Calc();
		c.abc119A();
	}

} Main public static void main(String[] args) {
		Calc c = new Calc();
		c.abc119A();
	} main {
		Calc c = new Calc();
		c.abc119A();
	} Calc c = new Calc(); c new Calc() c.abc119A() c.abc119A c String[] args args class Calc{
	void abc119A() {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int m = Integer.valueOf(s.substring(5,7));
		if(m>=5) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	}
} Calc void abc119A() {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int m = Integer.valueOf(s.substring(5,7));
		if(m>=5) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	} abc119A {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int m = Integer.valueOf(s.substring(5,7));
		if(m>=5) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc int m = Integer.valueOf(s.substring(5,7)); m Integer.valueOf(s.substring(5,7)) Integer.valueOf Integer s.substring(5,7) s.substring s 5 7 if(m>=5) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		} m>=5 m 5 {
			System.out.println("TBD");
		} System.out.println("TBD") System.out.println System.out System System.out "TBD" {
			System.out.println("Heisei");
		} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" public class Main {

	public static void main(String[] args) {
		Calc c = new Calc();
		c.abc119A();
	}

} public class Main {

	public static void main(String[] args) {
		Calc c = new Calc();
		c.abc119A();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Calc c = new Calc();
		c.abc119A();
	}

}

class Calc{
	void abc119A() {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int m = Integer.valueOf(s.substring(5,7));
		if(m>=5) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	}
}