import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		try{
			InputStreamReader isr =new InputStreamReader(System.in);
	   		BufferedReader br =new BufferedReader(isr);
	        String dateString = br.readLine();
	       	System.out.println(isHeisei(dateString) ? "Heisei" : "TBD");
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
	}

	private static boolean isHeisei(final String dateString) {
		StringTokenizer st = new StringTokenizer(dateString, "/");
		final int y = Integer.parseInt(st.nextToken());
	    final int m = Integer.parseInt(st.nextToken());
	    final int d = Integer.parseInt(st.nextToken());
	    if (m <= 4) {
	    	return true;
	    }
		return false;
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		try{
			InputStreamReader isr =new InputStreamReader(System.in);
	   		BufferedReader br =new BufferedReader(isr);
	        String dateString = br.readLine();
	       	System.out.println(isHeisei(dateString) ? "Heisei" : "TBD");
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
	}

	private static boolean isHeisei(final String dateString) {
		StringTokenizer st = new StringTokenizer(dateString, "/");
		final int y = Integer.parseInt(st.nextToken());
	    final int m = Integer.parseInt(st.nextToken());
	    final int d = Integer.parseInt(st.nextToken());
	    if (m <= 4) {
	    	return true;
	    }
		return false;
	}
} Main public static void main(String[] args) {
		try{
			InputStreamReader isr =new InputStreamReader(System.in);
	   		BufferedReader br =new BufferedReader(isr);
	        String dateString = br.readLine();
	       	System.out.println(isHeisei(dateString) ? "Heisei" : "TBD");
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
	} main {
		try{
			InputStreamReader isr =new InputStreamReader(System.in);
	   		BufferedReader br =new BufferedReader(isr);
	        String dateString = br.readLine();
	       	System.out.println(isHeisei(dateString) ? "Heisei" : "TBD");
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
	} try{
			InputStreamReader isr =new InputStreamReader(System.in);
	   		BufferedReader br =new BufferedReader(isr);
	        String dateString = br.readLine();
	       	System.out.println(isHeisei(dateString) ? "Heisei" : "TBD");
		} catch (IOException ioe) {
			ioe.printStackTrace();
		} catch (IOException ioe) {
			ioe.printStackTrace();
		} IOException ioe {
			ioe.printStackTrace();
		} ioe.printStackTrace() ioe.printStackTrace ioe {
			InputStreamReader isr =new InputStreamReader(System.in);
	   		BufferedReader br =new BufferedReader(isr);
	        String dateString = br.readLine();
	       	System.out.println(isHeisei(dateString) ? "Heisei" : "TBD");
		} InputStreamReader isr =new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br =new BufferedReader(isr); br new BufferedReader(isr) String dateString = br.readLine(); dateString br.readLine() br.readLine br System.out.println(isHeisei(dateString) ? "Heisei" : "TBD") System.out.println System.out System System.out isHeisei(dateString) ? "Heisei" : "TBD" isHeisei(dateString) isHeisei dateString "Heisei" "TBD" String[] args args private static boolean isHeisei(final String dateString) {
		StringTokenizer st = new StringTokenizer(dateString, "/");
		final int y = Integer.parseInt(st.nextToken());
	    final int m = Integer.parseInt(st.nextToken());
	    final int d = Integer.parseInt(st.nextToken());
	    if (m <= 4) {
	    	return true;
	    }
		return false;
	} isHeisei {
		StringTokenizer st = new StringTokenizer(dateString, "/");
		final int y = Integer.parseInt(st.nextToken());
	    final int m = Integer.parseInt(st.nextToken());
	    final int d = Integer.parseInt(st.nextToken());
	    if (m <= 4) {
	    	return true;
	    }
		return false;
	} StringTokenizer st = new StringTokenizer(dateString, "/"); st new StringTokenizer(dateString, "/") final int y = Integer.parseInt(st.nextToken()); y Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st final int m = Integer.parseInt(st.nextToken()); m Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st final int d = Integer.parseInt(st.nextToken()); d Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st if (m <= 4) {
	    	return true;
	    } m <= 4 m 4 {
	    	return true;
	    } return true; true return false; false final String dateString dateString public class Main {
	public static void main(String[] args) {
		try{
			InputStreamReader isr =new InputStreamReader(System.in);
	   		BufferedReader br =new BufferedReader(isr);
	        String dateString = br.readLine();
	       	System.out.println(isHeisei(dateString) ? "Heisei" : "TBD");
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
	}

	private static boolean isHeisei(final String dateString) {
		StringTokenizer st = new StringTokenizer(dateString, "/");
		final int y = Integer.parseInt(st.nextToken());
	    final int m = Integer.parseInt(st.nextToken());
	    final int d = Integer.parseInt(st.nextToken());
	    if (m <= 4) {
	    	return true;
	    }
		return false;
	}
} public class Main {
	public static void main(String[] args) {
		try{
			InputStreamReader isr =new InputStreamReader(System.in);
	   		BufferedReader br =new BufferedReader(isr);
	        String dateString = br.readLine();
	       	System.out.println(isHeisei(dateString) ? "Heisei" : "TBD");
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
	}

	private static boolean isHeisei(final String dateString) {
		StringTokenizer st = new StringTokenizer(dateString, "/");
		final int y = Integer.parseInt(st.nextToken());
	    final int m = Integer.parseInt(st.nextToken());
	    final int d = Integer.parseInt(st.nextToken());
	    if (m <= 4) {
	    	return true;
	    }
		return false;
	}
} Main
import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		try{
			InputStreamReader isr =new InputStreamReader(System.in);
	   		BufferedReader br =new BufferedReader(isr);
	        String dateString = br.readLine();
	       	System.out.println(isHeisei(dateString) ? "Heisei" : "TBD");
		} catch (IOException ioe) {
			ioe.printStackTrace();
		}
	}

	private static boolean isHeisei(final String dateString) {
		StringTokenizer st = new StringTokenizer(dateString, "/");
		final int y = Integer.parseInt(st.nextToken());
	    final int m = Integer.parseInt(st.nextToken());
	    final int d = Integer.parseInt(st.nextToken());
	    if (m <= 4) {
	    	return true;
	    }
		return false;
	}
}
