import java.util.*;


public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s=sc.next();
		String y=s.split("/")[0];
		String m=s.split("/")[1];
		String d=s.split("/")[2];
		int year=Integer.parseInt(y);
		int month=Integer.parseInt(m)+10;
		int day=Integer.parseInt(d);
		if(year>=2020 || (year==2019 && month>=15)){
			System.out.println("TBD");
		}else if((year==2019 && month <=14 )|| year<=2018){
			System.out.println("Heisei");
		}


	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s=sc.next();
		String y=s.split("/")[0];
		String m=s.split("/")[1];
		String d=s.split("/")[2];
		int year=Integer.parseInt(y);
		int month=Integer.parseInt(m)+10;
		int day=Integer.parseInt(d);
		if(year>=2020 || (year==2019 && month>=15)){
			System.out.println("TBD");
		}else if((year==2019 && month <=14 )|| year<=2018){
			System.out.println("Heisei");
		}


	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s=sc.next();
		String y=s.split("/")[0];
		String m=s.split("/")[1];
		String d=s.split("/")[2];
		int year=Integer.parseInt(y);
		int month=Integer.parseInt(m)+10;
		int day=Integer.parseInt(d);
		if(year>=2020 || (year==2019 && month>=15)){
			System.out.println("TBD");
		}else if((year==2019 && month <=14 )|| year<=2018){
			System.out.println("Heisei");
		}


	} main {
		Scanner sc = new Scanner(System.in);

		String s=sc.next();
		String y=s.split("/")[0];
		String m=s.split("/")[1];
		String d=s.split("/")[2];
		int year=Integer.parseInt(y);
		int month=Integer.parseInt(m)+10;
		int day=Integer.parseInt(d);
		if(year>=2020 || (year==2019 && month>=15)){
			System.out.println("TBD");
		}else if((year==2019 && month <=14 )|| year<=2018){
			System.out.println("Heisei");
		}


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s=sc.next(); s sc.next() sc.next sc String y=s.split("/")[0]; y s.split("/")[0] s.split("/") s.split s "/" 0 String m=s.split("/")[1]; m s.split("/")[1] s.split("/") s.split s "/" 1 String d=s.split("/")[2]; d s.split("/")[2] s.split("/") s.split s "/" 2 int year=Integer.parseInt(y); year Integer.parseInt(y) Integer.parseInt Integer y int month=Integer.parseInt(m)+10; month Integer.parseInt(m)+10 Integer.parseInt(m) Integer.parseInt Integer m 10 int day=Integer.parseInt(d); day Integer.parseInt(d) Integer.parseInt Integer d if(year>=2020 || (year==2019 && month>=15)){
			System.out.println("TBD");
		}else if((year==2019 && month <=14 )|| year<=2018){
			System.out.println("Heisei");
		} year>=2020 || (year==2019 && month>=15) year>=2020 year 2020 (year==2019 && month>=15) year==2019 year 2019 month>=15 month 15 {
			System.out.println("TBD");
		} System.out.println("TBD") System.out.println System.out System System.out "TBD" if((year==2019 && month <=14 )|| year<=2018){
			System.out.println("Heisei");
		} (year==2019 && month <=14 )|| year<=2018 (year==2019 && month <=14 ) year==2019 year 2019 month <=14 month 14 year<=2018 year 2018 {
			System.out.println("Heisei");
		} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s=sc.next();
		String y=s.split("/")[0];
		String m=s.split("/")[1];
		String d=s.split("/")[2];
		int year=Integer.parseInt(y);
		int month=Integer.parseInt(m)+10;
		int day=Integer.parseInt(d);
		if(year>=2020 || (year==2019 && month>=15)){
			System.out.println("TBD");
		}else if((year==2019 && month <=14 )|| year<=2018){
			System.out.println("Heisei");
		}


	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s=sc.next();
		String y=s.split("/")[0];
		String m=s.split("/")[1];
		String d=s.split("/")[2];
		int year=Integer.parseInt(y);
		int month=Integer.parseInt(m)+10;
		int day=Integer.parseInt(d);
		if(year>=2020 || (year==2019 && month>=15)){
			System.out.println("TBD");
		}else if((year==2019 && month <=14 )|| year<=2018){
			System.out.println("Heisei");
		}


	}
} Main
import java.util.*;


public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s=sc.next();
		String y=s.split("/")[0];
		String m=s.split("/")[1];
		String d=s.split("/")[2];
		int year=Integer.parseInt(y);
		int month=Integer.parseInt(m)+10;
		int day=Integer.parseInt(d);
		if(year>=2020 || (year==2019 && month>=15)){
			System.out.println("TBD");
		}else if((year==2019 && month <=14 )|| year<=2018){
			System.out.println("Heisei");
		}


	}
}
