import java.util.*;

public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]ss = S.toCharArray();

    if(ss[5]==('0') && ss[6]==('1')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('2')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('3')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('4')){
        System.out.println("Heisei");
    }else{
        System.out.println("TBD");
    }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]ss = S.toCharArray();

    if(ss[5]==('0') && ss[6]==('1')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('2')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('3')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('4')){
        System.out.println("Heisei");
    }else{
        System.out.println("TBD");
    }
    }
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]ss = S.toCharArray();

    if(ss[5]==('0') && ss[6]==('1')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('2')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('3')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('4')){
        System.out.println("Heisei");
    }else{
        System.out.println("TBD");
    }
    } main {
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]ss = S.toCharArray();

    if(ss[5]==('0') && ss[6]==('1')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('2')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('3')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('4')){
        System.out.println("Heisei");
    }else{
        System.out.println("TBD");
    }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc char[]ss = S.toCharArray(); ss S.toCharArray() S.toCharArray S if(ss[5]==('0') && ss[6]==('1')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('2')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('3')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('4')){
        System.out.println("Heisei");
    }else{
        System.out.println("TBD");
    } ss[5]==('0') && ss[6]==('1') ss[5]==('0') ss[5] ss 5 ('0') ss[6]==('1') ss[6] ss 6 ('1') {
        System.out.println("Heisei");
    } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(ss[5]==('0') && ss[6]==('2')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('3')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('4')){
        System.out.println("Heisei");
    }else{
        System.out.println("TBD");
    } ss[5]==('0') && ss[6]==('2') ss[5]==('0') ss[5] ss 5 ('0') ss[6]==('2') ss[6] ss 6 ('2') {
        System.out.println("Heisei");
    } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(ss[5]==('0') && ss[6]==('3')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('4')){
        System.out.println("Heisei");
    }else{
        System.out.println("TBD");
    } ss[5]==('0') && ss[6]==('3') ss[5]==('0') ss[5] ss 5 ('0') ss[6]==('3') ss[6] ss 6 ('3') {
        System.out.println("Heisei");
    } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(ss[5]==('0') && ss[6]==('4')){
        System.out.println("Heisei");
    }else{
        System.out.println("TBD");
    } ss[5]==('0') && ss[6]==('4') ss[5]==('0') ss[5] ss 5 ('0') ss[6]==('4') ss[6] ss 6 ('4') {
        System.out.println("Heisei");
    } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
        System.out.println("TBD");
    } System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]ss = S.toCharArray();

    if(ss[5]==('0') && ss[6]==('1')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('2')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('3')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('4')){
        System.out.println("Heisei");
    }else{
        System.out.println("TBD");
    }
    }
} public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]ss = S.toCharArray();

    if(ss[5]==('0') && ss[6]==('1')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('2')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('3')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('4')){
        System.out.println("Heisei");
    }else{
        System.out.println("TBD");
    }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char[]ss = S.toCharArray();

    if(ss[5]==('0') && ss[6]==('1')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('2')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('3')){
        System.out.println("Heisei");
    }else if(ss[5]==('0') && ss[6]==('4')){
        System.out.println("Heisei");
    }else{
        System.out.println("TBD");
    }
    }
}