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):
s = sorted(input())
t = sorted(input())[:: -1]
print("Yes" if s < t else "No")


S = input()
print('Heisei' if S <= '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):
x = input()
yyyy, mm, dd = x.split("/")
if mm <= 4:
  print("Heisei")
else:
  print("TBD")
exit(0)

x = input()
yyyy, mm, dd = x.split("/")
if mm <= 4:
  print("Heisei")
else:
  print("TBD")
  

x = input()
yyyy, mm, dd = x.split("/")
if int(mm) <= 4:
  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):
date = int(input().replace("/", ""))
if date <= 20190430:
    print("Heisei")
else:
    print("TBD")S = list(map(int, input().split("/")))
ans = True
if S[0] > 2019:
    ans = False
elif S[0] == 2019 and S[1] > 4:
    ans = False

if ans:
    print("Heisei")
else:
    print("TBD")

S = list(map(int, input().split("/")))
ans = True
if S[0] > 2019:
    ans = False
elif S[0] == 2019 and S[1] > 4:
    ans = False

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


y, m, d = input().split("/")
if y > 2019:
    print("TBD")
elif y == 2019:
    if m > 5:
        print("TBD")
else:
    print("Heisei")

import bisect

A, B, Q = map(int, input().split())
S = []
for i in range(A):
    S.append(int(input()))
T = []
for i in range(B):
    T.append(int(input()))
X = []
for i in range(Q):
    X.append(int(input()))

for x in X:
    sxi, txi = bisect.bisect_right(S, x), bisect.bisect_right(T, x)
    print(min(abs(s-t)+min(abs(s-x), abs(t-x))
              for s in S[sxi-1:sxi+1] for t in T[txi-1:txi+1]))


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


Verdicts: Wrong Answer

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 int(input().replace("/", ""))<=20190430 else "TBD"

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

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

a=int(input())
a.remove("/","")
print("Heisei" if a<=2019430 else "TBD")

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

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

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

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

a=int(input())
a.rempve("/","")
print("Heisei" if a<=2019430 else "TBD")

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

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


y,m,d=list(map(int,input().split('/')))
if y <= 2019 and m <=4 and d <= 30:
    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()
m= int(S[5:7])
if S>4:
  print('TBD')
else:
  print('Heisei')

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



S = input()
a = int(S[5:7])
if a >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().split('/')
for n in range(3):
    S[n]=int(S[n])
print(S)
if S[0]>=2020 or (S[0]==2019 and S[1]>=5):
    print('TDB')
else:
    print('Heisei')


S=input().split('/')
for n in range(3):
    S[n]=int(S[n])
print(S)
if S[0]>=2020 or (S[0]==2019 and S[1]>=5):
    print('TBD')
else:
    print('Heisei')

print('Heisei' if input() <= '2019/04/30' else '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):
S=input()

if int(S[0:4])<2019:
  print('HEISEI')
elif int(S[0:4])==2019 and int(S[5:7])<=4:
  print('HEISEI')
else:
  print('TBD')

  

S=input()

if int(S[0:4])<2019:
  print('Heisei')
elif int(S[0:4])==2019 and 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):
a, b, c = input().split("/")
if int(a) < 2019:
    print("Heisei")
elif int(a) == 2019 and int(b) <= 4:
    print("Heiesei")
else:
    print("TBD")

a, b, c = input().split("/")
if int(a) < 2019:
    print("Heisei")
elif int(a) == 2019 and int(b) <= 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):
year, month, day = [int(item) for item in S.split('/')]

if (int(year) >= 2019) & (int(month) >= 5):
	print('TBD')
else:
	print('Heisei')

S = input()

year, month, day = [int(item) for item in S.split('/')]

if (int(year) >= 2019) & (int(month) >= 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):
a = input()

if int(a[6:8])<=4:
  print("Heisei")
else:
  print("TBD")

if int(input()[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):
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if(s.compareTo("2019/04/30") <= 0){
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }
}


s = list(map(int, input().split("/")))
if s[1] <= 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):
y, m, d = map(int, input().split('/'))
print(y, m, def)
if m <= 4:
    print("Heisei")
else:
    print("TBD")

y, m, d = map(int, input().split('/'))
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):
# -*- coding: utf-8 -*-

import sys


