import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] info = date.split("/");
        int year = Integer.parseInt(info[0]),
        month = Integer.parseInt(info[1]);
        if(year < 2019 || year == 2019 && month < 5){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] info = date.split("/");
        int year = Integer.parseInt(info[0]),
        month = Integer.parseInt(info[1]);
        if(year < 2019 || year == 2019 && month < 5){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] info = date.split("/");
        int year = Integer.parseInt(info[0]),
        month = Integer.parseInt(info[1]);
        if(year < 2019 || year == 2019 && month < 5){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] info = date.split("/");
        int year = Integer.parseInt(info[0]),
        month = Integer.parseInt(info[1]);
        if(year < 2019 || year == 2019 && month < 5){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String date = sc.next(); date sc.next() sc.next sc String[] info = date.split("/"); info date.split("/") date.split date "/" int year = Integer.parseInt(info[0]) year Integer.parseInt(info[0]) Integer.parseInt Integer info[0] info 0 month = Integer.parseInt(info[1]); month Integer.parseInt(info[1]) Integer.parseInt Integer info[1] info 1 if(year < 2019 || year == 2019 && month < 5){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } year < 2019 || year == 2019 && month < 5 year < 2019 year 2019 year == 2019 && month < 5 year == 2019 year 2019 month < 5 month 5 {
            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);
        String date = sc.next();
        String[] info = date.split("/");
        int year = Integer.parseInt(info[0]),
        month = Integer.parseInt(info[1]);
        if(year < 2019 || year == 2019 && month < 5){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] info = date.split("/");
        int year = Integer.parseInt(info[0]),
        month = Integer.parseInt(info[1]);
        if(year < 2019 || year == 2019 && month < 5){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main
import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String date = sc.next();
        String[] info = date.split("/");
        int year = Integer.parseInt(info[0]),
        month = Integer.parseInt(info[1]);
        if(year < 2019 || year == 2019 && month < 5){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
}