import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
	public static void main(String[] args) throws IOException, ParseException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	
    	String tmp = "2019/04/30";
    	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    	Date criteria = sdf.parse(tmp);
    	Date now = sdf.parse(str);
    	
    	if (now.after(criteria)) {
    		System.out.println("TBD");
    	} else {
    		System.out.println("Heisei");
    	}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.text.ParseException; ParseException java.text import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.Date; Date java.util public class Main {
	public static void main(String[] args) throws IOException, ParseException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	
    	String tmp = "2019/04/30";
    	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    	Date criteria = sdf.parse(tmp);
    	Date now = sdf.parse(str);
    	
    	if (now.after(criteria)) {
    		System.out.println("TBD");
    	} else {
    		System.out.println("Heisei");
    	}
	}
} Main public static void main(String[] args) throws IOException, ParseException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	
    	String tmp = "2019/04/30";
    	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    	Date criteria = sdf.parse(tmp);
    	Date now = sdf.parse(str);
    	
    	if (now.after(criteria)) {
    		System.out.println("TBD");
    	} else {
    		System.out.println("Heisei");
    	}
	} main {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	
    	String tmp = "2019/04/30";
    	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    	Date criteria = sdf.parse(tmp);
    	Date now = sdf.parse(str);
    	
    	if (now.after(criteria)) {
    		System.out.println("TBD");
    	} else {
    		System.out.println("Heisei");
    	}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String tmp = "2019/04/30"; tmp "2019/04/30" SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); sdf new SimpleDateFormat("yyyy/MM/dd") Date criteria = sdf.parse(tmp); criteria sdf.parse(tmp) sdf.parse sdf tmp Date now = sdf.parse(str); now sdf.parse(str) sdf.parse sdf str if (now.after(criteria)) {
    		System.out.println("TBD");
    	} else {
    		System.out.println("Heisei");
    	} now.after(criteria) now.after now criteria {
    		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" String[] args args public class Main {
	public static void main(String[] args) throws IOException, ParseException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	
    	String tmp = "2019/04/30";
    	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    	Date criteria = sdf.parse(tmp);
    	Date now = sdf.parse(str);
    	
    	if (now.after(criteria)) {
    		System.out.println("TBD");
    	} else {
    		System.out.println("Heisei");
    	}
	}
} public class Main {
	public static void main(String[] args) throws IOException, ParseException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	
    	String tmp = "2019/04/30";
    	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    	Date criteria = sdf.parse(tmp);
    	Date now = sdf.parse(str);
    	
    	if (now.after(criteria)) {
    		System.out.println("TBD");
    	} else {
    		System.out.println("Heisei");
    	}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
	public static void main(String[] args) throws IOException, ParseException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	
    	String tmp = "2019/04/30";
    	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    	Date criteria = sdf.parse(tmp);
    	Date now = sdf.parse(str);
    	
    	if (now.after(criteria)) {
    		System.out.println("TBD");
    	} else {
    		System.out.println("Heisei");
    	}
	}
}
