import java.util.Scanner;

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

        String day = sc.nextLine();
        String str[] = day.split("/");
        int a[] = new int[3];
        for (int i = 0; i < str.length; i++)
            a[i] = Integer.parseInt(str[i]);
        if (a[0] > 2019)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4 && a[2] < 31)
            System.out.println("TBD");
        else
            System.out.println("Heisei");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String day = sc.nextLine();
        String str[] = day.split("/");
        int a[] = new int[3];
        for (int i = 0; i < str.length; i++)
            a[i] = Integer.parseInt(str[i]);
        if (a[0] > 2019)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4 && a[2] < 31)
            System.out.println("TBD");
        else
            System.out.println("Heisei");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String day = sc.nextLine();
        String str[] = day.split("/");
        int a[] = new int[3];
        for (int i = 0; i < str.length; i++)
            a[i] = Integer.parseInt(str[i]);
        if (a[0] > 2019)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4 && a[2] < 31)
            System.out.println("TBD");
        else
            System.out.println("Heisei");
    } main {
        Scanner sc = new Scanner(System.in);

        String day = sc.nextLine();
        String str[] = day.split("/");
        int a[] = new int[3];
        for (int i = 0; i < str.length; i++)
            a[i] = Integer.parseInt(str[i]);
        if (a[0] > 2019)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4 && a[2] < 31)
            System.out.println("TBD");
        else
            System.out.println("Heisei");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String day = sc.nextLine(); day sc.nextLine() sc.nextLine sc String str[] = day.split("/"); str day.split("/") day.split day "/" int a[] = new int[3]; a new int[3] 3 for (int i = 0; i < str.length; i++)
            a[i] = Integer.parseInt(str[i]); int i = 0; int i = 0; i 0 i < str.length i str.length str str.length i++ i++ i a[i] = Integer.parseInt(str[i]); a[i] = Integer.parseInt(str[i]) a[i] a i Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i if (a[0] > 2019)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4 && a[2] < 31)
            System.out.println("TBD");
        else
            System.out.println("Heisei"); a[0] > 2019 a[0] a 0 2019 System.out.println("TBD") System.out.println System.out System System.out "TBD" if (a[0] == 2019 && a[1] > 4)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4 && a[2] < 31)
            System.out.println("TBD");
        else
            System.out.println("Heisei"); a[0] == 2019 && a[1] > 4 a[0] == 2019 a[0] a 0 2019 a[1] > 4 a[1] a 1 4 System.out.println("TBD") System.out.println System.out System System.out "TBD" if (a[0] == 2019 && a[1] > 4 && a[2] < 31)
            System.out.println("TBD");
        else
            System.out.println("Heisei"); a[0] == 2019 && a[1] > 4 && a[2] < 31 a[0] == 2019 && a[1] > 4 && a[2] < 31 a[0] == 2019 a[0] a 0 2019 a[1] > 4 a[1] a 1 4 a[2] < 31 a[2] a 2 31 System.out.println("TBD") System.out.println System.out System System.out "TBD" System.out.println("Heisei") System.out.println System.out System System.out "Heisei" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String day = sc.nextLine();
        String str[] = day.split("/");
        int a[] = new int[3];
        for (int i = 0; i < str.length; i++)
            a[i] = Integer.parseInt(str[i]);
        if (a[0] > 2019)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4 && a[2] < 31)
            System.out.println("TBD");
        else
            System.out.println("Heisei");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String day = sc.nextLine();
        String str[] = day.split("/");
        int a[] = new int[3];
        for (int i = 0; i < str.length; i++)
            a[i] = Integer.parseInt(str[i]);
        if (a[0] > 2019)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4 && a[2] < 31)
            System.out.println("TBD");
        else
            System.out.println("Heisei");
    }
} Main
import java.util.Scanner;

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

        String day = sc.nextLine();
        String str[] = day.split("/");
        int a[] = new int[3];
        for (int i = 0; i < str.length; i++)
            a[i] = Integer.parseInt(str[i]);
        if (a[0] > 2019)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4)
            System.out.println("TBD");
        else if (a[0] == 2019 && a[1] > 4 && a[2] < 31)
            System.out.println("TBD");
        else
            System.out.println("Heisei");
    }
}