import java.io.ByteArrayInputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
	
	String INPUT = "";
	
	public static void main(String[] args) throws Exception {
		new Main().run();
	}
	
	void run() {
		Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
		PrintWriter out = new PrintWriter(System.out);
		
		solve(sc, out);
		out.flush();
	}
	
	void solve(Scanner sc, PrintWriter out) {
		int flg[][] = new int[4][13];
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				flg[i][j] = 1;
			}
		}
		
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			String S = sc.next();
			int a = sc.nextInt();
			if (S.equals("S")) flg[0][a-1]=0;
			if (S.equals("H")) flg[1][a-1]=0;
			if (S.equals("C")) flg[2][a-1]=0;
			if (S.equals("D")) flg[3][a-1]=0;
		}
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			}
		}
	}
}
 import java.io.ByteArrayInputStream; ByteArrayInputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
	
	String INPUT = "";
	
	public static void main(String[] args) throws Exception {
		new Main().run();
	}
	
	void run() {
		Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
		PrintWriter out = new PrintWriter(System.out);
		
		solve(sc, out);
		out.flush();
	}
	
	void solve(Scanner sc, PrintWriter out) {
		int flg[][] = new int[4][13];
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				flg[i][j] = 1;
			}
		}
		
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			String S = sc.next();
			int a = sc.nextInt();
			if (S.equals("S")) flg[0][a-1]=0;
			if (S.equals("H")) flg[1][a-1]=0;
			if (S.equals("C")) flg[2][a-1]=0;
			if (S.equals("D")) flg[3][a-1]=0;
		}
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			}
		}
	}
} Main String INPUT = ""; INPUT "" public static void main(String[] args) throws Exception {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args void run() {
		Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
		PrintWriter out = new PrintWriter(System.out);
		
		solve(sc, out);
		out.flush();
	} run {
		Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
		PrintWriter out = new PrintWriter(System.out);
		
		solve(sc, out);
		out.flush();
	} Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes())); sc INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes())) INPUT.isEmpty() INPUT.isEmpty INPUT new Scanner(System.in) new Scanner(new ByteArrayInputStream(INPUT.getBytes())) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) solve(sc, out) solve sc out out.flush() out.flush out void solve(Scanner sc, PrintWriter out) {
		int flg[][] = new int[4][13];
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				flg[i][j] = 1;
			}
		}
		
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			String S = sc.next();
			int a = sc.nextInt();
			if (S.equals("S")) flg[0][a-1]=0;
			if (S.equals("H")) flg[1][a-1]=0;
			if (S.equals("C")) flg[2][a-1]=0;
			if (S.equals("D")) flg[3][a-1]=0;
		}
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			}
		}
	} solve {
		int flg[][] = new int[4][13];
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				flg[i][j] = 1;
			}
		}
		
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			String S = sc.next();
			int a = sc.nextInt();
			if (S.equals("S")) flg[0][a-1]=0;
			if (S.equals("H")) flg[1][a-1]=0;
			if (S.equals("C")) flg[2][a-1]=0;
			if (S.equals("D")) flg[3][a-1]=0;
		}
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			}
		}
	} int flg[][] = new int[4][13]; flg new int[4][13] 4 13 for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				flg[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++) {
				flg[i][j] = 1;
			}
		} {
			for (int j = 0; j < 13; j++) {
				flg[i][j] = 1;
			}
		} for (int j = 0; j < 13; j++) {
				flg[i][j] = 1;
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				flg[i][j] = 1;
			} {
				flg[i][j] = 1;
			} flg[i][j] = 1 flg[i][j] flg[i] flg i j 1 int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for (int i = 0; i < n; i++) {
			String S = sc.next();
			int a = sc.nextInt();
			if (S.equals("S")) flg[0][a-1]=0;
			if (S.equals("H")) flg[1][a-1]=0;
			if (S.equals("C")) flg[2][a-1]=0;
			if (S.equals("D")) flg[3][a-1]=0;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String S = sc.next();
			int a = sc.nextInt();
			if (S.equals("S")) flg[0][a-1]=0;
			if (S.equals("H")) flg[1][a-1]=0;
			if (S.equals("C")) flg[2][a-1]=0;
			if (S.equals("D")) flg[3][a-1]=0;
		} {
			String S = sc.next();
			int a = sc.nextInt();
			if (S.equals("S")) flg[0][a-1]=0;
			if (S.equals("H")) flg[1][a-1]=0;
			if (S.equals("C")) flg[2][a-1]=0;
			if (S.equals("D")) flg[3][a-1]=0;
		} String S = sc.next(); S sc.next() sc.next sc int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if (S.equals("S")) flg[0][a-1]=0; S.equals("S") S.equals S "S" flg[0][a-1]=0 flg[0][a-1] flg[0] flg 0 a-1 a 1 0 if (S.equals("H")) flg[1][a-1]=0; S.equals("H") S.equals S "H" flg[1][a-1]=0 flg[1][a-1] flg[1] flg 1 a-1 a 1 0 if (S.equals("C")) flg[2][a-1]=0; S.equals("C") S.equals S "C" flg[2][a-1]=0 flg[2][a-1] flg[2] flg 2 a-1 a 1 0 if (S.equals("D")) flg[3][a-1]=0; S.equals("D") S.equals S "D" flg[3][a-1]=0 flg[3][a-1] flg[3] flg 3 a-1 a 1 0 for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(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 (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			}
		} {
			for (int j = 0; j < 13; j++) {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			}
		} for (int j = 0; j < 13; j++) {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			} {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			} if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				} flg[i][j] == 1 flg[i][j] flg[i] flg i j 1 {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				} if (i == 0) System.out.print("S "); i == 0 i 0 System.out.print("S ") System.out.print System.out System System.out "S " if (i == 1) System.out.print("H "); i == 1 i 1 System.out.print("H ") System.out.print System.out System System.out "H " if (i == 2) System.out.print("C "); i == 2 i 2 System.out.print("C ") System.out.print System.out System System.out "C " if (i == 3) System.out.print("D "); i == 3 i 3 System.out.print("D ") System.out.print System.out System System.out "D " System.out.println(j+1) System.out.println System.out System System.out j+1 j 1 Scanner sc sc PrintWriter out out public class Main {
	
	String INPUT = "";
	
	public static void main(String[] args) throws Exception {
		new Main().run();
	}
	
	void run() {
		Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
		PrintWriter out = new PrintWriter(System.out);
		
		solve(sc, out);
		out.flush();
	}
	
	void solve(Scanner sc, PrintWriter out) {
		int flg[][] = new int[4][13];
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				flg[i][j] = 1;
			}
		}
		
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			String S = sc.next();
			int a = sc.nextInt();
			if (S.equals("S")) flg[0][a-1]=0;
			if (S.equals("H")) flg[1][a-1]=0;
			if (S.equals("C")) flg[2][a-1]=0;
			if (S.equals("D")) flg[3][a-1]=0;
		}
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			}
		}
	}
} public class Main {
	
	String INPUT = "";
	
	public static void main(String[] args) throws Exception {
		new Main().run();
	}
	
	void run() {
		Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
		PrintWriter out = new PrintWriter(System.out);
		
		solve(sc, out);
		out.flush();
	}
	
	void solve(Scanner sc, PrintWriter out) {
		int flg[][] = new int[4][13];
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				flg[i][j] = 1;
			}
		}
		
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			String S = sc.next();
			int a = sc.nextInt();
			if (S.equals("S")) flg[0][a-1]=0;
			if (S.equals("H")) flg[1][a-1]=0;
			if (S.equals("C")) flg[2][a-1]=0;
			if (S.equals("D")) flg[3][a-1]=0;
		}
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			}
		}
	}
} Main
import java.io.ByteArrayInputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
	
	String INPUT = "";
	
	public static void main(String[] args) throws Exception {
		new Main().run();
	}
	
	void run() {
		Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(new ByteArrayInputStream(INPUT.getBytes()));
		PrintWriter out = new PrintWriter(System.out);
		
		solve(sc, out);
		out.flush();
	}
	
	void solve(Scanner sc, PrintWriter out) {
		int flg[][] = new int[4][13];
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				flg[i][j] = 1;
			}
		}
		
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			String S = sc.next();
			int a = sc.nextInt();
			if (S.equals("S")) flg[0][a-1]=0;
			if (S.equals("H")) flg[1][a-1]=0;
			if (S.equals("C")) flg[2][a-1]=0;
			if (S.equals("D")) flg[3][a-1]=0;
		}
		
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 13; j++) {
				if (flg[i][j] == 1) {
					if (i == 0) System.out.print("S ");
					if (i == 1) System.out.print("H ");
					if (i == 2) System.out.print("C ");
					if (i == 3) System.out.print("D ");
					System.out.println(j+1);
				}
			}
		}
	}
}

