import java.util.*;
class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] str = s.split("/");
		if(Integer.parseInt(str[0])>=2019 && Integer.parseInt(str[1])>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	}
} import java.util.*; util.* java class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] str = s.split("/");
		if(Integer.parseInt(str[0])>=2019 && Integer.parseInt(str[1])>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] str = s.split("/");
		if(Integer.parseInt(str[0])>=2019 && Integer.parseInt(str[1])>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] str = s.split("/");
		if(Integer.parseInt(str[0])>=2019 && Integer.parseInt(str[1])>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String[] str = s.split("/"); str s.split("/") s.split s "/" if(Integer.parseInt(str[0])>=2019 && Integer.parseInt(str[1])>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		} Integer.parseInt(str[0])>=2019 && Integer.parseInt(str[1])>4 Integer.parseInt(str[0])>=2019 Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 2019 Integer.parseInt(str[1])>4 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 4 {
			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" String[] args args
import java.util.*;
class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] str = s.split("/");
		if(Integer.parseInt(str[0])>=2019 && Integer.parseInt(str[1])>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	}
}