import java.util.Scanner;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println( s.compareTo("2019/04/30")<=0?"Heisei":"TBD" );
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println( s.compareTo("2019/04/30")<=0?"Heisei":"TBD" );
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println( s.compareTo("2019/04/30")<=0?"Heisei":"TBD" );
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println( s.compareTo("2019/04/30")<=0?"Heisei":"TBD" );
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc System.out.println( s.compareTo("2019/04/30")<=0?"Heisei":"TBD" ) System.out.println System.out System System.out s.compareTo("2019/04/30")<=0?"Heisei":"TBD" s.compareTo("2019/04/30")<=0 s.compareTo("2019/04/30") s.compareTo s "2019/04/30" 0 "Heisei" "TBD" String args[] args
import java.util.Scanner;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println( s.compareTo("2019/04/30")<=0?"Heisei":"TBD" );
    }
}
