import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int A = 20190430;
        
        S = S.replace("/","");
        int num = Integer.parseInt(S); 
 
        System.out.println(num - A <= 0 ? "Heisei" : "TBD");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int A = 20190430;
        
        S = S.replace("/","");
        int num = Integer.parseInt(S); 
 
        System.out.println(num - A <= 0 ? "Heisei" : "TBD");
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int A = 20190430;
        
        S = S.replace("/","");
        int num = Integer.parseInt(S); 
 
        System.out.println(num - A <= 0 ? "Heisei" : "TBD");
    } main {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int A = 20190430;
        
        S = S.replace("/","");
        int num = Integer.parseInt(S); 
 
        System.out.println(num - A <= 0 ? "Heisei" : "TBD");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int A = 20190430; A 20190430 S = S.replace("/","") S S.replace("/","") S.replace S "/" "" int num = Integer.parseInt(S); num Integer.parseInt(S) Integer.parseInt Integer S System.out.println(num - A <= 0 ? "Heisei" : "TBD") System.out.println System.out System System.out num - A <= 0 ? "Heisei" : "TBD" num - A <= 0 num - A num A 0 "Heisei" "TBD" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int A = 20190430;
        
        S = S.replace("/","");
        int num = Integer.parseInt(S); 
 
        System.out.println(num - A <= 0 ? "Heisei" : "TBD");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int A = 20190430;
        
        S = S.replace("/","");
        int num = Integer.parseInt(S); 
 
        System.out.println(num - A <= 0 ? "Heisei" : "TBD");
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int A = 20190430;
        
        S = S.replace("/","");
        int num = Integer.parseInt(S); 
 
        System.out.println(num - A <= 0 ? "Heisei" : "TBD");
    }
}