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

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        String strDate = sc.next();
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
        Date date = new Date();
        Date targetDate = new Date();;
        try {
        	date = sdFormat.parse(strDate);
        	targetDate = sdFormat.parse("2019/04/30");
        }catch(Exception e){

        }

        String msg = "Heisei";
        if(date.after(targetDate)) {
        	msg = "TBD";
        }
        System.out.println(msg);
	}

} 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) {
		// TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        String strDate = sc.next();
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
        Date date = new Date();
        Date targetDate = new Date();;
        try {
        	date = sdFormat.parse(strDate);
        	targetDate = sdFormat.parse("2019/04/30");
        }catch(Exception e){

        }

        String msg = "Heisei";
        if(date.after(targetDate)) {
        	msg = "TBD";
        }
        System.out.println(msg);
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        String strDate = sc.next();
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
        Date date = new Date();
        Date targetDate = new Date();;
        try {
        	date = sdFormat.parse(strDate);
        	targetDate = sdFormat.parse("2019/04/30");
        }catch(Exception e){

        }

        String msg = "Heisei";
        if(date.after(targetDate)) {
        	msg = "TBD";
        }
        System.out.println(msg);
	} main {
		// TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        String strDate = sc.next();
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
        Date date = new Date();
        Date targetDate = new Date();;
        try {
        	date = sdFormat.parse(strDate);
        	targetDate = sdFormat.parse("2019/04/30");
        }catch(Exception e){

        }

        String msg = "Heisei";
        if(date.after(targetDate)) {
        	msg = "TBD";
        }
        System.out.println(msg);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String strDate = sc.next(); strDate sc.next() sc.next sc SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd"); sdFormat new SimpleDateFormat("yyyy/MM/dd") Date date = new Date(); date new Date() Date targetDate = new Date(); targetDate new Date() try {
        	date = sdFormat.parse(strDate);
        	targetDate = sdFormat.parse("2019/04/30");
        }catch(Exception e){

        } catch(Exception e){

        } Exception e {

        } {
        	date = sdFormat.parse(strDate);
        	targetDate = sdFormat.parse("2019/04/30");
        } date = sdFormat.parse(strDate) date sdFormat.parse(strDate) sdFormat.parse sdFormat strDate targetDate = sdFormat.parse("2019/04/30") targetDate sdFormat.parse("2019/04/30") sdFormat.parse sdFormat "2019/04/30" String msg = "Heisei"; msg "Heisei" if(date.after(targetDate)) {
        	msg = "TBD";
        } date.after(targetDate) date.after date targetDate {
        	msg = "TBD";
        } msg = "TBD" msg "TBD" System.out.println(msg) System.out.println System.out System System.out msg String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        String strDate = sc.next();
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
        Date date = new Date();
        Date targetDate = new Date();;
        try {
        	date = sdFormat.parse(strDate);
        	targetDate = sdFormat.parse("2019/04/30");
        }catch(Exception e){

        }

        String msg = "Heisei";
        if(date.after(targetDate)) {
        	msg = "TBD";
        }
        System.out.println(msg);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        String strDate = sc.next();
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
        Date date = new Date();
        Date targetDate = new Date();;
        try {
        	date = sdFormat.parse(strDate);
        	targetDate = sdFormat.parse("2019/04/30");
        }catch(Exception e){

        }

        String msg = "Heisei";
        if(date.after(targetDate)) {
        	msg = "TBD";
        }
        System.out.println(msg);
	}

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

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        String strDate = sc.next();
        SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
        Date date = new Date();
        Date targetDate = new Date();;
        try {
        	date = sdFormat.parse(strDate);
        	targetDate = sdFormat.parse("2019/04/30");
        }catch(Exception e){

        }

        String msg = "Heisei";
        if(date.after(targetDate)) {
        	msg = "TBD";
        }
        System.out.println(msg);
	}

}
