import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[]pooeater = s.split("/");
		int[]n = new int[3];
		n[0] = Integer.parseInt(pooeater[0]);
		n[1] = Integer.parseInt(pooeater[1]);
		n[2] = Integer.parseInt(pooeater[2]);
		if(n[0]>2019) {
			System.out.println("TBD");
		}else if(n[1]>04) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[]pooeater = s.split("/");
		int[]n = new int[3];
		n[0] = Integer.parseInt(pooeater[0]);
		n[1] = Integer.parseInt(pooeater[1]);
		n[2] = Integer.parseInt(pooeater[2]);
		if(n[0]>2019) {
			System.out.println("TBD");
		}else if(n[1]>04) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[]pooeater = s.split("/");
		int[]n = new int[3];
		n[0] = Integer.parseInt(pooeater[0]);
		n[1] = Integer.parseInt(pooeater[1]);
		n[2] = Integer.parseInt(pooeater[2]);
		if(n[0]>2019) {
			System.out.println("TBD");
		}else if(n[1]>04) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[]pooeater = s.split("/");
		int[]n = new int[3];
		n[0] = Integer.parseInt(pooeater[0]);
		n[1] = Integer.parseInt(pooeater[1]);
		n[2] = Integer.parseInt(pooeater[2]);
		if(n[0]>2019) {
			System.out.println("TBD");
		}else if(n[1]>04) {
			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[]pooeater = s.split("/"); pooeater s.split("/") s.split s "/" int[]n = new int[3]; n new int[3] 3 n[0] = Integer.parseInt(pooeater[0]) n[0] n 0 Integer.parseInt(pooeater[0]) Integer.parseInt Integer pooeater[0] pooeater 0 n[1] = Integer.parseInt(pooeater[1]) n[1] n 1 Integer.parseInt(pooeater[1]) Integer.parseInt Integer pooeater[1] pooeater 1 n[2] = Integer.parseInt(pooeater[2]) n[2] n 2 Integer.parseInt(pooeater[2]) Integer.parseInt Integer pooeater[2] pooeater 2 if(n[0]>2019) {
			System.out.println("TBD");
		}else if(n[1]>04) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		} n[0]>2019 n[0] n 0 2019 {
			System.out.println("TBD");
		} System.out.println("TBD") System.out.println System.out System System.out "TBD" if(n[1]>04) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		} n[1]>04 n[1] n 1 04 {
			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 public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[]pooeater = s.split("/");
		int[]n = new int[3];
		n[0] = Integer.parseInt(pooeater[0]);
		n[1] = Integer.parseInt(pooeater[1]);
		n[2] = Integer.parseInt(pooeater[2]);
		if(n[0]>2019) {
			System.out.println("TBD");
		}else if(n[1]>04) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[]pooeater = s.split("/");
		int[]n = new int[3];
		n[0] = Integer.parseInt(pooeater[0]);
		n[1] = Integer.parseInt(pooeater[1]);
		n[2] = Integer.parseInt(pooeater[2]);
		if(n[0]>2019) {
			System.out.println("TBD");
		}else if(n[1]>04) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	}

} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[]pooeater = s.split("/");
		int[]n = new int[3];
		n[0] = Integer.parseInt(pooeater[0]);
		n[1] = Integer.parseInt(pooeater[1]);
		n[2] = Integer.parseInt(pooeater[2]);
		if(n[0]>2019) {
			System.out.println("TBD");
		}else if(n[1]>04) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
	}

}
