Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
while True:
 result = 0
 i = input().split()
 if i[1] == '+':
  result = int(i[0]) + int(i[2])
 elif i[1] == '-':
  result = int(i[0]) - int(i[2])
 elif i[1] == '*':
  result = int(i[0]) * int(i[2])
 elif i[1] == '/':
  result = int(i[0]) / int(i[2])
 print(result)

Fixed submission:
while True:
 result = 0
 i = input().split()
 if i[1] == '+':
  result = int(i[0]) + int(i[2])
 elif i[1] == '-':
  result = int(i[0]) - int(i[2])
 elif i[1] == '*':
  result = int(i[0]) * int(i[2])
 elif i[1] == '/':
  result = int(i[0]) // int(i[2])
 elif i[1] == '?':
  break
 print(result)

Buggy python submission (verdict: Runtime Error):
while True:
 result = 0
 i = input().split()
 if i[1] == '+':
  result = int(i[0]) + int(i[2])
 elif i[1] == '-':
  result = int(i[0]) - int(i[2])
 elif i[1] == '*':
  result = int(i[0]) * int(i[2])
 elif i[1] == '/':
  result = int(i[0]) / int(i[2])
 print('{0}\n'.format(result))

Fixed submission:
while True:
 result = 0
 i = input().split()
 if i[1] == '+':
  result = int(i[0]) + int(i[2])
 elif i[1] == '-':
  result = int(i[0]) - int(i[2])
 elif i[1] == '*':
  result = int(i[0]) * int(i[2])
 elif i[1] == '/':
  result = int(i[0]) // int(i[2])
 elif i[1] == '?':
  break
 print(result)

Buggy python submission (verdict: Runtime Error):
while True:
 result = 0
 i = input().split()
 if i[1] == '+':
  result = int(i[0]) + int(i[2])
 elif i[1] == '-':
  result = int(i[0]) - int(i[2])
 elif i[1] == '*':
  result = int(i[0]) * int(i[2])
 elif i[1] == '/':
  result = int(i[0]) // int(i[2])
 print(result)

Fixed submission:
while True:
 result = 0
 i = input().split()
 if i[1] == '+':
  result = int(i[0]) + int(i[2])
 elif i[1] == '-':
  result = int(i[0]) - int(i[2])
 elif i[1] == '*':
  result = int(i[0]) * int(i[2])
 elif i[1] == '/':
  result = int(i[0]) // int(i[2])
 elif i[1] == '?':
  break
 print(result)
Buggy python submission (verdict: Runtime Error):
input()

data = input.split()

data.reverse()
[print(x, end=' ') for x in data]
print()

Fixed submission:
input()
data = input().split()
data.reverse()
print(' '.join(data))

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

data = input.split()

data.reverse()
[print(x, end=' ') for x in data]
print()

Fixed submission:
input()
data = input().split()
data.reverse()
print(' '.join(data))
Buggy python submission (verdict: Runtime Error):
import numpy as np

(n, m, l) = [int(i) for i in input().split()]

A = []
for nc in range(n):
    A.append([int(i) for i in input().split()])

B = []
for mc in range(m):
    B.append([int(i) for i in input().split()])

product = np.dot(A,B)

for nc in range(n):
    for lc in range(l):
        if lc == l - 1:
            print(product[nc][lc])
        else:
            print(product[nc][lc], '', end='')

Fixed submission:
(n, m, l) = [int(i) for i in input().split()]

A = []
for nc in range(n):
    A.append([int(i) for i in input().split()])

B = []
for mc in range(m):
    B.append([int(i) for i in input().split()])

product = [[0 for d in range(l)] for dd in range(n)]

for nc in range(n):
    for lc in range(l):
        for mc in range(m):
            product[nc][lc] += A[nc][mc] * B[mc][lc]
        
for r in product:
    print(' '.join([str(d) for d in r]))

Buggy python submission (verdict: Runtime Error):
(n, m, l) = [int(i) for i in input().split()]

