import sys


s = sys.stdin.readline().split('/')
if int(s[0]) < 2019:
    ans = 'Heisei'
if int(s[0]) == 2019 and int(s[1]) <= 4:
    ans = 'Heisei'
else:
    ans = 'TBD'
print(ans) import sys sys s = sys.stdin.readline().split('/') s sys.stdin.readline().split('/') sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split '/' if int(s[0]) < 2019:
    ans = 'Heisei' int(s[0]) < 2019 int(s[0]) int s[0] s 0 2019 ans = 'Heisei' ans 'Heisei' if int(s[0]) == 2019 and int(s[1]) <= 4:
    ans = 'Heisei'
else:
    ans = 'TBD' int(s[0]) == 2019 and int(s[1]) <= 4 int(s[0]) == 2019 int(s[0]) int s[0] s 0 2019 int(s[1]) <= 4 int(s[1]) int s[1] s 1 4 ans = 'Heisei' ans 'Heisei' ans = 'TBD' ans 'TBD' print(ans) print ans ans = 'Heisei' 'Heisei' ans s = sys.stdin.readline().split('/') sys.stdin.readline().split('/') s ans = 'Heisei' 'Heisei' ans ans = 'TBD' 'TBD' ans
import sys


s = sys.stdin.readline().split('/')
if int(s[0]) < 2019:
    ans = 'Heisei'
if int(s[0]) == 2019 and int(s[1]) <= 4:
    ans = 'Heisei'
else:
    ans = 'TBD'
print(ans)
