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


import datetime

S = input()
ans = "TBD"
datetime.datetime.strptime(S, '%Y/%M/%d')
tbd=datetime(2019/4/30)
if S <= tbd:
    ans="Heisei"
print("ans")


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

S = input()
year = int(S[:4])
month = int(S[5:7])
if year < 2019:
    print('Heisei')
elif year == 2019:
    if month > 4:
        print('TBD')
    else:
        print('Heisei')
else:
    print('TBD'

S = input()
year = int(S[:4])
month = int(S[5:7])
if year < 2019:
    print('Heisei')
elif month < 5:
    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 = int(''.join(input.split('/')))
if(s <= 20190430):print('Heisei')
else:print('TBD')

s = int(''.join(input().split('/')))
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):
import bisect
a, b, q = map(int, input().split())
inf = 10**18
s = [-inf] + [int(input()) for i in range(a)] + [inf]
t = [-inf] + [int(input()) for i in range(b)] + [inf]

for i in range(q):
  x = int(input())
  b, d = bisect.bisect_right(s, x), bisect.bisect_right(t, x)
  res = inf
  for S in [s[b-1], s[b]]:
    for T in [t[d-1], t[d]]:
      d1, d2 = abs(S-x) + abs(T-S), abs(T-x) + abs(S-T)
      res = min(d1, d2, res)
  print(res)


print('Heisei' if int(input().replace('/',''))<=20190430 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().split('/')
if S[1] == '4':
	print('Heisei')
else:
	print('TBD')

S=input().split('/')
S=[int(i) for i in S]
if S[1] <= 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):
def main():
    N = int(input())
    lst = [input().split()for i in range(N)]
    Y = 0

    for i in range(0, N):
        if str(lst[i][1]) == "JPY":
            Y += float(lst[i][0])
        else:
            Y += float(lst[i][0])*380000.0
    print(Y)


if __name__ == "__main__":
    main()




def main():
    N = int(input())
    lst = [input().split()for i in range(N)]
    Y = 0

    for i in range(0, N):
        if lst[i][1] == "JPY":
            Y += float(lst[i][0])
        else:
            Y += float(lst[i][0])*380000.0
    print(Y)


if __name__ == "__main__":
    main()

def main():
    N = int(input())
    lst = [input().split()for i in range(N)]
    Y = 0

    for i in range(0, N):
        if lst[i][1] == "JPY":
            Y += float(lst[i][0])
        else:
            Y += float(lst[i][0])*380000.0
    print(Y)


if __name__ == "__main__":
    main()


def main():
    N = int(input())
    lst = [input().split()for i in range(N)]
    Y = 0

    for i in range(0, N):
        if lst[i][1] == "JPY":
            Y += float(lst[i][0])
        else:
            Y += float(lst[i][0])*380000.0
    print(Y)


if __name__ == "__main__":
    main()


from datetime import datetime


def main():
    S = datetime.strptime(input(), "%Y/%m/%d")
    if(S <= datetime(2019, 4, 30)):
        print("Heisei")
    else:
        print("TBD")


if __name__ == "__main__":
    main()


Verdicts: 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,b,c=map(int,input()split("/"))
print("Heisei" if b*10+c<=70 else "TBD")
  

a,b,c=map(int,input()split("/"))
print("Heisei" if b*10+c>=70 else "TBD")
  

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

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

Verdicts: Runtime Error

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

s=list(map(int,input().split("/")))
if (s[0]==2019 and s[1]<=4) or (s[0]<2019):
  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().replace('/','')
if s[4:5] == 1:
  return TBD
else:
  if s[5:6] > 4:
    return TBD
  else:
    return Heisei


s = input().replace('/','')
if s[4:5] == 1:
  print('TBD')
else:
  if s[5:6] > 4:
    print('TBD')
  else:
    print('Heisei')


s = input().replace('/','')
if s[4:5] == '1':
  print('TBD')
else:
  if int(s[5:6]) > 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()
year = int(s[0:4])
month = int(s[5:7])

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

s = input()
year = int(s[0:4])
month = int(s[5:7])
 
if year >= 2019 and 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):
s = input()
if s[4] == '0' and s[5] == '1' or s[5] == '2'or s[5] == '3' or s[5] == '4':
  print('Heisei')
else:
  print('TBD')

s = input()
mm = int(s[5:7])
if mm <= 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 = (int(i) for i in input().split('/'))
n = a*1e7 + b*1e3 + c*10
if n > 20190430:
  print('TBD')
