#!/usr/bin/python3
date = list(map(int,input().split('/')))
if date[1] >= 5:
    print ('TBD')
else:
    print('Heisei') date = list(map(int,input().split('/'))) date list(map(int,input().split('/'))) list map(int,input().split('/')) map int input().split('/') ().split () input split '/' if date[1] >= 5:
    print ('TBD')
else:
    print('Heisei') date[1] >= 5 date[1] date 1 5 print ('TBD') print 'TBD' print('Heisei') print 'Heisei' date = list(map(int,input().split('/'))) list(map(int,input().split('/'))) date
#!/usr/bin/python3
date = list(map(int,input().split('/')))
if date[1] >= 5:
    print ('TBD')
else:
    print('Heisei')
