import java.util.Scanner;

/***
 * 0S1 - 13... 0 - 12 ... + -1
 * 1H1 - 13... 13 - 25 ... + 12
 * 2C1 - 13... 26 - 38 ... + 25
 * 3D1 - 13... 39 - 51 ... + 38
 */

public class Main {
    public static void main(String[] args) {
        boolean[] findedCard = new boolean[52];
        Scanner scan = new Scanner(System.in);
        int num = Integer.parseInt(scan.next());

        for (int i = 0; i < 52; i++) {
            findedCard[i] = false;
        }

        for (int i = 0; i < num; i++) {
            String suit;
            int buf1, buf2;

            suit = scan.next();
            buf1 = Integer.parseInt(scan.next());

            if (suit.equals("S")) {
                buf2  = buf1 - 1;
            } else if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            }
            findedCard[buf2] = true;
        }

        for (int i = 0; i < 52; i++) {
            if (!findedCard[i]) {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            }
        }

    }
}
 import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        boolean[] findedCard = new boolean[52];
        Scanner scan = new Scanner(System.in);
        int num = Integer.parseInt(scan.next());

        for (int i = 0; i < 52; i++) {
            findedCard[i] = false;
        }

        for (int i = 0; i < num; i++) {
            String suit;
            int buf1, buf2;

            suit = scan.next();
            buf1 = Integer.parseInt(scan.next());

            if (suit.equals("S")) {
                buf2  = buf1 - 1;
            } else if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            }
            findedCard[buf2] = true;
        }

        for (int i = 0; i < 52; i++) {
            if (!findedCard[i]) {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            }
        }

    }
} Main public static void main(String[] args) {
        boolean[] findedCard = new boolean[52];
        Scanner scan = new Scanner(System.in);
        int num = Integer.parseInt(scan.next());

        for (int i = 0; i < 52; i++) {
            findedCard[i] = false;
        }

        for (int i = 0; i < num; i++) {
            String suit;
            int buf1, buf2;

            suit = scan.next();
            buf1 = Integer.parseInt(scan.next());

            if (suit.equals("S")) {
                buf2  = buf1 - 1;
            } else if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            }
            findedCard[buf2] = true;
        }

        for (int i = 0; i < 52; i++) {
            if (!findedCard[i]) {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            }
        }

    } main {
        boolean[] findedCard = new boolean[52];
        Scanner scan = new Scanner(System.in);
        int num = Integer.parseInt(scan.next());

        for (int i = 0; i < 52; i++) {
            findedCard[i] = false;
        }

        for (int i = 0; i < num; i++) {
            String suit;
            int buf1, buf2;

            suit = scan.next();
            buf1 = Integer.parseInt(scan.next());

            if (suit.equals("S")) {
                buf2  = buf1 - 1;
            } else if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            }
            findedCard[buf2] = true;
        }

        for (int i = 0; i < 52; i++) {
            if (!findedCard[i]) {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            }
        }

    } boolean[] findedCard = new boolean[52]; findedCard new boolean[52] 52 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = Integer.parseInt(scan.next()); num Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan for (int i = 0; i < 52; i++) {
            findedCard[i] = false;
        } int i = 0; int i = 0; i 0 i < 52 i 52 i++ i++ i {
            findedCard[i] = false;
        } {
            findedCard[i] = false;
        } findedCard[i] = false findedCard[i] findedCard i false for (int i = 0; i < num; i++) {
            String suit;
            int buf1, buf2;

            suit = scan.next();
            buf1 = Integer.parseInt(scan.next());

            if (suit.equals("S")) {
                buf2  = buf1 - 1;
            } else if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            }
            findedCard[buf2] = true;
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            String suit;
            int buf1, buf2;

            suit = scan.next();
            buf1 = Integer.parseInt(scan.next());

            if (suit.equals("S")) {
                buf2  = buf1 - 1;
            } else if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            }
            findedCard[buf2] = true;
        } {
            String suit;
            int buf1, buf2;

            suit = scan.next();
            buf1 = Integer.parseInt(scan.next());

            if (suit.equals("S")) {
                buf2  = buf1 - 1;
            } else if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            }
            findedCard[buf2] = true;
        } String suit; suit int buf1 buf1 buf2; buf2 suit = scan.next() suit scan.next() scan.next scan buf1 = Integer.parseInt(scan.next()) buf1 Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan if (suit.equals("S")) {
                buf2  = buf1 - 1;
            } else if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            } suit.equals("S") suit.equals suit "S" {
                buf2  = buf1 - 1;
            } buf2  = buf1 - 1 buf2 buf1 - 1 buf1 1 if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            } suit.equals("H") suit.equals suit "H" {
                buf2 = buf1 + 12;
            } buf2 = buf1 + 12 buf2 buf1 + 12 buf1 12 if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            } suit.equals("C") suit.equals suit "C" {
                buf2 = buf1 + 25;
            } buf2 = buf1 + 25 buf2 buf1 + 25 buf1 25 {
                buf2 = buf1 + 38;
            } buf2 = buf1 + 38 buf2 buf1 + 38 buf1 38 findedCard[buf2] = true findedCard[buf2] findedCard buf2 true for (int i = 0; i < 52; i++) {
            if (!findedCard[i]) {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            }
        } int i = 0; int i = 0; i 0 i < 52 i 52 i++ i++ i {
            if (!findedCard[i]) {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            }
        } {
            if (!findedCard[i]) {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            }
        } if (!findedCard[i]) {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            } !findedCard[i] findedCard[i] findedCard i {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            } int div div mod; mod div = i / 13 div i / 13 i 13 mod = i % 13 + 1 mod i % 13 + 1 i % 13 i 13 1 if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                } div == 0 div 0 {
                    System.out.println("S " + mod);
                } System.out.println("S " + mod) System.out.println System.out System System.out "S " + mod "S " mod if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                } div == 1 div 1 {
                    System.out.println("H " + mod);
                } System.out.println("H " + mod) System.out.println System.out System System.out "H " + mod "H " mod if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                } div == 2 div 2 {
                    System.out.println("C " + mod);
                } System.out.println("C " + mod) System.out.println System.out System System.out "C " + mod "C " mod {
                    System.out.println("D " + mod);
                } System.out.println("D " + mod) System.out.println System.out System System.out "D " + mod "D " mod String[] args args public class Main {
    public static void main(String[] args) {
        boolean[] findedCard = new boolean[52];
        Scanner scan = new Scanner(System.in);
        int num = Integer.parseInt(scan.next());

        for (int i = 0; i < 52; i++) {
            findedCard[i] = false;
        }

        for (int i = 0; i < num; i++) {
            String suit;
            int buf1, buf2;

            suit = scan.next();
            buf1 = Integer.parseInt(scan.next());

            if (suit.equals("S")) {
                buf2  = buf1 - 1;
            } else if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            }
            findedCard[buf2] = true;
        }

        for (int i = 0; i < 52; i++) {
            if (!findedCard[i]) {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            }
        }

    }
} public class Main {
    public static void main(String[] args) {
        boolean[] findedCard = new boolean[52];
        Scanner scan = new Scanner(System.in);
        int num = Integer.parseInt(scan.next());

        for (int i = 0; i < 52; i++) {
            findedCard[i] = false;
        }

        for (int i = 0; i < num; i++) {
            String suit;
            int buf1, buf2;

            suit = scan.next();
            buf1 = Integer.parseInt(scan.next());

            if (suit.equals("S")) {
                buf2  = buf1 - 1;
            } else if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            }
            findedCard[buf2] = true;
        }

        for (int i = 0; i < 52; i++) {
            if (!findedCard[i]) {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            }
        }

    }
} Main
import java.util.Scanner;

