import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()

    y, m, d = map(int, S.split('/'))
    if m <= 4:
        print('Heisei')
    elif m > 4:
        print('TBD')

    return


if __name__ == '__main__':
    main() import sys sys read = sys.stdin.read read sys.stdin.read sys.stdin sys stdin read readline = sys.stdin.readline readline sys.stdin.readline sys.stdin sys stdin readline readlines = sys.stdin.readlines readlines sys.stdin.readlines sys.stdin sys stdin readlines sys.setrecursionlimit(10 ** 9) sys.setrecursionlimit sys setrecursionlimit 10 ** 9 10 9 INF = 1 << 60 INF 1 << 60 1 60 MOD = 1000000007 MOD 1000000007 def main():
    S = readline().strip()

    y, m, d = map(int, S.split('/'))
    if m <= 4:
        print('Heisei')
    elif m > 4:
        print('TBD')

    return main S = readline().strip() S readline().strip() ().strip () readline strip y, m, d = map(int, S.split('/')) y map(int, S.split('/')) map int S.split('/') S.split S split '/' m d if m <= 4:
        print('Heisei')
    elif m > 4:
        print('TBD')

     m <= 4 m 4 print('Heisei') print 'Heisei' elif m > 4:
        print('TBD')

     m > 4 m 4 print('TBD') print 'TBD' return if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main readlines = sys.stdin.readlines sys.stdin.readlines readlines read = sys.stdin.read sys.stdin.read read INF = 1 << 60 1 << 60 INF def main():
    S = readline().strip()

    y, m, d = map(int, S.split('/'))
    if m <= 4:
        print('Heisei')
    elif m > 4:
        print('TBD')

    return def main():
    S = readline().strip()

    y, m, d = map(int, S.split('/'))
    if m <= 4:
        print('Heisei')
    elif m > 4:
        print('TBD')

    return main readline = sys.stdin.readline sys.stdin.readline readline MOD = 1000000007 1000000007 MOD
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()

    y, m, d = map(int, S.split('/'))
    if m <= 4:
        print('Heisei')
    elif m > 4:
        print('TBD')

    return


if __name__ == '__main__':
    main()
