import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String x = sc.next();
        String[] y = x.split("/", 0);
        Calendar cl = Calendar.getInstance();
        cl.set(Integer.parseInt(y[0]), Integer.parseInt(y[1]), Integer.parseInt(y[2]));
        Calendar clh = Calendar.getInstance();
        clh.set(2019, 4, 30);
        if(clh.compareTo(cl) >= 0){
            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 x = sc.next();
        String[] y = x.split("/", 0);
        Calendar cl = Calendar.getInstance();
        cl.set(Integer.parseInt(y[0]), Integer.parseInt(y[1]), Integer.parseInt(y[2]));
        Calendar clh = Calendar.getInstance();
        clh.set(2019, 4, 30);
        if(clh.compareTo(cl) >= 0){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String x = sc.next();
        String[] y = x.split("/", 0);
        Calendar cl = Calendar.getInstance();
        cl.set(Integer.parseInt(y[0]), Integer.parseInt(y[1]), Integer.parseInt(y[2]));
        Calendar clh = Calendar.getInstance();
        clh.set(2019, 4, 30);
        if(clh.compareTo(cl) >= 0){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String x = sc.next();
        String[] y = x.split("/", 0);
        Calendar cl = Calendar.getInstance();
        cl.set(Integer.parseInt(y[0]), Integer.parseInt(y[1]), Integer.parseInt(y[2]));
        Calendar clh = Calendar.getInstance();
        clh.set(2019, 4, 30);
        if(clh.compareTo(cl) >= 0){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String x = sc.next(); x sc.next() sc.next sc String[] y = x.split("/", 0); y x.split("/", 0) x.split x "/" 0 Calendar cl = Calendar.getInstance(); cl Calendar.getInstance() Calendar.getInstance Calendar cl.set(Integer.parseInt(y[0]), Integer.parseInt(y[1]), Integer.parseInt(y[2])) cl.set cl Integer.parseInt(y[0]) Integer.parseInt Integer y[0] y 0 Integer.parseInt(y[1]) Integer.parseInt Integer y[1] y 1 Integer.parseInt(y[2]) Integer.parseInt Integer y[2] y 2 Calendar clh = Calendar.getInstance(); clh Calendar.getInstance() Calendar.getInstance Calendar clh.set(2019, 4, 30) clh.set clh 2019 4 30 if(clh.compareTo(cl) >= 0){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } clh.compareTo(cl) >= 0 clh.compareTo(cl) clh.compareTo clh cl 0 {
            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 x = sc.next();
        String[] y = x.split("/", 0);
        Calendar cl = Calendar.getInstance();
        cl.set(Integer.parseInt(y[0]), Integer.parseInt(y[1]), Integer.parseInt(y[2]));
        Calendar clh = Calendar.getInstance();
        clh.set(2019, 4, 30);
        if(clh.compareTo(cl) >= 0){
            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 x = sc.next();
        String[] y = x.split("/", 0);
        Calendar cl = Calendar.getInstance();
        cl.set(Integer.parseInt(y[0]), Integer.parseInt(y[1]), Integer.parseInt(y[2]));
        Calendar clh = Calendar.getInstance();
        clh.set(2019, 4, 30);
        if(clh.compareTo(cl) >= 0){
            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 x = sc.next();
        String[] y = x.split("/", 0);
        Calendar cl = Calendar.getInstance();
        cl.set(Integer.parseInt(y[0]), Integer.parseInt(y[1]), Integer.parseInt(y[2]));
        Calendar clh = Calendar.getInstance();
        clh.set(2019, 4, 30);
        if(clh.compareTo(cl) >= 0){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
}