import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		int intInput = Integer.parseInt(input.replaceAll("/", ""));
		if(intInput > 20190430) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		int intInput = Integer.parseInt(input.replaceAll("/", ""));
		if(intInput > 20190430) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		int intInput = Integer.parseInt(input.replaceAll("/", ""));
		if(intInput > 20190430) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		int intInput = Integer.parseInt(input.replaceAll("/", ""));
		if(intInput > 20190430) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.nextLine(); input sc.nextLine() sc.nextLine sc int intInput = Integer.parseInt(input.replaceAll("/", "")); intInput Integer.parseInt(input.replaceAll("/", "")) Integer.parseInt Integer input.replaceAll("/", "") input.replaceAll input "/" "" if(intInput > 20190430) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		} intInput > 20190430 intInput 20190430 {
			System.out.println("TBD");
		} System.out.println("TBD") System.out.println System.out System System.out "TBD" {
			System.out.println("Heisei");
		} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		int intInput = Integer.parseInt(input.replaceAll("/", ""));
		if(intInput > 20190430) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		int intInput = Integer.parseInt(input.replaceAll("/", ""));
		if(intInput > 20190430) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		int intInput = Integer.parseInt(input.replaceAll("/", ""));
		if(intInput > 20190430) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		sc.close();
	}
}
