import java.util.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String str;
      String[] arr;
      int[][] pc = new int[4][13];
    
    /*
    pc[suit][number][bool]
    bool:
      0 = doesn't exist
      1 = exists
    suit:
      0 = Spade
      1 = Heart
      2 = Club
      3 = Diamond
    */
    
      for(int i = 0; i < n; i++){
         str = sc.nextLine();
         arr = str.split(" ");
         if(arr[0].equals("S")){
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         }
      }
      
      String[] symbol = {"S", "H", "C", "D"};
    
      for(int suit = 0; suit < 4; suit ++ ){
         for(int number = 0; number < 13; number ++){
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         }
      }
      
    
    
   }//main
}//class import java.util.*; util.* java public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String str;
      String[] arr;
      int[][] pc = new int[4][13];
    
    /*
    pc[suit][number][bool]
    bool:
      0 = doesn't exist
      1 = exists
    suit:
      0 = Spade
      1 = Heart
      2 = Club
      3 = Diamond
    */
    
      for(int i = 0; i < n; i++){
         str = sc.nextLine();
         arr = str.split(" ");
         if(arr[0].equals("S")){
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         }
      }
      
      String[] symbol = {"S", "H", "C", "D"};
    
      for(int suit = 0; suit < 4; suit ++ ){
         for(int number = 0; number < 13; number ++){
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         }
      }
      
    
    
   }//main
}//class Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String str;
      String[] arr;
      int[][] pc = new int[4][13];
    
    /*
    pc[suit][number][bool]
    bool:
      0 = doesn't exist
      1 = exists
    suit:
      0 = Spade
      1 = Heart
      2 = Club
      3 = Diamond
    */
    
      for(int i = 0; i < n; i++){
         str = sc.nextLine();
         arr = str.split(" ");
         if(arr[0].equals("S")){
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         }
      }
      
      String[] symbol = {"S", "H", "C", "D"};
    
      for(int suit = 0; suit < 4; suit ++ ){
         for(int number = 0; number < 13; number ++){
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         }
      }
      
    
    
   }//main main {
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String str;
      String[] arr;
      int[][] pc = new int[4][13];
    
    /*
    pc[suit][number][bool]
    bool:
      0 = doesn't exist
      1 = exists
    suit:
      0 = Spade
      1 = Heart
      2 = Club
      3 = Diamond
    */
    
      for(int i = 0; i < n; i++){
         str = sc.nextLine();
         arr = str.split(" ");
         if(arr[0].equals("S")){
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         }
      }
      
      String[] symbol = {"S", "H", "C", "D"};
    
      for(int suit = 0; suit < 4; suit ++ ){
         for(int number = 0; number < 13; number ++){
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         }
      }
      
    
    
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String str; str String[] arr; arr int[][] pc = new int[4][13]; pc new int[4][13] 4 13 for(int i = 0; i < n; i++){
         str = sc.nextLine();
         arr = str.split(" ");
         if(arr[0].equals("S")){
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         }
      } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
         str = sc.nextLine();
         arr = str.split(" ");
         if(arr[0].equals("S")){
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         }
      } {
         str = sc.nextLine();
         arr = str.split(" ");
         if(arr[0].equals("S")){
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         }
      } str = sc.nextLine() str sc.nextLine() sc.nextLine sc arr = str.split(" ") arr str.split(" ") str.split str " " if(arr[0].equals("S")){
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         } arr[0].equals("S") arr[0].equals arr[0] arr 0 "S" {
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         } pc[0][Integer.parseInt(arr[1])-1] = 1 pc[0][Integer.parseInt(arr[1])-1] pc[0] pc 0 Integer.parseInt(arr[1])-1 Integer.parseInt(arr[1]) Integer.parseInt Integer arr[1] arr 1 1 1 if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         } arr[0].equals("H") arr[0].equals arr[0] arr 0 "H" {
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         } pc[1][Integer.parseInt(arr[1])-1] = 1 pc[1][Integer.parseInt(arr[1])-1] pc[1] pc 1 Integer.parseInt(arr[1])-1 Integer.parseInt(arr[1]) Integer.parseInt Integer arr[1] arr 1 1 1 if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         } arr[0].equals("C") arr[0].equals arr[0] arr 0 "C" {
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         } pc[2][Integer.parseInt(arr[1])-1] = 1 pc[2][Integer.parseInt(arr[1])-1] pc[2] pc 2 Integer.parseInt(arr[1])-1 Integer.parseInt(arr[1]) Integer.parseInt Integer arr[1] arr 1 1 1 if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         } arr[0].equals("D") arr[0].equals arr[0] arr 0 "D" {
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         } pc[3][Integer.parseInt(arr[1])-1] = 1 pc[3][Integer.parseInt(arr[1])-1] pc[3] pc 3 Integer.parseInt(arr[1])-1 Integer.parseInt(arr[1]) Integer.parseInt Integer arr[1] arr 1 1 1 String[] symbol = {"S", "H", "C", "D"}; symbol {"S", "H", "C", "D"} "S" "H" "C" "D" for(int suit = 0; suit < 4; suit ++ ){
         for(int number = 0; number < 13; number ++){
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         }
      } int suit = 0; int suit = 0; suit 0 suit < 4 suit 4 suit ++ suit ++ suit {
         for(int number = 0; number < 13; number ++){
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         }
      } {
         for(int number = 0; number < 13; number ++){
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         }
      } for(int number = 0; number < 13; number ++){
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         } int number = 0; int number = 0; number 0 number < 13 number 13 number ++ number ++ number {
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         } {
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         } if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            } pc[suit][number] == 0 pc[suit][number] pc[suit] pc suit number 0 {
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            } System.out.print(symbol[suit] + " " + (number + 1) + "\n") System.out.print System.out System System.out symbol[suit] + " " + (number + 1) + "\n" (number + 1) symbol[suit] + " " + (number + 1) + "\n" symbol[suit] symbol suit " " (number + 1) number 1 "\n" String[] args args public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String str;
      String[] arr;
      int[][] pc = new int[4][13];
    
    /*
    pc[suit][number][bool]
    bool:
      0 = doesn't exist
      1 = exists
    suit:
      0 = Spade
      1 = Heart
      2 = Club
      3 = Diamond
    */
    
      for(int i = 0; i < n; i++){
         str = sc.nextLine();
         arr = str.split(" ");
         if(arr[0].equals("S")){
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         }
      }
      
      String[] symbol = {"S", "H", "C", "D"};
    
      for(int suit = 0; suit < 4; suit ++ ){
         for(int number = 0; number < 13; number ++){
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         }
      }
      
    
    
   }//main
}//class public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String str;
      String[] arr;
      int[][] pc = new int[4][13];
    
    /*
    pc[suit][number][bool]
    bool:
      0 = doesn't exist
      1 = exists
    suit:
      0 = Spade
      1 = Heart
      2 = Club
      3 = Diamond
    */
    
      for(int i = 0; i < n; i++){
         str = sc.nextLine();
         arr = str.split(" ");
         if(arr[0].equals("S")){
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         }
      }
      
      String[] symbol = {"S", "H", "C", "D"};
    
      for(int suit = 0; suit < 4; suit ++ ){
         for(int number = 0; number < 13; number ++){
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         }
      }
      
    
    
   }//main
}//class Main
import java.util.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String str;
      String[] arr;
      int[][] pc = new int[4][13];
    
    /*
    pc[suit][number][bool]
    bool:
      0 = doesn't exist
      1 = exists
    suit:
      0 = Spade
      1 = Heart
      2 = Club
      3 = Diamond
    */
    
      for(int i = 0; i < n; i++){
         str = sc.nextLine();
         arr = str.split(" ");
         if(arr[0].equals("S")){
            pc[0][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("H")){
            pc[1][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("C")){
            pc[2][Integer.parseInt(arr[1])-1] = 1;
         }else if(arr[0].equals("D")){
            pc[3][Integer.parseInt(arr[1])-1] = 1;
         }
      }
      
      String[] symbol = {"S", "H", "C", "D"};
    
      for(int suit = 0; suit < 4; suit ++ ){
         for(int number = 0; number < 13; number ++){
            if(pc[suit][number] == 0){
               System.out.print(symbol[suit] + " " + (number + 1) + "\n");
            }
         }
      }
      
    
    
   }//main
}//class