import java.util.Scanner;

public class Main{
    public static void main(String[]args){
        //カード枚数
        int number=0;
        //入力を格納する配列
        int[] S = new int[13];
        int[] H = new int[13];
        int[] C = new int[13];
        int[] D = new int[13];
        
        Scanner scan = new Scanner(System.in);
        //枚数を格納
        number = scan.nextInt();
        
        for(int i=0;i<number;i++){
            String design = scan.next();
            int cnum = scan.nextInt();
            
            if(design.equals("S")){
                check(S,cnum);
            }
            if(design.equals("H")){
                check(H,cnum);
            }
            if(design.equals("C")){
                check(C,cnum);
            }
            if(design.equals("D")){
                check(D,cnum);
            }
            
        }
        
        for(int i=0;i<13;i++){
            if(S[i]==0){
                System.out.println("S "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(H[i]==0){
                System.out.println("H "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(C[i]==0){
                System.out.println("C "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(D[i]==0){
                System.out.println("D "+(i+1));
            }
        }
        
        
    }

    private static void check(int[] design, int cnum) {
        design[cnum-1]=1;
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[]args){
        //カード枚数
        int number=0;
        //入力を格納する配列
        int[] S = new int[13];
        int[] H = new int[13];
        int[] C = new int[13];
        int[] D = new int[13];
        
        Scanner scan = new Scanner(System.in);
        //枚数を格納
        number = scan.nextInt();
        
        for(int i=0;i<number;i++){
            String design = scan.next();
            int cnum = scan.nextInt();
            
            if(design.equals("S")){
                check(S,cnum);
            }
            if(design.equals("H")){
                check(H,cnum);
            }
            if(design.equals("C")){
                check(C,cnum);
            }
            if(design.equals("D")){
                check(D,cnum);
            }
            
        }
        
        for(int i=0;i<13;i++){
            if(S[i]==0){
                System.out.println("S "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(H[i]==0){
                System.out.println("H "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(C[i]==0){
                System.out.println("C "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(D[i]==0){
                System.out.println("D "+(i+1));
            }
        }
        
        
    }

    private static void check(int[] design, int cnum) {
        design[cnum-1]=1;
    }
} Main public static void main(String[]args){
        //カード枚数
        int number=0;
        //入力を格納する配列
        int[] S = new int[13];
        int[] H = new int[13];
        int[] C = new int[13];
        int[] D = new int[13];
        
        Scanner scan = new Scanner(System.in);
        //枚数を格納
        number = scan.nextInt();
        
        for(int i=0;i<number;i++){
            String design = scan.next();
            int cnum = scan.nextInt();
            
            if(design.equals("S")){
                check(S,cnum);
            }
            if(design.equals("H")){
                check(H,cnum);
            }
            if(design.equals("C")){
                check(C,cnum);
            }
            if(design.equals("D")){
                check(D,cnum);
            }
            
        }
        
        for(int i=0;i<13;i++){
            if(S[i]==0){
                System.out.println("S "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(H[i]==0){
                System.out.println("H "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(C[i]==0){
                System.out.println("C "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(D[i]==0){
                System.out.println("D "+(i+1));
            }
        }
        
        
    } main {
        //カード枚数
        int number=0;
        //入力を格納する配列
        int[] S = new int[13];
        int[] H = new int[13];
        int[] C = new int[13];
        int[] D = new int[13];
        
        Scanner scan = new Scanner(System.in);
        //枚数を格納
        number = scan.nextInt();
        
        for(int i=0;i<number;i++){
            String design = scan.next();
            int cnum = scan.nextInt();
            
            if(design.equals("S")){
                check(S,cnum);
            }
            if(design.equals("H")){
                check(H,cnum);
            }
            if(design.equals("C")){
                check(C,cnum);
            }
            if(design.equals("D")){
                check(D,cnum);
            }
            
        }
        
        for(int i=0;i<13;i++){
            if(S[i]==0){
                System.out.println("S "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(H[i]==0){
                System.out.println("H "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(C[i]==0){
                System.out.println("C "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(D[i]==0){
                System.out.println("D "+(i+1));
            }
        }
        
        
    } int number=0; number 0 int[] S = new int[13]; S new int[13] 13 int[] H = new int[13]; H new int[13] 13 int[] C = new int[13]; C new int[13] 13 int[] D = new int[13]; D new int[13] 13 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) number = scan.nextInt() number scan.nextInt() scan.nextInt scan for(int i=0;i<number;i++){
            String design = scan.next();
            int cnum = scan.nextInt();
            
            if(design.equals("S")){
                check(S,cnum);
            }
            if(design.equals("H")){
                check(H,cnum);
            }
            if(design.equals("C")){
                check(C,cnum);
            }
            if(design.equals("D")){
                check(D,cnum);
            }
            
        } int i=0; int i=0; i 0 i<number i number i++ i++ i {
            String design = scan.next();
            int cnum = scan.nextInt();
            
            if(design.equals("S")){
                check(S,cnum);
            }
            if(design.equals("H")){
                check(H,cnum);
            }
            if(design.equals("C")){
                check(C,cnum);
            }
            if(design.equals("D")){
                check(D,cnum);
            }
            
        } {
            String design = scan.next();
            int cnum = scan.nextInt();
            
            if(design.equals("S")){
                check(S,cnum);
            }
            if(design.equals("H")){
                check(H,cnum);
            }
            if(design.equals("C")){
                check(C,cnum);
            }
            if(design.equals("D")){
                check(D,cnum);
            }
            
        } String design = scan.next(); design scan.next() scan.next scan int cnum = scan.nextInt(); cnum scan.nextInt() scan.nextInt scan if(design.equals("S")){
                check(S,cnum);
            } design.equals("S") design.equals design "S" {
                check(S,cnum);
            } check(S,cnum) check S cnum if(design.equals("H")){
                check(H,cnum);
            } design.equals("H") design.equals design "H" {
                check(H,cnum);
            } check(H,cnum) check H cnum if(design.equals("C")){
                check(C,cnum);
            } design.equals("C") design.equals design "C" {
                check(C,cnum);
            } check(C,cnum) check C cnum if(design.equals("D")){
                check(D,cnum);
            } design.equals("D") design.equals design "D" {
                check(D,cnum);
            } check(D,cnum) check D cnum for(int i=0;i<13;i++){
            if(S[i]==0){
                System.out.println("S "+(i+1));
            }
        } int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
            if(S[i]==0){
                System.out.println("S "+(i+1));
            }
        } {
            if(S[i]==0){
                System.out.println("S "+(i+1));
            }
        } if(S[i]==0){
                System.out.println("S "+(i+1));
            } S[i]==0 S[i] S i 0 {
                System.out.println("S "+(i+1));
            } System.out.println("S "+(i+1)) System.out.println System.out System System.out "S "+(i+1) "S " (i+1) i 1 for(int i=0;i<13;i++){
            if(H[i]==0){
                System.out.println("H "+(i+1));
            }
        } int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
            if(H[i]==0){
                System.out.println("H "+(i+1));
            }
        } {
            if(H[i]==0){
                System.out.println("H "+(i+1));
            }
        } if(H[i]==0){
                System.out.println("H "+(i+1));
            } H[i]==0 H[i] H i 0 {
                System.out.println("H "+(i+1));
            } System.out.println("H "+(i+1)) System.out.println System.out System System.out "H "+(i+1) "H " (i+1) i 1 for(int i=0;i<13;i++){
            if(C[i]==0){
                System.out.println("C "+(i+1));
            }
        } int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
            if(C[i]==0){
                System.out.println("C "+(i+1));
            }
        } {
            if(C[i]==0){
                System.out.println("C "+(i+1));
            }
        } if(C[i]==0){
                System.out.println("C "+(i+1));
            } C[i]==0 C[i] C i 0 {
                System.out.println("C "+(i+1));
            } System.out.println("C "+(i+1)) System.out.println System.out System System.out "C "+(i+1) "C " (i+1) i 1 for(int i=0;i<13;i++){
            if(D[i]==0){
                System.out.println("D "+(i+1));
            }
        } int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
            if(D[i]==0){
                System.out.println("D "+(i+1));
            }
        } {
            if(D[i]==0){
                System.out.println("D "+(i+1));
            }
        } if(D[i]==0){
                System.out.println("D "+(i+1));
            } D[i]==0 D[i] D i 0 {
                System.out.println("D "+(i+1));
            } System.out.println("D "+(i+1)) System.out.println System.out System System.out "D "+(i+1) "D " (i+1) i 1 String[]args args private static void check(int[] design, int cnum) {
        design[cnum-1]=1;
    } check {
        design[cnum-1]=1;
    } design[cnum-1]=1 design[cnum-1] design cnum-1 cnum 1 1 int[] design design int cnum cnum public class Main{
    public static void main(String[]args){
        //カード枚数
        int number=0;
        //入力を格納する配列
        int[] S = new int[13];
        int[] H = new int[13];
        int[] C = new int[13];
        int[] D = new int[13];
        
        Scanner scan = new Scanner(System.in);
        //枚数を格納
        number = scan.nextInt();
        
        for(int i=0;i<number;i++){
            String design = scan.next();
            int cnum = scan.nextInt();
            
            if(design.equals("S")){
                check(S,cnum);
            }
            if(design.equals("H")){
                check(H,cnum);
            }
            if(design.equals("C")){
                check(C,cnum);
            }
            if(design.equals("D")){
                check(D,cnum);
            }
            
        }
        
        for(int i=0;i<13;i++){
            if(S[i]==0){
                System.out.println("S "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(H[i]==0){
                System.out.println("H "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(C[i]==0){
                System.out.println("C "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(D[i]==0){
                System.out.println("D "+(i+1));
            }
        }
        
        
    }

    private static void check(int[] design, int cnum) {
        design[cnum-1]=1;
    }
} public class Main{
    public static void main(String[]args){
        //カード枚数
        int number=0;
        //入力を格納する配列
        int[] S = new int[13];
        int[] H = new int[13];
        int[] C = new int[13];
        int[] D = new int[13];
        
        Scanner scan = new Scanner(System.in);
        //枚数を格納
        number = scan.nextInt();
        
        for(int i=0;i<number;i++){
            String design = scan.next();
            int cnum = scan.nextInt();
            
            if(design.equals("S")){
                check(S,cnum);
            }
            if(design.equals("H")){
                check(H,cnum);
            }
            if(design.equals("C")){
                check(C,cnum);
            }
            if(design.equals("D")){
                check(D,cnum);
            }
            
        }
        
        for(int i=0;i<13;i++){
            if(S[i]==0){
                System.out.println("S "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(H[i]==0){
                System.out.println("H "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(C[i]==0){
                System.out.println("C "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(D[i]==0){
                System.out.println("D "+(i+1));
            }
        }
        
        
    }

    private static void check(int[] design, int cnum) {
        design[cnum-1]=1;
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[]args){
        //カード枚数
        int number=0;
        //入力を格納する配列
        int[] S = new int[13];
        int[] H = new int[13];
        int[] C = new int[13];
        int[] D = new int[13];
        
        Scanner scan = new Scanner(System.in);
        //枚数を格納
        number = scan.nextInt();
        
        for(int i=0;i<number;i++){
            String design = scan.next();
            int cnum = scan.nextInt();
            
            if(design.equals("S")){
                check(S,cnum);
            }
            if(design.equals("H")){
                check(H,cnum);
            }
            if(design.equals("C")){
                check(C,cnum);
            }
            if(design.equals("D")){
                check(D,cnum);
            }
            
        }
        
        for(int i=0;i<13;i++){
            if(S[i]==0){
                System.out.println("S "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(H[i]==0){
                System.out.println("H "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(C[i]==0){
                System.out.println("C "+(i+1));
            }
        }
        for(int i=0;i<13;i++){
            if(D[i]==0){
                System.out.println("D "+(i+1));
            }
        }
        
        
    }

    private static void check(int[] design, int cnum) {
        design[cnum-1]=1;
    }
}