/***
 * 0S1 - 13... 0 - 12 ... + -1
 * 1H1 - 13... 13 - 25 ... + 12
 * 2C1 - 13... 26 - 38 ... + 25
 * 3D1 - 13... 39 - 51 ... + 38
 */

public class Main {
    public static void main(String[] args) {
        boolean[] findedCard = new boolean[52];
        Scanner scan = new Scanner(System.in);
        int num = Integer.parseInt(scan.next());

        for (int i = 0; i < 52; i++) {
            findedCard[i] = false;
        }

        for (int i = 0; i < num; i++) {
            String suit;
            int buf1, buf2;

            suit = scan.next();
            buf1 = Integer.parseInt(scan.next());

            if (suit.equals("S")) {
                buf2  = buf1 - 1;
            } else if (suit.equals("H")) {
                buf2 = buf1 + 12;
            } else if (suit.equals("C")) {
                buf2 = buf1 + 25;
            } else {
                buf2 = buf1 + 38;
            }
            findedCard[buf2] = true;
        }

        for (int i = 0; i < 52; i++) {
            if (!findedCard[i]) {
                int div, mod;
                div = i / 13;
                mod = i % 13 + 1;
                if (div == 0) {
                    System.out.println("S " + mod);
                } else if (div == 1) {
                    System.out.println("H " + mod);
                } else if (div == 2) {
                    System.out.println("C " + mod);
                } else {
                    System.out.println("D " + mod);
                }
            }
        }

    }
}

