import java.util.*;
import java.text.*;
public class Main {
	public static void main(String[] args) throws ParseException{
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
      	String S = sc.next();
      	String S2 = "2019/05/01";
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
      	SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy/MM/dd");
      	 Date formatDate = sdf.parse(S); 
      Date formatDate2 = sdf.parse(S2);
      	
      	
      	boolean result = formatDate2.after(formatDate);
      	if(!result){
	        System.out.println("TBD");
        }else{
        	System.out.println("Heisei");
        }
      	
      
    }
} import java.util.*; util.* java import java.text.*; text.* java public class Main {
	public static void main(String[] args) throws ParseException{
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
      	String S = sc.next();
      	String S2 = "2019/05/01";
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
      	SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy/MM/dd");
      	 Date formatDate = sdf.parse(S); 
      Date formatDate2 = sdf.parse(S2);
      	
      	
      	boolean result = formatDate2.after(formatDate);
      	if(!result){
	        System.out.println("TBD");
        }else{
        	System.out.println("Heisei");
        }
      	
      
    }
} Main public static void main(String[] args) throws ParseException{
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
      	String S = sc.next();
      	String S2 = "2019/05/01";
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
      	SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy/MM/dd");
      	 Date formatDate = sdf.parse(S); 
      Date formatDate2 = sdf.parse(S2);
      	
      	
      	boolean result = formatDate2.after(formatDate);
      	if(!result){
	        System.out.println("TBD");
        }else{
        	System.out.println("Heisei");
        }
      	
      
    } main {
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
      	String S = sc.next();
      	String S2 = "2019/05/01";
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
      	SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy/MM/dd");
      	 Date formatDate = sdf.parse(S); 
      Date formatDate2 = sdf.parse(S2);
      	
      	
      	boolean result = formatDate2.after(formatDate);
      	if(!result){
	        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 S2 = "2019/05/01"; S2 "2019/05/01" SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); sdf new SimpleDateFormat("yyyy/MM/dd") SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy/MM/dd"); sdf2 new SimpleDateFormat("yyyy/MM/dd") Date formatDate = sdf.parse(S); formatDate sdf.parse(S) sdf.parse sdf S Date formatDate2 = sdf.parse(S2); formatDate2 sdf.parse(S2) sdf.parse sdf S2 boolean result = formatDate2.after(formatDate); result formatDate2.after(formatDate) formatDate2.after formatDate2 formatDate if(!result){
	        System.out.println("TBD");
        }else{
        	System.out.println("Heisei");
        } !result result {
	        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) throws ParseException{
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
      	String S = sc.next();
      	String S2 = "2019/05/01";
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
      	SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy/MM/dd");
      	 Date formatDate = sdf.parse(S); 
      Date formatDate2 = sdf.parse(S2);
      	
      	
      	boolean result = formatDate2.after(formatDate);
      	if(!result){
	        System.out.println("TBD");
        }else{
        	System.out.println("Heisei");
        }
      	
      
    }
} public class Main {
	public static void main(String[] args) throws ParseException{
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
      	String S = sc.next();
      	String S2 = "2019/05/01";
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
      	SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy/MM/dd");
      	 Date formatDate = sdf.parse(S); 
      Date formatDate2 = sdf.parse(S2);
      	
      	
      	boolean result = formatDate2.after(formatDate);
      	if(!result){
	        System.out.println("TBD");
        }else{
        	System.out.println("Heisei");
        }
      	
      
    }
} Main
import java.util.*;
import java.text.*;
public class Main {
	public static void main(String[] args) throws ParseException{
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
      	String S = sc.next();
      	String S2 = "2019/05/01";
      	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
      	SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy/MM/dd");
      	 Date formatDate = sdf.parse(S); 
      Date formatDate2 = sdf.parse(S2);
      	
      	
      	boolean result = formatDate2.after(formatDate);
      	if(!result){
	        System.out.println("TBD");
        }else{
        	System.out.println("Heisei");
        }
      	
      
    }
}