import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String st = sc.next();
        String st2 = st.replace("/", "");
        int a = Integer.parseInt(st2);
        if (a <= 20190430) System.out.println("Heisei");
        else System.out.println("TBD");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String st = sc.next();
        String st2 = st.replace("/", "");
        int a = Integer.parseInt(st2);
        if (a <= 20190430) System.out.println("Heisei");
        else System.out.println("TBD");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String st = sc.next();
        String st2 = st.replace("/", "");
        int a = Integer.parseInt(st2);
        if (a <= 20190430) System.out.println("Heisei");
        else System.out.println("TBD");
    } main {
        Scanner sc = new Scanner(System.in);
        String st = sc.next();
        String st2 = st.replace("/", "");
        int a = Integer.parseInt(st2);
        if (a <= 20190430) System.out.println("Heisei");
        else System.out.println("TBD");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String st = sc.next(); st sc.next() sc.next sc String st2 = st.replace("/", ""); st2 st.replace("/", "") st.replace st "/" "" int a = Integer.parseInt(st2); a Integer.parseInt(st2) Integer.parseInt Integer st2 if (a <= 20190430) System.out.println("Heisei");
        else System.out.println("TBD"); a <= 20190430 a 20190430 System.out.println("Heisei") System.out.println System.out System System.out "Heisei" 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 st = sc.next();
        String st2 = st.replace("/", "");
        int a = Integer.parseInt(st2);
        if (a <= 20190430) 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 st = sc.next();
        String st2 = st.replace("/", "");
        int a = Integer.parseInt(st2);
        if (a <= 20190430) System.out.println("Heisei");
        else System.out.println("TBD");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String st = sc.next();
        String st2 = st.replace("/", "");
        int a = Integer.parseInt(st2);
        if (a <= 20190430) System.out.println("Heisei");
        else System.out.println("TBD");
    }
}