import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    s = input()
    m = int(s[5:7])
    if m <= 4:
        print("Heisei")
    else:
        print("TBD")


if __name__ == '__main__':
    main() import sys sys readline = sys.stdin.readline readline sys.stdin.readline sys.stdin sys stdin readline MOD = 10 ** 9 + 7 MOD 10 ** 9 + 7 10 ** 9 10 9 7 INF = float('INF') INF float('INF') float 'INF' sys.setrecursionlimit(10 ** 5) sys.setrecursionlimit sys setrecursionlimit 10 ** 5 10 5 def main():
    s = input()
    m = int(s[5:7])
    if m <= 4:
        print("Heisei")
    else:
        print("TBD") main s = input() s input() input m = int(s[5:7]) m int(s[5:7]) int s[5:7] s 5:7 5 7 if m <= 4:
        print("Heisei")
    else:
        print("TBD") m <= 4 m 4 print("Heisei") print "Heisei" print("TBD") print "TBD" if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main MOD = 10 ** 9 + 7 10 ** 9 + 7 MOD INF = float('INF') float('INF') INF readline = sys.stdin.readline sys.stdin.readline readline def main():
    s = input()
    m = int(s[5:7])
    if m <= 4:
        print("Heisei")
    else:
        print("TBD") def main():
    s = input()
    m = int(s[5:7])
    if m <= 4:
        print("Heisei")
    else:
        print("TBD") main
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    s = input()
    m = int(s[5:7])
    if m <= 4:
        print("Heisei")
    else:
        print("TBD")


if __name__ == '__main__':
    main()
