import java.util.*;
 
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        //next()で受け取って/を閾値で分けて配列に入れる
        String date[] = sc.next().split("/", -1);
        sc.close();
        String kekka = jud(date);
        System.out.println(kekka);
    }
    
    private static String jud(String data[]){
        int a = 0;
        String kekka = null;
        if((a = Integer.parseInt(data[0])) <= 2019){
            if(Integer.parseInt(data[1]) < 5){
                kekka = "Heisei";
            }else{
                kekka = "TBD"; 
            }
        }
        return kekka;
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        //next()で受け取って/を閾値で分けて配列に入れる
        String date[] = sc.next().split("/", -1);
        sc.close();
        String kekka = jud(date);
        System.out.println(kekka);
    }
    
    private static String jud(String data[]){
        int a = 0;
        String kekka = null;
        if((a = Integer.parseInt(data[0])) <= 2019){
            if(Integer.parseInt(data[1]) < 5){
                kekka = "Heisei";
            }else{
                kekka = "TBD"; 
            }
        }
        return kekka;
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        //next()で受け取って/を閾値で分けて配列に入れる
        String date[] = sc.next().split("/", -1);
        sc.close();
        String kekka = jud(date);
        System.out.println(kekka);
    } main {
        Scanner sc = new Scanner(System.in);
        //next()で受け取って/を閾値で分けて配列に入れる
        String date[] = sc.next().split("/", -1);
        sc.close();
        String kekka = jud(date);
        System.out.println(kekka);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String date[] = sc.next().split("/", -1); date sc.next().split("/", -1) sc.next().split sc.next() sc.next sc "/" -1 1 sc.close() sc.close sc String kekka = jud(date); kekka jud(date) jud date System.out.println(kekka) System.out.println System.out System System.out kekka String[] args args private static String jud(String data[]){
        int a = 0;
        String kekka = null;
        if((a = Integer.parseInt(data[0])) <= 2019){
            if(Integer.parseInt(data[1]) < 5){
                kekka = "Heisei";
            }else{
                kekka = "TBD"; 
            }
        }
        return kekka;
    } jud {
        int a = 0;
        String kekka = null;
        if((a = Integer.parseInt(data[0])) <= 2019){
            if(Integer.parseInt(data[1]) < 5){
                kekka = "Heisei";
            }else{
                kekka = "TBD"; 
            }
        }
        return kekka;
    } int a = 0; a 0 String kekka = null; kekka null if((a = Integer.parseInt(data[0])) <= 2019){
            if(Integer.parseInt(data[1]) < 5){
                kekka = "Heisei";
            }else{
                kekka = "TBD"; 
            }
        } (a = Integer.parseInt(data[0])) <= 2019 (a = Integer.parseInt(data[0])) a Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 2019 {
            if(Integer.parseInt(data[1]) < 5){
                kekka = "Heisei";
            }else{
                kekka = "TBD"; 
            }
        } if(Integer.parseInt(data[1]) < 5){
                kekka = "Heisei";
            }else{
                kekka = "TBD"; 
            } Integer.parseInt(data[1]) < 5 Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 5 {
                kekka = "Heisei";
            } kekka = "Heisei" kekka "Heisei" {
                kekka = "TBD"; 
            } kekka = "TBD" kekka "TBD" return kekka; kekka String data[] data
import java.util.*;
 
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        //next()で受け取って/を閾値で分けて配列に入れる
        String date[] = sc.next().split("/", -1);
        sc.close();
        String kekka = jud(date);
        System.out.println(kekka);
    }
    
    private static String jud(String data[]){
        int a = 0;
        String kekka = null;
        if((a = Integer.parseInt(data[0])) <= 2019){
            if(Integer.parseInt(data[1]) < 5){
                kekka = "Heisei";
            }else{
                kekka = "TBD"; 
            }
        }
        return kekka;
    }
}