import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);

    int[][] card = new int[4][13];
    int n = in.nextInt();

    for (int i = 0; i < n ; i++) {
      String s = in.next();
      int r = in.nextInt();
      if (s.equals("S")) {
        card[0][r - 1] = 1;
      }
      else if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      }
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      }
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);

    int[][] card = new int[4][13];
    int n = in.nextInt();

    for (int i = 0; i < n ; i++) {
      String s = in.next();
      int r = in.nextInt();
      if (s.equals("S")) {
        card[0][r - 1] = 1;
      }
      else if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      }
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      }
    }
  }
} Main public static void main(String[] args) {
    Scanner in = new Scanner(System.in);

    int[][] card = new int[4][13];
    int n = in.nextInt();

    for (int i = 0; i < n ; i++) {
      String s = in.next();
      int r = in.nextInt();
      if (s.equals("S")) {
        card[0][r - 1] = 1;
      }
      else if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      }
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      }
    }
  } main {
    Scanner in = new Scanner(System.in);

    int[][] card = new int[4][13];
    int n = in.nextInt();

    for (int i = 0; i < n ; i++) {
      String s = in.next();
      int r = in.nextInt();
      if (s.equals("S")) {
        card[0][r - 1] = 1;
      }
      else if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      }
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      }
    }
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) int[][] card = new int[4][13]; card new int[4][13] 4 13 int n = in.nextInt(); n in.nextInt() in.nextInt in for (int i = 0; i < n ; i++) {
      String s = in.next();
      int r = in.nextInt();
      if (s.equals("S")) {
        card[0][r - 1] = 1;
      }
      else if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      String s = in.next();
      int r = in.nextInt();
      if (s.equals("S")) {
        card[0][r - 1] = 1;
      }
      else if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      }
    } {
      String s = in.next();
      int r = in.nextInt();
      if (s.equals("S")) {
        card[0][r - 1] = 1;
      }
      else if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      }
    } String s = in.next(); s in.next() in.next in int r = in.nextInt(); r in.nextInt() in.nextInt in if (s.equals("S")) {
        card[0][r - 1] = 1;
      }
      else if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      } s.equals("S") s.equals s "S" {
        card[0][r - 1] = 1;
      } card[0][r - 1] = 1 card[0][r - 1] card[0] card 0 r - 1 r 1 1 if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      } s.equals("H") s.equals s "H" {
        card[1][r - 1] = 1;
      } card[1][r - 1] = 1 card[1][r - 1] card[1] card 1 r - 1 r 1 1 if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      } s.equals("C") s.equals s "C" {
        card[2][r - 1] = 1;
      } card[2][r - 1] = 1 card[2][r - 1] card[2] card 2 r - 1 r 1 1 if (s.equals("D")) {
        card[3][r - 1] = 1;
      } s.equals("D") s.equals s "D" {
        card[3][r - 1] = 1;
      } card[3][r - 1] = 1 card[3][r - 1] card[3] card 3 r - 1 r 1 1 for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      }
    } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      }
    } {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      }
    } for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      } int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      } {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      } if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        } card[i][j] == 0 card[i][j] card[i] card i j 0 {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        } if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          } i == 0 i 0 {
            System.out.println("S " + (j + 1));
          } System.out.println("S " + (j + 1)) System.out.println System.out System System.out "S " + (j + 1) "S " (j + 1) j 1 if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          } i == 1 i 1 {
            System.out.println("H " + (j + 1));
          } System.out.println("H " + (j + 1)) System.out.println System.out System System.out "H " + (j + 1) "H " (j + 1) j 1 if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          } i == 2 i 2 {
            System.out.println("C " + (j + 1));
          } System.out.println("C " + (j + 1)) System.out.println System.out System System.out "C " + (j + 1) "C " (j + 1) j 1 if (i == 3) {
            System.out.println("D " + (j + 1));
          } i == 3 i 3 {
            System.out.println("D " + (j + 1));
          } System.out.println("D " + (j + 1)) System.out.println System.out System System.out "D " + (j + 1) "D " (j + 1) j 1 String[] args args public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);

    int[][] card = new int[4][13];
    int n = in.nextInt();

    for (int i = 0; i < n ; i++) {
      String s = in.next();
      int r = in.nextInt();
      if (s.equals("S")) {
        card[0][r - 1] = 1;
      }
      else if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      }
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      }
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);

    int[][] card = new int[4][13];
    int n = in.nextInt();

    for (int i = 0; i < n ; i++) {
      String s = in.next();
      int r = in.nextInt();
      if (s.equals("S")) {
        card[0][r - 1] = 1;
      }
      else if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      }
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      }
    }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);

    int[][] card = new int[4][13];
    int n = in.nextInt();

    for (int i = 0; i < n ; i++) {
      String s = in.next();
      int r = in.nextInt();
      if (s.equals("S")) {
        card[0][r - 1] = 1;
      }
      else if (s.equals("H")) {
        card[1][r - 1] = 1;
      }
      else if (s.equals("C")) {
        card[2][r - 1] = 1;
      }
      else if (s.equals("D")) {
        card[3][r - 1] = 1;
      }
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          if (i == 0) {
            System.out.println("S " + (j + 1));
          }
          else if (i == 1) {
            System.out.println("H " + (j + 1));
          }
          else if (i == 2) {
            System.out.println("C " + (j + 1));
          }
          else if (i == 3) {
            System.out.println("D " + (j + 1));
          }
        }
      }
    }
  }
}