import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] dateArray = date.split("/",0);
        if(Integer.parseInt(dateArray[0]) < 2019){
            System.out.println("Heisei");
        } else if(Integer.parseInt(dateArray[0]) == 2019 && Integer.parseInt(dateArray[1]) <= 4){
            System.out.println("Heisei");
        } else{
            System.out.println("TBD");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] dateArray = date.split("/",0);
        if(Integer.parseInt(dateArray[0]) < 2019){
            System.out.println("Heisei");
        } else if(Integer.parseInt(dateArray[0]) == 2019 && Integer.parseInt(dateArray[1]) <= 4){
            System.out.println("Heisei");
        } else{
            System.out.println("TBD");
        }
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] dateArray = date.split("/",0);
        if(Integer.parseInt(dateArray[0]) < 2019){
            System.out.println("Heisei");
        } else if(Integer.parseInt(dateArray[0]) == 2019 && Integer.parseInt(dateArray[1]) <= 4){
            System.out.println("Heisei");
        } else{
            System.out.println("TBD");
        }
    } main {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] dateArray = date.split("/",0);
        if(Integer.parseInt(dateArray[0]) < 2019){
            System.out.println("Heisei");
        } else if(Integer.parseInt(dateArray[0]) == 2019 && Integer.parseInt(dateArray[1]) <= 4){
            System.out.println("Heisei");
        } else{
            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[] dateArray = date.split("/",0); dateArray date.split("/",0) date.split date "/" 0 if(Integer.parseInt(dateArray[0]) < 2019){
            System.out.println("Heisei");
        } else if(Integer.parseInt(dateArray[0]) == 2019 && Integer.parseInt(dateArray[1]) <= 4){
            System.out.println("Heisei");
        } else{
            System.out.println("TBD");
        } Integer.parseInt(dateArray[0]) < 2019 Integer.parseInt(dateArray[0]) Integer.parseInt Integer dateArray[0] dateArray 0 2019 {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(Integer.parseInt(dateArray[0]) == 2019 && Integer.parseInt(dateArray[1]) <= 4){
            System.out.println("Heisei");
        } else{
            System.out.println("TBD");
        } Integer.parseInt(dateArray[0]) == 2019 && Integer.parseInt(dateArray[1]) <= 4 Integer.parseInt(dateArray[0]) == 2019 Integer.parseInt(dateArray[0]) Integer.parseInt Integer dateArray[0] dateArray 0 2019 Integer.parseInt(dateArray[1]) <= 4 Integer.parseInt(dateArray[1]) Integer.parseInt Integer dateArray[1] dateArray 1 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" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] dateArray = date.split("/",0);
        if(Integer.parseInt(dateArray[0]) < 2019){
            System.out.println("Heisei");
        } else if(Integer.parseInt(dateArray[0]) == 2019 && Integer.parseInt(dateArray[1]) <= 4){
            System.out.println("Heisei");
        } else{
            System.out.println("TBD");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] dateArray = date.split("/",0);
        if(Integer.parseInt(dateArray[0]) < 2019){
            System.out.println("Heisei");
        } else if(Integer.parseInt(dateArray[0]) == 2019 && Integer.parseInt(dateArray[1]) <= 4){
            System.out.println("Heisei");
        } else{
            System.out.println("TBD");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] dateArray = date.split("/",0);
        if(Integer.parseInt(dateArray[0]) < 2019){
            System.out.println("Heisei");
        } else if(Integer.parseInt(dateArray[0]) == 2019 && Integer.parseInt(dateArray[1]) <= 4){
            System.out.println("Heisei");
        } else{
            System.out.println("TBD");
        }
    }
}
