import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String[] tokens = in.nextLine().split("/");
		in.close();
		int year = Integer.parseInt(tokens[0]);
		int month = Integer.parseInt(tokens[1]);
		int day = Integer.parseInt(tokens[2]);
		boolean isHeisei = false;
		if (year <= 2018) {
			isHeisei = true;
		} else if (month <= 4) {
			isHeisei = true;
		}
		String result = isHeisei ? "Heisei" : "TBD";
		System.out.println(result);
	}

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

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String[] tokens = in.nextLine().split("/");
		in.close();
		int year = Integer.parseInt(tokens[0]);
		int month = Integer.parseInt(tokens[1]);
		int day = Integer.parseInt(tokens[2]);
		boolean isHeisei = false;
		if (year <= 2018) {
			isHeisei = true;
		} else if (month <= 4) {
			isHeisei = true;
		}
		String result = isHeisei ? "Heisei" : "TBD";
		System.out.println(result);
	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String[] tokens = in.nextLine().split("/");
		in.close();
		int year = Integer.parseInt(tokens[0]);
		int month = Integer.parseInt(tokens[1]);
		int day = Integer.parseInt(tokens[2]);
		boolean isHeisei = false;
		if (year <= 2018) {
			isHeisei = true;
		} else if (month <= 4) {
			isHeisei = true;
		}
		String result = isHeisei ? "Heisei" : "TBD";
		System.out.println(result);
	} main {
		Scanner in = new Scanner(System.in);
		String[] tokens = in.nextLine().split("/");
		in.close();
		int year = Integer.parseInt(tokens[0]);
		int month = Integer.parseInt(tokens[1]);
		int day = Integer.parseInt(tokens[2]);
		boolean isHeisei = false;
		if (year <= 2018) {
			isHeisei = true;
		} else if (month <= 4) {
			isHeisei = true;
		}
		String result = isHeisei ? "Heisei" : "TBD";
		System.out.println(result);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) String[] tokens = in.nextLine().split("/"); tokens in.nextLine().split("/") in.nextLine().split in.nextLine() in.nextLine in "/" in.close() in.close in int year = Integer.parseInt(tokens[0]); year Integer.parseInt(tokens[0]) Integer.parseInt Integer tokens[0] tokens 0 int month = Integer.parseInt(tokens[1]); month Integer.parseInt(tokens[1]) Integer.parseInt Integer tokens[1] tokens 1 int day = Integer.parseInt(tokens[2]); day Integer.parseInt(tokens[2]) Integer.parseInt Integer tokens[2] tokens 2 boolean isHeisei = false; isHeisei false if (year <= 2018) {
			isHeisei = true;
		} else if (month <= 4) {
			isHeisei = true;
		} year <= 2018 year 2018 {
			isHeisei = true;
		} isHeisei = true isHeisei true if (month <= 4) {
			isHeisei = true;
		} month <= 4 month 4 {
			isHeisei = true;
		} isHeisei = true isHeisei true String result = isHeisei ? "Heisei" : "TBD"; result isHeisei ? "Heisei" : "TBD" isHeisei "Heisei" "TBD" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String[] tokens = in.nextLine().split("/");
		in.close();
		int year = Integer.parseInt(tokens[0]);
		int month = Integer.parseInt(tokens[1]);
		int day = Integer.parseInt(tokens[2]);
		boolean isHeisei = false;
		if (year <= 2018) {
			isHeisei = true;
		} else if (month <= 4) {
			isHeisei = true;
		}
		String result = isHeisei ? "Heisei" : "TBD";
		System.out.println(result);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String[] tokens = in.nextLine().split("/");
		in.close();
		int year = Integer.parseInt(tokens[0]);
		int month = Integer.parseInt(tokens[1]);
		int day = Integer.parseInt(tokens[2]);
		boolean isHeisei = false;
		if (year <= 2018) {
			isHeisei = true;
		} else if (month <= 4) {
			isHeisei = true;
		}
		String result = isHeisei ? "Heisei" : "TBD";
		System.out.println(result);
	}

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String[] tokens = in.nextLine().split("/");
		in.close();
		int year = Integer.parseInt(tokens[0]);
		int month = Integer.parseInt(tokens[1]);
		int day = Integer.parseInt(tokens[2]);
		boolean isHeisei = false;
		if (year <= 2018) {
			isHeisei = true;
		} else if (month <= 4) {
			isHeisei = true;
		}
		String result = isHeisei ? "Heisei" : "TBD";
		System.out.println(result);
	}

}