TnT/Multi_CodeNet4Repair huggingface dataset:
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):
date=input()
if date>'2019-04-30':
  print('TBD')
else:
  print('Heisei')
  


date=input()
if date>='2019-04-30':
  print('TBD')
else:
  print('Heisei')
  

date=input()
if date>'2019/04/30':
  print('TBD')
else:
  print('Heisei')
  


Verdicts: Wrong Answer

Wrong Answer

Accepted
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):
yyyy = int(input())
mm = int(input())
dd = int(input())
if yyyy < 2019:
    print('Heisei')
    break
elif yyyy > 2019:
    print('TBD')
    break
else:
    if mm < 5:
        print('Heisei')
        break
    else:
        print('TBD')

yyyy = int(input())
mm = int(input())
if yyyy < 2019:
    print('Heisei')
elif yyyy > 2019:
    print('TBD')
else:
    if mm == 1 or mm == 2 or mm == 3 or mm == 4:
        print('Heisei')
    else:
        print('TBD')

yyyy = int(input())
mm = int(input())
dd = int(input())
if yyyy < 2019:
    print('Heisei')
elif yyyy > 2019:
    print('TBD')
else:
    if mm < 5:
        print('Heisei')
    else:
        print('TBD')

yyyy = int(input())
mm = int(input())
dd = int(input())
if yyyy < 2019:
    print('Heisei')
elif yyyy > 2019:
    print('TBD')
else:
    if mm == 1 or mm == 2 or mm == 3 or mm == 4:
        print('Heisei')
    else:
        print('TBD')

if yyyy < 2019:
    print('Heisei')
elif yyyy > 2019:
    print('TBD')
else:
    if mm < 5:
        print('Heisei')
    else:
        print('TBD')

yyyy = int(input())
mm = int(input())
dd = int(input())
if yyyy < 2019:
    print('Heisei')
elif yyyy > 2019:
    print('TBD')
else:
    if mm < 5:
        print('Heisei')
    else:
        print('TBD')

if yyyy < 2019:
    print('Heisei')
elif yyyy > 2019:
    print('TBD')
else:
    if mm == 1 or mm == 2 or mm == 3 or mm == 4:
        print('Heisei')
    else:
        print('TBD')

if yyyy < 2019:
    print('Heisei')
elif yyyy > 2019:
    print('TBD')
else:
    if mm == 01 or mm == 02 or mm == 03 or mm == 04:
        print('Heisei')
    else:
        print('TBD')

S = input()
if S <= '2019/04/30' :
    print('Heisei' )
else:
    print('TBD')

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
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):
print("Heisei" if input()<="2019/04/30" and"TBD")

print("Heisei" if input()<="2019/04/30" else "TBD")

Verdicts: Runtime Error

Accepted
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 int(s[5:7]) < 4:
    print ("Heisei")
else :
    print ('TBD')


s = input()
if int(s[5:7]) <= 4 :
    print ("Heisei")
else :
      print ('TBD')


Verdicts: Wrong Answer

Accepted
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 = list(map(int, input().split('/')))

print(S)

if S[0] < 2019:
    print("Heisei")
elif S[0] == 2019:
    if S[1] >=5:
        print('TBD')
    else:
        print('Heisei')
else:
    print('TBD')


S = list(map(int, input().split('/')))


if S[0] < 2019:
    print("Heisei")
elif S[0] == 2019:
    if S[1] >=5:
        print('TBD')
    else:
        print('Heisei')
else:
    print('TBD')


Verdicts: Wrong Answer

Accepted
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[5:7]<5:
    print('Heisei')
else:
    print('TBD')
    

S=input()
if int(S[5:7])<5:
    print('Heisei')
else:
    print('TBD')
    


Verdicts: Runtime Error

Accepted
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):
# coding: utf-8
# Your code here!

str = input().strip()
splited = ''.join(str.split('/'))
i = int(splited)