def main(args):
    S = input()
    yyyy, mm, dd = map(int, S.split('/'))
    if yyyy >= 2019 and mm >= 5:
        print('TBD')
    else:
        print('Helsei')

if __name__ == '__main__':
    main(sys.argv[1:])


# -*- coding: utf-8 -*-

import sys


def main(args):
    S = input()
    yyyy, mm, dd = map(int, S.split('/'))
    if yyyy >= 2019 and mm >= 5:
        print('TBD')
    else:
        print('Heisei')

if __name__ == '__main__':
    main(sys.argv[1:])


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):
day = input().split("/")

month = int(day[1])

if (month >= 5):
    print("TBD")
else:
    print("heisei")


day = input().split("/")

month = int(day[1])

if (month >= 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):
A,B,C=(int(i) for i in input().split("/"))
if B>4:
    print("TBD")
elif B<=4:
    print("heisei")

A,B,C=(int(i) for i in input().split("/"))
if B>4:
    print("TBD")
elif B<=4:
    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):
A,B,C = map(str,input().split("/"))
if int(A) <= 2018:
  print("Heisei")
elif int(A) = 2019,int(B) <=4,int(C)<=30:
  print("Heisei")
else int(A)>=2019:
print("TBD")

A,B,C = map(str,input().split("/"))
if int(A) <= 2018:
  print("Heisei")
elif int(A) = 2019,int(B) <=4,int(C)<=30:
  print("Heisei")
else:
print("TBD")

A,B,C = map(str,input().split("/"))
if int(A) <= 2018:
  print("Heisei")
elif int(A) = 2019,int(B) <=4,int(C)<=30:
  print("Heisei")
elif int(A)>=2019:
print("TBD")

A,B,C = map(str,input().split("/"))
if int(A) <= 2018:
  print("Heisei")
elif int(A) = 2019 and int(B) <=4 and int(C)<=30:
  print("Heisei")
else:
print("TBD")

A,B,C = map(str,input().split())
if A <= 2018:
  print("Heisei")
elif B <=3:
  print("Heisei")
elif C <=29:
  print("Heisei")
else:
  print("TBG")
  


A,B,C = map(str,input().split("/"))
if int(A) <= 2018:
  print("Heisei")
elif int(A) == 2019 and int(B) <=4 and int(C)<=30:
  print("Heisei")
else:
  print("TBD")


Verdicts: 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):
a = input()
if(int(a[5]) = 1):
    print("TBD")
elif(int(a[6]) > 4):
    print("TBD")
else:
    print("Heisei")

a = input()
if(a[5] == "1"):
    print("TBD")
elif(int(a[6]) > 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):

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


heisei = False
heisei = heisei or y < 2019
heisei = heisei or y == 2019 and m < 4
heisei = heisei or y == 2019 and m == 4 and d <= 30

print("Heisei" if heisei else "TBD")



y,m,d=input().split()

heisei = False:
heisei = heisei or y < 2019:
heisei = heisei or y == 2019 and m < 4
heisei = heisei or y == 2019 and m == 4 and d <= 30:

print("Heisei" if heisei else "TBD")



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


heisei = False
heisei = heisei or y < 2019
heisei = heisei or y == 2019 and m < 4
heisei = heisei or y == 2019 and m == 4 and d <= 30

print("Heisei" if heisei else "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):
s = input()
if s[5] = "1":
  print("TBD")
elif int(s[6]) >= 5:
  print("TBD")
else:
  print("Heisei")

s = input()
if s[5] == "1":
  print("TBD")
elif int(s[6]) >= 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):
import datetime

# if not (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')):

# else:
#     print('TBD')
a  = (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')).days
print(a)
if a >= 0:
    print('Heisei')
else:
    print('TBD')

import datetime

a  = (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')).days

print('Heisei' a >= 0 else 'TBD')


import datetime

a  = (datetime.datetime.strptime('2019/04/30', '%Y/%m/%d') - datetime.datetime.strptime(input(), '%Y/%m/%d')).days

print('Heisei'a >= 0 else 'TBD')


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

Verdicts: Wrong Answer

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


S = input()
if S > "2019/04/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()

print(s[:4])
print(s[5:7])
print(s[:4])

if int(s[:4]) <= 2019:
    if int(s[5:7]) <= 4:
        if int(s[8:]) <= 30:
            print("Heisei");exit()
print("TBD")


s = input()
a = int(s[:4])
b = int(s[5:7])
c = int(s[8:])
n = a * 10000 + b * 100 + c
if n <= 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):
N=int(input())
s=[input().split() for i in range(N)]
M=0
for i in range(N):
  p=int(i)
  if s[p][1]=="JPY":
    M=M+float(s[p][0])
  else:
    M=M+float(s[p][0])*380000.0
print(M)



a,b,c=map(int, input().split("/"))

if a<2019:
    print("Heisei")
elif a>2019:
    print("TBD")
else :
    if b<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):
