import java.io.*;

class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String S = br.readLine();
        String [] ymd = S.split("/");
        int[] ymd_num = new int[ymd.length];
        int cont = 0;
        for (String t:ymd){
            ymd_num[cont] = Integer.parseInt(t);
            cont = cont + 1;
        }
        if (ymd_num[0] <= 2018){
            System.out.println("Heisei");
        } else if (ymd_num[0] == 2019 && ymd_num[1] <= 4){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String S = br.readLine();
        String [] ymd = S.split("/");
        int[] ymd_num = new int[ymd.length];
        int cont = 0;
        for (String t:ymd){
            ymd_num[cont] = Integer.parseInt(t);
            cont = cont + 1;
        }
        if (ymd_num[0] <= 2018){
            System.out.println("Heisei");
        } else if (ymd_num[0] == 2019 && ymd_num[1] <= 4){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String S = br.readLine();
        String [] ymd = S.split("/");
        int[] ymd_num = new int[ymd.length];
        int cont = 0;
        for (String t:ymd){
            ymd_num[cont] = Integer.parseInt(t);
            cont = cont + 1;
        }
        if (ymd_num[0] <= 2018){
            System.out.println("Heisei");
        } else if (ymd_num[0] == 2019 && ymd_num[1] <= 4){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String S = br.readLine();
        String [] ymd = S.split("/");
        int[] ymd_num = new int[ymd.length];
        int cont = 0;
        for (String t:ymd){
            ymd_num[cont] = Integer.parseInt(t);
            cont = cont + 1;
        }
        if (ymd_num[0] <= 2018){
            System.out.println("Heisei");
        } else if (ymd_num[0] == 2019 && ymd_num[1] <= 4){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String S = br.readLine(); S br.readLine() br.readLine br String [] ymd = S.split("/"); ymd S.split("/") S.split S "/" int[] ymd_num = new int[ymd.length]; ymd_num new int[ymd.length] ymd.length ymd ymd.length int cont = 0; cont 0 for (String t:ymd){
            ymd_num[cont] = Integer.parseInt(t);
            cont = cont + 1;
        } String t ymd {
            ymd_num[cont] = Integer.parseInt(t);
            cont = cont + 1;
        } {
            ymd_num[cont] = Integer.parseInt(t);
            cont = cont + 1;
        } ymd_num[cont] = Integer.parseInt(t) ymd_num[cont] ymd_num cont Integer.parseInt(t) Integer.parseInt Integer t cont = cont + 1 cont cont + 1 cont 1 if (ymd_num[0] <= 2018){
            System.out.println("Heisei");
        } else if (ymd_num[0] == 2019 && ymd_num[1] <= 4){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } ymd_num[0] <= 2018 ymd_num[0] ymd_num 0 2018 {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if (ymd_num[0] == 2019 && ymd_num[1] <= 4){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } ymd_num[0] == 2019 && ymd_num[1] <= 4 ymd_num[0] == 2019 ymd_num[0] ymd_num 0 2019 ymd_num[1] <= 4 ymd_num[1] ymd_num 1 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
import java.io.*;

class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String S = br.readLine();
        String [] ymd = S.split("/");
        int[] ymd_num = new int[ymd.length];
        int cont = 0;
        for (String t:ymd){
            ymd_num[cont] = Integer.parseInt(t);
            cont = cont + 1;
        }
        if (ymd_num[0] <= 2018){
            System.out.println("Heisei");
        } else if (ymd_num[0] == 2019 && ymd_num[1] <= 4){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
}