Language: C++

'''
?????????????????????
??????????????¨??????????????\?????????
???????????????????????¨????????????
??????????????????
????????????????????£????¶????????????°???????????????????????????
?¬????????????????????????°??????1??\????????????
??????????????¨?????????????????????????????????????????¨??????????????°????????????????????????
??????1??\???????????°??????????????????????¬???????????????¨???????????????
???????????£?????????????????¨??????????????\?????????
??£?????¨??????????????????????????????
??????????????????????????????????????£????????????????????\?????§??§????????????
??????????????????????????????????????????????????§????????°??§????????????
??§?????£?????¨?????§?????£?????????????????´??????

??£?????¨?????§?????¶??????????????????????????????????´????
????????????????????????????????°??????????????????
????????????????????£???????????°?????????????????????1????????§???????????°?¶????????????°??????
?????????????????\???????????????????´????
?????????4???????????¶??????????????????????????????

??°??????????????£???int????????????
??°???????????????????????¨???????????????????´??????????????????¨?????????????????????????¶??????°????????????

??????2??\????????????????????´???????????????????????????
'''


import re

#eCard = ['S 1', 'S 5', 'H 1', 'D 2', 'C 8', 'S 13']
eCard = []
n = int(input())
i = 0
while i < n:
    eCard.append(input())
    i += 1

#print(eCard)
#???????????????????????£?????¨?????§????´¢???????????????
S = []
H = []
D = []
C = []

missingS = []
missingH = []
missingD = []
missingC = []


def assortSuit(s, sc):
    i = 0

#??????????????????????????¢?????\?????????????????????
    while i < int(len(eCard)):
        if re.match(s, eCard[i]):
            Smatch = re.search('\d+', eCard[i])
            sc.append(int(Smatch.group()))#????????????????????????????????£?????????????????¨???????????°???????????????
        i += 1

#S = re.search(???^S.*???, eCard)
assortSuit('^S', S)
assortSuit('^H', H)
assortSuit('^D', D)
assortSuit('^C', C)

def selectMissingCards(c, mc):
    c.sort()
#???????????°???????°?????????°????????????????????¨???
    smallerC = 1
    while smallerC < c[0]:
        mc.append(smallerC)
        smallerC += 1
        
        
    i = 0

    while i < len(c)-1:
        m = c[i+1] - c[i]
    
        if m > 1:
            h = 1
            while h < m:
                mc.append(c[i]+h)
                h += 1
        i += 1
    largerC = c[i] + 1
    while largerC <= 13:
        mc.append(largerC)
        largerC += 1
        
            

selectMissingCards(S, missingS)
selectMissingCards(H, missingH)
selectMissingCards(D, missingD)
selectMissingCards(C, missingC)

'''
print(missingS)
print(missingH)
print(missingD)
print(missingC)
'''

missingCards = []

def allMissingCards(mc, s):
    #??????????????????????????????????????°?????????????????????????????????????????????????´????
    i = 0
    while i < len(mc):
        missingCards.append(s + str(mc[i]))
        i += 1
    
allMissingCards(missingS, "S ")
allMissingCards(missingH, "H ")
allMissingCards(missingD, "D ")
allMissingCards(missingC, "C ")

#print(missingCards)

i = 0
while i < len(missingCards):
    print(missingCards[i])
    i += 1
    


'''
if S:
    #??°?????????????????????????´????
    
    Scard = re.search(???\d+???, S)#?????????????????????????????????????????£?????¨???????????§?????????????????°??????????????¨???
    SeCard = []
    SeCard.append(int(Scard.group()))
    print(SeCard)
'''

Compiler output:
a.cc:1:1: error: empty character constant
    1 | '''
      | ^~
a.cc:1:3: warning: missing terminating ' character
    1 | '''
      |   ^
a.cc:1:3: error: missing terminating ' character
a.cc:3:30: error: stray '\' in program
    3 | ??????????????¨??????????????\?????????
      |                              ^
a.cc:6:21: error: extended character £ is not valid in an identifier
    6 | ????????????????????£????¶????????????°???????????????????????????
      |                     ^
