import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// ?????????????????\????????????
		Scanner sc = new Scanner(System.in);

		// ??\?????°????????????????????°
		int input = sc.nextInt();

		// ???????????????
		int[][] card = new int[4][13];

		// ?????°????????????????????????????????°????????????
		String mark;
		int num;

		// ?????????????????°?????????
		int cnt;

		// ??????????????????????????????
		for (cnt = 0; cnt < input; cnt++) {

			mark = sc.next();
			num = sc.nextInt();

			switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			}

		}

		// ?????????????´¢??????????????????????????°?????????
		int left, right;

		// ???????????????????????\????????????
		for (left = 0; left <= 3; left++) {

			for (right = 0; right <= 12; right++) {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			}

		}
		sc.close();
	}

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

	public static void main(String[] args) {

		// ?????????????????\????????????
		Scanner sc = new Scanner(System.in);

		// ??\?????°????????????????????°
		int input = sc.nextInt();

		// ???????????????
		int[][] card = new int[4][13];

		// ?????°????????????????????????????????°????????????
		String mark;
		int num;

		// ?????????????????°?????????
		int cnt;

		// ??????????????????????????????
		for (cnt = 0; cnt < input; cnt++) {

			mark = sc.next();
			num = sc.nextInt();

			switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			}

		}

		// ?????????????´¢??????????????????????????°?????????
		int left, right;

		// ???????????????????????\????????????
		for (left = 0; left <= 3; left++) {

			for (right = 0; right <= 12; right++) {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			}

		}
		sc.close();
	}

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

		// ?????????????????\????????????
		Scanner sc = new Scanner(System.in);

		// ??\?????°????????????????????°
		int input = sc.nextInt();

		// ???????????????
		int[][] card = new int[4][13];

		// ?????°????????????????????????????????°????????????
		String mark;
		int num;

		// ?????????????????°?????????
		int cnt;

		// ??????????????????????????????
		for (cnt = 0; cnt < input; cnt++) {

			mark = sc.next();
			num = sc.nextInt();

			switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			}

		}

		// ?????????????´¢??????????????????????????°?????????
		int left, right;

		// ???????????????????????\????????????
		for (left = 0; left <= 3; left++) {

			for (right = 0; right <= 12; right++) {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			}

		}
		sc.close();
	} main {

		// ?????????????????\????????????
		Scanner sc = new Scanner(System.in);

		// ??\?????°????????????????????°
		int input = sc.nextInt();

		// ???????????????
		int[][] card = new int[4][13];

		// ?????°????????????????????????????????°????????????
		String mark;
		int num;

		// ?????????????????°?????????
		int cnt;

		// ??????????????????????????????
		for (cnt = 0; cnt < input; cnt++) {

			mark = sc.next();
			num = sc.nextInt();

			switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			}

		}

		// ?????????????´¢??????????????????????????°?????????
		int left, right;

		// ???????????????????????\????????????
		for (left = 0; left <= 3; left++) {

			for (right = 0; right <= 12; right++) {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			}

		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int input = sc.nextInt(); input sc.nextInt() sc.nextInt sc int[][] card = new int[4][13]; card new int[4][13] 4 13 String mark; mark int num; num int cnt; cnt for (cnt = 0; cnt < input; cnt++) {

			mark = sc.next();
			num = sc.nextInt();

			switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			}

		} cnt = 0; cnt = 0 cnt 0 cnt < input cnt input cnt++ cnt++ cnt {

			mark = sc.next();
			num = sc.nextInt();

			switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			}

		} {

			mark = sc.next();
			num = sc.nextInt();

			switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			}

		} mark = sc.next() mark sc.next() sc.next sc num = sc.nextInt() num sc.nextInt() sc.nextInt sc switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			} mark case "S": "S" case "S": card[0][num - 1] = 1 card[0][num - 1] card[0] card 0 num - 1 num 1 1 break; case "H": "H" case "H": card[1][num - 1] = 1 card[1][num - 1] card[1] card 1 num - 1 num 1 1 break; case "C": "C" case "C": card[2][num - 1] = 1 card[2][num - 1] card[2] card 2 num - 1 num 1 1 break; case "D": "D" case "D": card[3][num - 1] = 1 card[3][num - 1] card[3] card 3 num - 1 num 1 1 break; int left left right; right for (left = 0; left <= 3; left++) {

			for (right = 0; right <= 12; right++) {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			}

		} left = 0; left = 0 left 0 left <= 3 left 3 left++ left++ left {

			for (right = 0; right <= 12; right++) {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			}

		} {

			for (right = 0; right <= 12; right++) {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			}

		} for (right = 0; right <= 12; right++) {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			} right = 0; right = 0 right 0 right <= 12 right 12 right++ right++ right {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			} {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			} if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				} card[left][right] == 0 card[left][right] card[left] card left right 0 {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				} switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					} left case 0: 0 case 0: System.out.println("S " + (right+1)) System.out.println System.out System System.out "S " + (right+1) "S " (right+1) right 1 break; case 1: 1 case 1: System.out.println("H " + (right+1)) System.out.println System.out System System.out "H " + (right+1) "H " (right+1) right 1 break; case 2: 2 case 2: System.out.println("C " + (right+1)) System.out.println System.out System System.out "C " + (right+1) "C " (right+1) right 1 break; case 3: 3 case 3: System.out.println("D " + (right+1)) System.out.println System.out System System.out "D " + (right+1) "D " (right+1) right 1 break; sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		// ?????????????????\????????????
		Scanner sc = new Scanner(System.in);

		// ??\?????°????????????????????°
		int input = sc.nextInt();

		// ???????????????
		int[][] card = new int[4][13];

		// ?????°????????????????????????????????°????????????
		String mark;
		int num;

		// ?????????????????°?????????
		int cnt;

		// ??????????????????????????????
		for (cnt = 0; cnt < input; cnt++) {

			mark = sc.next();
			num = sc.nextInt();

			switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			}

		}

		// ?????????????´¢??????????????????????????°?????????
		int left, right;

		// ???????????????????????\????????????
		for (left = 0; left <= 3; left++) {

			for (right = 0; right <= 12; right++) {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			}

		}
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {

		// ?????????????????\????????????
		Scanner sc = new Scanner(System.in);

		// ??\?????°????????????????????°
		int input = sc.nextInt();

		// ???????????????
		int[][] card = new int[4][13];

		// ?????°????????????????????????????????°????????????
		String mark;
		int num;

		// ?????????????????°?????????
		int cnt;

		// ??????????????????????????????
		for (cnt = 0; cnt < input; cnt++) {

			mark = sc.next();
			num = sc.nextInt();

			switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			}

		}

		// ?????????????´¢??????????????????????????°?????????
		int left, right;

		// ???????????????????????\????????????
		for (left = 0; left <= 3; left++) {

			for (right = 0; right <= 12; right++) {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			}

		}
		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// ?????????????????\????????????
		Scanner sc = new Scanner(System.in);

		// ??\?????°????????????????????°
		int input = sc.nextInt();

		// ???????????????
		int[][] card = new int[4][13];

		// ?????°????????????????????????????????°????????????
		String mark;
		int num;

		// ?????????????????°?????????
		int cnt;

		// ??????????????????????????????
		for (cnt = 0; cnt < input; cnt++) {

			mark = sc.next();
			num = sc.nextInt();

			switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			}

		}

		// ?????????????´¢??????????????????????????°?????????
		int left, right;

		// ???????????????????????\????????????
		for (left = 0; left <= 3; left++) {

			for (right = 0; right <= 12; right++) {

				if (card[left][right] == 0) {

					switch (left) {

					case 0:
						System.out.println("S " + (right+1));
						break;

					case 1:
						System.out.println("H " + (right+1));
						break;

					case 2:
						System.out.println("C " + (right+1));
						break;

					case 3:
						System.out.println("D " + (right+1));
						break;
					}

				}

			}

		}
		sc.close();
	}

}