A = []
for nc in range(n):
    A.append([int(i) for i in input().split()])

B = []
for mc in range(m):
    B.append([int(i) for i in input().split()])

product = np.dot(A,B)

for nc in range(n):
    for lc in range(l):
        if lc == l - 1:
            print(product[nc][lc])
        else:
            print(product[nc][lc], '', end='')

Fixed submission:
(n, m, l) = [int(i) for i in input().split()]

A = []
for nc in range(n):
    A.append([int(i) for i in input().split()])

B = []
for mc in range(m):
    B.append([int(i) for i in input().split()])

product = [[0 for d in range(l)] for dd in range(n)]

for nc in range(n):
    for lc in range(l):
        for mc in range(m):
            product[nc][lc] += A[nc][mc] * B[mc][lc]
        
for r in product:
    print(' '.join([str(d) for d in r]))

Buggy python submission (verdict: Runtime Error):
(n, m, l) = [int(i) for i in input().split()]

A = []
for nc in range(n):
    A.append([int(i) for i in input().split()])

B = []
for mc in range(m):
    B.append([int(i) for i in input().split()])

product = []

for nc in range(n):
    for lc in range(l):
        if lc == l - 1:
            print(product[nc][lc])
        else:
            print(product[nc][lc], '', end='')

Fixed submission:
(n, m, l) = [int(i) for i in input().split()]

A = []
for nc in range(n):
    A.append([int(i) for i in input().split()])

B = []
for mc in range(m):
    B.append([int(i) for i in input().split()])

product = [[0 for d in range(l)] for dd in range(n)]

for nc in range(n):
    for lc in range(l):
        for mc in range(m):
            product[nc][lc] += A[nc][mc] * B[mc][lc]
        
for r in product:
    print(' '.join([str(d) for d in r]))
Buggy python submission (verdict: Runtime Error):
alphabetTable = dict.fromkeys([chr(i) for i in range(97, 123)], 0)

while True:
    text = input()

    if len(text) == 0:
        break

    for i in range(len(text)):
        if text[i].lower() in alphabetTable:
            alphabetTable[text[i].lower()] += 1

sortedTable = sorted(alphabetTable.keys())
for r in sortedTable:
    print(r,':',alphabetTable[r])

Fixed submission:
alphabetTable = dict.fromkeys([chr(i) for i in range(97, 123)], 0)

while True:
    try:
        for text in input():
            for i in range(len(text)):
                if text[i].lower() in alphabetTable:
                    alphabetTable[text[i].lower()] += 1
    except EOFError:
        break

for r in sorted(alphabetTable):
    print(r,':',alphabetTable[r])
Buggy python submission (verdict: Runtime Error):
text = input()
count = int(input())

for c in range(count):
    args = input().split()
    (a, b) = [int(x) for x in args[1:3]]

    if args[0] == 'print':
        print(text[a:b + 1])
    elif args[0] == 'reverse':
        text = text[0:a] + text[a:b + 1][::-1] + text[b + 1:]
    elif args[0] == 'replace':
        text = text[0:a] + args[3] + text[b + 1]

Fixed submission:
text = input()
count = int(input())

for c in range(count):
    args = input().split()
    (a, b) = [int(x) for x in args[1:3]]

    if args[0] == 'print':
        print(text[a:b + 1])
    elif args[0] == 'reverse':
        text = text[0:a] + text[a:b + 1][::-1] + text[b + 1:]
    elif args[0] == 'replace':
        text = text[0:a] + args[3] + text[b + 1:]
Buggy python submission (verdict: Runtime Error):
import math

x1,y1,x2,y2 = raw_input().split(' ')

line = math.sqrt(((x2-x1)**2)+((x2-x1)**2))

print line

Fixed submission:
import math

x1,y1,x2,y2 = raw_input().split()

tei  = float(x2) - float(x1)
taka = float(y2) - float(y1)

