import java.util.*;
import java.lang.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int year = Integer.parseInt(s.substring(0, 4));
		int month = Integer.parseInt(s.substring(5, 7));
		int day = Integer.parseInt(s.substring(8, 10));
		if (year > 2019 || (year == 2019 && month > 4)) {
			System.out.println("TBD");;
		} else {
			System.out.println("Heisei");
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int year = Integer.parseInt(s.substring(0, 4));
		int month = Integer.parseInt(s.substring(5, 7));
		int day = Integer.parseInt(s.substring(8, 10));
		if (year > 2019 || (year == 2019 && month > 4)) {
			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 year = Integer.parseInt(s.substring(0, 4));
		int month = Integer.parseInt(s.substring(5, 7));
		int day = Integer.parseInt(s.substring(8, 10));
		if (year > 2019 || (year == 2019 && month > 4)) {
			System.out.println("TBD");;
		} else {
			System.out.println("Heisei");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int year = Integer.parseInt(s.substring(0, 4));
		int month = Integer.parseInt(s.substring(5, 7));
		int day = Integer.parseInt(s.substring(8, 10));
		if (year > 2019 || (year == 2019 && month > 4)) {
			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 year = Integer.parseInt(s.substring(0, 4)); year Integer.parseInt(s.substring(0, 4)) Integer.parseInt Integer s.substring(0, 4) s.substring s 0 4 int month = Integer.parseInt(s.substring(5, 7)); month Integer.parseInt(s.substring(5, 7)) Integer.parseInt Integer s.substring(5, 7) s.substring s 5 7 int day = Integer.parseInt(s.substring(8, 10)); day Integer.parseInt(s.substring(8, 10)) Integer.parseInt Integer s.substring(8, 10) s.substring s 8 10 if (year > 2019 || (year == 2019 && month > 4)) {
			System.out.println("TBD");;
		} else {
			System.out.println("Heisei");
		} year > 2019 || (year == 2019 && month > 4) year > 2019 year 2019 (year == 2019 && month > 4) year == 2019 year 2019 month > 4 month 4 {
			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 year = Integer.parseInt(s.substring(0, 4));
		int month = Integer.parseInt(s.substring(5, 7));
		int day = Integer.parseInt(s.substring(8, 10));
		if (year > 2019 || (year == 2019 && month > 4)) {
			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 year = Integer.parseInt(s.substring(0, 4));
		int month = Integer.parseInt(s.substring(5, 7));
		int day = Integer.parseInt(s.substring(8, 10));
		if (year > 2019 || (year == 2019 && month > 4)) {
			System.out.println("TBD");;
		} else {
			System.out.println("Heisei");
		}
	}
} Main
import java.util.*;
import java.lang.*;

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