import java.io.*;
import java.util.ArrayList;

public class Main {

    public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<String> list1 = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        for (int i = 0; i < a; i++) {
            list1.add(br.readLine());
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
        }

    }

} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util public class Main {

    public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<String> list1 = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        for (int i = 0; i < a; i++) {
            list1.add(br.readLine());
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
        }

    }

} Main public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<String> list1 = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        for (int i = 0; i < a; i++) {
            list1.add(br.readLine());
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
        }

    } main {

        int a = 0;

        ArrayList<String> list1 = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        for (int i = 0; i < a; i++) {
            list1.add(br.readLine());
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
        }

    } int a = 0; a 0 ArrayList<String> list1 = new ArrayList<>(); list1 new ArrayList<>() BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) a = Integer.parseInt(br.readLine()) a Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i = 0; i < a; i++) {
            list1.add(br.readLine());
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            list1.add(br.readLine());
        } {
            list1.add(br.readLine());
        } list1.add(br.readLine()) list1.add list1 br.readLine() br.readLine br for (int i = 1; i < 14; i++) {
            if (list1.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        } int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
            if (list1.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        } {
            if (list1.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        } if (list1.contains("S " + i) == false) {
                System.out.println("S " + i);
            } list1.contains("S " + i) == false list1.contains("S " + i) list1.contains list1 "S " + i "S " i false {
                System.out.println("S " + i);
            } System.out.println("S " + i) System.out.println System.out System System.out "S " + i "S " i for (int i = 1; i < 14; i++) {
            if (list1.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        } int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
            if (list1.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        } {
            if (list1.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        } if (list1.contains("H " + i) == false) {
                System.out.println("H " + i);
            } list1.contains("H " + i) == false list1.contains("H " + i) list1.contains list1 "H " + i "H " i false {
                System.out.println("H " + i);
            } System.out.println("H " + i) System.out.println System.out System System.out "H " + i "H " i for (int i = 1; i < 14; i++) {
            if (list1.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        } int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
            if (list1.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        } {
            if (list1.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        } if (list1.contains("C " + i) == false) {
                System.out.println("C " + i);
            } list1.contains("C " + i) == false list1.contains("C " + i) list1.contains list1 "C " + i "C " i false {
                System.out.println("C " + i);
            } System.out.println("C " + i) System.out.println System.out System System.out "C " + i "C " i for (int i = 1; i < 14; i++) {
            if (list1.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
        } int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
            if (list1.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
        } {
            if (list1.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
        } if (list1.contains("D " + i) == false) {
                System.out.println("D " + i);
            } list1.contains("D " + i) == false list1.contains("D " + i) list1.contains list1 "D " + i "D " i false {
                System.out.println("D " + i);
            } System.out.println("D " + i) System.out.println System.out System System.out "D " + i "D " i String[] args args public class Main {

    public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<String> list1 = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        for (int i = 0; i < a; i++) {
            list1.add(br.readLine());
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
        }

    }

} public class Main {

    public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<String> list1 = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        for (int i = 0; i < a; i++) {
            list1.add(br.readLine());
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
        }

    }

} Main
import java.io.*;
import java.util.ArrayList;

public class Main {

    public static void main(String[] args) throws IOException {

        int a = 0;

        ArrayList<String> list1 = new ArrayList<>();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        a = Integer.parseInt(br.readLine());

        for (int i = 0; i < a; i++) {
            list1.add(br.readLine());
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }

        for (int i = 1; i < 14; i++) {
            if (list1.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
        }

    }

}