import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
	
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		boolean[][] has_cards = new boolean[4][13];
		Map<String, Integer> sutes = new HashMap<String, Integer>();
		String[] suite_rev = new String[]{"S", "H", "C", "D"};
		sutes.put("S", 0);
		sutes.put("H", 1);
		sutes.put("C", 2);
		sutes.put("D", 3);
		
		final int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			final String sute = sc.next();
			final int num = sc.nextInt() - 1;
			
			has_cards[sutes.get(sute)][num] = true;
		}
		
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			}
		}
		
	}

} import java.util.Arrays; Arrays java.util import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {
	
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		boolean[][] has_cards = new boolean[4][13];
		Map<String, Integer> sutes = new HashMap<String, Integer>();
		String[] suite_rev = new String[]{"S", "H", "C", "D"};
		sutes.put("S", 0);
		sutes.put("H", 1);
		sutes.put("C", 2);
		sutes.put("D", 3);
		
		final int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			final String sute = sc.next();
			final int num = sc.nextInt() - 1;
			
			has_cards[sutes.get(sute)][num] = true;
		}
		
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			}
		}
		
	}

} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		boolean[][] has_cards = new boolean[4][13];
		Map<String, Integer> sutes = new HashMap<String, Integer>();
		String[] suite_rev = new String[]{"S", "H", "C", "D"};
		sutes.put("S", 0);
		sutes.put("H", 1);
		sutes.put("C", 2);
		sutes.put("D", 3);
		
		final int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			final String sute = sc.next();
			final int num = sc.nextInt() - 1;
			
			has_cards[sutes.get(sute)][num] = true;
		}
		
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			}
		}
		
	} main {
		Scanner sc = new Scanner(System.in);

		boolean[][] has_cards = new boolean[4][13];
		Map<String, Integer> sutes = new HashMap<String, Integer>();
		String[] suite_rev = new String[]{"S", "H", "C", "D"};
		sutes.put("S", 0);
		sutes.put("H", 1);
		sutes.put("C", 2);
		sutes.put("D", 3);
		
		final int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			final String sute = sc.next();
			final int num = sc.nextInt() - 1;
			
			has_cards[sutes.get(sute)][num] = true;
		}
		
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			}
		}
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) boolean[][] has_cards = new boolean[4][13]; has_cards new boolean[4][13] 4 13 Map<String, Integer> sutes = new HashMap<String, Integer>(); sutes new HashMap<String, Integer>() String[] suite_rev = new String[]{"S", "H", "C", "D"}; suite_rev new String[]{"S", "H", "C", "D"} sutes.put("S", 0) sutes.put sutes "S" 0 sutes.put("H", 1) sutes.put sutes "H" 1 sutes.put("C", 2) sutes.put sutes "C" 2 sutes.put("D", 3) sutes.put sutes "D" 3 final int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i = 0; i < n; i++){
			final String sute = sc.next();
			final int num = sc.nextInt() - 1;
			
			has_cards[sutes.get(sute)][num] = true;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			final String sute = sc.next();
			final int num = sc.nextInt() - 1;
			
			has_cards[sutes.get(sute)][num] = true;
		} {
			final String sute = sc.next();
			final int num = sc.nextInt() - 1;
			
			has_cards[sutes.get(sute)][num] = true;
		} final String sute = sc.next(); sute sc.next() sc.next sc final int num = sc.nextInt() - 1; num sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 has_cards[sutes.get(sute)][num] = true has_cards[sutes.get(sute)][num] has_cards[sutes.get(sute)] has_cards sutes.get(sute) sutes.get sutes sute num true for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			}
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			for(int j = 0; j < 13; j++){
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			}
		} {
			for(int j = 0; j < 13; j++){
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			}
		} for(int j = 0; j < 13; j++){
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			} {
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			} if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				} !has_cards[i][j] has_cards[i][j] has_cards[i] has_cards i j {
					System.out.println(suite_rev[i] + " " + (j + 1));
				} System.out.println(suite_rev[i] + " " + (j + 1)) System.out.println System.out System System.out suite_rev[i] + " " + (j + 1) suite_rev[i] + " " + (j + 1) suite_rev[i] suite_rev i " " (j + 1) j 1 String args[] args public class Main {
	
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		boolean[][] has_cards = new boolean[4][13];
		Map<String, Integer> sutes = new HashMap<String, Integer>();
		String[] suite_rev = new String[]{"S", "H", "C", "D"};
		sutes.put("S", 0);
		sutes.put("H", 1);
		sutes.put("C", 2);
		sutes.put("D", 3);
		
		final int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			final String sute = sc.next();
			final int num = sc.nextInt() - 1;
			
			has_cards[sutes.get(sute)][num] = true;
		}
		
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			}
		}
		
	}

} public class Main {
	
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		boolean[][] has_cards = new boolean[4][13];
		Map<String, Integer> sutes = new HashMap<String, Integer>();
		String[] suite_rev = new String[]{"S", "H", "C", "D"};
		sutes.put("S", 0);
		sutes.put("H", 1);
		sutes.put("C", 2);
		sutes.put("D", 3);
		
		final int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			final String sute = sc.next();
			final int num = sc.nextInt() - 1;
			
			has_cards[sutes.get(sute)][num] = true;
		}
		
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			}
		}
		
	}

} Main
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
	
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		boolean[][] has_cards = new boolean[4][13];
		Map<String, Integer> sutes = new HashMap<String, Integer>();
		String[] suite_rev = new String[]{"S", "H", "C", "D"};
		sutes.put("S", 0);
		sutes.put("H", 1);
		sutes.put("C", 2);
		sutes.put("D", 3);
		
		final int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			final String sute = sc.next();
			final int num = sc.nextInt() - 1;
			
			has_cards[sutes.get(sute)][num] = true;
		}
		
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!has_cards[i][j]){
					System.out.println(suite_rev[i] + " " + (j + 1));
				}
			}
		}
		
	}

}