import java.util.Scanner;

public class Main {
    public static void printMissing(String str, boolean[] tar) {
        for(int i=0;i<13;i++) {
            if(tar[i] == false) {
                System.out.println(str + " " + (i+1));
            }
        }
    }
    public static void main(String[] args) {
        boolean[] s = new boolean[13];
        boolean[] h = new boolean[13];
        boolean[] c = new boolean[13];
        boolean[] d = new boolean[13];
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        in.nextLine();
        for(int i=0;i<n;i++) {
            String str = in.nextLine();
            String[] lr = str.split(" ");
            int target = Integer.parseInt(lr[1]) - 1;
            switch (lr[0]) {
                case "S":
                    s[target] = true;
                    break;
                case "H":
                    h[target] = true;
                    break;
                case "C":
                    c[target] = true;
                    break;
                case "D":
                    d[target] = true;
                    break;
            }
        }
        printMissing("S", s);
        printMissing("H", h);
        printMissing("C", c);
        printMissing("D", d);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void printMissing(String str, boolean[] tar) {
        for(int i=0;i<13;i++) {
            if(tar[i] == false) {
                System.out.println(str + " " + (i+1));
            }
        }
    }
    public static void main(String[] args) {
        boolean[] s = new boolean[13];
        boolean[] h = new boolean[13];
        boolean[] c = new boolean[13];
        boolean[] d = new boolean[13];
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        in.nextLine();
        for(int i=0;i<n;i++) {
            String str = in.nextLine();
            String[] lr = str.split(" ");
            int target = Integer.parseInt(lr[1]) - 1;
            switch (lr[0]) {
                case "S":
                    s[target] = true;
                    break;
                case "H":
                    h[target] = true;
                    break;
                case "C":
                    c[target] = true;
                    break;
                case "D":
                    d[target] = true;
                    break;
            }
        }
        printMissing("S", s);
        printMissing("H", h);
        printMissing("C", c);
        printMissing("D", d);
    }
} Main public static void printMissing(String str, boolean[] tar) {
        for(int i=0;i<13;i++) {
            if(tar[i] == false) {
                System.out.println(str + " " + (i+1));
            }
        }
    } printMissing {
        for(int i=0;i<13;i++) {
            if(tar[i] == false) {
                System.out.println(str + " " + (i+1));
            }
        }
    } for(int i=0;i<13;i++) {
            if(tar[i] == false) {
                System.out.println(str + " " + (i+1));
            }
        } int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
            if(tar[i] == false) {
                System.out.println(str + " " + (i+1));
            }
        } {
            if(tar[i] == false) {
                System.out.println(str + " " + (i+1));
            }
        } if(tar[i] == false) {
                System.out.println(str + " " + (i+1));
            } tar[i] == false tar[i] tar i false {
                System.out.println(str + " " + (i+1));
            } System.out.println(str + " " + (i+1)) System.out.println System.out System System.out str + " " + (i+1) str + " " + (i+1) str " " (i+1) i 1 String str str boolean[] tar tar public static void main(String[] args) {
        boolean[] s = new boolean[13];
        boolean[] h = new boolean[13];
        boolean[] c = new boolean[13];
        boolean[] d = new boolean[13];
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        in.nextLine();
        for(int i=0;i<n;i++) {
            String str = in.nextLine();
            String[] lr = str.split(" ");
            int target = Integer.parseInt(lr[1]) - 1;
            switch (lr[0]) {
                case "S":
                    s[target] = true;
                    break;
                case "H":
                    h[target] = true;
                    break;
                case "C":
                    c[target] = true;
                    break;
                case "D":
                    d[target] = true;
                    break;
            }
        }
        printMissing("S", s);
        printMissing("H", h);
        printMissing("C", c);
        printMissing("D", d);
    } main {
        boolean[] s = new boolean[13];
        boolean[] h = new boolean[13];
        boolean[] c = new boolean[13];
        boolean[] d = new boolean[13];
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        in.nextLine();
        for(int i=0;i<n;i++) {
            String str = in.nextLine();
            String[] lr = str.split(" ");
            int target = Integer.parseInt(lr[1]) - 1;
            switch (lr[0]) {
                case "S":
                    s[target] = true;
                    break;
                case "H":
                    h[target] = true;
                    break;
                case "C":
                    c[target] = true;
                    break;
                case "D":
                    d[target] = true;
                    break;
            }
        }
        printMissing("S", s);
        printMissing("H", h);
        printMissing("C", c);
        printMissing("D", d);
    } boolean[] s = new boolean[13]; s new boolean[13] 13 boolean[] h = new boolean[13]; h new boolean[13] 13 boolean[] c = new boolean[13]; c new boolean[13] 13 boolean[] d = new boolean[13]; d new boolean[13] 13 Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in in.nextLine() in.nextLine in for(int i=0;i<n;i++) {
            String str = in.nextLine();
            String[] lr = str.split(" ");
            int target = Integer.parseInt(lr[1]) - 1;
            switch (lr[0]) {
                case "S":
                    s[target] = true;
                    break;
                case "H":
                    h[target] = true;
                    break;
                case "C":
                    c[target] = true;
                    break;
                case "D":
                    d[target] = true;
                    break;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            String str = in.nextLine();
            String[] lr = str.split(" ");
            int target = Integer.parseInt(lr[1]) - 1;
            switch (lr[0]) {
                case "S":
                    s[target] = true;
                    break;
                case "H":
                    h[target] = true;
                    break;
                case "C":
                    c[target] = true;
                    break;
                case "D":
                    d[target] = true;
                    break;
            }
        } {
            String str = in.nextLine();
            String[] lr = str.split(" ");
            int target = Integer.parseInt(lr[1]) - 1;
            switch (lr[0]) {
                case "S":
                    s[target] = true;
                    break;
                case "H":
                    h[target] = true;
                    break;
                case "C":
                    c[target] = true;
                    break;
                case "D":
                    d[target] = true;
                    break;
            }
        } String str = in.nextLine(); str in.nextLine() in.nextLine in String[] lr = str.split(" "); lr str.split(" ") str.split str " " int target = Integer.parseInt(lr[1]) - 1; target Integer.parseInt(lr[1]) - 1 Integer.parseInt(lr[1]) Integer.parseInt Integer lr[1] lr 1 1 switch (lr[0]) {
                case "S":
                    s[target] = true;
                    break;
                case "H":
                    h[target] = true;
                    break;
                case "C":
                    c[target] = true;
                    break;
                case "D":
                    d[target] = true;
                    break;
            } lr[0] lr 0 case "S": "S" case "S": s[target] = true s[target] s target true break; case "H": "H" case "H": h[target] = true h[target] h target true break; case "C": "C" case "C": c[target] = true c[target] c target true break; case "D": "D" case "D": d[target] = true d[target] d target true break; printMissing("S", s) printMissing "S" s printMissing("H", h) printMissing "H" h printMissing("C", c) printMissing "C" c printMissing("D", d) printMissing "D" d String[] args args public class Main {
    public static void printMissing(String str, boolean[] tar) {
        for(int i=0;i<13;i++) {
            if(tar[i] == false) {
                System.out.println(str + " " + (i+1));
            }
        }
    }
    public static void main(String[] args) {
        boolean[] s = new boolean[13];
        boolean[] h = new boolean[13];
        boolean[] c = new boolean[13];
        boolean[] d = new boolean[13];
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        in.nextLine();
        for(int i=0;i<n;i++) {
            String str = in.nextLine();
            String[] lr = str.split(" ");
            int target = Integer.parseInt(lr[1]) - 1;
            switch (lr[0]) {
                case "S":
                    s[target] = true;
                    break;
                case "H":
                    h[target] = true;
                    break;
                case "C":
                    c[target] = true;
                    break;
                case "D":
                    d[target] = true;
                    break;
            }
        }
        printMissing("S", s);
        printMissing("H", h);
        printMissing("C", c);
        printMissing("D", d);
    }
} public class Main {
    public static void printMissing(String str, boolean[] tar) {
        for(int i=0;i<13;i++) {
            if(tar[i] == false) {
                System.out.println(str + " " + (i+1));
            }
        }
    }
    public static void main(String[] args) {
        boolean[] s = new boolean[13];
        boolean[] h = new boolean[13];
        boolean[] c = new boolean[13];
        boolean[] d = new boolean[13];
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        in.nextLine();
        for(int i=0;i<n;i++) {
            String str = in.nextLine();
            String[] lr = str.split(" ");
            int target = Integer.parseInt(lr[1]) - 1;
            switch (lr[0]) {
                case "S":
                    s[target] = true;
                    break;
                case "H":
                    h[target] = true;
                    break;
                case "C":
                    c[target] = true;
                    break;
                case "D":
                    d[target] = true;
                    break;
            }
        }
        printMissing("S", s);
        printMissing("H", h);
        printMissing("C", c);
        printMissing("D", d);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void printMissing(String str, boolean[] tar) {
        for(int i=0;i<13;i++) {
            if(tar[i] == false) {
                System.out.println(str + " " + (i+1));
            }
        }
    }
    public static void main(String[] args) {
        boolean[] s = new boolean[13];
        boolean[] h = new boolean[13];
        boolean[] c = new boolean[13];
        boolean[] d = new boolean[13];
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        in.nextLine();
        for(int i=0;i<n;i++) {
            String str = in.nextLine();
            String[] lr = str.split(" ");
            int target = Integer.parseInt(lr[1]) - 1;
            switch (lr[0]) {
                case "S":
                    s[target] = true;
                    break;
                case "H":
                    h[target] = true;
                    break;
                case "C":
                    c[target] = true;
                    break;
                case "D":
                    d[target] = true;
                    break;
            }
        }
        printMissing("S", s);
        printMissing("H", h);
        printMissing("C", c);
        printMissing("D", d);
    }
}