import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
   	
        String Date = sc.next();
        String[] A = Date.split("/");
    	
        int B0 = Integer.parseInt(A[0]);
        int B1 = Integer.parseInt(A[1]);
        
        if(B0 < 2019) {
     		System.out.println("Heisei");
        }
        
        if(B0 == 2019) {
        	if(B1 <= 4) {
        		System.out.println("Heisei");
        	}
        	else {
        		System.out.println("TBD");
        	}       	
        }
        if(B0 > 2019) {
    		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 Date = sc.next();
        String[] A = Date.split("/");
    	
        int B0 = Integer.parseInt(A[0]);
        int B1 = Integer.parseInt(A[1]);
        
        if(B0 < 2019) {
     		System.out.println("Heisei");
        }
        
        if(B0 == 2019) {
        	if(B1 <= 4) {
        		System.out.println("Heisei");
        	}
        	else {
        		System.out.println("TBD");
        	}       	
        }
        if(B0 > 2019) {
    		System.out.println("TBD");
        }
  	}
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
   	
        String Date = sc.next();
        String[] A = Date.split("/");
    	
        int B0 = Integer.parseInt(A[0]);
        int B1 = Integer.parseInt(A[1]);
        
        if(B0 < 2019) {
     		System.out.println("Heisei");
        }
        
        if(B0 == 2019) {
        	if(B1 <= 4) {
        		System.out.println("Heisei");
        	}
        	else {
        		System.out.println("TBD");
        	}       	
        }
        if(B0 > 2019) {
    		System.out.println("TBD");
        }
  	} main {
        Scanner sc = new Scanner(System.in);
   	
        String Date = sc.next();
        String[] A = Date.split("/");
    	
        int B0 = Integer.parseInt(A[0]);
        int B1 = Integer.parseInt(A[1]);
        
        if(B0 < 2019) {
     		System.out.println("Heisei");
        }
        
        if(B0 == 2019) {
        	if(B1 <= 4) {
        		System.out.println("Heisei");
        	}
        	else {
        		System.out.println("TBD");
        	}       	
        }
        if(B0 > 2019) {
    		System.out.println("TBD");
        }
  	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String Date = sc.next(); Date sc.next() sc.next sc String[] A = Date.split("/"); A Date.split("/") Date.split Date "/" int B0 = Integer.parseInt(A[0]); B0 Integer.parseInt(A[0]) Integer.parseInt Integer A[0] A 0 int B1 = Integer.parseInt(A[1]); B1 Integer.parseInt(A[1]) Integer.parseInt Integer A[1] A 1 if(B0 < 2019) {
     		System.out.println("Heisei");
        } B0 < 2019 B0 2019 {
     		System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(B0 == 2019) {
        	if(B1 <= 4) {
        		System.out.println("Heisei");
        	}
        	else {
        		System.out.println("TBD");
        	}       	
        } B0 == 2019 B0 2019 {
        	if(B1 <= 4) {
        		System.out.println("Heisei");
        	}
        	else {
        		System.out.println("TBD");
        	}       	
        } if(B1 <= 4) {
        		System.out.println("Heisei");
        	}
        	else {
        		System.out.println("TBD");
        	} B1 <= 4 B1 4 {
        		System.out.println("Heisei");
        	} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
        		System.out.println("TBD");
        	} System.out.println("TBD") System.out.println System.out System System.out "TBD" if(B0 > 2019) {
    		System.out.println("TBD");
        } B0 > 2019 B0 2019 {
    		System.out.println("TBD");
        } 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 Date = sc.next();
        String[] A = Date.split("/");
    	
        int B0 = Integer.parseInt(A[0]);
        int B1 = Integer.parseInt(A[1]);
        
        if(B0 < 2019) {
     		System.out.println("Heisei");
        }
        
        if(B0 == 2019) {
        	if(B1 <= 4) {
        		System.out.println("Heisei");
        	}
        	else {
        		System.out.println("TBD");
        	}       	
        }
        if(B0 > 2019) {
    		System.out.println("TBD");
        }
  	}
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
   	
        String Date = sc.next();
        String[] A = Date.split("/");
    	
        int B0 = Integer.parseInt(A[0]);
        int B1 = Integer.parseInt(A[1]);
        
        if(B0 < 2019) {
     		System.out.println("Heisei");
        }
        
        if(B0 == 2019) {
        	if(B1 <= 4) {
        		System.out.println("Heisei");
        	}
        	else {
        		System.out.println("TBD");
        	}       	
        }
        if(B0 > 2019) {
    		System.out.println("TBD");
        }
  	}
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
   	
        String Date = sc.next();
        String[] A = Date.split("/");
    	
        int B0 = Integer.parseInt(A[0]);
        int B1 = Integer.parseInt(A[1]);
        
        if(B0 < 2019) {
     		System.out.println("Heisei");
        }
        
        if(B0 == 2019) {
        	if(B1 <= 4) {
        		System.out.println("Heisei");
        	}
        	else {
        		System.out.println("TBD");
        	}       	
        }
        if(B0 > 2019) {
    		System.out.println("TBD");
        }
  	}
}