import java.io.*;

class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        boolean[][] cards = new boolean[4][13];
        String[] card;
        int i, j;
        char c;
        for (i = 0; i < 4; i++) for (j = 0; j < 13; j++) cards[i][j] = false;
        for (i = 0; i < n; i++) {
            card = br.readLine().split(" ");
            if (card[0].equals("S")) {
                cards[0][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("H")) {
                cards[1][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("C")) {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            }
        }
        for (i = 0; i < 4; i++) {
            for (j = 0; j < 13; j++) {
                if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                }
            }
        }
    }
} import java.io.*; io.* java class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        boolean[][] cards = new boolean[4][13];
        String[] card;
        int i, j;
        char c;
        for (i = 0; i < 4; i++) for (j = 0; j < 13; j++) cards[i][j] = false;
        for (i = 0; i < n; i++) {
            card = br.readLine().split(" ");
            if (card[0].equals("S")) {
                cards[0][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("H")) {
                cards[1][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("C")) {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            }
        }
        for (i = 0; i < 4; i++) {
            for (j = 0; j < 13; j++) {
                if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                }
            }
        }
    }
} Main public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        boolean[][] cards = new boolean[4][13];
        String[] card;
        int i, j;
        char c;
        for (i = 0; i < 4; i++) for (j = 0; j < 13; j++) cards[i][j] = false;
        for (i = 0; i < n; i++) {
            card = br.readLine().split(" ");
            if (card[0].equals("S")) {
                cards[0][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("H")) {
                cards[1][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("C")) {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            }
        }
        for (i = 0; i < 4; i++) {
            for (j = 0; j < 13; j++) {
                if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                }
            }
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        boolean[][] cards = new boolean[4][13];
        String[] card;
        int i, j;
        char c;
        for (i = 0; i < 4; i++) for (j = 0; j < 13; j++) cards[i][j] = false;
        for (i = 0; i < n; i++) {
            card = br.readLine().split(" ");
            if (card[0].equals("S")) {
                cards[0][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("H")) {
                cards[1][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("C")) {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            }
        }
        for (i = 0; i < 4; i++) {
            for (j = 0; j < 13; j++) {
                if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                }
            }
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br boolean[][] cards = new boolean[4][13]; cards new boolean[4][13] 4 13 String[] card; card int i i j; j char c; c for (i = 0; i < 4; i++) for (j = 0; j < 13; j++) cards[i][j] = false; i = 0; i = 0 i 0 i < 4 i 4 i++ i++ i for (j = 0; j < 13; j++) cards[i][j] = false; for (j = 0; j < 13; j++) cards[i][j] = false; j = 0; j = 0 j 0 j < 13 j 13 j++ j++ j cards[i][j] = false; cards[i][j] = false cards[i][j] cards[i] cards i j false for (i = 0; i < n; i++) {
            card = br.readLine().split(" ");
            if (card[0].equals("S")) {
                cards[0][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("H")) {
                cards[1][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("C")) {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            }
        } i = 0; i = 0 i 0 i < n i n i++ i++ i {
            card = br.readLine().split(" ");
            if (card[0].equals("S")) {
                cards[0][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("H")) {
                cards[1][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("C")) {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            }
        } {
            card = br.readLine().split(" ");
            if (card[0].equals("S")) {
                cards[0][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("H")) {
                cards[1][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("C")) {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            }
        } card = br.readLine().split(" ") card br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " if (card[0].equals("S")) {
                cards[0][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("H")) {
                cards[1][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("C")) {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            } card[0].equals("S") card[0].equals card[0] card 0 "S" {
                cards[0][Integer.parseInt(card[1]) - 1] = true;
            } cards[0][Integer.parseInt(card[1]) - 1] = true cards[0][Integer.parseInt(card[1]) - 1] cards[0] cards 0 Integer.parseInt(card[1]) - 1 Integer.parseInt(card[1]) Integer.parseInt Integer card[1] card 1 1 true if (card[0].equals("H")) {
                cards[1][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("C")) {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            } card[0].equals("H") card[0].equals card[0] card 0 "H" {
                cards[1][Integer.parseInt(card[1]) - 1] = true;
            } cards[1][Integer.parseInt(card[1]) - 1] = true cards[1][Integer.parseInt(card[1]) - 1] cards[1] cards 1 Integer.parseInt(card[1]) - 1 Integer.parseInt(card[1]) Integer.parseInt Integer card[1] card 1 1 true if (card[0].equals("C")) {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            } card[0].equals("C") card[0].equals card[0] card 0 "C" {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } cards[2][Integer.parseInt(card[1]) - 1] = true cards[2][Integer.parseInt(card[1]) - 1] cards[2] cards 2 Integer.parseInt(card[1]) - 1 Integer.parseInt(card[1]) Integer.parseInt Integer card[1] card 1 1 true if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            } card[0].equals("D") card[0].equals card[0] card 0 "D" {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            } cards[3][Integer.parseInt(card[1]) - 1] = true cards[3][Integer.parseInt(card[1]) - 1] cards[3] cards 3 Integer.parseInt(card[1]) - 1 Integer.parseInt(card[1]) Integer.parseInt Integer card[1] card 1 1 true for (i = 0; i < 4; i++) {
            for (j = 0; j < 13; j++) {
                if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                }
            }
        } i = 0; i = 0 i 0 i < 4 i 4 i++ i++ i {
            for (j = 0; j < 13; j++) {
                if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                }
            }
        } {
            for (j = 0; j < 13; j++) {
                if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                }
            }
        } for (j = 0; j < 13; j++) {
                if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                }
            } j = 0; j = 0 j 0 j < 13 j 13 j++ j++ j {
                if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                }
            } {
                if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                }
            } if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                } !cards[i][j] cards[i][j] cards[i] cards i j {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                } if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D'; i == 0 i 0 c = 'S' c 'S' if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D'; i == 1 i 1 c = 'H' c 'H' if (i == 2) c = 'C';
                    else c = 'D'; i == 2 i 2 c = 'C' c 'C' c = 'D' c 'D' System.out.println(c + " " + (j + 1)) System.out.println System.out System System.out c + " " + (j + 1) c + " " + (j + 1) c " " (j + 1) j 1 String[] args args
import java.io.*;

class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        boolean[][] cards = new boolean[4][13];
        String[] card;
        int i, j;
        char c;
        for (i = 0; i < 4; i++) for (j = 0; j < 13; j++) cards[i][j] = false;
        for (i = 0; i < n; i++) {
            card = br.readLine().split(" ");
            if (card[0].equals("S")) {
                cards[0][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("H")) {
                cards[1][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("C")) {
                cards[2][Integer.parseInt(card[1]) - 1] = true;
            } else if (card[0].equals("D")) {
                cards[3][Integer.parseInt(card[1]) - 1] = true;
            }
        }
        for (i = 0; i < 4; i++) {
            for (j = 0; j < 13; j++) {
                if (!cards[i][j]) {
                    if (i == 0) c = 'S';
                    else if (i == 1) c = 'H';
                    else if (i == 2) c = 'C';
                    else c = 'D';
                    System.out.println(c + " " + (j + 1));
                }
            }
        }
    }
}