import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str;
    int num;
    boolean[] S = new boolean[13];
    boolean[] H = new boolean[13];
    boolean[] C = new boolean[13];
    boolean[] D = new boolean[13];

    for (int i = 0; i < 13; i++)
      S[i] = H[i] = C[i] = D[i] = false;

    for (int i = 0; i < n; i++) {
      str = sc.next();
      num = sc.nextInt();
      if (str.equals("S"))
        S[num - 1] = true;
      else if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true;
    }

    for (int i = 0; i < 13; i++)
      if (!S[i])
        System.out.println("S" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!H[i])
        System.out.println("H" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!C[i])
        System.out.println("C" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!D[i])
        System.out.println("D" + " " + (i + 1));
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str;
    int num;
    boolean[] S = new boolean[13];
    boolean[] H = new boolean[13];
    boolean[] C = new boolean[13];
    boolean[] D = new boolean[13];

    for (int i = 0; i < 13; i++)
      S[i] = H[i] = C[i] = D[i] = false;

    for (int i = 0; i < n; i++) {
      str = sc.next();
      num = sc.nextInt();
      if (str.equals("S"))
        S[num - 1] = true;
      else if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true;
    }

    for (int i = 0; i < 13; i++)
      if (!S[i])
        System.out.println("S" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!H[i])
        System.out.println("H" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!C[i])
        System.out.println("C" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!D[i])
        System.out.println("D" + " " + (i + 1));
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str;
    int num;
    boolean[] S = new boolean[13];
    boolean[] H = new boolean[13];
    boolean[] C = new boolean[13];
    boolean[] D = new boolean[13];

    for (int i = 0; i < 13; i++)
      S[i] = H[i] = C[i] = D[i] = false;

    for (int i = 0; i < n; i++) {
      str = sc.next();
      num = sc.nextInt();
      if (str.equals("S"))
        S[num - 1] = true;
      else if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true;
    }

    for (int i = 0; i < 13; i++)
      if (!S[i])
        System.out.println("S" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!H[i])
        System.out.println("H" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!C[i])
        System.out.println("C" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!D[i])
        System.out.println("D" + " " + (i + 1));
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str;
    int num;
    boolean[] S = new boolean[13];
    boolean[] H = new boolean[13];
    boolean[] C = new boolean[13];
    boolean[] D = new boolean[13];

    for (int i = 0; i < 13; i++)
      S[i] = H[i] = C[i] = D[i] = false;

    for (int i = 0; i < n; i++) {
      str = sc.next();
      num = sc.nextInt();
      if (str.equals("S"))
        S[num - 1] = true;
      else if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true;
    }

    for (int i = 0; i < 13; i++)
      if (!S[i])
        System.out.println("S" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!H[i])
        System.out.println("H" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!C[i])
        System.out.println("C" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!D[i])
        System.out.println("D" + " " + (i + 1));
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String str; str int num; num boolean[] S = new boolean[13]; S new boolean[13] 13 boolean[] H = new boolean[13]; H new boolean[13] 13 boolean[] C = new boolean[13]; C new boolean[13] 13 boolean[] D = new boolean[13]; D new boolean[13] 13 for (int i = 0; i < 13; i++)
      S[i] = H[i] = C[i] = D[i] = false; int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i S[i] = H[i] = C[i] = D[i] = false; S[i] = H[i] = C[i] = D[i] = false S[i] S i H[i] = C[i] = D[i] = false H[i] H i C[i] = D[i] = false C[i] C i D[i] = false D[i] D i false for (int i = 0; i < n; i++) {
      str = sc.next();
      num = sc.nextInt();
      if (str.equals("S"))
        S[num - 1] = true;
      else if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true;
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      str = sc.next();
      num = sc.nextInt();
      if (str.equals("S"))
        S[num - 1] = true;
      else if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true;
    } {
      str = sc.next();
      num = sc.nextInt();
      if (str.equals("S"))
        S[num - 1] = true;
      else if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true;
    } str = sc.next() str sc.next() sc.next sc num = sc.nextInt() num sc.nextInt() sc.nextInt sc if (str.equals("S"))
        S[num - 1] = true;
      else if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true; str.equals("S") str.equals str "S" S[num - 1] = true S[num - 1] S num - 1 num 1 true if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true; str.equals("H") str.equals str "H" H[num - 1] = true H[num - 1] H num - 1 num 1 true if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true; str.equals("C") str.equals str "C" C[num - 1] = true C[num - 1] C num - 1 num 1 true if (str.equals("D"))
        D[num - 1] = true; str.equals("D") str.equals str "D" D[num - 1] = true D[num - 1] D num - 1 num 1 true for (int i = 0; i < 13; i++)
      if (!S[i])
        System.out.println("S" + " " + (i + 1)); int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i if (!S[i])
        System.out.println("S" + " " + (i + 1)); if (!S[i])
        System.out.println("S" + " " + (i + 1)); !S[i] S[i] S i System.out.println("S" + " " + (i + 1)) System.out.println System.out System System.out "S" + " " + (i + 1) "S" + " " + (i + 1) "S" " " (i + 1) i 1 for (int i = 0; i < 13; i++)
      if (!H[i])
        System.out.println("H" + " " + (i + 1)); int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i if (!H[i])
        System.out.println("H" + " " + (i + 1)); if (!H[i])
        System.out.println("H" + " " + (i + 1)); !H[i] H[i] H i System.out.println("H" + " " + (i + 1)) System.out.println System.out System System.out "H" + " " + (i + 1) "H" + " " + (i + 1) "H" " " (i + 1) i 1 for (int i = 0; i < 13; i++)
      if (!C[i])
        System.out.println("C" + " " + (i + 1)); int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i if (!C[i])
        System.out.println("C" + " " + (i + 1)); if (!C[i])
        System.out.println("C" + " " + (i + 1)); !C[i] C[i] C i System.out.println("C" + " " + (i + 1)) System.out.println System.out System System.out "C" + " " + (i + 1) "C" + " " + (i + 1) "C" " " (i + 1) i 1 for (int i = 0; i < 13; i++)
      if (!D[i])
        System.out.println("D" + " " + (i + 1)); int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i if (!D[i])
        System.out.println("D" + " " + (i + 1)); if (!D[i])
        System.out.println("D" + " " + (i + 1)); !D[i] D[i] D i System.out.println("D" + " " + (i + 1)) System.out.println System.out System System.out "D" + " " + (i + 1) "D" + " " + (i + 1) "D" " " (i + 1) i 1 String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str;
    int num;
    boolean[] S = new boolean[13];
    boolean[] H = new boolean[13];
    boolean[] C = new boolean[13];
    boolean[] D = new boolean[13];

    for (int i = 0; i < 13; i++)
      S[i] = H[i] = C[i] = D[i] = false;

    for (int i = 0; i < n; i++) {
      str = sc.next();
      num = sc.nextInt();
      if (str.equals("S"))
        S[num - 1] = true;
      else if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true;
    }

    for (int i = 0; i < 13; i++)
      if (!S[i])
        System.out.println("S" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!H[i])
        System.out.println("H" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!C[i])
        System.out.println("C" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!D[i])
        System.out.println("D" + " " + (i + 1));
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str;
    int num;
    boolean[] S = new boolean[13];
    boolean[] H = new boolean[13];
    boolean[] C = new boolean[13];
    boolean[] D = new boolean[13];

    for (int i = 0; i < 13; i++)
      S[i] = H[i] = C[i] = D[i] = false;

    for (int i = 0; i < n; i++) {
      str = sc.next();
      num = sc.nextInt();
      if (str.equals("S"))
        S[num - 1] = true;
      else if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true;
    }

    for (int i = 0; i < 13; i++)
      if (!S[i])
        System.out.println("S" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!H[i])
        System.out.println("H" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!C[i])
        System.out.println("C" + " " + (i + 1));
    for (int i = 0; i < 13; i++)
      if (!D[i])
        System.out.println("D" + " " + (i + 1));
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String str;
    int num;
    boolean[] S = new boolean[13];
    boolean[] H = new boolean[13];
    boolean[] C = new boolean[13];
    boolean[] D = new boolean[13];

    for (int i = 0; i < 13; i++)
      S[i] = H[i] = C[i] = D[i] = false;

    for (int i = 0; i < n; i++) {
      str = sc.next();
      num = sc.nextInt();
      if (str.equals("S"))
        S[num - 1] = true;
      else if (str.equals("H"))
        H[num - 1] = true;
      else if (str.equals("C"))
        C[num - 1] = true;
      else if (str.equals("D"))
        D[num - 1] = true;
    }

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