else:
  print('Heisei')

s = input().split('/')
if int(s[0]+s[1]+s[2]) > 20190430:
  print('Heisei')
else:
  print('TBD')

s = input().split('/')
if int(s[0]+s[1]+s[2]) > 20190430:
  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):
S = input()
S = S.replace('/', '')

if int(S) >= 20190501:
    print('TBD')
else:
    print('heisei')

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

if int(S) >= 20190501:
    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().split("/"))
if m < 5:
  print("heisei")
else:
  print("TBD")


y, m, d = map(int, input().split("/"))
if m < 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 = list(map(int, input().split('/')))
print(s)

s = list(map(int, input().split('/')))
if s[0] == 2018 and s[1] > 4:
  print("TBD")
elif s[0] >2018:
  print("TBD")
else : print("Heisei")

s = list(map(int, input().split('/')))
if s[0] = 2018 and s[1] > 4:
  print("TBD")
elif s[0] >2018:
  print("TBD")
else : print("Heisei")

s = list(map(int, input().split('/')))
if s[0] == 2019 and s[1] > 4:
  print("TBD")
elif s[0] >2019:
  print("TBD")
else : print("Heisei")

Verdicts: Wrong Answer

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

s=input()
if(int(s[6])>4 or int(s[5])==1):
    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()
s = s.remove('/').remove('/')
if int(s) <= 20190430:
	print('Heisei')
else:
	print('TBD') 

s = input()
s = s.replace('/','')
if int(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):
S = input().split("/")
if S[1]<=4:
    print("Heisei")
else:
    print("TBD")

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

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

S = input().split("/")
if int(S[1])<=4:
    print("Heisei")
else:
    print("TBD")

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

if year<2019:
  print("Heisei")
elif year == 2019 && month<5:
  print(Heisei)
else:
  print("TBD")

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

if year<2019:
  print("Heisei")
elif year == 2019 && month<5:
  print("Heisei")
else:
  print("TBD")

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

if year<2019:
  print("Heisei")
elif year == 2019 and month<5:
  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):
import datetime

y, m, d = map(int, input().split('/'))
y, m, d = map(int, dam.split('/'))
if (base_date < datetime.date(y, m, d)):
    return ("TBD")
else:
    return ("Heisei")

import datetime

base_date = datetime.date(2019, 4, 30)
y, m, d = map(int, input().split('/'))
if (base_date < datetime.date(y, m, d)):
    return ("TBD")
else:
    return ("Heisei")

print('Heisei' if input()<'2019/05/01' 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):
def main():
    year, month, day = int(input().strip().split('/'))

    if year < 2019:
        print('Heisei')
        return
    
    if year == 2019:
        if month < 4:
            print('Heisei')
            return
        elif month == 4 and day <= 30:
            print('Heisei')
            return

    print('TBD')
    return

if __name__ == '__main__':
    main()



def main():
    year, month, day = map(int, input().strip().split('/'))

    if year < 2019:
        print('Heisei')
        return
    
    if year == 2019:
        if month < 4:
            print('Heisei')
            return
        elif month == 4 and day <= 30:
            print('Heisei')
            return

    print('TBD')
    return

if __name__ == '__main__':
    main()


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 = input().split("/")
if y * 365 + m * 12 + d > 2019 * 365 + 4 * 12 + 30:
  print("TBD")
else:
  print("Heisei")

y, m, d = map(int, input().split("/"))
if y * 365 + m * 30 + d > 2019 * 365 + 4 * 30 + 30:
  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):
#coding:utf-8
import sys

BAMB_NUM = 0
BAMB_A = 0
BAMB_B = 0
BAMB_C = 0
BAMB_LIST = []

def calcMP(idx, lenA, lenB, lenC):
    # when classified all bamboos
    if (idx == BAMB_NUM):
        # exists a zero length bamboo
        if (lenA <= 0 or lenB <= 0 or lenC <= 0):
            return sys.maxsize
        return abs(lenA - BAMB_A) + abs(lenB - BAMB_B) + abs(lenc - BAMB_C)
    
    # don't use idx-th bamboo
    mp = calcMP(idx+1, lenA, lenB, lenC)

    # use idx-th bamboo
    mp = min(mp, calcMP(idx + 1, lenA + BAMB_LIST[idx], lenB, lenC) + (BAMB_A > 0 ? 10 : 0))
    mp = min(mp, calcMP(idx + 1, lenA, lenB + BAMB_LIST[idx], lenC) + (BAMB_B > 0 ? 10 : 0))
    mp = min(mp, calcMP(idx + 1, lenA, lenB, lenC + BAMB_LIST[idx]) + (BAMB_C > 0 ? 10 : 0))

    return mp

