import java.util.Scanner;

class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
      	
      	String S = sc.next();
      	sc.close();
      
      	String year = S.substring(0, 4);
      	String month = S.substring(5, 7);
      	String day = S.substring(8, 10);
      
      	if (Integer.parseInt(year) >= 2019 && Integer.parseInt(month) >= 5) {
        	System.out.println("TBD");
        } else {
        	System.out.println("Heisei");	
        }
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
      	
      	String S = sc.next();
      	sc.close();
      
      	String year = S.substring(0, 4);
      	String month = S.substring(5, 7);
      	String day = S.substring(8, 10);
      
      	if (Integer.parseInt(year) >= 2019 && Integer.parseInt(month) >= 5) {
        	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();
      	sc.close();
      
      	String year = S.substring(0, 4);
      	String month = S.substring(5, 7);
      	String day = S.substring(8, 10);
      
      	if (Integer.parseInt(year) >= 2019 && Integer.parseInt(month) >= 5) {
        	System.out.println("TBD");
        } else {
        	System.out.println("Heisei");	
        }
	} main {
    	Scanner sc = new Scanner(System.in);
      	
      	String S = sc.next();
      	sc.close();
      
      	String year = S.substring(0, 4);
      	String month = S.substring(5, 7);
      	String day = S.substring(8, 10);
      
      	if (Integer.parseInt(year) >= 2019 && Integer.parseInt(month) >= 5) {
        	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 sc.close() sc.close sc String year = S.substring(0, 4); year S.substring(0, 4) S.substring S 0 4 String month = S.substring(5, 7); month S.substring(5, 7) S.substring S 5 7 String day = S.substring(8, 10); day S.substring(8, 10) S.substring S 8 10 if (Integer.parseInt(year) >= 2019 && Integer.parseInt(month) >= 5) {
        	System.out.println("TBD");
        } else {
        	System.out.println("Heisei");	
        } Integer.parseInt(year) >= 2019 && Integer.parseInt(month) >= 5 Integer.parseInt(year) >= 2019 Integer.parseInt(year) Integer.parseInt Integer year 2019 Integer.parseInt(month) >= 5 Integer.parseInt(month) Integer.parseInt Integer month 5 {
        	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
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
      	
      	String S = sc.next();
      	sc.close();
      
      	String year = S.substring(0, 4);
      	String month = S.substring(5, 7);
      	String day = S.substring(8, 10);
      
      	if (Integer.parseInt(year) >= 2019 && Integer.parseInt(month) >= 5) {
        	System.out.println("TBD");
        } else {
        	System.out.println("Heisei");	
        }
	}
}