import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.IOException;

public class Main {

    public static void main(String args[]) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        boolean[][] cards = new boolean[4][14];
        int n = Integer.parseInt(br.readLine());
        while (n-- > 0) {
            String[] st = br.readLine().split(" ");
            int i = Integer.parseInt(st[1]);
            switch (st[0]) {
                case "S":
                    cards[0][i] = true;
                    break;
                case "H":
                    cards[1][i] = true;
                    break;
                case "C":
                    cards[2][i] = true;
                    break;
                case "D":
                    cards[3][i] = true;
                    break;
            }
        }
        String[] type = new String[]{"S", "H", "C", "D"};
        for (int i = 0; i < 4; i++) {
            for (int j = 1; j <= 13; j++) {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            }
        }
        bw.flush();
    }
    
} import java.io.BufferedReader; BufferedReader java.io import java.io.BufferedWriter; BufferedWriter java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.OutputStreamWriter; OutputStreamWriter java.io import java.io.IOException; IOException java.io public class Main {

    public static void main(String args[]) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        boolean[][] cards = new boolean[4][14];
        int n = Integer.parseInt(br.readLine());
        while (n-- > 0) {
            String[] st = br.readLine().split(" ");
            int i = Integer.parseInt(st[1]);
            switch (st[0]) {
                case "S":
                    cards[0][i] = true;
                    break;
                case "H":
                    cards[1][i] = true;
                    break;
                case "C":
                    cards[2][i] = true;
                    break;
                case "D":
                    cards[3][i] = true;
                    break;
            }
        }
        String[] type = new String[]{"S", "H", "C", "D"};
        for (int i = 0; i < 4; i++) {
            for (int j = 1; j <= 13; j++) {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            }
        }
        bw.flush();
    }
    
} Main public static void main(String args[]) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        boolean[][] cards = new boolean[4][14];
        int n = Integer.parseInt(br.readLine());
        while (n-- > 0) {
            String[] st = br.readLine().split(" ");
            int i = Integer.parseInt(st[1]);
            switch (st[0]) {
                case "S":
                    cards[0][i] = true;
                    break;
                case "H":
                    cards[1][i] = true;
                    break;
                case "C":
                    cards[2][i] = true;
                    break;
                case "D":
                    cards[3][i] = true;
                    break;
            }
        }
        String[] type = new String[]{"S", "H", "C", "D"};
        for (int i = 0; i < 4; i++) {
            for (int j = 1; j <= 13; j++) {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            }
        }
        bw.flush();
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        boolean[][] cards = new boolean[4][14];
        int n = Integer.parseInt(br.readLine());
        while (n-- > 0) {
            String[] st = br.readLine().split(" ");
            int i = Integer.parseInt(st[1]);
            switch (st[0]) {
                case "S":
                    cards[0][i] = true;
                    break;
                case "H":
                    cards[1][i] = true;
                    break;
                case "C":
                    cards[2][i] = true;
                    break;
                case "D":
                    cards[3][i] = true;
                    break;
            }
        }
        String[] type = new String[]{"S", "H", "C", "D"};
        for (int i = 0; i < 4; i++) {
            for (int j = 1; j <= 13; j++) {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            }
        }
        bw.flush();
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); bw new BufferedWriter(new OutputStreamWriter(System.out)) boolean[][] cards = new boolean[4][14]; cards new boolean[4][14] 4 14 int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br while (n-- > 0) {
            String[] st = br.readLine().split(" ");
            int i = Integer.parseInt(st[1]);
            switch (st[0]) {
                case "S":
                    cards[0][i] = true;
                    break;
                case "H":
                    cards[1][i] = true;
                    break;
                case "C":
                    cards[2][i] = true;
                    break;
                case "D":
                    cards[3][i] = true;
                    break;
            }
        } n-- > 0 n-- n 0 {
            String[] st = br.readLine().split(" ");
            int i = Integer.parseInt(st[1]);
            switch (st[0]) {
                case "S":
                    cards[0][i] = true;
                    break;
                case "H":
                    cards[1][i] = true;
                    break;
                case "C":
                    cards[2][i] = true;
                    break;
                case "D":
                    cards[3][i] = true;
                    break;
            }
        } String[] st = br.readLine().split(" "); st br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int i = Integer.parseInt(st[1]); i Integer.parseInt(st[1]) Integer.parseInt Integer st[1] st 1 switch (st[0]) {
                case "S":
                    cards[0][i] = true;
                    break;
                case "H":
                    cards[1][i] = true;
                    break;
                case "C":
                    cards[2][i] = true;
                    break;
                case "D":
                    cards[3][i] = true;
                    break;
            } st[0] st 0 case "S": "S" case "S": cards[0][i] = true cards[0][i] cards[0] cards 0 i true break; case "H": "H" case "H": cards[1][i] = true cards[1][i] cards[1] cards 1 i true break; case "C": "C" case "C": cards[2][i] = true cards[2][i] cards[2] cards 2 i true break; case "D": "D" case "D": cards[3][i] = true cards[3][i] cards[3] cards 3 i true break; String[] type = new String[]{"S", "H", "C", "D"}; type new String[]{"S", "H", "C", "D"} for (int i = 0; i < 4; i++) {
            for (int j = 1; j <= 13; j++) {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            }
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            for (int j = 1; j <= 13; j++) {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            }
        } {
            for (int j = 1; j <= 13; j++) {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            }
        } for (int j = 1; j <= 13; j++) {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            } int j = 1; int j = 1; j 1 j <= 13 j 13 j++ j++ j {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            } {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            } if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                } !cards[i][j] cards[i][j] cards[i] cards i j {
                    bw.append(type[i] + " " + j + "\n");
                } bw.append(type[i] + " " + j + "\n") bw.append bw type[i] + " " + j + "\n" j type[i] + " " + j + "\n" type[i] type i " " j "\n" bw.flush() bw.flush bw String args[] args public class Main {

    public static void main(String args[]) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        boolean[][] cards = new boolean[4][14];
        int n = Integer.parseInt(br.readLine());
        while (n-- > 0) {
            String[] st = br.readLine().split(" ");
            int i = Integer.parseInt(st[1]);
            switch (st[0]) {
                case "S":
                    cards[0][i] = true;
                    break;
                case "H":
                    cards[1][i] = true;
                    break;
                case "C":
                    cards[2][i] = true;
                    break;
                case "D":
                    cards[3][i] = true;
                    break;
            }
        }
        String[] type = new String[]{"S", "H", "C", "D"};
        for (int i = 0; i < 4; i++) {
            for (int j = 1; j <= 13; j++) {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            }
        }
        bw.flush();
    }
    
} public class Main {

    public static void main(String args[]) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        boolean[][] cards = new boolean[4][14];
        int n = Integer.parseInt(br.readLine());
        while (n-- > 0) {
            String[] st = br.readLine().split(" ");
            int i = Integer.parseInt(st[1]);
            switch (st[0]) {
                case "S":
                    cards[0][i] = true;
                    break;
                case "H":
                    cards[1][i] = true;
                    break;
                case "C":
                    cards[2][i] = true;
                    break;
                case "D":
                    cards[3][i] = true;
                    break;
            }
        }
        String[] type = new String[]{"S", "H", "C", "D"};
        for (int i = 0; i < 4; i++) {
            for (int j = 1; j <= 13; j++) {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            }
        }
        bw.flush();
    }
    
} Main
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.IOException;

public class Main {

    public static void main(String args[]) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        boolean[][] cards = new boolean[4][14];
        int n = Integer.parseInt(br.readLine());
        while (n-- > 0) {
            String[] st = br.readLine().split(" ");
            int i = Integer.parseInt(st[1]);
            switch (st[0]) {
                case "S":
                    cards[0][i] = true;
                    break;
                case "H":
                    cards[1][i] = true;
                    break;
                case "C":
                    cards[2][i] = true;
                    break;
                case "D":
                    cards[3][i] = true;
                    break;
            }
        }
        String[] type = new String[]{"S", "H", "C", "D"};
        for (int i = 0; i < 4; i++) {
            for (int j = 1; j <= 13; j++) {
                if (!cards[i][j]) {
                    bw.append(type[i] + " " + j + "\n");
                }
            }
        }
        bw.flush();
    }
    
}
