s = str(input())
y, m, d = map(int, s.split('/'))
if m <= 4: print('Heisei')
else: print('TBD') s = str(input()) s str(input()) str input() input y, m, d = map(int, s.split('/')) y map(int, s.split('/')) map int s.split('/') s.split s split '/' m d if m <= 4: print('Heisei')
else: print('TBD') m <= 4 m 4 s = str(input()) str(input()) s d = map(int, s.split('/')) map(int, s.split('/')) d y, m, d = map(int, s.split('/')) map(int, s.split('/')) y m, d = map(int, s.split('/')) map(int, s.split('/')) m
s = str(input())
y, m, d = map(int, s.split('/'))
if m <= 4: print('Heisei')
else: print('TBD')