import sys
input = lambda: sys.stdin.readline().rstrip()

def main():
    s = list(map(int, input().split('/')))
    if s[0] < 2019:
        print("Heisei")
    elif s[0] > 2019:
        print("TBD")
    else:
        if s[1] < 4:
            print("Heisei")
        elif s[1] > 4:
            print("TBD")
        else:
            if s[2] <= 30:
                print("Heisei")
            else:
                print("TBD")
        
if __name__ == '__main__':
    main() import sys sys input = lambda: sys.stdin.readline().rstrip() input lambda: sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip def main():
    s = list(map(int, input().split('/')))
    if s[0] < 2019:
        print("Heisei")
    elif s[0] > 2019:
        print("TBD")
    else:
        if s[1] < 4:
            print("Heisei")
        elif s[1] > 4:
            print("TBD")
        else:
            if s[2] <= 30:
                print("Heisei")
            else:
                print("TBD")
         main s = list(map(int, input().split('/'))) s list(map(int, input().split('/'))) list map(int, input().split('/')) map int input().split('/') ().split () input split '/' if s[0] < 2019:
        print("Heisei")
    elif s[0] > 2019:
        print("TBD")
    else:
        if s[1] < 4:
            print("Heisei")
        elif s[1] > 4:
            print("TBD")
        else:
            if s[2] <= 30:
                print("Heisei")
            else:
                print("TBD")
         s[0] < 2019 s[0] s 0 2019 print("Heisei") print "Heisei" elif s[0] > 2019:
        print("TBD")
     s[0] > 2019 s[0] s 0 2019 print("TBD") print "TBD" if s[1] < 4:
            print("Heisei")
        elif s[1] > 4:
            print("TBD")
        else:
            if s[2] <= 30:
                print("Heisei")
            else:
                print("TBD")
         s[1] < 4 s[1] s 1 4 print("Heisei") print "Heisei" elif s[1] > 4:
            print("TBD")
         s[1] > 4 s[1] s 1 4 print("TBD") print "TBD" if s[2] <= 30:
                print("Heisei")
            else:
                print("TBD")
         s[2] <= 30 s[2] s 2 30 print("Heisei") print "Heisei" print("TBD") print "TBD" if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    s = list(map(int, input().split('/')))
    if s[0] < 2019:
        print("Heisei")
    elif s[0] > 2019:
        print("TBD")
    else:
        if s[1] < 4:
            print("Heisei")
        elif s[1] > 4:
            print("TBD")
        else:
            if s[2] <= 30:
                print("Heisei")
            else:
                print("TBD")
         def main():
    s = list(map(int, input().split('/')))
    if s[0] < 2019:
        print("Heisei")
    elif s[0] > 2019:
        print("TBD")
    else:
        if s[1] < 4:
            print("Heisei")
        elif s[1] > 4:
            print("TBD")
        else:
            if s[2] <= 30:
                print("Heisei")
            else:
                print("TBD")
         main input = lambda: sys.stdin.readline().rstrip() lambda: sys.stdin.readline().rstrip() input
import sys
input = lambda: sys.stdin.readline().rstrip()

def main():
    s = list(map(int, input().split('/')))
    if s[0] < 2019:
        print("Heisei")
    elif s[0] > 2019:
        print("TBD")
    else:
        if s[1] < 4:
            print("Heisei")
        elif s[1] > 4:
            print("TBD")
        else:
            if s[2] <= 30:
                print("Heisei")
            else:
                print("TBD")
        
if __name__ == '__main__':
    main()