import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        
        String[] input = lines[0].split("/");
        int y = Integer.parseInt(input[0]);
        int m = Integer.parseInt(input[1]);
        int d = Integer.parseInt(input[2]);
        
        if (y<2019)  {
            System.out.println("Heisei");
        }
        else if (y==2019 && m<=4 && d<=30){
            System.out.println("Heisei");
        }
        else {
            System.out.println("TBD");
        }
    }
    
    private static String[] getStdin() {
        Scanner scanner = new Scanner(System.in);
        ArrayList<String> lines = new ArrayList<>();
        while (scanner.hasNext()) {
            lines.add(scanner.nextLine());
        }
        return lines.toArray(new String[lines.size()]);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        
        String[] input = lines[0].split("/");
        int y = Integer.parseInt(input[0]);
        int m = Integer.parseInt(input[1]);
        int d = Integer.parseInt(input[2]);
        
        if (y<2019)  {
            System.out.println("Heisei");
        }
        else if (y==2019 && m<=4 && d<=30){
            System.out.println("Heisei");
        }
        else {
            System.out.println("TBD");
        }
    }
    
    private static String[] getStdin() {
        Scanner scanner = new Scanner(System.in);
        ArrayList<String> lines = new ArrayList<>();
        while (scanner.hasNext()) {
            lines.add(scanner.nextLine());
        }
        return lines.toArray(new String[lines.size()]);
    }
} Main public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        
        String[] input = lines[0].split("/");
        int y = Integer.parseInt(input[0]);
        int m = Integer.parseInt(input[1]);
        int d = Integer.parseInt(input[2]);
        
        if (y<2019)  {
            System.out.println("Heisei");
        }
        else if (y==2019 && m<=4 && d<=30){
            System.out.println("Heisei");
        }
        else {
            System.out.println("TBD");
        }
    } main {
        String[] lines = getStdin();
        
        String[] input = lines[0].split("/");
        int y = Integer.parseInt(input[0]);
        int m = Integer.parseInt(input[1]);
        int d = Integer.parseInt(input[2]);
        
        if (y<2019)  {
            System.out.println("Heisei");
        }
        else if (y==2019 && m<=4 && d<=30){
            System.out.println("Heisei");
        }
        else {
            System.out.println("TBD");
        }
    } String[] lines = getStdin(); lines getStdin() getStdin String[] input = lines[0].split("/"); input lines[0].split("/") lines[0].split lines[0] lines 0 "/" int y = Integer.parseInt(input[0]); y Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int m = Integer.parseInt(input[1]); m Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 int d = Integer.parseInt(input[2]); d Integer.parseInt(input[2]) Integer.parseInt Integer input[2] input 2 if (y<2019)  {
            System.out.println("Heisei");
        }
        else if (y==2019 && m<=4 && d<=30){
            System.out.println("Heisei");
        }
        else {
            System.out.println("TBD");
        } y<2019 y 2019 {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if (y==2019 && m<=4 && d<=30){
            System.out.println("Heisei");
        }
        else {
            System.out.println("TBD");
        } y==2019 && m<=4 && d<=30 y==2019 && m<=4 && d<=30 y==2019 y 2019 m<=4 m 4 d<=30 d 30 {
            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 private static String[] getStdin() {
        Scanner scanner = new Scanner(System.in);
        ArrayList<String> lines = new ArrayList<>();
        while (scanner.hasNext()) {
            lines.add(scanner.nextLine());
        }
        return lines.toArray(new String[lines.size()]);
    } getStdin {
        Scanner scanner = new Scanner(System.in);
        ArrayList<String> lines = new ArrayList<>();
        while (scanner.hasNext()) {
            lines.add(scanner.nextLine());
        }
        return lines.toArray(new String[lines.size()]);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) ArrayList<String> lines = new ArrayList<>(); lines new ArrayList<>() while (scanner.hasNext()) {
            lines.add(scanner.nextLine());
        } scanner.hasNext() scanner.hasNext scanner {
            lines.add(scanner.nextLine());
        } lines.add(scanner.nextLine()) lines.add lines scanner.nextLine() scanner.nextLine scanner return lines.toArray(new String[lines.size()]); lines.toArray(new String[lines.size()]) lines.toArray lines new String[lines.size()] lines.size() lines.size lines public class Main {
    public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        
        String[] input = lines[0].split("/");
        int y = Integer.parseInt(input[0]);
        int m = Integer.parseInt(input[1]);
        int d = Integer.parseInt(input[2]);
        
        if (y<2019)  {
            System.out.println("Heisei");
        }
        else if (y==2019 && m<=4 && d<=30){
            System.out.println("Heisei");
        }
        else {
            System.out.println("TBD");
        }
    }
    
    private static String[] getStdin() {
        Scanner scanner = new Scanner(System.in);
        ArrayList<String> lines = new ArrayList<>();
        while (scanner.hasNext()) {
            lines.add(scanner.nextLine());
        }
        return lines.toArray(new String[lines.size()]);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        
        String[] input = lines[0].split("/");
        int y = Integer.parseInt(input[0]);
        int m = Integer.parseInt(input[1]);
        int d = Integer.parseInt(input[2]);
        
        if (y<2019)  {
            System.out.println("Heisei");
        }
        else if (y==2019 && m<=4 && d<=30){
            System.out.println("Heisei");
        }
        else {
            System.out.println("TBD");
        }
    }
    
    private static String[] getStdin() {
        Scanner scanner = new Scanner(System.in);
        ArrayList<String> lines = new ArrayList<>();
        while (scanner.hasNext()) {
            lines.add(scanner.nextLine());
        }
        return lines.toArray(new String[lines.size()]);
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        String[] lines = getStdin();
        
        String[] input = lines[0].split("/");
        int y = Integer.parseInt(input[0]);
        int m = Integer.parseInt(input[1]);
        int d = Integer.parseInt(input[2]);
        
        if (y<2019)  {
            System.out.println("Heisei");
        }
        else if (y==2019 && m<=4 && d<=30){
            System.out.println("Heisei");
        }
        else {
            System.out.println("TBD");
        }
    }
    
    private static String[] getStdin() {
        Scanner scanner = new Scanner(System.in);
        ArrayList<String> lines = new ArrayList<>();
        while (scanner.hasNext()) {
            lines.add(scanner.nextLine());
        }
        return lines.toArray(new String[lines.size()]);
    }
}