import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		List<String> sl = new ArrayList<String>(Arrays.asList(s.split("/")));
		
		if(Integer.parseInt(sl.get(0)) < 2019) {
			System.out.println("Heisei");
		}else if(Integer.parseInt(sl.get(1)) < 5){
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
		
		sc.close();
		
		
		
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		List<String> sl = new ArrayList<String>(Arrays.asList(s.split("/")));
		
		if(Integer.parseInt(sl.get(0)) < 2019) {
			System.out.println("Heisei");
		}else if(Integer.parseInt(sl.get(1)) < 5){
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
		
		sc.close();
		
		
		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		List<String> sl = new ArrayList<String>(Arrays.asList(s.split("/")));
		
		if(Integer.parseInt(sl.get(0)) < 2019) {
			System.out.println("Heisei");
		}else if(Integer.parseInt(sl.get(1)) < 5){
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
		
		sc.close();
		
		
		
	} main {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		List<String> sl = new ArrayList<String>(Arrays.asList(s.split("/")));
		
		if(Integer.parseInt(sl.get(0)) < 2019) {
			System.out.println("Heisei");
		}else if(Integer.parseInt(sl.get(1)) < 5){
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
		
		sc.close();
		
		
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc List<String> sl = new ArrayList<String>(Arrays.asList(s.split("/"))); sl new ArrayList<String>(Arrays.asList(s.split("/"))) if(Integer.parseInt(sl.get(0)) < 2019) {
			System.out.println("Heisei");
		}else if(Integer.parseInt(sl.get(1)) < 5){
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		} Integer.parseInt(sl.get(0)) < 2019 Integer.parseInt(sl.get(0)) Integer.parseInt Integer sl.get(0) sl.get sl 0 2019 {
			System.out.println("Heisei");
		} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(Integer.parseInt(sl.get(1)) < 5){
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		} Integer.parseInt(sl.get(1)) < 5 Integer.parseInt(sl.get(1)) Integer.parseInt Integer sl.get(1) sl.get sl 1 5 {
			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" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		List<String> sl = new ArrayList<String>(Arrays.asList(s.split("/")));
		
		if(Integer.parseInt(sl.get(0)) < 2019) {
			System.out.println("Heisei");
		}else if(Integer.parseInt(sl.get(1)) < 5){
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
		
		sc.close();
		
		
		
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		List<String> sl = new ArrayList<String>(Arrays.asList(s.split("/")));
		
		if(Integer.parseInt(sl.get(0)) < 2019) {
			System.out.println("Heisei");
		}else if(Integer.parseInt(sl.get(1)) < 5){
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
		
		sc.close();
		
		
		
	}
} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		List<String> sl = new ArrayList<String>(Arrays.asList(s.split("/")));
		
		if(Integer.parseInt(sl.get(0)) < 2019) {
			System.out.println("Heisei");
		}else if(Integer.parseInt(sl.get(1)) < 5){
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
		
		sc.close();
		
		
		
	}
}