Buggy python submission (verdict: Runtime Error):
y = 0
for i in range(int(input())):
    x,u = input().split()
    y += int(x) if u == "JPY" else float(x)*380000
print(y)

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

Buggy python submission (verdict: Runtime Error):
y, m, d = int(input().split("/"))

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

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

Buggy python submission (verdict: Runtime Error):
S = input()

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

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

Buggy python submission (verdict: Runtime Error):
y=0
for _ in range(int(input())):
    x,u=input().split()
    y+=int(x) if u=="JPY" else float(x)*380000
print(y)

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

Buggy python submission (verdict: Runtime Error):
y=0
for _ in range(int(input())):
    x,u=input().split()
    y+=int(x) if u=="JPY" else float(x)*380000
print(y

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

Buggy python submission (verdict: Runtime Error):
y=0
for _ in range(int(input())):
    x,u=input().split()
    y+=int(x) if u=="JPY" else float(x)*380000
print(y)

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

Buggy python submission (verdict: Runtime Error):
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))

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

Buggy python submission (verdict: Runtime Error):
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))

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

Buggy python submission (verdict: Runtime Error):
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))

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

Buggy python submission (verdict: Runtime Error):
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))

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

Buggy python submission (verdict: Runtime Error):
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))

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

Buggy python submission (verdict: Runtime Error):
S = input()
print('Heisei' if S <= 2019/4/30 else 'TBD')

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