import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String[] sp = s.split("/");
        int y = Integer.parseInt(sp[0]);
        int m = Integer.parseInt(sp[1]);
        int d = Integer.parseInt(sp[2]);
        String ans = "Heisei";
        if(y > 2019) ans = "TBD";
        else if(y == 2019 && m > 4) ans = "TBD";
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String[] sp = s.split("/");
        int y = Integer.parseInt(sp[0]);
        int m = Integer.parseInt(sp[1]);
        int d = Integer.parseInt(sp[2]);
        String ans = "Heisei";
        if(y > 2019) ans = "TBD";
        else if(y == 2019 && m > 4) ans = "TBD";
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String[] sp = s.split("/");
        int y = Integer.parseInt(sp[0]);
        int m = Integer.parseInt(sp[1]);
        int d = Integer.parseInt(sp[2]);
        String ans = "Heisei";
        if(y > 2019) ans = "TBD";
        else if(y == 2019 && m > 4) ans = "TBD";
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String[] sp = s.split("/");
        int y = Integer.parseInt(sp[0]);
        int m = Integer.parseInt(sp[1]);
        int d = Integer.parseInt(sp[2]);
        String ans = "Heisei";
        if(y > 2019) ans = "TBD";
        else if(y == 2019 && m > 4) ans = "TBD";
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String[] sp = s.split("/"); sp s.split("/") s.split s "/" int y = Integer.parseInt(sp[0]); y Integer.parseInt(sp[0]) Integer.parseInt Integer sp[0] sp 0 int m = Integer.parseInt(sp[1]); m Integer.parseInt(sp[1]) Integer.parseInt Integer sp[1] sp 1 int d = Integer.parseInt(sp[2]); d Integer.parseInt(sp[2]) Integer.parseInt Integer sp[2] sp 2 String ans = "Heisei"; ans "Heisei" if(y > 2019) ans = "TBD";
        else if(y == 2019 && m > 4) ans = "TBD"; y > 2019 y 2019 ans = "TBD" ans "TBD" if(y == 2019 && m > 4) ans = "TBD"; y == 2019 && m > 4 y == 2019 y 2019 m > 4 m 4 ans = "TBD" ans "TBD" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String[] sp = s.split("/");
        int y = Integer.parseInt(sp[0]);
        int m = Integer.parseInt(sp[1]);
        int d = Integer.parseInt(sp[2]);
        String ans = "Heisei";
        if(y > 2019) ans = "TBD";
        else if(y == 2019 && m > 4) ans = "TBD";
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String[] sp = s.split("/");
        int y = Integer.parseInt(sp[0]);
        int m = Integer.parseInt(sp[1]);
        int d = Integer.parseInt(sp[2]);
        String ans = "Heisei";
        if(y > 2019) ans = "TBD";
        else if(y == 2019 && m > 4) ans = "TBD";
        System.out.println(ans);
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String[] sp = s.split("/");
        int y = Integer.parseInt(sp[0]);
        int m = Integer.parseInt(sp[1]);
        int d = Integer.parseInt(sp[2]);
        String ans = "Heisei";
        if(y > 2019) ans = "TBD";
        else if(y == 2019 && m > 4) ans = "TBD";
        System.out.println(ans);
    }
}