if i >= 20190430:
    print('TBD')
else:
    print('Heisei')


# coding: utf-8
# Your code here!

str = input().strip()
splited = ''.join(str.split('/'))
i = int(splited)

if i > 20190430:
    print('TBD')
else:
    print('Heisei')


Verdicts: Wrong Answer

Accepted
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=str(input())
X=int(S[5:7])
if X>=5:
	print('TBD')
else:
	print('HEISEI')

S=str(input())
X=int(S[5:7])
if X>=5:
	print('TBD')
else:
	print('Heisei')

Verdicts: Wrong Answer

Accepted
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):
# coding: utf-8
from sys import stdin
import sys
Y,M,D = map(int,stdin.readline().rstrip().split("/"))
if Y >= 2019:
    if M >= 5:
        print("TBD")
        sys.exit()
print("heisei")

# coding: utf-8
from sys import stdin
Y,M,D = map(int,stdin.readline().rstrip().split("/"))
print("Heisei" if M >= 5 else "TBD")

# coding: utf-8
from sys import stdin
Y,M,D = map(int,stdin.readline().rstrip().split("/"))
print("TBD" if M >= 5 else "Heisei")

Verdicts: Wrong Answer

Wrong Answer

Accepted
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):
Y, M, _ = map(int, input().split("/"))
if 2019 <= Y and 5 <= M or 2020 <= Y and 1 <= M:
    print("TBD")
else:
    print("heisei")

Y, M, _ = map(int, input().split("/"))
print("TBD") if 5 <= M else print("heisei")

_, M, _ = map(int, input().split("/"))
print("TBD") if 5 <= M else print("Heisei")

Verdicts: Wrong Answer

Wrong Answer

Accepted
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()
li = s.split('/')
date = int(li[0])*10000 + int(li[1])*100 + int(li[2])*100
if date <= 20190430:
    print('Heisei')
else:
    print('TBD')

s = input()
li = s.split('/')
date = int(li[0])*10000 + int(li[1])*100 + int(li[2])
if date <= 20190430:
    print('Heisei')
else:
    print('TBD')

Verdicts: Wrong Answer

Accepted
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):


import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

YMD = readline().decode('utf8').rstrip().split('/')
print(YMD)
MD=int(''.join(YMD[1:]))
print('Heisei' if MD <=430 else 'TBD')




import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

YMD = readline().decode('utf8').rstrip().split('/')
# print(YMD)
MD=int(''.join(YMD[1:]))
print('Heisei' if MD <=430 else 'TBD')


Verdicts: Wrong Answer

Accepted
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):
year, month, day = map(int, input().split("/"))
if year < 2019 or (year == 2019 and month < 4):
  print("Heisei")
else:
  print("TBD")

year, month, day = map(int, input().split("/"))
if (month <= 4):
  print("Heisei")
else:
  print("TBD")

Verdicts: Wrong Answer

Accepted
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):
print(["TBD","Heisei"][input()<"2019/04/30"])

print(["TBD","Heisei"][input()<="2019/04/30"])

Verdicts: Wrong Answer

Accepted
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):
x, y, z = (int(i) for i in input().split('/'))

if(x>2019):
    print("TBD")
elif(y>4):
    print("TBD")
elif(z>30):
    print("TBD")
else:
    print("heisei")


def main():
    x, y, z = (int(i) for i in input().split('/'))

    if(x>2019):
        print("TBD")
        return
    elif(y>4):
        print("TBD")
        return
    elif(z>30):
        print("TBD")
        return
    else:
        print("heisei")
        return

if __name__ == "__main__":
    main()


def main():
    x, y, z = (int(i) for i in input().split('/'))

    if(x>2019):
        print("TBD")
        return
    elif(y>4):
        print("TBD")
        return
    elif(z>30):
        print("TBD")
        return
    else:
        print("Heisei")
        return

if __name__ == "__main__":
    main()


