import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = Integer.valueOf(sc.next().replace("/", ""));
		System.out.println((s <= 20190430) ? "Heisei" : "TBD");	
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = Integer.valueOf(sc.next().replace("/", ""));
		System.out.println((s <= 20190430) ? "Heisei" : "TBD");	
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = Integer.valueOf(sc.next().replace("/", ""));
		System.out.println((s <= 20190430) ? "Heisei" : "TBD");	
	} main {
		Scanner sc = new Scanner(System.in);
		int s = Integer.valueOf(sc.next().replace("/", ""));
		System.out.println((s <= 20190430) ? "Heisei" : "TBD");	
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int s = Integer.valueOf(sc.next().replace("/", "")); s Integer.valueOf(sc.next().replace("/", "")) Integer.valueOf Integer sc.next().replace("/", "") sc.next().replace sc.next() sc.next sc "/" "" System.out.println((s <= 20190430) ? "Heisei" : "TBD") System.out.println System.out System System.out (s <= 20190430) ? "Heisei" : "TBD" (s <= 20190430) s 20190430 "Heisei" "TBD" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = Integer.valueOf(sc.next().replace("/", ""));
		System.out.println((s <= 20190430) ? "Heisei" : "TBD");	
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = Integer.valueOf(sc.next().replace("/", ""));
		System.out.println((s <= 20190430) ? "Heisei" : "TBD");	
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = Integer.valueOf(sc.next().replace("/", ""));
		System.out.println((s <= 20190430) ? "Heisei" : "TBD");	
	}
}