

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String strArray[] = sc.next().split("/");

		int y = Integer.parseInt(strArray[0]);
		int m = Integer.parseInt(strArray[1]);
		int d = Integer.parseInt(strArray[2]);

		boolean tbd = false;

		if(m >= 5){
			tbd = true;
		}

		System.out.println(tbd ? "TBD" : "Heisei");
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String strArray[] = sc.next().split("/");

		int y = Integer.parseInt(strArray[0]);
		int m = Integer.parseInt(strArray[1]);
		int d = Integer.parseInt(strArray[2]);

		boolean tbd = false;

		if(m >= 5){
			tbd = true;
		}

		System.out.println(tbd ? "TBD" : "Heisei");
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String strArray[] = sc.next().split("/");

		int y = Integer.parseInt(strArray[0]);
		int m = Integer.parseInt(strArray[1]);
		int d = Integer.parseInt(strArray[2]);

		boolean tbd = false;

		if(m >= 5){
			tbd = true;
		}

		System.out.println(tbd ? "TBD" : "Heisei");
	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String strArray[] = sc.next().split("/");

		int y = Integer.parseInt(strArray[0]);
		int m = Integer.parseInt(strArray[1]);
		int d = Integer.parseInt(strArray[2]);

		boolean tbd = false;

		if(m >= 5){
			tbd = true;
		}

		System.out.println(tbd ? "TBD" : "Heisei");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String strArray[] = sc.next().split("/"); strArray sc.next().split("/") sc.next().split sc.next() sc.next sc "/" int y = Integer.parseInt(strArray[0]); y Integer.parseInt(strArray[0]) Integer.parseInt Integer strArray[0] strArray 0 int m = Integer.parseInt(strArray[1]); m Integer.parseInt(strArray[1]) Integer.parseInt Integer strArray[1] strArray 1 int d = Integer.parseInt(strArray[2]); d Integer.parseInt(strArray[2]) Integer.parseInt Integer strArray[2] strArray 2 boolean tbd = false; tbd false if(m >= 5){
			tbd = true;
		} m >= 5 m 5 {
			tbd = true;
		} tbd = true tbd true System.out.println(tbd ? "TBD" : "Heisei") System.out.println System.out System System.out tbd ? "TBD" : "Heisei" tbd "TBD" "Heisei" String[] args args public class Main{

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String strArray[] = sc.next().split("/");

		int y = Integer.parseInt(strArray[0]);
		int m = Integer.parseInt(strArray[1]);
		int d = Integer.parseInt(strArray[2]);

		boolean tbd = false;

		if(m >= 5){
			tbd = true;
		}

		System.out.println(tbd ? "TBD" : "Heisei");
	}

} public class Main{

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String strArray[] = sc.next().split("/");

		int y = Integer.parseInt(strArray[0]);
		int m = Integer.parseInt(strArray[1]);
		int d = Integer.parseInt(strArray[2]);

		boolean tbd = false;

		if(m >= 5){
			tbd = true;
		}

		System.out.println(tbd ? "TBD" : "Heisei");
	}

} Main


import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String strArray[] = sc.next().split("/");

		int y = Integer.parseInt(strArray[0]);
		int m = Integer.parseInt(strArray[1]);
		int d = Integer.parseInt(strArray[2]);

		boolean tbd = false;

		if(m >= 5){
			tbd = true;
		}

		System.out.println(tbd ? "TBD" : "Heisei");
	}

}