Verdicts: Wrong Answer

Wrong Answer

Accepted
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 int(s[5:7])>4:
  print("TBD")
else:
  print("heisei")

s = input()
if int(s[5:7])>4:
  print("TBD")
else:
  print("Heisei")


Verdicts: Wrong Answer

Accepted
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):
y,m,d=map(int,input().solit("/"))
if m<5:
  print("Heisei")
else:
  print("TBD")

y,m,d=map(int,input().split("/"))
if m<5:
  print("Heisei")
else:
  print("TBD")


Verdicts: Runtime Error

Accepted
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 <= '2019/04/19':
  print(Heisei)
else:
  print(TDB)

s = input()
S = s.split('/')
ymd = int(''.join(S)) 
if ymd <= 20190419:
  print(Heisei)
else:
  print(TDB)

a = list(map(int,input().split("/")))
if a[1] > 4:
  print("TBD")
else:
  print("Heisei")

Verdicts: Runtime Error

Runtime Error

Accepted
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()
wk = S[:4]+S[5:7]+S[8:10]
if wk=<20190430:
    print("Heisei")
else:
    print("TBD")

S = input()
wk = S[:4]+S[5:7]+S[8:10]
if wk<20190430:
    print("Heisei")
else:
    print("TBD")

S = input()
wk = int(S[:4]+S[5:7]+S[8:10])
if wk<=20190430:
    print("Heisei")
else:
    print("TBD")

Verdicts: Runtime Error

Runtime Error

Accepted
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):
from datetime import datetime
def main():
    S = input()
    S = datetime.strptime(S,'%Y/%m/%d')

    if S <= datetime(2019, 4, 30):
        print('heisei')
    else:
        print('TBD')



if __name__ == '__main__' :
    main()

from datetime import datetime
def main():
    S = input()
    S = datetime.strptime(S,'%Y/%m/%d')

    if S <= datetime(2019, 4, 30):
        print('seisei')
    else:
        print('TBD')



if __name__ == '__main__' :
    main()

from datetime import datetime
def main():
    S = input()
    S = datetime.strptime(S,'%Y/%m/%d')

    if S <= datetime(2019, 4, 30):
        print('Heisei')
    else:
        print('TBD')



if __name__ == '__main__' :
    main()

Verdicts: Wrong Answer

Wrong Answer

Accepted
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):
y,m,d=list(map(int,input().split("/")))
if y>2019:
  print("TBD")
elif y<2019:
  print("Heisei")
elif m>4:
  print("TBD")
elif m<4:
  print("Heisei")
elif d=30:
  print("TBD")
else:
  print("Heisei")

y,m,d=list(map(int,input().split("/")))
if y>2019:
  print("TBD")
elif y<2019:
  print("Heisei")
elif m>4:
  print("TBD")
elif m<4:
  print("Heisei")
elif d>=30:
  print("TBD")
else:
  print("Heisei")

y,m,d=list(map(int,input().split("/")))
if y>2019:
  print("TBD")
elif y<2019:
  print("Heisei")
elif m>4:
  print("TBD")
elif m<4:
  print("Heisei")
elif d>30:
  print("TBD")
else:
  print("Heisei")

Verdicts: Runtime Error

Wrong Answer

Accepted
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):
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline


s = input()
print("TBD" if s < "2019/4/30" else "Heisei")


# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline


s = input()
print("TBD" if s > "2019/04/30" else "Heisei")


# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline


s = input()
print("TBD" if s > "1019/4/30" else "Heisei")


# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
S = input()

l = S.split("/")

ans = "Heisei"
if int(l[0]) > 2019:
    ans = "TBD"
elif l[0] == "2019":
    if int(l[1]) > 4:
        ans = "TBD"
print(ans)


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
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):
a=list(map(int,input().split('/')))
print(a)
if a[0]==2019:
    if a[1]==4:
        if 30<=a[2]:
            print("Heisei")
        else:
            print("TBD")
    elif 5<=a[1]:
        print("Heisei")
    else:
        print("TBD")
