Buggy python submission (verdict: Runtime Error):
n = input()
s = []
h = []
c = []
d = []

for i in range(n):
  card = raw_input().split(" ")
  card[1] = int(card[1])
  if card[0] == "S":
  	s.append(card[1])
  if card[0] == "H":
  	h.append(card[1])
  if card[0] == "C":
  	c.append(card[1])
  if card[0] == "D":
  	d.append(card[1])

def sort_list(lst):
#make a temporary file for storing data
  temp = []
  for i in range(1,14):
    if i not in lst:
	temp.append(i)
  lst = sorted(temp)
  return lst
  
check_cards(mark,lst):
	lst = sort_list(lst)
	for i in lst:
		print mark+" "+str(i)

check_cards(S,s)
check_cards(H,h)
check_cards(C,c)
check_cards(D,d)

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]

Buggy python submission (verdict: Runtime Error):
n = input()
s = []
h = []
c = []
d = []

for i in range(n):
  card = raw_input().split(" ")
  card[1] = int(card[1])
  if card[0] == "S":
  	s.append(card[1])
  if card[0] == "H":
  	h.append(card[1])
  if card[0] == "C":
  	c.append(card[1])
  if card[0] == "D":
  	d.append(card[1])

def sort_list(lst):
#make a temporary file for storing data
  temp = []
  for i in range(1,14):
    if i not in lst:
	temp.append(i)
  lst = sorted(temp)
  return lst
  
check_cards(mark,lst):
	lst = sort_list(lst)
	for i in lst:
		print mark+" "+str(i)

check_cards(S,s)
check_cards(H,h)
check_cards(C,c)
check_cards(D,d)

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]

Buggy python submission (verdict: Runtime Error):
n = input()
d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13}

for i in range(n):
	x, y = raw_input().split()
	d[x][int(y)-1] = True

for k in ["S","H","C","D"]:
	for i in range(13):
		if not d[k][i]:
		print ("%s %d"%(k, i+1))

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]

Buggy python submission (verdict: Runtime Error):
n = input()
d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13}

for i in range(n):
	x, y = raw_input().split()
	d[x][int(y)-1] = True

for k in ["S","H","C","D"]:
	for i in range(13):
		if d[k][i] == True:
		print ("%s %d"%(k, i+1))

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]

Buggy python submission (verdict: Runtime Error):
n = input()
d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13}

for i in range(n):
	x, y = raw_input().split()
	d[x][int(y)-1] = True

for k in ["S","H","C","D"]:
	for i in range(13):
		if d[k][i]:
		print ("%s %d"%(k, i+1))

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]

Buggy python submission (verdict: Runtime Error):
n = input()
d = {"S":[none]*13, "H":[none]*13, "C":[none]*13, "D":[none]*13}

for i in range(n):
	x, y = raw_input().split()
	d[x][int(y)-1] = True

for k in ["S","H","C","D"]:
	for i in range(13):
		if d[k][i]:
			continue
		print ("%s %d"%(k, i+1))

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]

Buggy python submission (verdict: Runtime Error):
n = int(raw_input)
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
	a = raw_input()
	if a in lst:
		lst.remove(a)
#print the result
for i in xrange(0,len(lst)):
	print a[i]

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]

Buggy python submission (verdict: Runtime Error):
n = int(raw_input)
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
	a = raw_input()
	if a in lst:
		lst.remove(a)
#print the result
for i in xrange(0,len(lst)):
	print lst[i]

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]

Buggy python submission (verdict: Runtime Error):
n = int(raw_input)
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in xrange(0,len(lst)):
	print lst[i]

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]

Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in xrange(0,len(lst)):
	print lst[i]

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]

Buggy python submission (verdict: Runtime Error):
n = int(raw_input)
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in lst:
	print i

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]

Buggy python submission (verdict: Runtime Error):
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format((i,j))
#discard the given cards
for i in xrange(0,n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in lst:
	print i

Fixed submission:
n = int(raw_input())
lst = []
#store all the cards
for i in ["S","H","C","D"]:
	for j in xrange(1,14):
		lst.append("{0} {1}".format(i,j))
#discard the given cards
for i in range(n):
	a = raw_input()
	lst.remove(a)
#print the result
for i in range(len(lst)):
	print lst[i]