import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] nums = new int[4][13];
		
		for (int i = 0; i < n; i++) {
			String suit = sc.next();
			int num = sc.nextInt();
			
			if ("S".equals(suit)) {
				nums[0][num - 1] = 1;
			} else if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			}
		}
		
		for (int i = 0; i < 4; i++) {
			String suit = "S";
			
			if (i == 0) {
				suit = "S";
			} else if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			}
			
			for (int j = 0; j < 13; j++) {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			}
		}
	}
}
 import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] nums = new int[4][13];
		
		for (int i = 0; i < n; i++) {
			String suit = sc.next();
			int num = sc.nextInt();
			
			if ("S".equals(suit)) {
				nums[0][num - 1] = 1;
			} else if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			}
		}
		
		for (int i = 0; i < 4; i++) {
			String suit = "S";
			
			if (i == 0) {
				suit = "S";
			} else if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			}
			
			for (int j = 0; j < 13; j++) {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			}
		}
	}
} Main public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] nums = new int[4][13];
		
		for (int i = 0; i < n; i++) {
			String suit = sc.next();
			int num = sc.nextInt();
			
			if ("S".equals(suit)) {
				nums[0][num - 1] = 1;
			} else if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			}
		}
		
		for (int i = 0; i < 4; i++) {
			String suit = "S";
			
			if (i == 0) {
				suit = "S";
			} else if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			}
			
			for (int j = 0; j < 13; j++) {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			}
		}
	} main {
Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] nums = new int[4][13];
		
		for (int i = 0; i < n; i++) {
			String suit = sc.next();
			int num = sc.nextInt();
			
			if ("S".equals(suit)) {
				nums[0][num - 1] = 1;
			} else if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			}
		}
		
		for (int i = 0; i < 4; i++) {
			String suit = "S";
			
			if (i == 0) {
				suit = "S";
			} else if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			}
			
			for (int j = 0; j < 13; j++) {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[][] nums = new int[4][13]; nums new int[4][13] 4 13 for (int i = 0; i < n; i++) {
			String suit = sc.next();
			int num = sc.nextInt();
			
			if ("S".equals(suit)) {
				nums[0][num - 1] = 1;
			} else if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String suit = sc.next();
			int num = sc.nextInt();
			
			if ("S".equals(suit)) {
				nums[0][num - 1] = 1;
			} else if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			}
		} {
			String suit = sc.next();
			int num = sc.nextInt();
			
			if ("S".equals(suit)) {
				nums[0][num - 1] = 1;
			} else if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			}
		} String suit = sc.next(); suit sc.next() sc.next sc int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if ("S".equals(suit)) {
				nums[0][num - 1] = 1;
			} else if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			} "S".equals(suit) "S".equals "S" suit {
				nums[0][num - 1] = 1;
			} nums[0][num - 1] = 1 nums[0][num - 1] nums[0] nums 0 num - 1 num 1 1 if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			} "H".equals(suit) "H".equals "H" suit {
				nums[1][num - 1] = 1;
			} nums[1][num - 1] = 1 nums[1][num - 1] nums[1] nums 1 num - 1 num 1 1 if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			} "C".equals(suit) "C".equals "C" suit {
				nums[2][num - 1] = 1;
			} nums[2][num - 1] = 1 nums[2][num - 1] nums[2] nums 2 num - 1 num 1 1 {
				nums[3][num - 1] = 1;
			} nums[3][num - 1] = 1 nums[3][num - 1] nums[3] nums 3 num - 1 num 1 1 for (int i = 0; i < 4; i++) {
			String suit = "S";
			
			if (i == 0) {
				suit = "S";
			} else if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			}
			
			for (int j = 0; j < 13; j++) {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			}
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			String suit = "S";
			
			if (i == 0) {
				suit = "S";
			} else if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			}
			
			for (int j = 0; j < 13; j++) {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			}
		} {
			String suit = "S";
			
			if (i == 0) {
				suit = "S";
			} else if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			}
			
			for (int j = 0; j < 13; j++) {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			}
		} String suit = "S"; suit "S" if (i == 0) {
				suit = "S";
			} else if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			} i == 0 i 0 {
				suit = "S";
			} suit = "S" suit "S" if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			} i == 1 i 1 {
				suit = "H";
			} suit = "H" suit "H" if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			} i == 2 i 2 {
				suit = "C";
			} suit = "C" suit "C" {
				suit = "D";
			} suit = "D" suit "D" for (int j = 0; j < 13; j++) {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			} {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			} if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				} nums[i][j] == 0 nums[i][j] nums[i] nums i j 0 {
					System.out.println(suit + " " + (j + 1));
				} System.out.println(suit + " " + (j + 1)) System.out.println System.out System System.out suit + " " + (j + 1) suit + " " + (j + 1) suit " " (j + 1) j 1 String[] args args public class Main {
    public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] nums = new int[4][13];
		
		for (int i = 0; i < n; i++) {
			String suit = sc.next();
			int num = sc.nextInt();
			
			if ("S".equals(suit)) {
				nums[0][num - 1] = 1;
			} else if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			}
		}
		
		for (int i = 0; i < 4; i++) {
			String suit = "S";
			
			if (i == 0) {
				suit = "S";
			} else if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			}
			
			for (int j = 0; j < 13; j++) {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			}
		}
	}
} public class Main {
    public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] nums = new int[4][13];
		
		for (int i = 0; i < n; i++) {
			String suit = sc.next();
			int num = sc.nextInt();
			
			if ("S".equals(suit)) {
				nums[0][num - 1] = 1;
			} else if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			}
		}
		
		for (int i = 0; i < 4; i++) {
			String suit = "S";
			
			if (i == 0) {
				suit = "S";
			} else if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			}
			
			for (int j = 0; j < 13; j++) {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			}
		}
	}
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] nums = new int[4][13];
		
		for (int i = 0; i < n; i++) {
			String suit = sc.next();
			int num = sc.nextInt();
			
			if ("S".equals(suit)) {
				nums[0][num - 1] = 1;
			} else if ("H".equals(suit)) {
				nums[1][num - 1] = 1;
			} else if ("C".equals(suit)) {
				nums[2][num - 1] = 1;
			} else {
				nums[3][num - 1] = 1;
			}
		}
		
		for (int i = 0; i < 4; i++) {
			String suit = "S";
			
			if (i == 0) {
				suit = "S";
			} else if (i == 1) {
				suit = "H";
			} else if (i == 2) {
				suit = "C";
			} else {
				suit = "D";
			}
			
			for (int j = 0; j < 13; j++) {
				if (nums[i][j] == 0) {
					System.out.println(suit + " " + (j + 1));
				}
			}
		}
	}
}

