import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().split("/", 0);;
		System.out.println(Integer.parseInt(a[1])*100+Integer.parseInt(a[2])<=430?"Heisei":"TBD");
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().split("/", 0);;
		System.out.println(Integer.parseInt(a[1])*100+Integer.parseInt(a[2])<=430?"Heisei":"TBD");
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().split("/", 0);;
		System.out.println(Integer.parseInt(a[1])*100+Integer.parseInt(a[2])<=430?"Heisei":"TBD");
	} main {
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().split("/", 0);;
		System.out.println(Integer.parseInt(a[1])*100+Integer.parseInt(a[2])<=430?"Heisei":"TBD");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] a = sc.next().split("/", 0); a sc.next().split("/", 0) sc.next().split sc.next() sc.next sc "/" 0 System.out.println(Integer.parseInt(a[1])*100+Integer.parseInt(a[2])<=430?"Heisei":"TBD") System.out.println System.out System System.out Integer.parseInt(a[1])*100+Integer.parseInt(a[2])<=430?"Heisei":"TBD" Integer.parseInt(a[1])*100+Integer.parseInt(a[2])<=430 Integer.parseInt(a[1])*100+Integer.parseInt(a[2]) Integer.parseInt(a[1])*100 Integer.parseInt(a[1]) Integer.parseInt Integer a[1] a 1 100 Integer.parseInt(a[2]) Integer.parseInt Integer a[2] a 2 430 "Heisei" "TBD" String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().split("/", 0);;
		System.out.println(Integer.parseInt(a[1])*100+Integer.parseInt(a[2])<=430?"Heisei":"TBD");
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().split("/", 0);;
		System.out.println(Integer.parseInt(a[1])*100+Integer.parseInt(a[2])<=430?"Heisei":"TBD");
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().split("/", 0);;
		System.out.println(Integer.parseInt(a[1])*100+Integer.parseInt(a[2])<=430?"Heisei":"TBD");
	}
}