s = input()
a = s.split('/')

if int(a[0]) < 2019:
    print('Heisei')
elif int(a[1]) <= 4:
    print('Heisei')
else:
    print('TBD') s = input() s input() input a = s.split('/') a s.split('/') s.split s split '/' if int(a[0]) < 2019:
    print('Heisei')
elif int(a[1]) <= 4:
    print('Heisei')
else:
    print('TBD') int(a[0]) < 2019 int(a[0]) int a[0] a 0 2019 print('Heisei') print 'Heisei' elif int(a[1]) <= 4:
    print('Heisei') int(a[1]) <= 4 int(a[1]) int a[1] a 1 4 print('Heisei') print 'Heisei' print('TBD') print 'TBD' s = input() input() s a = s.split('/') s.split('/') a
s = input()
a = s.split('/')

if int(a[0]) < 2019:
    print('Heisei')
elif int(a[1]) <= 4:
    print('Heisei')
else:
    print('TBD')