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

class Main {
	public static void main(String[] args) throws ParseException {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        
		Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        
        Date date1 = sdf.parse(dateStr);
        Date date2 = sdf.parse("2019/04/30");
        
        if (date1.compareTo(date2) > 0) {
            System.out.println("TBD");
        }else {
        	System.out.println("Heisei");
        }
	}
} import java.text.ParseException; ParseException java.text import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.*; util.* java class Main {
	public static void main(String[] args) throws ParseException {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        
		Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        
        Date date1 = sdf.parse(dateStr);
        Date date2 = sdf.parse("2019/04/30");
        
        if (date1.compareTo(date2) > 0) {
            System.out.println("TBD");
        }else {
        	System.out.println("Heisei");
        }
	}
} Main public static void main(String[] args) throws ParseException {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        
		Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        
        Date date1 = sdf.parse(dateStr);
        Date date2 = sdf.parse("2019/04/30");
        
        if (date1.compareTo(date2) > 0) {
            System.out.println("TBD");
        }else {
        	System.out.println("Heisei");
        }
	} main {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        
		Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        
        Date date1 = sdf.parse(dateStr);
        Date date2 = sdf.parse("2019/04/30");
        
        if (date1.compareTo(date2) > 0) {
            System.out.println("TBD");
        }else {
        	System.out.println("Heisei");
        }
	} SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); sdf new SimpleDateFormat("yyyy/MM/dd") Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String dateStr = sc.next(); dateStr sc.next() sc.next sc Date date1 = sdf.parse(dateStr); date1 sdf.parse(dateStr) sdf.parse sdf dateStr Date date2 = sdf.parse("2019/04/30"); date2 sdf.parse("2019/04/30") sdf.parse sdf "2019/04/30" if (date1.compareTo(date2) > 0) {
            System.out.println("TBD");
        }else {
        	System.out.println("Heisei");
        } date1.compareTo(date2) > 0 date1.compareTo(date2) date1.compareTo date1 date2 0 {
            System.out.println("TBD");
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" {
        	System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" String[] args args
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

class Main {
	public static void main(String[] args) throws ParseException {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        
		Scanner sc = new Scanner(System.in);
        String dateStr = sc.next();
        
        Date date1 = sdf.parse(dateStr);
        Date date2 = sdf.parse("2019/04/30");
        
        if (date1.compareTo(date2) > 0) {
            System.out.println("TBD");
        }else {
        	System.out.println("Heisei");
        }
	}
}
