def main():
 s = input()
 if s[5] == '0' and ord(s[6]) <= ord('4'):
     print('Heisei')
 else:
     print('TBD')
main() def main():
 s = input()
 if s[5] == '0' and ord(s[6]) <= ord('4'):
     print('Heisei')
 else:
     print('TBD') main s = input() s input() input if s[5] == '0' and ord(s[6]) <= ord('4'):
     print('Heisei')
 else:
     print('TBD') s[5] == '0' and ord(s[6]) <= ord('4') s[5] == '0' s[5] s 5 '0' ord(s[6]) <= ord('4') ord(s[6]) ord s[6] s 6 ord('4') ord '4' print('Heisei') print 'Heisei' print('TBD') print 'TBD' main() main def main():
 s = input()
 if s[5] == '0' and ord(s[6]) <= ord('4'):
     print('Heisei')
 else:
     print('TBD') def main():
 s = input()
 if s[5] == '0' and ord(s[6]) <= ord('4'):
     print('Heisei')
 else:
     print('TBD') main
def main():
 s = input()
 if s[5] == '0' and ord(s[6]) <= ord('4'):
     print('Heisei')
 else:
     print('TBD')
main()