import java.util.Scanner;
import java.util.Arrays;
import java.util.Calendar;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String S = scan.next();

        String[] str = S.split("/",0);
        scan.close();
        boolean flag = false;
        
        if(Integer.compare(2019,Integer.parseInt(str[0])) == 1){
                        System.out.println(str[0]);
            flag = true;
        } else if(Integer.compare(2019,Integer.parseInt(str[0])) == 0 && Integer.compare(04,Integer.parseInt(str[1])) == 1){
            flag = true;
        }else if(Integer.compare(04,Integer.parseInt(str[1])) == 0 && Integer.compare(31,Integer.parseInt(str[2])) == 1){
            flag = true;
    }
        if(flag == true){
            System.out.println("Heisei");
        }else{
             System.out.println("TBD");
        }
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.Calendar; Calendar java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String S = scan.next();

        String[] str = S.split("/",0);
        scan.close();
        boolean flag = false;
        
        if(Integer.compare(2019,Integer.parseInt(str[0])) == 1){
                        System.out.println(str[0]);
            flag = true;
        } else if(Integer.compare(2019,Integer.parseInt(str[0])) == 0 && Integer.compare(04,Integer.parseInt(str[1])) == 1){
            flag = true;
        }else if(Integer.compare(04,Integer.parseInt(str[1])) == 0 && Integer.compare(31,Integer.parseInt(str[2])) == 1){
            flag = true;
    }
        if(flag == true){
            System.out.println("Heisei");
        }else{
             System.out.println("TBD");
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String S = scan.next();

        String[] str = S.split("/",0);
        scan.close();
        boolean flag = false;
        
        if(Integer.compare(2019,Integer.parseInt(str[0])) == 1){
                        System.out.println(str[0]);
            flag = true;
        } else if(Integer.compare(2019,Integer.parseInt(str[0])) == 0 && Integer.compare(04,Integer.parseInt(str[1])) == 1){
            flag = true;
        }else if(Integer.compare(04,Integer.parseInt(str[1])) == 0 && Integer.compare(31,Integer.parseInt(str[2])) == 1){
            flag = true;
    }
        if(flag == true){
            System.out.println("Heisei");
        }else{
             System.out.println("TBD");
        }
    } main {
        Scanner scan = new Scanner(System.in);
        String S = scan.next();

        String[] str = S.split("/",0);
        scan.close();
        boolean flag = false;
        
        if(Integer.compare(2019,Integer.parseInt(str[0])) == 1){
                        System.out.println(str[0]);
            flag = true;
        } else if(Integer.compare(2019,Integer.parseInt(str[0])) == 0 && Integer.compare(04,Integer.parseInt(str[1])) == 1){
            flag = true;
        }else if(Integer.compare(04,Integer.parseInt(str[1])) == 0 && Integer.compare(31,Integer.parseInt(str[2])) == 1){
            flag = true;
    }
        if(flag == true){
            System.out.println("Heisei");
        }else{
             System.out.println("TBD");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String S = scan.next(); S scan.next() scan.next scan String[] str = S.split("/",0); str S.split("/",0) S.split S "/" 0 scan.close() scan.close scan boolean flag = false; flag false if(Integer.compare(2019,Integer.parseInt(str[0])) == 1){
                        System.out.println(str[0]);
            flag = true;
        } else if(Integer.compare(2019,Integer.parseInt(str[0])) == 0 && Integer.compare(04,Integer.parseInt(str[1])) == 1){
            flag = true;
        }else if(Integer.compare(04,Integer.parseInt(str[1])) == 0 && Integer.compare(31,Integer.parseInt(str[2])) == 1){
            flag = true;
    } Integer.compare(2019,Integer.parseInt(str[0])) == 1 Integer.compare(2019,Integer.parseInt(str[0])) Integer.compare Integer 2019 Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 1 {
                        System.out.println(str[0]);
            flag = true;
        } System.out.println(str[0]) System.out.println System.out System System.out str[0] str 0 flag = true flag true if(Integer.compare(2019,Integer.parseInt(str[0])) == 0 && Integer.compare(04,Integer.parseInt(str[1])) == 1){
            flag = true;
        }else if(Integer.compare(04,Integer.parseInt(str[1])) == 0 && Integer.compare(31,Integer.parseInt(str[2])) == 1){
            flag = true;
    } Integer.compare(2019,Integer.parseInt(str[0])) == 0 && Integer.compare(04,Integer.parseInt(str[1])) == 1 Integer.compare(2019,Integer.parseInt(str[0])) == 0 Integer.compare(2019,Integer.parseInt(str[0])) Integer.compare Integer 2019 Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 0 Integer.compare(04,Integer.parseInt(str[1])) == 1 Integer.compare(04,Integer.parseInt(str[1])) Integer.compare Integer 04 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 1 {
            flag = true;
        } flag = true flag true if(Integer.compare(04,Integer.parseInt(str[1])) == 0 && Integer.compare(31,Integer.parseInt(str[2])) == 1){
            flag = true;
    } Integer.compare(04,Integer.parseInt(str[1])) == 0 && Integer.compare(31,Integer.parseInt(str[2])) == 1 Integer.compare(04,Integer.parseInt(str[1])) == 0 Integer.compare(04,Integer.parseInt(str[1])) Integer.compare Integer 04 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 0 Integer.compare(31,Integer.parseInt(str[2])) == 1 Integer.compare(31,Integer.parseInt(str[2])) Integer.compare Integer 31 Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 1 {
            flag = true;
    } flag = true flag true if(flag == true){
            System.out.println("Heisei");
        }else{
             System.out.println("TBD");
        } flag == true flag true {
            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) {
        Scanner scan = new Scanner(System.in);
        String S = scan.next();

        String[] str = S.split("/",0);
        scan.close();
        boolean flag = false;
        
        if(Integer.compare(2019,Integer.parseInt(str[0])) == 1){
                        System.out.println(str[0]);
            flag = true;
        } else if(Integer.compare(2019,Integer.parseInt(str[0])) == 0 && Integer.compare(04,Integer.parseInt(str[1])) == 1){
            flag = true;
        }else if(Integer.compare(04,Integer.parseInt(str[1])) == 0 && Integer.compare(31,Integer.parseInt(str[2])) == 1){
            flag = true;
    }
        if(flag == true){
            System.out.println("Heisei");
        }else{
             System.out.println("TBD");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String S = scan.next();

        String[] str = S.split("/",0);
        scan.close();
        boolean flag = false;
        
        if(Integer.compare(2019,Integer.parseInt(str[0])) == 1){
                        System.out.println(str[0]);
            flag = true;
        } else if(Integer.compare(2019,Integer.parseInt(str[0])) == 0 && Integer.compare(04,Integer.parseInt(str[1])) == 1){
            flag = true;
        }else if(Integer.compare(04,Integer.parseInt(str[1])) == 0 && Integer.compare(31,Integer.parseInt(str[2])) == 1){
            flag = true;
    }
        if(flag == true){
            System.out.println("Heisei");
        }else{
             System.out.println("TBD");
        }
    }
} Main
import java.util.Scanner;
import java.util.Arrays;
import java.util.Calendar;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String S = scan.next();

        String[] str = S.split("/",0);
        scan.close();
        boolean flag = false;
        
        if(Integer.compare(2019,Integer.parseInt(str[0])) == 1){
                        System.out.println(str[0]);
            flag = true;
        } else if(Integer.compare(2019,Integer.parseInt(str[0])) == 0 && Integer.compare(04,Integer.parseInt(str[1])) == 1){
            flag = true;
        }else if(Integer.compare(04,Integer.parseInt(str[1])) == 0 && Integer.compare(31,Integer.parseInt(str[2])) == 1){
            flag = true;
    }
        if(flag == true){
            System.out.println("Heisei");
        }else{
             System.out.println("TBD");
        }
    }
}