a,b,c = map(int,input().split())

x = b // a

if x <= c:
	print(x)

else:
	print(c)

a,b,c = map(int,input().split())

x = b // a

if x <= c:
	print(x)

else:
	print(c)


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

if S[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().split("/")

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

S = input().split("/")


if int(S[0])>= 2020:
  print("TBD")
elif int(S[0]) == 2019:
  if int(S[1]) >=5:
    print("TBD")
  else:
    print("Heisei")
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()
sy = int(s[0:4])
sm = int(s[5:7])
sd = int(s[8:10])
if sy > 2019:
    print("TBD")
elif sy < 2019:
    print("Heisei")
else:
    if sm > 4:
        print("TBD")
    elif sm < 4:
        print("Heisei")


s = input()
sy = int(s[0:4])
sm = int(s[5:7])
sd = int(s[8:10])
if sy > 2019:
    print("TBD")
elif sy < 2019:
    print("Heisei")
else:
    if sm > 4:
        print("TBD")
    elif sm <= 4:
        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):

import datetime

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


import datetime

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

nexts = s.replace("/","")

sint = int(nexts)

print(sint)


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


s = str(input())

nexts = s.replace("/","")

sint = int(nexts)

print(sint)


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


s = str(input())

nexts = s.replace("/","")

sint = int(nexts)

print(sint)


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


s = str(input())

nexts = s.replace("/","")

sint = int(nexts)

if sint <= 20190430:
    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):
y,m,d = input().split("/")
flag = False
if(int(y) > 2019) :
  flag = True
elif(int(y) == 2019):
  if(m>=5):
    flag = True
print("TBD" if flag else "Heisei")

y,m,d = input().split("/")
flag = False
if(int(y) > 2019) :
  flag = True
elif(int(y) == 2019):
  if(int(m)>=5):
    flag = True
print("TBD" if flag 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):
import bisect
import itertools
 
a, b, q = map(int, input().split())
ss, tt = [], []
for _ in range(a):
  ss.append(int(input()))
for _ in range(b):
  tt.append(int(input()))
  
for _ in range(q):
  x = int(input())
  md = pow(10, 15)
  xs, xt = bisect.bisect_left(ss, x), bisect.bisect_left(tt, x)
  ls, rs, lt, rt = ss[max(0, xs-1)], ss[min(a-1, xs)], tt[max(0, xt-1)], tt[min(b-1, xt)]
  for s, t in itertools.product([ls, rs], [lt, rt]):
    if s > t:
      if t > x:
        md = s - x if s - x < md else md
      elif s > x:
        if md > 2 * (s-x) + x-t:
          md = 2 * (s-x) + x-t
        if md > 2 * (x-t) + s-x:
          md = 2 * (x-t) + s-x
      else:
        md = x - t if x - t < md else md
    else:  # t > s
      if s > x:
        md = t - x if t - x < md else md
      elif t > x:
        if md > 2 * (x-s) + t-x:
          md = 2 * (x-s) + t-x
        if md > 2 * (t-x) + x-s:
          md = 2 * (t-x) + x-s
      else:
        md = x - s if x - s < md else md
  print(md)

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

print(solve())

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 sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.buffer.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.buffer.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

s = rr()
if s[5:5+2] > '04':
  print('Heisei')
else:
  print('TBD')














import sys

rr = lambda: sys.stdin.readline().rstrip()

s = rr()
if s[5:7] > '04':
  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):
def main() -> None:
    S = input()
    Y, M, D = S.split("/")
    if int(Y) >= 2019 and int(M) <= 4:
        print("HEISEI")
    else:
        print("TBD")



if __name__ == '__main__':
    main()


