import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        String[] ymd = s.split("/");
        int month = Integer.parseInt(ymd[1]);
        int day = Integer.parseInt(ymd[2]);
        if (month < 4) {
            System.out.println("Heisei");
        } else if (month == 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        String[] ymd = s.split("/");
        int month = Integer.parseInt(ymd[1]);
        int day = Integer.parseInt(ymd[2]);
        if (month < 4) {
            System.out.println("Heisei");
        } else if (month == 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        String[] ymd = s.split("/");
        int month = Integer.parseInt(ymd[1]);
        int day = Integer.parseInt(ymd[2]);
        if (month < 4) {
            System.out.println("Heisei");
        } else if (month == 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } main {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        String[] ymd = s.split("/");
        int month = Integer.parseInt(ymd[1]);
        int day = Integer.parseInt(ymd[2]);
        if (month < 4) {
            System.out.println("Heisei");
        } else if (month == 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan String[] ymd = s.split("/"); ymd s.split("/") s.split s "/" int month = Integer.parseInt(ymd[1]); month Integer.parseInt(ymd[1]) Integer.parseInt Integer ymd[1] ymd 1 int day = Integer.parseInt(ymd[2]); day Integer.parseInt(ymd[2]) Integer.parseInt Integer ymd[2] ymd 2 if (month < 4) {
            System.out.println("Heisei");
        } else if (month == 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } month < 4 month 4 {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if (month == 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } month == 4 && day <= 30 month == 4 month 4 day <= 30 day 30 {
            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) {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        String[] ymd = s.split("/");
        int month = Integer.parseInt(ymd[1]);
        int day = Integer.parseInt(ymd[2]);
        if (month < 4) {
            System.out.println("Heisei");
        } else if (month == 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        String[] ymd = s.split("/");
        int month = Integer.parseInt(ymd[1]);
        int day = Integer.parseInt(ymd[2]);
        if (month < 4) {
            System.out.println("Heisei");
        } else if (month == 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        String[] ymd = s.split("/");
        int month = Integer.parseInt(ymd[1]);
        int day = Integer.parseInt(ymd[2]);
        if (month < 4) {
            System.out.println("Heisei");
        } else if (month == 4 && day <= 30) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
}