if tei == taka:
    st = math.sqrt(2)
    answ = st * tei
    print answ
if tei != taka:
    answ = (tei*tei) + (taka*taka)
    print math.sqrt(answ)

Buggy python submission (verdict: Runtime Error):
import math

x1,y1,x2,y2 = raw_input().split(' ')

line = math.sqrt((int(x2)-int(x1)**2)+((int(y2)-int(y1))**2))

print line

Fixed submission:
import math

x1,y1,x2,y2 = raw_input().split()

tei  = float(x2) - float(x1)
taka = float(y2) - float(y1)

if tei == taka:
    st = math.sqrt(2)
    answ = st * tei
    print answ
if tei != taka:
    answ = (tei*tei) + (taka*taka)
    print math.sqrt(answ)

Buggy python submission (verdict: Runtime Error):
import math

x1,y1,x2,y2 = raw_input().split()

tei  = x2 - x1
taka = y2 - y1

if tei == taka:
    st = math.sqrt(2)
    answ = st * tei
    print answ
if tei != taka:
    answ = (tei*tei) + (taka*taka)
    print math.sqrt(answ)

Fixed submission:
import math

x1,y1,x2,y2 = raw_input().split()

tei  = float(x2) - float(x1)
taka = float(y2) - float(y1)

if tei == taka:
    st = math.sqrt(2)
    answ = st * tei
    print answ
if tei != taka:
    answ = (tei*tei) + (taka*taka)
    print math.sqrt(answ)
Buggy python submission (verdict: Runtime Error):
print x*x*x

Fixed submission:
x = int(raw_input())
print x**3

Buggy python submission (verdict: Runtime Error):
x = raw_input()
print x*x*x

Fixed submission:
x = int(raw_input())
print x**3
Buggy python submission (verdict: Runtime Error):
x = raw_input()
a = int(x[0:1])
b = int(x[2:3])
print a*b + " " + ((a*2)+(b*2))

Fixed submission:
x = map(int,raw_input().split())
aa = x[0] * x[1]
bb = x[0]*2 + x[1]*2
print aa,bb

Buggy python submission (verdict: Runtime Error):
x = raw_input()
a = int(x[0:1])
b = int(x[2:3])
aa = a*2 + b*2
bb = a*b

print bb + " " + aa

Fixed submission:
x = map(int,raw_input().split())
aa = x[0] * x[1]
bb = x[0]*2 + x[1]*2
print aa,bb

Buggy python submission (verdict: Runtime Error):
x = raw_input()
a = int(x[0:1])
b = int(x[2:3])
aa = a*2 + b*2
bb = a*b
print bb + " " + aa

Fixed submission:
x = map(int,raw_input().split())
aa = x[0] * x[1]
bb = x[0]*2 + x[1]*2
print aa,bb

Buggy python submission (verdict: Runtime Error):
x = raw_input()
a = int(x[0:1])
b = int(x[2:3])
aa = a*2 + b*2
bb = a*b
print str(bb) + " " + str(aa)

Fixed submission:
x = map(int,raw_input().split())
aa = x[0] * x[1]
bb = x[0]*2 + x[1]*2
print aa,bb
Buggy python submission (verdict: Runtime Error):
time = raw_input()
h = time /3600
m = time % 3600 / 60
s = time % 3600 % 60
":".join(map(str,[h,m,s]))

Fixed submission:

time = input()
h = time / 3600
m = time % 3600 / 60
s = time % 3600 % 60
print ":".join(map(str,[h,m,s]))
Buggy python submission (verdict: Runtime Error):
seq = map(int,raw_input().split())

print "バブルソート実行"
for i in range(len(seq)):
    for j in range(i,len(seq)-1):
        if seq[i] > seq[j+1]:
            a = seq[j+1]
            seq[j+1] = seq[i]
            seq[i] = a
        print i,j+1,seq

Fixed submission:
seq = map(int,raw_input().split())

