import java.util.*;
import java.text.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if (S.compareTo("2019/04/30") > 0) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
        try {
            Date date1 = DateFormat.getDateInstance().parse(S);
        }
        catch (ParseException e) {
            e.printStackTrace();
        }
    }
} import java.util.*; util.* java import java.text.*; text.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if (S.compareTo("2019/04/30") > 0) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
        try {
            Date date1 = DateFormat.getDateInstance().parse(S);
        }
        catch (ParseException e) {
            e.printStackTrace();
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if (S.compareTo("2019/04/30") > 0) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
        try {
            Date date1 = DateFormat.getDateInstance().parse(S);
        }
        catch (ParseException e) {
            e.printStackTrace();
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if (S.compareTo("2019/04/30") > 0) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
        try {
            Date date1 = DateFormat.getDateInstance().parse(S);
        }
        catch (ParseException e) {
            e.printStackTrace();
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc if (S.compareTo("2019/04/30") > 0) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        } S.compareTo("2019/04/30") > 0 S.compareTo("2019/04/30") S.compareTo S "2019/04/30" 0 {
            System.out.println("TBD");
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" try {
            Date date1 = DateFormat.getDateInstance().parse(S);
        }
        catch (ParseException e) {
            e.printStackTrace();
        } catch (ParseException e) {
            e.printStackTrace();
        } ParseException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            Date date1 = DateFormat.getDateInstance().parse(S);
        } Date date1 = DateFormat.getDateInstance().parse(S); date1 DateFormat.getDateInstance().parse(S) DateFormat.getDateInstance().parse DateFormat.getDateInstance() DateFormat.getDateInstance DateFormat S String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if (S.compareTo("2019/04/30") > 0) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
        try {
            Date date1 = DateFormat.getDateInstance().parse(S);
        }
        catch (ParseException e) {
            e.printStackTrace();
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if (S.compareTo("2019/04/30") > 0) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
        try {
            Date date1 = DateFormat.getDateInstance().parse(S);
        }
        catch (ParseException e) {
            e.printStackTrace();
        }
    }
} Main
import java.util.*;
import java.text.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if (S.compareTo("2019/04/30") > 0) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
        try {
            Date date1 = DateFormat.getDateInstance().parse(S);
        }
        catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
