Problem:


Score : 100 points

Problem Statement

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.

Constraints

S is a string that represents a valid date in the year 2019 in the yyyy/mm/dd format.

Input

Input is given from Standard Input in the following format:

S

Output

Print Heisei if the date represented by S is not later than April 30, 2019, and print TBD otherwise.

Sample Input 1

2019/04/30

Sample Output 1

Heisei

Sample Input 2

2019/11/01

Sample Output 2

TBD



Sample input:
2019/04/30


Sample output:
Heisei

Submission status: Runtime Error

Solution code:
y=0
for _ in range(int(input())):
    x,u=input().split()
    y+=int(x) if u=="JPY" else float(x)*380000
print(y

Submission status: Runtime Error

Solution code:
N = int(input())
total = 0.0
for i in range(N):
    money, tani = input().split()
    money = float(money)
    if tani = "JPY":
        total += money
    else:
        total += money * 380000.0
print("%f"%(total))

Submission status: Runtime Error

Solution code:
N = int(input())
total = 0.0
for i in range(N):
    money, tani = input().split()
    money = float(money)
    if tani = "JPY":
        total += money
    else:
        total += money * 380000.0
print("%.11f"%(total))

Submission status: Runtime Error

Solution code:
N = int(input())
total = 0.0
rate = 380000.0
for i in range(N):
    money, tani = input().split()
    money = float(input())
    if tani = "JPY":
        total += money
    else:
        total += money*rate
print("%.11f"%(total))

Submission status: Runtime Error

Solution code:
N = int(input())
total = 0.0
for i in range(N):
    money, tani = map(input().split())
    money = float(input())
    if tani = "JPY":
        total += money
    else:
        total += money * 380000.0
print("%.11f"%(total))

Submission status: Runtime Error

Solution code:
N = int(input())
total = 0
for i in range(N):
    money, tani = map(input().split())
    money = float(input())
    if tani = "JPY":
        total += money
    else:
        total += money * 380000
print("%f"%(total))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=list(map(int,input().split("/")))
 
if s[0]<=2018:
  print("Heisei")
elif s[0]=2019 and s[1]<5:
  print("Heisei")
else:
  print("TBD")

Submission status: Runtime Error

Solution code:
s=list(map(int,input().split("/")))
 
if s[0]<=2018:
  print(Heisei)
elif s[0]=2019 and s[1]<5:
  print(Heisei)
else:
  print(TBD)

Submission status: Runtime Error

Solution code:
s=list(map(int,input().split()))
 
if s[0]<=2018:
  print(Heisei)
elif s[0]=2019 and s[1]<5:
  print(Heisei)
else:
  print(TBD)

Submission status: Runtime Error

Solution code:
s=list(map(int,input().split(/)))

if s[0]<=2018:
  print(Heisei)
elif s[0]=2019 and s[1]<5:
  print(Heisei)
else:
  print(TBD)

Submission status: Runtime Error

Solution code:
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])))

Submission status: Runtime Error

Solution code:
from datetime.datetime import datetime
S=datetime.strptime(S,'%Y/%m/%d')
x=datetime.datetime(2019, 4, 30, 0, 0)
if x>S:
     print('TBD')
else:
     print("Heisei")

Submission status: Runtime Error

Solution code:
from datetime.datetime import datetime
datetime.datetime(2019, 4, 30, 0, 0)
S=datetime.strptime(S,'%Y/%m/%d')
x=datetime.datetime(2019, 4, 30, 0, 0)
if x>S:
     print('TBD')
else:
     print("Heisei")

Submission status: Runtime Error

Solution code:
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]))

Submission status: Runtime Error

Solution code:
n,a,b,c = map(int,input().spilt())

ko = [int(input()) for i in range(n)]
INF = 10**9

 def dfs(q,w,e,r):
 	if q == n:
 		 return abs(a-w) + abs(b-e) + abs(c-r) - 30 if min(a,b,c) > 0 else INF
 	re0 = dfs(q+1,w,e,r)
 	re1 = dfs(q+1,w+ko[q],e,r) + 10
 	re2 = dfs(q+1,w,e+ko[q],r) + 10
 	re3 = dfs(q+1,w,e,r+ko[q]) + 10
 	return min(re0,re1,re2,re3)

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

Submission status: Runtime Error

Solution code:
St = S.replace('/',' ')

l = St.split()
  
if l[0] < 2019 
	print("Heisei")
else 
	if l[1] < 4
      print("Heisei")
    else
      if l[2] < 31
        print("Heisei")
      else 
        print("BTD")
      print("BTD")
    print("BTD")

