import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);

		String str=in.next();
		String[] data=str.split("/");
		int[] idata=new int[3];

		for(int i=0;i<data.length;i++)idata[i]=Integer.parseInt(data[i]);
		
		if(idata[0] > 2019 ||(idata[0]>=2019 && idata[1]>4))System.out.println("TBD");
		else System.out.println("Heisei");
	}

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

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);

		String str=in.next();
		String[] data=str.split("/");
		int[] idata=new int[3];

		for(int i=0;i<data.length;i++)idata[i]=Integer.parseInt(data[i]);
		
		if(idata[0] > 2019 ||(idata[0]>=2019 && idata[1]>4))System.out.println("TBD");
		else System.out.println("Heisei");
	}

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

		String str=in.next();
		String[] data=str.split("/");
		int[] idata=new int[3];

		for(int i=0;i<data.length;i++)idata[i]=Integer.parseInt(data[i]);
		
		if(idata[0] > 2019 ||(idata[0]>=2019 && idata[1]>4))System.out.println("TBD");
		else System.out.println("Heisei");
	} main {
		Scanner in=new Scanner(System.in);

		String str=in.next();
		String[] data=str.split("/");
		int[] idata=new int[3];

		for(int i=0;i<data.length;i++)idata[i]=Integer.parseInt(data[i]);
		
		if(idata[0] > 2019 ||(idata[0]>=2019 && idata[1]>4))System.out.println("TBD");
		else System.out.println("Heisei");
	} Scanner in=new Scanner(System.in); in new Scanner(System.in) String str=in.next(); str in.next() in.next in String[] data=str.split("/"); data str.split("/") str.split str "/" int[] idata=new int[3]; idata new int[3] 3 for(int i=0;i<data.length;i++)idata[i]=Integer.parseInt(data[i]); int i=0; int i=0; i 0 i<data.length i data.length data data.length i++ i++ i idata[i]=Integer.parseInt(data[i]); idata[i]=Integer.parseInt(data[i]) idata[i] idata i Integer.parseInt(data[i]) Integer.parseInt Integer data[i] data i if(idata[0] > 2019 ||(idata[0]>=2019 && idata[1]>4))System.out.println("TBD");
		else System.out.println("Heisei"); idata[0] > 2019 ||(idata[0]>=2019 && idata[1]>4) idata[0] > 2019 idata[0] idata 0 2019 (idata[0]>=2019 && idata[1]>4) idata[0]>=2019 idata[0] idata 0 2019 idata[1]>4 idata[1] idata 1 4 System.out.println("TBD") System.out.println System.out System System.out "TBD" 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 in=new Scanner(System.in);

		String str=in.next();
		String[] data=str.split("/");
		int[] idata=new int[3];

		for(int i=0;i<data.length;i++)idata[i]=Integer.parseInt(data[i]);
		
		if(idata[0] > 2019 ||(idata[0]>=2019 && idata[1]>4))System.out.println("TBD");
		else System.out.println("Heisei");
	}

} public class Main {

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);

		String str=in.next();
		String[] data=str.split("/");
		int[] idata=new int[3];

		for(int i=0;i<data.length;i++)idata[i]=Integer.parseInt(data[i]);
		
		if(idata[0] > 2019 ||(idata[0]>=2019 && idata[1]>4))System.out.println("TBD");
		else System.out.println("Heisei");
	}

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);

		String str=in.next();
		String[] data=str.split("/");
		int[] idata=new int[3];

		for(int i=0;i<data.length;i++)idata[i]=Integer.parseInt(data[i]);
		
		if(idata[0] > 2019 ||(idata[0]>=2019 && idata[1]>4))System.out.println("TBD");
		else System.out.println("Heisei");
	}

}
