import java.util.Scanner;
import java.lang.Math;
import java.util.ArrayList;
import java.util.List;
//List<Integer> list = new ArrayList<>();

class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		String s = stdIn.next();
		char[] a = new char[10];
		for (int j = 0; j < 10; j++) {
			a[j] = s.charAt(j);
		}
		int c = Character.getNumericValue(a[6]);
		String t = "TBD";
		if (a[5] == '0') {
			if (c < 5)
				t = "Heisei";
		}
		System.out.println(t);
	}
} import java.util.Scanner; Scanner java.util import java.lang.Math; Math java.lang import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		String s = stdIn.next();
		char[] a = new char[10];
		for (int j = 0; j < 10; j++) {
			a[j] = s.charAt(j);
		}
		int c = Character.getNumericValue(a[6]);
		String t = "TBD";
		if (a[5] == '0') {
			if (c < 5)
				t = "Heisei";
		}
		System.out.println(t);
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		String s = stdIn.next();
		char[] a = new char[10];
		for (int j = 0; j < 10; j++) {
			a[j] = s.charAt(j);
		}
		int c = Character.getNumericValue(a[6]);
		String t = "TBD";
		if (a[5] == '0') {
			if (c < 5)
				t = "Heisei";
		}
		System.out.println(t);
	} main {
		Scanner stdIn = new Scanner(System.in);
		String s = stdIn.next();
		char[] a = new char[10];
		for (int j = 0; j < 10; j++) {
			a[j] = s.charAt(j);
		}
		int c = Character.getNumericValue(a[6]);
		String t = "TBD";
		if (a[5] == '0') {
			if (c < 5)
				t = "Heisei";
		}
		System.out.println(t);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) String s = stdIn.next(); s stdIn.next() stdIn.next stdIn char[] a = new char[10]; a new char[10] 10 for (int j = 0; j < 10; j++) {
			a[j] = s.charAt(j);
		} int j = 0; int j = 0; j 0 j < 10 j 10 j++ j++ j {
			a[j] = s.charAt(j);
		} {
			a[j] = s.charAt(j);
		} a[j] = s.charAt(j) a[j] a j s.charAt(j) s.charAt s j int c = Character.getNumericValue(a[6]); c Character.getNumericValue(a[6]) Character.getNumericValue Character a[6] a 6 String t = "TBD"; t "TBD" if (a[5] == '0') {
			if (c < 5)
				t = "Heisei";
		} a[5] == '0' a[5] a 5 '0' {
			if (c < 5)
				t = "Heisei";
		} if (c < 5)
				t = "Heisei"; c < 5 c 5 t = "Heisei" t "Heisei" System.out.println(t) System.out.println System.out System System.out t String[] args args
import java.util.Scanner;
import java.lang.Math;
import java.util.ArrayList;
import java.util.List;
//List<Integer> list = new ArrayList<>();

class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		String s = stdIn.next();
		char[] a = new char[10];
		for (int j = 0; j < 10; j++) {
			a[j] = s.charAt(j);
		}
		int c = Character.getNumericValue(a[6]);
		String t = "TBD";
		if (a[5] == '0') {
			if (c < 5)
				t = "Heisei";
		}
		System.out.println(t);
	}
}