def readinput():
    s=input()
    return s

def main(s):
    y=int(s[:4])
    m=int(s[5:7])
    d=int(s[9:])
    if m<=4:
        return 'Heisei'
    else:
        return 'TBD'

if __name__=='__main__':
    s=readinput()
    ans=main(s)
    print(ans) def readinput():
    s=input()
    return s readinput s=input() s input() input return s s def main(s):
    y=int(s[:4])
    m=int(s[5:7])
    d=int(s[9:])
    if m<=4:
        return 'Heisei'
    else:
        return 'TBD' main y=int(s[:4]) y int(s[:4]) int s[:4] s :4 4 m=int(s[5:7]) m int(s[5:7]) int s[5:7] s 5:7 5 7 d=int(s[9:]) d int(s[9:]) int s[9:] s 9: 9 if m<=4:
        return 'Heisei'
    else:
        return 'TBD' m<=4 m 4 return 'Heisei' 'Heisei' return 'TBD' 'TBD' s s if __name__=='__main__':
    s=readinput()
    ans=main(s)
    print(ans) __name__=='__main__' __name__ '__main__' s=readinput() s readinput() readinput ans=main(s) ans main(s) main s print(ans) print ans s=readinput() readinput() s ans=main(s) main(s) ans def readinput():
    s=input()
    return s def readinput():
    s=input()
    return s readinput def main(s):
    y=int(s[:4])
    m=int(s[5:7])
    d=int(s[9:])
    if m<=4:
        return 'Heisei'
    else:
        return 'TBD' def main(s):
    y=int(s[:4])
    m=int(s[5:7])
    d=int(s[9:])
    if m<=4:
        return 'Heisei'
    else:
        return 'TBD' main
def readinput():
    s=input()
    return s

def main(s):
    y=int(s[:4])
    m=int(s[5:7])
    d=int(s[9:])
    if m<=4:
        return 'Heisei'
    else:
        return 'TBD'

if __name__=='__main__':
    s=readinput()
    ans=main(s)
    print(ans)
