import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int n = sc.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for (int i=0; i<n; i++) {
			String temp_s = sc.next();
			int temp_i = sc.nextInt()-1;
			if (temp_s.equals("S")) {S[temp_i]++;}
			else if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;}
		}
		
		for (int i=0; i<13; i++) {
			if (S[i]==0) {System.out.println("S"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (H[i]==0) {System.out.println("H"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (C[i]==0) {System.out.println("C"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (D[i]==0) {System.out.println("D"+" "+(i+1));}
		}
	}
} import java.util.*; util.* java public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int n = sc.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for (int i=0; i<n; i++) {
			String temp_s = sc.next();
			int temp_i = sc.nextInt()-1;
			if (temp_s.equals("S")) {S[temp_i]++;}
			else if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;}
		}
		
		for (int i=0; i<13; i++) {
			if (S[i]==0) {System.out.println("S"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (H[i]==0) {System.out.println("H"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (C[i]==0) {System.out.println("C"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (D[i]==0) {System.out.println("D"+" "+(i+1));}
		}
	}
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
		int n = sc.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for (int i=0; i<n; i++) {
			String temp_s = sc.next();
			int temp_i = sc.nextInt()-1;
			if (temp_s.equals("S")) {S[temp_i]++;}
			else if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;}
		}
		
		for (int i=0; i<13; i++) {
			if (S[i]==0) {System.out.println("S"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (H[i]==0) {System.out.println("H"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (C[i]==0) {System.out.println("C"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (D[i]==0) {System.out.println("D"+" "+(i+1));}
		}
	} main {
		int n = sc.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for (int i=0; i<n; i++) {
			String temp_s = sc.next();
			int temp_i = sc.nextInt()-1;
			if (temp_s.equals("S")) {S[temp_i]++;}
			else if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;}
		}
		
		for (int i=0; i<13; i++) {
			if (S[i]==0) {System.out.println("S"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (H[i]==0) {System.out.println("H"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (C[i]==0) {System.out.println("C"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (D[i]==0) {System.out.println("D"+" "+(i+1));}
		}
	} int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] S = new int[13]; S new int[13] 13 int[] H = new int[13]; H new int[13] 13 int[] C = new int[13]; C new int[13] 13 int[] D = new int[13]; D new int[13] 13 for (int i=0; i<n; i++) {
			String temp_s = sc.next();
			int temp_i = sc.nextInt()-1;
			if (temp_s.equals("S")) {S[temp_i]++;}
			else if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String temp_s = sc.next();
			int temp_i = sc.nextInt()-1;
			if (temp_s.equals("S")) {S[temp_i]++;}
			else if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;}
		} {
			String temp_s = sc.next();
			int temp_i = sc.nextInt()-1;
			if (temp_s.equals("S")) {S[temp_i]++;}
			else if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;}
		} String temp_s = sc.next(); temp_s sc.next() sc.next sc int temp_i = sc.nextInt()-1; temp_i sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 if (temp_s.equals("S")) {S[temp_i]++;}
			else if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;} temp_s.equals("S") temp_s.equals temp_s "S" {S[temp_i]++;} S[temp_i]++ S[temp_i] S temp_i if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;} temp_s.equals("H") temp_s.equals temp_s "H" {H[temp_i]++;} H[temp_i]++ H[temp_i] H temp_i if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;} temp_s.equals("C") temp_s.equals temp_s "C" {C[temp_i]++;} C[temp_i]++ C[temp_i] C temp_i if (temp_s.equals("D")) {D[temp_i]++;} temp_s.equals("D") temp_s.equals temp_s "D" {D[temp_i]++;} D[temp_i]++ D[temp_i] D temp_i for (int i=0; i<13; i++) {
			if (S[i]==0) {System.out.println("S"+" "+(i+1));}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if (S[i]==0) {System.out.println("S"+" "+(i+1));}
		} {
			if (S[i]==0) {System.out.println("S"+" "+(i+1));}
		} if (S[i]==0) {System.out.println("S"+" "+(i+1));} S[i]==0 S[i] S i 0 {System.out.println("S"+" "+(i+1));} System.out.println("S"+" "+(i+1)) System.out.println System.out System System.out "S"+" "+(i+1) "S"+" "+(i+1) "S" " " (i+1) i 1 for (int i=0; i<13; i++) {
			if (H[i]==0) {System.out.println("H"+" "+(i+1));}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if (H[i]==0) {System.out.println("H"+" "+(i+1));}
		} {
			if (H[i]==0) {System.out.println("H"+" "+(i+1));}
		} if (H[i]==0) {System.out.println("H"+" "+(i+1));} H[i]==0 H[i] H i 0 {System.out.println("H"+" "+(i+1));} System.out.println("H"+" "+(i+1)) System.out.println System.out System System.out "H"+" "+(i+1) "H"+" "+(i+1) "H" " " (i+1) i 1 for (int i=0; i<13; i++) {
			if (C[i]==0) {System.out.println("C"+" "+(i+1));}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if (C[i]==0) {System.out.println("C"+" "+(i+1));}
		} {
			if (C[i]==0) {System.out.println("C"+" "+(i+1));}
		} if (C[i]==0) {System.out.println("C"+" "+(i+1));} C[i]==0 C[i] C i 0 {System.out.println("C"+" "+(i+1));} System.out.println("C"+" "+(i+1)) System.out.println System.out System System.out "C"+" "+(i+1) "C"+" "+(i+1) "C" " " (i+1) i 1 for (int i=0; i<13; i++) {
			if (D[i]==0) {System.out.println("D"+" "+(i+1));}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if (D[i]==0) {System.out.println("D"+" "+(i+1));}
		} {
			if (D[i]==0) {System.out.println("D"+" "+(i+1));}
		} if (D[i]==0) {System.out.println("D"+" "+(i+1));} D[i]==0 D[i] D i 0 {System.out.println("D"+" "+(i+1));} System.out.println("D"+" "+(i+1)) System.out.println System.out System System.out "D"+" "+(i+1) "D"+" "+(i+1) "D" " " (i+1) i 1 String[] args args public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int n = sc.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for (int i=0; i<n; i++) {
			String temp_s = sc.next();
			int temp_i = sc.nextInt()-1;
			if (temp_s.equals("S")) {S[temp_i]++;}
			else if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;}
		}
		
		for (int i=0; i<13; i++) {
			if (S[i]==0) {System.out.println("S"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (H[i]==0) {System.out.println("H"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (C[i]==0) {System.out.println("C"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (D[i]==0) {System.out.println("D"+" "+(i+1));}
		}
	}
} public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int n = sc.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for (int i=0; i<n; i++) {
			String temp_s = sc.next();
			int temp_i = sc.nextInt()-1;
			if (temp_s.equals("S")) {S[temp_i]++;}
			else if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;}
		}
		
		for (int i=0; i<13; i++) {
			if (S[i]==0) {System.out.println("S"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (H[i]==0) {System.out.println("H"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (C[i]==0) {System.out.println("C"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (D[i]==0) {System.out.println("D"+" "+(i+1));}
		}
	}
} Main
import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int n = sc.nextInt();
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		for (int i=0; i<n; i++) {
			String temp_s = sc.next();
			int temp_i = sc.nextInt()-1;
			if (temp_s.equals("S")) {S[temp_i]++;}
			else if (temp_s.equals("H")) {H[temp_i]++;}
			else if (temp_s.equals("C")) {C[temp_i]++;}
			else if (temp_s.equals("D")) {D[temp_i]++;}
		}
		
		for (int i=0; i<13; i++) {
			if (S[i]==0) {System.out.println("S"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (H[i]==0) {System.out.println("H"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (C[i]==0) {System.out.println("C"+" "+(i+1));}
		}
		for (int i=0; i<13; i++) {
			if (D[i]==0) {System.out.println("D"+" "+(i+1));}
		}
	}
}
