import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		String str=s.next();
		s.close();
		String[] ss=str.split("/");
		int year=Integer.parseInt(ss[0]);
		if(ss[1].startsWith("0"))ss[1]=ss[1].substring(1, 2);
		int month=Integer.parseInt(ss[1]);
		if(ss[2].startsWith("0"))ss[1]=ss[2].substring(1, 2);
		int date=Integer.parseInt(ss[2]);
		if(year<=2019&&month<=4&&date<=30){
			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 s = new Scanner(System.in);
		String str=s.next();
		s.close();
		String[] ss=str.split("/");
		int year=Integer.parseInt(ss[0]);
		if(ss[1].startsWith("0"))ss[1]=ss[1].substring(1, 2);
		int month=Integer.parseInt(ss[1]);
		if(ss[2].startsWith("0"))ss[1]=ss[2].substring(1, 2);
		int date=Integer.parseInt(ss[2]);
		if(year<=2019&&month<=4&&date<=30){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	}
} Main public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		String str=s.next();
		s.close();
		String[] ss=str.split("/");
		int year=Integer.parseInt(ss[0]);
		if(ss[1].startsWith("0"))ss[1]=ss[1].substring(1, 2);
		int month=Integer.parseInt(ss[1]);
		if(ss[2].startsWith("0"))ss[1]=ss[2].substring(1, 2);
		int date=Integer.parseInt(ss[2]);
		if(year<=2019&&month<=4&&date<=30){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	} main {
		Scanner s = new Scanner(System.in);
		String str=s.next();
		s.close();
		String[] ss=str.split("/");
		int year=Integer.parseInt(ss[0]);
		if(ss[1].startsWith("0"))ss[1]=ss[1].substring(1, 2);
		int month=Integer.parseInt(ss[1]);
		if(ss[2].startsWith("0"))ss[1]=ss[2].substring(1, 2);
		int date=Integer.parseInt(ss[2]);
		if(year<=2019&&month<=4&&date<=30){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) String str=s.next(); str s.next() s.next s s.close() s.close s String[] ss=str.split("/"); ss str.split("/") str.split str "/" int year=Integer.parseInt(ss[0]); year Integer.parseInt(ss[0]) Integer.parseInt Integer ss[0] ss 0 if(ss[1].startsWith("0"))ss[1]=ss[1].substring(1, 2); ss[1].startsWith("0") ss[1].startsWith ss[1] ss 1 "0" ss[1]=ss[1].substring(1, 2) ss[1] ss 1 ss[1].substring(1, 2) ss[1].substring ss[1] ss 1 1 2 int month=Integer.parseInt(ss[1]); month Integer.parseInt(ss[1]) Integer.parseInt Integer ss[1] ss 1 if(ss[2].startsWith("0"))ss[1]=ss[2].substring(1, 2); ss[2].startsWith("0") ss[2].startsWith ss[2] ss 2 "0" ss[1]=ss[2].substring(1, 2) ss[1] ss 1 ss[2].substring(1, 2) ss[2].substring ss[2] ss 2 1 2 int date=Integer.parseInt(ss[2]); date Integer.parseInt(ss[2]) Integer.parseInt Integer ss[2] ss 2 if(year<=2019&&month<=4&&date<=30){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		} year<=2019&&month<=4&&date<=30 year<=2019&&month<=4&&date<=30 year<=2019 year 2019 month<=4 month 4 date<=30 date 30 {
			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 s = new Scanner(System.in);
		String str=s.next();
		s.close();
		String[] ss=str.split("/");
		int year=Integer.parseInt(ss[0]);
		if(ss[1].startsWith("0"))ss[1]=ss[1].substring(1, 2);
		int month=Integer.parseInt(ss[1]);
		if(ss[2].startsWith("0"))ss[1]=ss[2].substring(1, 2);
		int date=Integer.parseInt(ss[2]);
		if(year<=2019&&month<=4&&date<=30){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		String str=s.next();
		s.close();
		String[] ss=str.split("/");
		int year=Integer.parseInt(ss[0]);
		if(ss[1].startsWith("0"))ss[1]=ss[1].substring(1, 2);
		int month=Integer.parseInt(ss[1]);
		if(ss[2].startsWith("0"))ss[1]=ss[2].substring(1, 2);
		int date=Integer.parseInt(ss[2]);
		if(year<=2019&&month<=4&&date<=30){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		String str=s.next();
		s.close();
		String[] ss=str.split("/");
		int year=Integer.parseInt(ss[0]);
		if(ss[1].startsWith("0"))ss[1]=ss[1].substring(1, 2);
		int month=Integer.parseInt(ss[1]);
		if(ss[2].startsWith("0"))ss[1]=ss[2].substring(1, 2);
		int date=Integer.parseInt(ss[2]);
		if(year<=2019&&month<=4&&date<=30){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	}
}