Submission status: Runtime Error

Solution code:
a,b,c = map(int,input().split("/"))
if a >=2019 && b >= 5:
    print('TBD')
else:
    print('Heisei')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
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 q 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(res, d1, d2)
  	  print(res)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
if S >= 2019/04/30:
  print("Heisei")
  
else:
  print("TBD")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, A, B, C = map(int, input().split())
l = [int(input()) for i in range(N)]
INF = 10 ** 9
def dfs(cur, a, b, c):
	if cur == N:
		return abs(a - A) + abs(b - B) + abs(c - C) - 30 if min(a, b, c) > 0 else INF
	ret0 = dfs(cur + 1, a, b, c)
	ret1 = dfs(cur + 1, a + l[cur], b, c) + 10
	ret2 = dfs(cur + 1, a, b + l[cur], c) + 10
	ret3 = dfs(cur + 1, a, b, c + l[cur]) + 10
	return min(ret0, ret1, ret2, ret3)
print(dfs(0, 0, 0, 0))

Submission status: Runtime Error

Solution code:
A, B, Q = [int(s) for s in input().split()]

# 配列の中身は(x座標, 次のポイントへの距離)
shrines = []
temples = []

for _ in range(A):
    s = int(input())
    shrines.append((s, 10**10))

# jinjas のインデックス
# temples の各点との距離を求めるのに使う
ji = 0
for _ in range(B):
    tp, tc = int(input()), 10**10
    sp, sc = shrines[ji]

    while abs(tp - sp) < tc:
        tc = abs(tp - sp)

        if abs(tp - sp) < sc:
            shrines[ji] = (sp, abs(tp - sp))

        if ji + 1 < A:
            ji += 1
            sp, sc = shrines[ji]
        else:
            break

    temples.append((tp, tc))

road = sorted(temples + shrines, key=lambda x: x[0])


def search(x):
    global A, B

    l, r = 0, A + B
    while r - l > 1:
        m = (l + r) // 2
        mp, mc = road[m]

        if mp < x:
            l = m
        else:
            r = m

    p1, c1 = road[l]
    if l == A + B - 1 or A + B == 1:
        return abs(x - p1) + c1

    p2, c2 = road[l+1]
    return min(abs(x-p1) + c1, abs(x-p2) + c2)


for _ in range(Q):
    q = int(input())

    y = search(q)
    print(y)

Submission status: Runtime Error

Solution code:
import numpy as np
from functools import lru_cache

A, B, Q = map(int, input().split())
adisps = np.array([int(input()) for _ in range(A)])
bdisps = np.array([int(input()) for _ in range(B)])
qdisps = np.array([int(input()) for _ in range(Q)])

@lru_cache(maxsize=100000)
def nearest(now, flag):
    disps = adisps if flag == 0 else bdisps
    idx = np.argmin(np.abs(disps - now))
    nearest_point = disps[idx]
    cost = np.abs(now - nearest_point)
    return nearest_point, cost

for qdisp in qdisps:

    #A→B
    pos_a1, cost_a1 = nearest(qdisp, 0)
    pos_b1, cost_b1 = nearest(pos_a1, 1)
    cost1 = cost_a1 + cost_b1

    #B→A
    pos_b2, cost_b2 = nearest(qdisp, 1)
    pos_a2, cost_a2 = nearest(pos_b2, 0)
    cost2 = cost_a2 + cost_b2

    ans = min(cost1, cost2)
    print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
if a <= "2019/04/30":
  print("Heisei")
else:
  print("TBD")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=int(input())
b=0
for i in range(a):
  c=input().split()
  if c[1]=='BTC':
    b+=(float)c[0]*380000.0
  else:
    b+=(float)c[0]
print(b)

Submission status: Runtime Error

Solution code:
a=int(input())
b=0
for i in range(a):
  c=input().split()
  if c[1]=='BTC':
    b+=(float)c[0]*380000.0
  else:
    b+=(int)c[0]
print(b)

Submission status: Runtime Error

Solution code:
a=int(input())
b=0
for i in range(a):
  c=input().split()
  if c[1]='BTC':
    b+=(float)c[0]*380000.0
  else:
    b+=(int)c[0]
print(b)

Submission status: Runtime Error

Solution code:
N, A, B, C = map(int, input().split())
l = []

for i in range(N):
    l.append(int(input()))


def gen_pat(n, pat):
    if n==0:
        return [pat]
    out = []
    for s in list("ABC0"):
        out += gen_pat(n-1, pat+s)
    return out

def cal(l, x):
    return 10*(len(l)-1)+abs(sum(l)-x)

