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

Submission status: Runtime Error

Solution code:
s = input()
if s[3] == "9":
  if s[5] == 1:
    print("TBD")
  else:
    if int(s[6]) == 1:
      print("TBD")
    else:
      if int(s[7]) > 4:
        print("TBD")
      else:
        print("Heisei")
    
else:
  print("Heisei")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

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

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

Submission status: Runtime Error

Solution code:
S = input(S)
T = [c for c in S]
if int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) <= 2018 or  (int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) == 2019 and int(T[5]) * 1000 + int(T[6]) * 100 + int(T[8]) * 10 + int(T[9]) <= 430 ):
  print('Heisei')
  exit()
print('TBD')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
y,m,d=int(input().split("/"))
if y<=2018:
  ans="Heisei"
else:
  if m<=4:
    ans="Heisei"
  else:
    ans="TBD"
print(ans)

Submission status: Runtime Error

Solution code:
y,m,d=str(input().split("/"))
if y<=2018:
  ans="Heisei"
else:
  if m<=4:
    ans="Heisei"
  else:
    ans="TBD"
print(ans)

Submission status: Runtime Error

Solution code:
y,m,d=str(input().split("/")
if y<=2018:
  ans="Heisei"
else:
  if m<=4:
    ans="Heisei"
  else:
    ans="TBD"
print(ans)

Submission status: Runtime Error

Solution code:
s=input()
if s[5] == '1':
  print('TBD')
else:
  if s[6] > 4:
    print('TBD')
  else:
    print('Heisei')

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

Submission status: Runtime Error

Solution code:
a = int("".join(input().split("/"))))
if a <= 20190430:
  print("Heisei")
else:
  print("TBD")

Submission status: Runtime Error

Solution code:
N = int(input())
XU=list(input().split() for i in range(int(input())))
print(sum([float(x)*{"JPY":1,"BTC":380000}[u] for x,u in XU]))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = input().split("/")

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

Submission status: Runtime Error

Solution code:
S = input().split("/")

if S[5] < 5 :
	print('Heisei')
else :
	print('TBD')

Submission status: Runtime Error

Solution code:
S = input().split("/")
 
if int(S[5]) < 5 and int(S[4]) == 0 :
	print('Heisei')
else :
	print('TBD')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = input().split("/")

if int(S[5]) < 5 and s[4] ==0 :
	print('Heisei')
else :
	print('TBD')

Submission status: Runtime Error

Solution code:
S = input().split("/")

if int(S[5]) < 5　and s[4] == 0 :
	print('Heisei')
else :
	print('TBD')

Submission status: Runtime Error

Solution code:
S = input().sprint("/")

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

Submission status: Runtime Error

Solution code:
S = int(input().split("/"))

if S[5] < 5 :
	print('Heisei')
else :
	print('TBD')

Submission status: Runtime Error

Solution code:
from dateutil.parser import parse
s = input()
inputDate = parse(s)
heiseiDate = parse('20190430')

if inputDate > heiseiDate:
    print('TBD')
else:
    print('Heisei')

Submission status: Runtime Error

Solution code:
s = input()
from dateutil.parser import parse
inputDate = parse(s)
heisei = parse('20190430')

if inputDate > heisei:
    print('TBD')
else:
    print('Heisei')

Submission status: Runtime Error

Solution code:
import datetime

S = input().datetime

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

Submission status: Runtime Error

Solution code:
S = datetime(input())

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

Submission status: Runtime Error

Solution code:
import bisect
I = lambda n: [int(input()) for _ in range(n)]
def f(S, x):
    p = bisect.bisect_left(S, x)
    return min([S[p-1], S[p]], key = lambda s: abs(x-s))
g = lambda x, s, t: abs(x-s)+abs(s-t)
INF = 10**18
a, b, q = map(int, input().split())
S, T, X = [-INF]+I(a)+[INF], [-INF]+I(b)+[INF], I(q)
for x in X:
    s, t = f(S, x), f(T, x)
    print(min(g(x, s, f(T, s)), g(x, t, f(S, t))))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = input().split("/")
if S[1]==4 and S[2]<=30:
    print("Heisei")
elif S>4:
    print("TBD")
else:
    print("Heisei")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()s=input()

if int(s[1])>4:
  print('TBD')
elif int(s[0])==1:
  print('TBD')
else:
  print('Heisei')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()
if s <= '2019/04/19':
  print(Heisei)
else:
  print(TDB)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:
import numpy as np
import math
import sys
import bisect
sys.setrecursionlimit(10000000)
INF = 1e11

