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