import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int S[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int H[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int C[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int D[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		String[] m = new String[n];
		int[] s = new int[n];
		for(int a =0;a<n;a++){
			m[a] = scan.next();
			s[a] = scan.nextInt();
		}
		for(int b = 0;b<n;b++){
			if(m[b].equals("S")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			}
		}
		for(int e = 0;e<13;e++){
			if(S[e] == 0){
				System.out.println("S "+(e+1));
			}
		}
		for(int f = 0;f<13;f++){
			if(H[f] == 0){
				System.out.println("H "+(f+1));
			}
		}
		for(int g = 0;g<13;g++){
			if(C[g] == 0){
				System.out.println("C "+(g+1));
			}
		}
		for(int h = 0;h<13;h++){
			if(D[h] == 0){
				System.out.println("D "+(h+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();
		int S[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int H[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int C[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int D[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		String[] m = new String[n];
		int[] s = new int[n];
		for(int a =0;a<n;a++){
			m[a] = scan.next();
			s[a] = scan.nextInt();
		}
		for(int b = 0;b<n;b++){
			if(m[b].equals("S")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			}
		}
		for(int e = 0;e<13;e++){
			if(S[e] == 0){
				System.out.println("S "+(e+1));
			}
		}
		for(int f = 0;f<13;f++){
			if(H[f] == 0){
				System.out.println("H "+(f+1));
			}
		}
		for(int g = 0;g<13;g++){
			if(C[g] == 0){
				System.out.println("C "+(g+1));
			}
		}
		for(int h = 0;h<13;h++){
			if(D[h] == 0){
				System.out.println("D "+(h+1));
			}
		}
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int S[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int H[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int C[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int D[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		String[] m = new String[n];
		int[] s = new int[n];
		for(int a =0;a<n;a++){
			m[a] = scan.next();
			s[a] = scan.nextInt();
		}
		for(int b = 0;b<n;b++){
			if(m[b].equals("S")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			}
		}
		for(int e = 0;e<13;e++){
			if(S[e] == 0){
				System.out.println("S "+(e+1));
			}
		}
		for(int f = 0;f<13;f++){
			if(H[f] == 0){
				System.out.println("H "+(f+1));
			}
		}
		for(int g = 0;g<13;g++){
			if(C[g] == 0){
				System.out.println("C "+(g+1));
			}
		}
		for(int h = 0;h<13;h++){
			if(D[h] == 0){
				System.out.println("D "+(h+1));
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int S[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int H[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int C[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int D[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		String[] m = new String[n];
		int[] s = new int[n];
		for(int a =0;a<n;a++){
			m[a] = scan.next();
			s[a] = scan.nextInt();
		}
		for(int b = 0;b<n;b++){
			if(m[b].equals("S")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			}
		}
		for(int e = 0;e<13;e++){
			if(S[e] == 0){
				System.out.println("S "+(e+1));
			}
		}
		for(int f = 0;f<13;f++){
			if(H[f] == 0){
				System.out.println("H "+(f+1));
			}
		}
		for(int g = 0;g<13;g++){
			if(C[g] == 0){
				System.out.println("C "+(g+1));
			}
		}
		for(int h = 0;h<13;h++){
			if(D[h] == 0){
				System.out.println("D "+(h+1));
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int S[] = {0,0,0,0,0,0,0,0,0,0,0,0,0}; S {0,0,0,0,0,0,0,0,0,0,0,0,0} 0 0 0 0 0 0 0 0 0 0 0 0 0 int H[] = {0,0,0,0,0,0,0,0,0,0,0,0,0}; H {0,0,0,0,0,0,0,0,0,0,0,0,0} 0 0 0 0 0 0 0 0 0 0 0 0 0 int C[] = {0,0,0,0,0,0,0,0,0,0,0,0,0}; C {0,0,0,0,0,0,0,0,0,0,0,0,0} 0 0 0 0 0 0 0 0 0 0 0 0 0 int D[] = {0,0,0,0,0,0,0,0,0,0,0,0,0}; D {0,0,0,0,0,0,0,0,0,0,0,0,0} 0 0 0 0 0 0 0 0 0 0 0 0 0 String[] m = new String[n]; m new String[n] n int[] s = new int[n]; s new int[n] n for(int a =0;a<n;a++){
			m[a] = scan.next();
			s[a] = scan.nextInt();
		} int a =0; int a =0; a 0 a<n a n a++ a++ a {
			m[a] = scan.next();
			s[a] = scan.nextInt();
		} {
			m[a] = scan.next();
			s[a] = scan.nextInt();
		} m[a] = scan.next() m[a] m a scan.next() scan.next scan s[a] = scan.nextInt() s[a] s a scan.nextInt() scan.nextInt scan for(int b = 0;b<n;b++){
			if(m[b].equals("S")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			}
		} int b = 0; int b = 0; b 0 b<n b n b++ b++ b {
			if(m[b].equals("S")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			}
		} {
			if(m[b].equals("S")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			}
		} if(m[b].equals("S")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			} m[b].equals("S") m[b].equals m[b] m b "S" {
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			} for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				} int c = 1; int c = 1; c 1 c<=13 c 13 c++ c++ c {
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				} {
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				} if(s[b] == c){
						S[c-1] = 1;
						break;
					} s[b] == c s[b] s b c {
						S[c-1] = 1;
						break;
					} S[c-1] = 1 S[c-1] S c-1 c 1 1 break; if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			} m[b].equals("H") m[b].equals m[b] m b "H" {
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			} for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				} int c = 1; int c = 1; c 1 c<=13 c 13 c++ c++ c {
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				} {
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				} if(s[b] == c){
						H[c-1] = 1;
						break;
					} s[b] == c s[b] s b c {
						H[c-1] = 1;
						break;
					} H[c-1] = 1 H[c-1] H c-1 c 1 1 break; if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			} m[b].equals("C") m[b].equals m[b] m b "C" {
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			} for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				} int c = 1; int c = 1; c 1 c<=13 c 13 c++ c++ c {
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				} {
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				} if(s[b] == c){
						C[c-1] = 1;
						break;
					} s[b] == c s[b] s b c {
						C[c-1] = 1;
						break;
					} C[c-1] = 1 C[c-1] C c-1 c 1 1 break; if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			} m[b].equals("D") m[b].equals m[b] m b "D" {
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			} for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				} int c = 1; int c = 1; c 1 c<=13 c 13 c++ c++ c {
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				} {
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				} if(s[b] == c){
						D[c-1] = 1;
						break;
					} s[b] == c s[b] s b c {
						D[c-1] = 1;
						break;
					} D[c-1] = 1 D[c-1] D c-1 c 1 1 break; for(int e = 0;e<13;e++){
			if(S[e] == 0){
				System.out.println("S "+(e+1));
			}
		} int e = 0; int e = 0; e 0 e<13 e 13 e++ e++ e {
			if(S[e] == 0){
				System.out.println("S "+(e+1));
			}
		} {
			if(S[e] == 0){
				System.out.println("S "+(e+1));
			}
		} if(S[e] == 0){
				System.out.println("S "+(e+1));
			} S[e] == 0 S[e] S e 0 {
				System.out.println("S "+(e+1));
			} System.out.println("S "+(e+1)) System.out.println System.out System System.out "S "+(e+1) "S " (e+1) e 1 for(int f = 0;f<13;f++){
			if(H[f] == 0){
				System.out.println("H "+(f+1));
			}
		} int f = 0; int f = 0; f 0 f<13 f 13 f++ f++ f {
			if(H[f] == 0){
				System.out.println("H "+(f+1));
			}
		} {
			if(H[f] == 0){
				System.out.println("H "+(f+1));
			}
		} if(H[f] == 0){
				System.out.println("H "+(f+1));
			} H[f] == 0 H[f] H f 0 {
				System.out.println("H "+(f+1));
			} System.out.println("H "+(f+1)) System.out.println System.out System System.out "H "+(f+1) "H " (f+1) f 1 for(int g = 0;g<13;g++){
			if(C[g] == 0){
				System.out.println("C "+(g+1));
			}
		} int g = 0; int g = 0; g 0 g<13 g 13 g++ g++ g {
			if(C[g] == 0){
				System.out.println("C "+(g+1));
			}
		} {
			if(C[g] == 0){
				System.out.println("C "+(g+1));
			}
		} if(C[g] == 0){
				System.out.println("C "+(g+1));
			} C[g] == 0 C[g] C g 0 {
				System.out.println("C "+(g+1));
			} System.out.println("C "+(g+1)) System.out.println System.out System System.out "C "+(g+1) "C " (g+1) g 1 for(int h = 0;h<13;h++){
			if(D[h] == 0){
				System.out.println("D "+(h+1));
			}
		} int h = 0; int h = 0; h 0 h<13 h 13 h++ h++ h {
			if(D[h] == 0){
				System.out.println("D "+(h+1));
			}
		} {
			if(D[h] == 0){
				System.out.println("D "+(h+1));
			}
		} if(D[h] == 0){
				System.out.println("D "+(h+1));
			} D[h] == 0 D[h] D h 0 {
				System.out.println("D "+(h+1));
			} System.out.println("D "+(h+1)) System.out.println System.out System System.out "D "+(h+1) "D " (h+1) h 1 String[] args args public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int S[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int H[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int C[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int D[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		String[] m = new String[n];
		int[] s = new int[n];
		for(int a =0;a<n;a++){
			m[a] = scan.next();
			s[a] = scan.nextInt();
		}
		for(int b = 0;b<n;b++){
			if(m[b].equals("S")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			}
		}
		for(int e = 0;e<13;e++){
			if(S[e] == 0){
				System.out.println("S "+(e+1));
			}
		}
		for(int f = 0;f<13;f++){
			if(H[f] == 0){
				System.out.println("H "+(f+1));
			}
		}
		for(int g = 0;g<13;g++){
			if(C[g] == 0){
				System.out.println("C "+(g+1));
			}
		}
		for(int h = 0;h<13;h++){
			if(D[h] == 0){
				System.out.println("D "+(h+1));
			}
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int S[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int H[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int C[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int D[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		String[] m = new String[n];
		int[] s = new int[n];
		for(int a =0;a<n;a++){
			m[a] = scan.next();
			s[a] = scan.nextInt();
		}
		for(int b = 0;b<n;b++){
			if(m[b].equals("S")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			}
		}
		for(int e = 0;e<13;e++){
			if(S[e] == 0){
				System.out.println("S "+(e+1));
			}
		}
		for(int f = 0;f<13;f++){
			if(H[f] == 0){
				System.out.println("H "+(f+1));
			}
		}
		for(int g = 0;g<13;g++){
			if(C[g] == 0){
				System.out.println("C "+(g+1));
			}
		}
		for(int h = 0;h<13;h++){
			if(D[h] == 0){
				System.out.println("D "+(h+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();
		int S[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int H[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int C[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		int D[] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
		String[] m = new String[n];
		int[] s = new int[n];
		for(int a =0;a<n;a++){
			m[a] = scan.next();
			s[a] = scan.nextInt();
		}
		for(int b = 0;b<n;b++){
			if(m[b].equals("S")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						S[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("H")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						H[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("C")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						C[c-1] = 1;
						break;
					}
				}
			}else if(m[b].equals("D")){
				for(int c = 1;c<=13;c++){
					if(s[b] == c){
						D[c-1] = 1;
						break;
					}
				}
			}
		}
		for(int e = 0;e<13;e++){
			if(S[e] == 0){
				System.out.println("S "+(e+1));
			}
		}
		for(int f = 0;f<13;f++){
			if(H[f] == 0){
				System.out.println("H "+(f+1));
			}
		}
		for(int g = 0;g<13;g++){
			if(C[g] == 0){
				System.out.println("C "+(g+1));
			}
		}
		for(int h = 0;h<13;h++){
			if(D[h] == 0){
				System.out.println("D "+(h+1));
			}
		}
	}
}