import java.util.Scanner;


public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] deck = new boolean[4][];
		String sootS[] = {"S", "H", "C", "D"};
		for (int i = 0; i < 4; i++) {
			deck[i] = new boolean[13];
		}
		for (int i = 0; i < n; i++) {
			String soot = scan.next();
			int rank = scan.nextInt();
			deck[sootNumber(soot)][rank - 1] = true;
		}
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			}
		}
	}
	int sootNumber(String soot) {
		if (soot.equals("S")) {
			return 0;
		} else if (soot.equals("H")) {
			return 1;
		} else if (soot.equals("C")) {
			return 2;
		} else if (soot.equals("D")) {
			return 3;
		} else {
			return -1;
		}
	}
	public static void main(String[] args) {
		new Main().run();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] deck = new boolean[4][];
		String sootS[] = {"S", "H", "C", "D"};
		for (int i = 0; i < 4; i++) {
			deck[i] = new boolean[13];
		}
		for (int i = 0; i < n; i++) {
			String soot = scan.next();
			int rank = scan.nextInt();
			deck[sootNumber(soot)][rank - 1] = true;
		}
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			}
		}
	}
	int sootNumber(String soot) {
		if (soot.equals("S")) {
			return 0;
		} else if (soot.equals("H")) {
			return 1;
		} else if (soot.equals("C")) {
			return 2;
		} else if (soot.equals("D")) {
			return 3;
		} else {
			return -1;
		}
	}
	public static void main(String[] args) {
		new Main().run();
	}
} Main void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] deck = new boolean[4][];
		String sootS[] = {"S", "H", "C", "D"};
		for (int i = 0; i < 4; i++) {
			deck[i] = new boolean[13];
		}
		for (int i = 0; i < n; i++) {
			String soot = scan.next();
			int rank = scan.nextInt();
			deck[sootNumber(soot)][rank - 1] = true;
		}
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			}
		}
	} run {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] deck = new boolean[4][];
		String sootS[] = {"S", "H", "C", "D"};
		for (int i = 0; i < 4; i++) {
			deck[i] = new boolean[13];
		}
		for (int i = 0; i < n; i++) {
			String soot = scan.next();
			int rank = scan.nextInt();
			deck[sootNumber(soot)][rank - 1] = true;
		}
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan boolean[][] deck = new boolean[4][]; deck new boolean[4][] 4 String sootS[] = {"S", "H", "C", "D"}; sootS {"S", "H", "C", "D"} "S" "H" "C" "D" for (int i = 0; i < 4; i++) {
			deck[i] = new boolean[13];
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			deck[i] = new boolean[13];
		} {
			deck[i] = new boolean[13];
		} deck[i] = new boolean[13] deck[i] deck i new boolean[13] 13 for (int i = 0; i < n; i++) {
			String soot = scan.next();
			int rank = scan.nextInt();
			deck[sootNumber(soot)][rank - 1] = true;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String soot = scan.next();
			int rank = scan.nextInt();
			deck[sootNumber(soot)][rank - 1] = true;
		} {
			String soot = scan.next();
			int rank = scan.nextInt();
			deck[sootNumber(soot)][rank - 1] = true;
		} String soot = scan.next(); soot scan.next() scan.next scan int rank = scan.nextInt(); rank scan.nextInt() scan.nextInt scan deck[sootNumber(soot)][rank - 1] = true deck[sootNumber(soot)][rank - 1] deck[sootNumber(soot)] deck sootNumber(soot) sootNumber soot rank - 1 rank 1 true for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (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 (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			}
		} {
			for (int j = 0; j < 13; j++) {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			}
		} for (int j = 0; j < 13; j++) {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			} {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			} if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				} deck[i][j] == false deck[i][j] deck[i] deck i j false {
					System.out.println(sootS[i] + " " + (j + 1));
				} System.out.println(sootS[i] + " " + (j + 1)) System.out.println System.out System System.out sootS[i] + " " + (j + 1) sootS[i] + " " + (j + 1) sootS[i] sootS i " " (j + 1) j 1 int sootNumber(String soot) {
		if (soot.equals("S")) {
			return 0;
		} else if (soot.equals("H")) {
			return 1;
		} else if (soot.equals("C")) {
			return 2;
		} else if (soot.equals("D")) {
			return 3;
		} else {
			return -1;
		}
	} sootNumber {
		if (soot.equals("S")) {
			return 0;
		} else if (soot.equals("H")) {
			return 1;
		} else if (soot.equals("C")) {
			return 2;
		} else if (soot.equals("D")) {
			return 3;
		} else {
			return -1;
		}
	} if (soot.equals("S")) {
			return 0;
		} else if (soot.equals("H")) {
			return 1;
		} else if (soot.equals("C")) {
			return 2;
		} else if (soot.equals("D")) {
			return 3;
		} else {
			return -1;
		} soot.equals("S") soot.equals soot "S" {
			return 0;
		} return 0; 0 if (soot.equals("H")) {
			return 1;
		} else if (soot.equals("C")) {
			return 2;
		} else if (soot.equals("D")) {
			return 3;
		} else {
			return -1;
		} soot.equals("H") soot.equals soot "H" {
			return 1;
		} return 1; 1 if (soot.equals("C")) {
			return 2;
		} else if (soot.equals("D")) {
			return 3;
		} else {
			return -1;
		} soot.equals("C") soot.equals soot "C" {
			return 2;
		} return 2; 2 if (soot.equals("D")) {
			return 3;
		} else {
			return -1;
		} soot.equals("D") soot.equals soot "D" {
			return 3;
		} return 3; 3 {
			return -1;
		} return -1; -1 1 String soot soot public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] deck = new boolean[4][];
		String sootS[] = {"S", "H", "C", "D"};
		for (int i = 0; i < 4; i++) {
			deck[i] = new boolean[13];
		}
		for (int i = 0; i < n; i++) {
			String soot = scan.next();
			int rank = scan.nextInt();
			deck[sootNumber(soot)][rank - 1] = true;
		}
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			}
		}
	}
	int sootNumber(String soot) {
		if (soot.equals("S")) {
			return 0;
		} else if (soot.equals("H")) {
			return 1;
		} else if (soot.equals("C")) {
			return 2;
		} else if (soot.equals("D")) {
			return 3;
		} else {
			return -1;
		}
	}
	public static void main(String[] args) {
		new Main().run();
	}
} public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] deck = new boolean[4][];
		String sootS[] = {"S", "H", "C", "D"};
		for (int i = 0; i < 4; i++) {
			deck[i] = new boolean[13];
		}
		for (int i = 0; i < n; i++) {
			String soot = scan.next();
			int rank = scan.nextInt();
			deck[sootNumber(soot)][rank - 1] = true;
		}
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			}
		}
	}
	int sootNumber(String soot) {
		if (soot.equals("S")) {
			return 0;
		} else if (soot.equals("H")) {
			return 1;
		} else if (soot.equals("C")) {
			return 2;
		} else if (soot.equals("D")) {
			return 3;
		} else {
			return -1;
		}
	}
	public static void main(String[] args) {
		new Main().run();
	}
} Main
import java.util.Scanner;


public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] deck = new boolean[4][];
		String sootS[] = {"S", "H", "C", "D"};
		for (int i = 0; i < 4; i++) {
			deck[i] = new boolean[13];
		}
		for (int i = 0; i < n; i++) {
			String soot = scan.next();
			int rank = scan.nextInt();
			deck[sootNumber(soot)][rank - 1] = true;
		}
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (deck[i][j] == false) {
					System.out.println(sootS[i] + " " + (j + 1));
				}
			}
		}
	}
	int sootNumber(String soot) {
		if (soot.equals("S")) {
			return 0;
		} else if (soot.equals("H")) {
			return 1;
		} else if (soot.equals("C")) {
			return 2;
		} else if (soot.equals("D")) {
			return 3;
		} else {
			return -1;
		}
	}
	public static void main(String[] args) {
		new Main().run();
	}
}