elif 2019<a[0]:
    print("Heisei")
else:
    print("TBD")

a=list(map(int,input().split('/')))
#print(a)
if a[0]==2019:
    if a[1]==4:
        if 30>=a[2]:
            print("Heisei")
        else:
            print("TBD")
    elif 5>a[1]:
        print("Heisei")
    else:
        print("TBD")
elif 2019>=a[0]:
    print("Heisei")
else:
        print("TBD")

Verdicts: Wrong Answer

Accepted
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()

yyyy, mm, dd = S.split('/')
yyyy = int(yyyy)
mm = int(mm)
dd = int(dd)

given = (2019 * 365) + (4 - 1) * 30 + 30
sum = (yyyy * 365) + (mm - 1) * 30 + dd

if given >= sum:
  print('heisei')
else:
  print('TBD')

S = input()

yyyy, mm, dd = S.split('/')
yyyy = int(yyyy)
mm = int(mm)
dd = int(dd)

if yyyy > 2019:
  print('TBD')

elif yyyy <= 2019:
  if mm <= 4:
    print('heisei')
  else:
    print('TBD')
else:
  print('TBD')

S = input()

yyyy, mm, dd = S.split('/')

given = 2019 * 365 + (4 - 1) * 30 + 30
sum = int(yyyy) * 365 + (int(mm) - 1) * 30 + int(dd)

if given >= sum:
  print('heisei')
else:
  print('TBD')

S = input()

yyyy, mm, dd = S.split('/')
yyyy = int(yyyy)
mm = int(mm)
dd = int(dd)

if yyyy > 2019:
  print('TBD')

elif yyyy <= 2019:
  if mm <= 4:
    print('Heisei')
  else:
    print('TBD')
else:
  print('TBD')

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
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):
a,b = map(int,input().split())
print(a+b if b%a == 0 else b-a)

s = input()
m = int(s[5:7])

if m >= 5:
    print("TBD")
else:
    print("Heisei")

Verdicts: Runtime Error

Accepted
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):
y,m,d = list(map(int, input().split("/")))

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

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

Verdicts: Runtime Error

Accepted
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()
print(2*min(s.count('1'), s.count('0')))

S = input()
print('Heisei' if S <= '2019/04/30' else'TBD')

Verdicts: Wrong Answer

Accepted
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):
import stdin

year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 1

if (y < heisei_y):
  print('Heisei');
  else if ( m < heisei_m):
    print('Heisei');
    else if ( d < heisei_d):
      print('Heisei');
      else:
        print('TBD');



from sys import stdin


year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 1

if y < heisei_y:
  print('Heisei')
elif  (y == heisei_y) and (m < heisei_m):
  print('Heisei')
elif  ((y == heisei_y) and m == heisei_m) and (d <= heisei_d):
  print('Heisei')
else:
  print('TBD')


import stdin

year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 1

if y < heisei_y:
  print('Heisei');
elif  m < heisei_m:
  print('Heisei');
elif  d < heisei_d:
  print('Heisei');
else:
  print('TBD');



import stdin