cost = 10000000000000
for p in gen_pat(len(l), ""):
    a = [l[i] for i in range(len(l)) if p[i]=="A"]
    b = [l[i] for i in range(len(l)) if p[i]=="B"]
    c = [l[i] for i in range(len(l)) if p[i]=="C"]
    if len(a)==0 or len(b)==0 or len(c)==0:
        continue

    cost = min(cost,
               cal(a, A)+cal(b, B)+cal(c, C))

print(cost)

Submission status: Runtime Error

Solution code:
import sys

if __name__ == '__main__':
    a = input()
    a = a.split('/')
    year = int(a[0])
    month = int(a[1])
    date = int(a[2])
    if year > 2019:
        print('TBD')
    elif year < 2019:
        print('Heisei')
    elif month < 4:
        print('Heisei')
    elif month > 4:
        print('TBD')
    elif data < 30:
        print('Heisei')
    else:
        print('TBD')

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
import numpy as np


def check(x, al, bl):
    rcost = np.inf
    for a in al:
        tmp_c = abs(a - x)
        for b in bl:
            t = abs(b - a)
            rcost = min(rcost, tmp_c + t, abs(b - x) + t)

    print(int(rcost))


n = [int(each) for each in input().split()]
a, b, q = n[0], n[1], n[2]

sl = np.zeros(a)
tl = np.zeros(b)
xl = np.zeros(q)

for i in range(a):
    sl[i] = int(input())
for i in range(b):
    tl[i] = int(input())
for i in range(q):
    xl[i] = int(input())

result = []
for x in xl:
    check(x, sl, tl)

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split("/"))

if a[0]== 2019 and a[1]<=430 or a[0]<2019 :
    print('Heisei')
else:
   print('TBD')

Submission status: Runtime Error

Solution code:
from bisect import bisect_left, bisect_right
a, b, q = map(int, input().split())
s = [int(input()) for _ in range(a)]
t = [int(input()) for _ in range(b)]
q = [int(input()) for _ in range(q)]
for qi in q:
    qans = 10**18
    ai = bisect_left(s, qi)
    bi = bisect_left(t, qi)
    ac = []
    bc = []
    for i in range(2):
        if (0 <= ai + i < a):
            ac.append(ai + i);
        if (0 <= ai - i < a):
            ac.append(ai - i);
    for i in range(2):
        if (0 <= bi + i < b):
            bc.append(bi + i);
        if (0 <= bi - i < b):
            bc.append(bi - i);
    for i in ac:
        for j in bc:
            aa = s[i];
            bb = t[j];
            if (max(aa, bb) <= qi):
                qans = min(qans, qi - min(aa, bb))
            elif (qi <= min(aa, bb)):
                qans = min(qans, max(aa, bb) - qi)
            else:
                qans = min(qans, min(abs(aa - qi), abs(bb - qi)) * 2 + max(abs(aa - qi), abs(bb - qi)))
    print(qans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split("/"))

if a[0]>= 2019:
    print("Heisei")
else:
    print("TBD")

Submission status: Runtime Error

Solution code:
S=input();print('TBD'if S[5]*4+S[6]>=4 else'Heisei')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split("/"))

if  a[0]>= 2019
    print("Heisei")
else:
    print("TBD")

Submission status: Runtime Error

Solution code:
S=int(input("yyyy/mm/dd"))
if S<="2019/04/30":
  print("Heisei")
  else:
    print("TBD")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
import sys
from datetime import datetime

def main():
    line = sys.stdin.readline()
    today = datetime.strptime(line, "%Y/%m/%d")
    TBD = datetime(2019, 5, 1)
    if today < TBD:
        print("HEISEI")
    else:
        print("TBD")

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
import sys
from datetime import datetime

def main():
    line = sys.stdin.readline()
    today = datetime.strptime(line, "%Y/%m/%d")
    TBD = datetime(2019, 5, 1)
    if today < TBD:
        print("HEISEI")
    else:
        print("TBD")
if __name__ == "__main__":
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
 = input()

# #for i in range(int(4)):
# a_y = int(A[0]) * 1000
# b_y = int(A[1]) *100
# c_y = int(A[2])*10
# d_y = int(A[3])

# yyyy = a_y + b_y + c_y + d_y
#print(yyyy)
if int(A[5])!=0:
    mm = (int(A[5])*10) + (int(A[6]))
else:
    mm = int(A[6])

if int(A[8])!=0:
    dd = (int(A[8])*10) + (int(A[9]))
else:
    dd = int(A[9])
    

# if yyyy>2019:
#     print("TBD")
# elif yyyy==2019 and mm>=5:
#     print("TBD")
# else:
#     print("Heisei")

