import java.io.*;

class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n_cards = Integer.parseInt(br.readLine());
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for (int i = 0; i < n_cards; i++) {
			String sz_input = br.readLine();
			String[] sz_type = sz_input.split(" ");
			int n_number = Integer.parseInt(sz_type[1]);
			
			switch (sz_type[0]) {
			case "S":
				S[n_number] = true;
				break;
			case "H":
				H[n_number] = true;
				break;
			case "C":
				C[n_number] = true;
				break;
			case "D":
				D[n_number] = true;
				break;
			}
		}
		

		for (int i = 1; i < 14; i++) {
			if (S[i] == false) {
				System.out.println("S " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (H[i] == false) {
				System.out.println("H " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (C[i] == false) {
				System.out.println("C " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (D[i] == false) {
				System.out.println("D " + i);
			}
		}
	}
} import java.io.*; io.* java class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n_cards = Integer.parseInt(br.readLine());
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for (int i = 0; i < n_cards; i++) {
			String sz_input = br.readLine();
			String[] sz_type = sz_input.split(" ");
			int n_number = Integer.parseInt(sz_type[1]);
			
			switch (sz_type[0]) {
			case "S":
				S[n_number] = true;
				break;
			case "H":
				H[n_number] = true;
				break;
			case "C":
				C[n_number] = true;
				break;
			case "D":
				D[n_number] = true;
				break;
			}
		}
		

		for (int i = 1; i < 14; i++) {
			if (S[i] == false) {
				System.out.println("S " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (H[i] == false) {
				System.out.println("H " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (C[i] == false) {
				System.out.println("C " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (D[i] == false) {
				System.out.println("D " + i);
			}
		}
	}
} Main public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n_cards = Integer.parseInt(br.readLine());
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for (int i = 0; i < n_cards; i++) {
			String sz_input = br.readLine();
			String[] sz_type = sz_input.split(" ");
			int n_number = Integer.parseInt(sz_type[1]);
			
			switch (sz_type[0]) {
			case "S":
				S[n_number] = true;
				break;
			case "H":
				H[n_number] = true;
				break;
			case "C":
				C[n_number] = true;
				break;
			case "D":
				D[n_number] = true;
				break;
			}
		}
		

		for (int i = 1; i < 14; i++) {
			if (S[i] == false) {
				System.out.println("S " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (H[i] == false) {
				System.out.println("H " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (C[i] == false) {
				System.out.println("C " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (D[i] == false) {
				System.out.println("D " + i);
			}
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n_cards = Integer.parseInt(br.readLine());
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for (int i = 0; i < n_cards; i++) {
			String sz_input = br.readLine();
			String[] sz_type = sz_input.split(" ");
			int n_number = Integer.parseInt(sz_type[1]);
			
			switch (sz_type[0]) {
			case "S":
				S[n_number] = true;
				break;
			case "H":
				H[n_number] = true;
				break;
			case "C":
				C[n_number] = true;
				break;
			case "D":
				D[n_number] = true;
				break;
			}
		}
		

		for (int i = 1; i < 14; i++) {
			if (S[i] == false) {
				System.out.println("S " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (H[i] == false) {
				System.out.println("H " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (C[i] == false) {
				System.out.println("C " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (D[i] == false) {
				System.out.println("D " + i);
			}
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n_cards = Integer.parseInt(br.readLine()); n_cards Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br boolean[] S = new boolean[14]; S new boolean[14] 14 boolean[] H = new boolean[14]; H new boolean[14] 14 boolean[] C = new boolean[14]; C new boolean[14] 14 boolean[] D = new boolean[14]; D new boolean[14] 14 for (int i = 0; i < n_cards; i++) {
			String sz_input = br.readLine();
			String[] sz_type = sz_input.split(" ");
			int n_number = Integer.parseInt(sz_type[1]);
			
			switch (sz_type[0]) {
			case "S":
				S[n_number] = true;
				break;
			case "H":
				H[n_number] = true;
				break;
			case "C":
				C[n_number] = true;
				break;
			case "D":
				D[n_number] = true;
				break;
			}
		} int i = 0; int i = 0; i 0 i < n_cards i n_cards i++ i++ i {
			String sz_input = br.readLine();
			String[] sz_type = sz_input.split(" ");
			int n_number = Integer.parseInt(sz_type[1]);
			
			switch (sz_type[0]) {
			case "S":
				S[n_number] = true;
				break;
			case "H":
				H[n_number] = true;
				break;
			case "C":
				C[n_number] = true;
				break;
			case "D":
				D[n_number] = true;
				break;
			}
		} {
			String sz_input = br.readLine();
			String[] sz_type = sz_input.split(" ");
			int n_number = Integer.parseInt(sz_type[1]);
			
			switch (sz_type[0]) {
			case "S":
				S[n_number] = true;
				break;
			case "H":
				H[n_number] = true;
				break;
			case "C":
				C[n_number] = true;
				break;
			case "D":
				D[n_number] = true;
				break;
			}
		} String sz_input = br.readLine(); sz_input br.readLine() br.readLine br String[] sz_type = sz_input.split(" "); sz_type sz_input.split(" ") sz_input.split sz_input " " int n_number = Integer.parseInt(sz_type[1]); n_number Integer.parseInt(sz_type[1]) Integer.parseInt Integer sz_type[1] sz_type 1 switch (sz_type[0]) {
			case "S":
				S[n_number] = true;
				break;
			case "H":
				H[n_number] = true;
				break;
			case "C":
				C[n_number] = true;
				break;
			case "D":
				D[n_number] = true;
				break;
			} sz_type[0] sz_type 0 case "S": "S" case "S": S[n_number] = true S[n_number] S n_number true break; case "H": "H" case "H": H[n_number] = true H[n_number] H n_number true break; case "C": "C" case "C": C[n_number] = true C[n_number] C n_number true break; case "D": "D" case "D": D[n_number] = true D[n_number] D n_number true break; for (int i = 1; i < 14; i++) {
			if (S[i] == false) {
				System.out.println("S " + i);
			}
		} int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
			if (S[i] == false) {
				System.out.println("S " + i);
			}
		} {
			if (S[i] == false) {
				System.out.println("S " + i);
			}
		} if (S[i] == false) {
				System.out.println("S " + i);
			} S[i] == false S[i] S i false {
				System.out.println("S " + i);
			} System.out.println("S " + i) System.out.println System.out System System.out "S " + i "S " i for (int i = 1; i < 14; i++) {
			if (H[i] == false) {
				System.out.println("H " + i);
			}
		} int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
			if (H[i] == false) {
				System.out.println("H " + i);
			}
		} {
			if (H[i] == false) {
				System.out.println("H " + i);
			}
		} if (H[i] == false) {
				System.out.println("H " + i);
			} H[i] == false H[i] H i false {
				System.out.println("H " + i);
			} System.out.println("H " + i) System.out.println System.out System System.out "H " + i "H " i for (int i = 1; i < 14; i++) {
			if (C[i] == false) {
				System.out.println("C " + i);
			}
		} int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
			if (C[i] == false) {
				System.out.println("C " + i);
			}
		} {
			if (C[i] == false) {
				System.out.println("C " + i);
			}
		} if (C[i] == false) {
				System.out.println("C " + i);
			} C[i] == false C[i] C i false {
				System.out.println("C " + i);
			} System.out.println("C " + i) System.out.println System.out System System.out "C " + i "C " i for (int i = 1; i < 14; i++) {
			if (D[i] == false) {
				System.out.println("D " + i);
			}
		} int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
			if (D[i] == false) {
				System.out.println("D " + i);
			}
		} {
			if (D[i] == false) {
				System.out.println("D " + i);
			}
		} if (D[i] == false) {
				System.out.println("D " + i);
			} D[i] == false D[i] D i false {
				System.out.println("D " + i);
			} System.out.println("D " + i) System.out.println System.out System System.out "D " + i "D " i String args[] args
import java.io.*;

class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n_cards = Integer.parseInt(br.readLine());
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for (int i = 0; i < n_cards; i++) {
			String sz_input = br.readLine();
			String[] sz_type = sz_input.split(" ");
			int n_number = Integer.parseInt(sz_type[1]);
			
			switch (sz_type[0]) {
			case "S":
				S[n_number] = true;
				break;
			case "H":
				H[n_number] = true;
				break;
			case "C":
				C[n_number] = true;
				break;
			case "D":
				D[n_number] = true;
				break;
			}
		}
		

		for (int i = 1; i < 14; i++) {
			if (S[i] == false) {
				System.out.println("S " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (H[i] == false) {
				System.out.println("H " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (C[i] == false) {
				System.out.println("C " + i);
			}
		}
		for (int i = 1; i < 14; i++) {
			if (D[i] == false) {
				System.out.println("D " + i);
			}
		}
	}
}