import java.util.Scanner;

public class Main {
	public static void main(String[] args) {		
		Scanner scanner = new Scanner(System.in);
		String date = scanner.next();
		
		int year = Integer.parseInt(date.substring(0, 4));
		int month = Integer.parseInt(date.substring(5, 7));
		int day = Integer.parseInt(date.substring(8, 10));
		
		if(year <= 2019 && month <= 04) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {		
		Scanner scanner = new Scanner(System.in);
		String date = scanner.next();
		
		int year = Integer.parseInt(date.substring(0, 4));
		int month = Integer.parseInt(date.substring(5, 7));
		int day = Integer.parseInt(date.substring(8, 10));
		
		if(year <= 2019 && month <= 04) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
		
	}
} Main public static void main(String[] args) {		
		Scanner scanner = new Scanner(System.in);
		String date = scanner.next();
		
		int year = Integer.parseInt(date.substring(0, 4));
		int month = Integer.parseInt(date.substring(5, 7));
		int day = Integer.parseInt(date.substring(8, 10));
		
		if(year <= 2019 && month <= 04) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
		
	} main {		
		Scanner scanner = new Scanner(System.in);
		String date = scanner.next();
		
		int year = Integer.parseInt(date.substring(0, 4));
		int month = Integer.parseInt(date.substring(5, 7));
		int day = Integer.parseInt(date.substring(8, 10));
		
		if(year <= 2019 && month <= 04) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
		
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String date = scanner.next(); date scanner.next() scanner.next scanner int year = Integer.parseInt(date.substring(0, 4)); year Integer.parseInt(date.substring(0, 4)) Integer.parseInt Integer date.substring(0, 4) date.substring date 0 4 int month = Integer.parseInt(date.substring(5, 7)); month Integer.parseInt(date.substring(5, 7)) Integer.parseInt Integer date.substring(5, 7) date.substring date 5 7 int day = Integer.parseInt(date.substring(8, 10)); day Integer.parseInt(date.substring(8, 10)) Integer.parseInt Integer date.substring(8, 10) date.substring date 8 10 if(year <= 2019 && month <= 04) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		} year <= 2019 && month <= 04 year <= 2019 year 2019 month <= 04 month 04 {
			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) {		
		Scanner scanner = new Scanner(System.in);
		String date = scanner.next();
		
		int year = Integer.parseInt(date.substring(0, 4));
		int month = Integer.parseInt(date.substring(5, 7));
		int day = Integer.parseInt(date.substring(8, 10));
		
		if(year <= 2019 && month <= 04) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
		
	}
} public class Main {
	public static void main(String[] args) {		
		Scanner scanner = new Scanner(System.in);
		String date = scanner.next();
		
		int year = Integer.parseInt(date.substring(0, 4));
		int month = Integer.parseInt(date.substring(5, 7));
		int day = Integer.parseInt(date.substring(8, 10));
		
		if(year <= 2019 && month <= 04) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
		
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {		
		Scanner scanner = new Scanner(System.in);
		String date = scanner.next();
		
		int year = Integer.parseInt(date.substring(0, 4));
		int month = Integer.parseInt(date.substring(5, 7));
		int day = Integer.parseInt(date.substring(8, 10));
		
		if(year <= 2019 && month <= 04) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
		
	}
}