import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] s = str.split("/", 0);
        if(s[0].compareTo("2019")<0 && s[0].length()<=4) {
            System.out.println("Heisei");
        }else if(s[0].compareTo("2019")==0) {
            if(s[1].compareTo("04")<=0 && s[1].charAt(0)=='0') {
                if(s[2].compareTo("30")> 0 && s[1].compareTo("04")==0) {
                    System.out.println("TBD");
                    return;
                }
                System.out.println("Heisei");
            }else {
                System.out.println("TBD");
            }
        }else {
            System.out.println("TBD");
        }
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] s = str.split("/", 0);
        if(s[0].compareTo("2019")<0 && s[0].length()<=4) {
            System.out.println("Heisei");
        }else if(s[0].compareTo("2019")==0) {
            if(s[1].compareTo("04")<=0 && s[1].charAt(0)=='0') {
                if(s[2].compareTo("30")> 0 && s[1].compareTo("04")==0) {
                    System.out.println("TBD");
                    return;
                }
                System.out.println("Heisei");
            }else {
                System.out.println("TBD");
            }
        }else {
            System.out.println("TBD");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] s = str.split("/", 0);
        if(s[0].compareTo("2019")<0 && s[0].length()<=4) {
            System.out.println("Heisei");
        }else if(s[0].compareTo("2019")==0) {
            if(s[1].compareTo("04")<=0 && s[1].charAt(0)=='0') {
                if(s[2].compareTo("30")> 0 && s[1].compareTo("04")==0) {
                    System.out.println("TBD");
                    return;
                }
                System.out.println("Heisei");
            }else {
                System.out.println("TBD");
            }
        }else {
            System.out.println("TBD");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] s = str.split("/", 0);
        if(s[0].compareTo("2019")<0 && s[0].length()<=4) {
            System.out.println("Heisei");
        }else if(s[0].compareTo("2019")==0) {
            if(s[1].compareTo("04")<=0 && s[1].charAt(0)=='0') {
                if(s[2].compareTo("30")> 0 && s[1].compareTo("04")==0) {
                    System.out.println("TBD");
                    return;
                }
                System.out.println("Heisei");
            }else {
                System.out.println("TBD");
            }
        }else {
            System.out.println("TBD");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc String[] s = str.split("/", 0); s str.split("/", 0) str.split str "/" 0 if(s[0].compareTo("2019")<0 && s[0].length()<=4) {
            System.out.println("Heisei");
        }else if(s[0].compareTo("2019")==0) {
            if(s[1].compareTo("04")<=0 && s[1].charAt(0)=='0') {
                if(s[2].compareTo("30")> 0 && s[1].compareTo("04")==0) {
                    System.out.println("TBD");
                    return;
                }
                System.out.println("Heisei");
            }else {
                System.out.println("TBD");
            }
        }else {
            System.out.println("TBD");
        } s[0].compareTo("2019")<0 && s[0].length()<=4 s[0].compareTo("2019")<0 s[0].compareTo("2019") s[0].compareTo s[0] s 0 "2019" 0 s[0].length()<=4 s[0].length() s[0].length s[0] s 0 4 {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(s[0].compareTo("2019")==0) {
            if(s[1].compareTo("04")<=0 && s[1].charAt(0)=='0') {
                if(s[2].compareTo("30")> 0 && s[1].compareTo("04")==0) {
                    System.out.println("TBD");
                    return;
                }
                System.out.println("Heisei");
            }else {
                System.out.println("TBD");
            }
        }else {
            System.out.println("TBD");
        } s[0].compareTo("2019")==0 s[0].compareTo("2019") s[0].compareTo s[0] s 0 "2019" 0 {
            if(s[1].compareTo("04")<=0 && s[1].charAt(0)=='0') {
                if(s[2].compareTo("30")> 0 && s[1].compareTo("04")==0) {
                    System.out.println("TBD");
                    return;
                }
                System.out.println("Heisei");
            }else {
                System.out.println("TBD");
            }
        } if(s[1].compareTo("04")<=0 && s[1].charAt(0)=='0') {
                if(s[2].compareTo("30")> 0 && s[1].compareTo("04")==0) {
                    System.out.println("TBD");
                    return;
                }
                System.out.println("Heisei");
            }else {
                System.out.println("TBD");
            } s[1].compareTo("04")<=0 && s[1].charAt(0)=='0' s[1].compareTo("04")<=0 s[1].compareTo("04") s[1].compareTo s[1] s 1 "04" 0 s[1].charAt(0)=='0' s[1].charAt(0) s[1].charAt s[1] s 1 0 '0' {
                if(s[2].compareTo("30")> 0 && s[1].compareTo("04")==0) {
                    System.out.println("TBD");
                    return;
                }
                System.out.println("Heisei");
            } if(s[2].compareTo("30")> 0 && s[1].compareTo("04")==0) {
                    System.out.println("TBD");
                    return;
                } s[2].compareTo("30")> 0 && s[1].compareTo("04")==0 s[2].compareTo("30")> 0 s[2].compareTo("30") s[2].compareTo s[2] s 2 "30" 0 s[1].compareTo("04")==0 s[1].compareTo("04") s[1].compareTo s[1] s 1 "04" 0 {
                    System.out.println("TBD");
                    return;
                } System.out.println("TBD") System.out.println System.out System System.out "TBD" return; 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" {
            System.out.println("TBD");
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] s = str.split("/", 0);
        if(s[0].compareTo("2019")<0 && s[0].length()<=4) {
            System.out.println("Heisei");
        }else if(s[0].compareTo("2019")==0) {
            if(s[1].compareTo("04")<=0 && s[1].charAt(0)=='0') {
                if(s[2].compareTo("30")> 0 && s[1].compareTo("04")==0) {
                    System.out.println("TBD");
                    return;
                }
                System.out.println("Heisei");
            }else {
                System.out.println("TBD");
            }
        }else {
            System.out.println("TBD");
        }
    }
}