def main():
    # 入力処理
    A, B, Q = [int(c) for c in input().split()]
    S = []
    T = []
    X = []
    for i in range(A):
        S.append(int(input()))
    for i in range(B):
        T.append(int(input()))
    for i in range(Q):
        X.append(int(input()))
    S.append(INF)
    T.append(INF)

    for i, x in enumerate(X):
        # s -> t
        sa = bisect.bisect_left(S, x) - 1
        sb = sa + 1

        # t -> s
        tc = bisect.bisect_left(T, x) - 1
        td = tc + 1
        distance = INF
        for s in [sa, sb]:
            for t in [tc, td]:
                dis1 = abs(x - S[s]) + abs(S[s] - T[t])
                dis2 = abs(x - T[t]) + abs(T[t] - S[s])
                distance = min(dis1, dis2, distance)
        print(distance)



if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
date = list(map(int, input().split("/")))
if date[0] >= 2019:
	if date[1] >= 5:
		print("TBD")
    else:
      	print("Heisei")
else:
	print("Heisei")

Submission status: Runtime Error

Solution code:
date = map(int, input().split("/"))
if date[0] > 2019:
	if date[1] > 5:
		print("Heisei")
else:
	print("TBD")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
A = input()

if int(A[6:8]) >= 5:
  print('TBD')
else:
  print('Heisei')

Submission status: Runtime Error

Solution code:
S=input()
A=S[0]+S[1]+S[2]+S[3]
if int(S[5])!=0 and int(S[6]>5):
    print('TBD')
else:
    if int(A)<=2019:
        print('Heisei')
    else:
        print('TBD')

Submission status: Runtime Error

Solution code:
from datetime import datetime
input_date = datetime.datetime.strptime(input(), "%Y%m%d")

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

Submission status: Runtime Error

Solution code:
from datetime import datetime
input_date = datetime.datetime(input(), "%Y%m%d")

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

Submission status: Runtime Error

Solution code:
a = input()

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

Submission status: Runtime Error

Solution code:
import datetime

s=input()
h=datetime.date(2019,4,30)

if s <= h:
  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:
N = int(input())
ans = 0
float(ans)

for i in range(N):
	x,u = input().split()

	if str(u) == 'JPY':
		ans = float(ans) + float(x)
	
	if str(u) == 'BTC':
		ans = float(ans) + float(x) * 380000

print(ans)

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[4:6] + S[7:9]
s = int(s)

if s < 501:
  print('Heisei')
else:
  print('TBD')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from datetime import date
dt = date.fromisoformat(input().replace('/', '-'))
th = date.fromisoformat('2019-04-30')
if dt <= th:
    print('Heisei')
else:
    print('TBD')

Submission status: Runtime Error

Solution code:
S = map(int, input().split("/"))
if S[1] >= 5:
  print("TBD")
else:
  print("Heisei")

Submission status: Runtime Error

Solution code:
S = input().split("/")
if S[1] >= 5:
  print("TBD")
else:
  print("Heisei")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = input()
s = list(S)
year = int(s[0] + s[1] + s[2] + s[3])
month = int(s[5] + s[6])
day = int(s[8] + s[9])
if year <2019:
    print('Heisei')
    break
elif month < 5:
    print('Heisei')
    break
else:
    print('TBD')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:


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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()
L = []
for i in a:
  L.append(i)
if L[5] ==1 or L[6]>4:
  print("TBD")
else:
  print("Hensei")

Submission status: Runtime Error

Solution code:
s = input()
s = s.remove('/').remove('/')
if int(s) <= 20190430:
	print('Heisei')
else:
	print('TBD')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, A, B, C = [int(x) for x in input().split()]
l = []
for i in range(N):
  l.append(int(input()))
 
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 1000000
  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:
s = input()
foo = s.split('/')
if foo[1] <= 4 and foo[2] <= 30:
  print('Heisei')
else:
  print('TBD')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()
if s[5] == '1' or s[6] > 4 : print("TBD")
else : print("Heisei")

Submission status: Runtime Error

Solution code:
#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    string S;
    cin >> S;
    
    if(S <= "2019/04/30")
        cout << "Heisei";
    else
        cout << "TPD";
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main() {
    string s;
    cin >> s;
    if(s > "2019/04/30"){
        cout << "TBD" << "\n";
    }
    else{
        cout << "Heisei" << "\n";
    }
}

Submission status: Runtime Error

Solution code:
a, b, q = map(int, input().split())
sno = [-10e6] + [int(input()) for _ in range(a)] + [10e6]
tno = [-10e6] + [int(input()) for _ in range(b)] + [10e6]
dis = [int(input()) for _ in range(q)]
 
