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

public class Main{
	public static void main(String[] args)throws Exception{
	
		ArrayList<String> list = new ArrayList<String>();
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int n = Integer.parseInt(br.readLine());

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

		int n = Integer.parseInt(br.readLine());

		for(int i=0; i<n; i++){
			list.add(br.readLine());
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("S " +i) == false){
				sb.append("S "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("H " +i) == false){
				sb.append("H "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("C " +i) == false){
				sb.append("C "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("D " +i) == false){
				sb.append("D "+ i +"\n");
			}
		}
		System.out.print(sb);
	}
} Main public static void main(String[] args)throws Exception{
	
		ArrayList<String> list = new ArrayList<String>();
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int n = Integer.parseInt(br.readLine());

		for(int i=0; i<n; i++){
			list.add(br.readLine());
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("S " +i) == false){
				sb.append("S "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("H " +i) == false){
				sb.append("H "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("C " +i) == false){
				sb.append("C "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("D " +i) == false){
				sb.append("D "+ i +"\n");
			}
		}
		System.out.print(sb);
	} main {
	
		ArrayList<String> list = new ArrayList<String>();
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int n = Integer.parseInt(br.readLine());

		for(int i=0; i<n; i++){
			list.add(br.readLine());
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("S " +i) == false){
				sb.append("S "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("H " +i) == false){
				sb.append("H "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("C " +i) == false){
				sb.append("C "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("D " +i) == false){
				sb.append("D "+ i +"\n");
			}
		}
		System.out.print(sb);
	} ArrayList<String> list = new ArrayList<String>(); list new ArrayList<String>() BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int 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++){
			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 i=1; i<=13; i++){
			if(list.contains("S " +i) == false){
				sb.append("S "+ i +"\n");
			}
		} int i=1; int i=1; i 1 i<=13 i 13 i++ i++ i {
			if(list.contains("S " +i) == false){
				sb.append("S "+ i +"\n");
			}
		} {
			if(list.contains("S " +i) == false){
				sb.append("S "+ i +"\n");
			}
		} if(list.contains("S " +i) == false){
				sb.append("S "+ i +"\n");
			} list.contains("S " +i) == false list.contains("S " +i) list.contains list "S " +i "S " i false {
				sb.append("S "+ i +"\n");
			} sb.append("S "+ i +"\n") sb.append sb "S "+ i +"\n" "S "+ i +"\n" "S " i "\n" for(int i=1; i<=13; i++){
			if(list.contains("H " +i) == false){
				sb.append("H "+ i +"\n");
			}
		} int i=1; int i=1; i 1 i<=13 i 13 i++ i++ i {
			if(list.contains("H " +i) == false){
				sb.append("H "+ i +"\n");
			}
		} {
			if(list.contains("H " +i) == false){
				sb.append("H "+ i +"\n");
			}
		} if(list.contains("H " +i) == false){
				sb.append("H "+ i +"\n");
			} list.contains("H " +i) == false list.contains("H " +i) list.contains list "H " +i "H " i false {
				sb.append("H "+ i +"\n");
			} sb.append("H "+ i +"\n") sb.append sb "H "+ i +"\n" "H "+ i +"\n" "H " i "\n" for(int i=1; i<=13; i++){
			if(list.contains("C " +i) == false){
				sb.append("C "+ i +"\n");
			}
		} int i=1; int i=1; i 1 i<=13 i 13 i++ i++ i {
			if(list.contains("C " +i) == false){
				sb.append("C "+ i +"\n");
			}
		} {
			if(list.contains("C " +i) == false){
				sb.append("C "+ i +"\n");
			}
		} if(list.contains("C " +i) == false){
				sb.append("C "+ i +"\n");
			} list.contains("C " +i) == false list.contains("C " +i) list.contains list "C " +i "C " i false {
				sb.append("C "+ i +"\n");
			} sb.append("C "+ i +"\n") sb.append sb "C "+ i +"\n" "C "+ i +"\n" "C " i "\n" for(int i=1; i<=13; i++){
			if(list.contains("D " +i) == false){
				sb.append("D "+ i +"\n");
			}
		} int i=1; int i=1; i 1 i<=13 i 13 i++ i++ i {
			if(list.contains("D " +i) == false){
				sb.append("D "+ i +"\n");
			}
		} {
			if(list.contains("D " +i) == false){
				sb.append("D "+ i +"\n");
			}
		} if(list.contains("D " +i) == false){
				sb.append("D "+ i +"\n");
			} list.contains("D " +i) == false list.contains("D " +i) list.contains list "D " +i "D " i false {
				sb.append("D "+ i +"\n");
			} sb.append("D "+ i +"\n") sb.append sb "D "+ i +"\n" "D "+ i +"\n" "D " i "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main{
	public static void main(String[] args)throws Exception{
	
		ArrayList<String> list = new ArrayList<String>();
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int n = Integer.parseInt(br.readLine());

		for(int i=0; i<n; i++){
			list.add(br.readLine());
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("S " +i) == false){
				sb.append("S "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("H " +i) == false){
				sb.append("H "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("C " +i) == false){
				sb.append("C "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("D " +i) == false){
				sb.append("D "+ i +"\n");
			}
		}
		System.out.print(sb);
	}
} public class Main{
	public static void main(String[] args)throws Exception{
	
		ArrayList<String> list = new ArrayList<String>();
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int n = Integer.parseInt(br.readLine());

		for(int i=0; i<n; i++){
			list.add(br.readLine());
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("S " +i) == false){
				sb.append("S "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("H " +i) == false){
				sb.append("H "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("C " +i) == false){
				sb.append("C "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("D " +i) == false){
				sb.append("D "+ i +"\n");
			}
		}
		System.out.print(sb);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.ArrayList;

public class Main{
	public static void main(String[] args)throws Exception{
	
		ArrayList<String> list = new ArrayList<String>();
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		int n = Integer.parseInt(br.readLine());

		for(int i=0; i<n; i++){
			list.add(br.readLine());
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("S " +i) == false){
				sb.append("S "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("H " +i) == false){
				sb.append("H "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("C " +i) == false){
				sb.append("C "+ i +"\n");
			}
		}
		
		for(int i=1; i<=13; i++){
			if(list.contains("D " +i) == false){
				sb.append("D "+ i +"\n");
			}
		}
		System.out.print(sb);
	}
}