y, m, d = map(int, input().split('/'))
print("Heisei" if (y == 2019 and m <= 4) or y < 2019 else "TBD") y, m, d = map(int, input().split('/')) y map(int, input().split('/')) map int input().split('/') ().split () input split '/' m d print("Heisei" if (y == 2019 and m <= 4) or y < 2019 else "TBD") print "Heisei" if (y == 2019 and m <= 4) or y < 2019 else "TBD" (y == 2019 and m <= 4) or y < 2019 y == 2019 and m <= 4 y == 2019 y 2019 m <= 4 m 4 y < 2019 y 2019 "Heisei" "TBD" d = map(int, input().split('/')) map(int, input().split('/')) d m, d = map(int, input().split('/')) map(int, input().split('/')) m y, m, d = map(int, input().split('/')) map(int, input().split('/')) y
y, m, d = map(int, input().split('/'))
print("Heisei" if (y == 2019 and m <= 4) or y < 2019 else "TBD")