year, month, date = stdin.readline().rstrip().split('/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 1

if y < heisei_y:
  print('Heisei')
elif  m < heisei_m:
  print('Heisei')
elif  d < heisei_d:
  print('Heisei')
else:
  print('TBD')



from sys import stdin


year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 1

if y < heisei_y:
  print('Heisei')
elif  (y == heisei_y) and (m < heisei_m):
  print('Heisei')
elif  (m == heisei_m) and (d <= heisei_d):
  print('Heisei')
else:
  print('TBD')


from sys import stdin


year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 1

if y < heisei_y:
  print('Heisei')
elif  m < heisei_m:
  print('Heisei')
elif  d < heisei_d:
  print('Heisei')
else:
  print('TBD')

from sys import stdin


year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 1

if y < heisei_y:
  print('Heisei')
elif  m < heisei_m:
  print('Heisei')
elif  d <= heisei_d:
  print('Heisei')
else:
  print('TBD')

from sys import stdin


year, month, date = stdin.readline().rstrip().split(sep='/')

y = int(year)
m = int(month)
d = int(date)

heisei_y = 2019
heisei_m = 4
heisei_d = 30

if y < heisei_y:
  print('Heisei')
elif  (y == heisei_y) and (m < heisei_m):
  print('Heisei')
elif  ((y == heisei_y) and m == heisei_m) and (d <= heisei_d):
  print('Heisei')
else:
  print('TBD')



Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
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):
N = int(input())
m = 0
for _ in range(N):
    x,u = map(str,input().split())
    x = float(x)
    if u == "JPY":
        m += x
    else:
        m += x*380000
print(m)


S = input()
A = sorted([S,"2019/4/30"])
if A[0] == "2019/4/30":
    print("Heisei")
else:
    print("TBD")

S = input()
A = sorted([S,"2019/04/30"])
if A[0] == A[1]:
    print("Heisei")
elif A[0] == "2019/04/30":
    print("TBD")
else:
    print("Heisei")


Verdicts: Runtime Error

Wrong Answer

Accepted
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):
N, A, B, C = map(int, input().split())
l = [int(input()) for i in range(N)]
INF = 10**9

def dfs(cur, a, b, c):
    if cur == N:
        return abs(a-A) + abs(b-B) + abs(c-C) - 30 if min(a,b,c)>0 else INF

    ans = INF
    ans = min(ans, dfs(cur+1, a, b, c))
    ans = min(ans, dfs(cur+1, a + l[cur], b, c)+10)
    ans = min(ans, dfs(cur+1, a, b+l[cur], c)+10)
    ans = min(ans, dfs(cur+1, a, b, c+l[cur])+10)
    return ans

print(dfs(0, 0, 0, 0))

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

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

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

y, m, d = map(int, input().splite(' '))

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

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Accepted
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()

S_l=S.split('/')

if int(S_l[1]>4:
       print('TBD')
else:
       print('Heisei')

S=input()

S_l=S.split('/')

if int(S_l[1])>4:
       print('TBD')
else:
       print('Heisei')

Verdicts: Runtime Error

Accepted
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()

year = int(s[:4])
month = int(s[5:7])

print(month)

if year < 2019:
	print("Heisei")
	quit()

if year >= 2020:
	print("TBD")
	quit()

if year==2020 and month >= 5:
	print("TBD")
	quit()
else:
	print("Heisei")

s = input()

year = int(s[:4])
month = int(s[5:7])


if year < 2019:
	print("Heisei")
	quit()

if year >= 2020:
	print("TBD")
	quit()

if year==2019 and month >= 5:
	print("TBD")
	quit()
else:
	print("Heisei")

Verdicts: Wrong Answer

Accepted
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()
s = s.replace('/','')
print(s)

result = int(s)
if result <= 20190430:
    print("Heisei")
else:
    print("TBD")

s = input()
s = s.replace('/','')

result = int(s)
if result <= 20190430:
    print("Heisei")
else:
    print("TBD")

Verdicts: Wrong Answer

Accepted
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):
a, b, c = input().split("/")
print("TBD" if b > 4 else "Heisei")

a, b, c = input().split("/")
print("TBD" if int(b) > 4 else "Heisei")


Verdicts: Runtime Error

Accepted
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):
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 24 21:00:58 2019

@author: Wataru
"""

S=input()

Stmp=S.split('/')

YY=int(Stmp[0])
MM=int(Stmp[1])
DD=int(Stmp[2])

if YY<2019:
    print('Heisei')
else:
    if MM<4:
        print('Heisei')
    else:
        print('TBD')
            

# -*- coding: utf-8 -*-
"""
Created on Sun Feb 24 21:00:58 2019

