
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int n, w, i, v, card[][], a[][];
		String m;
		card = new int[4][13];
		a = new int[4][];
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();

		for(w = 0; w < 4; w++){
			for(v = 0; v < 13; v++){
				card[w][v] = 0;
			}
		}
		
		for(v = 0; n > v; v++){
			m = sc.next();
			i = sc.nextInt();
			switch(m){
			case "S" : card[0][i - 1] = 1;
						break;
			case "H" : card[1][i - 1] = 1;
						break;
			case "C" : card[2][i - 1] = 1;
						break;
			case "D" : card[3][i - 1] = 1;
						break;
			}
		}
		
		for(w = 0; w < 4; w++){
			for(v = 0; 13 > v; v++){
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		int n, w, i, v, card[][], a[][];
		String m;
		card = new int[4][13];
		a = new int[4][];
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();

		for(w = 0; w < 4; w++){
			for(v = 0; v < 13; v++){
				card[w][v] = 0;
			}
		}
		
		for(v = 0; n > v; v++){
			m = sc.next();
			i = sc.nextInt();
			switch(m){
			case "S" : card[0][i - 1] = 1;
						break;
			case "H" : card[1][i - 1] = 1;
						break;
			case "C" : card[2][i - 1] = 1;
						break;
			case "D" : card[3][i - 1] = 1;
						break;
			}
		}
		
		for(w = 0; w < 4; w++){
			for(v = 0; 13 > v; v++){
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			}
		}
	}
} Main public static void main(String[] args) {
		int n, w, i, v, card[][], a[][];
		String m;
		card = new int[4][13];
		a = new int[4][];
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();

		for(w = 0; w < 4; w++){
			for(v = 0; v < 13; v++){
				card[w][v] = 0;
			}
		}
		
		for(v = 0; n > v; v++){
			m = sc.next();
			i = sc.nextInt();
			switch(m){
			case "S" : card[0][i - 1] = 1;
						break;
			case "H" : card[1][i - 1] = 1;
						break;
			case "C" : card[2][i - 1] = 1;
						break;
			case "D" : card[3][i - 1] = 1;
						break;
			}
		}
		
		for(w = 0; w < 4; w++){
			for(v = 0; 13 > v; v++){
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			}
		}
	} main {
		int n, w, i, v, card[][], a[][];
		String m;
		card = new int[4][13];
		a = new int[4][];
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();

		for(w = 0; w < 4; w++){
			for(v = 0; v < 13; v++){
				card[w][v] = 0;
			}
		}
		
		for(v = 0; n > v; v++){
			m = sc.next();
			i = sc.nextInt();
			switch(m){
			case "S" : card[0][i - 1] = 1;
						break;
			case "H" : card[1][i - 1] = 1;
						break;
			case "C" : card[2][i - 1] = 1;
						break;
			case "D" : card[3][i - 1] = 1;
						break;
			}
		}
		
		for(w = 0; w < 4; w++){
			for(v = 0; 13 > v; v++){
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			}
		}
	} int n n w w i i v v card[][] card a[][]; a String m; m card = new int[4][13] card new int[4][13] 4 13 a = new int[4][] a new int[4][] 4 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc for(w = 0; w < 4; w++){
			for(v = 0; v < 13; v++){
				card[w][v] = 0;
			}
		} w = 0; w = 0 w 0 w < 4 w 4 w++ w++ w {
			for(v = 0; v < 13; v++){
				card[w][v] = 0;
			}
		} {
			for(v = 0; v < 13; v++){
				card[w][v] = 0;
			}
		} for(v = 0; v < 13; v++){
				card[w][v] = 0;
			} v = 0; v = 0 v 0 v < 13 v 13 v++ v++ v {
				card[w][v] = 0;
			} {
				card[w][v] = 0;
			} card[w][v] = 0 card[w][v] card[w] card w v 0 for(v = 0; n > v; v++){
			m = sc.next();
			i = sc.nextInt();
			switch(m){
			case "S" : card[0][i - 1] = 1;
						break;
			case "H" : card[1][i - 1] = 1;
						break;
			case "C" : card[2][i - 1] = 1;
						break;
			case "D" : card[3][i - 1] = 1;
						break;
			}
		} v = 0; v = 0 v 0 n > v n v v++ v++ v {
			m = sc.next();
			i = sc.nextInt();
			switch(m){
			case "S" : card[0][i - 1] = 1;
						break;
			case "H" : card[1][i - 1] = 1;
						break;
			case "C" : card[2][i - 1] = 1;
						break;
			case "D" : card[3][i - 1] = 1;
						break;
			}
		} {
			m = sc.next();
			i = sc.nextInt();
			switch(m){
			case "S" : card[0][i - 1] = 1;
						break;
			case "H" : card[1][i - 1] = 1;
						break;
			case "C" : card[2][i - 1] = 1;
						break;
			case "D" : card[3][i - 1] = 1;
						break;
			}
		} m = sc.next() m sc.next() sc.next sc i = sc.nextInt() i sc.nextInt() sc.nextInt sc switch(m){
			case "S" : card[0][i - 1] = 1;
						break;
			case "H" : card[1][i - 1] = 1;
						break;
			case "C" : card[2][i - 1] = 1;
						break;
			case "D" : card[3][i - 1] = 1;
						break;
			} m case "S" : "S" case "S" : card[0][i - 1] = 1 card[0][i - 1] card[0] card 0 i - 1 i 1 1 break; case "H" : "H" case "H" : card[1][i - 1] = 1 card[1][i - 1] card[1] card 1 i - 1 i 1 1 break; case "C" : "C" case "C" : card[2][i - 1] = 1 card[2][i - 1] card[2] card 2 i - 1 i 1 1 break; case "D" : "D" case "D" : card[3][i - 1] = 1 card[3][i - 1] card[3] card 3 i - 1 i 1 1 break; for(w = 0; w < 4; w++){
			for(v = 0; 13 > v; v++){
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			}
		} w = 0; w = 0 w 0 w < 4 w 4 w++ w++ w {
			for(v = 0; 13 > v; v++){
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			}
		} {
			for(v = 0; 13 > v; v++){
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			}
		} for(v = 0; 13 > v; v++){
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			} v = 0; v = 0 v 0 13 > v 13 v v++ v++ v {
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			} {
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			} if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				} card[w][v] == 0 card[w][v] card[w] card w v 0 {
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				} switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					} w case 0 : 0 case 0 : System.out.println("S " + (v + 1)) System.out.println System.out System System.out "S " + (v + 1) "S " (v + 1) v 1 break; case 1 : 1 case 1 : System.out.println("H " + (v + 1)) System.out.println System.out System System.out "H " + (v + 1) "H " (v + 1) v 1 break; case 2 : 2 case 2 : System.out.println("C " + (v + 1)) System.out.println System.out System System.out "C " + (v + 1) "C " (v + 1) v 1 break; case 3 : 3 case 3 : System.out.println("D " + (v + 1)) System.out.println System.out System System.out "D " + (v + 1) "D " (v + 1) v 1 break; String[] args args public class Main {
	public static void main(String[] args) {
		int n, w, i, v, card[][], a[][];
		String m;
		card = new int[4][13];
		a = new int[4][];
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();

		for(w = 0; w < 4; w++){
			for(v = 0; v < 13; v++){
				card[w][v] = 0;
			}
		}
		
		for(v = 0; n > v; v++){
			m = sc.next();
			i = sc.nextInt();
			switch(m){
			case "S" : card[0][i - 1] = 1;
						break;
			case "H" : card[1][i - 1] = 1;
						break;
			case "C" : card[2][i - 1] = 1;
						break;
			case "D" : card[3][i - 1] = 1;
						break;
			}
		}
		
		for(w = 0; w < 4; w++){
			for(v = 0; 13 > v; v++){
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		int n, w, i, v, card[][], a[][];
		String m;
		card = new int[4][13];
		a = new int[4][];
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();

		for(w = 0; w < 4; w++){
			for(v = 0; v < 13; v++){
				card[w][v] = 0;
			}
		}
		
		for(v = 0; n > v; v++){
			m = sc.next();
			i = sc.nextInt();
			switch(m){
			case "S" : card[0][i - 1] = 1;
						break;
			case "H" : card[1][i - 1] = 1;
						break;
			case "C" : card[2][i - 1] = 1;
						break;
			case "D" : card[3][i - 1] = 1;
						break;
			}
		}
		
		for(w = 0; w < 4; w++){
			for(v = 0; 13 > v; v++){
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			}
		}
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int n, w, i, v, card[][], a[][];
		String m;
		card = new int[4][13];
		a = new int[4][];
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();

		for(w = 0; w < 4; w++){
			for(v = 0; v < 13; v++){
				card[w][v] = 0;
			}
		}
		
		for(v = 0; n > v; v++){
			m = sc.next();
			i = sc.nextInt();
			switch(m){
			case "S" : card[0][i - 1] = 1;
						break;
			case "H" : card[1][i - 1] = 1;
						break;
			case "C" : card[2][i - 1] = 1;
						break;
			case "D" : card[3][i - 1] = 1;
						break;
			}
		}
		
		for(w = 0; w < 4; w++){
			for(v = 0; 13 > v; v++){
				if(card[w][v] == 0){
					switch(w){
					case 0 : System.out.println("S " + (v + 1));
								break;
					case 1 : System.out.println("H " + (v + 1));
								break;
					case 2 : System.out.println("C " + (v + 1));
								break;
					case 3 : System.out.println("D " + (v + 1));
								break;
					}
				}
			}
		}
	}
}