Problem: You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.)  Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise.

Submission attempts (in order):
s = input()
if (s[:4] == 2019 and s[5] == 0 and s[6] <= 4) or (s[:4] < 2019):
  print("Heisei")
else:
  print("TBD")

s = input()
if s[:4] < 2019 or s[:4] == 2019 and s[6:7] <= 4:
  print("Heisei")

s = int(input())
if (s[:4] == 2019 and s[5] == 0 and s[6] <= 4) or (s[:4] < 2019):
    print("Heisei")
else:
    print("TBD")

s=input()
s = s.split("/")
if s[0] < 2019:
    print("Heisei")

if s[0] == 2019 and s[0]<= 4:
    print("Heisei")
else:
    print("TBD")

s = input()
if s[:4] < 2019 or s[:4] == 2019 and s[6] ==0 and s[7] <= 4:
  print("Heisei")
else:
  print("TBD")

s = map(input())
if (s[:4] == 2019 and s[5] == 0 and s[6] <= 4) or (s[:4] < 2019):
    print("Heisei")
else:
    print("TBD")

s = input()
if s[:4] == 2019 and s[6] <= 4 or s[:4] < 2019:
    print("Heisei")
else:
    print("TBD")

s = input()
if (s[:4] == 2019 and s[5] == 0 and s[6] <= 4) or (s[:4] < 2019):
    print("Heisei")
else:
    print("TBD")

s=input()
s = s.split("/")
if s[0] < 2019:
    print("Heisei")
if s[0] == 2019 and s[1]<= 4:
    print("Heisei")
else:
    print("TBD")

s=input()
if s[:4]==2019 and s[5]==0 and s[6]<=4 or s[:4]<2019:
  print("Heisei")
else:
  print("TBD")

s = map(int, input())
if (s[:4] == 2019 and s[5] == 0 and s[6] <= 4) or (s[:4] < 2019):
    print("Heisei")
else:
    print("TBD")

s = input()
if s[:4] < 2019 or s[:4] == 2019 and s[5] == 0 and s[6] <= 4:
  print("Heisei")
else:
  print("TBD")

s = input()
if s[:4] < 2019 or s[:4] == 2019 and s[6:7] <= 4:
  print("Heisei")
else:
  print("TBD")

s = input()
if s[:4] == 2019 and s[5] == 0 and s[6] <= 4 or s[:4] < 2019:
  print("Heisei")
else:
  print("TBD")

s=input()
s = s.split("/")
if s[0] < 2019:
    print("Heisei")
if s[0] == 2019 and s[1]<= "04":
    print("Heisei")
else:
    print("TBD")

s=input()
s = s.split("/")
if s[0] < 2019:
    print("Heisei")
if s[0] == 2019 and s[0]<= 4:
    print("Heisei")
else:
    print("TBD")

s = input()
if s[:4] == 2019 and s[5] == 0 and s[6] <= 4 or (s[:4] < 2019):
  print("Heisei")
else:
  print("TBD")

s = input()

if s < '2019/04/30':
    print('Heisei')
else:
    print('TBD')

s = input()
if (s[:4] < 2019) or (s[:4] == 2019 and s[5] == 0 and s[6] <= 4):
  print("Heisei")
else:
  print("TBD")

s = input()
if s[:4] == 2019 and s[5] == 0 and s[6] < 5:
    print("Heisei")
elif s[:4] < 2019:
    print("Heisei")
else:
    print("TBD")

s=input()
s = s.split("/")
if s[0] < 2019:
    print('Heisei')
    break
if s[0] == 2019 and s[0]<= 4:
    print('Heisei')
else:
    print('TBD')

s = input()
if s[:3] < 2019 or s[:3] == 2019 and s[5] ==0 and s[6] <= 4:
  print("Heisei")
else:
  print("TBD")

s=input().split("/")
if ((s[0] == 2019 and s[1] > 4) or s[0] > 2019):
    print("TBD")
else:
    print("Heisei")

s = input()
if s[:4] == 2019 and s[6] <= 4 or s[:4] < 2019:
  print("Heisei")
else:
  print("TBD")

s = input()
if s[:4] < 2019 or s[:4] == 2019 and s[5] ==0 and s[6] <= 4:
  print("Heisei")
else:
  print("TBD")

s=str(input())
a=s.split("/")
b=int("".join(a))

if b <= 20190430:
    print("Heisei")
else:
    print("TBD")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted