import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {
    public static void main(String args[]) throws ParseException {
        final String input = new Scanner(System.in).nextLine();
        final SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        final Date inputDate = sdf.parse(input);
        final Date borderDate = sdf.parse("2019/04/30");;
        if (inputDate.compareTo(borderDate) == 0) {
            System.out.println("Heisei");
        } else if (inputDate.compareTo(borderDate) == -1) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} import java.text.ParseException; ParseException java.text import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.Date; Date java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) throws ParseException {
        final String input = new Scanner(System.in).nextLine();
        final SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        final Date inputDate = sdf.parse(input);
        final Date borderDate = sdf.parse("2019/04/30");;
        if (inputDate.compareTo(borderDate) == 0) {
            System.out.println("Heisei");
        } else if (inputDate.compareTo(borderDate) == -1) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main public static void main(String args[]) throws ParseException {
        final String input = new Scanner(System.in).nextLine();
        final SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        final Date inputDate = sdf.parse(input);
        final Date borderDate = sdf.parse("2019/04/30");;
        if (inputDate.compareTo(borderDate) == 0) {
            System.out.println("Heisei");
        } else if (inputDate.compareTo(borderDate) == -1) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } main {
        final String input = new Scanner(System.in).nextLine();
        final SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        final Date inputDate = sdf.parse(input);
        final Date borderDate = sdf.parse("2019/04/30");;
        if (inputDate.compareTo(borderDate) == 0) {
            System.out.println("Heisei");
        } else if (inputDate.compareTo(borderDate) == -1) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } final String input = new Scanner(System.in).nextLine(); input new Scanner(System.in).nextLine() new Scanner(System.in).nextLine new Scanner(System.in) final SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); sdf new SimpleDateFormat("yyyy/MM/dd") final Date inputDate = sdf.parse(input); inputDate sdf.parse(input) sdf.parse sdf input final Date borderDate = sdf.parse("2019/04/30"); borderDate sdf.parse("2019/04/30") sdf.parse sdf "2019/04/30" if (inputDate.compareTo(borderDate) == 0) {
            System.out.println("Heisei");
        } else if (inputDate.compareTo(borderDate) == -1) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } inputDate.compareTo(borderDate) == 0 inputDate.compareTo(borderDate) inputDate.compareTo inputDate borderDate 0 {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if (inputDate.compareTo(borderDate) == -1) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } inputDate.compareTo(borderDate) == -1 inputDate.compareTo(borderDate) inputDate.compareTo inputDate borderDate -1 1 {
            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[]) throws ParseException {
        final String input = new Scanner(System.in).nextLine();
        final SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        final Date inputDate = sdf.parse(input);
        final Date borderDate = sdf.parse("2019/04/30");;
        if (inputDate.compareTo(borderDate) == 0) {
            System.out.println("Heisei");
        } else if (inputDate.compareTo(borderDate) == -1) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} public class Main {
    public static void main(String args[]) throws ParseException {
        final String input = new Scanner(System.in).nextLine();
        final SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        final Date inputDate = sdf.parse(input);
        final Date borderDate = sdf.parse("2019/04/30");;
        if (inputDate.compareTo(borderDate) == 0) {
            System.out.println("Heisei");
        } else if (inputDate.compareTo(borderDate) == -1) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {
    public static void main(String args[]) throws ParseException {
        final String input = new Scanner(System.in).nextLine();
        final SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        final Date inputDate = sdf.parse(input);
        final Date borderDate = sdf.parse("2019/04/30");;
        if (inputDate.compareTo(borderDate) == 0) {
            System.out.println("Heisei");
        } else if (inputDate.compareTo(borderDate) == -1) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
}