Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
r = int(input())
print(2*r*np.pi, (r**2)*np.pi)


Fixed submission:
r = float(input())

pi = 3.141592653589793
print(pi*r**2, 2*pi*r)

Buggy python submission (verdict: Runtime Error):
r = float(input())
print(2*r*np.pi, (r**2)*np.pi)


Fixed submission:
r = float(input())

pi = 3.141592653589793
print(pi*r**2, 2*pi*r)

Buggy python submission (verdict: Runtime Error):
import numpy as np

r = float(input())
print(2*r*np.pi, (r**2)*np.pi)


Fixed submission:
r = float(input())

pi = 3.141592653589793
print(pi*r**2, 2*pi*r)
Buggy python submission (verdict: Runtime Error):
import sys

data=sys.stdin.readline()
print(data^3)


Fixed submission:
import sys

data=int(input())
print(data*data*data)

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

data=sys.stdin.readline()
print(data*data*data)


Fixed submission:
import sys

data=int(input())
print(data*data*data)
Buggy python submission (verdict: Runtime Error):
import sys

data=int(input())
data2=int(input())

print((data*data2), 2*(data+data2))


Fixed submission:
a,b=[int(x) for x in input().split()]
print(a*b,2*(a+b))

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

data=int(input())
data2=int(input())

print((data*data2), 2*(data+data2))


Fixed submission:
a,b=[int(x) for x in input().split()]
print(a*b,2*(a+b))
Buggy python submission (verdict: Runtime Error):
import sys

data=int(input())
data2=int(input())

if(data>data2):
    print("a > b")
if(data<data2):
    print("a < b")
if(data==data2):
    print("a == b")


Fixed submission:
1
2
a,b = map(int, input().split())
print("a "+("==" if a == b else "<" if a < b else ">")+" b")
Buggy python submission (verdict: Runtime Error):

a,b = map(int, input().split())
print("a "+("==" if a == b else "<" if a < b else ">")+" b")


Fixed submission:
x=input().split()

a, b, c = int(x[0]), int(x[1]), int(x[2])

if a<b<c:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
from sys import stdin

n, m = (int(n) for n in stdin.readline().rstrip().split())

a = []
for cnt in range(n):
    a.append([int(n) for n in stdin.readline().rstrip().split()])

b = []
for cnt in range(m):
    b.append([int(n) for n in stdin.readline().rstrip().split()])


from numpy import dot

c = dot(a, b)

for cn in c:
    print(int(cn))



Fixed submission:
def my_dot(lhs, rhs):
    return [sum(a[i][j] * b[j][0] for j in range(len(rhs))) for i in range(len(lhs))]


if __name__ == '__main__':
    from sys import stdin

    n, m = (int(n) for n in stdin.readline().rstrip().split())

    a = []
    for cnt in range(n):
        a.append([int(n) for n in stdin.readline().rstrip().split()])

    b = []
    for cnt in range(m):
        b.append([int(n) for n in stdin.readline().rstrip().split()])

    c = my_dot(a, b)

    for cn in c:
        print(int(cn))
Buggy python submission (verdict: Runtime Error):
a,b = map(int,input().strip())
if a<b:
    print('a<b')
elif a> b:
    print('a>b')
else:
    print('a==b')


Fixed submission:
a,b = map(int,input().split(" "))
if a < b:
    print("a < b")
elif a > b:
    print("a > b")
else:
    print("a == b")
