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