import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] arr = sc.nextLine().split("/");

        String ans = "";
        if (Integer.parseInt(arr[0]) == 2019 &&  Integer.parseInt(arr[1]) <= 4 || Integer.parseInt(arr[0]) < 2019) ans = "Heisei";
        else ans = "TBD";

        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] arr = sc.nextLine().split("/");

        String ans = "";
        if (Integer.parseInt(arr[0]) == 2019 &&  Integer.parseInt(arr[1]) <= 4 || Integer.parseInt(arr[0]) < 2019) ans = "Heisei";
        else ans = "TBD";

        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] arr = sc.nextLine().split("/");

        String ans = "";
        if (Integer.parseInt(arr[0]) == 2019 &&  Integer.parseInt(arr[1]) <= 4 || Integer.parseInt(arr[0]) < 2019) ans = "Heisei";
        else ans = "TBD";

        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        String[] arr = sc.nextLine().split("/");

        String ans = "";
        if (Integer.parseInt(arr[0]) == 2019 &&  Integer.parseInt(arr[1]) <= 4 || Integer.parseInt(arr[0]) < 2019) ans = "Heisei";
        else ans = "TBD";

        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] arr = sc.nextLine().split("/"); arr sc.nextLine().split("/") sc.nextLine().split sc.nextLine() sc.nextLine sc "/" String ans = ""; ans "" if (Integer.parseInt(arr[0]) == 2019 &&  Integer.parseInt(arr[1]) <= 4 || Integer.parseInt(arr[0]) < 2019) ans = "Heisei";
        else ans = "TBD"; Integer.parseInt(arr[0]) == 2019 &&  Integer.parseInt(arr[1]) <= 4 || Integer.parseInt(arr[0]) < 2019 Integer.parseInt(arr[0]) == 2019 &&  Integer.parseInt(arr[1]) <= 4 Integer.parseInt(arr[0]) == 2019 Integer.parseInt(arr[0]) Integer.parseInt Integer arr[0] arr 0 2019 Integer.parseInt(arr[1]) <= 4 Integer.parseInt(arr[1]) Integer.parseInt Integer arr[1] arr 1 4 Integer.parseInt(arr[0]) < 2019 Integer.parseInt(arr[0]) Integer.parseInt Integer arr[0] arr 0 2019 ans = "Heisei" ans "Heisei" ans = "TBD" ans "TBD" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] arr = sc.nextLine().split("/");

        String ans = "";
        if (Integer.parseInt(arr[0]) == 2019 &&  Integer.parseInt(arr[1]) <= 4 || Integer.parseInt(arr[0]) < 2019) ans = "Heisei";
        else ans = "TBD";

        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] arr = sc.nextLine().split("/");

        String ans = "";
        if (Integer.parseInt(arr[0]) == 2019 &&  Integer.parseInt(arr[1]) <= 4 || Integer.parseInt(arr[0]) < 2019) ans = "Heisei";
        else ans = "TBD";

        System.out.println(ans);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] arr = sc.nextLine().split("/");

        String ans = "";
        if (Integer.parseInt(arr[0]) == 2019 &&  Integer.parseInt(arr[1]) <= 4 || Integer.parseInt(arr[0]) < 2019) ans = "Heisei";
        else ans = "TBD";

        System.out.println(ans);
    }
}