import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		s = s.replaceAll("/","");
		Integer temp = Integer.parseInt(s);
		Integer a = Integer.parseInt("20190430");

		if(temp.compareTo(a) <= 0) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}

	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		s = s.replaceAll("/","");
		Integer temp = Integer.parseInt(s);
		Integer a = Integer.parseInt("20190430");

		if(temp.compareTo(a) <= 0) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}

	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		s = s.replaceAll("/","");
		Integer temp = Integer.parseInt(s);
		Integer a = Integer.parseInt("20190430");

		if(temp.compareTo(a) <= 0) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}

	} main {
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		s = s.replaceAll("/","");
		Integer temp = Integer.parseInt(s);
		Integer a = Integer.parseInt("20190430");

		if(temp.compareTo(a) <= 0) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan s = s.replaceAll("/","") s s.replaceAll("/","") s.replaceAll s "/" "" Integer temp = Integer.parseInt(s); temp Integer.parseInt(s) Integer.parseInt Integer s Integer a = Integer.parseInt("20190430"); a Integer.parseInt("20190430") Integer.parseInt Integer "20190430" if(temp.compareTo(a) <= 0) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		} temp.compareTo(a) <= 0 temp.compareTo(a) temp.compareTo temp a 0 {
			System.out.println("Heisei");
		} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
			System.out.println("TBD");
		} System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		s = s.replaceAll("/","");
		Integer temp = Integer.parseInt(s);
		Integer a = Integer.parseInt("20190430");

		if(temp.compareTo(a) <= 0) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}

	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		s = s.replaceAll("/","");
		Integer temp = Integer.parseInt(s);
		Integer a = Integer.parseInt("20190430");

		if(temp.compareTo(a) <= 0) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}

	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		s = s.replaceAll("/","");
		Integer temp = Integer.parseInt(s);
		Integer a = Integer.parseInt("20190430");

		if(temp.compareTo(a) <= 0) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}

	}
}
