import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        sc.useDelimiter("/|\n");
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.nextInt();
        if(a <= 2019 && b <= 4){
            System.out.println("Heisei");
        }else{
            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);
        sc.useDelimiter("/|\n");
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.nextInt();
        if(a <= 2019 && b <= 4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        sc.useDelimiter("/|\n");
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.nextInt();
        if(a <= 2019 && b <= 4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        sc.useDelimiter("/|\n");
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.nextInt();
        if(a <= 2019 && b <= 4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) sc.useDelimiter("/|\n") sc.useDelimiter sc "/|\n" int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc if(a <= 2019 && b <= 4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        } a <= 2019 && b <= 4 a <= 2019 a 2019 b <= 4 b 4 {
            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 public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        sc.useDelimiter("/|\n");
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.nextInt();
        if(a <= 2019 && b <= 4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        sc.useDelimiter("/|\n");
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.nextInt();
        if(a <= 2019 && b <= 4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        sc.useDelimiter("/|\n");
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.nextInt();
        if(a <= 2019 && b <= 4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    }
}
