Buggy python submission (verdict: Runtime Error):
import itertools
s=['S','H','C','D']
n=range(1,14)
c=[x y for x,y in itertools.product(s,n)]
for _ in range(input()):
 c.remove(input())
print(*c)

Fixed submission:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Buggy python submission (verdict: Runtime Error):
import itertools
s=['S','H','C','D']
n=[i for i in range(1,14)]
c=[x y for x,y in itertools.product(s,n)]
for _ in range(input()):
 c.remove(input())
print(*c)

Fixed submission:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Buggy python submission (verdict: Runtime Error):
import itertools
s=['S','H','C','D']
n=[str(i) for i in range(1,14)]
c=[x+' '+y for x,y in itertools.product(s,n)]
for _ in range(input()):
 c.remove(input())
print(*c)

Fixed submission:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Buggy python submission (verdict: Runtime Error):
import itertools
s=['S','H','C','D']
n=[str(i) for i in range(1,14)]
c=[x+' '+y for x,y in itertools.product(s,n)]
for _ in range(input()):
 c.remove(str(input()))
print(*c)

Fixed submission:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Buggy python submission (verdict: Runtime Error):
import itertools
s=['S','H','C','D']
n=[str(i) for i in range(1,14)]
c=[x+' '+y for x,y in itertools.product(s,n)]
for _ in range(input()):
 c.remove(input())
print('\n'.join(c))

Fixed submission:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Buggy python submission (verdict: Runtime Error):
c=[x+' '+y for x in'SHCD'for y in range(1,14)
for _ in range(int(input())):c.remove(input())
print('\n'.join(c))

Fixed submission:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Buggy python submission (verdict: Runtime Error):
c=[x+' '+y for x in'SHCD'for y in range(1,14)
for _ in range(int(input())):
 c.remove(input())
print('\n'.join(c))

Fixed submission:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Buggy python submission (verdict: Runtime Error):
c=[x+' '+y for x in'SHCD'for y in range(1,14)]
for _ in range(int(input())):
 c.remove(input())
print('\n'.join(c))

Fixed submission:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Buggy python submission (verdict: Runtime Error):
c=[x+' '+y for x in'SHCD'for y in range(1,14)]
for _ in range(int(input())):
 c.remove(input())
print('\n'.join(c))

Fixed submission:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Buggy python submission (verdict: Runtime Error):
#include <iostream>

using namespace std;

int main(){
    int n, card[13*4]={0};

    cin >> n;
    for (int i = 0; i < n; i++) {
        char s;
        int r;
        cin >> s >> r;
        switch (s) {
            case 'S': card[13*0 + r-1] = 1; break;
            case 'H': card[13*1 + r-1] = 1; break;
            case 'C': card[13*2 + r-1] = 1; break;
            case 'D': card[13*3 + r-1] = 1; break;
        }
    }

    for (int i = 0; i < 13*4; i++) {
        if (card[i] > 0) {
            if (i < 13*1)      cout << "S ";
            else if (i < 13*2) cout << "H ";
            else if (i < 13*3) cout << "C ";
            else               cout << "D ";
            cout << i%13+1 << endl;
        }
    }

    return 0;
}


Fixed submission:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Buggy python submission (verdict: Runtime Error):
e=[input()for _ in[0]*int(input())]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {i}'not in e:print(s,r)


Fixed submission:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)