import java.util.*;
class Main{
    public static void main(String[] args){

        Scanner scan = new Scanner(System.in);
        String S = scan.next();

        String[] s = S.split("/",0);

        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);

        if(year<2019){
            System.out.println("Heisei");
        }else if(year==2019){
            if(month>=5){
                System.out.println("TBD");
            }else{
                System.out.println("Heisei");
            }
        }else{
            System.out.println("TBD");
        }

    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){

        Scanner scan = new Scanner(System.in);
        String S = scan.next();

        String[] s = S.split("/",0);

        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);

        if(year<2019){
            System.out.println("Heisei");
        }else if(year==2019){
            if(month>=5){
                System.out.println("TBD");
            }else{
                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[] s = S.split("/",0);

        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);

        if(year<2019){
            System.out.println("Heisei");
        }else if(year==2019){
            if(month>=5){
                System.out.println("TBD");
            }else{
                System.out.println("Heisei");
            }
        }else{
            System.out.println("TBD");
        }

    } main {

        Scanner scan = new Scanner(System.in);
        String S = scan.next();

        String[] s = S.split("/",0);

        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);

        if(year<2019){
            System.out.println("Heisei");
        }else if(year==2019){
            if(month>=5){
                System.out.println("TBD");
            }else{
                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[] s = S.split("/",0); s S.split("/",0) S.split S "/" 0 int year = Integer.parseInt(s[0]); year Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int month = Integer.parseInt(s[1]); month Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int day = Integer.parseInt(s[2]); day Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 if(year<2019){
            System.out.println("Heisei");
        }else if(year==2019){
            if(month>=5){
                System.out.println("TBD");
            }else{
                System.out.println("Heisei");
            }
        }else{
            System.out.println("TBD");
        } year<2019 year 2019 {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(year==2019){
            if(month>=5){
                System.out.println("TBD");
            }else{
                System.out.println("Heisei");
            }
        }else{
            System.out.println("TBD");
        } year==2019 year 2019 {
            if(month>=5){
                System.out.println("TBD");
            }else{
                System.out.println("Heisei");
            }
        } if(month>=5){
                System.out.println("TBD");
            }else{
                System.out.println("Heisei");
            } month>=5 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" {
            System.out.println("TBD");
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){

        Scanner scan = new Scanner(System.in);
        String S = scan.next();

        String[] s = S.split("/",0);

        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);

        if(year<2019){
            System.out.println("Heisei");
        }else if(year==2019){
            if(month>=5){
                System.out.println("TBD");
            }else{
                System.out.println("Heisei");
            }
        }else{
            System.out.println("TBD");
        }

    }
}