import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if (s.matches("2019/0[1-4]/[0-3][0-9]")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
        sc.close();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if (s.matches("2019/0[1-4]/[0-3][0-9]")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if (s.matches("2019/0[1-4]/[0-3][0-9]")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if (s.matches("2019/0[1-4]/[0-3][0-9]")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc if (s.matches("2019/0[1-4]/[0-3][0-9]")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } s.matches("2019/0[1-4]/[0-3][0-9]") s.matches s "2019/0[1-4]/[0-3][0-9]" {
            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" sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if (s.matches("2019/0[1-4]/[0-3][0-9]")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if (s.matches("2019/0[1-4]/[0-3][0-9]")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
        sc.close();
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if (s.matches("2019/0[1-4]/[0-3][0-9]")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
        sc.close();
    }
}