import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline

in_n = lambda: int(readline())
in_nn = lambda: map(int, readline().split())
in_s = lambda: readline().rstrip().decode('utf-8')


def main():

    S = in_s()
    date = int(S[0:4] + S[5:7] + S[8:])
    if date <= 20190430:
        ans = 'Heisei'
    else:
        ans = 'TBD'

    print(ans)


if __name__ == '__main__':
    main() import sys sys import numpy as np numpy read = sys.stdin.buffer.read read sys.stdin.buffer.read sys.stdin.buffer sys.stdin sys stdin buffer read readline = sys.stdin.buffer.readline readline sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline in_n = lambda: int(readline()) in_n lambda: int(readline()) int(readline()) int readline() readline in_nn = lambda: map(int, readline().split()) in_nn lambda: map(int, readline().split()) map(int, readline().split()) map int readline().split() ().split () readline split in_s = lambda: readline().rstrip().decode('utf-8') in_s lambda: readline().rstrip().decode('utf-8') readline().rstrip().decode('utf-8') ().rstrip().decode ().rstrip() ().rstrip () readline rstrip decode 'utf-8' def main():

    S = in_s()
    date = int(S[0:4] + S[5:7] + S[8:])
    if date <= 20190430:
        ans = 'Heisei'
    else:
        ans = 'TBD'

    print(ans) main S = in_s() S in_s() in_s date = int(S[0:4] + S[5:7] + S[8:]) date int(S[0:4] + S[5:7] + S[8:]) int S[0:4] + S[5:7] + S[8:] S[0:4] + S[5:7] S[0:4] S 0:4 0 4 S[5:7] S 5:7 5 7 S[8:] S 8: 8 if date <= 20190430:
        ans = 'Heisei'
    else:
        ans = 'TBD'

     date <= 20190430 date 20190430 ans = 'Heisei' ans 'Heisei' ans = 'TBD' ans 'TBD' print(ans) print ans if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main in_nn = lambda: map(int, readline().split()) lambda: map(int, readline().split()) in_nn in_s = lambda: readline().rstrip().decode('utf-8') lambda: readline().rstrip().decode('utf-8') in_s in_n = lambda: int(readline()) lambda: int(readline()) in_n read = sys.stdin.buffer.read sys.stdin.buffer.read read readline = sys.stdin.buffer.readline sys.stdin.buffer.readline readline def main():

    S = in_s()
    date = int(S[0:4] + S[5:7] + S[8:])
    if date <= 20190430:
        ans = 'Heisei'
    else:
        ans = 'TBD'

    print(ans) def main():

    S = in_s()
    date = int(S[0:4] + S[5:7] + S[8:])
    if date <= 20190430:
        ans = 'Heisei'
    else:
        ans = 'TBD'

    print(ans) main
import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline

in_n = lambda: int(readline())
in_nn = lambda: map(int, readline().split())
in_s = lambda: readline().rstrip().decode('utf-8')


def main():

    S = in_s()
    date = int(S[0:4] + S[5:7] + S[8:])
    if date <= 20190430:
        ans = 'Heisei'
    else:
        ans = 'TBD'

    print(ans)


if __name__ == '__main__':
    main()
