def solve():
    s = int(input().replace('/', ''))
    if s < 20190501:
        print('Heisei')
    else:
        print('TBD')


if __name__ == '__main__':
    solve() def solve():
    s = int(input().replace('/', ''))
    if s < 20190501:
        print('Heisei')
    else:
        print('TBD') solve s = int(input().replace('/', '')) s int(input().replace('/', '')) int input().replace('/', '') ().replace () input replace '/' '' if s < 20190501:
        print('Heisei')
    else:
        print('TBD') s < 20190501 s 20190501 print('Heisei') print 'Heisei' print('TBD') print 'TBD' if __name__ == '__main__':
    solve() __name__ == '__main__' __name__ '__main__' solve() solve def solve():
    s = int(input().replace('/', ''))
    if s < 20190501:
        print('Heisei')
    else:
        print('TBD') def solve():
    s = int(input().replace('/', ''))
    if s < 20190501:
        print('Heisei')
    else:
        print('TBD') solve
def solve():
    s = int(input().replace('/', ''))
    if s < 20190501:
        print('Heisei')
    else:
        print('TBD')


if __name__ == '__main__':
    solve()
