import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String[] date = sc.next().split("/");
		int[] a=new int[3];
		int i=0;
		String ans="TBD";
		for(String str : date) {
			a[i]=Integer.valueOf(str);
			i++;
		}

		if(a[1]<4 || (a[1]==4 && a[2]<=30) ) {
			ans="Heisei";
		}
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String[] date = sc.next().split("/");
		int[] a=new int[3];
		int i=0;
		String ans="TBD";
		for(String str : date) {
			a[i]=Integer.valueOf(str);
			i++;
		}

		if(a[1]<4 || (a[1]==4 && a[2]<=30) ) {
			ans="Heisei";
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String[] date = sc.next().split("/");
		int[] a=new int[3];
		int i=0;
		String ans="TBD";
		for(String str : date) {
			a[i]=Integer.valueOf(str);
			i++;
		}

		if(a[1]<4 || (a[1]==4 && a[2]<=30) ) {
			ans="Heisei";
		}
		System.out.println(ans);
	} main {
		Scanner sc=new Scanner(System.in);
		String[] date = sc.next().split("/");
		int[] a=new int[3];
		int i=0;
		String ans="TBD";
		for(String str : date) {
			a[i]=Integer.valueOf(str);
			i++;
		}

		if(a[1]<4 || (a[1]==4 && a[2]<=30) ) {
			ans="Heisei";
		}
		System.out.println(ans);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String[] date = sc.next().split("/"); date sc.next().split("/") sc.next().split sc.next() sc.next sc "/" int[] a=new int[3]; a new int[3] 3 int i=0; i 0 String ans="TBD"; ans "TBD" for(String str : date) {
			a[i]=Integer.valueOf(str);
			i++;
		} String str date {
			a[i]=Integer.valueOf(str);
			i++;
		} {
			a[i]=Integer.valueOf(str);
			i++;
		} a[i]=Integer.valueOf(str) a[i] a i Integer.valueOf(str) Integer.valueOf Integer str i++ i if(a[1]<4 || (a[1]==4 && a[2]<=30) ) {
			ans="Heisei";
		} a[1]<4 || (a[1]==4 && a[2]<=30) a[1]<4 a[1] a 1 4 (a[1]==4 && a[2]<=30) a[1]==4 a[1] a 1 4 a[2]<=30 a[2] a 2 30 {
			ans="Heisei";
		} ans="Heisei" ans "Heisei" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String[] date = sc.next().split("/");
		int[] a=new int[3];
		int i=0;
		String ans="TBD";
		for(String str : date) {
			a[i]=Integer.valueOf(str);
			i++;
		}

		if(a[1]<4 || (a[1]==4 && a[2]<=30) ) {
			ans="Heisei";
		}
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String[] date = sc.next().split("/");
		int[] a=new int[3];
		int i=0;
		String ans="TBD";
		for(String str : date) {
			a[i]=Integer.valueOf(str);
			i++;
		}

		if(a[1]<4 || (a[1]==4 && a[2]<=30) ) {
			ans="Heisei";
		}
		System.out.println(ans);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		String[] date = sc.next().split("/");
		int[] a=new int[3];
		int i=0;
		String ans="TBD";
		for(String str : date) {
			a[i]=Integer.valueOf(str);
			i++;
		}

		if(a[1]<4 || (a[1]==4 && a[2]<=30) ) {
			ans="Heisei";
		}
		System.out.println(ans);
	}
}