import java.util.*;
 
class Main {
    public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
      String oll = sc.next();String m = oll.substring(5, 7);
      int mo = Integer.parseInt(m);
      
      if(mo<=4){System.out.print("Heisei");}
      else{System.out.print("TBD");}
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
      String oll = sc.next();String m = oll.substring(5, 7);
      int mo = Integer.parseInt(m);
      
      if(mo<=4){System.out.print("Heisei");}
      else{System.out.print("TBD");}
    }
} Main public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
      String oll = sc.next();String m = oll.substring(5, 7);
      int mo = Integer.parseInt(m);
      
      if(mo<=4){System.out.print("Heisei");}
      else{System.out.print("TBD");}
    } main {
      
        Scanner sc = new Scanner(System.in);
      String oll = sc.next();String m = oll.substring(5, 7);
      int mo = Integer.parseInt(m);
      
      if(mo<=4){System.out.print("Heisei");}
      else{System.out.print("TBD");}
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String oll = sc.next(); oll sc.next() sc.next sc String m = oll.substring(5, 7); m oll.substring(5, 7) oll.substring oll 5 7 int mo = Integer.parseInt(m); mo Integer.parseInt(m) Integer.parseInt Integer m if(mo<=4){System.out.print("Heisei");}
      else{System.out.print("TBD");} mo<=4 mo 4 {System.out.print("Heisei");} System.out.print("Heisei") System.out.print System.out System System.out "Heisei" {System.out.print("TBD");} System.out.print("TBD") System.out.print System.out System System.out "TBD" String[] args args
import java.util.*;
 
class Main {
    public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
      String oll = sc.next();String m = oll.substring(5, 7);
      int mo = Integer.parseInt(m);
      
      if(mo<=4){System.out.print("Heisei");}
      else{System.out.print("TBD");}
    }
}