if mm>4:
    print("TBD")
else:
    print("Heisei")

Submission status: Runtime Error

Solution code:
import sys
from datetime import datetime

def main():
    line_num = 0
    for line in sys.stdin.readlines():
        today = datetime.strptime(line, "%Y/%m/%d")
        TBD = datetime(2019, 5, 1)
        if today < TBD:
            print("HEISEI")
        else:
            print("TBD")
if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split())

del a[4]
del a[7]

b =sum(a)
q = 19
if q <=a:
    print("Heisei")
else :
    print("TBD")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding:utf-8

if __name__ == "__main__":

    i = str(input())

    j = i.split('/')

    if int(j[0]) < 2019:
        print("Heisei")
    elif int(j[1].split('0')[1]) < 5:
        print("Heisei")
    else:
        print("TBD")

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

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

if(int(date[0]) >= 2020):
  print('TBD')
  elif(int(date[0]) == 2019 && int(date[1]) >=5):
    print('TBD')
    else:
      print('Heisei')

Submission status: Runtime Error

Solution code:
#coding:utf-8

if __name__ == "__main__":

    i = str(input())

    j = i.split('/')

    print(j[1].split('0')[1])

    if int(j[0]) < 2019:
        print("Heisei")
    elif int(j[1].split('0')[1]) < 5:
        print("Heisei")
    else:
        print("TBD")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
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)

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <string>

using namespace std;

int main(void) {
    string s;
    cin >> s;
    if (s[6]> 5) {
        cout << "TBD" << endl;
    } else
    {
        cout << "Heisei" << endl;
    }
    

    return 0;
}

Submission status: Runtime Error

Solution code:
/*------------------------------------------------------------------*/
/*------------------------- begin template -------------------------*/
/*------------------------------------------------------------------*/

// ref: tanakh <https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8>
// diff: using Parser
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut parser = Parser::from_str($s);
        input_inner!{parser, $($r)*}
    };
    (parser = $parser:ident, $($r:tt)*) => {
        input_inner!{$parser, $($r)*}
    };
    (new_stdin_parser = $parser:ident, $($r:tt)*) => {
        let stdin = std::io::stdin();
        let reader = std::io::BufReader::new(stdin.lock());
        let mut $parser = Parser::new(reader);
        input_inner!{$parser, $($r)*}
    };
    ($($r:tt)*) => {
        input!{new_stdin_parser = parser, $($r)*}
    };
}

macro_rules! input_inner {
    ($parser:ident) => {};
    ($parser:ident, ) => {};
    ($parser:ident, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($parser, $t);
        input_inner!{$parser $($r)*}
    };
}

macro_rules! read_value {
    ($parser:ident, ( $($t:tt),* )) => {
        ( $(read_value!($parser, $t)),* )
    };
    ($parser:ident, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($parser, $t)).collect::<Vec<_>>()
    };
    ($parser:ident, chars) => {
        read_value!($parser, String).chars().collect::<Vec<char>>()
    };
    ($parser:ident, usize1) => {
        read_value!($parser, usize) - 1
    };
    ($parser:ident, $t:ty) => {
        $parser.next::<$t>().expect("Parse error")
    };
}

use std::io;
use std::io::BufRead;
use std::str;

// ref: tatsuya6502 <https://qiita.com/tatsuya6502/items/cd448486f7ef7b5b8c7e>
// ref: wariuni <https://qiita.com/tatsuya6502/items/cd448486f7ef7b5b8c7e#comment-7040a5ae96305e884eb9>
// diff: using std::io::BufRead::fill_buf()
pub struct Parser<R> {
    pub reader: R,
    buf: Vec<u8>,
    pos: usize,
}

impl Parser<io::Empty> {
    pub fn from_str(s: &str) -> Parser<io::Empty> {
        Parser {
            reader: io::empty(),
            buf: s.as_bytes().to_vec(),
            pos: 0,
        }
    }
}

impl<R: BufRead> Parser<R> {
    pub fn new(reader: R) -> Parser<R> {
        Parser {
            reader: reader,
            buf: vec![],
            pos: 0,
        }
    }
    pub fn update_buf(&mut self) {
        self.buf.clear();
        self.pos = 0;
        loop {
            let (len, complete) = {
                let buf2 = self.reader.fill_buf().unwrap();
                self.buf.extend_from_slice(buf2);
                let len = buf2.len();
                (len, buf2[len - 1] <= 0x20)
            };
            self.reader.consume(len);
            if complete {
                break;
            }
        }
    }
    pub fn next<T: str::FromStr>(&mut self) -> Result<T, T::Err> {
        loop {
            let mut begin = self.pos;
            while begin < self.buf.len() && (self.buf[begin] <= 0x20) {
                begin += 1;
            }
            let mut end = begin;
            while end < self.buf.len() && (self.buf[end] > 0x20) {
                end += 1;
            }
            if begin != self.buf.len() {
                self.pos = end;
                return str::from_utf8(&self.buf[begin..end]).unwrap().parse::<T>();
            } else {
                self.update_buf();
            }
        }
    }
}

