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

public class Main {
	public static void main(String[] args) throws ParseException {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String h = "Heisei";
		String t = "TBD";
		Calendar c =Calendar.getInstance();
		SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
		Date d = f.parse("2019/05/01");
		if(f.parse(s).before(d)) 
			System.out.println(h);
		else
			System.out.println(t);
	}
} import java.text.ParseException; ParseException java.text import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.Calendar; Calendar java.util import java.util.Date; Date java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws ParseException {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String h = "Heisei";
		String t = "TBD";
		Calendar c =Calendar.getInstance();
		SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
		Date d = f.parse("2019/05/01");
		if(f.parse(s).before(d)) 
			System.out.println(h);
		else
			System.out.println(t);
	}
} Main public static void main(String[] args) throws ParseException {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String h = "Heisei";
		String t = "TBD";
		Calendar c =Calendar.getInstance();
		SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
		Date d = f.parse("2019/05/01");
		if(f.parse(s).before(d)) 
			System.out.println(h);
		else
			System.out.println(t);
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String h = "Heisei";
		String t = "TBD";
		Calendar c =Calendar.getInstance();
		SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
		Date d = f.parse("2019/05/01");
		if(f.parse(s).before(d)) 
			System.out.println(h);
		else
			System.out.println(t);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String h = "Heisei"; h "Heisei" String t = "TBD"; t "TBD" Calendar c =Calendar.getInstance(); c Calendar.getInstance() Calendar.getInstance Calendar SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd"); f new SimpleDateFormat("yyyy/MM/dd") Date d = f.parse("2019/05/01"); d f.parse("2019/05/01") f.parse f "2019/05/01" if(f.parse(s).before(d)) 
			System.out.println(h);
		else
			System.out.println(t); f.parse(s).before(d) f.parse(s).before f.parse(s) f.parse f s d System.out.println(h) System.out.println System.out System System.out h System.out.println(t) System.out.println System.out System System.out t String[] args args public class Main {
	public static void main(String[] args) throws ParseException {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String h = "Heisei";
		String t = "TBD";
		Calendar c =Calendar.getInstance();
		SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
		Date d = f.parse("2019/05/01");
		if(f.parse(s).before(d)) 
			System.out.println(h);
		else
			System.out.println(t);
	}
} public class Main {
	public static void main(String[] args) throws ParseException {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String h = "Heisei";
		String t = "TBD";
		Calendar c =Calendar.getInstance();
		SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
		Date d = f.parse("2019/05/01");
		if(f.parse(s).before(d)) 
			System.out.println(h);
		else
			System.out.println(t);
	}
} Main
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws ParseException {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String h = "Heisei";
		String t = "TBD";
		Calendar c =Calendar.getInstance();
		SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd");
		Date d = f.parse("2019/05/01");
		if(f.parse(s).before(d)) 
			System.out.println(h);
		else
			System.out.println(t);
	}
}