import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		String[] date = scan.next().split("/",0);
		if(Integer.parseInt(date[0])<2019||Integer.parseInt(date[1])<5){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	}
} import java.util.*; util.* java class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		String[] date = scan.next().split("/",0);
		if(Integer.parseInt(date[0])<2019||Integer.parseInt(date[1])<5){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		String[] date = scan.next().split("/",0);
		if(Integer.parseInt(date[0])<2019||Integer.parseInt(date[1])<5){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		String[] date = scan.next().split("/",0);
		if(Integer.parseInt(date[0])<2019||Integer.parseInt(date[1])<5){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String[] date = scan.next().split("/",0); date scan.next().split("/",0) scan.next().split scan.next() scan.next scan "/" 0 if(Integer.parseInt(date[0])<2019||Integer.parseInt(date[1])<5){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		} Integer.parseInt(date[0])<2019||Integer.parseInt(date[1])<5 Integer.parseInt(date[0])<2019 Integer.parseInt(date[0]) Integer.parseInt Integer date[0] date 0 2019 Integer.parseInt(date[1])<5 Integer.parseInt(date[1]) Integer.parseInt Integer date[1] date 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" String args[] args
import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		String[] date = scan.next().split("/",0);
		if(Integer.parseInt(date[0])<2019||Integer.parseInt(date[1])<5){
			System.out.println("Heisei");
		}else{
			System.out.println("TBD");
		}
	}
}