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

        String val = S.substring(0,4);
        int yyyy = Integer.parseInt(val);

        String val2 = S.substring(5, 7);
        int mm = Integer.parseInt(val2);

        if ((yyyy == 2019 && mm < 5) || yyyy <= 2018) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();

        String val = S.substring(0,4);
        int yyyy = Integer.parseInt(val);

        String val2 = S.substring(5, 7);
        int mm = Integer.parseInt(val2);

        if ((yyyy == 2019 && mm < 5) || yyyy <= 2018) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();

        String val = S.substring(0,4);
        int yyyy = Integer.parseInt(val);

        String val2 = S.substring(5, 7);
        int mm = Integer.parseInt(val2);

        if ((yyyy == 2019 && mm < 5) || yyyy <= 2018) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();

        String val = S.substring(0,4);
        int yyyy = Integer.parseInt(val);

        String val2 = S.substring(5, 7);
        int mm = Integer.parseInt(val2);

        if ((yyyy == 2019 && mm < 5) || yyyy <= 2018) {
            System.out.println("Heisei");
        } else {
            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 String val = S.substring(0,4); val S.substring(0,4) S.substring S 0 4 int yyyy = Integer.parseInt(val); yyyy Integer.parseInt(val) Integer.parseInt Integer val String val2 = S.substring(5, 7); val2 S.substring(5, 7) S.substring S 5 7 int mm = Integer.parseInt(val2); mm Integer.parseInt(val2) Integer.parseInt Integer val2 if ((yyyy == 2019 && mm < 5) || yyyy <= 2018) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } (yyyy == 2019 && mm < 5) || yyyy <= 2018 (yyyy == 2019 && mm < 5) yyyy == 2019 yyyy 2019 mm < 5 mm 5 yyyy <= 2018 yyyy 2018 {
            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.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();

        String val = S.substring(0,4);
        int yyyy = Integer.parseInt(val);

        String val2 = S.substring(5, 7);
        int mm = Integer.parseInt(val2);

        if ((yyyy == 2019 && mm < 5) || yyyy <= 2018) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
}