import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] card = new int[4][13];
		String mark;
		int num;
		int i;

		//入力されたカード
		for (i = 0; i < n; i++) {
			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;
			}
		}

		//ないカード
		for (num = 0; num <= 3; num++) {
			for (i = 0; i <= 12; i++) {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			}
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] card = new int[4][13];
		String mark;
		int num;
		int i;

		//入力されたカード
		for (i = 0; i < n; i++) {
			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;
			}
		}

		//ないカード
		for (num = 0; num <= 3; num++) {
			for (i = 0; i <= 12; i++) {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			}
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] card = new int[4][13];
		String mark;
		int num;
		int i;

		//入力されたカード
		for (i = 0; i < n; i++) {
			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;
			}
		}

		//ないカード
		for (num = 0; num <= 3; num++) {
			for (i = 0; i <= 12; i++) {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] card = new int[4][13];
		String mark;
		int num;
		int i;

		//入力されたカード
		for (i = 0; i < n; i++) {
			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;
			}
		}

		//ないカード
		for (num = 0; num <= 3; num++) {
			for (i = 0; i <= 12; i++) {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n 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 i; i for (i = 0; i < n; i++) {
			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;
			}
		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			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; for (num = 0; num <= 3; num++) {
			for (i = 0; i <= 12; i++) {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			}
		} num = 0; num = 0 num 0 num <= 3 num 3 num++ num++ num {
			for (i = 0; i <= 12; i++) {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			}
		} {
			for (i = 0; i <= 12; i++) {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			}
		} for (i = 0; i <= 12; i++) {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			} i = 0; i = 0 i 0 i <= 12 i 12 i++ i++ i {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			} {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			} if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				} card[num][i] == 0 card[num][i] card[num] card num i 0 {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				} switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					} num case 0: 0 case 0: System.out.println("S " + (i+1)) System.out.println System.out System System.out "S " + (i+1) "S " (i+1) i 1 break; case 1: 1 case 1: System.out.println("H " + (i+1)) System.out.println System.out System System.out "H " + (i+1) "H " (i+1) i 1 break; case 2: 2 case 2: System.out.println("C " + (i+1)) System.out.println System.out System System.out "C " + (i+1) "C " (i+1) i 1 break; case 3: 3 case 3: System.out.println("D " + (i+1)) System.out.println System.out System System.out "D " + (i+1) "D " (i+1) i 1 break; String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] card = new int[4][13];
		String mark;
		int num;
		int i;

		//入力されたカード
		for (i = 0; i < n; i++) {
			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;
			}
		}

		//ないカード
		for (num = 0; num <= 3; num++) {
			for (i = 0; i <= 12; i++) {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] card = new int[4][13];
		String mark;
		int num;
		int i;

		//入力されたカード
		for (i = 0; i < n; i++) {
			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;
			}
		}

		//ないカード
		for (num = 0; num <= 3; num++) {
			for (i = 0; i <= 12; i++) {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			}
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] card = new int[4][13];
		String mark;
		int num;
		int i;

		//入力されたカード
		for (i = 0; i < n; i++) {
			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;
			}
		}

		//ないカード
		for (num = 0; num <= 3; num++) {
			for (i = 0; i <= 12; i++) {
				if (card[num][i] == 0) {
					switch (num) {
					case 0:
						System.out.println("S " + (i+1));
						break;
					case 1:
						System.out.println("H " + (i+1));
						break;
					case 2:
						System.out.println("C " + (i+1));
						break;
					case 3:
						System.out.println("D " + (i+1));
						break;
					}
				}
			}
		}
	}

}