for i in range(len(seq)):
    for j in range(i,len(seq)-1):
        if seq[i] > seq[j+1]:
            a = seq[j+1]
            seq[j+1] = seq[i]
            seq[i] = a
        
print seq[0],seq[1],seq[2]
Buggy python submission (verdict: Runtime Error):
w,h,x,y,z = map(int,raw_input().split())

if w-r > x and h-r > y and x > 0 and y > 0:
    print "Yes"
else:
    print "No"

Fixed submission:
w,h,x,y,r = map(int,raw_input().split())
if w-r >= x and h-r >= y and x-r >= 0 and y-r >= 0:
    print "Yes"
else:
    print "No"

Buggy python submission (verdict: Runtime Error):
w,h,x,y,r = map(int,raw_input().split())
 if w-r > x and h-r > y and x > 0 and y > 0:
    print "Yes"
else:
    print "No"

Fixed submission:
w,h,x,y,r = map(int,raw_input().split())
if w-r >= x and h-r >= y and x-r >= 0 and y-r >= 0:
    print "Yes"
else:
    print "No"
Buggy python submission (verdict: Runtime Error):
listx = []
listy = []
while True:
    x,y = map(int,raw_input().split())
    if x==0 and y==0:
        break
    list.append(x)
    list.append(y)

listx.sort()
listy.sort()

for i in len(listx):
    print '%s %S',(listx[i],listy[i])

Fixed submission:
while True:
    x,y = map(int,raw_input().split())
    if x > y:
        print '%s %s' % (y,x)
    elif y > x:
        print '%s %s' % (x,y)
    elif x == 0 and y == 0:
        break
    else:
        print '%s %s' % (x,y)

Buggy python submission (verdict: Runtime Error):
listx = []
listy = []
while True:
    x,y = map(int,raw_input().split())
    if x==0 and y==0:
        break
    list.append(x)
    list.append(y)

listx.sort()
listy.sort()

for i in range(len(listx)):
    print '%s %S',(listx[i],listy[i])

Fixed submission:
while True:
    x,y = map(int,raw_input().split())
    if x > y:
        print '%s %s' % (y,x)
    elif y > x:
        print '%s %s' % (x,y)
    elif x == 0 and y == 0:
        break
    else:
        print '%s %s' % (x,y)
Buggy python submission (verdict: Runtime Error):
a,b,c = map(int,raw_input().split())

for x in range(a,b):
    if c % x==0:
        print x
        i += 1

print i

Fixed submission:
a,b,c = map(int,raw_input().split())
i = 0
for x in range(a,b+1):
    if c % x==0:
        i += 1
if a == b:
    if c % a == 0:
        i = 1

print i
Buggy python submission (verdict: Runtime Error):
r = input()
print '%.6f %.6' % (r*3.14,r*r*3.14)

Fixed submission:
import math
r = input()
print '%.6f %.6f' % (r*r*math.pi,2*r*math.pi)

Buggy python submission (verdict: Runtime Error):
import math
print '%.6f %.6f' % (r*r*math.pi,2*r*math.pi)

Fixed submission:
import math
r = input()
print '%.6f %.6f' % (r*r*math.pi,2*r*math.pi)
Buggy python submission (verdict: Runtime Error):
test = []
while True:
    tmp = map(int,raw_input().split())
    for i in tmp:
        if i == -1:
            break
    else:
        test.append(tmp)
for a in test:
    if a[0]+a[1] >= 80:
        print "A"
    elif 80 > a[0]+a[1] >= 65:
        print "B"
    elif 65 > a[0]+a[1] >= 50:
        print "C"
    elif 50 > a[0]+a[1] >= 30 and a[2] < 50:
        print "D"
    elif a[2] >= 50:
        print "C"
    elif a[0] + a[1] < 30:
        print "F"

