import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
//        int a = Integer.parseInt(scan.next());
//        int b = Integer.parseInt(scan.next());
        String b = scan.next();
        String ans = null;
        if(Integer.parseInt(b.replaceAll("/",""))>20190430){
            ans = "TBD";
        }else{
            ans = "Heisei";
        }
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans);
        out.flush();
        scan.close();
    }
} import java.io.PrintWriter; PrintWriter java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
//        int a = Integer.parseInt(scan.next());
//        int b = Integer.parseInt(scan.next());
        String b = scan.next();
        String ans = null;
        if(Integer.parseInt(b.replaceAll("/",""))>20190430){
            ans = "TBD";
        }else{
            ans = "Heisei";
        }
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans);
        out.flush();
        scan.close();
    }
} Main public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
//        int a = Integer.parseInt(scan.next());
//        int b = Integer.parseInt(scan.next());
        String b = scan.next();
        String ans = null;
        if(Integer.parseInt(b.replaceAll("/",""))>20190430){
            ans = "TBD";
        }else{
            ans = "Heisei";
        }
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans);
        out.flush();
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
//        int a = Integer.parseInt(scan.next());
//        int b = Integer.parseInt(scan.next());
        String b = scan.next();
        String ans = null;
        if(Integer.parseInt(b.replaceAll("/",""))>20190430){
            ans = "TBD";
        }else{
            ans = "Heisei";
        }
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans);
        out.flush();
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String b = scan.next(); b scan.next() scan.next scan String ans = null; ans null if(Integer.parseInt(b.replaceAll("/",""))>20190430){
            ans = "TBD";
        }else{
            ans = "Heisei";
        } Integer.parseInt(b.replaceAll("/",""))>20190430 Integer.parseInt(b.replaceAll("/","")) Integer.parseInt Integer b.replaceAll("/","") b.replaceAll b "/" "" 20190430 {
            ans = "TBD";
        } ans = "TBD" ans "TBD" {
            ans = "Heisei";
        } ans = "Heisei" ans "Heisei" PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) out.println(ans) out.println out ans out.flush() out.flush out scan.close() scan.close scan String args[] args public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
//        int a = Integer.parseInt(scan.next());
//        int b = Integer.parseInt(scan.next());
        String b = scan.next();
        String ans = null;
        if(Integer.parseInt(b.replaceAll("/",""))>20190430){
            ans = "TBD";
        }else{
            ans = "Heisei";
        }
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans);
        out.flush();
        scan.close();
    }
} public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
//        int a = Integer.parseInt(scan.next());
//        int b = Integer.parseInt(scan.next());
        String b = scan.next();
        String ans = null;
        if(Integer.parseInt(b.replaceAll("/",""))>20190430){
            ans = "TBD";
        }else{
            ans = "Heisei";
        }
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans);
        out.flush();
        scan.close();
    }
} Main
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
//        int a = Integer.parseInt(scan.next());
//        int b = Integer.parseInt(scan.next());
        String b = scan.next();
        String ans = null;
        if(Integer.parseInt(b.replaceAll("/",""))>20190430){
            ans = "TBD";
        }else{
            ans = "Heisei";
        }
        PrintWriter out = new PrintWriter(System.out);
        out.println(ans);
        out.flush();
        scan.close();
    }
}