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

S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)

for i in range(0, n):
   mk, num = map(int,raw_input()split())
      if mk == 'S':
         S[str(num)-1] = 0
      elif mk == 'H':
         S[str(num)-1] = 0
      elif mk == 'C':
         S[str(num)-1] = 0
      elif mk == 'D':
         S[str(num)-1] = 0

for x in range(0, 4):
   for y in range(0, 13):
      if S[x][y] != 0
         print ('S' y+1)

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

Buggy python submission (verdict: Runtime Error):
n = input()
 
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
 
for i in range(0, n):
   mk, num = map(int,raw_input()split())
      if mk == 'S':
         S[str(num)-1] = 0
      elif mk == 'H':
         S[str(num)-1] = 0
      elif mk == 'C':
         S[str(num)-1] = 0
      elif mk == 'D':
         S[str(num)-1] = 0
 
for i in S:
   if S[i] != 0:
      print ('S' i+1)

for i in H:
   if S[i] != 0:
      print ('H' i+1)

for i in C:
   if S[i] != 0:
      print ('C' i+1)

for i in D:
   if S[i] != 0:
      print ('D' i+1)

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

Buggy python submission (verdict: Runtime Error):
n = input()
  
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
  
for i in range(0, n):
   mk, num = raw_input()split()
      if mk == 'S':
         S[str(num)-1] = 0
      elif mk == 'H':
         S[str(num)-1] = 0
      elif mk == 'C':
         S[str(num)-1] = 0
      elif mk == 'D':
         S[str(num)-1] = 0
  
for i in S:
   if S[i] != 0:
      print 'S'+str(S[i+1])
 
for i in H:
   if S[i] != 0:
      print 'H'+ str(H[i+1])
 
for i in C:
   if S[i] != 0:
      print 'C'+str(C[i+1])
 
for i in D:
   if S[i] != 0:
      print 'D'+str(D[i+1])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

Buggy python submission (verdict: Runtime Error):
n = input()
   
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
   
for i in range(0, n):
   mk = raw_input()split()
   num = int, raw_input()split()
      if mk == 'S':
         S[r-1] = 0
      elif mk == 'H':
         S[r-1] = 0
      elif mk == 'C':
         S[r-1] = 0
      elif mk == 'D':
         S[r-1] = 0
   
for i in S:
   if S[i] != 0:
      print 'S'+str(S[i])
  
for i in H:
   if S[i] != 0:
      print 'H'+ str(H[i])
  
for i in C:
   if S[i] != 0:
      print 'C'+str(C[i])
  
for i in D:
   if S[i] != 0:
      print 'D'+str(D[i])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

Buggy python submission (verdict: Runtime Error):
n = input()
    
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
    
for i in range(0, n):
   mk = raw_input()split()
   num = int, raw_input()split()
      if mk == 'S':
         S[num-1] = 0
      elif mk == 'H':
         S[num-1] = 0
      elif mk == 'C':
         S[num-1] = 0
      elif mk == 'D':
         S[num-1] = 0
    
for i in S:
   if S[i] != 0:
      print 'S'+str(S[i])
   
for i in H:
   if S[i] != 0:
      print 'H'+ str(H[i])
   
for i in C:
   if S[i] != 0:
      print 'C'+str(C[i])
   
for i in D:
   if S[i] != 0:
      print 'D'+str(D[i])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

Buggy python submission (verdict: Runtime Error):
n = input()
     
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
     
for i in range(0, n):
   mk = raw_input()split()
   num = int, raw_input()split()
      if mk == 'S':
         S[num-1] = 0
      elif mk == 'H':
         H[num-1] = 0
      elif mk == 'C':
         C[num-1] = 0
      elif mk == 'D':
         D[num-1] = 0
     
for i in S:
   if S[i] != 0:
      print 'S '+str(S[i])
    
for i in H:
   if S[i] != 0:
      print 'H '+ str(H[i])
    
for i in C:
   if S[i] != 0:
      print 'C '+str(C[i])
    
for i in D:
   if S[i] != 0:
      print 'D '+str(D[i])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

Buggy python submission (verdict: Runtime Error):
n = input()
      
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
      
for i in range(0, n):
   mk = raw_input()split()
   num = int, raw_input()split()
      if mk == 'S':
         S[num-1] = 0
      elif mk == 'H':
         H[num-1] = 0
      elif mk == 'C':
         C[num-1] = 0
      elif mk == 'D':
         D[num-1] = 0
      
for i in range(1, 13):
   if S[i] != 0:
      print 'S '+ str(S[i])
     
for i in range(0, 13):
   if S[i] != 0:
      print 'H '+ str(H[i])
     
for i in range(0, 13):
   if S[i] != 0:
      print 'C '+ str(C[i])
     
for i in range(0,13):
   if S[i] != 0:
      print 'D '+ str(D[i])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

Buggy python submission (verdict: Runtime Error):
n = input()
       
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
       
for i in range(0, n):
   mk, num = raw_input()split()
      if mk == 'S':
         S[int(num)-1] = 0
      elif mk == 'H':
         H[int(num)-1] = 0
      elif mk == 'C':
         C[int(num)-1] = 0
      elif mk == 'D':
         D[int(num)-1] = 0
       
for i in range(1, 13):
   if S[i] != 0:
      print 'S '+ str(S[i])
      
for i in range(0, 13):
   if S[i] != 0:
      print 'H '+ str(H[i])
      
for i in range(0, 13):
   if S[i] != 0:
      print 'C '+ str(C[i])
      