Buggy python submission (verdict: Runtime Error):
a = list(map(int, input().split())

a.sort
print(*a)


Fixed submission:
a = list(map(int, input().split()))
a.sort()
print(*a)
Buggy python submission (verdict: Runtime Error):
while True:
    a,b = map(int,input().split())
    if x == 0 and b == 0:
        break
    else:
        if a > b:
            a,b = b,a
    print("{} {}".format(a,b))


Fixed submission:
while True:
    x,y = map(int,input().split(" "))
    if x == 0 and y==0:
        break
    elif y < x:
        print(y,x)
    else:
        print(x,y)

Buggy python submission (verdict: Runtime Error):
while True:
    a, b = map(int, input().split())
    if x == 0 and b == 0:
        break
    else:
        if a > b:
            a, b = b, a
    print("{} {}".format(a, b))


Fixed submission:
while True:
    x,y = map(int,input().split(" "))
    if x == 0 and y==0:
        break
    elif y < x:
        print(y,x)
    else:
        print(x,y)

Buggy python submission (verdict: Runtime Error):
while True:
    a,b = map(int,input().split())
    if x == 0 and b == 0:
        break
    else:
        if a < b:
            print(a,b)
        elif a > b:
            print(b,a)


Fixed submission:
while True:
    x,y = map(int,input().split(" "))
    if x == 0 and y==0:
        break
    elif y < x:
        print(y,x)
    else:
        print(x,y)

Buggy python submission (verdict: Runtime Error):
while True:
    a,b = map(int,input().split())
    if x == 0 and b == 0:
        break
    else:
        if a < b:
            print("{} {}".format(a,b))
        elif a > b:
            print("{} {}".format(b,a))


Fixed submission:
while True:
    x,y = map(int,input().split(" "))
    if x == 0 and y==0:
        break
    elif y < x:
        print(y,x)
    else:
        print(x,y)
Buggy python submission (verdict: Runtime Error):
def cube(x):
	if x >= 1 and x <=100
	return x ** 3


Fixed submission:
number = int(input())
print(number**3)

Buggy python submission (verdict: Runtime Error):
s=input()
if s.isdecimal() == true:
	x = int(s)
	if x >=1 and x <=100:
		print(x ** 3)


Fixed submission:
number = int(input())
print(number**3)
Buggy python submission (verdict: Runtime Error):
a, b = map(int,input().split)
area = a * b
perimeter = (a + b) * 2
ptint(str(area) + ' ' + str(perimeter))


Fixed submission:
a, b = map(int,input().split())
area = a * b
perimeter = (a + b) * 2
print(str(area) + ' ' + str(perimeter))

Buggy python submission (verdict: Runtime Error):
a, b = map(int,input().split())
area = a * b
perimeter = (a + b) * 2
ptint(str(area) + ' ' + str(perimeter))


Fixed submission:
a, b = map(int,input().split())
area = a * b
perimeter = (a + b) * 2
print(str(area) + ' ' + str(perimeter))
Buggy python submission (verdict: Runtime Error):
a = int(input())
b=a * a *a 
output(b)


Fixed submission:
a = int(input())
b=a * a *a
print(b)
Buggy python submission (verdict: Runtime Error):
a=int(input())
b=int(input())

print(a*b)
print(2*a+2*b)


Fixed submission:
a,b = map(int, input().split())

print(a*b,2*a+2*b)
Buggy python submission (verdict: Runtime Error):
x = raw_input()
print = int(x)^3

Fixed submission:
print int(raw_input()) ** 3
Buggy python submission (verdict: Runtime Error):
for i, a in enumerate(list(map(lambda a : int(a), input().split(" ")))[::-1]):
　　　　if i == 0:
　　　　　　　　print("%d" % a, end ="")
　　　　else:
　　　　　　　　print(" %d"% a, end ="")

Fixed submission:
for i, a in enumerate(sorted(list(map(lambda a : int(a), input().split(" "))))):
	if i == 0:
		print("%d" % a, end ="")
	else:
		print(" %d"% a, end ="")
print()
Buggy python submission (verdict: Runtime Error):
count = 0
for i in range(x[0], x[1]):
	if x[2] % i == 0:
		count += 1
print(count)

Fixed submission:
x = (list(map(lambda x : int(x), input().split(" "))))
count = 0
for i in range(x[0], x[1]+1):
	if x[2] % i == 0:
		count += 1
print(count)
Buggy python submission (verdict: Runtime Error):
n = int(input())
count = 0
card = {"S": card_(), "H": card_(), "C": card_(), "D": card_()}
while count < n:
	i = list(input().split(" "))
	card[i[0]] -= {int(i[1])}
	count += 1

mark = ["S", "H", "C", "D"]
for m in mark:
	for c in sorted(card[m]):
		print("%s %d" % (m, c))

Fixed submission:
card_ = lambda:set([i for i in range(1, 14)])
n = int(input())
count = 0
card = {"S": card_(), "H": card_(), "C": card_(), "D": card_()}
while count < n:
    i = list(input().split(" "))
    card[i[0]] -= {int(i[1])}
    count += 1
 
mark = ["S", "H", "C", "D"]
for m in mark:
    for c in sorted(card[m]):
        print("%s %d" % (m, c))
Buggy python submission (verdict: Runtime Error):
n, m, l = list(map(lambda x: int(x), input().split(" ")))
A = list()
for i in range(n):
    A.extend([list(map(lambda x: int(x), input().split(" ")))])
B = list()
for i in range(m):
    B.extend([list(map(lambda x: int(x), input().split(" ")))])
C = list([[0 for n_ in range(n)]for l_ in range(l)])
for i in range(n):
    for j in range(l):
        for k in range(m):
            C[i][j] += A[i][k] * B[k][j]
for a in C:
    print("%d" % a[0], end="")
    for b in a[1:]:
        print(" %d" % b, end="")
    print()

Fixed submission:
n, m, l = list(map(lambda x: int(x), input().split(" ")))
A = list()
for i in range(n):
    A.extend([list(map(lambda x: int(x), input().split(" ")))])
B = list()
for i in range(m):
    B.extend([list(map(lambda x: int(x), input().split(" ")))])
C = list([[0 for l_ in range(l)]for n_ in range(n)])
for i in range(n):
    for j in range(l):
        for k in range(m):
            C[i][j] += A[i][k] * B[k][j]
for a in C:
    print("%d" % a[0], end="")
    for b in a[1:]:
        print(" %d" % b, end="")
    print()
Buggy python submission (verdict: Runtime Error):
print(float(input()) ** EXPONENT)

Fixed submission:
print(int(input()) ** 3)
Buggy python submission (verdict: Runtime Error):
while True:
    results = list(map(str, sorted(map(int, input().split()))))
    if len(results) == len(list(filter(lambda item: item == '0', results)))
        break
    print ' '.join(results)

Fixed submission:
while True:
    results = list(map(str, sorted(map(int, input().split()))))
    if len(results) == len(list(filter(lambda item: item == '0', results))):
        break
    print(' '.join(results))
Buggy python submission (verdict: Runtime Error):
a = input()
b = input()
if a > b:
    print "a > b"
elif a < b:
    print "a < b"
else:
    print "a = b"

Fixed submission:
a_b = raw_input().split(" ")
a = int(a_b[0])
b = int(a_b[1])
if a > b:
    print "a > b"
elif a < b:
    print "a < b"
else:
    print "a == b"

Buggy python submission (verdict: Runtime Error):
a_b = input().split(" ")
a = a_b[0]
b = a_b[1]
if a > b:
    print "a > b"
elif a < b:
    print "a < b"
else:
    print "a = b"

Fixed submission:
a_b = raw_input().split(" ")
a = int(a_b[0])
b = int(a_b[1])
if a > b:
    print "a > b"
elif a < b:
    print "a < b"
else:
    print "a == b"
Buggy python submission (verdict: Runtime Error):
return x*x*x

Fixed submission:
print(int(input()) ** 3)

Buggy python submission (verdict: Runtime Error):
def Cubic(x):
    return x*x*x

if __name__ == '__main__':
    Cubic()

Fixed submission:
print(int(input()) ** 3)
Buggy python submission (verdict: Runtime Error):
a, b = [int(x) for x in input.split()]
print(a * b, 2 * (a + b))

Fixed submission:
a, b = [int(x) for x in input().split()]
print(a * b, 2 * (a + b))
Buggy python submission (verdict: Runtime Error):
hour = input() // 3600
minute = input() - 3600 * hour
second = hour - 60 * minute

print( hour ':' minute ':' second ':' )

Fixed submission:
sec_ = int(input())
print("{}:{}:{}".format(sec_//3600, (sec_//60)%60, sec_%60))

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

hour = input // 3600
minute = input - 3600 * hour
second = hour - 60 * minute

print( hour ':' minute ':' second )

Fixed submission:
sec_ = int(input())
print("{}:{}:{}".format(sec_//3600, (sec_//60)%60, sec_%60))

Buggy python submission (verdict: Runtime Error):
input = int(input())
 
hour = input // 3600
minute = input - 3600 * hour
second = hour - 60 * minute
 
print(str( hour : minute : second ))

Fixed submission:
sec_ = int(input())
print("{}:{}:{}".format(sec_//3600, (sec_//60)%60, sec_%60))
Buggy python submission (verdict: Runtime Error):
import sys
param = sys.argv
print( int(param[1]) ** 3 )

Fixed submission:
import sys
p = sys.stdin.readline()
p = int(p)
o = p ** 3
print o

Buggy python submission (verdict: Runtime Error):
import sys
param = sys.argv
print( int(param[1]) ** 3 )

Fixed submission:
import sys
p = sys.stdin.readline()
p = int(p)
o = p ** 3
print o

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

param = sys.argv

print( int(param[1]) ** 3 )

Fixed submission:
import sys
p = sys.stdin.readline()
p = int(p)
o = p ** 3
print o

Buggy python submission (verdict: Runtime Error):


param = sys.argv

print( int(param[1]) ** 3 )

Fixed submission:
import sys
p = sys.stdin.readline()
p = int(p)
o = p ** 3
print o

Buggy python submission (verdict: Runtime Error):
param = sys.argv

if( len(param) > 1 ):
        print( int(param[1]) ** 3 )
else:
        print("")

Fixed submission:
import sys
p = sys.stdin.readline()
p = int(p)
o = p ** 3
print o
Buggy python submission (verdict: Runtime Error):
params = input().rstrip().split('')
square = int(params[0]) * int(params[2])
length = (int(params[0]) + int(params[1])) * 2

print(square, length)

Fixed submission:
(tate, yoko) = [int(x) for x in input().rstrip().split(' ')]
square = tate * yoko
length = (int(tate) + int(yoko)) * 2

print(square, length)

Buggy python submission (verdict: Runtime Error):
params = input().rstrip().split('')
square = int(params[0]) * int(params[1])
length = (int(params[0]) + int(params[1])) * 2
 
print(square, length)

Fixed submission:
(tate, yoko) = [int(x) for x in input().rstrip().split(' ')]
square = tate * yoko
length = (int(tate) + int(yoko)) * 2

print(square, length)
Buggy python submission (verdict: Runtime Error):
S = int(input())

h = S / 60
m = h % 60
s = m % 60

print(h+ ':' m + ':' + s)

Fixed submission:
S = int(input())

h = S // 3600
m = S // 60 % 60
s = S % 60

#print(h+ ':' + m + ':' + s)
print('{0}:{1}:{2}'.format(h,m,s));

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

h = S / 60
m = h % 60
s = m % 60

print(h+ ':' + m + ':' + s)

Fixed submission:
S = int(input())

h = S // 3600
m = S // 60 % 60
s = S % 60

#print(h+ ':' + m + ':' + s)
print('{0}:{1}:{2}'.format(h,m,s));

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

h = S / 60
m = S % h
s = S % m

print(h+ ':' + m + ':' + s)

Fixed submission:
S = int(input())

h = S // 3600
m = S // 60 % 60
s = S % 60

#print(h+ ':' + m + ':' + s)
print('{0}:{1}:{2}'.format(h,m,s));

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

h = S // 3600
m = S // 60 % 60
s = S % 60

#print(h+ ':' + m + ':' + s)
print("{0}:{1}:{2}".format(h,m,s);

Fixed submission:
S = int(input())

h = S // 3600
m = S // 60 % 60
s = S % 60

#print(h+ ':' + m + ':' + s)
print('{0}:{1}:{2}'.format(h,m,s));
Buggy python submission (verdict: Runtime Error):
n=int(raw_input())
k=int(raw_input())
s=n*k
l=2*(n+k)
print s,l

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

Buggy python submission (verdict: Runtime Error):
n, k =int(raw_input()), int(raw_input())
s=n*k
l=2*(n+k)
print s,l

Fixed submission:
n=map(int,raw_input().split())
print n[0]*n[1],(n[0]+n[1])*2
Buggy python submission (verdict: Runtime Error):
n=map(int,raw_input().split())
if n[0]<n[1]:
	print str(n[0])+"<"str(n[1])
elif n[0]>n[1]:
	print str(n[0])+">"str(n[1])
else:
	print str(n[0])+"=="+str(n[1])

Fixed submission:
n=map(int,raw_input().split())
if n[0]<n[1]:
	print "a < b"
elif n[0]>n[1]:
	print "a > b"
else:
	print "a == b"
Buggy python submission (verdict: Runtime Error):
n=map(int,raw_input().split())
if n[0]=<n[1]=<n[2]:
	a=n[0]
	b=n[1]
	c=n[2]
elif n[0]=<n[2]=<n[1]:
	a=n[0]
	b=n[2]
	c=n[1]
elif n[1]=<n[0]=<n[2]:
	a=n[1]
	b=n[0]
	c=n[2]
elif n[1]=<n[2]=<n[0]:
	a=n[1]
	b=n[2]
	c=n[0]
elif n[2]=<n[0]=<n[1]:
	a=n[2]
	b=n[0]
	c=n[1]
else:
	a=n[2]
	b=n[1]
	c=n[0]
print a,b,c

Fixed submission:
n=map(int,raw_input().split())
if n[0]<=n[1]<=n[2]:
	a=n[0]
	b=n[1]
	c=n[2]
elif n[0]<=n[2]<=n[1]:
	a=n[0]
	b=n[2]
	c=n[1]
elif n[1]<=n[0]<=n[2]:
	a=n[1]
	b=n[0]
	c=n[2]
elif n[1]<=n[2]<=n[0]:
	a=n[1]
	b=n[2]
	c=n[0]
elif n[2]<=n[0]<=n[1]:
	a=n[2]
	b=n[0]
	c=n[1]
else:
	a=n[2]
	b=n[1]
	c=n[0]
print a,b,c
Buggy python submission (verdict: Runtime Error):
x = int(input())

h = x // 3600
m = x % 3600 / 60
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=':')

Buggy python submission (verdict: Runtime Error):
x = int(input())

h = x // 3600
m = x % 3600 // 60
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=':')
Buggy python submission (verdict: Runtime Error):
value = raw_input()
print("value**3")

Fixed submission:
value = int(input())
print(value ** 3)

Buggy python submission (verdict: Runtime Error):
value = input()
answer = value**3
print("answer")

Fixed submission:
value = int(input())
print(value ** 3)

Buggy python submission (verdict: Runtime Error):
value = input()
answer = value * value * value
print("answer")

Fixed submission:
value = int(input())
print(value ** 3)

Buggy python submission (verdict: Runtime Error):
value = input()
print(value ** 3)

Fixed submission:
value = int(input())
print(value ** 3)
Buggy python submission (verdict: Runtime Error):
a, b = int(input().split())
if a < b:
 print("a<b")
if a > b:
 print("a>b")
if a == b:
 print("a==b")

Fixed submission:
a, b = map(int,input().split())
if a < b:
 print("a < b")
if a > b:
 print("a > b")
if a == b:
 print("a == b")
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, raw_input().split())
if a<b<c:
	print "Yes"
else:
	print "No"

Fixed submission:
a, b, c = map(int, raw_input().split())
if a<b<c:
	print "Yes"
else:
	print "No"

Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, raw_input().split())
if a<b<c:
 print "Yes"
else:
 print "No"

Fixed submission:
a, b, c = map(int, raw_input().split())
if a<b<c:
	print "Yes"
else:
	print "No"

Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, raw_input().split())
if a<b<c:
	print "Yes"
else:
	print "No"

Fixed submission:
a, b, c = map(int, raw_input().split())
if a<b<c:
	print "Yes"
else:
	print "No"

Buggy python submission (verdict: Runtime Error):
import sys
a, b, c = map(int, raw_input().split())
if a<b<c:
	print "Yes"
else:
	print "No"

Fixed submission:
a, b, c = map(int, raw_input().split())
if a<b<c:
	print "Yes"
else:
	print "No"

Buggy python submission (verdict: Runtime Error):
# -*- coding: UTF-8 -*-
a, b, c = map(int, raw_input().split())
if a<b<c:
	print "Yes"
else:
	print "No"

Fixed submission:
a, b, c = map(int, raw_input().split())
if a<b<c:
	print "Yes"
else:
	print "No"
Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, raw_input().split())
value = [a,b,c]
value.sort()
value_str = map(str, value)
print " ".join(value_str)

Fixed submission:
a,b,c = map(int, raw_input().split())
value = [a,b,c]
value.sort()
value_str = map(str, value)
print " ".join(value_str)
Buggy python submission (verdict: Runtime Error):
x_list = []
while 1:
	x = input()
	x_list.append(x)
	if x == 0:
		break
for x in x_list:
	if x == 0:
		break
	print "Case " +  str(x_list.index(x)+1) + ": " + str(x)

Fixed submission:
i = 0
while 1:
	x = input()
	if x == 0:
		break
	i += 1
	print "Case %d: %d" % (i,x)
Buggy python submission (verdict: Runtime Error):
x = input()
S = H = C = D = [1,2,3,4,5,6,7,8,9,10,11,12,13]
for i in range(x):
	mark, num = map(str, raw_input().split())
	if mark == 'S':
		S.remove(int(num))
	elif mark == 'H':
		H.remove(int(num))
	elif mark == 'C':
		C.remove(int(num))
	elif mark == 'D':
		D.remove(int(num))
for i in range(len(S)):
	print "S " + str(S[i])
for i in range(len(H)):
	print "H " + str(H[i])
for i in range(len(C)):
	print "C " + str(C[i])
for i in range(len(D)):
	print "D " + str(D[i])

Fixed submission:
x = input()
S = [1,2,3,4,5,6,7,8,9,10,11,12,13]
H = [1,2,3,4,5,6,7,8,9,10,11,12,13]
C = [1,2,3,4,5,6,7,8,9,10,11,12,13]
D = [1,2,3,4,5,6,7,8,9,10,11,12,13]
for i in range(x):
	mark, num = map(str, raw_input().split())
	if mark == 'S':
		S.remove(int(num))
	elif mark == 'H':
		H.remove(int(num))
	elif mark == 'C':
		C.remove(int(num))
	elif mark == 'D':
		D.remove(int(num))
for i in range(len(S)):
	print "S " + str(S[i])
for i in range(len(H)):
	print "H " + str(H[i])
for i in range(len(C)):
	print "C " + str(C[i])
for i in range(len(D)):
	print "D " + str(D[i])

Buggy python submission (verdict: Runtime Error):
x = input()
S = H = C = D = [1,2,3,4,5,6,7,8,9,10,11,12,13]
for i in range(x):
	mark, num = map(str, raw_input().split())
	if mark == 'S':
		S.remove(int(num))
	elif mark == 'H':
		H.remove(int(num))
	elif mark == 'C':
		C.remove(int(num))
	elif mark == 'D':
		D.remove(int(num))
for i in range(len(S)):
	print "S " + str(S[i])
for i in range(len(H)):
	print "H " + str(H[i])
for i in range(len(C)):
	print "C " + str(C[i])
for i in range(len(D)):
	print "D " + str(D[i])

Fixed submission:
x = input()
S = [1,2,3,4,5,6,7,8,9,10,11,12,13]
H = [1,2,3,4,5,6,7,8,9,10,11,12,13]
C = [1,2,3,4,5,6,7,8,9,10,11,12,13]
D = [1,2,3,4,5,6,7,8,9,10,11,12,13]
for i in range(x):
	mark, num = map(str, raw_input().split())
	if mark == 'S':
		S.remove(int(num))
	elif mark == 'H':
		H.remove(int(num))
	elif mark == 'C':
		C.remove(int(num))
	elif mark == 'D':
		D.remove(int(num))
for i in range(len(S)):
	print "S " + str(S[i])
for i in range(len(H)):
	print "H " + str(H[i])
for i in range(len(C)):
	print "C " + str(C[i])
for i in range(len(D)):
	print "D " + str(D[i])
Buggy python submission (verdict: Runtime Error):
stack = []
while True:
    a = raw_input()
    if a == '0 0': break
    for i, b in enumerate(a.split()):
        if i==0:
            x=int(b)
        else:
            y=int(b)
        if x<=y:
            stack.append(x)
            stack.append(y)
        else:
            stack.append(y)
            stack.append(x)
for i, c in enumerate(stack):
    w=i%2
    if w==0:
        x=int(c)
    else:
        y=int(c)
        print x,y

Fixed submission:
while True:
	[a,b]=raw_input().split()
	x=int(a)
	y=int(b)
	if x==y==0:break
	if x<=y:
		print a,b
	else:
		print b,a

Buggy python submission (verdict: Runtime Error):
stack = []
while True:
    a = raw_input()
    if a == '0 0': break
    for i, b in enumerate(a.split()):
        if i==0:
            x=int(b)
        else:
            y=int(b)
        if x<=y:
            stack.append(x)
            stack.append(y)
        else:
            stack.append(y)
            stack.append(x)
for i, c in enumerate(stack):
    w=i%2
    if w==0:
        x=int(c)
    else:
        y=int(c)
        print x,y

Fixed submission:
while True:
	[a,b]=raw_input().split()
	x=int(a)
	y=int(b)
	if x==y==0:break
	if x<=y:
		print a,b
	else:
		print b,a

Buggy python submission (verdict: Runtime Error):
stack = []
while True:
    a = raw_input()
    if a == '0 0': break
    for i, b in enumerate(a.split()):
        if i==0:
            x=int(b)
        else:
            y=int(b)
        if x<=y:
            stack.append(x)
            stack.append(y)
        else:
            stack.append(y)
            stack.append(x)
for i, c in enumerate(stack):
    w=i%2
    if w==0:
        x=int(c)
    else:
        y=int(c)
        print x,y

Fixed submission:
while True:
	[a,b]=raw_input().split()
	x=int(a)
	y=int(b)
	if x==y==0:break
	if x<=y:
		print a,b
	else:
		print b,a

Buggy python submission (verdict: Runtime Error):
stack = []
while True:
    a = raw_input()
    if a == '0 0': break
    for i, b in enumerate(a.split()):
        if i==0:
            x=int(b)
        else:
            y=int(b)
        if x<=y:
            stack.append(x)
            stack.append(y)
        else:
            stack.append(y)
            stack.append(x)
for i, c in enumerate(stack):
    w=i%2
    if w==0:
        x=int(c)
    else:
        y=int(c)
        print x,y

Fixed submission:
while True:
	[a,b]=raw_input().split()
	x=int(a)
	y=int(b)
	if x==y==0:break
	if x<=y:
		print a,b
	else:
		print b,a
Buggy python submission (verdict: Runtime Error):
[a,b]=map(raw_input().split())
x=long(a)
y=long(b)
z=float(x)
w=float(y)
d=x/y
r=x%y
f=1.0000*z/w
print d,r,f

Fixed submission:
[a,b]=raw_input().split()
x=long(a)
y=long(b)
z=float(a)
w=float(b)
d=x/y
r=x%y
f=z/y
print"%d %d %.5f" % (d,r,f)

Buggy python submission (verdict: Runtime Error):
[a,b]=map(raw_input().split())
x=long(a)
y=long(b)
z=float(x)
w=float(y)
d=x/y
r=x%y
f=1.0000*z/y
print d,r,f

Fixed submission:
[a,b]=raw_input().split()
x=long(a)
y=long(b)
z=float(a)
w=float(b)
d=x/y
r=x%y
f=z/y
print"%d %d %.5f" % (d,r,f)