if __name__ == "__main__":
    
    # requested bamboo lengths
    bamb_num, bambA, bambB, bambC = map(lambda x: int(x), input().split())
    # available bamboo lengths
    bamb_list = []
    for bamb in range(bamb_num):
        bamb_list.append(int(input()))

    mp = calcMP(0, 0, 0, 0)
    print(mp)

#coding:utf-8
import sys

BAMB_NUM = 0
BAMB_A = 0
BAMB_B = 0
BAMB_C = 0
BAMB_LIST = []

def calcMP(idx, lenA, lenB, lenC):
    """
    calculate MP.
    """
    # when classified all bamboos
    if (idx == BAMB_NUM):
        return abs(lenA - BAMB_A) + abs(lenB - BAMB_B) + abs(lenC - BAMB_C) - 30 if min(lenA, lenB, lenC) > 0 else sys.maxsize
    
    # don't use idx-th bamboo
    mp1 = calcMP(idx + 1, lenA, lenB, lenC)
    # use idx-th bamboo
    mp2 = calcMP(idx + 1, lenA + BAMB_LIST[idx], lenB, lenC) + 10
    mp3 = calcMP(idx + 1, lenA, lenB + BAMB_LIST[idx], lenC) + 10
    mp4 = calcMP(idx + 1, lenA, lenB, lenC + BAMB_LIST[idx]) + 10

    return min(mp1, mp2, mp3, mp4)

if __name__ == "__main__":
    
    # requested bamboo lengths
    BAMB_NUM, BAMB_A, BAMB_B, BAMB_C = map(lambda x: int(x), input().split())
    # available bamboo lengths
    for bamb in range(BAMB_NUM):
        BAMB_LIST.append(int(input()))

    mp = calcMP(0, 0, 0, 0)
    print(mp)

#coding:utf-8

if __name__ == "__main__":
    date = input()
    year, month, day = date.split("/")

    if int(year) <= 2019:
        if int(month) <= 4:
            if int(day) <= 30:
                print("Heisei")
                exit()
    
    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()
s.strip("/")
s = int(s)
if s <= 20190430:
    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):
n=int(input())
i=0
JPY=0
while n > i:
  i=i+1
  a,b=map(str,input().split())
  a = float(a)
  if b == "JPY":
    JPY=JPY+a
  else:
    JPY=JPY+a*380000
print(JPY)

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

t = datetime.datetime.strptime(input(), "%Y/%m/%d")
if t < (year=2019, month=5, day=1):
    print("Heisei")
else:
  	print("TBD")


import datetime
 
t = datetime.datetime.strptime(input(), "%Y/%m/%d")
if t < (year=2019, month=5, day=1):
    print("Heisei")
else:
    print("TBD")

import datetime
 
t = datetime.datetime.strptime(input(), "%Y/%m/%d")
if t < datetime.datetime(year=2019, month=5, day=1):
    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):
N=int(input())
xu=[list(map(str, input().split())) for _ in range(N)]
total=0
for i in range(N):
    if xu[i][1]=='JPY':
        total+=float(xu[i][0])
    else:
        total+=380000.0*float(xu[i][0])

N=int(input().replace('/',''))
if N <= 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):
a = int(input())

b = []

for i in range(a):
    b.append(input().split())

res = 0

for i in b:
    if (i[1] == 'BTC'):
        res += int(i[0])*380000
    else:
        res += int(i[0])

print(res) 

a = str(input.split())

a = int(a[0][:4]) + int(a[0][5:7]) + int(a[0][8:])

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

a = int(input())

b = []

for i in range(a):
    b.append(input().split())

res = 0

for i in b:
    if (i[1] == 'BTC'):
        res += i[0]*380000
    else:
        res += i[0]

print(res) 

a = str(input.split())

a = int(a[:4]) + int(a[5:7]) + int(a[8:])

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

a = list(map(string, input.split()))

a = int(a[0][:4]) + int(a[0][5:7]) + int(a[0][8:])

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

a = str(input())

a = a[:4] + a[5:7] + a[8:]

a = int(a)

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

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

