n = int(input())

remind = []
for i in range(n):
   remind.append(input())

egara = ["S ", "H ", "C ", "D "]
for i in range(4):
   for j in range(13):
      if egara[i]+ str(j) not in a:
         print(egara[i] + str(j))
