import java.util.Scanner;

public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int date = Integer.parseInt(s[2]);

        String result = "TBD";
        if (year <= 2019 && month <= 4 && date <= 30) {
            result = "Heisei";
        }

        System.out.println(result);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int date = Integer.parseInt(s[2]);

        String result = "TBD";
        if (year <= 2019 && month <= 4 && date <= 30) {
            result = "Heisei";
        }

        System.out.println(result);
    }
} Main public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int date = Integer.parseInt(s[2]);

        String result = "TBD";
        if (year <= 2019 && month <= 4 && date <= 30) {
            result = "Heisei";
        }

        System.out.println(result);
    } main {

        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int date = Integer.parseInt(s[2]);

        String result = "TBD";
        if (year <= 2019 && month <= 4 && date <= 30) {
            result = "Heisei";
        }

        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] s = sc.next().split("/"); s sc.next().split("/") sc.next().split sc.next() sc.next sc "/" int year = Integer.parseInt(s[0]); year Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int month = Integer.parseInt(s[1]); month Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int date = Integer.parseInt(s[2]); date Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 String result = "TBD"; result "TBD" if (year <= 2019 && month <= 4 && date <= 30) {
            result = "Heisei";
        } year <= 2019 && month <= 4 && date <= 30 year <= 2019 && month <= 4 && date <= 30 year <= 2019 year 2019 month <= 4 month 4 date <= 30 date 30 {
            result = "Heisei";
        } result = "Heisei" result "Heisei" System.out.println(result) System.out.println System.out System System.out result String args[] args public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int date = Integer.parseInt(s[2]);

        String result = "TBD";
        if (year <= 2019 && month <= 4 && date <= 30) {
            result = "Heisei";
        }

        System.out.println(result);
    }
} public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int date = Integer.parseInt(s[2]);

        String result = "TBD";
        if (year <= 2019 && month <= 4 && date <= 30) {
            result = "Heisei";
        }

        System.out.println(result);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String[] s = sc.next().split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int date = Integer.parseInt(s[2]);

        String result = "TBD";
        if (year <= 2019 && month <= 4 && date <= 30) {
            result = "Heisei";
        }

        System.out.println(result);
    }
}