import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();

        sc.close();

        int date = Integer.parseInt(str.replace("/", ""));

        //        Date in = DateFormat.getDateInstance().parse(str);
        //        Date date = DateFormat.getDateInstance().parse("2019/04/30");

        if (date <= 20190430) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();

        sc.close();

        int date = Integer.parseInt(str.replace("/", ""));

        //        Date in = DateFormat.getDateInstance().parse(str);
        //        Date date = DateFormat.getDateInstance().parse("2019/04/30");

        if (date <= 20190430) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();

        sc.close();

        int date = Integer.parseInt(str.replace("/", ""));

        //        Date in = DateFormat.getDateInstance().parse(str);
        //        Date date = DateFormat.getDateInstance().parse("2019/04/30");

        if (date <= 20190430) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } main {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();

        sc.close();

        int date = Integer.parseInt(str.replace("/", ""));

        //        Date in = DateFormat.getDateInstance().parse(str);
        //        Date date = DateFormat.getDateInstance().parse("2019/04/30");

        if (date <= 20190430) {
            System.out.println("Heisei");
        } 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 sc.close() sc.close sc int date = Integer.parseInt(str.replace("/", "")); date Integer.parseInt(str.replace("/", "")) Integer.parseInt Integer str.replace("/", "") str.replace str "/" "" if (date <= 20190430) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } date <= 20190430 date 20190430 {
            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) throws Exception {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();

        sc.close();

        int date = Integer.parseInt(str.replace("/", ""));

        //        Date in = DateFormat.getDateInstance().parse(str);
        //        Date date = DateFormat.getDateInstance().parse("2019/04/30");

        if (date <= 20190430) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();

        sc.close();

        int date = Integer.parseInt(str.replace("/", ""));

        //        Date in = DateFormat.getDateInstance().parse(str);
        //        Date date = DateFormat.getDateInstance().parse("2019/04/30");

        if (date <= 20190430) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();

        sc.close();

        int date = Integer.parseInt(str.replace("/", ""));

        //        Date in = DateFormat.getDateInstance().parse(str);
        //        Date date = DateFormat.getDateInstance().parse("2019/04/30");

        if (date <= 20190430) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
}