#[allow(unused_imports)]
use std::cmp::*;

fn main() {
    input! {
        new_stdin_parser = parser,
    }
    let res = solve(&mut parser);
    print!("{}", res);
}

/*------------------------------------------------------------------*/
/*-------------------------- end template --------------------------*/
/*------------------------------------------------------------------*/

use std::fmt::Write;
fn solve<R: BufRead>(parser: &mut Parser<R>) -> String {
    let mut buf = String::new();
    input! {
        parser = parser,
        s: chars,
    }
    let s: String = s.into_iter().collect();
    if s <= "2019/04/30".to_string() {
        writeln!(buf, "Heisei");
    } else {
        writeln!(buf, "TBD");
    }
    buf
}

Submission status: Runtime Error

Solution code:
a = str(input.split())

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

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

Submission status: Runtime Error

Solution code:
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')

Submission status: Runtime Error

Solution code:
import re

s = input()
li = s.splite("/")
month = int(li[1])

if month > 4:
  print('TBD')
else:
  print("Heisei")

return 0

Submission status: Runtime Error

Solution code:
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')

Submission status: Runtime Error

Solution code:
import re

s = input()
li = s.splite("/")
month = int(li[1])

if month > 4:
  print('TBD')
else:
  print("Heisei")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S=str(input())
slice6=S[6]
slice5=S[5]
if int(slice6) < 5 and slice5 ==0:
  print("Heisei")
  else:
    print("TBD")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S=str(input())
slice6=S[6]
slice5=S[5]
if int(slice) < 5 and slice5 ==0:
  print("Heisei")
  else:
    print("TBD")

Submission status: Runtime Error

Solution code:
ret = 0 
psn = int ( input () )
for i in range (psn) :
    m,t = input ( )
    m = float ( m )
    if t = "BTC" :
        m = 380000 * m
	ret += m
print ( ret )

Submission status: Runtime Error

Solution code:
from sys import stdin

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

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Runtime Error

Solution code:
S=str(input())
slice=S[6]
if int(slice) < 5 and S[5] ==0:
  print("Heisei")
  else:
    print("TBD")

Submission status: Runtime Error

Solution code:
from sys import stdin

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

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

Submission status: Runtime Error

Solution code:
import stdin

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

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

heisei_y = 2019
heisei_m = 4
heisei_d = 1

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

Submission status: Runtime Error

Solution code:
S = input("")
if int(S[0:3])>2019
	printf("TBD")
else if int(S[0:3])==2019 || int(S[5:6])>5
	printf("TBD")
else 
	printf(Heisei)

Submission status: Runtime Error

Solution code:
dt = [for int(i) in input().split("/")]
if dt[0] >= 2019 and dt[1] >= 5:
    print("TBD")
else :
    print("Heisei")

Submission status: Runtime Error

Solution code:
import stdin

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

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

heisei_y = 2019
heisei_m = 4
heisei_d = 1

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

Submission status: Runtime Error

Solution code:
import re

date_s = input()

date_l = date_s.replace("/", "")

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

Submission status: Runtime Error

Solution code:
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()

Submission status: Runtime Error

Solution code:
from dateutil.parser import parse
dt = parse(input())
if dt.year >= 2019 and dt.month >= 5:
    print("TBD")
else :
    print("Heisei")

Submission status: Runtime Error

Solution code:
#coding:utf-8

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

if a[0]=2019 and a[1]>=4:
  print("TBD")
elif a[0]<2019:
  print("TBD")
else:
  print("Heisei")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
s = input().split('/')
if s[0] <= 2018:
    print('Heisei')
elif s[0] == 2019 and s[1] <=4:
    print('Heisei')
elif s[0] == 2019 and s[1] >= 5:
    print('TBD')
elif s[0] >= 2020:
    print('TBD')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
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')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import sys
import datetime

lines = sys.stdin.readlines()
X = lines[0]

d = datetime.datetime.strptime(X, '%Y/%m/%d')

if d > datetime.datetime(2019,4,30):
  print('TBD')
else:
  print('Heisei')