import java.util.Scanner;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    InputStreamReader is = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(is);
    int num,i;
    int []S = new int[13];
    int []H = new int[13];
    int []C = new int[13];
    int []D = new int[13];

    for(i = 0;i < 13;i++){
      S[i] = 0;
      H[i] = 0;
      C[i] = 0;
      D[i] = 0;
    }
    num = sc.nextInt();
    for(i = 0;i < num;i++){
      char op = sc.next().charAt(0);
      int c = sc.nextInt();
      if(op == 'S'){
        S[c - 1] = 1;
      }
      else if(op == 'H'){
        H[c - 1] = 1;
      }
      else if(op == 'C'){
        C[c - 1] = 1;
      }
      else if(op == 'D'){
        D[c - 1] = 1;
      }
    }

    for(i = 0;i < 13;i++){
      if(S[i] == 0){
         System.out.println("S "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(H[i] == 0){
         System.out.println("H "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(C[i] == 0){
         System.out.println("C "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(D[i] == 0){
         System.out.println("D "+ (i + 1));
      }
    }
  }
} import java.util.Scanner; Scanner java.util import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.Reader; Reader java.io class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    InputStreamReader is = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(is);
    int num,i;
    int []S = new int[13];
    int []H = new int[13];
    int []C = new int[13];
    int []D = new int[13];

    for(i = 0;i < 13;i++){
      S[i] = 0;
      H[i] = 0;
      C[i] = 0;
      D[i] = 0;
    }
    num = sc.nextInt();
    for(i = 0;i < num;i++){
      char op = sc.next().charAt(0);
      int c = sc.nextInt();
      if(op == 'S'){
        S[c - 1] = 1;
      }
      else if(op == 'H'){
        H[c - 1] = 1;
      }
      else if(op == 'C'){
        C[c - 1] = 1;
      }
      else if(op == 'D'){
        D[c - 1] = 1;
      }
    }

    for(i = 0;i < 13;i++){
      if(S[i] == 0){
         System.out.println("S "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(H[i] == 0){
         System.out.println("H "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(C[i] == 0){
         System.out.println("C "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(D[i] == 0){
         System.out.println("D "+ (i + 1));
      }
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    InputStreamReader is = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(is);
    int num,i;
    int []S = new int[13];
    int []H = new int[13];
    int []C = new int[13];
    int []D = new int[13];

    for(i = 0;i < 13;i++){
      S[i] = 0;
      H[i] = 0;
      C[i] = 0;
      D[i] = 0;
    }
    num = sc.nextInt();
    for(i = 0;i < num;i++){
      char op = sc.next().charAt(0);
      int c = sc.nextInt();
      if(op == 'S'){
        S[c - 1] = 1;
      }
      else if(op == 'H'){
        H[c - 1] = 1;
      }
      else if(op == 'C'){
        C[c - 1] = 1;
      }
      else if(op == 'D'){
        D[c - 1] = 1;
      }
    }

    for(i = 0;i < 13;i++){
      if(S[i] == 0){
         System.out.println("S "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(H[i] == 0){
         System.out.println("H "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(C[i] == 0){
         System.out.println("C "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(D[i] == 0){
         System.out.println("D "+ (i + 1));
      }
    }
  } main {
    Scanner sc = new Scanner(System.in);
    InputStreamReader is = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(is);
    int num,i;
    int []S = new int[13];
    int []H = new int[13];
    int []C = new int[13];
    int []D = new int[13];

    for(i = 0;i < 13;i++){
      S[i] = 0;
      H[i] = 0;
      C[i] = 0;
      D[i] = 0;
    }
    num = sc.nextInt();
    for(i = 0;i < num;i++){
      char op = sc.next().charAt(0);
      int c = sc.nextInt();
      if(op == 'S'){
        S[c - 1] = 1;
      }
      else if(op == 'H'){
        H[c - 1] = 1;
      }
      else if(op == 'C'){
        C[c - 1] = 1;
      }
      else if(op == 'D'){
        D[c - 1] = 1;
      }
    }

    for(i = 0;i < 13;i++){
      if(S[i] == 0){
         System.out.println("S "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(H[i] == 0){
         System.out.println("H "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(C[i] == 0){
         System.out.println("C "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(D[i] == 0){
         System.out.println("D "+ (i + 1));
      }
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) int num num i; i int []S = new int[13]; S new int[13] 13 int []H = new int[13]; H new int[13] 13 int []C = new int[13]; C new int[13] 13 int []D = new int[13]; D new int[13] 13 for(i = 0;i < 13;i++){
      S[i] = 0;
      H[i] = 0;
      C[i] = 0;
      D[i] = 0;
    } i = 0; i = 0 i 0 i < 13 i 13 i++ i++ i {
      S[i] = 0;
      H[i] = 0;
      C[i] = 0;
      D[i] = 0;
    } {
      S[i] = 0;
      H[i] = 0;
      C[i] = 0;
      D[i] = 0;
    } S[i] = 0 S[i] S i 0 H[i] = 0 H[i] H i 0 C[i] = 0 C[i] C i 0 D[i] = 0 D[i] D i 0 num = sc.nextInt() num sc.nextInt() sc.nextInt sc for(i = 0;i < num;i++){
      char op = sc.next().charAt(0);
      int c = sc.nextInt();
      if(op == 'S'){
        S[c - 1] = 1;
      }
      else if(op == 'H'){
        H[c - 1] = 1;
      }
      else if(op == 'C'){
        C[c - 1] = 1;
      }
      else if(op == 'D'){
        D[c - 1] = 1;
      }
    } i = 0; i = 0 i 0 i < num i num i++ i++ i {
      char op = sc.next().charAt(0);
      int c = sc.nextInt();
      if(op == 'S'){
        S[c - 1] = 1;
      }
      else if(op == 'H'){
        H[c - 1] = 1;
      }
      else if(op == 'C'){
        C[c - 1] = 1;
      }
      else if(op == 'D'){
        D[c - 1] = 1;
      }
    } {
      char op = sc.next().charAt(0);
      int c = sc.nextInt();
      if(op == 'S'){
        S[c - 1] = 1;
      }
      else if(op == 'H'){
        H[c - 1] = 1;
      }
      else if(op == 'C'){
        C[c - 1] = 1;
      }
      else if(op == 'D'){
        D[c - 1] = 1;
      }
    } char op = sc.next().charAt(0); op sc.next().charAt(0) sc.next().charAt sc.next() sc.next sc 0 int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc if(op == 'S'){
        S[c - 1] = 1;
      }
      else if(op == 'H'){
        H[c - 1] = 1;
      }
      else if(op == 'C'){
        C[c - 1] = 1;
      }
      else if(op == 'D'){
        D[c - 1] = 1;
      } op == 'S' op 'S' {
        S[c - 1] = 1;
      } S[c - 1] = 1 S[c - 1] S c - 1 c 1 1 if(op == 'H'){
        H[c - 1] = 1;
      }
      else if(op == 'C'){
        C[c - 1] = 1;
      }
      else if(op == 'D'){
        D[c - 1] = 1;
      } op == 'H' op 'H' {
        H[c - 1] = 1;
      } H[c - 1] = 1 H[c - 1] H c - 1 c 1 1 if(op == 'C'){
        C[c - 1] = 1;
      }
      else if(op == 'D'){
        D[c - 1] = 1;
      } op == 'C' op 'C' {
        C[c - 1] = 1;
      } C[c - 1] = 1 C[c - 1] C c - 1 c 1 1 if(op == 'D'){
        D[c - 1] = 1;
      } op == 'D' op 'D' {
        D[c - 1] = 1;
      } D[c - 1] = 1 D[c - 1] D c - 1 c 1 1 for(i = 0;i < 13;i++){
      if(S[i] == 0){
         System.out.println("S "+ (i + 1));
      }
    } i = 0; i = 0 i 0 i < 13 i 13 i++ i++ i {
      if(S[i] == 0){
         System.out.println("S "+ (i + 1));
      }
    } {
      if(S[i] == 0){
         System.out.println("S "+ (i + 1));
      }
    } if(S[i] == 0){
         System.out.println("S "+ (i + 1));
      } S[i] == 0 S[i] S i 0 {
         System.out.println("S "+ (i + 1));
      } System.out.println("S "+ (i + 1)) System.out.println System.out System System.out "S "+ (i + 1) "S " (i + 1) i 1 for(i = 0;i < 13;i++){
      if(H[i] == 0){
         System.out.println("H "+ (i + 1));
      }
    } i = 0; i = 0 i 0 i < 13 i 13 i++ i++ i {
      if(H[i] == 0){
         System.out.println("H "+ (i + 1));
      }
    } {
      if(H[i] == 0){
         System.out.println("H "+ (i + 1));
      }
    } if(H[i] == 0){
         System.out.println("H "+ (i + 1));
      } H[i] == 0 H[i] H i 0 {
         System.out.println("H "+ (i + 1));
      } System.out.println("H "+ (i + 1)) System.out.println System.out System System.out "H "+ (i + 1) "H " (i + 1) i 1 for(i = 0;i < 13;i++){
      if(C[i] == 0){
         System.out.println("C "+ (i + 1));
      }
    } i = 0; i = 0 i 0 i < 13 i 13 i++ i++ i {
      if(C[i] == 0){
         System.out.println("C "+ (i + 1));
      }
    } {
      if(C[i] == 0){
         System.out.println("C "+ (i + 1));
      }
    } if(C[i] == 0){
         System.out.println("C "+ (i + 1));
      } C[i] == 0 C[i] C i 0 {
         System.out.println("C "+ (i + 1));
      } System.out.println("C "+ (i + 1)) System.out.println System.out System System.out "C "+ (i + 1) "C " (i + 1) i 1 for(i = 0;i < 13;i++){
      if(D[i] == 0){
         System.out.println("D "+ (i + 1));
      }
    } i = 0; i = 0 i 0 i < 13 i 13 i++ i++ i {
      if(D[i] == 0){
         System.out.println("D "+ (i + 1));
      }
    } {
      if(D[i] == 0){
         System.out.println("D "+ (i + 1));
      }
    } if(D[i] == 0){
         System.out.println("D "+ (i + 1));
      } D[i] == 0 D[i] D i 0 {
         System.out.println("D "+ (i + 1));
      } System.out.println("D "+ (i + 1)) System.out.println System.out System System.out "D "+ (i + 1) "D " (i + 1) i 1 String[] args args
import java.util.Scanner;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    InputStreamReader is = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(is);
    int num,i;
    int []S = new int[13];
    int []H = new int[13];
    int []C = new int[13];
    int []D = new int[13];

    for(i = 0;i < 13;i++){
      S[i] = 0;
      H[i] = 0;
      C[i] = 0;
      D[i] = 0;
    }
    num = sc.nextInt();
    for(i = 0;i < num;i++){
      char op = sc.next().charAt(0);
      int c = sc.nextInt();
      if(op == 'S'){
        S[c - 1] = 1;
      }
      else if(op == 'H'){
        H[c - 1] = 1;
      }
      else if(op == 'C'){
        C[c - 1] = 1;
      }
      else if(op == 'D'){
        D[c - 1] = 1;
      }
    }

    for(i = 0;i < 13;i++){
      if(S[i] == 0){
         System.out.println("S "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(H[i] == 0){
         System.out.println("H "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(C[i] == 0){
         System.out.println("C "+ (i + 1));
      }
    }
    for(i = 0;i < 13;i++){
      if(D[i] == 0){
         System.out.println("D "+ (i + 1));
      }
    }
  }
}