#import sys
#import numpy as np
#import math
#import itertools
#from fractions import Fraction
#import itertools
from collections import deque
#import heapq
#from fractions  import gcd
#input=sys.stdin.readline
s=input()
if int(s[5:7])<5:
    print("Heisei")
else:
    print("TBD") from collections import deque s=input() s input() input if int(s[5:7])<5:
    print("Heisei")
else:
    print("TBD") int(s[5:7])<5 int(s[5:7]) int s[5:7] s 5:7 5 7 5 print("Heisei") print "Heisei" print("TBD") print "TBD" s=input() input() s
#import sys
#import numpy as np
#import math
#import itertools
#from fractions import Fraction
#import itertools
from collections import deque
#import heapq
#from fractions  import gcd
#input=sys.stdin.readline
s=input()
if int(s[5:7])<5:
    print("Heisei")
else:
    print("TBD")