import java.io.*;

class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		boolean[] S = new boolean[13];
		boolean[] H = new boolean[13];
		boolean[] C = new boolean[13];
		boolean[] D = new boolean[13];
        for(int i=0;i<N;i++){
            String[] a = br.readLine().split(" ");
        	switch(a[0].charAt(0)){
        	case 'S':
        		S[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'H':
        		H[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'C':
        		C[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'D':
        		D[Integer.parseInt(a[1])-1]=true;
        		break;
        	}
        }
        for(int i=0;i<13;i++) if(!S[i]) System.out.println("S "+(i+1));
        for(int i=0;i<13;i++) if(!H[i]) System.out.println("H "+(i+1));
        for(int i=0;i<13;i++) if(!C[i]) System.out.println("C "+(i+1));
        for(int i=0;i<13;i++) if(!D[i]) System.out.println("D "+(i+1));
	}
} import java.io.*; io.* java class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		boolean[] S = new boolean[13];
		boolean[] H = new boolean[13];
		boolean[] C = new boolean[13];
		boolean[] D = new boolean[13];
        for(int i=0;i<N;i++){
            String[] a = br.readLine().split(" ");
        	switch(a[0].charAt(0)){
        	case 'S':
        		S[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'H':
        		H[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'C':
        		C[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'D':
        		D[Integer.parseInt(a[1])-1]=true;
        		break;
        	}
        }
        for(int i=0;i<13;i++) if(!S[i]) System.out.println("S "+(i+1));
        for(int i=0;i<13;i++) if(!H[i]) System.out.println("H "+(i+1));
        for(int i=0;i<13;i++) if(!C[i]) System.out.println("C "+(i+1));
        for(int i=0;i<13;i++) if(!D[i]) System.out.println("D "+(i+1));
	}
} Main public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		boolean[] S = new boolean[13];
		boolean[] H = new boolean[13];
		boolean[] C = new boolean[13];
		boolean[] D = new boolean[13];
        for(int i=0;i<N;i++){
            String[] a = br.readLine().split(" ");
        	switch(a[0].charAt(0)){
        	case 'S':
        		S[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'H':
        		H[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'C':
        		C[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'D':
        		D[Integer.parseInt(a[1])-1]=true;
        		break;
        	}
        }
        for(int i=0;i<13;i++) if(!S[i]) System.out.println("S "+(i+1));
        for(int i=0;i<13;i++) if(!H[i]) System.out.println("H "+(i+1));
        for(int i=0;i<13;i++) if(!C[i]) System.out.println("C "+(i+1));
        for(int i=0;i<13;i++) if(!D[i]) System.out.println("D "+(i+1));
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		boolean[] S = new boolean[13];
		boolean[] H = new boolean[13];
		boolean[] C = new boolean[13];
		boolean[] D = new boolean[13];
        for(int i=0;i<N;i++){
            String[] a = br.readLine().split(" ");
        	switch(a[0].charAt(0)){
        	case 'S':
        		S[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'H':
        		H[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'C':
        		C[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'D':
        		D[Integer.parseInt(a[1])-1]=true;
        		break;
        	}
        }
        for(int i=0;i<13;i++) if(!S[i]) System.out.println("S "+(i+1));
        for(int i=0;i<13;i++) if(!H[i]) System.out.println("H "+(i+1));
        for(int i=0;i<13;i++) if(!C[i]) System.out.println("C "+(i+1));
        for(int i=0;i<13;i++) if(!D[i]) System.out.println("D "+(i+1));
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br boolean[] S = new boolean[13]; S new boolean[13] 13 boolean[] H = new boolean[13]; H new boolean[13] 13 boolean[] C = new boolean[13]; C new boolean[13] 13 boolean[] D = new boolean[13]; D new boolean[13] 13 for(int i=0;i<N;i++){
            String[] a = br.readLine().split(" ");
        	switch(a[0].charAt(0)){
        	case 'S':
        		S[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'H':
        		H[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'C':
        		C[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'D':
        		D[Integer.parseInt(a[1])-1]=true;
        		break;
        	}
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            String[] a = br.readLine().split(" ");
        	switch(a[0].charAt(0)){
        	case 'S':
        		S[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'H':
        		H[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'C':
        		C[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'D':
        		D[Integer.parseInt(a[1])-1]=true;
        		break;
        	}
        } {
            String[] a = br.readLine().split(" ");
        	switch(a[0].charAt(0)){
        	case 'S':
        		S[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'H':
        		H[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'C':
        		C[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'D':
        		D[Integer.parseInt(a[1])-1]=true;
        		break;
        	}
        } String[] a = br.readLine().split(" "); a br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " switch(a[0].charAt(0)){
        	case 'S':
        		S[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'H':
        		H[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'C':
        		C[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'D':
        		D[Integer.parseInt(a[1])-1]=true;
        		break;
        	} a[0].charAt(0) a[0].charAt a[0] a 0 0 case 'S': 'S' case 'S': S[Integer.parseInt(a[1])-1]=true S[Integer.parseInt(a[1])-1] S Integer.parseInt(a[1])-1 Integer.parseInt(a[1]) Integer.parseInt Integer a[1] a 1 1 true break; case 'H': 'H' case 'H': H[Integer.parseInt(a[1])-1]=true H[Integer.parseInt(a[1])-1] H Integer.parseInt(a[1])-1 Integer.parseInt(a[1]) Integer.parseInt Integer a[1] a 1 1 true break; case 'C': 'C' case 'C': C[Integer.parseInt(a[1])-1]=true C[Integer.parseInt(a[1])-1] C Integer.parseInt(a[1])-1 Integer.parseInt(a[1]) Integer.parseInt Integer a[1] a 1 1 true break; case 'D': 'D' case 'D': D[Integer.parseInt(a[1])-1]=true D[Integer.parseInt(a[1])-1] D Integer.parseInt(a[1])-1 Integer.parseInt(a[1]) Integer.parseInt Integer a[1] a 1 1 true break; for(int i=0;i<13;i++) if(!S[i]) System.out.println("S "+(i+1)); int i=0; int i=0; i 0 i<13 i 13 i++ i++ i if(!S[i]) System.out.println("S "+(i+1)); if(!S[i]) System.out.println("S "+(i+1)); !S[i] S[i] S i 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]) System.out.println("H "+(i+1)); int i=0; int i=0; i 0 i<13 i 13 i++ i++ i if(!H[i]) System.out.println("H "+(i+1)); if(!H[i]) System.out.println("H "+(i+1)); !H[i] H[i] H i 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]) System.out.println("C "+(i+1)); int i=0; int i=0; i 0 i<13 i 13 i++ i++ i if(!C[i]) System.out.println("C "+(i+1)); if(!C[i]) System.out.println("C "+(i+1)); !C[i] C[i] C i 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]) System.out.println("D "+(i+1)); int i=0; int i=0; i 0 i<13 i 13 i++ i++ i if(!D[i]) System.out.println("D "+(i+1)); if(!D[i]) System.out.println("D "+(i+1)); !D[i] D[i] D i System.out.println("D "+(i+1)) System.out.println System.out System System.out "D "+(i+1) "D " (i+1) i 1 String[] args args
import java.io.*;

class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());
		boolean[] S = new boolean[13];
		boolean[] H = new boolean[13];
		boolean[] C = new boolean[13];
		boolean[] D = new boolean[13];
        for(int i=0;i<N;i++){
            String[] a = br.readLine().split(" ");
        	switch(a[0].charAt(0)){
        	case 'S':
        		S[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'H':
        		H[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'C':
        		C[Integer.parseInt(a[1])-1]=true;
        		break;
        	case 'D':
        		D[Integer.parseInt(a[1])-1]=true;
        		break;
        	}
        }
        for(int i=0;i<13;i++) if(!S[i]) System.out.println("S "+(i+1));
        for(int i=0;i<13;i++) if(!H[i]) System.out.println("H "+(i+1));
        for(int i=0;i<13;i++) if(!C[i]) System.out.println("C "+(i+1));
        for(int i=0;i<13;i++) if(!D[i]) System.out.println("D "+(i+1));
	}
}