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


      String y = oll.substring(0, 4);
      String m = oll.substring(5, 7);
		
      int ye = Integer.parseInt(y);
      int mo = Integer.parseInt(m);
      
      if(ye<=2018){flag=1;}
      if(ye<=2019&&mo<=4){flag=1;}

		if(flag==1){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();
      int flag = 0;


      String y = oll.substring(0, 4);
      String m = oll.substring(5, 7);
		
      int ye = Integer.parseInt(y);
      int mo = Integer.parseInt(m);
      
      if(ye<=2018){flag=1;}
      if(ye<=2019&&mo<=4){flag=1;}

		if(flag==1){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();
      int flag = 0;


      String y = oll.substring(0, 4);
      String m = oll.substring(5, 7);
		
      int ye = Integer.parseInt(y);
      int mo = Integer.parseInt(m);
      
      if(ye<=2018){flag=1;}
      if(ye<=2019&&mo<=4){flag=1;}

		if(flag==1){System.out.print("Heisei");}
      else{System.out.print("TBD");}


 
    } main {
      
        Scanner sc = new Scanner(System.in);
      String oll = sc.next();
      int flag = 0;


      String y = oll.substring(0, 4);
      String m = oll.substring(5, 7);
		
      int ye = Integer.parseInt(y);
      int mo = Integer.parseInt(m);
      
      if(ye<=2018){flag=1;}
      if(ye<=2019&&mo<=4){flag=1;}

		if(flag==1){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 int flag = 0; flag 0 String y = oll.substring(0, 4); y oll.substring(0, 4) oll.substring oll 0 4 String m = oll.substring(5, 7); m oll.substring(5, 7) oll.substring oll 5 7 int ye = Integer.parseInt(y); ye Integer.parseInt(y) Integer.parseInt Integer y int mo = Integer.parseInt(m); mo Integer.parseInt(m) Integer.parseInt Integer m if(ye<=2018){flag=1;} ye<=2018 ye 2018 {flag=1;} flag=1 flag 1 if(ye<=2019&&mo<=4){flag=1;} ye<=2019&&mo<=4 ye<=2019 ye 2019 mo<=4 mo 4 {flag=1;} flag=1 flag 1 if(flag==1){System.out.print("Heisei");}
      else{System.out.print("TBD");} flag==1 flag 1 {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();
      int flag = 0;


      String y = oll.substring(0, 4);
      String m = oll.substring(5, 7);
		
      int ye = Integer.parseInt(y);
      int mo = Integer.parseInt(m);
      
      if(ye<=2018){flag=1;}
      if(ye<=2019&&mo<=4){flag=1;}

		if(flag==1){System.out.print("Heisei");}
      else{System.out.print("TBD");}


 
    }
}