for i in range(q):
 
    sl = 0
    sr = 0
    tl = 0
    tr = 0
 
    for j in range(a+2):
        if sno[j] >= dis[i]:
            sl = dis[i] - sno[j-1]
            sr = sno[j] - dis[i]
            break
        else:
            pass
 
    for k in range(b+2):
        if tno[k] >= dis[i]:
            tl = dis[i] - tno[k-1]
            tr = tno[k] - dis[i]
            break
        else:
            pass
 
    lds = max(sl, tl)
    rds = max(sr, tr)
    ans = min(lds, rds)
    print(ans)

Submission status: Runtime Error

Solution code:
a, b, q = map(int, input().split())
sno = [-10e6] + [int(input()) for _ in range(a)] + [10e6]
tno = [-10e6] + [int(input()) for _ in range(b)] + [10e6]
dis = [int(input()) for _ in range q]

for i in range(q):
 
    sl = 0
    sr = 0
    tl = 0
    tr = 0
 
    for j in range(a+2):
        if sno[j] >= dis[i]:
            sl = dis[i] - sno[j-1]
            sr = sno[j] - dis[i]
            break
        else:
            pass
 
    for k in range(b+2):
        if tno[k] >= dis[i]:
            tl = dis[i] - tno[k-1]
            tr = tno[k] - dis[i]
            break
        else:
            pass
 
    lds = max(sl, tl)
    rds = max(sr, tr)
    ans = min(lds, rds)
    print(ans)

Submission status: Runtime Error

Solution code:
S=input()
S.replace("/","")
if (int(S) - "20190430") <= 0:
  print("Heisei")
else:
  print("TBD")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, c = input.split("/")
print("Heisei" if b in ["01","02","03","04"] else "TBD")

Submission status: Runtime Error

Solution code:
a, b, c = input.split("/")
print("Heisei" if "Heisei" in ["01","02","03","04"] else "TBD")

Submission status: Runtime Error

Solution code:
s = input()
d = s.split("/")
if day[1] > 4:
 print("TBD")
else:
 print("Heisei")

Submission status: Runtime Error

Solution code:
a = input()
b = int(a.strip("/"))

if b >20190430:
  print(a)
else:
  print("TBD")

Submission status: Runtime Error

Solution code:
s = input()
if s[6] >= 5:
    print('TBD')
else:
    print('Heisei')

Submission status: Runtime Error

Solution code:
a, b, q = map(int, input().split())
sno = []
tno = []
dis = []
 
for i in range(a):
  sno.append(int(input()))
sno.append(10000)
 
for i in range(b):
  tno.append(int(input()))
tno.append(10000)
 
for i in range(q):
  dis.append(int(input()))
 
for i in range(q):
  sl = 0
  sr = 0
  tl = 0
  tr = 0
  
  for j in range(a):
    if sno[j] <= dis[i]:
      sl = dis[i] - sno[j]
      sr = sno[j+1] - dis[i]
      break
    else:
      pass
                
  for k in range(b):
    if tno[k] <= dis[i]:
      tl = dis[i] - tno[k]
      tr = tno[k+1] - dis[i]
      break
    else:
      pass
  
  lds = max(sl, tl)
  rds = max(sr, tr)
  dis = min(lds, rds)
  print(dis)

Submission status: Runtime Error

Solution code:
a, b, q = map(int, input().split())
sno = []
tno = []
dis = []
 
for i in range(a):
  sno.append(int(input()))
sno.append(10000)
 
for i in range(b):
  tno.append(int(input()))
tno.append(10000)
  
for i in range(q):
  dis.append(int(input()))

for i in range(q):
  sl = 0
  sr = 0
  tl = 0
  tr = 0
  
  for j in range(a):
    if sno[j] <= dis[i]:
      sl = dis[i] - sno[j]
      sr = sno[j+1] - dis[i]
      break
    else:
      pass
    
  for k in range(b):
    if tno[k] <= dis[i]:
      tl = dis[i] - tno[k]
      tr = tno[k+1] - dis[i]
      break
    else:
      pass
  
  lds = max(sl, tl)
  rds = max(sr, tr)
  dis = min(lds, rds)
  print(dis)

Submission status: Runtime Error

Solution code:
[A,B]=list(map(int,input().split()))
         
if(A%B==0):
  print(A+B)
else:
  print(B-A)

Submission status: Runtime Error

Solution code:
[A,B]=list(map(int,input().split()))
         
