import java.io.*;
import java.util.ArrayList;
class Main{
	public static void main(String[]args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		
		String str=br.readLine();
		int n=Integer.parseInt(str);
		
		ArrayList<String>list=new ArrayList<>();
		
		for(int i=0;i<n;i++){
			list.add(br.readLine());
		}
		for(int j=0;j<4;j++){
			for(int k=0;k<13;k++){
				if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				}
			}
		}
		System.out.print(sb);
	}
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util class Main{
	public static void main(String[]args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		
		String str=br.readLine();
		int n=Integer.parseInt(str);
		
		ArrayList<String>list=new ArrayList<>();
		
		for(int i=0;i<n;i++){
			list.add(br.readLine());
		}
		for(int j=0;j<4;j++){
			for(int k=0;k<13;k++){
				if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				}
			}
		}
		System.out.print(sb);
	}
} Main public static void main(String[]args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		
		String str=br.readLine();
		int n=Integer.parseInt(str);
		
		ArrayList<String>list=new ArrayList<>();
		
		for(int i=0;i<n;i++){
			list.add(br.readLine());
		}
		for(int j=0;j<4;j++){
			for(int k=0;k<13;k++){
				if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				}
			}
		}
		System.out.print(sb);
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		
		String str=br.readLine();
		int n=Integer.parseInt(str);
		
		ArrayList<String>list=new ArrayList<>();
		
		for(int i=0;i<n;i++){
			list.add(br.readLine());
		}
		for(int j=0;j<4;j++){
			for(int k=0;k<13;k++){
				if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				}
			}
		}
		System.out.print(sb);
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb=new StringBuilder(); sb new StringBuilder() String str=br.readLine(); str br.readLine() br.readLine br int n=Integer.parseInt(str); n Integer.parseInt(str) Integer.parseInt Integer str ArrayList<String>list=new ArrayList<>(); list new ArrayList<>() for(int i=0;i<n;i++){
			list.add(br.readLine());
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			list.add(br.readLine());
		} {
			list.add(br.readLine());
		} list.add(br.readLine()) list.add list br.readLine() br.readLine br for(int j=0;j<4;j++){
			for(int k=0;k<13;k++){
				if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				}
			}
		} int j=0; int j=0; j 0 j<4 j 4 j++ j++ j {
			for(int k=0;k<13;k++){
				if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				}
			}
		} {
			for(int k=0;k<13;k++){
				if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				}
			}
		} for(int k=0;k<13;k++){
				if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				}
			} int k=0; int k=0; k 0 k<13 k 13 k++ k++ k {
				if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				}
			} {
				if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				}
			} if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				} j==0 j 0 {
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				} if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					} list.contains("S " +(k+1)) == false list.contains("S " +(k+1)) list.contains list "S " +(k+1) "S " (k+1) k 1 false {
						sb.append("S ").append(k+1).append("\n");
					} sb.append("S ").append(k+1).append("\n") sb.append("S ").append(k+1).append sb.append("S ").append(k+1) sb.append("S ").append sb.append("S ") sb.append sb "S " k+1 k 1 "\n" if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				} j==1 j 1 {
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				} if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					} list.contains("H " +(k+1)) == false list.contains("H " +(k+1)) list.contains list "H " +(k+1) "H " (k+1) k 1 false {
						sb.append("H ").append(k+1).append("\n");
					} sb.append("H ").append(k+1).append("\n") sb.append("H ").append(k+1).append sb.append("H ").append(k+1) sb.append("H ").append sb.append("H ") sb.append sb "H " k+1 k 1 "\n" if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				} j==2 j 2 {
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				} if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					} list.contains("C " +(k+1)) == false list.contains("C " +(k+1)) list.contains list "C " +(k+1) "C " (k+1) k 1 false {
						sb.append("C ").append(k+1).append("\n");
					} sb.append("C ").append(k+1).append("\n") sb.append("C ").append(k+1).append sb.append("C ").append(k+1) sb.append("C ").append sb.append("C ") sb.append sb "C " k+1 k 1 "\n" if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				} j==3 j 3 {
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				} if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					} list.contains("D " +(k+1)) == false list.contains("D " +(k+1)) list.contains list "D " +(k+1) "D " (k+1) k 1 false {
						sb.append("D ").append(k+1).append("\n");
					} sb.append("D ").append(k+1).append("\n") sb.append("D ").append(k+1).append sb.append("D ").append(k+1) sb.append("D ").append sb.append("D ") sb.append sb "D " k+1 k 1 "\n" System.out.print(sb) System.out.print System.out System System.out sb String[]args args
import java.io.*;
import java.util.ArrayList;
class Main{
	public static void main(String[]args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		
		String str=br.readLine();
		int n=Integer.parseInt(str);
		
		ArrayList<String>list=new ArrayList<>();
		
		for(int i=0;i<n;i++){
			list.add(br.readLine());
		}
		for(int j=0;j<4;j++){
			for(int k=0;k<13;k++){
				if(j==0){
					if (list.contains("S " +(k+1)) == false) {
						sb.append("S ").append(k+1).append("\n");
					}
				}
				else if(j==1){
					if (list.contains("H " +(k+1)) == false) {
						sb.append("H ").append(k+1).append("\n");
					}
				}
				else if(j==2){
					if (list.contains("C " +(k+1)) == false) {
						sb.append("C ").append(k+1).append("\n");
					}
				}
				else if(j==3){
					if (list.contains("D " +(k+1)) == false) {
						sb.append("D ").append(k+1).append("\n");
					}
				}
			}
		}
		System.out.print(sb);
	}
}