for i in range(0,13):
   if S[i] != 0:
      print 'D '+ str(D[i])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

Buggy python submission (verdict: Runtime Error):
n = input()
        
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
        
for i in range(0, n):
   mk, num = raw_input().split()
      if mk == 'S':
         S[int(num)-1] = 0
      elif mk == 'H':
         H[int(num)-1] = 0
      elif mk == 'C':
         C[int(num)-1] = 0
      elif mk == 'D':
         D[int(num)-1] = 0
        
for i in range(1, 13):
   if S[i] != 0:
      print 'S '+ str(S[i])
       
for i in range(0, 13):
   if S[i] != 0:
      print 'H '+ str(H[i])
       
for i in range(0, 13):
   if S[i] != 0:
      print 'C '+ str(C[i])
       
for i in range(0,13):
   if S[i] != 0:
      print 'D '+ str(D[i])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

Buggy python submission (verdict: Runtime Error):
n = input()
??????????????????
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
??????????????????
for i in range(0, n):
??????mk, num = raw_input().split()
????????????if mk == 'S':
??????????????????S[int(num)-1] = 0
????????????elif mk == 'H':
??????????????????H[int(num)-1] = 0
????????????elif mk == 'C':
??????????????????C[int(num)-1] = 0
????????????elif mk == 'D':
??????????????????D[int(num)-1] = 0
??????????????????
for i in range(0, 13):
??????if S[i] != 0:
????????????print 'S '+ str(S[i])
????????????????
for i in range(0, 13):
??????if H[i] != 0:
????????????print 'H '+ str(H[i])
????????????????
for i in range(0, 13):
??????if C[i] != 0:
????????????print 'C '+ str(C[i])
????????????????
for i in range(0,13):
??????if D[i] != 0:
????????????print 'D '+ str(D[i])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

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

S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)

for i in range(0, n):
   mk, num = raw_input().split()
      if mk == 'S':
         S[int(num)-1] = 0
      elif mk == 'H':
         H[int(num)-1] = 0
      elif mk == 'C':
         C[int(num)-1] = 0
      elif mk == 'D':
         D[int(num)-1] = 0

for i in range(0, 13):
   if S[i] != 0:
      print 'S '+ str(S[i])

for i in range(0, 13):
   if H[i] != 0:
      print 'H '+ str(H[i])

for i in range(0, 13):
   if C[i] != 0:
      print 'C '+ str(C[i])

for i in range(0,13):
   if D[i] != 0:
      print 'D '+ str(D[i])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

Buggy python submission (verdict: Runtime Error):
n = input()
 
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
 
for i in range(0, n):
   m, n = raw_input().split()
      if m == 'S':
         S[int(n)-1] = 0
      elif m == 'H':
         H[int(n)-1] = 0
      elif m == 'C':
         C[int(n)-1] = 0
      elif m == 'D':
         D[int(n)-1] = 0

for i in range(0, 13):
   if S[i] != 0:
      print 'S '+str(S[i])

for i in range(0, 13):
   if H[i] != 0:
      print 'H '+str(H[i])

for i in range(0, 13):
   if C[i] != 0:
      print 'C '+str(C[i])

for i in range(0, 13):
   if D[i] != 0:
      print 'D '+str(D[i])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

Buggy python submission (verdict: Runtime Error):
n = input()
  
S = range(1, 14)
H = range(1, 14)
C = range(1, 14)
D = range(1, 14)
  
for i in range(0, n):
   m, k = raw_input().split()
      if m == 'S':
         S[int(k)-1] = 0
      elif m == 'H':
         H[int(k)-1] = 0
      elif m == 'C':
         C[int(k)-1] = 0
      elif m == 'D':
         D[int(k)-1] = 0
 
for i in range(0, 13):
   if S[i] != 0:
      print 'S '+str(S[i])
 
for i in range(0, 13):
   if H[i] != 0:
      print 'H '+str(H[i])
 
for i in range(0, 13):
   if C[i] != 0:
      print 'C '+str(C[i])
 
for i in range(0, 13):
   if D[i] != 0:
      print 'D '+str(D[i])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])

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

S=range(1,14)
H=range(1,14)
C=range(1,14)
D=range(1,14)
 
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      S[int(k)-1] = 0
   elif m == 'H':
       H[int(k)-1] = 0
   elif m == 'C':
       C[int(k)-1] = 0
   elif m == 'D':
       D[int(k)-1] = 0

for i in range(0, 13):
   if S[i] != 0:
      print 'S '+str(S[i])

for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(H[i])

for i in range(0, 13):
   if C[i] != 0:
      print 'C '+str(C[i])

for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(D[i])

Fixed submission:
n=input()
  
s=range(1,14)
h=range(1,14)
c=range(1,14)
d=range(1,14)
   
for i in range(n):
   m, k=raw_input().split()
   if m == 'S':
      s[int(k)-1] = 0
   elif m == 'H':
      h[int(k)-1] = 0
   elif m == 'C':
      c[int(k)-1] = 0
   elif m == 'D':
      d[int(k)-1] = 0
  
for i in range(0, 13):
   if s[i] != 0:
      print 'S '+str(s[i])
  
for i in range(0, 13):
   if h[i] != 0:
      print 'H '+str(h[i])
  
for i in range(0, 13):
   if c[i] != 0:
      print 'C '+str(c[i])
  
for i in range(0, 13):
   if d[i] != 0:
      print 'D '+str(d[i])