import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String day = scan.next();
		
		int year = Integer.parseInt(day.substring(0,4));
		int mon = Integer.parseInt(day.substring(5,7));
		
		if(year>=2019 && mon >=5) {System.out.println("TBD");}
		else System.out.println("Heisei");
		
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String day = scan.next();
		
		int year = Integer.parseInt(day.substring(0,4));
		int mon = Integer.parseInt(day.substring(5,7));
		
		if(year>=2019 && mon >=5) {System.out.println("TBD");}
		else System.out.println("Heisei");
		
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String day = scan.next();
		
		int year = Integer.parseInt(day.substring(0,4));
		int mon = Integer.parseInt(day.substring(5,7));
		
		if(year>=2019 && mon >=5) {System.out.println("TBD");}
		else System.out.println("Heisei");
		
	} main {
		Scanner scan = new Scanner(System.in);
		String day = scan.next();
		
		int year = Integer.parseInt(day.substring(0,4));
		int mon = Integer.parseInt(day.substring(5,7));
		
		if(year>=2019 && mon >=5) {System.out.println("TBD");}
		else System.out.println("Heisei");
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String day = scan.next(); day scan.next() scan.next scan int year = Integer.parseInt(day.substring(0,4)); year Integer.parseInt(day.substring(0,4)) Integer.parseInt Integer day.substring(0,4) day.substring day 0 4 int mon = Integer.parseInt(day.substring(5,7)); mon Integer.parseInt(day.substring(5,7)) Integer.parseInt Integer day.substring(5,7) day.substring day 5 7 if(year>=2019 && mon >=5) {System.out.println("TBD");}
		else System.out.println("Heisei"); year>=2019 && mon >=5 year>=2019 year 2019 mon >=5 mon 5 {System.out.println("TBD");} System.out.println("TBD") System.out.println System.out System System.out "TBD" System.out.println("Heisei") System.out.println System.out System System.out "Heisei" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String day = scan.next();
		
		int year = Integer.parseInt(day.substring(0,4));
		int mon = Integer.parseInt(day.substring(5,7));
		
		if(year>=2019 && mon >=5) {System.out.println("TBD");}
		else System.out.println("Heisei");
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String day = scan.next();
		
		int year = Integer.parseInt(day.substring(0,4));
		int mon = Integer.parseInt(day.substring(5,7));
		
		if(year>=2019 && mon >=5) {System.out.println("TBD");}
		else System.out.println("Heisei");
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String day = scan.next();
		
		int year = Integer.parseInt(day.substring(0,4));
		int mon = Integer.parseInt(day.substring(5,7));
		
		if(year>=2019 && mon >=5) {System.out.println("TBD");}
		else System.out.println("Heisei");
		
	}

}