def main() -> None:
    S = input()
    Y, M, D = S.split("/")
    if int(Y) >= 2019 and int(M) <= 4:
        print("Heisei")
    else:
        print("TBD")



if __name__ == '__main__':
    main()


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()
l=S.split('/')
if l[0]<=2019:
    if l[1]<=4:
        if l[2]<=30:
            print('Heisei')
            exit()
    print('TBD')

S=input()
l=S.split('/')
if int(l[0])<=2019:
    if int(l[1])<=4:
        if int(l[2])<=30:
            print('Heisei')
            exit()
    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 sys
 
v = []
for line in sys.stdin:
    v.append([i for i in line.split()])
 
m = 0
for a, b in v[1:]:
  a = float(a)
  if b == "JPY":
    m += a
  else:
    m += 380000.0 * a
print(m)

import sys

v = ""
for line in sys.stdin:
    v = [int(i) for i in line.split("/")]

if v[0] < 2019:
  print("Heisei")
elif v[0] == 2019 and v[1] <= 2 and v[2] <= 30:
  print("Heisei")
else:
  print("TBD")

  

import sys
 
v = ""
for line in sys.stdin:
    v = [int(i) for i in line.split("/")]
 
if v[0] < 2019:
  print("Heisei")
elif v[0] == 2019 and v[1] <= 4 and v[2] <= 30:
  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):
s = input()
print('Heisei' if S <= '2019/04/30' else 'TBD')

s = input()
print('Heisei' if s <= '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):
def solver():
	a = input().rstrip('\n').split('/')
	print(a)
	if int(a[0]) >= 2019:
		if int(a[1]) >= 4:
			if int(a[2]) >= 30:
				print('TBD')
			else: print('Heisei')
		else: print('Heisei')
	else: print('Heisei')

solver()

def solver():
	a = input().rstrip('\n').split('/')
	if int(a[0]) >= 2019:
		if int(a[1]) >= 4:
			if int(a[2]) >= 30:
				print('TBD')
			else: print('Heisei')
		else: print('Heisei')
	else: print('Heisei')

solver()

def solver():
  a = input().rstrip('\n').split('/')
  if int(a[0]) >= 2019:
  	if int(a[1]) >= 4:
  		if int(a[2]) >= 30:
          print('TBD')
  else:
    print('Heisei')
    
solver()

def solver():
	a = input().rstrip('\n').split('/')
	if int(a[0]) >= 2019:
		if int(a[1]) >= 4:
			if int(a[2]) >= 30:
				print('TBD')
	else:
		print('Heisei')
solver()

def solver():
	a = input().rstrip('\n').split('/')
	if int(a[0]) > 2019:
		print('TBD')
	elif int(a[0]) < 2019:
		print('Heisei')
	else:
		if int(a[1]) > 4:
			print('TBD')
		elif int(a[1]) < 4:
			print('Heisei')
		else:
			if int(a[2]) > 30:
				print('TBD')
			elif int(a[2]) < 30:
				print('Heisei')
			else:
				print('Heisei')

solver()

Verdicts: Wrong Answer

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('/'))
if y>2019:
	print("TBD")
elif m>4:
	print("TBD")
elif y>30:
	print("TBD")
else:
	print("Heisei")

y,m,d=map(int, input().split('/'))
if y>2019:
	print("TBD")
elif m>4:
	print("TBD")
elif d>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):
a = input().split()
if int(a[6]) < 4:
  print("Heise")
elif int(a[6]) == 4 and int(a[8]) < 3:
  print("Heisei")
else:
  print("TBD")

a = input().split()
if a[6] < 4:
  print("Heisei")
elif a[6] == 4 and a[8] < 3:
  print("Heisei")
else:
  print("TBD")

a = input().split("/")
if int(a[1]) < 4:
  print("Heisei")
elif int(a[1]) == 4 and int(a[2]) < 30:
  print("Heisei")
else:
  print("TBD")


a = input().split("/")
if int(a[1]) < 4:
  print("Heisei")
elif int(a[1]) == 3 and int(a[2]) < 30:
  print("Heisei")
else:
  print("TBD")

a = input().split("/")
if int(a[1]) < 4:
  print("Heisei")
elif int(a[1]) == 4 and int(a[2]) <= 30:
  print("Heisei")
else:
  print("TBD")


Verdicts: Runtime Error