a.cc:6:26: error: extended character ¶ is not valid in an identifier
    6 | ????????????????????£????¶????????????°???????????????????????????
      |                          ^
a.cc:6:39: error: extended character ° is not valid in an identifier
    6 | ????????????????????£????¶????????????°???????????????????????????
      |                                       ^
a.cc:7:2: error: extended character ¬ is not valid in an identifier
    7 | ?¬????????????????????????°??????1??\????????????
      |  ^
a.cc:7:27: error: extended character ° is not valid in an identifier
    7 | ?¬????????????????????????°??????1??\????????????
      |                           ^
a.cc:7:37: error: stray '\' in program
    7 | ?¬????????????????????????°??????1??\????????????
      |                                     ^
a.cc:8:72: error: extended character ° is not valid in an identifier
    8 | ??????????????¨?????????????????????????????????????????¨??????????????°????????????????????????
      |                                                                        ^
a.cc:9:10: error: stray '\' in program
    9 | ??????1??\???????????°??????????????????????¬???????????????¨???????????????
      |          ^
a.cc:9:22: error: extended character ° is not valid in an identifier
    9 | ??????1??\???????????°??????????????????????¬???????????????¨???????????????
      |                      ^
a.cc:9:45: error: extended character ¬ is not valid in an identifier
    9 | ??????1??\???????????°??????????????????????¬???????????????¨???????????????
      |                                             ^
a.cc:10:12: error: extended character £ is not valid in an identifier
   10 | ???????????£?????????????????¨??????????????\?????????
      |            ^
a.cc:10:45: error: stray '\' in program
   10 | ???????????£?????????????????¨??????????????\?????????
      |                                             ^
a.cc:11:3: error: extended character £ is not valid in an identifier
   11 | ??£?????¨??????????????????????????????
      |   ^
a.cc:12:39: error: extended character £ is not valid in an identifier
   12 | ??????????????????????????????????????£????????????????????\?????§??§????????????
      |                                       ^
a.cc:12:60: error: stray '\' in program
   12 | ??????????????????????????????????????£????????????????????\?????§??§????????????
      |                                                            ^
a.cc:12:66: error: extended character § is not valid in an identifier
   12 | ??????????????????????????????????????£????????????????????\?????§??§????????????
      |                                                                  ^
a.cc:12:69: error: extended character § is not valid in an identifier
   12 | ??????????????????????????????????????£????????????????????\?????§??§????????????
      |                                                                     ^
a.cc:13:51: error: extended character § is not valid in an identifier
   13 | ??????????????????????????????????????????????????§????????°??§????????????
      |                                                   ^
a.cc:13:60: error: extended character ° is not valid in an identifier
   13 | ??????????????????????????????????????????????????§????????°??§????????????
      |                                                            ^
a.cc:13:63: error: extended character § is not valid in an identifier
   13 | ??????????????????????????????????????????????????§????????°??§????????????
      |                                                               ^
a.cc:14:3: error: extended character § is not valid in an identifier
   14 | ??§?????£?????¨?????§?????£?????????????????´??????
      |   ^
a.cc:14:9: error: extended character £ is not valid in an identifier
   14 | ??§?????£?????¨?????§?????£?????????????????´??????
      |         ^
a.cc:14:21: error: extended character § is not valid in an identifier
   14 | ??§?????£?????¨?????§?????£?????????????????´??????
      |                     ^
a.cc:14:27: error: extended character £ is not valid in an identifier
   14 | ??§?????£?????¨?????§?????£?????????????????´??????
      |                           ^
a.cc:16:3: error: extended character £ is not valid in an identifier
   16 | ??£?????¨?????§?????¶??????????????????????????????????´????
      |   ^
a.cc:16:15: error: extended character § is not valid in an identifier
   16 | ??£?????¨?????§?????¶??????????????????????????????????´????
      |               ^
a.cc:16:21: error: extended character ¶ is not valid in an identifier
   16 | ??£?????¨?????§?????¶??????????????????????????????????´????
      |                     ^
a.cc:17:33: error: extended character ° is not valid in an identifier
   17 | ????????????????????????????????°??????????????????
      |                                 ^
