import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String num[] = str.split("/");
        int year = Integer.parseInt(num[0]);
        int month = Integer.parseInt(num[1]);
        int day = Integer.parseInt(num[2]);
        if(year > 2019){
            System.out.println("TBD");
            return;
        }
        if(year == 2019 && month > 4){
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String num[] = str.split("/");
        int year = Integer.parseInt(num[0]);
        int month = Integer.parseInt(num[1]);
        int day = Integer.parseInt(num[2]);
        if(year > 2019){
            System.out.println("TBD");
            return;
        }
        if(year == 2019 && month > 4){
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");

    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String num[] = str.split("/");
        int year = Integer.parseInt(num[0]);
        int month = Integer.parseInt(num[1]);
        int day = Integer.parseInt(num[2]);
        if(year > 2019){
            System.out.println("TBD");
            return;
        }
        if(year == 2019 && month > 4){
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");

    } main {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String num[] = str.split("/");
        int year = Integer.parseInt(num[0]);
        int month = Integer.parseInt(num[1]);
        int day = Integer.parseInt(num[2]);
        if(year > 2019){
            System.out.println("TBD");
            return;
        }
        if(year == 2019 && month > 4){
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc String num[] = str.split("/"); num str.split("/") str.split str "/" int year = Integer.parseInt(num[0]); year Integer.parseInt(num[0]) Integer.parseInt Integer num[0] num 0 int month = Integer.parseInt(num[1]); month Integer.parseInt(num[1]) Integer.parseInt Integer num[1] num 1 int day = Integer.parseInt(num[2]); day Integer.parseInt(num[2]) Integer.parseInt Integer num[2] num 2 if(year > 2019){
            System.out.println("TBD");
            return;
        } year > 2019 year 2019 {
            System.out.println("TBD");
            return;
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" return; if(year == 2019 && month > 4){
            System.out.println("TBD");
            return;
        } year == 2019 && month > 4 year == 2019 year 2019 month > 4 month 4 {
            System.out.println("TBD");
            return;
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" return; System.out.println("Heisei") System.out.println System.out System System.out "Heisei" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String num[] = str.split("/");
        int year = Integer.parseInt(num[0]);
        int month = Integer.parseInt(num[1]);
        int day = Integer.parseInt(num[2]);
        if(year > 2019){
            System.out.println("TBD");
            return;
        }
        if(year == 2019 && month > 4){
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");

    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String num[] = str.split("/");
        int year = Integer.parseInt(num[0]);
        int month = Integer.parseInt(num[1]);
        int day = Integer.parseInt(num[2]);
        if(year > 2019){
            System.out.println("TBD");
            return;
        }
        if(year == 2019 && month > 4){
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");

    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String num[] = str.split("/");
        int year = Integer.parseInt(num[0]);
        int month = Integer.parseInt(num[1]);
        int day = Integer.parseInt(num[2]);
        if(year > 2019){
            System.out.println("TBD");
            return;
        }
        if(year == 2019 && month > 4){
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");

    }
}