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

public class Main {

    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String str = sc.nextLine();
    	SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    	Date date = sdFormat.parse(str);
    	String str2 = "2019/05/01";
    	Date date2 = sdFormat.parse(str2);
    	sc.close();
    	System.out.println(date2.after(date) ? "Heisei" : "TBD");
    }
} 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 Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String str = sc.nextLine();
    	SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    	Date date = sdFormat.parse(str);
    	String str2 = "2019/05/01";
    	Date date2 = sdFormat.parse(str2);
    	sc.close();
    	System.out.println(date2.after(date) ? "Heisei" : "TBD");
    }
} Main public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String str = sc.nextLine();
    	SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    	Date date = sdFormat.parse(str);
    	String str2 = "2019/05/01";
    	Date date2 = sdFormat.parse(str2);
    	sc.close();
    	System.out.println(date2.after(date) ? "Heisei" : "TBD");
    } main {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String str = sc.nextLine();
    	SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    	Date date = sdFormat.parse(str);
    	String str2 = "2019/05/01";
    	Date date2 = sdFormat.parse(str2);
    	sc.close();
    	System.out.println(date2.after(date) ? "Heisei" : "TBD");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd"); sdFormat new SimpleDateFormat("yyyy/MM/dd") Date date = sdFormat.parse(str); date sdFormat.parse(str) sdFormat.parse sdFormat str String str2 = "2019/05/01"; str2 "2019/05/01" Date date2 = sdFormat.parse(str2); date2 sdFormat.parse(str2) sdFormat.parse sdFormat str2 sc.close() sc.close sc System.out.println(date2.after(date) ? "Heisei" : "TBD") System.out.println System.out System System.out date2.after(date) ? "Heisei" : "TBD" date2.after(date) date2.after date2 date "Heisei" "TBD" String[] args args public class Main {

    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String str = sc.nextLine();
    	SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    	Date date = sdFormat.parse(str);
    	String str2 = "2019/05/01";
    	Date date2 = sdFormat.parse(str2);
    	sc.close();
    	System.out.println(date2.after(date) ? "Heisei" : "TBD");
    }
} public class Main {

    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String str = sc.nextLine();
    	SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    	Date date = sdFormat.parse(str);
    	String str2 = "2019/05/01";
    	Date date2 = sdFormat.parse(str2);
    	sc.close();
    	System.out.println(date2.after(date) ? "Heisei" : "TBD");
    }
} Main
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String str = sc.nextLine();
    	SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
    	Date date = sdFormat.parse(str);
    	String str2 = "2019/05/01";
    	Date date2 = sdFormat.parse(str2);
    	sc.close();
    	System.out.println(date2.after(date) ? "Heisei" : "TBD");
    }
}