import java.text.SimpleDateFormat;
import java.util.GregorianCalendar;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        GregorianCalendar date =
            new GregorianCalendar(Integer.parseInt(s.substring(0, 4)), Integer.parseInt(s.substring(5, 7)), Integer.parseInt(s.substring(8, 10)));
        GregorianCalendar date2 = new GregorianCalendar(2019, 4, 30);

        if (0 <= date2.compareTo(date)) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }

    }

} import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.GregorianCalendar; GregorianCalendar java.util 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();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        GregorianCalendar date =
            new GregorianCalendar(Integer.parseInt(s.substring(0, 4)), Integer.parseInt(s.substring(5, 7)), Integer.parseInt(s.substring(8, 10)));
        GregorianCalendar date2 = new GregorianCalendar(2019, 4, 30);

        if (0 <= date2.compareTo(date)) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }

    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        GregorianCalendar date =
            new GregorianCalendar(Integer.parseInt(s.substring(0, 4)), Integer.parseInt(s.substring(5, 7)), Integer.parseInt(s.substring(8, 10)));
        GregorianCalendar date2 = new GregorianCalendar(2019, 4, 30);

        if (0 <= date2.compareTo(date)) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }

    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        GregorianCalendar date =
            new GregorianCalendar(Integer.parseInt(s.substring(0, 4)), Integer.parseInt(s.substring(5, 7)), Integer.parseInt(s.substring(8, 10)));
        GregorianCalendar date2 = new GregorianCalendar(2019, 4, 30);

        if (0 <= date2.compareTo(date)) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); sdf new SimpleDateFormat("yyyy/MM/dd") GregorianCalendar date =
            new GregorianCalendar(Integer.parseInt(s.substring(0, 4)), Integer.parseInt(s.substring(5, 7)), Integer.parseInt(s.substring(8, 10))); date new GregorianCalendar(Integer.parseInt(s.substring(0, 4)), Integer.parseInt(s.substring(5, 7)), Integer.parseInt(s.substring(8, 10))) GregorianCalendar date2 = new GregorianCalendar(2019, 4, 30); date2 new GregorianCalendar(2019, 4, 30) if (0 <= date2.compareTo(date)) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } 0 <= date2.compareTo(date) 0 date2.compareTo(date) date2.compareTo date2 date {
            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 sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        GregorianCalendar date =
            new GregorianCalendar(Integer.parseInt(s.substring(0, 4)), Integer.parseInt(s.substring(5, 7)), Integer.parseInt(s.substring(8, 10)));
        GregorianCalendar date2 = new GregorianCalendar(2019, 4, 30);

        if (0 <= date2.compareTo(date)) {
            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 s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        GregorianCalendar date =
            new GregorianCalendar(Integer.parseInt(s.substring(0, 4)), Integer.parseInt(s.substring(5, 7)), Integer.parseInt(s.substring(8, 10)));
        GregorianCalendar date2 = new GregorianCalendar(2019, 4, 30);

        if (0 <= date2.compareTo(date)) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }

    }

} Main
import java.text.SimpleDateFormat;
import java.util.GregorianCalendar;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        GregorianCalendar date =
            new GregorianCalendar(Integer.parseInt(s.substring(0, 4)), Integer.parseInt(s.substring(5, 7)), Integer.parseInt(s.substring(8, 10)));
        GregorianCalendar date2 = new GregorianCalendar(2019, 4, 30);

        if (0 <= date2.compareTo(date)) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }

    }

}