Runtime Error

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 s <= '2019/04/30':
  print('Heisei')
print('TBD')

s = input()
if s <= '2019/04/30':
  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().split('/')
if(int(s[0]) >= 2020):
   print("TBD")
elif(int(s[0]) == 2019):
  s[1] = s[1].replace("0", "")
  s[1] = int(s[1])
  if(s[2][0] == "0"):
    s[2] = s[2].replace("0", "")
    s[2] = int(s[2])
  else:
    s[2] = int(s[2])
  if(s[1] > 4):
    print("TBD")
  elif(s[1] == 4):
    if(s[2] >= 30):
      print("TBD")
    else:
      print("Heisei")
  else:
    print("Heisei")
else:
  print("Heisei")

s = input().split('/')
if(int(s[0]) >= 2020):
   print("TBD")
elif(int(s[0]) == 2019):
  if(s[1][0] == "0"):
  	s[1] = s[1].replace("0", "")
  	s[1] = int(s[1])
  else:
    s[1] = int(s[1])
  if(s[2][0] == "0"):
    s[2] = s[2].replace("0", "")
    s[2] = int(s[2])
  else:
    s[2] = int(s[2])
  if(s[1] > 4):
    print("TBD")
  elif(s[1] == 4):
    if(s[2] >= 30):
      print("TBD")
    else:
      print("Heisei")
  else:
    print("Heisei")
else:
  print("Heisei")

a = input()
if(a > "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):
a = input()
if a[6] > 4:
  print('TBD')
elif a[6] < 3:
  print('heisei')
else:
  if a[8] < 2:
    print('heisei')
  else:
    if a[9] > 0:
      print('heisei')
    else:
      print('TBD')
 

a = input()
if int(a[5]) == 1:
  print('TBD')
else:
  if int(a[6]) > 4:
    print('TBD')
  else:
    print('heisei')

a = input()
if int(a[5]) != 1:
  if int(a[6]) > 4:
    print('TBD')
  elif int(a[6]) < 3:
    print('heisei')
  else:
    if int(a[8]) < 2:
      print('heisei')
    else:
      if int(a[9]) > 0:
        print('heisei')
      else:
        print('TBD')
else:
  print('TBD')

a = input()
if a < '2019/05/01':
  print('Heisei')
else:
  print('TBD')

Verdicts: Runtime Error

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 = input()
if a[5] == "1":
  print("TBD")
elif int(a[6]) >= 5:
  print("TBD")
else:
  print("heisei")

a = input()
if a[5] == "1":
  print("TBD")
elif int(a[6]) >= 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):
import datetime
y,m,d = map(int,input().split("/"))
if datetime.date(2019,4,30) < datetime.date(y,m,d):
    print("TBD")
else:
    print("Heisei")
print(datetime.date(y,m,d))

import datetime
y,m,d = map(int,input().split("/"))
if datetime.date(2019,4,30) < datetime.date(y,m,d):
    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()
t = '2019/04/30'
if s <= t:
    print("YES")
else:
    print("NO")

s = input()
t = '2019/04/30'
if s <= t:
    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

S = list(map(int, input().split('/')))
X = [2019, 4, 30]

print('Heisei') if all([S[i] <= X[i] for i in range(3)]) 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):
def main():
    n = int(input())
    total = 0

    for line in range(0, n):
        total += calc(total)

    print(total)

def calc(total):
    x, u = map(str, input().split())

    if u == "JPY":
        total += int(x)
        return total

    if u == "BTC":
        total += float(x) * 380000
        return total


if __name__ == '__main__':
    main()


def main():
    n = int(input())
    total = 0

    for line in range(0, n):
        total += calc()

    print(total)


def calc():
    x, u = map(str, input().split())

    if u == "JPY":
        return int(x)

    if u == "BTC":
        return float(x) * 380000


if __name__ == '__main__':
    main()


# -*- coding: utf-8 -*-

import datetime

date = input()
date1 = datetime.datetime.strptime(date, '%Y/%m/%d')

date2 = datetime.datetime(2019, 4, 30)

if date2 >= date1:
    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):
S = input().split('/')

print(S)

if int(S[0]) > 2019:
    print('TBD')
elif S[0] == '2019' and S[1] > '05':
    print('TBD')
else:
    print('Heisei')

S = input().split('/')

