a,b,c=map(int,input().split('/'));print(['TBD','Heisei'][a<=2019 and b<=4 and c<=30]) a,b,c=map(int,input().split('/')) a map(int,input().split('/')) map int input().split('/') ().split () input split '/' b c print(['TBD','Heisei'][a<=2019 and b<=4 and c<=30]) print ['TBD','Heisei'][a<=2019 and b<=4 and c<=30] ['TBD','Heisei'] 'TBD' 'Heisei' a<=2019 and b<=4 and c<=30 a<=2019 and b<=4 a<=2019 a 2019 b<=4 b 4 c<=30 c 30 c=map(int,input().split('/')) map(int,input().split('/')) c b,c=map(int,input().split('/')) map(int,input().split('/')) b a,b,c=map(int,input().split('/')) map(int,input().split('/')) a
a,b,c=map(int,input().split('/'));print(['TBD','Heisei'][a<=2019 and b<=4 and c<=30])