import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
    	Scanner input = new Scanner(System.in);
      	String S = input.next();
      	String[] sDate = S.split("/");
      	int[] date = new int[3];
      	int i = 0;
        for ( String textValue : sDate ) {
          date[i] = Integer.parseInt( textValue ); 
          i++; 
        } 
      	String ans = "TBD";
      	if (date[0] < 2019) {
        	ans = "Heisei";
        } else if (date[0] == 2019) {
        	if (date[1] < 4) {
            	ans = "Heisei";
            } else if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            }
        }
      
      System.out.print(ans);

    }
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
    	Scanner input = new Scanner(System.in);
      	String S = input.next();
      	String[] sDate = S.split("/");
      	int[] date = new int[3];
      	int i = 0;
        for ( String textValue : sDate ) {
          date[i] = Integer.parseInt( textValue ); 
          i++; 
        } 
      	String ans = "TBD";
      	if (date[0] < 2019) {
        	ans = "Heisei";
        } else if (date[0] == 2019) {
        	if (date[1] < 4) {
            	ans = "Heisei";
            } else if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            }
        }
      
      System.out.print(ans);

    }
} Main public static void main(String[] args) {
    	Scanner input = new Scanner(System.in);
      	String S = input.next();
      	String[] sDate = S.split("/");
      	int[] date = new int[3];
      	int i = 0;
        for ( String textValue : sDate ) {
          date[i] = Integer.parseInt( textValue ); 
          i++; 
        } 
      	String ans = "TBD";
      	if (date[0] < 2019) {
        	ans = "Heisei";
        } else if (date[0] == 2019) {
        	if (date[1] < 4) {
            	ans = "Heisei";
            } else if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            }
        }
      
      System.out.print(ans);

    } main {
    	Scanner input = new Scanner(System.in);
      	String S = input.next();
      	String[] sDate = S.split("/");
      	int[] date = new int[3];
      	int i = 0;
        for ( String textValue : sDate ) {
          date[i] = Integer.parseInt( textValue ); 
          i++; 
        } 
      	String ans = "TBD";
      	if (date[0] < 2019) {
        	ans = "Heisei";
        } else if (date[0] == 2019) {
        	if (date[1] < 4) {
            	ans = "Heisei";
            } else if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            }
        }
      
      System.out.print(ans);

    } Scanner input = new Scanner(System.in); input new Scanner(System.in) String S = input.next(); S input.next() input.next input String[] sDate = S.split("/"); sDate S.split("/") S.split S "/" int[] date = new int[3]; date new int[3] 3 int i = 0; i 0 for ( String textValue : sDate ) {
          date[i] = Integer.parseInt( textValue ); 
          i++; 
        } String textValue sDate {
          date[i] = Integer.parseInt( textValue ); 
          i++; 
        } {
          date[i] = Integer.parseInt( textValue ); 
          i++; 
        } date[i] = Integer.parseInt( textValue ) date[i] date i Integer.parseInt( textValue ) Integer.parseInt Integer textValue i++ i String ans = "TBD"; ans "TBD" if (date[0] < 2019) {
        	ans = "Heisei";
        } else if (date[0] == 2019) {
        	if (date[1] < 4) {
            	ans = "Heisei";
            } else if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            }
        } date[0] < 2019 date[0] date 0 2019 {
        	ans = "Heisei";
        } ans = "Heisei" ans "Heisei" if (date[0] == 2019) {
        	if (date[1] < 4) {
            	ans = "Heisei";
            } else if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            }
        } date[0] == 2019 date[0] date 0 2019 {
        	if (date[1] < 4) {
            	ans = "Heisei";
            } else if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            }
        } if (date[1] < 4) {
            	ans = "Heisei";
            } else if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            } date[1] < 4 date[1] date 1 4 {
            	ans = "Heisei";
            } ans = "Heisei" ans "Heisei" if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            } date[1] == 4 && date[2] <= 30 date[1] == 4 date[1] date 1 4 date[2] <= 30 date[2] date 2 30 {
            	ans = "Heisei";
            } ans = "Heisei" ans "Heisei" System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
    	Scanner input = new Scanner(System.in);
      	String S = input.next();
      	String[] sDate = S.split("/");
      	int[] date = new int[3];
      	int i = 0;
        for ( String textValue : sDate ) {
          date[i] = Integer.parseInt( textValue ); 
          i++; 
        } 
      	String ans = "TBD";
      	if (date[0] < 2019) {
        	ans = "Heisei";
        } else if (date[0] == 2019) {
        	if (date[1] < 4) {
            	ans = "Heisei";
            } else if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            }
        }
      
      System.out.print(ans);

    }
} public class Main {
	public static void main(String[] args) {
    	Scanner input = new Scanner(System.in);
      	String S = input.next();
      	String[] sDate = S.split("/");
      	int[] date = new int[3];
      	int i = 0;
        for ( String textValue : sDate ) {
          date[i] = Integer.parseInt( textValue ); 
          i++; 
        } 
      	String ans = "TBD";
      	if (date[0] < 2019) {
        	ans = "Heisei";
        } else if (date[0] == 2019) {
        	if (date[1] < 4) {
            	ans = "Heisei";
            } else if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            }
        }
      
      System.out.print(ans);

    }
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
    	Scanner input = new Scanner(System.in);
      	String S = input.next();
      	String[] sDate = S.split("/");
      	int[] date = new int[3];
      	int i = 0;
        for ( String textValue : sDate ) {
          date[i] = Integer.parseInt( textValue ); 
          i++; 
        } 
      	String ans = "TBD";
      	if (date[0] < 2019) {
        	ans = "Heisei";
        } else if (date[0] == 2019) {
        	if (date[1] < 4) {
            	ans = "Heisei";
            } else if (date[1] == 4 && date[2] <= 30) {
            	ans = "Heisei";
            }
        }
      
      System.out.print(ans);

    }
}