@author: Wataru
"""

S=input()

Stmp=S.split('/')

YY=int(Stmp[0])
MM=int(Stmp[1])
DD=int(Stmp[2])

if YY<2019:
    print('Heisei')
else:
    if MM<5:
        print('Heisei')
    else:
        print('TBD')
            

Verdicts: Wrong Answer

Accepted
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 int(S[6]) <= '4':
	print('Heisei')
else:
	print('TBD')


S = input()
if int(S[5:7]) <= 4:
	print('Heisei')
else:
	print('TBD')


Verdicts: Runtime Error

Accepted
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):

haikus = input().split(",")
for haiku in haikus:
    print(haiku)

print("Heisei" if int(input()[5:7]) < 5 else "TBD")


Verdicts: Wrong Answer

Accepted
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):
n=int(input())
z=0
for i in range(n):
  a,b=intput().split()
  a=float(a)
  z+=a*380000 if b=="BTC" else a
print(z)

n=int(input())
z=0
for i in range(n):
  a,b=input().split()
  if b=="BTC":
    z += a*380000
  else:
    z += a
print(z)

s=input()
if(s-"2019/4/30" >0):
   print("TBD")
else:
   print("Heisei")

s=input()
if(s-2019/4/30 >0:
   print("TBD")
else:
   print("Heisei")

s=input()
if(s-"2019/04/30" >0):
   print("TBD")
else:
   print("Heisei")

s=input()
if(s-2019/4/30 >0):
   print("TBD")
else:
   print("Heisei")

n=int(input())
z=0
for i in range(n):
  a,b=input().split()
  if b=="BTC":
    z += float(a)*380000
  else:
    z += int(a)
print(z)

n=int(input())
z=0
for i in range(n):
  a,b=intput().split()
  a=float(a)
  z += a*380000 if b=="BTC" else a
print(z)

s=input()
if(s-'2019/04/30' >0):
   print("TBD")
else:
   print("Heisei")

s=input()
if(s>"2019/04/30"):
   print("TBD")
else:
   print("Heisei")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
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):
from datetime import datetime
s = input()
t = datetime.strptime(s, '%Y/%m/%d')
thres = datetime(2019, 4, 30)
print('heisei' if t <= thres else 'TBD')


from datetime import datetime
s = input()
t = datetime.strptime(s, '%y/%m/%d')
thres = datetime(2019, 4, 30)
print('heisei' if t <= thres else 'TBD')


from datetime import datetime
s = input()
t = datetime.strptime(s, '%Y/%m/%d')
thres = datetime(2019, 4, 30)
print('heisei' if t <= thres else 'TBD')


from datetime import datetime
s = input()
t = datetime.strptime(s, '%Y/%m/%d')
thres = datetime(2019, 4, 30)
print('Heisei' if t <= thres else 'TBD')


Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Accepted
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):
y, m, d = map(int, input().split("/"))

result = "TBD"
if y < 2019:
  result = "heisei"
elif m < 5:
  result = "heisei"

print(result)

y, m, d = map(int, input().split("/"))

result = "TBD"
if y < 2019:
  result = "Heisei"
elif m < 5:
  result = "Heisei"

print(result)

Verdicts: Wrong Answer

Accepted
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 = str(input())
a = s.split('/')
if a[1]<=2019 and a[1] <=4 and a[2]<=30:
    print('Heisei')
else:
    print('TBD')

s = str(input())
a = list(map(int,s.split('/')))
if a[1]<=2019 and a[1] <=4 and a[2]<=30:
    print('Heisei')
else:
    print('TBD')

Verdicts: Runtime Error

Accepted
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):
input = str(input())
input.split('/')

if input[1] != '10':
  input[1].replace('0', '')
input = int(input)

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

s = input()
m = int(s[5:7])
if m <= 4:
  print("Heisei")
else:
  print("TBD")

Verdicts: Runtime Error

Accepted
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):
print(["TBD","Heisei"][int(20190430>=int(str(input()).replace("/","")))]

print(["TBD","Heisei"][int(20190430>=int(str(input()).replace("/","")))])




Verdicts: Runtime Error

Accepted
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().split('/')
if int(s[0])<2018:print('Heisei')
elif int(s[1])==2019 and int(s[2])<=4:print('Heisei')
else:print('TBD')

s=input().replace('/','').strip()
if s<=20190430:print('Heisei')
else:print('TBD')

s1,s2,s3=input().split('/')
if s1<2018:print('Heisei')
elif s1=='2019' and s2<='04':print('Heisei')
else:print('TBD')

s=str(input().replace('/','').strip())
if s<=20190430:print('Heisei')
else:print('TBD')

s1,s2,s3=input().split('/')
s=s1+s2+s3
if s<=20190430:print('Heisei')
else:print('TBD')

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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
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):
import datetime
t = datetime.datetime.strptime("2019/04/30","%Y/%m/%d")
s = datetime.datetime.strptime(input(),"%Y/%m/%d")
print("Heise") if t>=s else print("TBD")

import datetime
t = datetime.datetime.strptime("2019/04/30","%Y/%m/%d")
s = datetime.datetime.strptime(input(),"%Y/%m/%d")
print("Heisei") if t>=s else print("TBD")

Verdicts: Wrong Answer

Accepted
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()
print(["Heisei,""TBD"][int(S[5:7]+S[8:10])>430])

print(["Heisei","TBD"][input()[5:7]>"04"])

Verdicts: Runtime Error

Accepted
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):
input = list(map(int, input().split("/")))

heisei=20190430
input_kai=int(str(input[0])+str(input[1])+str(input[2]))

if heisei<input_kai+1:
    print("Heisei")
else:
    print("TBD")


input = list(map(str, input().split("/")))

heisei=20190430

input_kai=int(str(input[0])+input[1].zfill(2)+input[2].zfill(2))
print(input_kai)

if input_kai<=heisei:
    print("Heisei")
else:
    print("TBD")


input = list(map(str, input().split("/")))

heisei=20190431

input_kai=int(str(input[0])+input[1].zfill(2)+input[2].zfill(2))
print(input_kai)

if heisei>=input_kai:
    print("Heisei")
else:
    print("TBD")


input = list(map(str, input().split("/")))

heisei=20190430
input_kai=int(input[0].zfill(4)+input[1].zfill(2)+input[2].zfill(2))

if input_kai<=heisei:
    print("Heisei")
else:
    print("TBD")


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
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()
s = s.replace("/", "")
if s <= 20190430 :
    print("Heisei")
else :
    print("TBD")

s = input()
s = int(s.replace("/", ""))
if s <= 20190430 :
    print("Heisei")
else :
    print("TBD")

Verdicts: Runtime Error

Accepted
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):
from sys import stdin

arr = list(map(int, stdin.readline().split('/')))
if arr[0] > 2019:
  print('Heisei')
else:
  if arr[1] > 4:
    print('Heisei')
  else:
    if arr[2] > 31:
      print('Heisei')
    else:
      print('TBD')

from sys import stdin

arr = list(map(int, stdin.readline().split('/')))
if arr[0] > 2019:
  print('TBD')
else:
  if arr[1] > 4:
    print('TBD')
  else:
    if arr[2] > 30:
      print('TBD')
    else:
      print('Heisei')


Verdicts: Wrong Answer

Accepted
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().split('/')
if s[0] <= 2018:
    print('Heisei')
elif s[0] == 2019 and s[1] <=4:
    print('Heisei')
elif s[0] == 2019 and s[1] >= 5:
    print('TBD')
elif s[0] >= 2020:
    print('TBD')


s =list(map(int,input().split('/')))

if s[0] <= 2018:
    print('Heisei')
elif s[0] == 2019 and s[1] <=4:
    print('Heisei')
elif s[0] == 2019 and s[1] >= 5:
    print('TBD')
elif s[0] >= 2020:
    print('TBD')


Verdicts: Runtime Error

Accepted
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):
a = input()
a = int(str.replace(a, "/", ""))
if a <= 20190430:
    print("heisei")
else:
    print("TBD")


a = input()
a = int(str.replace(a, "/", ""))
if a <= 20190430:
    print("Heisei")
else:
    print("TBD")

Verdicts: Wrong Answer

Accepted
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>"2019/04/30"):
  print("Heisei")
else:
  print("TBD")

Y,M,D=map(int,input().split("/"))
if((Y<=2019 and M <= 4 and D <= 30) or Y<= 2018):
  print("Heisei")
else:
  print("TBD")

Verdicts: Wrong Answer

Accepted
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):
y,m,d = map(int,input().split(/))
if y<2019 or (y==2019 and m <= 4):
  print("Heisei")
else:
  print("TBD")

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

Verdicts: Runtime Error

Accepted
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):
import datetime as dt
S_T='2019/04/30'
S_T=dt.datetime.strptime(S_T,'%Y/%m/%d')
S=input()
S=dt.datetime.strptime(S,'%Y/%m/%d')

t_delta=S-S_T
if t_delta.days < 0:
    print('Heisei')
else:
    print('TBD')


aa=2


import datetime as dt
S_T='2019/04/30'
S_T=dt.datetime.strptime(S_T,'%Y/%m/%d')

S=input()
S=dt.datetime.strptime(S,'%Y/%m/%d')

t_delta=S-S_T
if t_delta.days <= 0:
    print('Heisei')
else:
    print('TBD')

Verdicts: Wrong Answer

Wrong Answer

Accepted
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):
a, b, c = map(int, input().split("/"))
print("heisei") if b <= 4 else print("TBD")

a, b, c = map(int, input().split("/"))
print("Heisei") if b <= 4 else print("TBD")

Verdicts: Wrong Answer

Accepted
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()
s = S.split('/')
ss = int(s[1])
res = 'aaa'

if ss<=4:
	res = "heisei"

if ss >=5:
	res = "TBD"
print(res)

S = input()
s = S.split('/')
ss = int(s[1])
res = 'aaa'

if ss<=4:
	res = "Heisei"

if ss >=5:
	res = "TBD"
print(res)

Verdicts: Wrong Answer

Accepted
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):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
S=input()

if A<="2019/04/30":
	print("Heisei")
else:
	print("TBD")

import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
S=input()

if S<="2019/04/30":
	print("Heisei")
else:
	print("TBD")

Verdicts: Runtime Error

Accepted
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):
day = list(map(int, input().split("/")))

if day[0] <= 2019:
    if day[1] <= 4:
        if day[2] <= 30:
            print("heisei")
            exit()
print("TBD")


day = list(map(int, input().split("/")))

if day[0] <= 2019:
    if day[1] <= 4:
        if day[2] <= 30:
            print("Heisei")
            exit()
print("TBD")


Verdicts: Wrong Answer

Accepted
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[6] >= 5:
    print('TBD')
else:
    print('Heisei')

a,b,c = map(int,input().split('/'))
if a > 2019 or a == 2019 and b >= 5:
    print('TBD')
else:
    print('Heisei')

Verdicts: Runtime Error

Accepted
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 = list(map(int, input().split("/")))
if S[0] < 2019:
    print("TBD")
elif S[0] == 2019 and S[1] <= 4:
    print("TBD")
else:
    print("Heisei")

y, m, d = map(int, input().split("/"))
print('Heisei' if y*10000 + m*100 + d <= 20190430 else "TBD")

Verdicts: Wrong Answer

Accepted