import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> S = new ArrayList<>();
        List<Integer> H = new ArrayList<>();
        List<Integer> C = new ArrayList<>();
        List<Integer> D = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            String symbol = sc.next();
            int num = sc.nextInt();

            if ("S".equals(symbol)) {
                S.add(num);
            } else if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            }
        }
       
        for (int i = 1; i < 14; i++) {
            if (!S.contains(i)) {
                System.out.println("S" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!H.contains(i)) {
                System.out.println("H" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!C.contains(i)) {
                System.out.println("C" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!D.contains(i)) {
                System.out.println("D" + " " + i);
            }
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util 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();
        List<Integer> S = new ArrayList<>();
        List<Integer> H = new ArrayList<>();
        List<Integer> C = new ArrayList<>();
        List<Integer> D = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            String symbol = sc.next();
            int num = sc.nextInt();

            if ("S".equals(symbol)) {
                S.add(num);
            } else if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            }
        }
       
        for (int i = 1; i < 14; i++) {
            if (!S.contains(i)) {
                System.out.println("S" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!H.contains(i)) {
                System.out.println("H" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!C.contains(i)) {
                System.out.println("C" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!D.contains(i)) {
                System.out.println("D" + " " + i);
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> S = new ArrayList<>();
        List<Integer> H = new ArrayList<>();
        List<Integer> C = new ArrayList<>();
        List<Integer> D = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            String symbol = sc.next();
            int num = sc.nextInt();

            if ("S".equals(symbol)) {
                S.add(num);
            } else if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            }
        }
       
        for (int i = 1; i < 14; i++) {
            if (!S.contains(i)) {
                System.out.println("S" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!H.contains(i)) {
                System.out.println("H" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!C.contains(i)) {
                System.out.println("C" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!D.contains(i)) {
                System.out.println("D" + " " + i);
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> S = new ArrayList<>();
        List<Integer> H = new ArrayList<>();
        List<Integer> C = new ArrayList<>();
        List<Integer> D = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            String symbol = sc.next();
            int num = sc.nextInt();

            if ("S".equals(symbol)) {
                S.add(num);
            } else if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            }
        }
       
        for (int i = 1; i < 14; i++) {
            if (!S.contains(i)) {
                System.out.println("S" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!H.contains(i)) {
                System.out.println("H" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!C.contains(i)) {
                System.out.println("C" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!D.contains(i)) {
                System.out.println("D" + " " + i);
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> S = new ArrayList<>(); S new ArrayList<>() List<Integer> H = new ArrayList<>(); H new ArrayList<>() List<Integer> C = new ArrayList<>(); C new ArrayList<>() List<Integer> D = new ArrayList<>(); D new ArrayList<>() for (int i = 0; i < n; i++) {
            String symbol = sc.next();
            int num = sc.nextInt();

            if ("S".equals(symbol)) {
                S.add(num);
            } else if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String symbol = sc.next();
            int num = sc.nextInt();

            if ("S".equals(symbol)) {
                S.add(num);
            } else if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            }
        } {
            String symbol = sc.next();
            int num = sc.nextInt();

            if ("S".equals(symbol)) {
                S.add(num);
            } else if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            }
        } String symbol = sc.next(); symbol sc.next() sc.next sc int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if ("S".equals(symbol)) {
                S.add(num);
            } else if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            } "S".equals(symbol) "S".equals "S" symbol {
                S.add(num);
            } S.add(num) S.add S num if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            } "H".equals(symbol) "H".equals "H" symbol {
                H.add(num);
            } H.add(num) H.add H num if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            } "C".equals(symbol) "C".equals "C" symbol {
                C.add(num);
            } C.add(num) C.add C num {
                D.add(num);
            } D.add(num) D.add D num for (int i = 1; i < 14; i++) {
            if (!S.contains(i)) {
                System.out.println("S" + " " + i);
            }
        } int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
            if (!S.contains(i)) {
                System.out.println("S" + " " + i);
            }
        } {
            if (!S.contains(i)) {
                System.out.println("S" + " " + i);
            }
        } if (!S.contains(i)) {
                System.out.println("S" + " " + i);
            } !S.contains(i) S.contains(i) S.contains S i {
                System.out.println("S" + " " + i);
            } System.out.println("S" + " " + i) System.out.println System.out System System.out "S" + " " + i "S" + " " + i "S" " " i for (int i = 1; i < 14; i++) {
            if (!H.contains(i)) {
                System.out.println("H" + " " + i);
            }
        } int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
            if (!H.contains(i)) {
                System.out.println("H" + " " + i);
            }
        } {
            if (!H.contains(i)) {
                System.out.println("H" + " " + i);
            }
        } if (!H.contains(i)) {
                System.out.println("H" + " " + i);
            } !H.contains(i) H.contains(i) H.contains H i {
                System.out.println("H" + " " + i);
            } System.out.println("H" + " " + i) System.out.println System.out System System.out "H" + " " + i "H" + " " + i "H" " " i for (int i = 1; i < 14; i++) {
            if (!C.contains(i)) {
                System.out.println("C" + " " + i);
            }
        } int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
            if (!C.contains(i)) {
                System.out.println("C" + " " + i);
            }
        } {
            if (!C.contains(i)) {
                System.out.println("C" + " " + i);
            }
        } if (!C.contains(i)) {
                System.out.println("C" + " " + i);
            } !C.contains(i) C.contains(i) C.contains C i {
                System.out.println("C" + " " + i);
            } System.out.println("C" + " " + i) System.out.println System.out System System.out "C" + " " + i "C" + " " + i "C" " " i for (int i = 1; i < 14; i++) {
            if (!D.contains(i)) {
                System.out.println("D" + " " + i);
            }
        } int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
            if (!D.contains(i)) {
                System.out.println("D" + " " + i);
            }
        } {
            if (!D.contains(i)) {
                System.out.println("D" + " " + i);
            }
        } if (!D.contains(i)) {
                System.out.println("D" + " " + i);
            } !D.contains(i) D.contains(i) D.contains D i {
                System.out.println("D" + " " + i);
            } System.out.println("D" + " " + i) System.out.println System.out System System.out "D" + " " + i "D" + " " + i "D" " " i String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> S = new ArrayList<>();
        List<Integer> H = new ArrayList<>();
        List<Integer> C = new ArrayList<>();
        List<Integer> D = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            String symbol = sc.next();
            int num = sc.nextInt();

            if ("S".equals(symbol)) {
                S.add(num);
            } else if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            }
        }
       
        for (int i = 1; i < 14; i++) {
            if (!S.contains(i)) {
                System.out.println("S" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!H.contains(i)) {
                System.out.println("H" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!C.contains(i)) {
                System.out.println("C" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!D.contains(i)) {
                System.out.println("D" + " " + i);
            }
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> S = new ArrayList<>();
        List<Integer> H = new ArrayList<>();
        List<Integer> C = new ArrayList<>();
        List<Integer> D = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            String symbol = sc.next();
            int num = sc.nextInt();

            if ("S".equals(symbol)) {
                S.add(num);
            } else if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            }
        }
       
        for (int i = 1; i < 14; i++) {
            if (!S.contains(i)) {
                System.out.println("S" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!H.contains(i)) {
                System.out.println("H" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!C.contains(i)) {
                System.out.println("C" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!D.contains(i)) {
                System.out.println("D" + " " + i);
            }
        }
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> S = new ArrayList<>();
        List<Integer> H = new ArrayList<>();
        List<Integer> C = new ArrayList<>();
        List<Integer> D = new ArrayList<>();
        
        for (int i = 0; i < n; i++) {
            String symbol = sc.next();
            int num = sc.nextInt();

            if ("S".equals(symbol)) {
                S.add(num);
            } else if ("H".equals(symbol)) {
                H.add(num);
            } else if ("C".equals(symbol)) {
                C.add(num);
            } else {
                D.add(num);
            }
        }
       
        for (int i = 1; i < 14; i++) {
            if (!S.contains(i)) {
                System.out.println("S" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!H.contains(i)) {
                System.out.println("H" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!C.contains(i)) {
                System.out.println("C" + " " + i);
            }
        }
        for (int i = 1; i < 14; i++) {
            if (!D.contains(i)) {
                System.out.println("D" + " " + i);
            }
        }
    }
}