a = input()

y = int(a[0:4])
m = int(a[5:7])

if y<2019:
  print("Heisei")
elif y==2019 and m<=4:
  print("Heisei")
else:
  print("TBD") a = input() a input() input y = int(a[0:4]) y int(a[0:4]) int a[0:4] a 0:4 0 4 m = int(a[5:7]) m int(a[5:7]) int a[5:7] a 5:7 5 7 if y<2019:
  print("Heisei")
elif y==2019 and m<=4:
  print("Heisei")
else:
  print("TBD") y<2019 y 2019 print("Heisei") print "Heisei" elif y==2019 and m<=4:
  print("Heisei") y==2019 and m<=4 y==2019 y 2019 m<=4 m 4 print("Heisei") print "Heisei" print("TBD") print "TBD" a = input() input() a m = int(a[5:7]) int(a[5:7]) m y = int(a[0:4]) int(a[0:4]) y
a = input()

y = int(a[0:4])
m = int(a[5:7])

if y<2019:
  print("Heisei")
elif y==2019 and m<=4:
  print("Heisei")
else:
  print("TBD")