import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		int[][] c = new int[4][13];
		for( int i = 0 ; i < num ; i++ ) {
			String[] card = br.readLine().split(" ");
			int j = Integer.parseInt(card[1]);
			switch(card[0]) {
				case "S":
				c[0][j-1] = 1;
				break;
				case "H":
				c[1][j-1] = 1;
				break;
				case "C":
				c[2][j-1] = 1;
				break;
				case "D":
				c[3][j-1] = 1;
				break;
				default:
				/* do nothing */
			}
		}
		String[] color = { "S ", "H ", "C ", "D "};
		for( int i = 0 ; i < 4 ; i++ ) {
			String s = color[i];
			for( int j = 0 ; j < 13 ; j++ ) {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			}
		}
	}
} import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		int[][] c = new int[4][13];
		for( int i = 0 ; i < num ; i++ ) {
			String[] card = br.readLine().split(" ");
			int j = Integer.parseInt(card[1]);
			switch(card[0]) {
				case "S":
				c[0][j-1] = 1;
				break;
				case "H":
				c[1][j-1] = 1;
				break;
				case "C":
				c[2][j-1] = 1;
				break;
				case "D":
				c[3][j-1] = 1;
				break;
				default:
				/* do nothing */
			}
		}
		String[] color = { "S ", "H ", "C ", "D "};
		for( int i = 0 ; i < 4 ; i++ ) {
			String s = color[i];
			for( int j = 0 ; j < 13 ; j++ ) {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			}
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		int[][] c = new int[4][13];
		for( int i = 0 ; i < num ; i++ ) {
			String[] card = br.readLine().split(" ");
			int j = Integer.parseInt(card[1]);
			switch(card[0]) {
				case "S":
				c[0][j-1] = 1;
				break;
				case "H":
				c[1][j-1] = 1;
				break;
				case "C":
				c[2][j-1] = 1;
				break;
				case "D":
				c[3][j-1] = 1;
				break;
				default:
				/* do nothing */
			}
		}
		String[] color = { "S ", "H ", "C ", "D "};
		for( int i = 0 ; i < 4 ; i++ ) {
			String s = color[i];
			for( int j = 0 ; j < 13 ; j++ ) {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			}
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		int[][] c = new int[4][13];
		for( int i = 0 ; i < num ; i++ ) {
			String[] card = br.readLine().split(" ");
			int j = Integer.parseInt(card[1]);
			switch(card[0]) {
				case "S":
				c[0][j-1] = 1;
				break;
				case "H":
				c[1][j-1] = 1;
				break;
				case "C":
				c[2][j-1] = 1;
				break;
				case "D":
				c[3][j-1] = 1;
				break;
				default:
				/* do nothing */
			}
		}
		String[] color = { "S ", "H ", "C ", "D "};
		for( int i = 0 ; i < 4 ; i++ ) {
			String s = color[i];
			for( int j = 0 ; j < 13 ; j++ ) {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			}
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int num = Integer.parseInt(br.readLine()); num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int[][] c = new int[4][13]; c new int[4][13] 4 13 for( int i = 0 ; i < num ; i++ ) {
			String[] card = br.readLine().split(" ");
			int j = Integer.parseInt(card[1]);
			switch(card[0]) {
				case "S":
				c[0][j-1] = 1;
				break;
				case "H":
				c[1][j-1] = 1;
				break;
				case "C":
				c[2][j-1] = 1;
				break;
				case "D":
				c[3][j-1] = 1;
				break;
				default:
				/* do nothing */
			}
		} int i = 0 ; int i = 0 ; i 0 i < num i num i++ i++ i {
			String[] card = br.readLine().split(" ");
			int j = Integer.parseInt(card[1]);
			switch(card[0]) {
				case "S":
				c[0][j-1] = 1;
				break;
				case "H":
				c[1][j-1] = 1;
				break;
				case "C":
				c[2][j-1] = 1;
				break;
				case "D":
				c[3][j-1] = 1;
				break;
				default:
				/* do nothing */
			}
		} {
			String[] card = br.readLine().split(" ");
			int j = Integer.parseInt(card[1]);
			switch(card[0]) {
				case "S":
				c[0][j-1] = 1;
				break;
				case "H":
				c[1][j-1] = 1;
				break;
				case "C":
				c[2][j-1] = 1;
				break;
				case "D":
				c[3][j-1] = 1;
				break;
				default:
				/* do nothing */
			}
		} String[] card = br.readLine().split(" "); card br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int j = Integer.parseInt(card[1]); j Integer.parseInt(card[1]) Integer.parseInt Integer card[1] card 1 switch(card[0]) {
				case "S":
				c[0][j-1] = 1;
				break;
				case "H":
				c[1][j-1] = 1;
				break;
				case "C":
				c[2][j-1] = 1;
				break;
				case "D":
				c[3][j-1] = 1;
				break;
				default:
				/* do nothing */
			} card[0] card 0 case "S": "S" case "S": c[0][j-1] = 1 c[0][j-1] c[0] c 0 j-1 j 1 1 break; case "H": "H" case "H": c[1][j-1] = 1 c[1][j-1] c[1] c 1 j-1 j 1 1 break; case "C": "C" case "C": c[2][j-1] = 1 c[2][j-1] c[2] c 2 j-1 j 1 1 break; case "D": "D" case "D": c[3][j-1] = 1 c[3][j-1] c[3] c 3 j-1 j 1 1 break; default: default: String[] color = { "S ", "H ", "C ", "D "}; color { "S ", "H ", "C ", "D "} "S " "H " "C " "D " for( int i = 0 ; i < 4 ; i++ ) {
			String s = color[i];
			for( int j = 0 ; j < 13 ; j++ ) {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			}
		} int i = 0 ; int i = 0 ; i 0 i < 4 i 4 i++ i++ i {
			String s = color[i];
			for( int j = 0 ; j < 13 ; j++ ) {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			}
		} {
			String s = color[i];
			for( int j = 0 ; j < 13 ; j++ ) {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			}
		} String s = color[i]; s color[i] color i for( int j = 0 ; j < 13 ; j++ ) {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			} int j = 0 ; int j = 0 ; j 0 j < 13 j 13 j++ j++ j {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			} {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			} if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				} c[i][j] == 0 c[i][j] c[i] c i j 0 {
					System.out.println( s + (j+1) );
				} System.out.println( s + (j+1) ) System.out.println System.out System System.out s + (j+1) s (j+1) j 1 String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		int[][] c = new int[4][13];
		for( int i = 0 ; i < num ; i++ ) {
			String[] card = br.readLine().split(" ");
			int j = Integer.parseInt(card[1]);
			switch(card[0]) {
				case "S":
				c[0][j-1] = 1;
				break;
				case "H":
				c[1][j-1] = 1;
				break;
				case "C":
				c[2][j-1] = 1;
				break;
				case "D":
				c[3][j-1] = 1;
				break;
				default:
				/* do nothing */
			}
		}
		String[] color = { "S ", "H ", "C ", "D "};
		for( int i = 0 ; i < 4 ; i++ ) {
			String s = color[i];
			for( int j = 0 ; j < 13 ; j++ ) {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			}
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		int[][] c = new int[4][13];
		for( int i = 0 ; i < num ; i++ ) {
			String[] card = br.readLine().split(" ");
			int j = Integer.parseInt(card[1]);
			switch(card[0]) {
				case "S":
				c[0][j-1] = 1;
				break;
				case "H":
				c[1][j-1] = 1;
				break;
				case "C":
				c[2][j-1] = 1;
				break;
				case "D":
				c[3][j-1] = 1;
				break;
				default:
				/* do nothing */
			}
		}
		String[] color = { "S ", "H ", "C ", "D "};
		for( int i = 0 ; i < 4 ; i++ ) {
			String s = color[i];
			for( int j = 0 ; j < 13 ; j++ ) {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			}
		}
	}
} Main
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		int[][] c = new int[4][13];
		for( int i = 0 ; i < num ; i++ ) {
			String[] card = br.readLine().split(" ");
			int j = Integer.parseInt(card[1]);
			switch(card[0]) {
				case "S":
				c[0][j-1] = 1;
				break;
				case "H":
				c[1][j-1] = 1;
				break;
				case "C":
				c[2][j-1] = 1;
				break;
				case "D":
				c[3][j-1] = 1;
				break;
				default:
				/* do nothing */
			}
		}
		String[] color = { "S ", "H ", "C ", "D "};
		for( int i = 0 ; i < 4 ; i++ ) {
			String s = color[i];
			for( int j = 0 ; j < 13 ; j++ ) {
				if ( c[i][j] == 0 ) {
					System.out.println( s + (j+1) );
				}
			}
		}
	}
}