import java.util.*;
import java.awt.*;
import java.awt.geom.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class Main {
    public static void main(String[] $) {
        Scanner sc = new Scanner(in);
        String s=sc.next();
        if(s.compareTo("2019/04/30")<=0){
            out.println("Heisei");
        }else {
            out.println("TBD");
        }
    }
} import java.util.*; util.* java import java.awt.*; awt.* java import java.awt.geom.*; geom.* java.awt import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main {
    public static void main(String[] $) {
        Scanner sc = new Scanner(in);
        String s=sc.next();
        if(s.compareTo("2019/04/30")<=0){
            out.println("Heisei");
        }else {
            out.println("TBD");
        }
    }
} Main public static void main(String[] $) {
        Scanner sc = new Scanner(in);
        String s=sc.next();
        if(s.compareTo("2019/04/30")<=0){
            out.println("Heisei");
        }else {
            out.println("TBD");
        }
    } main {
        Scanner sc = new Scanner(in);
        String s=sc.next();
        if(s.compareTo("2019/04/30")<=0){
            out.println("Heisei");
        }else {
            out.println("TBD");
        }
    } Scanner sc = new Scanner(in); sc new Scanner(in) String s=sc.next(); s sc.next() sc.next sc if(s.compareTo("2019/04/30")<=0){
            out.println("Heisei");
        }else {
            out.println("TBD");
        } s.compareTo("2019/04/30")<=0 s.compareTo("2019/04/30") s.compareTo s "2019/04/30" 0 {
            out.println("Heisei");
        } out.println("Heisei") out.println out "Heisei" {
            out.println("TBD");
        } out.println("TBD") out.println out "TBD" String[] $ $ public class Main {
    public static void main(String[] $) {
        Scanner sc = new Scanner(in);
        String s=sc.next();
        if(s.compareTo("2019/04/30")<=0){
            out.println("Heisei");
        }else {
            out.println("TBD");
        }
    }
} public class Main {
    public static void main(String[] $) {
        Scanner sc = new Scanner(in);
        String s=sc.next();
        if(s.compareTo("2019/04/30")<=0){
            out.println("Heisei");
        }else {
            out.println("TBD");
        }
    }
} Main
import java.util.*;
import java.awt.*;
import java.awt.geom.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class Main {
    public static void main(String[] $) {
        Scanner sc = new Scanner(in);
        String s=sc.next();
        if(s.compareTo("2019/04/30")<=0){
            out.println("Heisei");
        }else {
            out.println("TBD");
        }
    }
}