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 {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        Date baseDate = sdf.parse("2019/05/01");
        Date inDate = sdf.parse(s);
        System.out.println(inDate.before(baseDate) ? "Heisei" : "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 {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        Date baseDate = sdf.parse("2019/05/01");
        Date inDate = sdf.parse(s);
        System.out.println(inDate.before(baseDate) ? "Heisei" : "TBD");
    }
} Main public static void main(String[] args) throws ParseException {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        Date baseDate = sdf.parse("2019/05/01");
        Date inDate = sdf.parse(s);
        System.out.println(inDate.before(baseDate) ? "Heisei" : "TBD");
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        Date baseDate = sdf.parse("2019/05/01");
        Date inDate = sdf.parse(s);
        System.out.println(inDate.before(baseDate) ? "Heisei" : "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") Date baseDate = sdf.parse("2019/05/01"); baseDate sdf.parse("2019/05/01") sdf.parse sdf "2019/05/01" Date inDate = sdf.parse(s); inDate sdf.parse(s) sdf.parse sdf s System.out.println(inDate.before(baseDate) ? "Heisei" : "TBD") System.out.println System.out System System.out inDate.before(baseDate) ? "Heisei" : "TBD" inDate.before(baseDate) inDate.before inDate baseDate "Heisei" "TBD" String[] args args public class Main {
    public static void main(String[] args) throws ParseException {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        Date baseDate = sdf.parse("2019/05/01");
        Date inDate = sdf.parse(s);
        System.out.println(inDate.before(baseDate) ? "Heisei" : "TBD");
    }
} public class Main {
    public static void main(String[] args) throws ParseException {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        Date baseDate = sdf.parse("2019/05/01");
        Date inDate = sdf.parse(s);
        System.out.println(inDate.before(baseDate) ? "Heisei" : "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 {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        Date baseDate = sdf.parse("2019/05/01");
        Date inDate = sdf.parse(s);
        System.out.println(inDate.before(baseDate) ? "Heisei" : "TBD");
    }
}
