import java.math.BigInteger;
import java.util.Scanner;

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

        String str = scanner.nextLine();

        String[] dateStrings = str.split("/");

        BigInteger tmp = new BigInteger(dateStrings[0] + dateStrings[1] + dateStrings[2]);

        BigInteger judgeDay = new BigInteger("20190430");

        if(0 <= judgeDay.compareTo(tmp)){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    }

} import java.math.BigInteger; BigInteger java.math import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String str = scanner.nextLine();

        String[] dateStrings = str.split("/");

        BigInteger tmp = new BigInteger(dateStrings[0] + dateStrings[1] + dateStrings[2]);

        BigInteger judgeDay = new BigInteger("20190430");

        if(0 <= judgeDay.compareTo(tmp)){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    }

} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String str = scanner.nextLine();

        String[] dateStrings = str.split("/");

        BigInteger tmp = new BigInteger(dateStrings[0] + dateStrings[1] + dateStrings[2]);

        BigInteger judgeDay = new BigInteger("20190430");

        if(0 <= judgeDay.compareTo(tmp)){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    } main {
        Scanner scanner = new Scanner(System.in);

        String str = scanner.nextLine();

        String[] dateStrings = str.split("/");

        BigInteger tmp = new BigInteger(dateStrings[0] + dateStrings[1] + dateStrings[2]);

        BigInteger judgeDay = new BigInteger("20190430");

        if(0 <= judgeDay.compareTo(tmp)){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String str = scanner.nextLine(); str scanner.nextLine() scanner.nextLine scanner String[] dateStrings = str.split("/"); dateStrings str.split("/") str.split str "/" BigInteger tmp = new BigInteger(dateStrings[0] + dateStrings[1] + dateStrings[2]); tmp new BigInteger(dateStrings[0] + dateStrings[1] + dateStrings[2]) BigInteger judgeDay = new BigInteger("20190430"); judgeDay new BigInteger("20190430") if(0 <= judgeDay.compareTo(tmp)){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        } 0 <= judgeDay.compareTo(tmp) 0 judgeDay.compareTo(tmp) judgeDay.compareTo judgeDay tmp {
            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 scanner = new Scanner(System.in);

        String str = scanner.nextLine();

        String[] dateStrings = str.split("/");

        BigInteger tmp = new BigInteger(dateStrings[0] + dateStrings[1] + dateStrings[2]);

        BigInteger judgeDay = new BigInteger("20190430");

        if(0 <= judgeDay.compareTo(tmp)){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    }

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

        String str = scanner.nextLine();

        String[] dateStrings = str.split("/");

        BigInteger tmp = new BigInteger(dateStrings[0] + dateStrings[1] + dateStrings[2]);

        BigInteger judgeDay = new BigInteger("20190430");

        if(0 <= judgeDay.compareTo(tmp)){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    }

} Main
import java.math.BigInteger;
import java.util.Scanner;

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

        String str = scanner.nextLine();

        String[] dateStrings = str.split("/");

        BigInteger tmp = new BigInteger(dateStrings[0] + dateStrings[1] + dateStrings[2]);

        BigInteger judgeDay = new BigInteger("20190430");

        if(0 <= judgeDay.compareTo(tmp)){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
    }

}