    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Scanner;
     
    public class Main {
        public static void main(String[] args) throws Exception {    
          
        Date boundaryDate = ConvertDateFromString("2019/04/30");
        
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();
        
        int result = ConvertDateFromString(input).compareTo(boundaryDate);
     
        if ((result == -1) || (result == 0)) {
          System.out.println("Heisei");
        } else {
          System.out.println("TBD");
        }
     
        scanner.close();
     
    }
     
      public static Date ConvertDateFromString(String dateStr) throws Exception {
     
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
     
            // Date型変換
    	Date formatDate = sdf.parse(dateStr);
            return formatDate;
        }
    } import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.Date; Date java.util import java.util.Scanner; Scanner java.util public class Main {
        public static void main(String[] args) throws Exception {    
          
        Date boundaryDate = ConvertDateFromString("2019/04/30");
        
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();
        
        int result = ConvertDateFromString(input).compareTo(boundaryDate);
     
        if ((result == -1) || (result == 0)) {
          System.out.println("Heisei");
        } else {
          System.out.println("TBD");
        }
     
        scanner.close();
     
    }
     
      public static Date ConvertDateFromString(String dateStr) throws Exception {
     
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
     
            // Date型変換
    	Date formatDate = sdf.parse(dateStr);
            return formatDate;
        }
    } Main public static void main(String[] args) throws Exception {    
          
        Date boundaryDate = ConvertDateFromString("2019/04/30");
        
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();
        
        int result = ConvertDateFromString(input).compareTo(boundaryDate);
     
        if ((result == -1) || (result == 0)) {
          System.out.println("Heisei");
        } else {
          System.out.println("TBD");
        }
     
        scanner.close();
     
    } main {    
          
        Date boundaryDate = ConvertDateFromString("2019/04/30");
        
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();
        
        int result = ConvertDateFromString(input).compareTo(boundaryDate);
     
        if ((result == -1) || (result == 0)) {
          System.out.println("Heisei");
        } else {
          System.out.println("TBD");
        }
     
        scanner.close();
     
    } Date boundaryDate = ConvertDateFromString("2019/04/30"); boundaryDate ConvertDateFromString("2019/04/30") ConvertDateFromString "2019/04/30" Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String input = scanner.nextLine(); input scanner.nextLine() scanner.nextLine scanner int result = ConvertDateFromString(input).compareTo(boundaryDate); result ConvertDateFromString(input).compareTo(boundaryDate) ConvertDateFromString(input).compareTo ConvertDateFromString(input) ConvertDateFromString input boundaryDate if ((result == -1) || (result == 0)) {
          System.out.println("Heisei");
        } else {
          System.out.println("TBD");
        } (result == -1) || (result == 0) (result == -1) result -1 1 (result == 0) result 0 {
          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" scanner.close() scanner.close scanner String[] args args public static Date ConvertDateFromString(String dateStr) throws Exception {
     
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
     
            // Date型変換
    	Date formatDate = sdf.parse(dateStr);
            return formatDate;
        } ConvertDateFromString {
     
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
     
            // Date型変換
    	Date formatDate = sdf.parse(dateStr);
            return formatDate;
        } SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); sdf new SimpleDateFormat("yyyy/MM/dd") Date formatDate = sdf.parse(dateStr); formatDate sdf.parse(dateStr) sdf.parse sdf dateStr return formatDate; formatDate String dateStr dateStr public class Main {
        public static void main(String[] args) throws Exception {    
          
        Date boundaryDate = ConvertDateFromString("2019/04/30");
        
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();
        
        int result = ConvertDateFromString(input).compareTo(boundaryDate);
     
        if ((result == -1) || (result == 0)) {
          System.out.println("Heisei");
        } else {
          System.out.println("TBD");
        }
     
        scanner.close();
     
    }
     
      public static Date ConvertDateFromString(String dateStr) throws Exception {
     
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
     
            // Date型変換
    	Date formatDate = sdf.parse(dateStr);
            return formatDate;
        }
    } public class Main {
        public static void main(String[] args) throws Exception {    
          
        Date boundaryDate = ConvertDateFromString("2019/04/30");
        
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();
        
        int result = ConvertDateFromString(input).compareTo(boundaryDate);
     
        if ((result == -1) || (result == 0)) {
          System.out.println("Heisei");
        } else {
          System.out.println("TBD");
        }
     
        scanner.close();
     
    }
     
      public static Date ConvertDateFromString(String dateStr) throws Exception {
     
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
     
            // Date型変換
    	Date formatDate = sdf.parse(dateStr);
            return formatDate;
        }
    } Main
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Scanner;
     
    public class Main {
        public static void main(String[] args) throws Exception {    
          
        Date boundaryDate = ConvertDateFromString("2019/04/30");
        
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();
        
        int result = ConvertDateFromString(input).compareTo(boundaryDate);
     
        if ((result == -1) || (result == 0)) {
          System.out.println("Heisei");
        } else {
          System.out.println("TBD");
        }
     
        scanner.close();
     
    }
     
      public static Date ConvertDateFromString(String dateStr) throws Exception {
     
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
     
            // Date型変換
    	Date formatDate = sdf.parse(dateStr);
            return formatDate;
        }
    }