import java.util.Scanner;

public class Main {
    public static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        int n = sc.nextInt();
        boolean[] ary = new boolean[53];
        for (int i = 0; i < n; i++) {
            ary[convert(sc.next(), sc.nextInt())] = true;
        }
        
        for (int i = 1; i < 53; i++) {
            if (ary[i] == false) {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            }
        }
    }
    
    public static int convert(String p, int n) {
        int res = 0;
        if (p.equals("H")) {
            res += 13;
        } else if (p.equals("C")) {
            res += 26;
        } else if (p.equals("D")) {
            res += 39;
        }
        
        return res + n;
    }
    
    public static String[] convert(int n) {
        String[] res = new String[2];
        if (0 < n && n <= 13) {
            res[0] = "S";
        } else if (13 < n && n <= 26) {
            res[0] = "H";
        } else if (26 < n && n <= 39) {
            res[0] = "C";
        } else if (39 < n && n <= 52) {
            res[0] = "D";
        }
        
        int i = (n%13 == 0) ? 13 : n%13;
        
        res[1] = new Integer(i).toString();
        return res;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        int n = sc.nextInt();
        boolean[] ary = new boolean[53];
        for (int i = 0; i < n; i++) {
            ary[convert(sc.next(), sc.nextInt())] = true;
        }
        
        for (int i = 1; i < 53; i++) {
            if (ary[i] == false) {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            }
        }
    }
    
    public static int convert(String p, int n) {
        int res = 0;
        if (p.equals("H")) {
            res += 13;
        } else if (p.equals("C")) {
            res += 26;
        } else if (p.equals("D")) {
            res += 39;
        }
        
        return res + n;
    }
    
    public static String[] convert(int n) {
        String[] res = new String[2];
        if (0 < n && n <= 13) {
            res[0] = "S";
        } else if (13 < n && n <= 26) {
            res[0] = "H";
        } else if (26 < n && n <= 39) {
            res[0] = "C";
        } else if (39 < n && n <= 52) {
            res[0] = "D";
        }
        
        int i = (n%13 == 0) ? 13 : n%13;
        
        res[1] = new Integer(i).toString();
        return res;
    }
} Main public static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) throws Exception {
        int n = sc.nextInt();
        boolean[] ary = new boolean[53];
        for (int i = 0; i < n; i++) {
            ary[convert(sc.next(), sc.nextInt())] = true;
        }
        
        for (int i = 1; i < 53; i++) {
            if (ary[i] == false) {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            }
        }
    } main {
        int n = sc.nextInt();
        boolean[] ary = new boolean[53];
        for (int i = 0; i < n; i++) {
            ary[convert(sc.next(), sc.nextInt())] = true;
        }
        
        for (int i = 1; i < 53; i++) {
            if (ary[i] == false) {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            }
        }
    } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc boolean[] ary = new boolean[53]; ary new boolean[53] 53 for (int i = 0; i < n; i++) {
            ary[convert(sc.next(), sc.nextInt())] = true;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            ary[convert(sc.next(), sc.nextInt())] = true;
        } {
            ary[convert(sc.next(), sc.nextInt())] = true;
        } ary[convert(sc.next(), sc.nextInt())] = true ary[convert(sc.next(), sc.nextInt())] ary convert(sc.next(), sc.nextInt()) convert sc.next() sc.next sc sc.nextInt() sc.nextInt sc true for (int i = 1; i < 53; i++) {
            if (ary[i] == false) {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            }
        } int i = 1; int i = 1; i 1 i < 53 i 53 i++ i++ i {
            if (ary[i] == false) {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            }
        } {
            if (ary[i] == false) {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            }
        } if (ary[i] == false) {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            } ary[i] == false ary[i] ary i false {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            } String[] s = convert(i); s convert(i) convert i System.out.println(s[0] + " " + s[1]) System.out.println System.out System System.out s[0] + " " + s[1] s[0] + " " + s[1] s[0] s 0 " " s[1] s 1 String[] args args public static int convert(String p, int n) {
        int res = 0;
        if (p.equals("H")) {
            res += 13;
        } else if (p.equals("C")) {
            res += 26;
        } else if (p.equals("D")) {
            res += 39;
        }
        
        return res + n;
    } convert {
        int res = 0;
        if (p.equals("H")) {
            res += 13;
        } else if (p.equals("C")) {
            res += 26;
        } else if (p.equals("D")) {
            res += 39;
        }
        
        return res + n;
    } int res = 0; res 0 if (p.equals("H")) {
            res += 13;
        } else if (p.equals("C")) {
            res += 26;
        } else if (p.equals("D")) {
            res += 39;
        } p.equals("H") p.equals p "H" {
            res += 13;
        } res += 13 res 13 if (p.equals("C")) {
            res += 26;
        } else if (p.equals("D")) {
            res += 39;
        } p.equals("C") p.equals p "C" {
            res += 26;
        } res += 26 res 26 if (p.equals("D")) {
            res += 39;
        } p.equals("D") p.equals p "D" {
            res += 39;
        } res += 39 res 39 return res + n; res + n res n String p p int n n public static String[] convert(int n) {
        String[] res = new String[2];
        if (0 < n && n <= 13) {
            res[0] = "S";
        } else if (13 < n && n <= 26) {
            res[0] = "H";
        } else if (26 < n && n <= 39) {
            res[0] = "C";
        } else if (39 < n && n <= 52) {
            res[0] = "D";
        }
        
        int i = (n%13 == 0) ? 13 : n%13;
        
        res[1] = new Integer(i).toString();
        return res;
    } convert {
        String[] res = new String[2];
        if (0 < n && n <= 13) {
            res[0] = "S";
        } else if (13 < n && n <= 26) {
            res[0] = "H";
        } else if (26 < n && n <= 39) {
            res[0] = "C";
        } else if (39 < n && n <= 52) {
            res[0] = "D";
        }
        
        int i = (n%13 == 0) ? 13 : n%13;
        
        res[1] = new Integer(i).toString();
        return res;
    } String[] res = new String[2]; res new String[2] 2 if (0 < n && n <= 13) {
            res[0] = "S";
        } else if (13 < n && n <= 26) {
            res[0] = "H";
        } else if (26 < n && n <= 39) {
            res[0] = "C";
        } else if (39 < n && n <= 52) {
            res[0] = "D";
        } 0 < n && n <= 13 0 < n 0 n n <= 13 n 13 {
            res[0] = "S";
        } res[0] = "S" res[0] res 0 "S" if (13 < n && n <= 26) {
            res[0] = "H";
        } else if (26 < n && n <= 39) {
            res[0] = "C";
        } else if (39 < n && n <= 52) {
            res[0] = "D";
        } 13 < n && n <= 26 13 < n 13 n n <= 26 n 26 {
            res[0] = "H";
        } res[0] = "H" res[0] res 0 "H" if (26 < n && n <= 39) {
            res[0] = "C";
        } else if (39 < n && n <= 52) {
            res[0] = "D";
        } 26 < n && n <= 39 26 < n 26 n n <= 39 n 39 {
            res[0] = "C";
        } res[0] = "C" res[0] res 0 "C" if (39 < n && n <= 52) {
            res[0] = "D";
        } 39 < n && n <= 52 39 < n 39 n n <= 52 n 52 {
            res[0] = "D";
        } res[0] = "D" res[0] res 0 "D" int i = (n%13 == 0) ? 13 : n%13; i (n%13 == 0) ? 13 : n%13 (n%13 == 0) n%13 n 13 0 13 n%13 n 13 res[1] = new Integer(i).toString() res[1] res 1 new Integer(i).toString() new Integer(i).toString new Integer(i) return res; res int n n public class Main {
    public static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        int n = sc.nextInt();
        boolean[] ary = new boolean[53];
        for (int i = 0; i < n; i++) {
            ary[convert(sc.next(), sc.nextInt())] = true;
        }
        
        for (int i = 1; i < 53; i++) {
            if (ary[i] == false) {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            }
        }
    }
    
    public static int convert(String p, int n) {
        int res = 0;
        if (p.equals("H")) {
            res += 13;
        } else if (p.equals("C")) {
            res += 26;
        } else if (p.equals("D")) {
            res += 39;
        }
        
        return res + n;
    }
    
    public static String[] convert(int n) {
        String[] res = new String[2];
        if (0 < n && n <= 13) {
            res[0] = "S";
        } else if (13 < n && n <= 26) {
            res[0] = "H";
        } else if (26 < n && n <= 39) {
            res[0] = "C";
        } else if (39 < n && n <= 52) {
            res[0] = "D";
        }
        
        int i = (n%13 == 0) ? 13 : n%13;
        
        res[1] = new Integer(i).toString();
        return res;
    }
} public class Main {
    public static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        int n = sc.nextInt();
        boolean[] ary = new boolean[53];
        for (int i = 0; i < n; i++) {
            ary[convert(sc.next(), sc.nextInt())] = true;
        }
        
        for (int i = 1; i < 53; i++) {
            if (ary[i] == false) {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            }
        }
    }
    
    public static int convert(String p, int n) {
        int res = 0;
        if (p.equals("H")) {
            res += 13;
        } else if (p.equals("C")) {
            res += 26;
        } else if (p.equals("D")) {
            res += 39;
        }
        
        return res + n;
    }
    
    public static String[] convert(int n) {
        String[] res = new String[2];
        if (0 < n && n <= 13) {
            res[0] = "S";
        } else if (13 < n && n <= 26) {
            res[0] = "H";
        } else if (26 < n && n <= 39) {
            res[0] = "C";
        } else if (39 < n && n <= 52) {
            res[0] = "D";
        }
        
        int i = (n%13 == 0) ? 13 : n%13;
        
        res[1] = new Integer(i).toString();
        return res;
    }
} Main
import java.util.Scanner;

public class Main {
    public static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        int n = sc.nextInt();
        boolean[] ary = new boolean[53];
        for (int i = 0; i < n; i++) {
            ary[convert(sc.next(), sc.nextInt())] = true;
        }
        
        for (int i = 1; i < 53; i++) {
            if (ary[i] == false) {
                String[] s = convert(i);
                System.out.println(s[0] + " " + s[1]);
            }
        }
    }
    
    public static int convert(String p, int n) {
        int res = 0;
        if (p.equals("H")) {
            res += 13;
        } else if (p.equals("C")) {
            res += 26;
        } else if (p.equals("D")) {
            res += 39;
        }
        
        return res + n;
    }
    
    public static String[] convert(int n) {
        String[] res = new String[2];
        if (0 < n && n <= 13) {
            res[0] = "S";
        } else if (13 < n && n <= 26) {
            res[0] = "H";
        } else if (26 < n && n <= 39) {
            res[0] = "C";
        } else if (39 < n && n <= 52) {
            res[0] = "D";
        }
        
        int i = (n%13 == 0) ? 13 : n%13;
        
        res[1] = new Integer(i).toString();
        return res;
    }
}