import java.io.File;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;
import java.util.Scanner;

public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		boolean[][] T = new boolean[4][13];
		for(int i = 0; i < 4; i++) T[i] = new boolean[13];
		String[] mm = {"S", "H", "C", "D"};
		
		int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			String m = sc.next();
			int num = sc.nextInt();
			if(m.equals("S")) T[0][num-1] = true;
			if(m.equals("H")) T[1][num-1] = true;
			if(m.equals("C")) T[2][num-1] = true;
			if(m.equals("D")) T[3][num-1] = true;
		}
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			}
		}
	}
} import java.io.File; File java.io import java.io.IOException; IOException java.io import java.util.ArrayDeque; ArrayDeque java.util import java.util.ArrayList; ArrayList java.util import java.util.Deque; Deque java.util import java.util.Scanner; Scanner java.util public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		boolean[][] T = new boolean[4][13];
		for(int i = 0; i < 4; i++) T[i] = new boolean[13];
		String[] mm = {"S", "H", "C", "D"};
		
		int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			String m = sc.next();
			int num = sc.nextInt();
			if(m.equals("S")) T[0][num-1] = true;
			if(m.equals("H")) T[1][num-1] = true;
			if(m.equals("C")) T[2][num-1] = true;
			if(m.equals("D")) T[3][num-1] = true;
		}
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			}
		}
	}
} Main public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		boolean[][] T = new boolean[4][13];
		for(int i = 0; i < 4; i++) T[i] = new boolean[13];
		String[] mm = {"S", "H", "C", "D"};
		
		int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			String m = sc.next();
			int num = sc.nextInt();
			if(m.equals("S")) T[0][num-1] = true;
			if(m.equals("H")) T[1][num-1] = true;
			if(m.equals("C")) T[2][num-1] = true;
			if(m.equals("D")) T[3][num-1] = true;
		}
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			}
		}
	} main {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		boolean[][] T = new boolean[4][13];
		for(int i = 0; i < 4; i++) T[i] = new boolean[13];
		String[] mm = {"S", "H", "C", "D"};
		
		int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			String m = sc.next();
			int num = sc.nextInt();
			if(m.equals("S")) T[0][num-1] = true;
			if(m.equals("H")) T[1][num-1] = true;
			if(m.equals("C")) T[2][num-1] = true;
			if(m.equals("D")) T[3][num-1] = true;
		}
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) boolean[][] T = new boolean[4][13]; T new boolean[4][13] 4 13 for(int i = 0; i < 4; i++) T[i] = new boolean[13]; int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i T[i] = new boolean[13]; T[i] = new boolean[13] T[i] T i new boolean[13] 13 String[] mm = {"S", "H", "C", "D"}; mm {"S", "H", "C", "D"} "S" "H" "C" "D" int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i = 0; i < n; i++){
			String m = sc.next();
			int num = sc.nextInt();
			if(m.equals("S")) T[0][num-1] = true;
			if(m.equals("H")) T[1][num-1] = true;
			if(m.equals("C")) T[2][num-1] = true;
			if(m.equals("D")) T[3][num-1] = true;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String m = sc.next();
			int num = sc.nextInt();
			if(m.equals("S")) T[0][num-1] = true;
			if(m.equals("H")) T[1][num-1] = true;
			if(m.equals("C")) T[2][num-1] = true;
			if(m.equals("D")) T[3][num-1] = true;
		} {
			String m = sc.next();
			int num = sc.nextInt();
			if(m.equals("S")) T[0][num-1] = true;
			if(m.equals("H")) T[1][num-1] = true;
			if(m.equals("C")) T[2][num-1] = true;
			if(m.equals("D")) T[3][num-1] = true;
		} String m = sc.next(); m sc.next() sc.next sc int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if(m.equals("S")) T[0][num-1] = true; m.equals("S") m.equals m "S" T[0][num-1] = true T[0][num-1] T[0] T 0 num-1 num 1 true if(m.equals("H")) T[1][num-1] = true; m.equals("H") m.equals m "H" T[1][num-1] = true T[1][num-1] T[1] T 1 num-1 num 1 true if(m.equals("C")) T[2][num-1] = true; m.equals("C") m.equals m "C" T[2][num-1] = true T[2][num-1] T[2] T 2 num-1 num 1 true if(m.equals("D")) T[3][num-1] = true; m.equals("D") m.equals m "D" T[3][num-1] = true T[3][num-1] T[3] T 3 num-1 num 1 true for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!T[i][j]){
					System.out.println(mm[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(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			}
		} {
			for(int j = 0; j < 13; j++){
				if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			}
		} for(int j = 0; j < 13; j++){
				if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			} {
				if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			} if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				} !T[i][j] T[i][j] T[i] T i j {
					System.out.println(mm[i] + " " + (j+1));
				} System.out.println(mm[i] + " " + (j+1)) System.out.println System.out System System.out mm[i] + " " + (j+1) mm[i] + " " + (j+1) mm[i] mm i " " (j+1) j 1 String[] args args public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		boolean[][] T = new boolean[4][13];
		for(int i = 0; i < 4; i++) T[i] = new boolean[13];
		String[] mm = {"S", "H", "C", "D"};
		
		int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			String m = sc.next();
			int num = sc.nextInt();
			if(m.equals("S")) T[0][num-1] = true;
			if(m.equals("H")) T[1][num-1] = true;
			if(m.equals("C")) T[2][num-1] = true;
			if(m.equals("D")) T[3][num-1] = true;
		}
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			}
		}
	}
} public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		boolean[][] T = new boolean[4][13];
		for(int i = 0; i < 4; i++) T[i] = new boolean[13];
		String[] mm = {"S", "H", "C", "D"};
		
		int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			String m = sc.next();
			int num = sc.nextInt();
			if(m.equals("S")) T[0][num-1] = true;
			if(m.equals("H")) T[1][num-1] = true;
			if(m.equals("C")) T[2][num-1] = true;
			if(m.equals("D")) T[3][num-1] = true;
		}
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			}
		}
	}
} Main
import java.io.File;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;
import java.util.Scanner;

public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		boolean[][] T = new boolean[4][13];
		for(int i = 0; i < 4; i++) T[i] = new boolean[13];
		String[] mm = {"S", "H", "C", "D"};
		
		int n = sc.nextInt();
		for(int i = 0; i < n; i++){
			String m = sc.next();
			int num = sc.nextInt();
			if(m.equals("S")) T[0][num-1] = true;
			if(m.equals("H")) T[1][num-1] = true;
			if(m.equals("C")) T[2][num-1] = true;
			if(m.equals("D")) T[3][num-1] = true;
		}
		
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(!T[i][j]){
					System.out.println(mm[i] + " " + (j+1));
				}
			}
		}
	}
}
