import java.io.BufferedReader;
        import java.io.InputStreamReader;
        import java.util.Scanner;

public class Main {
    public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
     /*   if(str.equals("2019/04/30"))
            System.out.println("Heisei");
        else
            System.out.println("TBD");*/
        int y = 2019;
        int m = 4;
        int d = 30;
        String words[]=str.split("/");
        int year  = Integer.valueOf(words[0]);
        int month = Integer.valueOf(words[1]);
        int day   = Integer.valueOf(words[2]);

            if(year<=y && month<=m && day <=d)
                System.out.println("Heisei");
            else
                System.out.println("TBD");

    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
     /*   if(str.equals("2019/04/30"))
            System.out.println("Heisei");
        else
            System.out.println("TBD");*/
        int y = 2019;
        int m = 4;
        int d = 30;
        String words[]=str.split("/");
        int year  = Integer.valueOf(words[0]);
        int month = Integer.valueOf(words[1]);
        int day   = Integer.valueOf(words[2]);

            if(year<=y && month<=m && day <=d)
                System.out.println("Heisei");
            else
                System.out.println("TBD");

    }
} Main public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
     /*   if(str.equals("2019/04/30"))
            System.out.println("Heisei");
        else
            System.out.println("TBD");*/
        int y = 2019;
        int m = 4;
        int d = 30;
        String words[]=str.split("/");
        int year  = Integer.valueOf(words[0]);
        int month = Integer.valueOf(words[1]);
        int day   = Integer.valueOf(words[2]);

            if(year<=y && month<=m && day <=d)
                System.out.println("Heisei");
            else
                System.out.println("TBD");

    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
     /*   if(str.equals("2019/04/30"))
            System.out.println("Heisei");
        else
            System.out.println("TBD");*/
        int y = 2019;
        int m = 4;
        int d = 30;
        String words[]=str.split("/");
        int year  = Integer.valueOf(words[0]);
        int month = Integer.valueOf(words[1]);
        int day   = Integer.valueOf(words[2]);

            if(year<=y && month<=m && day <=d)
                System.out.println("Heisei");
            else
                System.out.println("TBD");

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int y = 2019; y 2019 int m = 4; m 4 int d = 30; d 30 String words[]=str.split("/"); words str.split("/") str.split str "/" int year  = Integer.valueOf(words[0]); year Integer.valueOf(words[0]) Integer.valueOf Integer words[0] words 0 int month = Integer.valueOf(words[1]); month Integer.valueOf(words[1]) Integer.valueOf Integer words[1] words 1 int day   = Integer.valueOf(words[2]); day Integer.valueOf(words[2]) Integer.valueOf Integer words[2] words 2 if(year<=y && month<=m && day <=d)
                System.out.println("Heisei");
            else
                System.out.println("TBD"); year<=y && month<=m && day <=d year<=y && month<=m && day <=d year<=y year y month<=m month m day <=d day d System.out.println("Heisei") System.out.println System.out System System.out "Heisei" 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)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
     /*   if(str.equals("2019/04/30"))
            System.out.println("Heisei");
        else
            System.out.println("TBD");*/
        int y = 2019;
        int m = 4;
        int d = 30;
        String words[]=str.split("/");
        int year  = Integer.valueOf(words[0]);
        int month = Integer.valueOf(words[1]);
        int day   = Integer.valueOf(words[2]);

            if(year<=y && month<=m && day <=d)
                System.out.println("Heisei");
            else
                System.out.println("TBD");

    }
} public class Main {
    public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
     /*   if(str.equals("2019/04/30"))
            System.out.println("Heisei");
        else
            System.out.println("TBD");*/
        int y = 2019;
        int m = 4;
        int d = 30;
        String words[]=str.split("/");
        int year  = Integer.valueOf(words[0]);
        int month = Integer.valueOf(words[1]);
        int day   = Integer.valueOf(words[2]);

            if(year<=y && month<=m && day <=d)
                System.out.println("Heisei");
            else
                System.out.println("TBD");

    }
} Main
import java.io.BufferedReader;
        import java.io.InputStreamReader;
        import java.util.Scanner;

public class Main {
    public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
     /*   if(str.equals("2019/04/30"))
            System.out.println("Heisei");
        else
            System.out.println("TBD");*/
        int y = 2019;
        int m = 4;
        int d = 30;
        String words[]=str.split("/");
        int year  = Integer.valueOf(words[0]);
        int month = Integer.valueOf(words[1]);
        int day   = Integer.valueOf(words[2]);

            if(year<=y && month<=m && day <=d)
                System.out.println("Heisei");
            else
                System.out.println("TBD");

    }
}
