s=input()
print('Heisei' if eval(s.replace('/','')+'<=20190430') else 'TBD') s=input() s input() input print('Heisei' if eval(s.replace('/','')+'<=20190430') else 'TBD') print 'Heisei' if eval(s.replace('/','')+'<=20190430') else 'TBD' eval(s.replace('/','')+'<=20190430') eval s.replace('/','')+'<=20190430' s.replace('/','') s.replace s replace '/' '' '<=20190430' 'Heisei' 'TBD' s=input() input() s
s=input()
print('Heisei' if eval(s.replace('/','')+'<=20190430') else 'TBD')