import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		//String buff="Christmas";
		long count=0;
		long[] array=new long[3];

		/*for(long i=n;i<25;i++) {
			buff+=" Eve";
		}*/
		Arrays.sort(array);
		int buff = Integer.parseInt(s.substring(0,4));
		int buff1 = Integer.parseInt(s.substring(5,7));
		if(buff>2019||buff1>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		//System.out.println(buff+" "+buff1);
		//System.out.println(Math.abs(array[2]-array[1])+Math.abs(array[1]-array[0]));
	}
}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		//String buff="Christmas";
		long count=0;
		long[] array=new long[3];

		/*for(long i=n;i<25;i++) {
			buff+=" Eve";
		}*/
		Arrays.sort(array);
		int buff = Integer.parseInt(s.substring(0,4));
		int buff1 = Integer.parseInt(s.substring(5,7));
		if(buff>2019||buff1>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		//System.out.println(buff+" "+buff1);
		//System.out.println(Math.abs(array[2]-array[1])+Math.abs(array[1]-array[0]));
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		//String buff="Christmas";
		long count=0;
		long[] array=new long[3];

		/*for(long i=n;i<25;i++) {
			buff+=" Eve";
		}*/
		Arrays.sort(array);
		int buff = Integer.parseInt(s.substring(0,4));
		int buff1 = Integer.parseInt(s.substring(5,7));
		if(buff>2019||buff1>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		//System.out.println(buff+" "+buff1);
		//System.out.println(Math.abs(array[2]-array[1])+Math.abs(array[1]-array[0]));
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		//String buff="Christmas";
		long count=0;
		long[] array=new long[3];

		/*for(long i=n;i<25;i++) {
			buff+=" Eve";
		}*/
		Arrays.sort(array);
		int buff = Integer.parseInt(s.substring(0,4));
		int buff1 = Integer.parseInt(s.substring(5,7));
		if(buff>2019||buff1>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		//System.out.println(buff+" "+buff1);
		//System.out.println(Math.abs(array[2]-array[1])+Math.abs(array[1]-array[0]));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc long count=0; count 0 long[] array=new long[3]; array new long[3] 3 Arrays.sort(array) Arrays.sort Arrays array int buff = Integer.parseInt(s.substring(0,4)); buff Integer.parseInt(s.substring(0,4)) Integer.parseInt Integer s.substring(0,4) s.substring s 0 4 int buff1 = Integer.parseInt(s.substring(5,7)); buff1 Integer.parseInt(s.substring(5,7)) Integer.parseInt Integer s.substring(5,7) s.substring s 5 7 if(buff>2019||buff1>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		} buff>2019||buff1>4 buff>2019 buff 2019 buff1>4 buff1 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();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		//String buff="Christmas";
		long count=0;
		long[] array=new long[3];

		/*for(long i=n;i<25;i++) {
			buff+=" Eve";
		}*/
		Arrays.sort(array);
		int buff = Integer.parseInt(s.substring(0,4));
		int buff1 = Integer.parseInt(s.substring(5,7));
		if(buff>2019||buff1>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		//System.out.println(buff+" "+buff1);
		//System.out.println(Math.abs(array[2]-array[1])+Math.abs(array[1]-array[0]));
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		//String buff="Christmas";
		long count=0;
		long[] array=new long[3];

		/*for(long i=n;i<25;i++) {
			buff+=" Eve";
		}*/
		Arrays.sort(array);
		int buff = Integer.parseInt(s.substring(0,4));
		int buff1 = Integer.parseInt(s.substring(5,7));
		if(buff>2019||buff1>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		//System.out.println(buff+" "+buff1);
		//System.out.println(Math.abs(array[2]-array[1])+Math.abs(array[1]-array[0]));
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		//String t = sc.next();
		//String g = sc.next();
		//long n = sc.nextLong();
		//long m = sc.nextLong();
		//long k = sc.nextLong();
		//long l = sc.nextLong();
		//String buff="Christmas";
		long count=0;
		long[] array=new long[3];

		/*for(long i=n;i<25;i++) {
			buff+=" Eve";
		}*/
		Arrays.sort(array);
		int buff = Integer.parseInt(s.substring(0,4));
		int buff1 = Integer.parseInt(s.substring(5,7));
		if(buff>2019||buff1>4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}
		//System.out.println(buff+" "+buff1);
		//System.out.println(Math.abs(array[2]-array[1])+Math.abs(array[1]-array[0]));
	}
}