print(S)

if int(S[0]) > 2019:
    print('TBD')
elif S[0] == '2019' and S[1] > '05':
    print('TBD')
else:
    print('Heisei')

S = input().split('/')

if S[1] >= '05':
    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):
a,b,c = map(int,input().split("/"))
if a >=2019 && b >= 5:
    print('TBD')
else:
    print('Heisei')

a,b,c = map(int,input().split("/"))
if 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):
#!/usr/bin/python
import datetime

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

    if tdatetime.month <= 4:
        print('HEISEI')
    else:
        print('TBD')

if __name__ == "__main__":
    main()

#!/usr/bin/python
import datetime

def main():
    S = str(input())
    tdatetime = datetime.datetime.strptime(S, '%Y%m%d')

    if tdatetime.month <= 4:
        print('HEISEI')
    else:
        print('TBD')

if __name__ == "__main__":
    main()

#!/usr/bin/python
import datetime

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

    if tdatetime.month <= 4:
        print('Heisei')
    else:
        print('TBD')

if __name__ == "__main__":
    main()

Verdicts: 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):
date = input().split("/")
    sum = int(date[0]) * 365 + int(date[1]) * 30 + int(date[2])

    if 737085 < sum:
        print("TBD")
    else:
        print("Heisei")

date = input().split("/")
sum = int(date[0]) * 365 + int(date[1]) * 30 + int(date[2])

if 737085 < sum:
    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()
if int(s[:4]) > 2019:
  print("Heisei")
elif int(s[5:7]) >= 5:
  print("Heisei")
else:
  print("TBD")

s = input()
if int(s[:4]) > 2019:
  print("TBD")
elif int(s[5:7]) >= 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):
print("2019/04/30" if input() <= "2019/04/30" else "TBD")

print("Heisei" if input() <= "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 datetime

x = input()

y = datetime.date(2019, 4, 30)
x_date = datetime.date(x.replace('/', ','))

if x_date <= y
    print('Heisei')
else
    print('TBD')


import datetime

x = input()
x_date = datetime.datetime.strptime(x, '%Y/%m/%d')

y = datetime.datetime(2019, 4, 30, 0, 0, 0)

if x_date <= y :
    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[5] == '1':
  print('TBD')
else:
  if s[6] > 4:
    print('TBD')
  else:
    print('Heisei')

S = list(input())
a = int(S[5]+S[6])

if a <= 4:
    ans = "Heisei"
else:
    ans = "TBD"
print(ans)


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
d1 = input().split("/")

y = int(d1[0])
m = int(d1[1])
d = int(d1[2])

dd = datetime.date(y,m,d)
d2 = datetime.date(2019,4,30)

if dd =< d2:
  print("Heisei")
else:
  print("TBD")

import datetime
d1 = input().split("/")

y = int(d1[0])
m = int(d1[1])
d = int(d1[2])

dd = datetime.date(y,m,d)
d2 = datetime.date(2019,4,30)

if dd < d2:
  print("Heisei")
else:
  print("TBD")

import datetime
d1 = input().split("/")

y = int(d1[0])
m = int(d1[1])
d = int(d1[2])

dd = datetime.date(y,m,d)
d2 = datetime.date(2019,4,30)

if dd <= d2:
  print("Heisei")
else:
  print("TBD")

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):
print("Heisei" if input() <= 2019/04/30 else "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):
a, b, c=map(int, input().split(/))
if a>=2020:
  print("TBD")
elif a==2019 and b>=5:
  print("TBD")
else:
  print("Heisei")

a, b, c=map(int, input().split("/"))
if a>=2020:
  print("TBD")
elif 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):
from datetime import datetime

S = input()

nowDate = datetime.strptime(S, '%Y/%m/%d')
lastDate =datetime.strptime('2019/04/30', '%Y/%m/%d')

if lastDate < nowTime:
	print("TBD")
else:
	print("Heisei")

from datetime import datetime

S = input()

nowDate = datetime.strptime(S, '%Y/%m/%d')
lastDate =datetime.strptime('2019/04/30', '%Y/%m/%d')

if lastDate < nowDate:
	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()

y, m, d = map(int, S.split('/'))

print(y)
print(m)

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


S = input()

y, m, d = map(int, S.split('/'))

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


Verdicts: Wrong Answer

Accepted