import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        char S[] = new char[14];
        char H[] = new char[14];
        char C[] = new char[14];
        char D[] = new char[14];
        int n = sc.nextInt();
        for(int i = 1; i <= 13; i++){
        	S[i] = 1;
        	H[i] = 1;
        	C[i] = 1;
        	D[i] = 1;
        }
        
        for(int i = 0; i < n; i++){
        	String a = sc.next();
        	int b = sc.nextInt();
        	
        	if(a.equals("S")){
        		S[b] = 0;
        	}
        	else if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	}
        }
        for(int i = 1; i <= 13; i++){
        	if(S[i] == 1) System.out.println("S "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(H[i] == 1) System.out.println("H "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(C[i] == 1) System.out.println("C "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(D[i] == 1) System.out.println("D "+ i);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        char S[] = new char[14];
        char H[] = new char[14];
        char C[] = new char[14];
        char D[] = new char[14];
        int n = sc.nextInt();
        for(int i = 1; i <= 13; i++){
        	S[i] = 1;
        	H[i] = 1;
        	C[i] = 1;
        	D[i] = 1;
        }
        
        for(int i = 0; i < n; i++){
        	String a = sc.next();
        	int b = sc.nextInt();
        	
        	if(a.equals("S")){
        		S[b] = 0;
        	}
        	else if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	}
        }
        for(int i = 1; i <= 13; i++){
        	if(S[i] == 1) System.out.println("S "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(H[i] == 1) System.out.println("H "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(C[i] == 1) System.out.println("C "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(D[i] == 1) System.out.println("D "+ i);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        char S[] = new char[14];
        char H[] = new char[14];
        char C[] = new char[14];
        char D[] = new char[14];
        int n = sc.nextInt();
        for(int i = 1; i <= 13; i++){
        	S[i] = 1;
        	H[i] = 1;
        	C[i] = 1;
        	D[i] = 1;
        }
        
        for(int i = 0; i < n; i++){
        	String a = sc.next();
        	int b = sc.nextInt();
        	
        	if(a.equals("S")){
        		S[b] = 0;
        	}
        	else if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	}
        }
        for(int i = 1; i <= 13; i++){
        	if(S[i] == 1) System.out.println("S "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(H[i] == 1) System.out.println("H "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(C[i] == 1) System.out.println("C "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(D[i] == 1) System.out.println("D "+ i);
        }
    } main {
        Scanner sc = new Scanner(System.in);

        char S[] = new char[14];
        char H[] = new char[14];
        char C[] = new char[14];
        char D[] = new char[14];
        int n = sc.nextInt();
        for(int i = 1; i <= 13; i++){
        	S[i] = 1;
        	H[i] = 1;
        	C[i] = 1;
        	D[i] = 1;
        }
        
        for(int i = 0; i < n; i++){
        	String a = sc.next();
        	int b = sc.nextInt();
        	
        	if(a.equals("S")){
        		S[b] = 0;
        	}
        	else if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	}
        }
        for(int i = 1; i <= 13; i++){
        	if(S[i] == 1) System.out.println("S "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(H[i] == 1) System.out.println("H "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(C[i] == 1) System.out.println("C "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(D[i] == 1) System.out.println("D "+ i);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char S[] = new char[14]; S new char[14] 14 char H[] = new char[14]; H new char[14] 14 char C[] = new char[14]; C new char[14] 14 char D[] = new char[14]; D new char[14] 14 int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i = 1; i <= 13; i++){
        	S[i] = 1;
        	H[i] = 1;
        	C[i] = 1;
        	D[i] = 1;
        } int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
        	S[i] = 1;
        	H[i] = 1;
        	C[i] = 1;
        	D[i] = 1;
        } {
        	S[i] = 1;
        	H[i] = 1;
        	C[i] = 1;
        	D[i] = 1;
        } S[i] = 1 S[i] S i 1 H[i] = 1 H[i] H i 1 C[i] = 1 C[i] C i 1 D[i] = 1 D[i] D i 1 for(int i = 0; i < n; i++){
        	String a = sc.next();
        	int b = sc.nextInt();
        	
        	if(a.equals("S")){
        		S[b] = 0;
        	}
        	else if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	}
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	String a = sc.next();
        	int b = sc.nextInt();
        	
        	if(a.equals("S")){
        		S[b] = 0;
        	}
        	else if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	}
        } {
        	String a = sc.next();
        	int b = sc.nextInt();
        	
        	if(a.equals("S")){
        		S[b] = 0;
        	}
        	else if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	}
        } String a = sc.next(); a sc.next() sc.next sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if(a.equals("S")){
        		S[b] = 0;
        	}
        	else if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	} a.equals("S") a.equals a "S" {
        		S[b] = 0;
        	} S[b] = 0 S[b] S b 0 if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	} a.equals("H") a.equals a "H" {
        		H[b] = 0;
        	} H[b] = 0 H[b] H b 0 if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	} a.equals("C") a.equals a "C" {
        		C[b] = 0;
        	} C[b] = 0 C[b] C b 0 if(a.equals("D")){
        		D[b] = 0;
        	} a.equals("D") a.equals a "D" {
        		D[b] = 0;
        	} D[b] = 0 D[b] D b 0 for(int i = 1; i <= 13; i++){
        	if(S[i] == 1) System.out.println("S "+ i);
        } int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
        	if(S[i] == 1) System.out.println("S "+ i);
        } {
        	if(S[i] == 1) System.out.println("S "+ i);
        } if(S[i] == 1) System.out.println("S "+ i); S[i] == 1 S[i] S i 1 System.out.println("S "+ i) System.out.println System.out System System.out "S "+ i "S " i for(int i = 1; i <= 13; i++){
        	if(H[i] == 1) System.out.println("H "+ i);
        } int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
        	if(H[i] == 1) System.out.println("H "+ i);
        } {
        	if(H[i] == 1) System.out.println("H "+ i);
        } if(H[i] == 1) System.out.println("H "+ i); H[i] == 1 H[i] H i 1 System.out.println("H "+ i) System.out.println System.out System System.out "H "+ i "H " i for(int i = 1; i <= 13; i++){
        	if(C[i] == 1) System.out.println("C "+ i);
        } int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
        	if(C[i] == 1) System.out.println("C "+ i);
        } {
        	if(C[i] == 1) System.out.println("C "+ i);
        } if(C[i] == 1) System.out.println("C "+ i); C[i] == 1 C[i] C i 1 System.out.println("C "+ i) System.out.println System.out System System.out "C "+ i "C " i for(int i = 1; i <= 13; i++){
        	if(D[i] == 1) System.out.println("D "+ i);
        } int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
        	if(D[i] == 1) System.out.println("D "+ i);
        } {
        	if(D[i] == 1) System.out.println("D "+ i);
        } if(D[i] == 1) System.out.println("D "+ i); D[i] == 1 D[i] D i 1 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) {
        Scanner sc = new Scanner(System.in);

        char S[] = new char[14];
        char H[] = new char[14];
        char C[] = new char[14];
        char D[] = new char[14];
        int n = sc.nextInt();
        for(int i = 1; i <= 13; i++){
        	S[i] = 1;
        	H[i] = 1;
        	C[i] = 1;
        	D[i] = 1;
        }
        
        for(int i = 0; i < n; i++){
        	String a = sc.next();
        	int b = sc.nextInt();
        	
        	if(a.equals("S")){
        		S[b] = 0;
        	}
        	else if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	}
        }
        for(int i = 1; i <= 13; i++){
        	if(S[i] == 1) System.out.println("S "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(H[i] == 1) System.out.println("H "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(C[i] == 1) System.out.println("C "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(D[i] == 1) System.out.println("D "+ i);
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        char S[] = new char[14];
        char H[] = new char[14];
        char C[] = new char[14];
        char D[] = new char[14];
        int n = sc.nextInt();
        for(int i = 1; i <= 13; i++){
        	S[i] = 1;
        	H[i] = 1;
        	C[i] = 1;
        	D[i] = 1;
        }
        
        for(int i = 0; i < n; i++){
        	String a = sc.next();
        	int b = sc.nextInt();
        	
        	if(a.equals("S")){
        		S[b] = 0;
        	}
        	else if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	}
        }
        for(int i = 1; i <= 13; i++){
        	if(S[i] == 1) System.out.println("S "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(H[i] == 1) System.out.println("H "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(C[i] == 1) System.out.println("C "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(D[i] == 1) System.out.println("D "+ i);
        }
    }
} Main
import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        char S[] = new char[14];
        char H[] = new char[14];
        char C[] = new char[14];
        char D[] = new char[14];
        int n = sc.nextInt();
        for(int i = 1; i <= 13; i++){
        	S[i] = 1;
        	H[i] = 1;
        	C[i] = 1;
        	D[i] = 1;
        }
        
        for(int i = 0; i < n; i++){
        	String a = sc.next();
        	int b = sc.nextInt();
        	
        	if(a.equals("S")){
        		S[b] = 0;
        	}
        	else if(a.equals("H")){
        		H[b] = 0;
        	}
        	else if(a.equals("C")){
        		C[b] = 0;
        	}
        	else if(a.equals("D")){
        		D[b] = 0;
        	}
        }
        for(int i = 1; i <= 13; i++){
        	if(S[i] == 1) System.out.println("S "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(H[i] == 1) System.out.println("H "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(C[i] == 1) System.out.println("C "+ i);
        }
        for(int i = 1; i <= 13; i++){
        	if(D[i] == 1) System.out.println("D "+ i);
        }
    }
}
