import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		boolean[][] card_52;
		card_52 = new boolean[4][13];

		for (int i = 0; i < n; i++) {
			String SHCD = scan.next();
			int num1_13 = scan.nextInt();

			if (SHCD.equals("S")) {
				card_52[0][num1_13 - 1] = true;

			} else if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			}

		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			}

		}

	}

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

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		boolean[][] card_52;
		card_52 = new boolean[4][13];

		for (int i = 0; i < n; i++) {
			String SHCD = scan.next();
			int num1_13 = scan.nextInt();

			if (SHCD.equals("S")) {
				card_52[0][num1_13 - 1] = true;

			} else if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			}

		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			}

		}

	}

} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		boolean[][] card_52;
		card_52 = new boolean[4][13];

		for (int i = 0; i < n; i++) {
			String SHCD = scan.next();
			int num1_13 = scan.nextInt();

			if (SHCD.equals("S")) {
				card_52[0][num1_13 - 1] = true;

			} else if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			}

		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			}

		}

	} main {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		boolean[][] card_52;
		card_52 = new boolean[4][13];

		for (int i = 0; i < n; i++) {
			String SHCD = scan.next();
			int num1_13 = scan.nextInt();

			if (SHCD.equals("S")) {
				card_52[0][num1_13 - 1] = true;

			} else if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			}

		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			}

		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan boolean[][] card_52; card_52 card_52 = new boolean[4][13] card_52 new boolean[4][13] 4 13 for (int i = 0; i < n; i++) {
			String SHCD = scan.next();
			int num1_13 = scan.nextInt();

			if (SHCD.equals("S")) {
				card_52[0][num1_13 - 1] = true;

			} else if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			}

		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String SHCD = scan.next();
			int num1_13 = scan.nextInt();

			if (SHCD.equals("S")) {
				card_52[0][num1_13 - 1] = true;

			} else if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			}

		} {
			String SHCD = scan.next();
			int num1_13 = scan.nextInt();

			if (SHCD.equals("S")) {
				card_52[0][num1_13 - 1] = true;

			} else if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			}

		} String SHCD = scan.next(); SHCD scan.next() scan.next scan int num1_13 = scan.nextInt(); num1_13 scan.nextInt() scan.nextInt scan if (SHCD.equals("S")) {
				card_52[0][num1_13 - 1] = true;

			} else if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			} SHCD.equals("S") SHCD.equals SHCD "S" {
				card_52[0][num1_13 - 1] = true;

			} card_52[0][num1_13 - 1] = true card_52[0][num1_13 - 1] card_52[0] card_52 0 num1_13 - 1 num1_13 1 true if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			} SHCD.equals("H") SHCD.equals SHCD "H" {
				card_52[1][num1_13 - 1] = true;

			} card_52[1][num1_13 - 1] = true card_52[1][num1_13 - 1] card_52[1] card_52 1 num1_13 - 1 num1_13 1 true if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			} SHCD.equals("C") SHCD.equals SHCD "C" {
				card_52[2][num1_13 - 1] = true;

			} card_52[2][num1_13 - 1] = true card_52[2][num1_13 - 1] card_52[2] card_52 2 num1_13 - 1 num1_13 1 true if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			} SHCD.equals("D") SHCD.equals SHCD "D" {
				card_52[3][num1_13 - 1] = true;

			} card_52[3][num1_13 - 1] = true card_52[3][num1_13 - 1] card_52[3] card_52 3 num1_13 - 1 num1_13 1 true for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			}

		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			for (int j = 0; j < 13; j++) {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			}

		} {
			for (int j = 0; j < 13; j++) {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			}

		} for (int j = 0; j < 13; j++) {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			} {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			} if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				} i == 0 i 0 {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				} if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					} card_52[0][j] == false card_52[0][j] card_52[0] card_52 0 j false {
						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) "S" " " (j + 1) j 1 if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				} i == 1 i 1 {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				} if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					} card_52[1][j] == false card_52[1][j] card_52[1] card_52 1 j false {
						System.out.println("H" + " " + (j + 1));
					} System.out.println("H" + " " + (j + 1)) System.out.println System.out System System.out "H" + " " + (j + 1) "H" + " " + (j + 1) "H" " " (j + 1) j 1 if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				} i == 2 i 2 {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				} if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					} card_52[2][j] == false card_52[2][j] card_52[2] card_52 2 j false {
						System.out.println("C" + " " + (j + 1));
					} System.out.println("C" + " " + (j + 1)) System.out.println System.out System System.out "C" + " " + (j + 1) "C" + " " + (j + 1) "C" " " (j + 1) j 1 if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				} i == 3 i 3 {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				} if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					} card_52[3][j] == false card_52[3][j] card_52[3] card_52 3 j false {
						System.out.println("D" + " " + (j + 1));
					} System.out.println("D" + " " + (j + 1)) System.out.println System.out System System.out "D" + " " + (j + 1) "D" + " " + (j + 1) "D" " " (j + 1) j 1 String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		boolean[][] card_52;
		card_52 = new boolean[4][13];

		for (int i = 0; i < n; i++) {
			String SHCD = scan.next();
			int num1_13 = scan.nextInt();

			if (SHCD.equals("S")) {
				card_52[0][num1_13 - 1] = true;

			} else if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			}

		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			}

		}

	}

} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		boolean[][] card_52;
		card_52 = new boolean[4][13];

		for (int i = 0; i < n; i++) {
			String SHCD = scan.next();
			int num1_13 = scan.nextInt();

			if (SHCD.equals("S")) {
				card_52[0][num1_13 - 1] = true;

			} else if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			}

		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			}

		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		boolean[][] card_52;
		card_52 = new boolean[4][13];

		for (int i = 0; i < n; i++) {
			String SHCD = scan.next();
			int num1_13 = scan.nextInt();

			if (SHCD.equals("S")) {
				card_52[0][num1_13 - 1] = true;

			} else if (SHCD.equals("H")) {
				card_52[1][num1_13 - 1] = true;

			} else if (SHCD.equals("C")) {
				card_52[2][num1_13 - 1] = true;

			} else if (SHCD.equals("D")) {
				card_52[3][num1_13 - 1] = true;

			}

		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0) {
					if (card_52[0][j] == false) {
						System.out.println("S" + " " + (j + 1));
					}

				}
				if (i == 1) {
					if (card_52[1][j] == false) {
						System.out.println("H" + " " + (j + 1));
					}

				}
				if (i == 2) {
					if (card_52[2][j] == false) {
						System.out.println("C" + " " + (j + 1));
					}

				}
				if (i == 3) {
					if (card_52[3][j] == false) {
						System.out.println("D" + " " + (j + 1));
					}

				}

			}

		}

	}

}