import java.util.*;
public class Main {
    public static void main(String[] args){
        String[] cal;
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] difs = S.split("/");
        int dif0 = Integer.parseInt(difs[0]);
        int dif1 = Integer.parseInt(difs[1]);
        int dif2 = Integer.parseInt(difs[2]);
        if(dif0 <= 2019 && dif1 <= 4 && dif2 <= 30){
            System.out.print("Heisei");
        }else{
            System.out.print("TBD");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        String[] cal;
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] difs = S.split("/");
        int dif0 = Integer.parseInt(difs[0]);
        int dif1 = Integer.parseInt(difs[1]);
        int dif2 = Integer.parseInt(difs[2]);
        if(dif0 <= 2019 && dif1 <= 4 && dif2 <= 30){
            System.out.print("Heisei");
        }else{
            System.out.print("TBD");
        }
    }
} Main public static void main(String[] args){
        String[] cal;
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] difs = S.split("/");
        int dif0 = Integer.parseInt(difs[0]);
        int dif1 = Integer.parseInt(difs[1]);
        int dif2 = Integer.parseInt(difs[2]);
        if(dif0 <= 2019 && dif1 <= 4 && dif2 <= 30){
            System.out.print("Heisei");
        }else{
            System.out.print("TBD");
        }
    } main {
        String[] cal;
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] difs = S.split("/");
        int dif0 = Integer.parseInt(difs[0]);
        int dif1 = Integer.parseInt(difs[1]);
        int dif2 = Integer.parseInt(difs[2]);
        if(dif0 <= 2019 && dif1 <= 4 && dif2 <= 30){
            System.out.print("Heisei");
        }else{
            System.out.print("TBD");
        }
    } String[] cal; cal Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc String[] difs = S.split("/"); difs S.split("/") S.split S "/" int dif0 = Integer.parseInt(difs[0]); dif0 Integer.parseInt(difs[0]) Integer.parseInt Integer difs[0] difs 0 int dif1 = Integer.parseInt(difs[1]); dif1 Integer.parseInt(difs[1]) Integer.parseInt Integer difs[1] difs 1 int dif2 = Integer.parseInt(difs[2]); dif2 Integer.parseInt(difs[2]) Integer.parseInt Integer difs[2] difs 2 if(dif0 <= 2019 && dif1 <= 4 && dif2 <= 30){
            System.out.print("Heisei");
        }else{
            System.out.print("TBD");
        } dif0 <= 2019 && dif1 <= 4 && dif2 <= 30 dif0 <= 2019 && dif1 <= 4 && dif2 <= 30 dif0 <= 2019 dif0 2019 dif1 <= 4 dif1 4 dif2 <= 30 dif2 30 {
            System.out.print("Heisei");
        } System.out.print("Heisei") System.out.print System.out System System.out "Heisei" {
            System.out.print("TBD");
        } System.out.print("TBD") System.out.print System.out System System.out "TBD" String[] args args public class Main {
    public static void main(String[] args){
        String[] cal;
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] difs = S.split("/");
        int dif0 = Integer.parseInt(difs[0]);
        int dif1 = Integer.parseInt(difs[1]);
        int dif2 = Integer.parseInt(difs[2]);
        if(dif0 <= 2019 && dif1 <= 4 && dif2 <= 30){
            System.out.print("Heisei");
        }else{
            System.out.print("TBD");
        }
    }
} public class Main {
    public static void main(String[] args){
        String[] cal;
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] difs = S.split("/");
        int dif0 = Integer.parseInt(difs[0]);
        int dif1 = Integer.parseInt(difs[1]);
        int dif2 = Integer.parseInt(difs[2]);
        if(dif0 <= 2019 && dif1 <= 4 && dif2 <= 30){
            System.out.print("Heisei");
        }else{
            System.out.print("TBD");
        }
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        String[] cal;
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] difs = S.split("/");
        int dif0 = Integer.parseInt(difs[0]);
        int dif1 = Integer.parseInt(difs[1]);
        int dif2 = Integer.parseInt(difs[2]);
        if(dif0 <= 2019 && dif1 <= 4 && dif2 <= 30){
            System.out.print("Heisei");
        }else{
            System.out.print("TBD");
        }
    }
}