import java.util.*;
import java.text.SimpleDateFormat;

public class Main {
	public static void main(String[] args) {  
  		Scanner sc = new Scanner(System.in);
		String str = sc.next();
      	String[] ary = str.split("/", 0);
      	Calendar cal1 = Calendar.getInstance();
      	cal1.set(Integer.parseInt(ary[0]),
                Integer.parseInt(ary[1]),
                Integer.parseInt(ary[2]));
      	Calendar cal2 = Calendar.getInstance();
      	cal2.set(2019, 04, 30);
      	
      	if(cal1.before(cal2)) {
        	System.out.println("Heisei");
        } else {
        	System.out.println("TBD"); 
        }
    }
} import java.util.*; util.* java import java.text.SimpleDateFormat; SimpleDateFormat java.text public class Main {
	public static void main(String[] args) {  
  		Scanner sc = new Scanner(System.in);
		String str = sc.next();
      	String[] ary = str.split("/", 0);
      	Calendar cal1 = Calendar.getInstance();
      	cal1.set(Integer.parseInt(ary[0]),
                Integer.parseInt(ary[1]),
                Integer.parseInt(ary[2]));
      	Calendar cal2 = Calendar.getInstance();
      	cal2.set(2019, 04, 30);
      	
      	if(cal1.before(cal2)) {
        	System.out.println("Heisei");
        } else {
        	System.out.println("TBD"); 
        }
    }
} Main public static void main(String[] args) {  
  		Scanner sc = new Scanner(System.in);
		String str = sc.next();
      	String[] ary = str.split("/", 0);
      	Calendar cal1 = Calendar.getInstance();
      	cal1.set(Integer.parseInt(ary[0]),
                Integer.parseInt(ary[1]),
                Integer.parseInt(ary[2]));
      	Calendar cal2 = Calendar.getInstance();
      	cal2.set(2019, 04, 30);
      	
      	if(cal1.before(cal2)) {
        	System.out.println("Heisei");
        } else {
        	System.out.println("TBD"); 
        }
    } main {  
  		Scanner sc = new Scanner(System.in);
		String str = sc.next();
      	String[] ary = str.split("/", 0);
      	Calendar cal1 = Calendar.getInstance();
      	cal1.set(Integer.parseInt(ary[0]),
                Integer.parseInt(ary[1]),
                Integer.parseInt(ary[2]));
      	Calendar cal2 = Calendar.getInstance();
      	cal2.set(2019, 04, 30);
      	
      	if(cal1.before(cal2)) {
        	System.out.println("Heisei");
        } else {
        	System.out.println("TBD"); 
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc String[] ary = str.split("/", 0); ary str.split("/", 0) str.split str "/" 0 Calendar cal1 = Calendar.getInstance(); cal1 Calendar.getInstance() Calendar.getInstance Calendar cal1.set(Integer.parseInt(ary[0]),
                Integer.parseInt(ary[1]),
                Integer.parseInt(ary[2])) cal1.set cal1 Integer.parseInt(ary[0]) Integer.parseInt Integer ary[0] ary 0 Integer.parseInt(ary[1]) Integer.parseInt Integer ary[1] ary 1 Integer.parseInt(ary[2]) Integer.parseInt Integer ary[2] ary 2 Calendar cal2 = Calendar.getInstance(); cal2 Calendar.getInstance() Calendar.getInstance Calendar cal2.set(2019, 04, 30) cal2.set cal2 2019 04 30 if(cal1.before(cal2)) {
        	System.out.println("Heisei");
        } else {
        	System.out.println("TBD"); 
        } cal1.before(cal2) cal1.before cal1 cal2 {
        	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 str = sc.next();
      	String[] ary = str.split("/", 0);
      	Calendar cal1 = Calendar.getInstance();
      	cal1.set(Integer.parseInt(ary[0]),
                Integer.parseInt(ary[1]),
                Integer.parseInt(ary[2]));
      	Calendar cal2 = Calendar.getInstance();
      	cal2.set(2019, 04, 30);
      	
      	if(cal1.before(cal2)) {
        	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 str = sc.next();
      	String[] ary = str.split("/", 0);
      	Calendar cal1 = Calendar.getInstance();
      	cal1.set(Integer.parseInt(ary[0]),
                Integer.parseInt(ary[1]),
                Integer.parseInt(ary[2]));
      	Calendar cal2 = Calendar.getInstance();
      	cal2.set(2019, 04, 30);
      	
      	if(cal1.before(cal2)) {
        	System.out.println("Heisei");
        } else {
        	System.out.println("TBD"); 
        }
    }
} Main
import java.util.*;
import java.text.SimpleDateFormat;

public class Main {
	public static void main(String[] args) {  
  		Scanner sc = new Scanner(System.in);
		String str = sc.next();
      	String[] ary = str.split("/", 0);
      	Calendar cal1 = Calendar.getInstance();
      	cal1.set(Integer.parseInt(ary[0]),
                Integer.parseInt(ary[1]),
                Integer.parseInt(ary[2]));
      	Calendar cal2 = Calendar.getInstance();
      	cal2.set(2019, 04, 30);
      	
      	if(cal1.before(cal2)) {
        	System.out.println("Heisei");
        } else {
        	System.out.println("TBD"); 
        }
    }
}