y,m,d = map(int,input().split("/"))
print("Heisei" * (m <= 4) or "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):
list = S.split("/")
y = int(list[0])
m = int(list[1])
d = int(list[2])

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")

N = int(input())
total = 0.0
rate = 380000

for i in range(N):
  a,t = input().split()
  if(t=="BTC"):
    total += float(a) * rate
  else:
    total += float(a)
print(total)

def(S):

  list = S.split("/")
  y = int(list[0])
  m = int(list[1])
  d = int(list[2])

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

N = input()
total = 0

for i in range(len(N)):
    if (N[i][1]=="BTC"):
        total += float(N[i][0])*380000
    else:
        total += float(N[i][0])
print(total)

list = input().split("/")
y = int(list[0])
m = int(list[1])

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

Verdicts: 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):
S = input()
if S[5:7] >= "04":
	print("TBD")
else:
	print("Heisei")

S = input()
T = input()
if T[0:-1] == S:
  print("Heisei")
else:
  print("TBD")

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

S = input()
if S[5:7] >= "04":
	print("TBD")
else
	print("Heisei")

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

Verdicts: Wrong Answer

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

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

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


ans = "TBD"
S = list(map(int, input().split("/")))
if S[1] <= 4:
    ans = "Heisei"
print(ans)
    


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):
#119-A
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(input())
def S(): return input()
s=input().split("/")
s=s[0]+s[1]+s[2]
s=int(s)
if s<=2019430:
    print("Heisei")
else:
    print("TBD")

#119-A
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(input())
def S(): return input()
s=input().split("/")
s=s[0]+s[1]+s[2]
s=int(s)
if s<=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()
S1 = S[0:4]
if int(S1) < 2019:
    print("TBD")
else:
    if int(S[5]) < 5 and S[6] != "1" and S[6] != "2":
        print("TBD")
    else:
        print("Heisei")

S = input()
S1 = S[0:4]
if int(S1) < 2019:
    print("Heisei")
else:
    if int(S[5:7]) >= 5:
        print("TBD")
    elif int(S[6]) < 5:
        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 = list(int(input()))

if (s[5]*10 + s[6]) <= 4 and (s[8]*10 + s[9]) <=30:
    print("Heisei")
else:
    print("TBD")



s = list(input())

if (int(s[5])*10 + int(s[6])) <= 4 and (int(s[8])*10 + int(s[9])) <=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):
s=int(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: 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):
N = int(input())
SUM = 0
for i in range(N):
    ODM = input().split()
    if ODM[1] == "JPY":
        SUM = SUM + float(ODM[0])
    else:
        SUM = SUM + float(ODM[0])*380000
print(SUM)

import datetime
date = list(map(int,input().split("/")))
date2 = datetime.datetime(date[0],date[1],date[2])
date3 = datetime.datetime(2019,4,30)
if date2 > date3:
    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):
date=input()
yr=slice(int[0:4])
mn=slice(int[5:7])
dy=slice(int[8:10])
if yr <2019:
  print("Heisei")
elif yr >2019:
  print("TBD")
else:
  if mn<4:
    print("Heisei")
  elif mn>4:
    print("TBD")
  else:
    print("Heisei")

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

a,b,c=map(int,input().split("/"))
print(["TBD","Heisei"][(a>=2019) & (b>=5)])

a,b,c=map(int,input().split("/"))
print(["Heisei","TBD"][(a>=2019) & (b>=5)])

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().split('/')
if int(S[0])>=2019:
    if int(S[1])>=5:
        print('TBD')
else:
    print('Heisei')


S = input().split('/')
if int(S[0])>=2019:
    if int(S[1])>=5:
        print('TBD')
    else:
      print('Heisei')
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):
txt = input()
if txt >= "2019/04/30":
    print("TBD")
else:
    print("Heisei")

txt = input()
if txt > "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):
# -*- coding: utf-8 -*-

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

201if int(a[1])<5:
    print("Heisei")
else:
    print("TBD")
    

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

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

if int(a[1])<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()
print('Heisei' if s < '2019/04/30' else 'TBD')

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):
a,b,c = input().split('/')
if int(a) <= 2019 and int(b) <= 4 and int(c) <=30:
    print('heisei')
else:
    print('TBD')

