import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

class Main {
	public static void main(String[] args) throws ParseException {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");


		Date std = sdf.parse("2019/04/30");

		Date date = sdf.parse(s);



		if(date.after(std)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}


		sc.close();
	}

} import java.text.ParseException; ParseException java.text import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.Date; Date java.util import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) throws ParseException {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");


		Date std = sdf.parse("2019/04/30");

		Date date = sdf.parse(s);



		if(date.after(std)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}


		sc.close();
	}

} Main public static void main(String[] args) throws ParseException {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");


		Date std = sdf.parse("2019/04/30");

		Date date = sdf.parse(s);



		if(date.after(std)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}


		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");


		Date std = sdf.parse("2019/04/30");

		Date date = sdf.parse(s);



		if(date.after(std)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}


		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); sdf new SimpleDateFormat("yyyy/MM/dd") Date std = sdf.parse("2019/04/30"); std sdf.parse("2019/04/30") sdf.parse sdf "2019/04/30" Date date = sdf.parse(s); date sdf.parse(s) sdf.parse sdf s if(date.after(std)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		} date.after(std) date.after date std {
			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" sc.close() sc.close sc String[] args args
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

class Main {
	public static void main(String[] args) throws ParseException {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");


		Date std = sdf.parse("2019/04/30");

		Date date = sdf.parse(s);



		if(date.after(std)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}


		sc.close();
	}

}
