import java.util.Scanner;

public class Main {
	Scanner scan = new Scanner(System.in);
	void run() {
		int n = scan.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 t = scan.next();
			if("S".equals(t)) {
				int j = scan.nextInt();
				S[j-1]++;
			} else if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			}
		}

		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 static void main(String[] args){
		//TODO Auto-generated mathod stub
		new Main().run();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	Scanner scan = new Scanner(System.in);
	void run() {
		int n = scan.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 t = scan.next();
			if("S".equals(t)) {
				int j = scan.nextInt();
				S[j-1]++;
			} else if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			}
		}

		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 static void main(String[] args){
		//TODO Auto-generated mathod stub
		new Main().run();
	}
} Main Scanner scan = new Scanner(System.in); scan new Scanner(System.in) void run() {
		int n = scan.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 t = scan.next();
			if("S".equals(t)) {
				int j = scan.nextInt();
				S[j-1]++;
			} else if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			}
		}

		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));
			}
		}
	} run {
		int n = scan.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 t = scan.next();
			if("S".equals(t)) {
				int j = scan.nextInt();
				S[j-1]++;
			} else if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			}
		}

		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 = scan.nextInt(); n scan.nextInt() scan.nextInt scan 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 t = scan.next();
			if("S".equals(t)) {
				int j = scan.nextInt();
				S[j-1]++;
			} else if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String t = scan.next();
			if("S".equals(t)) {
				int j = scan.nextInt();
				S[j-1]++;
			} else if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			}
		} {
			String t = scan.next();
			if("S".equals(t)) {
				int j = scan.nextInt();
				S[j-1]++;
			} else if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			}
		} String t = scan.next(); t scan.next() scan.next scan if("S".equals(t)) {
				int j = scan.nextInt();
				S[j-1]++;
			} else if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			} "S".equals(t) "S".equals "S" t {
				int j = scan.nextInt();
				S[j-1]++;
			} int j = scan.nextInt(); j scan.nextInt() scan.nextInt scan S[j-1]++ S[j-1] S j-1 j 1 if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			} "H".equals(t) "H".equals "H" t {
				int j = scan.nextInt();
				H[j-1]++;
			} int j = scan.nextInt(); j scan.nextInt() scan.nextInt scan H[j-1]++ H[j-1] H j-1 j 1 if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			} "C".equals(t) "C".equals "C" t {
				int j = scan.nextInt();
				C[j-1]++;
			} int j = scan.nextInt(); j scan.nextInt() scan.nextInt scan C[j-1]++ C[j-1] C j-1 j 1 if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			} "D".equals(t) "D".equals "D" t {
				int j = scan.nextInt();
				D[j-1]++;
			} int j = scan.nextInt(); j scan.nextInt() scan.nextInt scan D[j-1]++ D[j-1] D j-1 j 1 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) 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) 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) 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) i 1 public static void main(String[] args){
		//TODO Auto-generated mathod stub
		new Main().run();
	} main {
		//TODO Auto-generated mathod stub
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public class Main {
	Scanner scan = new Scanner(System.in);
	void run() {
		int n = scan.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 t = scan.next();
			if("S".equals(t)) {
				int j = scan.nextInt();
				S[j-1]++;
			} else if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			}
		}

		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 static void main(String[] args){
		//TODO Auto-generated mathod stub
		new Main().run();
	}
} public class Main {
	Scanner scan = new Scanner(System.in);
	void run() {
		int n = scan.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 t = scan.next();
			if("S".equals(t)) {
				int j = scan.nextInt();
				S[j-1]++;
			} else if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			}
		}

		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 static void main(String[] args){
		//TODO Auto-generated mathod stub
		new Main().run();
	}
} Main
import java.util.Scanner;

public class Main {
	Scanner scan = new Scanner(System.in);
	void run() {
		int n = scan.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 t = scan.next();
			if("S".equals(t)) {
				int j = scan.nextInt();
				S[j-1]++;
			} else if("H".equals(t)) {
				int j = scan.nextInt();
				H[j-1]++;
			} else if("C".equals(t)) {
				int j = scan.nextInt();
				C[j-1]++;
			} else if("D".equals(t)) {
				int j = scan.nextInt();
				D[j-1]++;
			}
		}

		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 static void main(String[] args){
		//TODO Auto-generated mathod stub
		new Main().run();
	}
}