import datetime
s = input().split("/")
if datetime.date(2019,4,30) >= datetime.date(int(s[0]), int(s[1]), int(s[2])):
    print('Heisei')
else:
    print('TBD') import datetime datetime s = input().split("/") s input().split("/") ().split () input split "/" if datetime.date(2019,4,30) >= datetime.date(int(s[0]), int(s[1]), int(s[2])):
    print('Heisei')
else:
    print('TBD') datetime.date(2019,4,30) >= datetime.date(int(s[0]), int(s[1]), int(s[2])) datetime.date(2019,4,30) datetime.date datetime date 2019 4 30 datetime.date(int(s[0]), int(s[1]), int(s[2])) datetime.date datetime date int(s[0]) int s[0] s 0 int(s[1]) int s[1] s 1 int(s[2]) int s[2] s 2 print('Heisei') print 'Heisei' print('TBD') print 'TBD' s = input().split("/") input().split("/") s
import datetime
s = input().split("/")
if datetime.date(2019,4,30) >= datetime.date(int(s[0]), int(s[1]), int(s[2])):
    print('Heisei')
else:
    print('TBD')