if(A%B==0)
   print(A+B)
else
   print(B-A)

Submission status: Runtime Error

Solution code:
date = input()
tdate=[]
 
for s in date:
  tdate.insert[s]
  
if tdate[5] != "0":
  mon = int(tdate[5] + tdate[6])
else:
  mon = int(tdate[6])
 
if mon <= 4:
  print("Heisei")
else:
  print("TBD")

Submission status: Runtime Error

Solution code:
date = input()
tdate=()
 
for s in date:
  tdate.insert(s)
  
if tdate(5) != "0":
  mon = int(tdate(5) + tdate(6))
else:
  mon = int(tdate(6))
 
if mon <= 4:
  print("Heisei")
else:
  print("TBD")

Submission status: Runtime Error

Solution code:
date = input()
tdate=()
 
for s in date:
  tdate.insert(s)
  
if tdate(5) != 0:
  mon = int(tdate(5) + tdate(6))
else:
  mon = int(tdate(6))
 
if mon <= 4:
  print("Heisei")
else:
  print("TBD")

Submission status: Runtime Error

Solution code:
date = input()
tdate=()

for s in date:
  ldate.insert(s)

#syr = none
#for i in range(4):
#  syr = syr + ldate(i)
#yer = int(syr)

if ldate(5) != 0:
  mon = int(ldate(5) + ldate(6))
else:
  mon = int(ldate(6))

#if ldate(8) != 0:
#  mon = int(ldate(8) + ldate(9))
#else:
#  mon = int(ldate(9))
  
if mon <= 4:
  print("Heisei")
else:
  print("TBD")

Submission status: Runtime Error

Solution code:
y,m,d = map(int, input().split('/'))
ans = True
if y <= 2019:
	if m <= 4:
      if d > 30:
        ans = False
    else:
      ans = False
else:
  ans = False
if ans:
  print("Heisei")
else:
  print("TBD")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# A - Still TBD
# https://atcoder.jp/contests/abc119/tasks/abc119_a

# threshold
TY, TM, TD = 2019, 4, 30

Y, M, D = map(int, raw_input().split('/'))

if M > 4:
    print '{}'.format('TBD')
else:
    print '{}'.foramt('Heisei')

Submission status: Runtime Error

Solution code:
a = input()
if int(a[5])=0 and int(a[6])<=4:
  print('Heisei')
else:
  print('TBD')

Submission status: Runtime Error

Solution code:
a = input()
if int(a[6])<=4:
  print('Heisei')
elif int(a[6])>4 or int(a[5])=1:
  print('TBD')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=list(map(int,input.split('/')))
if b>4:
  print('TBD')
else:
  print('Heisei')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
if a>2019:
  print('TBD')
elif a<2019:
  print('Heisei')
else:
  if b>4:
    print('TBD')
  elif b<=4:
    print('Heisei')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
ans = 0

for i in range(N):
  a,b = map(str, input().split())
  if b =="JPY":
    ans += int(a)
  else:
    ans += int(a)*380000
print(ans)

Submission status: Runtime Error

Solution code:
S=input()
Y=S[0:4]
M=S[5:7]
D=S[7:9]
YMD=int(Y+M+D)
if YMD<=20190430:
  print("Heisei")
else:
  print("TBD")

Submission status: Runtime Error

Solution code:
print "Hello"

Submission status: Runtime Error

Solution code:
import datetime

d0 = datetime.date(2019, 4, 30)
d = datetime.date(map(int, *input().split('/')))

if d <= d0:
  print('Heisei')
else:
  print('TBD')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S= input()
m= int(S[5:7])
if S>4:
  print('TBD')
else:
  print('Heisei')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = input()

month = S[5:7]
day = S[8:10]


answer = 'Heisei'



if int(month)>4:
    answer = 'TBD'



print(int(S))

Submission status: Runtime Error

Solution code:
import datetime
S = input()
if datetime.datetime.strptime(S, "%Y/%m/%d") <= datetime.datetime(2019, 4, 30, 0 ,0 ,0):
  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:
date = input()

date = date.replace('/', '')
if date <= 20190430:
    print("Heisei")
else:
    print("TBD")

Submission status: Runtime Error

Solution code:
N = int(input())

sum_jpy = 0
sum_bit = 0
sum_all = 0
btc = 380000.0
for _ in range(N):
	x,u = map(str, input().split())
	if u == "JPY":
		sum_jpy += float(x)
	else:
		sum_bit += float(x)

sum_all = sum_jpy + btc * sum_bit

print(sum_all)