Fixed submission:
test = []
while True:
    tmp = map(int,raw_input().split())
    if tmp[0]==tmp[1]==tmp[2]==-1:
        break
    else:
        test.append(tmp)
for a in test:
    if a[0] == -1 or a[1] == -1:
        print "F"
    elif a[0]+a[1] >= 80:
        print "A"
    elif 80 > a[0]+a[1] >= 65:
        print "B"
    elif 65 > a[0]+a[1] >= 50:
        print "C"
    elif 50 > a[0]+a[1] >= 30:
        if a[2] >= 50 and 50 > a[0]+a[1] >= 30:
            print "C"
        else:
            print "D"
    elif a[0] + a[1] < 30:
        print "F"
Buggy python submission (verdict: Runtime Error):
x = raw_input()

for a in list(str):
    if a.islower():
        print a.upper()
    elif a.isupper():
        print a.lower()
    else
        print a

Fixed submission:
str = raw_input()
li = []
for a in list(str):
    if a.islower():
        li.append(a.upper())
    elif a.isupper():
        li.append(a.lower())
    else:
        li.append(a)
print "".join(li)

Buggy python submission (verdict: Runtime Error):
str = raw_input()

for a in list(str):
    if a.islower():
        print a.upper()
    elif a.isupper():
        print a.lower()
    else
        print a

Fixed submission:
str = raw_input()
li = []
for a in list(str):
    if a.islower():
        li.append(a.upper())
    elif a.isupper():
        li.append(a.lower())
    else:
        li.append(a)
