import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int year = Integer.parseInt(S.substring(0,4));
        int month = Integer.parseInt(S.substring(5,7));
        int day = Integer.parseInt(S.substring(8,10));

        if(year < 2019){
            System.out.println("Heisei");
            return;
        }
        if(month <= 4 && year==2019){
            System.out.println("Heisei");
            return;
        }
//        if(month == 4 && day<=30 && year==2019) System.out.println("Heisei");
        System.out.println("TBD");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int year = Integer.parseInt(S.substring(0,4));
        int month = Integer.parseInt(S.substring(5,7));
        int day = Integer.parseInt(S.substring(8,10));

        if(year < 2019){
            System.out.println("Heisei");
            return;
        }
        if(month <= 4 && year==2019){
            System.out.println("Heisei");
            return;
        }
//        if(month == 4 && day<=30 && year==2019) System.out.println("Heisei");
        System.out.println("TBD");
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int year = Integer.parseInt(S.substring(0,4));
        int month = Integer.parseInt(S.substring(5,7));
        int day = Integer.parseInt(S.substring(8,10));

        if(year < 2019){
            System.out.println("Heisei");
            return;
        }
        if(month <= 4 && year==2019){
            System.out.println("Heisei");
            return;
        }
//        if(month == 4 && day<=30 && year==2019) System.out.println("Heisei");
        System.out.println("TBD");
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int year = Integer.parseInt(S.substring(0,4));
        int month = Integer.parseInt(S.substring(5,7));
        int day = Integer.parseInt(S.substring(8,10));

        if(year < 2019){
            System.out.println("Heisei");
            return;
        }
        if(month <= 4 && year==2019){
            System.out.println("Heisei");
            return;
        }
//        if(month == 4 && day<=30 && year==2019) System.out.println("Heisei");
        System.out.println("TBD");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int year = Integer.parseInt(S.substring(0,4)); year Integer.parseInt(S.substring(0,4)) Integer.parseInt Integer S.substring(0,4) S.substring S 0 4 int month = Integer.parseInt(S.substring(5,7)); month Integer.parseInt(S.substring(5,7)) Integer.parseInt Integer S.substring(5,7) S.substring S 5 7 int day = Integer.parseInt(S.substring(8,10)); day Integer.parseInt(S.substring(8,10)) Integer.parseInt Integer S.substring(8,10) S.substring S 8 10 if(year < 2019){
            System.out.println("Heisei");
            return;
        } year < 2019 year 2019 {
            System.out.println("Heisei");
            return;
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" return; if(month <= 4 && year==2019){
            System.out.println("Heisei");
            return;
        } month <= 4 && year==2019 month <= 4 month 4 year==2019 year 2019 {
            System.out.println("Heisei");
            return;
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" return; 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 S = sc.next();
        int year = Integer.parseInt(S.substring(0,4));
        int month = Integer.parseInt(S.substring(5,7));
        int day = Integer.parseInt(S.substring(8,10));

        if(year < 2019){
            System.out.println("Heisei");
            return;
        }
        if(month <= 4 && year==2019){
            System.out.println("Heisei");
            return;
        }
//        if(month == 4 && day<=30 && year==2019) System.out.println("Heisei");
        System.out.println("TBD");
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int year = Integer.parseInt(S.substring(0,4));
        int month = Integer.parseInt(S.substring(5,7));
        int day = Integer.parseInt(S.substring(8,10));

        if(year < 2019){
            System.out.println("Heisei");
            return;
        }
        if(month <= 4 && year==2019){
            System.out.println("Heisei");
            return;
        }
//        if(month == 4 && day<=30 && year==2019) System.out.println("Heisei");
        System.out.println("TBD");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int year = Integer.parseInt(S.substring(0,4));
        int month = Integer.parseInt(S.substring(5,7));
        int day = Integer.parseInt(S.substring(8,10));

        if(year < 2019){
            System.out.println("Heisei");
            return;
        }
        if(month <= 4 && year==2019){
            System.out.println("Heisei");
            return;
        }
//        if(month == 4 && day<=30 && year==2019) System.out.println("Heisei");
        System.out.println("TBD");
    }
}
