import java.util.*;
public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		String po=sc.nextLine();
      String p[]=po.split("/",0);
		System.out.println((Integer.parseInt(p[1])<5)?"Heisei":"TBD");
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		String po=sc.nextLine();
      String p[]=po.split("/",0);
		System.out.println((Integer.parseInt(p[1])<5)?"Heisei":"TBD");
	}
} Main public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		String po=sc.nextLine();
      String p[]=po.split("/",0);
		System.out.println((Integer.parseInt(p[1])<5)?"Heisei":"TBD");
	} main {
		Scanner sc=new Scanner(System.in);
		String po=sc.nextLine();
      String p[]=po.split("/",0);
		System.out.println((Integer.parseInt(p[1])<5)?"Heisei":"TBD");
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String po=sc.nextLine(); po sc.nextLine() sc.nextLine sc String p[]=po.split("/",0); p po.split("/",0) po.split po "/" 0 System.out.println((Integer.parseInt(p[1])<5)?"Heisei":"TBD") System.out.println System.out System System.out (Integer.parseInt(p[1])<5)?"Heisei":"TBD" (Integer.parseInt(p[1])<5) Integer.parseInt(p[1]) Integer.parseInt Integer p[1] p 1 5 "Heisei" "TBD" String[]args args public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		String po=sc.nextLine();
      String p[]=po.split("/",0);
		System.out.println((Integer.parseInt(p[1])<5)?"Heisei":"TBD");
	}
} public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		String po=sc.nextLine();
      String p[]=po.split("/",0);
		System.out.println((Integer.parseInt(p[1])<5)?"Heisei":"TBD");
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		String po=sc.nextLine();
      String p[]=po.split("/",0);
		System.out.println((Integer.parseInt(p[1])<5)?"Heisei":"TBD");
	}
}
