import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner std = new Scanner(System.in);
        String s = std.next();
        String[] texts = s.split("/");
        String monthS = texts[1];
        String dayS = texts[2];
        int month = Integer.parseInt(monthS);
        int day = Integer.parseInt(dayS);
        if (month <= 4 && day <= 30) {
            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 std = new Scanner(System.in);
        String s = std.next();
        String[] texts = s.split("/");
        String monthS = texts[1];
        String dayS = texts[2];
        int month = Integer.parseInt(monthS);
        int day = Integer.parseInt(dayS);
        if (month <= 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main public static void main(String[] args) {
        Scanner std = new Scanner(System.in);
        String s = std.next();
        String[] texts = s.split("/");
        String monthS = texts[1];
        String dayS = texts[2];
        int month = Integer.parseInt(monthS);
        int day = Integer.parseInt(dayS);
        if (month <= 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } main {
        Scanner std = new Scanner(System.in);
        String s = std.next();
        String[] texts = s.split("/");
        String monthS = texts[1];
        String dayS = texts[2];
        int month = Integer.parseInt(monthS);
        int day = Integer.parseInt(dayS);
        if (month <= 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } Scanner std = new Scanner(System.in); std new Scanner(System.in) String s = std.next(); s std.next() std.next std String[] texts = s.split("/"); texts s.split("/") s.split s "/" String monthS = texts[1]; monthS texts[1] texts 1 String dayS = texts[2]; dayS texts[2] texts 2 int month = Integer.parseInt(monthS); month Integer.parseInt(monthS) Integer.parseInt Integer monthS int day = Integer.parseInt(dayS); day Integer.parseInt(dayS) Integer.parseInt Integer dayS if (month <= 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } month <= 4 && day <= 30 month <= 4 month 4 day <= 30 day 30 {
            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 std = new Scanner(System.in);
        String s = std.next();
        String[] texts = s.split("/");
        String monthS = texts[1];
        String dayS = texts[2];
        int month = Integer.parseInt(monthS);
        int day = Integer.parseInt(dayS);
        if (month <= 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner std = new Scanner(System.in);
        String s = std.next();
        String[] texts = s.split("/");
        String monthS = texts[1];
        String dayS = texts[2];
        int month = Integer.parseInt(monthS);
        int day = Integer.parseInt(dayS);
        if (month <= 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner std = new Scanner(System.in);
        String s = std.next();
        String[] texts = s.split("/");
        String monthS = texts[1];
        String dayS = texts[2];
        int month = Integer.parseInt(monthS);
        int day = Integer.parseInt(dayS);
        if (month <= 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
}
