import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		
		System.out.println(s.compareTo("2019/04/30") < 1 ? "Heisei" : "TBD");
	}
} 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();
		
		System.out.println(s.compareTo("2019/04/30") < 1 ? "Heisei" : "TBD");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		
		System.out.println(s.compareTo("2019/04/30") < 1 ? "Heisei" : "TBD");
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		
		System.out.println(s.compareTo("2019/04/30") < 1 ? "Heisei" : "TBD");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc System.out.println(s.compareTo("2019/04/30") < 1 ? "Heisei" : "TBD") System.out.println System.out System System.out s.compareTo("2019/04/30") < 1 ? "Heisei" : "TBD" s.compareTo("2019/04/30") < 1 s.compareTo("2019/04/30") s.compareTo s "2019/04/30" 1 "Heisei" "TBD" String[] args args public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		
		System.out.println(s.compareTo("2019/04/30") < 1 ? "Heisei" : "TBD");
	}
} public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		
		System.out.println(s.compareTo("2019/04/30") < 1 ? "Heisei" : "TBD");
	}
} Main
import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		
		System.out.println(s.compareTo("2019/04/30") < 1 ? "Heisei" : "TBD");
	}
}
