import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        String[] date_split = dateStr.split("/");
        int year = Integer.parseInt(date_split[0]);
        int month = Integer.parseInt(date_split[1]);
        int day = Integer.parseInt(date_split[2]);

        boolean past = true;
        if(year > 2019) past = false;
        if(year == 2019) {
            if(month > 4) past = false;
            if(month == 4) {
                if(day > 30) past = false;
            }
        }

        System.out.println(past?"Heisei":"TBD");
    } 
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        String[] date_split = dateStr.split("/");
        int year = Integer.parseInt(date_split[0]);
        int month = Integer.parseInt(date_split[1]);
        int day = Integer.parseInt(date_split[2]);

        boolean past = true;
        if(year > 2019) past = false;
        if(year == 2019) {
            if(month > 4) past = false;
            if(month == 4) {
                if(day > 30) past = false;
            }
        }

        System.out.println(past?"Heisei":"TBD");
    } 
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        String[] date_split = dateStr.split("/");
        int year = Integer.parseInt(date_split[0]);
        int month = Integer.parseInt(date_split[1]);
        int day = Integer.parseInt(date_split[2]);

        boolean past = true;
        if(year > 2019) past = false;
        if(year == 2019) {
            if(month > 4) past = false;
            if(month == 4) {
                if(day > 30) past = false;
            }
        }

        System.out.println(past?"Heisei":"TBD");
    } main {
        Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        String[] date_split = dateStr.split("/");
        int year = Integer.parseInt(date_split[0]);
        int month = Integer.parseInt(date_split[1]);
        int day = Integer.parseInt(date_split[2]);

        boolean past = true;
        if(year > 2019) past = false;
        if(year == 2019) {
            if(month > 4) past = false;
            if(month == 4) {
                if(day > 30) past = false;
            }
        }

        System.out.println(past?"Heisei":"TBD");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String dateStr = sc.next(); dateStr sc.next() sc.next sc String[] date_split = dateStr.split("/"); date_split dateStr.split("/") dateStr.split dateStr "/" int year = Integer.parseInt(date_split[0]); year Integer.parseInt(date_split[0]) Integer.parseInt Integer date_split[0] date_split 0 int month = Integer.parseInt(date_split[1]); month Integer.parseInt(date_split[1]) Integer.parseInt Integer date_split[1] date_split 1 int day = Integer.parseInt(date_split[2]); day Integer.parseInt(date_split[2]) Integer.parseInt Integer date_split[2] date_split 2 boolean past = true; past true if(year > 2019) past = false; year > 2019 year 2019 past = false past false if(year == 2019) {
            if(month > 4) past = false;
            if(month == 4) {
                if(day > 30) past = false;
            }
        } year == 2019 year 2019 {
            if(month > 4) past = false;
            if(month == 4) {
                if(day > 30) past = false;
            }
        } if(month > 4) past = false; month > 4 month 4 past = false past false if(month == 4) {
                if(day > 30) past = false;
            } month == 4 month 4 {
                if(day > 30) past = false;
            } if(day > 30) past = false; day > 30 day 30 past = false past false System.out.println(past?"Heisei":"TBD") System.out.println System.out System System.out past?"Heisei":"TBD" past "Heisei" "TBD" String args[] args public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        String[] date_split = dateStr.split("/");
        int year = Integer.parseInt(date_split[0]);
        int month = Integer.parseInt(date_split[1]);
        int day = Integer.parseInt(date_split[2]);

        boolean past = true;
        if(year > 2019) past = false;
        if(year == 2019) {
            if(month > 4) past = false;
            if(month == 4) {
                if(day > 30) past = false;
            }
        }

        System.out.println(past?"Heisei":"TBD");
    } 
} public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        String[] date_split = dateStr.split("/");
        int year = Integer.parseInt(date_split[0]);
        int month = Integer.parseInt(date_split[1]);
        int day = Integer.parseInt(date_split[2]);

        boolean past = true;
        if(year > 2019) past = false;
        if(year == 2019) {
            if(month > 4) past = false;
            if(month == 4) {
                if(day > 30) past = false;
            }
        }

        System.out.println(past?"Heisei":"TBD");
    } 
} Main
import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        String[] date_split = dateStr.split("/");
        int year = Integer.parseInt(date_split[0]);
        int month = Integer.parseInt(date_split[1]);
        int day = Integer.parseInt(date_split[2]);

        boolean past = true;
        if(year > 2019) past = false;
        if(year == 2019) {
            if(month > 4) past = false;
            if(month == 4) {
                if(day > 30) past = false;
            }
        }

        System.out.println(past?"Heisei":"TBD");
    } 
}