import java.util.*;
import java.math.*;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入
		String s = sc.next();
		String year =s.substring(0,4);
		String month =s.substring(5,7);
		String day =s.substring(8,10);

		int iYear = new Integer(year).intValue();
		int iMonth = new Integer(month).intValue();
		int iDay = new Integer(day).intValue();
		    // System.out.println(iYear);
		    // System.out.println(iMonth);
		    // System.out.println(iDay);
 
		if(iYear>2020){
		    System.out.println("TBD");
		}else if (iYear<2018){
		    System.out.println("Heisei");
		}else{
			if(iMonth>=5){
			    System.out.println("TBD");
			}else if (iMonth<=3){
			    System.out.println("Heisei");
			}else{
				if(iDay>=31){
				    System.out.println("TBD");
				}else if (iMonth<=29){
				    System.out.println("Heisei");
				}else{
				    System.out.println("Heisei");
				}
			}
		}
	}
}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz