import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] s = S.split("/");
		int[] date = new int[3];
		boolean tbd = false;
		for(int i = 0; i < 3; i++) date[i] = Integer.parseInt(s[i]);
		if(date[0] == 2019 && date[1] > 4) tbd = true;
		if(date[0] > 2019) tbd = true;
		if(tbd) System.out.println("TBD");
		else System.out.println("Heisei");
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] s = S.split("/");
		int[] date = new int[3];
		boolean tbd = false;
		for(int i = 0; i < 3; i++) date[i] = Integer.parseInt(s[i]);
		if(date[0] == 2019 && date[1] > 4) tbd = true;
		if(date[0] > 2019) tbd = true;
		if(tbd) System.out.println("TBD");
		else System.out.println("Heisei");
	}

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

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] s = S.split("/");
		int[] date = new int[3];
		boolean tbd = false;
		for(int i = 0; i < 3; i++) date[i] = Integer.parseInt(s[i]);
		if(date[0] == 2019 && date[1] > 4) tbd = true;
		if(date[0] > 2019) tbd = true;
		if(tbd) System.out.println("TBD");
		else System.out.println("Heisei");
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] s = S.split("/");
		int[] date = new int[3];
		boolean tbd = false;
		for(int i = 0; i < 3; i++) date[i] = Integer.parseInt(s[i]);
		if(date[0] == 2019 && date[1] > 4) tbd = true;
		if(date[0] > 2019) tbd = true;
		if(tbd) System.out.println("TBD");
		else System.out.println("Heisei");
	}

}
