import java.util.*;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] ymd = s.split("/");
		if (Integer.parseInt(ymd[0]) < 2019) {
			System.out.println("Heisei");
		} else if (Integer.parseInt(ymd[0]) > 2019) {
			System.out.println("TBD");
		} else {
			if (Integer.parseInt(ymd[1]) <= 4) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		}
    }
  
} import java.util.*; util.* java public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] ymd = s.split("/");
		if (Integer.parseInt(ymd[0]) < 2019) {
			System.out.println("Heisei");
		} else if (Integer.parseInt(ymd[0]) > 2019) {
			System.out.println("TBD");
		} else {
			if (Integer.parseInt(ymd[1]) <= 4) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		}
    }
  
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] ymd = s.split("/");
		if (Integer.parseInt(ymd[0]) < 2019) {
			System.out.println("Heisei");
		} else if (Integer.parseInt(ymd[0]) > 2019) {
			System.out.println("TBD");
		} else {
			if (Integer.parseInt(ymd[1]) <= 4) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		}
    } main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] ymd = s.split("/");
		if (Integer.parseInt(ymd[0]) < 2019) {
			System.out.println("Heisei");
		} else if (Integer.parseInt(ymd[0]) > 2019) {
			System.out.println("TBD");
		} else {
			if (Integer.parseInt(ymd[1]) <= 4) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		}
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String[] ymd = s.split("/"); ymd s.split("/") s.split s "/" if (Integer.parseInt(ymd[0]) < 2019) {
			System.out.println("Heisei");
		} else if (Integer.parseInt(ymd[0]) > 2019) {
			System.out.println("TBD");
		} else {
			if (Integer.parseInt(ymd[1]) <= 4) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		} Integer.parseInt(ymd[0]) < 2019 Integer.parseInt(ymd[0]) Integer.parseInt Integer ymd[0] ymd 0 2019 {
			System.out.println("Heisei");
		} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if (Integer.parseInt(ymd[0]) > 2019) {
			System.out.println("TBD");
		} else {
			if (Integer.parseInt(ymd[1]) <= 4) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		} Integer.parseInt(ymd[0]) > 2019 Integer.parseInt(ymd[0]) Integer.parseInt Integer ymd[0] ymd 0 2019 {
			System.out.println("TBD");
		} System.out.println("TBD") System.out.println System.out System System.out "TBD" {
			if (Integer.parseInt(ymd[1]) <= 4) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		} if (Integer.parseInt(ymd[1]) <= 4) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			} Integer.parseInt(ymd[1]) <= 4 Integer.parseInt(ymd[1]) Integer.parseInt Integer ymd[1] ymd 1 4 {
				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" String[] args args public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] ymd = s.split("/");
		if (Integer.parseInt(ymd[0]) < 2019) {
			System.out.println("Heisei");
		} else if (Integer.parseInt(ymd[0]) > 2019) {
			System.out.println("TBD");
		} else {
			if (Integer.parseInt(ymd[1]) <= 4) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		}
    }
  
} public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] ymd = s.split("/");
		if (Integer.parseInt(ymd[0]) < 2019) {
			System.out.println("Heisei");
		} else if (Integer.parseInt(ymd[0]) > 2019) {
			System.out.println("TBD");
		} else {
			if (Integer.parseInt(ymd[1]) <= 4) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		}
    }
  
} Main
import java.util.*;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] ymd = s.split("/");
		if (Integer.parseInt(ymd[0]) < 2019) {
			System.out.println("Heisei");
		} else if (Integer.parseInt(ymd[0]) > 2019) {
			System.out.println("TBD");
		} else {
			if (Integer.parseInt(ymd[1]) <= 4) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		}
    }
  
}
