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

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		
		SimpleDateFormat data = new SimpleDateFormat("yyyy/MM/dd");
		
		Date date1 = data.parse(S);
		Date date2 = data.parse("2019/4/30");
		
		if(date1.compareTo(date2) <= 0) {
			System.out.println("Heisei");
		}else{
			System.out.println("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 {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		
		SimpleDateFormat data = new SimpleDateFormat("yyyy/MM/dd");
		
		Date date1 = data.parse(S);
		Date date2 = data.parse("2019/4/30");
		
		if(date1.compareTo(date2) <= 0) {
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		
		SimpleDateFormat data = new SimpleDateFormat("yyyy/MM/dd");
		
		Date date1 = data.parse(S);
		Date date2 = data.parse("2019/4/30");
		
		if(date1.compareTo(date2) <= 0) {
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		
		SimpleDateFormat data = new SimpleDateFormat("yyyy/MM/dd");
		
		Date date1 = data.parse(S);
		Date date2 = data.parse("2019/4/30");
		
		if(date1.compareTo(date2) <= 0) {
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc SimpleDateFormat data = new SimpleDateFormat("yyyy/MM/dd"); data new SimpleDateFormat("yyyy/MM/dd") Date date1 = data.parse(S); date1 data.parse(S) data.parse data S Date date2 = data.parse("2019/4/30"); date2 data.parse("2019/4/30") data.parse data "2019/4/30" if(date1.compareTo(date2) <= 0) {
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		} date1.compareTo(date2) <= 0 date1.compareTo(date2) date1.compareTo date1 date2 0 {
			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 Exception {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		
		SimpleDateFormat data = new SimpleDateFormat("yyyy/MM/dd");
		
		Date date1 = data.parse(S);
		Date date2 = data.parse("2019/4/30");
		
		if(date1.compareTo(date2) <= 0) {
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		
		SimpleDateFormat data = new SimpleDateFormat("yyyy/MM/dd");
		
		Date date1 = data.parse(S);
		Date date2 = data.parse("2019/4/30");
		
		if(date1.compareTo(date2) <= 0) {
			System.out.println("Heisei");
		}else{
			System.out.println("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 {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		
		SimpleDateFormat data = new SimpleDateFormat("yyyy/MM/dd");
		
		Date date1 = data.parse(S);
		Date date2 = data.parse("2019/4/30");
		
		if(date1.compareTo(date2) <= 0) {
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	}
}