import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);		
		String s = sc.next();
        if(s.substring(5,7).equals("01")||s.substring(5,7).equals("02")||
           s.substring(5,7).equals("03")||s.substring(5,7).equals("04")){
          System.out.println("Heisei");}
      else{System.out.println("TBD");}		
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);		
		String s = sc.next();
        if(s.substring(5,7).equals("01")||s.substring(5,7).equals("02")||
           s.substring(5,7).equals("03")||s.substring(5,7).equals("04")){
          System.out.println("Heisei");}
      else{System.out.println("TBD");}		
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);		
		String s = sc.next();
        if(s.substring(5,7).equals("01")||s.substring(5,7).equals("02")||
           s.substring(5,7).equals("03")||s.substring(5,7).equals("04")){
          System.out.println("Heisei");}
      else{System.out.println("TBD");}		
	} main {
		Scanner sc = new Scanner(System.in);		
		String s = sc.next();
        if(s.substring(5,7).equals("01")||s.substring(5,7).equals("02")||
           s.substring(5,7).equals("03")||s.substring(5,7).equals("04")){
          System.out.println("Heisei");}
      else{System.out.println("TBD");}		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc if(s.substring(5,7).equals("01")||s.substring(5,7).equals("02")||
           s.substring(5,7).equals("03")||s.substring(5,7).equals("04")){
          System.out.println("Heisei");}
      else{System.out.println("TBD");} s.substring(5,7).equals("01")||s.substring(5,7).equals("02")||
           s.substring(5,7).equals("03")||s.substring(5,7).equals("04") s.substring(5,7).equals("03") s.substring(5,7).equals("01")||s.substring(5,7).equals("02")||
           s.substring(5,7).equals("03")||s.substring(5,7).equals("04") s.substring(5,7).equals("01") s.substring(5,7).equals s.substring(5,7) s.substring s 5 7 "01" s.substring(5,7).equals("02") s.substring(5,7).equals s.substring(5,7) s.substring s 5 7 "02" s.substring(5,7).equals("03") s.substring(5,7).equals s.substring(5,7) s.substring s 5 7 "03" s.substring(5,7).equals("04") s.substring(5,7).equals s.substring(5,7) s.substring s 5 7 "04" {
          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 sc = new Scanner(System.in);		
		String s = sc.next();
        if(s.substring(5,7).equals("01")||s.substring(5,7).equals("02")||
           s.substring(5,7).equals("03")||s.substring(5,7).equals("04")){
          System.out.println("Heisei");}
      else{System.out.println("TBD");}		
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);		
		String s = sc.next();
        if(s.substring(5,7).equals("01")||s.substring(5,7).equals("02")||
           s.substring(5,7).equals("03")||s.substring(5,7).equals("04")){
          System.out.println("Heisei");}
      else{System.out.println("TBD");}		
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);		
		String s = sc.next();
        if(s.substring(5,7).equals("01")||s.substring(5,7).equals("02")||
           s.substring(5,7).equals("03")||s.substring(5,7).equals("04")){
          System.out.println("Heisei");}
      else{System.out.println("TBD");}		
	}
}