import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String design;
		int num;
		String[] mark = {"S", "H", "C", "D"};
		
		boolean[] tramp = new boolean[52];		// spade,heart,clover,diamond??????
		
		for (int i = 0; i < n; i++) {
			
			design = scan.next();
			num = scan.nextInt();
			if (design.equals("S")) {
				tramp[num - 1] = true;
			} else if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			}
			
		}
		
		for (int i = 0; i < 52; i++) {
			if (tramp[i] == false) {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			}
		}
	}

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

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String design;
		int num;
		String[] mark = {"S", "H", "C", "D"};
		
		boolean[] tramp = new boolean[52];		// spade,heart,clover,diamond??????
		
		for (int i = 0; i < n; i++) {
			
			design = scan.next();
			num = scan.nextInt();
			if (design.equals("S")) {
				tramp[num - 1] = true;
			} else if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			}
			
		}
		
		for (int i = 0; i < 52; i++) {
			if (tramp[i] == false) {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			}
		}
	}

} Main public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String design;
		int num;
		String[] mark = {"S", "H", "C", "D"};
		
		boolean[] tramp = new boolean[52];		// spade,heart,clover,diamond??????
		
		for (int i = 0; i < n; i++) {
			
			design = scan.next();
			num = scan.nextInt();
			if (design.equals("S")) {
				tramp[num - 1] = true;
			} else if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			}
			
		}
		
		for (int i = 0; i < 52; i++) {
			if (tramp[i] == false) {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			}
		}
	} main {
		
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String design;
		int num;
		String[] mark = {"S", "H", "C", "D"};
		
		boolean[] tramp = new boolean[52];		// spade,heart,clover,diamond??????
		
		for (int i = 0; i < n; i++) {
			
			design = scan.next();
			num = scan.nextInt();
			if (design.equals("S")) {
				tramp[num - 1] = true;
			} else if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			}
			
		}
		
		for (int i = 0; i < 52; i++) {
			if (tramp[i] == false) {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan String design; design int num; num String[] mark = {"S", "H", "C", "D"}; mark {"S", "H", "C", "D"} "S" "H" "C" "D" boolean[] tramp = new boolean[52]; tramp new boolean[52] 52 for (int i = 0; i < n; i++) {
			
			design = scan.next();
			num = scan.nextInt();
			if (design.equals("S")) {
				tramp[num - 1] = true;
			} else if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			}
			
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			
			design = scan.next();
			num = scan.nextInt();
			if (design.equals("S")) {
				tramp[num - 1] = true;
			} else if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			}
			
		} {
			
			design = scan.next();
			num = scan.nextInt();
			if (design.equals("S")) {
				tramp[num - 1] = true;
			} else if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			}
			
		} design = scan.next() design scan.next() scan.next scan num = scan.nextInt() num scan.nextInt() scan.nextInt scan if (design.equals("S")) {
				tramp[num - 1] = true;
			} else if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			} design.equals("S") design.equals design "S" {
				tramp[num - 1] = true;
			} tramp[num - 1] = true tramp[num - 1] tramp num - 1 num 1 true if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			} design.equals("H") design.equals design "H" {
				tramp[num + 13 - 1] = true;
			} tramp[num + 13 - 1] = true tramp[num + 13 - 1] tramp num + 13 - 1 num + 13 num 13 1 true if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			} design.equals("C") design.equals design "C" {
				tramp[num + 26 - 1] = true;
			} tramp[num + 26 - 1] = true tramp[num + 26 - 1] tramp num + 26 - 1 num + 26 num 26 1 true if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			} design.equals("D") design.equals design "D" {
				tramp[num + 39 - 1] = true;
			} tramp[num + 39 - 1] = true tramp[num + 39 - 1] tramp num + 39 - 1 num + 39 num 39 1 true for (int i = 0; i < 52; i++) {
			if (tramp[i] == false) {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			}
		} int i = 0; int i = 0; i 0 i < 52 i 52 i++ i++ i {
			if (tramp[i] == false) {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			}
		} {
			if (tramp[i] == false) {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			}
		} if (tramp[i] == false) {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			} tramp[i] == false tramp[i] tramp i false {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			} System.out.println(mark[i/13] + " " + (i % 13 + 1)) System.out.println System.out System System.out mark[i/13] + " " + (i % 13 + 1) mark[i/13] + " " + (i % 13 + 1) mark[i/13] mark i/13 i 13 " " (i % 13 + 1) i % 13 i 13 1 String[] args args public class Main {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String design;
		int num;
		String[] mark = {"S", "H", "C", "D"};
		
		boolean[] tramp = new boolean[52];		// spade,heart,clover,diamond??????
		
		for (int i = 0; i < n; i++) {
			
			design = scan.next();
			num = scan.nextInt();
			if (design.equals("S")) {
				tramp[num - 1] = true;
			} else if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			}
			
		}
		
		for (int i = 0; i < 52; i++) {
			if (tramp[i] == false) {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String design;
		int num;
		String[] mark = {"S", "H", "C", "D"};
		
		boolean[] tramp = new boolean[52];		// spade,heart,clover,diamond??????
		
		for (int i = 0; i < n; i++) {
			
			design = scan.next();
			num = scan.nextInt();
			if (design.equals("S")) {
				tramp[num - 1] = true;
			} else if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			}
			
		}
		
		for (int i = 0; i < 52; i++) {
			if (tramp[i] == false) {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			}
		}
	}

} Main
import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String design;
		int num;
		String[] mark = {"S", "H", "C", "D"};
		
		boolean[] tramp = new boolean[52];		// spade,heart,clover,diamond??????
		
		for (int i = 0; i < n; i++) {
			
			design = scan.next();
			num = scan.nextInt();
			if (design.equals("S")) {
				tramp[num - 1] = true;
			} else if (design.equals("H")) {
				tramp[num + 13 - 1] = true;
			} else if (design.equals("C")) {
				tramp[num + 26 - 1] = true;
			} else if (design.equals("D")) {
				tramp[num + 39 - 1] = true;
			}
			
		}
		
		for (int i = 0; i < 52; i++) {
			if (tramp[i] == false) {
				System.out.println(mark[i/13] + " " + (i % 13 + 1));
			}
		}
	}

}