print "".join(li)
Buggy python submission (verdict: Runtime Error):
x = map(input(int,list(x))
if 0 != x[0]:
    print sum(map(int,list(x)))

Fixed submission:
while True:
    x = map(int,list(raw_input()))
    if 0 != x[0]:
        print sum(x)
    else:
        break

Buggy python submission (verdict: Runtime Error):
x = map(input(int,list(x))
if 0 != x[0]:
    print sum(x)

Fixed submission:
while True:
    x = map(int,list(raw_input()))
    if 0 != x[0]:
        print sum(x)
    else:
        break
Buggy python submission (verdict: Runtime Error):
c = 0
result = 0
while:
    st = raw_input()
    if c = 0:
        s_str = st
    elif 'END_OF_TEXT' in st:
        break
    else:
        if s_str in str:
            result = result + 1
        else:
            pass
print result

Fixed submission:
c = 0
result = 0
while True:
    st = raw_input()
    if c == 0:
        s_str = st
    elif 'END_OF_TEXT' == st:
        break
    elif c > 0:
        if s_str.lower() in st.lower():
            result = result + st.lower().split(' ').count(s_str.lower())
        else:
            pass
    c = c+1
print result

Buggy python submission (verdict: Runtime Error):
c = 0
result = 0
while:
    st = raw_input()
    if c = 0:
        s_str = st
    elif 'END_OF_TEXT' in st:
        break
    else:
        if s_str in str:
            result = result + 1
        else:
            pass
print result

Fixed submission:
c = 0
result = 0
while True:
    st = raw_input()
    if c == 0:
        s_str = st
    elif 'END_OF_TEXT' == st:
        break
    elif c > 0:
        if s_str.lower() in st.lower():
            result = result + st.lower().split(' ').count(s_str.lower())
        else:
            pass
    c = c+1
print result

Buggy python submission (verdict: Runtime Error):
c = 0
result = 0
while True:
    st = raw_input()
    if c == 0:
        s_str = st
    elif 'END_OF_TEXT' in st:
        break
    else:
        c = c+1
        if s_str in st:
            result = result + st.count(s_str)
        else:
            pass
print result

Fixed submission:
c = 0
result = 0
while True:
    st = raw_input()
    if c == 0:
        s_str = st
    elif 'END_OF_TEXT' == st:
        break
    elif c > 0:
        if s_str.lower() in st.lower():
            result = result + st.lower().split(' ').count(s_str.lower())
        else:
            pass
    c = c+1
print result

Buggy python submission (verdict: Runtime Error):
c = 0
result = 0
while True:
    st = raw_input()
    if c == 0:
        s_str = st
    elif 'END_OF_TEXT' in st:
        break
    else:
        c = c+1
        if s_str in st:
            result = result + st.split(' ').count(s_str)
        else:
            pass
print result

Fixed submission:
c = 0
result = 0
while True:
    st = raw_input()
    if c == 0:
        s_str = st
    elif 'END_OF_TEXT' == st:
        break
    elif c > 0:
        if s_str.lower() in st.lower():
            result = result + st.lower().split(' ').count(s_str.lower())
        else:
            pass
    c = c+1
print result
Buggy python submission (verdict: Runtime Error):
dic = {'dog':5,'fish':4,'tiger':3,'cat':2,'lion':1}
taro_p = 0
hana_p = 0
for i in range(input()):
    taro,hana = raw_input().split(' ')
    if dic[taro] > dic[hana]:
        taro_p = taro_p + 3
        hana_p = hana_p + 0
    elif dic[taro] < dic[hana]:
        taro_p = taro_p + 0
        hana_p = hana_p + 3
    else:
        taro_p = taro_p + 1
        hana_p = hana_p + 1

print taro_p,hana_p

Fixed submission:
taro_p = 0
hana_p = 0
for i in range(input()):
    taro,hana = raw_input().split(' ')
    if taro > hana:
        taro_p = taro_p + 3
        hana_p = hana_p + 0
    elif taro < hana:
        taro_p = taro_p + 0
        hana_p = hana_p + 3
    else:
        taro_p = taro_p + 1
        hana_p = hana_p + 1

print taro_p,hana_p
Buggy python submission (verdict: Runtime Error):
str = raw_input()
q = input()
for ans in range(q):
    ans = raw_input()
    ans1 = ans.split(' ')
    if ans1[0] == 'replace':
        str = str[0:int(ans1[1])]+ans1[3]+ str[int(ans1[2])+1:len(str)]
    if ans1[0] == 'reverse':
        str = str[0:int(ans1[1])]+ans1[3]+str[int(ans1[1]):int(ans1[2])+1][::-1] + str[int(ans1[2])+1:len(str)]
    if ans1[0] == 'print':
        print str[int(ans1[1]):int(ans1[2])+1]

Fixed submission:
str = raw_input()
q = input()
for ans in range(q):
    ans = raw_input()
    ans1 = ans.split(' ')
    if ans1[0] == 'replace':
        str = str[0:int(ans1[1])]+ans1[3]+ str[int(ans1[2])+1:len(str)]
    if ans1[0] == 'reverse':
        str = str[0:int(ans1[1])]+ str[int(ans1[1]):int(ans1[2])+1][::-1] + str[int(ans1[2])+1:len(str)]
    if ans1[0] == 'print':
        print str[int(ans1[1]):int(ans1[2])+1]

Buggy python submission (verdict: Runtime Error):
str = raw_input()
q = input()
for ans in range(q):
    ans = raw_input()
    ans1 = ans.split(' ')
    if ans1[0] == 'replace':
        str = str[0:int(ans1[1])]+ans1[3]+ str[int(ans1[2])+1:len(str)]
    if ans1[0] == 'reverse':
        str = str[0:int(ans1[1])]+ans1[3]+ str[int(ans1[1]):int(ans1[2])+1][::-1] + str[int(ans1[2])+1:len(str)]
    if ans1[0] == 'print':
        print str[int(ans1[1]):int(ans1[2])+1]

Fixed submission:
str = raw_input()
q = input()
for ans in range(q):
    ans = raw_input()
    ans1 = ans.split(' ')
    if ans1[0] == 'replace':
        str = str[0:int(ans1[1])]+ans1[3]+ str[int(ans1[2])+1:len(str)]
    if ans1[0] == 'reverse':
        str = str[0:int(ans1[1])]+ str[int(ans1[1]):int(ans1[2])+1][::-1] + str[int(ans1[2])+1:len(str)]
    if ans1[0] == 'print':
        print str[int(ans1[1]):int(ans1[2])+1]
Buggy python submission (verdict: Runtime Error):
using namespace std;
 
int main()
{
  double x1, x2, y1, y2;
 
  cin >> x1 >> y1 >> x2 >> y2;
 
  cout << fixed << setprecision(6) << sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)) << endl;
   
  return 0;
}

