import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		int n;
		String[] token;
		int rank;
		boolean[] S = new boolean[13]; 
		boolean[] H = new boolean[13]; 
		boolean[] C = new boolean[13]; 
		boolean[] D = new boolean[13];
		
		for (int i = 0; i < 13; i++) {
			S[i] = H[i] = C[i] = D[i] = false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for (int i = 0; i < n; i++) {
			token = br.readLine().split(" ");
			rank = Integer.parseInt(token[1]);
			if (token[0].equals("S")) {
				S[rank - 1] = true;
			} else if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			}
		}
		
		for (int i = 0; i < 13; i++) {
			if (!S[i]) System.out.println("S " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!H[i]) System.out.println("H " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!C[i]) System.out.println("C " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!D[i]) System.out.println("D " + (i + 1));
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		int n;
		String[] token;
		int rank;
		boolean[] S = new boolean[13]; 
		boolean[] H = new boolean[13]; 
		boolean[] C = new boolean[13]; 
		boolean[] D = new boolean[13];
		
		for (int i = 0; i < 13; i++) {
			S[i] = H[i] = C[i] = D[i] = false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for (int i = 0; i < n; i++) {
			token = br.readLine().split(" ");
			rank = Integer.parseInt(token[1]);
			if (token[0].equals("S")) {
				S[rank - 1] = true;
			} else if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			}
		}
		
		for (int i = 0; i < 13; i++) {
			if (!S[i]) System.out.println("S " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!H[i]) System.out.println("H " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!C[i]) System.out.println("C " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!D[i]) System.out.println("D " + (i + 1));
		}
	}
} Main public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		int n;
		String[] token;
		int rank;
		boolean[] S = new boolean[13]; 
		boolean[] H = new boolean[13]; 
		boolean[] C = new boolean[13]; 
		boolean[] D = new boolean[13];
		
		for (int i = 0; i < 13; i++) {
			S[i] = H[i] = C[i] = D[i] = false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for (int i = 0; i < n; i++) {
			token = br.readLine().split(" ");
			rank = Integer.parseInt(token[1]);
			if (token[0].equals("S")) {
				S[rank - 1] = true;
			} else if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			}
		}
		
		for (int i = 0; i < 13; i++) {
			if (!S[i]) System.out.println("S " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!H[i]) System.out.println("H " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!C[i]) System.out.println("C " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!D[i]) System.out.println("D " + (i + 1));
		}
	} main {
		// TODO Auto-generated method stub
		int n;
		String[] token;
		int rank;
		boolean[] S = new boolean[13]; 
		boolean[] H = new boolean[13]; 
		boolean[] C = new boolean[13]; 
		boolean[] D = new boolean[13];
		
		for (int i = 0; i < 13; i++) {
			S[i] = H[i] = C[i] = D[i] = false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for (int i = 0; i < n; i++) {
			token = br.readLine().split(" ");
			rank = Integer.parseInt(token[1]);
			if (token[0].equals("S")) {
				S[rank - 1] = true;
			} else if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			}
		}
		
		for (int i = 0; i < 13; i++) {
			if (!S[i]) System.out.println("S " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!H[i]) System.out.println("H " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!C[i]) System.out.println("C " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!D[i]) System.out.println("D " + (i + 1));
		}
	} int n; n String[] token; token int rank; rank 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 for (int i = 0; i < 13; i++) {
			S[i] = H[i] = C[i] = D[i] = false;
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			S[i] = H[i] = C[i] = D[i] = false;
		} {
			S[i] = H[i] = C[i] = D[i] = false;
		} S[i] = H[i] = C[i] = D[i] = false S[i] S i H[i] = C[i] = D[i] = false H[i] H i C[i] = D[i] = false C[i] C i D[i] = false D[i] D i false BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) n = Integer.parseInt(br.readLine()) n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i = 0; i < n; i++) {
			token = br.readLine().split(" ");
			rank = Integer.parseInt(token[1]);
			if (token[0].equals("S")) {
				S[rank - 1] = true;
			} else if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			token = br.readLine().split(" ");
			rank = Integer.parseInt(token[1]);
			if (token[0].equals("S")) {
				S[rank - 1] = true;
			} else if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			}
		} {
			token = br.readLine().split(" ");
			rank = Integer.parseInt(token[1]);
			if (token[0].equals("S")) {
				S[rank - 1] = true;
			} else if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			}
		} token = br.readLine().split(" ") token br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " rank = Integer.parseInt(token[1]) rank Integer.parseInt(token[1]) Integer.parseInt Integer token[1] token 1 if (token[0].equals("S")) {
				S[rank - 1] = true;
			} else if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			} token[0].equals("S") token[0].equals token[0] token 0 "S" {
				S[rank - 1] = true;
			} S[rank - 1] = true S[rank - 1] S rank - 1 rank 1 true if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			} token[0].equals("H") token[0].equals token[0] token 0 "H" {
				H[rank - 1] = true;
			} H[rank - 1] = true H[rank - 1] H rank - 1 rank 1 true if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			} token[0].equals("C") token[0].equals token[0] token 0 "C" {
				C[rank - 1] = true;
			} C[rank - 1] = true C[rank - 1] C rank - 1 rank 1 true if (token[0].equals("D")) {
				D[rank - 1] = true;
			} token[0].equals("D") token[0].equals token[0] token 0 "D" {
				D[rank - 1] = true;
			} D[rank - 1] = true D[rank - 1] D rank - 1 rank 1 true for (int i = 0; i < 13; i++) {
			if (!S[i]) System.out.println("S " + (i + 1));
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if (!S[i]) System.out.println("S " + (i + 1));
		} {
			if (!S[i]) System.out.println("S " + (i + 1));
		} if (!S[i]) System.out.println("S " + (i + 1)); !S[i] S[i] S i 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]) System.out.println("H " + (i + 1));
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if (!H[i]) System.out.println("H " + (i + 1));
		} {
			if (!H[i]) System.out.println("H " + (i + 1));
		} if (!H[i]) System.out.println("H " + (i + 1)); !H[i] H[i] H i 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]) System.out.println("C " + (i + 1));
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if (!C[i]) System.out.println("C " + (i + 1));
		} {
			if (!C[i]) System.out.println("C " + (i + 1));
		} if (!C[i]) System.out.println("C " + (i + 1)); !C[i] C[i] C i 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]) System.out.println("D " + (i + 1));
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if (!D[i]) System.out.println("D " + (i + 1));
		} {
			if (!D[i]) System.out.println("D " + (i + 1));
		} if (!D[i]) System.out.println("D " + (i + 1)); !D[i] D[i] D i 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 public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		int n;
		String[] token;
		int rank;
		boolean[] S = new boolean[13]; 
		boolean[] H = new boolean[13]; 
		boolean[] C = new boolean[13]; 
		boolean[] D = new boolean[13];
		
		for (int i = 0; i < 13; i++) {
			S[i] = H[i] = C[i] = D[i] = false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for (int i = 0; i < n; i++) {
			token = br.readLine().split(" ");
			rank = Integer.parseInt(token[1]);
			if (token[0].equals("S")) {
				S[rank - 1] = true;
			} else if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			}
		}
		
		for (int i = 0; i < 13; i++) {
			if (!S[i]) System.out.println("S " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!H[i]) System.out.println("H " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!C[i]) System.out.println("C " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!D[i]) System.out.println("D " + (i + 1));
		}
	}
} public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		int n;
		String[] token;
		int rank;
		boolean[] S = new boolean[13]; 
		boolean[] H = new boolean[13]; 
		boolean[] C = new boolean[13]; 
		boolean[] D = new boolean[13];
		
		for (int i = 0; i < 13; i++) {
			S[i] = H[i] = C[i] = D[i] = false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for (int i = 0; i < n; i++) {
			token = br.readLine().split(" ");
			rank = Integer.parseInt(token[1]);
			if (token[0].equals("S")) {
				S[rank - 1] = true;
			} else if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			}
		}
		
		for (int i = 0; i < 13; i++) {
			if (!S[i]) System.out.println("S " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!H[i]) System.out.println("H " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!C[i]) System.out.println("C " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!D[i]) System.out.println("D " + (i + 1));
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		int n;
		String[] token;
		int rank;
		boolean[] S = new boolean[13]; 
		boolean[] H = new boolean[13]; 
		boolean[] C = new boolean[13]; 
		boolean[] D = new boolean[13];
		
		for (int i = 0; i < 13; i++) {
			S[i] = H[i] = C[i] = D[i] = false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for (int i = 0; i < n; i++) {
			token = br.readLine().split(" ");
			rank = Integer.parseInt(token[1]);
			if (token[0].equals("S")) {
				S[rank - 1] = true;
			} else if (token[0].equals("H")) {
				H[rank - 1] = true;
			} else if (token[0].equals("C")) {
				C[rank - 1] = true;
			} else if (token[0].equals("D")) {
				D[rank - 1] = true;
			}
		}
		
		for (int i = 0; i < 13; i++) {
			if (!S[i]) System.out.println("S " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!H[i]) System.out.println("H " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!C[i]) System.out.println("C " + (i + 1));
		}
		for (int i = 0; i < 13; i++) {
			if (!D[i]) System.out.println("D " + (i + 1));
		}
	}
}