import java.io.BufferedReader;
import java.io.InputStreamReader;
 
class Main {
    public static void main(String[] args) throws Exception {
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
 
        int count = Integer.parseInt(br.readLine());
        int[][] allCard = new int[4][13];
        for (int i = 0; i < count; i++) {
            String[] card = br.readLine().split(" ");
            int j = Integer.parseInt(card[1]) - 1;
            if (card[0].equals("S"))
                allCard[0][j] = 1;
            if (card[0].equals("H"))
                allCard[1][j] = 1;
            if (card[0].equals("C"))
                allCard[2][j] = 1;
            if (card[0].equals("D"))
                allCard[3][j] = 1;
        }
        for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 13; j++) {
                if (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    if (i == 3) {
                    	System.out.println("D" + " " + (j + 1));
                    }
                }
            }
        }
    }
}
  import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
    public static void main(String[] args) throws Exception {
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
 
        int count = Integer.parseInt(br.readLine());
        int[][] allCard = new int[4][13];
        for (int i = 0; i < count; i++) {
            String[] card = br.readLine().split(" ");
            int j = Integer.parseInt(card[1]) - 1;
            if (card[0].equals("S"))
                allCard[0][j] = 1;
            if (card[0].equals("H"))
                allCard[1][j] = 1;
            if (card[0].equals("C"))
                allCard[2][j] = 1;
            if (card[0].equals("D"))
                allCard[3][j] = 1;
        }
        for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 13; j++) {
                if (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    if (i == 3) {
                    	System.out.println("D" + " " + (j + 1));
                    }
                }
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
 
        int count = Integer.parseInt(br.readLine());
        int[][] allCard = new int[4][13];
        for (int i = 0; i < count; i++) {
            String[] card = br.readLine().split(" ");
            int j = Integer.parseInt(card[1]) - 1;
            if (card[0].equals("S"))
                allCard[0][j] = 1;
            if (card[0].equals("H"))
                allCard[1][j] = 1;
            if (card[0].equals("C"))
                allCard[2][j] = 1;
            if (card[0].equals("D"))
                allCard[3][j] = 1;
        }
        for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 13; j++) {
                if (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    if (i == 3) {
                    	System.out.println("D" + " " + (j + 1));
                    }
                }
            }
        }
    } main {
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
 
        int count = Integer.parseInt(br.readLine());
        int[][] allCard = new int[4][13];
        for (int i = 0; i < count; i++) {
            String[] card = br.readLine().split(" ");
            int j = Integer.parseInt(card[1]) - 1;
            if (card[0].equals("S"))
                allCard[0][j] = 1;
            if (card[0].equals("H"))
                allCard[1][j] = 1;
            if (card[0].equals("C"))
                allCard[2][j] = 1;
            if (card[0].equals("D"))
                allCard[3][j] = 1;
        }
        for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 13; j++) {
                if (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    if (i == 3) {
                    	System.out.println("D" + " " + (j + 1));
                    }
                }
            }
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int count = Integer.parseInt(br.readLine()); count Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int[][] allCard = new int[4][13]; allCard new int[4][13] 4 13 for (int i = 0; i < count; i++) {
            String[] card = br.readLine().split(" ");
            int j = Integer.parseInt(card[1]) - 1;
            if (card[0].equals("S"))
                allCard[0][j] = 1;
            if (card[0].equals("H"))
                allCard[1][j] = 1;
            if (card[0].equals("C"))
                allCard[2][j] = 1;
            if (card[0].equals("D"))
                allCard[3][j] = 1;
        } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
            String[] card = br.readLine().split(" ");
            int j = Integer.parseInt(card[1]) - 1;
            if (card[0].equals("S"))
                allCard[0][j] = 1;
            if (card[0].equals("H"))
                allCard[1][j] = 1;
            if (card[0].equals("C"))
                allCard[2][j] = 1;
            if (card[0].equals("D"))
                allCard[3][j] = 1;
        } {
            String[] card = br.readLine().split(" ");
            int j = Integer.parseInt(card[1]) - 1;
            if (card[0].equals("S"))
                allCard[0][j] = 1;
            if (card[0].equals("H"))
                allCard[1][j] = 1;
            if (card[0].equals("C"))
                allCard[2][j] = 1;
            if (card[0].equals("D"))
                allCard[3][j] = 1;
        } String[] card = br.readLine().split(" "); card br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int j = Integer.parseInt(card[1]) - 1; j Integer.parseInt(card[1]) - 1 Integer.parseInt(card[1]) Integer.parseInt Integer card[1] card 1 1 if (card[0].equals("S"))
                allCard[0][j] = 1; card[0].equals("S") card[0].equals card[0] card 0 "S" allCard[0][j] = 1 allCard[0][j] allCard[0] allCard 0 j 1 if (card[0].equals("H"))
                allCard[1][j] = 1; card[0].equals("H") card[0].equals card[0] card 0 "H" allCard[1][j] = 1 allCard[1][j] allCard[1] allCard 1 j 1 if (card[0].equals("C"))
                allCard[2][j] = 1; card[0].equals("C") card[0].equals card[0] card 0 "C" allCard[2][j] = 1 allCard[2][j] allCard[2] allCard 2 j 1 if (card[0].equals("D"))
                allCard[3][j] = 1; card[0].equals("D") card[0].equals card[0] card 0 "D" allCard[3][j] = 1 allCard[3][j] allCard[3] allCard 3 j 1 for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 13; j++) {
                if (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    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 (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    if (i == 3) {
                    	System.out.println("D" + " " + (j + 1));
                    }
                }
            }
        } {
            for (int j = 0; j < 13; j++) {
                if (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    if (i == 3) {
                    	System.out.println("D" + " " + (j + 1));
                    }
                }
            }
        } for (int j = 0; j < 13; j++) {
                if (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    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 (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    if (i == 3) {
                    	System.out.println("D" + " " + (j + 1));
                    }
                }
            } {
                if (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    if (i == 3) {
                    	System.out.println("D" + " " + (j + 1));
                    }
                }
            } if (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    if (i == 3) {
                    	System.out.println("D" + " " + (j + 1));
                    }
                } allCard[i][j] != 1 allCard[i][j] allCard[i] allCard i j 1 {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    if (i == 3) {
                    	System.out.println("D" + " " + (j + 1));
                    }
                } if (i == 0) {
                    	System.out.println("S" + " " + (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) "S" " " (j + 1) j 1 if (i == 1) {
                    	System.out.println("H" + " " + (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) "H" " " (j + 1) j 1 if (i == 2) {
                    	System.out.println("C" + " " + (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) "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) "D" " " (j + 1) j 1 String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
 
class Main {
    public static void main(String[] args) throws Exception {
 
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
 
        int count = Integer.parseInt(br.readLine());
        int[][] allCard = new int[4][13];
        for (int i = 0; i < count; i++) {
            String[] card = br.readLine().split(" ");
            int j = Integer.parseInt(card[1]) - 1;
            if (card[0].equals("S"))
                allCard[0][j] = 1;
            if (card[0].equals("H"))
                allCard[1][j] = 1;
            if (card[0].equals("C"))
                allCard[2][j] = 1;
            if (card[0].equals("D"))
                allCard[3][j] = 1;
        }
        for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 13; j++) {
                if (allCard[i][j] != 1) {
                    if (i == 0) {
                    	System.out.println("S" + " " + (j + 1));
                    }
                    if (i == 1) {
                    	System.out.println("H" + " " + (j + 1));
                    }
                    if (i == 2) {
                    	System.out.println("C" + " " + (j + 1));
                    }
                    if (i == 3) {
                    	System.out.println("D" + " " + (j + 1));
                    }
                }
            }
        }
    }
}
 