import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int y = Integer.valueOf(s.substring(0, 4));
		int m = Integer.valueOf(s.substring(5, 7));
		int d = Integer.valueOf(s.substring(8, 10));

		if ( m >= 5 ){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}

	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int y = Integer.valueOf(s.substring(0, 4));
		int m = Integer.valueOf(s.substring(5, 7));
		int d = Integer.valueOf(s.substring(8, 10));

		if ( m >= 5 ){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int y = Integer.valueOf(s.substring(0, 4));
		int m = Integer.valueOf(s.substring(5, 7));
		int d = Integer.valueOf(s.substring(8, 10));

		if ( m >= 5 ){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}

	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int y = Integer.valueOf(s.substring(0, 4));
		int m = Integer.valueOf(s.substring(5, 7));
		int d = Integer.valueOf(s.substring(8, 10));

		if ( m >= 5 ){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int y = Integer.valueOf(s.substring(0, 4)); y Integer.valueOf(s.substring(0, 4)) Integer.valueOf Integer s.substring(0, 4) s.substring s 0 4 int m = Integer.valueOf(s.substring(5, 7)); m Integer.valueOf(s.substring(5, 7)) Integer.valueOf Integer s.substring(5, 7) s.substring s 5 7 int d = Integer.valueOf(s.substring(8, 10)); d Integer.valueOf(s.substring(8, 10)) Integer.valueOf Integer s.substring(8, 10) s.substring s 8 10 if ( m >= 5 ){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		} m >= 5 m 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("Heisei") System.out.println System.out System System.out "Heisei" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int y = Integer.valueOf(s.substring(0, 4));
		int m = Integer.valueOf(s.substring(5, 7));
		int d = Integer.valueOf(s.substring(8, 10));

		if ( m >= 5 ){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}

	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int y = Integer.valueOf(s.substring(0, 4));
		int m = Integer.valueOf(s.substring(5, 7));
		int d = Integer.valueOf(s.substring(8, 10));

		if ( m >= 5 ){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}

	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int y = Integer.valueOf(s.substring(0, 4));
		int m = Integer.valueOf(s.substring(5, 7));
		int d = Integer.valueOf(s.substring(8, 10));

		if ( m >= 5 ){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}

	}
}