import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String h = "2019/04/30";
        if (s.compareTo(h) == 1) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String h = "2019/04/30";
        if (s.compareTo(h) == 1) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String h = "2019/04/30";
        if (s.compareTo(h) == 1) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String h = "2019/04/30";
        if (s.compareTo(h) == 1) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String h = "2019/04/30"; h "2019/04/30" if (s.compareTo(h) == 1) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        } s.compareTo(h) == 1 s.compareTo(h) s.compareTo s h 1 {
            System.out.println("TBD");
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String h = "2019/04/30";
        if (s.compareTo(h) == 1) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String h = "2019/04/30";
        if (s.compareTo(h) == 1) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String h = "2019/04/30";
        if (s.compareTo(h) == 1) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
}