import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;



public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException{
		
		int n;
		
		int rank;
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for(int i=0;i<13;i++){
			S[i]= H[i]= C[i]= D[i]= false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for(int i=0;i<n;i++){
			
			String[] imp = br.readLine().split(" ");
			rank = Integer.parseInt(imp[1]);
			
			if("S".equals(imp[0])){
				S[rank]=true;
			}else if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			}
		}
			for(int j=1;j<14;j++){
				if(S[j]==false){
				System.out.println("S "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(H[j]==false){
				System.out.println("H "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(C[j]==false){
				System.out.println("C "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(D[j]==false){
				System.out.println("D "+j);
				}
			}
			
				
			}
			
			
		}
		 import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException{
		
		int n;
		
		int rank;
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for(int i=0;i<13;i++){
			S[i]= H[i]= C[i]= D[i]= false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for(int i=0;i<n;i++){
			
			String[] imp = br.readLine().split(" ");
			rank = Integer.parseInt(imp[1]);
			
			if("S".equals(imp[0])){
				S[rank]=true;
			}else if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			}
		}
			for(int j=1;j<14;j++){
				if(S[j]==false){
				System.out.println("S "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(H[j]==false){
				System.out.println("H "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(C[j]==false){
				System.out.println("C "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(D[j]==false){
				System.out.println("D "+j);
				}
			}
			
				
			}
			
			
		} Main public static void main(String[] args) throws NumberFormatException, IOException{
		
		int n;
		
		int rank;
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for(int i=0;i<13;i++){
			S[i]= H[i]= C[i]= D[i]= false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for(int i=0;i<n;i++){
			
			String[] imp = br.readLine().split(" ");
			rank = Integer.parseInt(imp[1]);
			
			if("S".equals(imp[0])){
				S[rank]=true;
			}else if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			}
		}
			for(int j=1;j<14;j++){
				if(S[j]==false){
				System.out.println("S "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(H[j]==false){
				System.out.println("H "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(C[j]==false){
				System.out.println("C "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(D[j]==false){
				System.out.println("D "+j);
				}
			}
			
				
			} main {
		
		int n;
		
		int rank;
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for(int i=0;i<13;i++){
			S[i]= H[i]= C[i]= D[i]= false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for(int i=0;i<n;i++){
			
			String[] imp = br.readLine().split(" ");
			rank = Integer.parseInt(imp[1]);
			
			if("S".equals(imp[0])){
				S[rank]=true;
			}else if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			}
		}
			for(int j=1;j<14;j++){
				if(S[j]==false){
				System.out.println("S "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(H[j]==false){
				System.out.println("H "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(C[j]==false){
				System.out.println("C "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(D[j]==false){
				System.out.println("D "+j);
				}
			}
			
				
			} int n; n int rank; rank boolean[] S = new boolean[14]; S new boolean[14] 14 boolean[] H = new boolean[14]; H new boolean[14] 14 boolean[] C = new boolean[14]; C new boolean[14] 14 boolean[] D = new boolean[14]; D new boolean[14] 14 for(int i=0;i<13;i++){
			S[i]= H[i]= C[i]= D[i]= false;
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			S[i]= H[i]= C[i]= D[i]= false;
		} {
			S[i]= H[i]= C[i]= D[i]= false;
		} S[i]= H[i]= C[i]= D[i]= false S[i] S i H[i]= C[i]= D[i]= false H[i] H i C[i]= D[i]= false C[i] C i D[i]= false D[i] D i false BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) n = Integer.parseInt(br.readLine()) n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i=0;i<n;i++){
			
			String[] imp = br.readLine().split(" ");
			rank = Integer.parseInt(imp[1]);
			
			if("S".equals(imp[0])){
				S[rank]=true;
			}else if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			
			String[] imp = br.readLine().split(" ");
			rank = Integer.parseInt(imp[1]);
			
			if("S".equals(imp[0])){
				S[rank]=true;
			}else if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			}
		} {
			
			String[] imp = br.readLine().split(" ");
			rank = Integer.parseInt(imp[1]);
			
			if("S".equals(imp[0])){
				S[rank]=true;
			}else if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			}
		} String[] imp = br.readLine().split(" "); imp br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " rank = Integer.parseInt(imp[1]) rank Integer.parseInt(imp[1]) Integer.parseInt Integer imp[1] imp 1 if("S".equals(imp[0])){
				S[rank]=true;
			}else if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			} "S".equals(imp[0]) "S".equals "S" imp[0] imp 0 {
				S[rank]=true;
			} S[rank]=true S[rank] S rank true if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			} "H".equals(imp[0]) "H".equals "H" imp[0] imp 0 {
				H[rank]=true;
			} H[rank]=true H[rank] H rank true if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			} "C".equals(imp[0]) "C".equals "C" imp[0] imp 0 {
				C[rank]=true;
			} C[rank]=true C[rank] C rank true if("D".equals(imp[0])){
				D[rank]=true;
			} "D".equals(imp[0]) "D".equals "D" imp[0] imp 0 {
				D[rank]=true;
			} D[rank]=true D[rank] D rank true for(int j=1;j<14;j++){
				if(S[j]==false){
				System.out.println("S "+j);
				}
			} int j=1; int j=1; j 1 j<14 j 14 j++ j++ j {
				if(S[j]==false){
				System.out.println("S "+j);
				}
			} {
				if(S[j]==false){
				System.out.println("S "+j);
				}
			} if(S[j]==false){
				System.out.println("S "+j);
				} S[j]==false S[j] S j false {
				System.out.println("S "+j);
				} System.out.println("S "+j) System.out.println System.out System System.out "S "+j "S " j for(int j=1;j<14;j++){
				if(H[j]==false){
				System.out.println("H "+j);
				}
			} int j=1; int j=1; j 1 j<14 j 14 j++ j++ j {
				if(H[j]==false){
				System.out.println("H "+j);
				}
			} {
				if(H[j]==false){
				System.out.println("H "+j);
				}
			} if(H[j]==false){
				System.out.println("H "+j);
				} H[j]==false H[j] H j false {
				System.out.println("H "+j);
				} System.out.println("H "+j) System.out.println System.out System System.out "H "+j "H " j for(int j=1;j<14;j++){
				if(C[j]==false){
				System.out.println("C "+j);
				}
			} int j=1; int j=1; j 1 j<14 j 14 j++ j++ j {
				if(C[j]==false){
				System.out.println("C "+j);
				}
			} {
				if(C[j]==false){
				System.out.println("C "+j);
				}
			} if(C[j]==false){
				System.out.println("C "+j);
				} C[j]==false C[j] C j false {
				System.out.println("C "+j);
				} System.out.println("C "+j) System.out.println System.out System System.out "C "+j "C " j for(int j=1;j<14;j++){
				if(D[j]==false){
				System.out.println("D "+j);
				}
			} int j=1; int j=1; j 1 j<14 j 14 j++ j++ j {
				if(D[j]==false){
				System.out.println("D "+j);
				}
			} {
				if(D[j]==false){
				System.out.println("D "+j);
				}
			} if(D[j]==false){
				System.out.println("D "+j);
				} D[j]==false D[j] D j false {
				System.out.println("D "+j);
				} System.out.println("D "+j) System.out.println System.out System System.out "D "+j "D " j String[] args args public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException{
		
		int n;
		
		int rank;
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for(int i=0;i<13;i++){
			S[i]= H[i]= C[i]= D[i]= false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for(int i=0;i<n;i++){
			
			String[] imp = br.readLine().split(" ");
			rank = Integer.parseInt(imp[1]);
			
			if("S".equals(imp[0])){
				S[rank]=true;
			}else if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			}
		}
			for(int j=1;j<14;j++){
				if(S[j]==false){
				System.out.println("S "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(H[j]==false){
				System.out.println("H "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(C[j]==false){
				System.out.println("C "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(D[j]==false){
				System.out.println("D "+j);
				}
			}
			
				
			}
			
			
		} public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException{
		
		int n;
		
		int rank;
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for(int i=0;i<13;i++){
			S[i]= H[i]= C[i]= D[i]= false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for(int i=0;i<n;i++){
			
			String[] imp = br.readLine().split(" ");
			rank = Integer.parseInt(imp[1]);
			
			if("S".equals(imp[0])){
				S[rank]=true;
			}else if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			}
		}
			for(int j=1;j<14;j++){
				if(S[j]==false){
				System.out.println("S "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(H[j]==false){
				System.out.println("H "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(C[j]==false){
				System.out.println("C "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(D[j]==false){
				System.out.println("D "+j);
				}
			}
			
				
			}
			
			
		} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;



public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException{
		
		int n;
		
		int rank;
		
		boolean[] S = new boolean[14];
		boolean[] H = new boolean[14];
		boolean[] C = new boolean[14];
		boolean[] D = new boolean[14];
		
		for(int i=0;i<13;i++){
			S[i]= H[i]= C[i]= D[i]= false;
		}
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		n = Integer.parseInt(br.readLine());
		
		for(int i=0;i<n;i++){
			
			String[] imp = br.readLine().split(" ");
			rank = Integer.parseInt(imp[1]);
			
			if("S".equals(imp[0])){
				S[rank]=true;
			}else if("H".equals(imp[0])){
				H[rank]=true;
			}else if("C".equals(imp[0])){
				C[rank]=true;
			}else if("D".equals(imp[0])){
				D[rank]=true;
			}
		}
			for(int j=1;j<14;j++){
				if(S[j]==false){
				System.out.println("S "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(H[j]==false){
				System.out.println("H "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(C[j]==false){
				System.out.println("C "+j);
				}
			}
			for(int j=1;j<14;j++){
				if(D[j]==false){
				System.out.println("D "+j);
				}
			}
			
				
			}
			
			
		}
		