import java.util.*;

public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        int day = Integer.parseInt(s.substring(8,10));
        System.out.println((month<=4&&day<=30)?"Heisei":"TBD");;

    }
} import java.util.*; util.* java public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        int day = Integer.parseInt(s.substring(8,10));
        System.out.println((month<=4&&day<=30)?"Heisei":"TBD");;

    }
} Main static final int MOD = 1000000007; MOD 1000000007 public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        int day = Integer.parseInt(s.substring(8,10));
        System.out.println((month<=4&&day<=30)?"Heisei":"TBD");;

    } main {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        int day = Integer.parseInt(s.substring(8,10));
        System.out.println((month<=4&&day<=30)?"Heisei":"TBD");;

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int month = Integer.parseInt(s.substring(5,7)); month Integer.parseInt(s.substring(5,7)) Integer.parseInt Integer s.substring(5,7) s.substring s 5 7 int day = Integer.parseInt(s.substring(8,10)); day Integer.parseInt(s.substring(8,10)) Integer.parseInt Integer s.substring(8,10) s.substring s 8 10 System.out.println((month<=4&&day<=30)?"Heisei":"TBD") System.out.println System.out System System.out (month<=4&&day<=30)?"Heisei":"TBD" (month<=4&&day<=30) month<=4 month 4 day<=30 day 30 "Heisei" "TBD" String[] args args public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        int day = Integer.parseInt(s.substring(8,10));
        System.out.println((month<=4&&day<=30)?"Heisei":"TBD");;

    }
} public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        int day = Integer.parseInt(s.substring(8,10));
        System.out.println((month<=4&&day<=30)?"Heisei":"TBD");;

    }
} Main
import java.util.*;

public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        int day = Integer.parseInt(s.substring(8,10));
        System.out.println((month<=4&&day<=30)?"Heisei":"TBD");;

    }
}