a,b,c = input().split('/')
if int(a) <= 2019 and int(b) <= 4 and int(c) <=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):
y, m, d = map(int, input().split("/")

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

S = input()
if int(S[5])<=0 and int(S[6])<=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()
year = int(S[0:4])
mon = int(S[5:7])
day = int(S[8:])
print(year,mon,day)
if year <= 2019 and 1 <= mon <= 4 and 1 <= day <= 30:
    print("Heisei")
else:
    print("TBD")

S = input()
year = int(S[0:4])
mon = int(S[5:7])
day = int(S[8:])
#print(year,mon,day)
if year <= 2019 and 1 <= mon <= 4 and 1 <= day <= 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()
rei = "2019/04/30"
if int(rei[5:7]) < int(s[5:7]):
	print("TBD")
else:
    print("TBD")

s = input()
rei = "2019/04/30"
if 4 < int(s[5:7]):
	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()
y = int(s[:4])
m = int(s[5:7])
d = int(s[8:10])
print("{0} {1} {2}".format(y,m,d))
if (y>=2019 and m >=5) or (y>2019):
    print("TBD")
else:
    print("Heisei")

s = input()
y = int(s[:4])
m = int(s[5:7])
d = int(s[8:10])
if (y>=2019 and m >=5) or (y>2019):
    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):
from sys import stdin

a = stdin.readline().rstrip().split('/')

if(int(a[1]) > 4):
  print("Heisei")
print("TBD")




from sys import stdin

a = stdin.readline().rstrip().split('/')

if(int(a[1]) > 4) print("Heisei")
print("TBD")




from sys import stdin

a = stdin.readline().rstrip().split('/')

if(int(a[]) > 4) print("Heisei")
print("TBD")




import sys

a = sys.stdin.readline().rstrip().split('/')

if(int(a[1]) > 4):
    print("TBD")
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().split('/')[1]) > 4 else 'TBD')

print('TBD' if int(input().split('/')[1]) > 4 else '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):
year, month, day = map(int, input().split("/"))

# year, month, day = map(int, S.split("/"))
if month >= 5:
  print("TBD")
else:
  print("heisei")

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

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

s = list(map(int,input().split("/")))
if s[1] < 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()
num = int("1" + S[:4] + S[5:7] + S[8:10])
if num >120190430:
    print("TBD")
else: print("heisei")

S = input()
num = int("1" + S[:4] + S[5:7] + S[8:10])
if num >120190430:
    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 = list(map(int,input().split('/')))

if s[0] <= 2019 and s[1] <= 4 and s[2] <= 30:
    print('heisei')
else:
    print('TBD')

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

if s[0] <= 2019 and s[1] <= 4 and s[2] <= 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):
y, m, d = input().split('/')
if m <= 4:
  print('Heisei')
else:
  print('TBD')


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

y,m,d=map(str,input().split('/'))
if int(m[0])==1:
  print('TBD')
elif int(m[1])>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):
import bisect

f_inf = float('inf')


def cal(syurui, d, index):
    if d == 'e':
        return syurui[index]
    elif d == 'w':
        return syurui[index - 1]


A, B, Q = map(int, input().split())
s = [int(input()) for i in range(A)]
s.sort()
t = [int(input()) for i in range(B)]
t.sort()
ｓ.insert(0, -f_inf)
t.insert(0, -f_inf)
ｓ.append(f_inf)
t.append(f_inf)

for i in range(Q):
    x = int(input())
    s_index = bisect.bisect_left(s, x)
    t_index = bisect.bisect_left(t, x)
    print(min(max(abs(x-s[s_index]), abs(x-t[t_index])), max(abs(x-s[s_index-1]), abs(x-t[t_index-1])), 2*abs(x-s[s_index-1])+abs(x-t[t_index]), 2*abs(x-s[s_index])+abs(x-t[t_index-1]), abs(x-s[s_index-1])+2*abs(x-t[t_index]), abs(x-s[s_index])+2*abs(x-t[t_index-1])))


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

if 1 <= S[1] <= 4:
    print('Heisei')
elif S[1] == 4 and S[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):
S=input()
S.replace("/","")
if (int(S) - "20190430") <= 0:
  print("Heisei")
else:
  print("TBD")

S=input()
if (int(S.replace("/","")) - 20190430) <= 0:
  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 > 2020 or (y == 2019 and m > 5) or (y == 2019 and m == 4 and d > 30):
    print("TBD")
else:
    print("Heisei")

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

if y < 2018 or (y == 2019 and m < 4) or (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):
print('TBD'if int(input().split()[1])>4 else 'Heisei')

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

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

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

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=[int(i) for i in input().split('/')]
print(s)
if s[0]>2020 or (s[0]==2019 and s[1]>4):
    print("TBD")
else: print("Heisei")

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

Verdicts: Wrong Answer

Accepted