import java.util.Scanner;

public class Main {

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

		for (int i = 0; i < n; i++) {
			String tempSuit = sc.next();
			int tempNum = sc.nextInt();
			if (tempSuit.equals("S")) {
				num[0][tempNum - 1] = true;
			} else if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			}
		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			}
		}
	}

} 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();
		boolean num[][] = new boolean[4][13];

		for (int i = 0; i < n; i++) {
			String tempSuit = sc.next();
			int tempNum = sc.nextInt();
			if (tempSuit.equals("S")) {
				num[0][tempNum - 1] = true;
			} else if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			}
		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			}
		}
	}

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

		for (int i = 0; i < n; i++) {
			String tempSuit = sc.next();
			int tempNum = sc.nextInt();
			if (tempSuit.equals("S")) {
				num[0][tempNum - 1] = true;
			} else if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			}
		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		boolean num[][] = new boolean[4][13];

		for (int i = 0; i < n; i++) {
			String tempSuit = sc.next();
			int tempNum = sc.nextInt();
			if (tempSuit.equals("S")) {
				num[0][tempNum - 1] = true;
			} else if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			}
		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc boolean num[][] = new boolean[4][13]; num new boolean[4][13] 4 13 for (int i = 0; i < n; i++) {
			String tempSuit = sc.next();
			int tempNum = sc.nextInt();
			if (tempSuit.equals("S")) {
				num[0][tempNum - 1] = true;
			} else if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String tempSuit = sc.next();
			int tempNum = sc.nextInt();
			if (tempSuit.equals("S")) {
				num[0][tempNum - 1] = true;
			} else if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			}
		} {
			String tempSuit = sc.next();
			int tempNum = sc.nextInt();
			if (tempSuit.equals("S")) {
				num[0][tempNum - 1] = true;
			} else if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			}
		} String tempSuit = sc.next(); tempSuit sc.next() sc.next sc int tempNum = sc.nextInt(); tempNum sc.nextInt() sc.nextInt sc if (tempSuit.equals("S")) {
				num[0][tempNum - 1] = true;
			} else if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			} tempSuit.equals("S") tempSuit.equals tempSuit "S" {
				num[0][tempNum - 1] = true;
			} num[0][tempNum - 1] = true num[0][tempNum - 1] num[0] num 0 tempNum - 1 tempNum 1 true if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			} tempSuit.equals("H") tempSuit.equals tempSuit "H" {
				num[1][tempNum - 1] = true;
			} num[1][tempNum - 1] = true num[1][tempNum - 1] num[1] num 1 tempNum - 1 tempNum 1 true if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			} tempSuit.equals("C") tempSuit.equals tempSuit "C" {
				num[2][tempNum - 1] = true;
			} num[2][tempNum - 1] = true num[2][tempNum - 1] num[2] num 2 tempNum - 1 tempNum 1 true if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			} tempSuit.equals("D") tempSuit.equals tempSuit "D" {
				num[3][tempNum - 1] = true;
			} num[3][tempNum - 1] = true num[3][tempNum - 1] num[3] num 3 tempNum - 1 tempNum 1 true for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					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 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			}
		} {
			for (int j = 0; j < 13; j++) {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			}
		} for (int j = 0; j < 13; j++) {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			} {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			} if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				} i == 0 && !num[i][j] i == 0 i 0 !num[i][j] num[i][j] num[i] num i j {
					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 if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				} i == 1 && !num[i][j] i == 1 i 1 !num[i][j] num[i][j] num[i] num i j {
					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) j 1 if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				} i == 2 && !num[i][j] i == 2 i 2 !num[i][j] num[i][j] num[i] num i j {
					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) j 1 if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				} i == 3 && !num[i][j] i == 3 i 3 !num[i][j] num[i][j] num[i] num i j {
					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) j 1 String[] args args public class Main {

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

		for (int i = 0; i < n; i++) {
			String tempSuit = sc.next();
			int tempNum = sc.nextInt();
			if (tempSuit.equals("S")) {
				num[0][tempNum - 1] = true;
			} else if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			}
		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			}
		}
	}

} public class Main {

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

		for (int i = 0; i < n; i++) {
			String tempSuit = sc.next();
			int tempNum = sc.nextInt();
			if (tempSuit.equals("S")) {
				num[0][tempNum - 1] = true;
			} else if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			}
		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			}
		}
	}

} Main
import java.util.Scanner;

public class Main {

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

		for (int i = 0; i < n; i++) {
			String tempSuit = sc.next();
			int tempNum = sc.nextInt();
			if (tempSuit.equals("S")) {
				num[0][tempNum - 1] = true;
			} else if (tempSuit.equals("H")) {
				num[1][tempNum - 1] = true;
			} else if (tempSuit.equals("C")) {
				num[2][tempNum - 1] = true;
			} else if (tempSuit.equals("D")) {
				num[3][tempNum - 1] = true;
			}
		}

		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (i == 0 && !num[i][j]) {
					System.out.println("S " + (j + 1));
				} else if (i == 1 && !num[i][j]) {
					System.out.println("H " + (j + 1));
				} else if (i == 2 && !num[i][j]) {
					System.out.println("C " + (j + 1));
				} else if (i == 3 && !num[i][j]) {
					System.out.println("D " + (j + 1));
				}
			}
		}
	}

}