Buggy python submission (verdict: Runtime Error):
cards = ([False in i in range(13)] for j in range(4))
pattern = ['S','H','C','D']

n = int(input())

for i in range(n):
  x, y = input().split()
  y = int(y)
  cards = [patterrn.index(x)][y-1]
  
for i in range(4):
  for j in range(13):
    if cards[i][j] == False:
      print(pattern[i][j-1])


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)

Buggy python submission (verdict: Runtime Error):
cards = ([False in i in range(13)] for j in range(4))
pattern = ['S','H','C','D']

n = int(input())

for i in range(n):
  x, y = input().split()
  y = int(y)
  cards = [pattern.index(x)][y-1]
  
for i in range(4):
  for j in range(13):
    if cards[i][j] == False:
      print(pattern[i][j-1])


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)

Buggy python submission (verdict: Runtime Error):
cards = ([False in i in range(13)] for j in range(4))
pattern = ['S','H','C','D']

n = int(input())

for i in range(n):
  x, y = input().split()
  y = int(y)
  cards = [pattern.index(x)][y-1]
  
for i in range(4):
  for j in range(13):
    if cards[i][j] == False:
      print(pattern[i][j-1])


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)

Buggy python submission (verdict: Runtime Error):
cards = ([False in i in range(13)] for j in range(4))
pattern = ['S','H','C','D']

n = int(input())

for i in range(n):
  x, y = input().split()
  y = int(y)
  cards = [pattern.index(x)][y-1] = True
  
for i in range(4):
  for j in range(13):
    if cards[i][j] == False:
      print(pattern[i][j-1])


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)

Buggy python submission (verdict: Runtime Error):
cards = ([False in i in range(13)] for j in range(4))
pattern = ['S','H','C','D']

n = int(input())

for i in range(n):
  x, y = input().split()
  y = int(y)
  cards[pattern.index(x)][y-1] = True
  
for i in range(4):
  for j in range(13):
    if cards[i][j] == False:
      print(pattern[i][j-1])


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)

Buggy python submission (verdict: Runtime Error):
cards = [([False in i in range(13)] for j in range(4)]
pattern = ['S','H','C','D']
​
n = int(input())
​
for i in range(n):
  x, y = input().split()
  y = int(y)
  cards[pattern.index(x)][y-1] = True
  
for i in range(4):
  for j in range(13):
    if cards[i][j] == False:
      print(pattern[i],[j-1])


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)

Buggy python submission (verdict: Runtime Error):
cards = [([False in i in range(13)] for j in range(4)]
pattern = ['S','H','C','D']

n = int(input())

for i in range(n):
  x, y = input().split()
  y = int(y)
  cards[pattern.index(x)][y-1] = True
  
for i in range(4):
  for j in range(13):
    if cards[i][j] == False:
      print(pattern[i],[j-1])


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)

Buggy python submission (verdict: Runtime Error):
cards = [[False in i in range(13)] for j in range(4)]
pattern = ['S','H','C','D']

n = int(input())

for i in range(n):
  x, y = input().split()
  y = int(y)
  cards[pattern.index(x)][y-1] = True
  
for i in range(4):
  for j in range(13):
    if cards[i][j] == False:
      print(pattern[i],[j-1])


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)

Buggy python submission (verdict: Runtime Error):
cards =[]
symbol = ['S','H','C','D']

for sym in symbol:
  for i in range(1,14):
    cards.append(sym + '' + str(i))
    
n = int(input())
for j in range(n):
  cards.remove(input())

for card in cards:
  print(card)


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)

Buggy python submission (verdict: Runtime Error):
cards = []
symbol = ['S', 'H', 'C', 'D']
for sym in symbol:
    for i in range(1, 14):
        cards.append(sym + '' + str(i))

n = int(input())
for i in range(n):
    cards.remove(input())

for card in cards:
    print(card)


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)

Buggy python submission (verdict: Runtime Error):
n = int(input())
card=[i + '' + str(j) for i in ['S','H','C','D'] for j in range(1,14)]

for i in range(n):
  card.remove(input())
  
for i in card:
  print(card)


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)

Buggy python submission (verdict: Runtime Error):
n = int(input())
card=[i+""+str(j) for i in ['S','H','C','D'] for j in range(1,14)]

for i in range(n):
    card.remove(input())
  
for i in card:
    print(card)
  


Fixed submission:
n = int(input())
card =[i+" "+str(j) for i in ["S","H","C","D"] for j in range(1,14)]
for i in range(n):
    card.remove(input())
for i in card:
    print(i)