Fixed submission:
from math import hypot
 
x1, y1, x2, y2 = map(float, input().strip().split())
print(hypot(x2 - x1, y2 - y1))
Buggy python submission (verdict: Runtime Error):
class Dice:
??
????????def __init__(self, faces):
????????????????self.faces = tuple(faces)
??
????????def roll_north(self):
????????????????self.faces = (self.faces[1], self.faces[5], self.faces[2],
????????????????????????????????????????????self.faces[3], self.faces[0], self.faces[4])
??
????????def roll_south(self):
????????????????self.faces = (self.faces[4], self.faces[0], self.faces[2],
????????????????????????????????????????????self.faces[3], self.faces[5], self.faces[1])
??
????????def roll_west(self):
????????????????self.faces = (self.faces[2], self.faces[1], self.faces[5],
????????????????????????????????????????????self.faces[0], self.faces[4], self.faces[3])
??
????????def roll_east(self):
????????????????self.faces = (self.faces[3], self.faces[1], self.faces[0],
????????????????????????????????????????????self.faces[5], self.faces[4], self.faces[2])
??
????????def number(self, face_id):
????????????????return self.faces[face_id - 1]
??
??
dice = Dice(list(map(int, input().split())))
commands = input()
??
for c in commands:
????????if c == "N":
????????????????dice.roll_north()
????????elif c == "S":
????????????????dice.roll_south()
????????elif c == "W":
????????????????dice.roll_west()
????????elif c == "E":
????????????????dice.roll_east()
print(dice.number(1))

Fixed submission:
import sys
 
class Dice(object):
    def __init__(self, dice):
        self.__dice = dice
 
    def roll_north(self):
        self.__dice = (self.__dice[1], self.__dice[5], self.__dice[2],
                       self.__dice[3], self.__dice[0], self.__dice[4])
 
    def roll_south(self):
        self.__dice = (self.__dice[4], self.__dice[0], self.__dice[2],
                       self.__dice[3], self.__dice[5], self.__dice[1])
 
    def roll_west(self):
        self.__dice = (self.__dice[2], self.__dice[1], self.__dice[5],
                       self.__dice[0], self.__dice[4], self.__dice[3])
 
    def roll_east(self):
        self.__dice = (self.__dice[3], self.__dice[1], self.__dice[0],
                       self.__dice[5], self.__dice[4], self.__dice[2])
 
    def number(self, face_id):
        return self.__dice[face_id - 1]
 
 
dice = Dice([int(i) for i in sys.stdin.readline().split()])
command = sys.stdin.readline().strip()
for c in command:
    if c == "N":
        dice.roll_north()
    elif c == "S":
        dice.roll_south()
    elif c == "W":
        dice.roll_west()
    elif c == "E":
        dice.roll_east()
print(dice.number(1))
Buggy python submission (verdict: Runtime Error):
nums = input().split()
a = int(nums[0])
b = int(nums[1])
print(a*b,(a+b)*???)

Fixed submission:
nums = input().split()
a = int(nums[0])
b = int(nums[1])
print(a*b,(a+b)*2)
Buggy python submission (verdict: Runtime Error):
S = int(input())
h = S // 3600
m = S % 3600 // 60
s = S % 60
print(h,m,s. sep=':')

Fixed submission:
x = int(input())
h = x // 3600
m = x % 3600 // 60
s = x % 60
  
print(h,m,s,sep=':')