a.cc:18:21: error: extended character £ is not valid in an identifier
   18 | ????????????????????£???????????°?????????????????????1????????§???????????°?¶????????????°??????
      |                     ^
a.cc:18:33: error: extended character ° is not valid in an identifier
   18 | ????????????????????£???????????°?????????????????????1????????§???????????°?¶????????????°??????
      |                                 ^
a.cc:18:64: error: extended character § is not valid in an identifier
   18 | ????????????????????£???????????°?????????????????????1????????§???????????°?¶????????????°??????
      |                                                                ^
a.cc:18:76: error: extended character ° is not valid in an identifier
   18 | ????????????????????£???????????°?????????????????????1????????§???????????°?¶????????????°??????
      |                                                                            ^
a.cc:18:78: error: extended character ¶ is not valid in an identifier
   18 | ????????????????????£???????????°?????????????????????1????????§???????????°?¶????????????°??????
      |                                                                              ^
a.cc:18:91: error: extended character ° is not valid in an identifier
   18 | ????????????????????£???????????°?????????????????????1????????§???????????°?¶????????????°??????
      |                                                                                           ^
a.cc:19:18: error: stray '\' in program
   19 | ?????????????????\???????????????????´????
      |                  ^
a.cc:20:22: error: extended character ¶ is not valid in an identifier
   20 | ?????????4???????????¶??????????????????????????????
      |                      ^
a.cc:22:3: error: extended character ° is not valid in an identifier
   22 | ??°??????????????£???int????????????
      |   ^
a.cc:22:18: error: extended character £ is not valid in an identifier
   22 | ??°??????????????£???int????????????
      |                  ^
a.cc:23:3: error: extended character ° is not valid in an identifier
   23 | ??°???????????????????????¨???????????????????´??????????????????¨?????????????????????????¶??????°????????????
      |   ^
a.cc:23:92: error: extended character ¶ is not valid in an identifier
   23 | ??°???????????????????????¨???????????????????´??????????????????¨?????????????????????????¶??????°????????????
      |                                                                                            ^
a.cc:23:99: error: extended character ° is not valid in an identifier
   23 | ??°???????????????????????¨???????????????????´??????????????????¨?????????????????????????¶??????°????????????
      |                                                                                                   ^
a.cc:25:10: error: stray '\' in program
   25 | ??????2??\????????????????????´???????????????????????????
      |          ^
a.cc:26:1: error: empty character constant
   26 | '''
      | ^~
a.cc:26:3: warning: missing terminating ' character
   26 | '''
      |   ^
a.cc:26:3: error: missing terminating ' character
a.cc:31:2: error: invalid preprocessing directive #eCard
   31 | #eCard = ['S 1', 'S 5', 'H 1', 'D 2', 'C 8', 'S 13']
      |  ^~~~~
a.cc:39:2: error: invalid preprocessing directive #print
   39 | #print(eCard)
      |  ^~~~~
a.cc:40:2: error: invalid preprocessing directive #?
   40 | #???????????????????????£?????¨?????§????´¢???????????????
      |  ^
a.cc:40:25: error: extended character £ is not valid in an identifier
   40 | #???????????????????????£?????¨?????§????´¢???????????????
      |                         ^
a.cc:40:37: error: extended character § is not valid in an identifier
   40 | #???????????????????????£?????¨?????§????´¢???????????????
      |                                     ^
a.cc:40:42: error: extended character ¢ is not valid in an identifier
   40 | #???????????????????????£?????¨?????§????´¢???????????????
      |                                          ^
a.cc:55:2: error: invalid preprocessing directive #?
   55 | #??????????????????????????¢?????\?????????????????????
      |  ^
a.cc:55:28: error: extended character ¢ is not valid in an identifier
   55 | #??????????????????????????¢?????\?????????????????????
      |                            ^
a.cc:58:32: warning: unknown escape sequence: '\d'
   58 |             Smatch = re.search('\d+', eCard[i])
      |                                ^~~~~
a.cc:58:32: warning: multi-character character constant [-Wmultichar]
a.cc:59:43: error: stray '#' in program
   59 |             sc.append(int(Smatch.group()))#????????????????????????????????£???