import java.util.*;

public class Main{

	static void Missing(int[] S,int[] H,int[] C,int[] D){
		
		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));
			}
		}
		
	}
	
	static void Input(){
		Scanner scanner = new Scanner(System.in);
		int N	= scanner.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for(int i = 0; i < N ; i++){
			String 	gara = scanner.next();
			int 	kazu = scanner.nextInt();
			switch(gara){
			case "S":S[kazu-1]=1; break;
			case "H":H[kazu-1]=1; break;
			case "C":C[kazu-1]=1; break;
			case "D":D[kazu-1]=1; break;
			}
		}
		Missing(S, H, C, D);
		scanner.close();
	}
	
	public static void main(String[] args) {
		Input();
		
	}

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

	static void Missing(int[] S,int[] H,int[] C,int[] D){
		
		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));
			}
		}
		
	}
	
	static void Input(){
		Scanner scanner = new Scanner(System.in);
		int N	= scanner.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for(int i = 0; i < N ; i++){
			String 	gara = scanner.next();
			int 	kazu = scanner.nextInt();
			switch(gara){
			case "S":S[kazu-1]=1; break;
			case "H":H[kazu-1]=1; break;
			case "C":C[kazu-1]=1; break;
			case "D":D[kazu-1]=1; break;
			}
		}
		Missing(S, H, C, D);
		scanner.close();
	}
	
	public static void main(String[] args) {
		Input();
		
	}

} Main static void Missing(int[] S,int[] H,int[] C,int[] D){
		
		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));
			}
		}
		
	} Missing {
		
		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));
			}
		}
		
	} 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 int[] S S int[] H H int[] C C int[] D D static void Input(){
		Scanner scanner = new Scanner(System.in);
		int N	= scanner.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for(int i = 0; i < N ; i++){
			String 	gara = scanner.next();
			int 	kazu = scanner.nextInt();
			switch(gara){
			case "S":S[kazu-1]=1; break;
			case "H":H[kazu-1]=1; break;
			case "C":C[kazu-1]=1; break;
			case "D":D[kazu-1]=1; break;
			}
		}
		Missing(S, H, C, D);
		scanner.close();
	} Input {
		Scanner scanner = new Scanner(System.in);
		int N	= scanner.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for(int i = 0; i < N ; i++){
			String 	gara = scanner.next();
			int 	kazu = scanner.nextInt();
			switch(gara){
			case "S":S[kazu-1]=1; break;
			case "H":H[kazu-1]=1; break;
			case "C":C[kazu-1]=1; break;
			case "D":D[kazu-1]=1; break;
			}
		}
		Missing(S, H, C, D);
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N	= scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner 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 for(int i = 0; i < N ; i++){
			String 	gara = scanner.next();
			int 	kazu = scanner.nextInt();
			switch(gara){
			case "S":S[kazu-1]=1; break;
			case "H":H[kazu-1]=1; break;
			case "C":C[kazu-1]=1; break;
			case "D":D[kazu-1]=1; break;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			String 	gara = scanner.next();
			int 	kazu = scanner.nextInt();
			switch(gara){
			case "S":S[kazu-1]=1; break;
			case "H":H[kazu-1]=1; break;
			case "C":C[kazu-1]=1; break;
			case "D":D[kazu-1]=1; break;
			}
		} {
			String 	gara = scanner.next();
			int 	kazu = scanner.nextInt();
			switch(gara){
			case "S":S[kazu-1]=1; break;
			case "H":H[kazu-1]=1; break;
			case "C":C[kazu-1]=1; break;
			case "D":D[kazu-1]=1; break;
			}
		} String 	gara = scanner.next(); gara scanner.next() scanner.next scanner int 	kazu = scanner.nextInt(); kazu scanner.nextInt() scanner.nextInt scanner switch(gara){
			case "S":S[kazu-1]=1; break;
			case "H":H[kazu-1]=1; break;
			case "C":C[kazu-1]=1; break;
			case "D":D[kazu-1]=1; break;
			} gara case "S": "S" case "S": S[kazu-1]=1 S[kazu-1] S kazu-1 kazu 1 1 break; case "H": "H" case "H": H[kazu-1]=1 H[kazu-1] H kazu-1 kazu 1 1 break; case "C": "C" case "C": C[kazu-1]=1 C[kazu-1] C kazu-1 kazu 1 1 break; case "D": "D" case "D": D[kazu-1]=1 D[kazu-1] D kazu-1 kazu 1 1 break; Missing(S, H, C, D) Missing S H C D scanner.close() scanner.close scanner public static void main(String[] args) {
		Input();
		
	} main {
		Input();
		
	} Input() Input String[] args args public class Main{

	static void Missing(int[] S,int[] H,int[] C,int[] D){
		
		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));
			}
		}
		
	}
	
	static void Input(){
		Scanner scanner = new Scanner(System.in);
		int N	= scanner.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for(int i = 0; i < N ; i++){
			String 	gara = scanner.next();
			int 	kazu = scanner.nextInt();
			switch(gara){
			case "S":S[kazu-1]=1; break;
			case "H":H[kazu-1]=1; break;
			case "C":C[kazu-1]=1; break;
			case "D":D[kazu-1]=1; break;
			}
		}
		Missing(S, H, C, D);
		scanner.close();
	}
	
	public static void main(String[] args) {
		Input();
		
	}

} public class Main{

	static void Missing(int[] S,int[] H,int[] C,int[] D){
		
		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));
			}
		}
		
	}
	
	static void Input(){
		Scanner scanner = new Scanner(System.in);
		int N	= scanner.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for(int i = 0; i < N ; i++){
			String 	gara = scanner.next();
			int 	kazu = scanner.nextInt();
			switch(gara){
			case "S":S[kazu-1]=1; break;
			case "H":H[kazu-1]=1; break;
			case "C":C[kazu-1]=1; break;
			case "D":D[kazu-1]=1; break;
			}
		}
		Missing(S, H, C, D);
		scanner.close();
	}
	
	public static void main(String[] args) {
		Input();
		
	}

} Main
import java.util.*;

public class Main{

	static void Missing(int[] S,int[] H,int[] C,int[] D){
		
		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));
			}
		}
		
	}
	
	static void Input(){
		Scanner scanner = new Scanner(System.in);
		int N	= scanner.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for(int i = 0; i < N ; i++){
			String 	gara = scanner.next();
			int 	kazu = scanner.nextInt();
			switch(gara){
			case "S":S[kazu-1]=1; break;
			case "H":H[kazu-1]=1; break;
			case "C":C[kazu-1]=1; break;
			case "D":D[kazu-1]=1; break;
			}
		}
		Missing(S, H, C, D);
		scanner.close();
	}
	
	public static void main(String[] args) {
		Input();
		
	}

}