import java.util.Scanner;
import java.lang.Math;
public class Main{
    public static String[] MARKS = {"S", "H", "C", "D"};
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int n = Integer.parseInt(scan.nextLine());
	boolean[][] cards = new boolean[4][14];
	for (int cnt = 0; cnt < n; cnt++) {
	    String input = scan.nextLine();
	    String[] sequence = input.split(" ");
	    String[] inputs = input.split(" ");
	    int number = Integer.parseInt(inputs[1]);
	    if (inputs[0].equals("S")) {
		cards[0][number] = true;
	    } else if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    }
	}
	for (int i = 0; i < 4; i++) {
	    for (int j = 1; j < 14; j++) {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    }
	}
    }
} import java.util.Scanner; Scanner java.util import java.lang.Math; Math java.lang public class Main{
    public static String[] MARKS = {"S", "H", "C", "D"};
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int n = Integer.parseInt(scan.nextLine());
	boolean[][] cards = new boolean[4][14];
	for (int cnt = 0; cnt < n; cnt++) {
	    String input = scan.nextLine();
	    String[] sequence = input.split(" ");
	    String[] inputs = input.split(" ");
	    int number = Integer.parseInt(inputs[1]);
	    if (inputs[0].equals("S")) {
		cards[0][number] = true;
	    } else if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    }
	}
	for (int i = 0; i < 4; i++) {
	    for (int j = 1; j < 14; j++) {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    }
	}
    }
} Main public static String[] MARKS = {"S", "H", "C", "D"}; MARKS {"S", "H", "C", "D"} "S" "H" "C" "D" public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int n = Integer.parseInt(scan.nextLine());
	boolean[][] cards = new boolean[4][14];
	for (int cnt = 0; cnt < n; cnt++) {
	    String input = scan.nextLine();
	    String[] sequence = input.split(" ");
	    String[] inputs = input.split(" ");
	    int number = Integer.parseInt(inputs[1]);
	    if (inputs[0].equals("S")) {
		cards[0][number] = true;
	    } else if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    }
	}
	for (int i = 0; i < 4; i++) {
	    for (int j = 1; j < 14; j++) {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    }
	}
    } main {
	Scanner scan = new Scanner(System.in);
	int n = Integer.parseInt(scan.nextLine());
	boolean[][] cards = new boolean[4][14];
	for (int cnt = 0; cnt < n; cnt++) {
	    String input = scan.nextLine();
	    String[] sequence = input.split(" ");
	    String[] inputs = input.split(" ");
	    int number = Integer.parseInt(inputs[1]);
	    if (inputs[0].equals("S")) {
		cards[0][number] = true;
	    } else if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    }
	}
	for (int i = 0; i < 4; i++) {
	    for (int j = 1; j < 14; j++) {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    }
	}
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.parseInt(scan.nextLine()); n Integer.parseInt(scan.nextLine()) Integer.parseInt Integer scan.nextLine() scan.nextLine scan boolean[][] cards = new boolean[4][14]; cards new boolean[4][14] 4 14 for (int cnt = 0; cnt < n; cnt++) {
	    String input = scan.nextLine();
	    String[] sequence = input.split(" ");
	    String[] inputs = input.split(" ");
	    int number = Integer.parseInt(inputs[1]);
	    if (inputs[0].equals("S")) {
		cards[0][number] = true;
	    } else if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    }
	} int cnt = 0; int cnt = 0; cnt 0 cnt < n cnt n cnt++ cnt++ cnt {
	    String input = scan.nextLine();
	    String[] sequence = input.split(" ");
	    String[] inputs = input.split(" ");
	    int number = Integer.parseInt(inputs[1]);
	    if (inputs[0].equals("S")) {
		cards[0][number] = true;
	    } else if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    }
	} {
	    String input = scan.nextLine();
	    String[] sequence = input.split(" ");
	    String[] inputs = input.split(" ");
	    int number = Integer.parseInt(inputs[1]);
	    if (inputs[0].equals("S")) {
		cards[0][number] = true;
	    } else if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    }
	} String input = scan.nextLine(); input scan.nextLine() scan.nextLine scan String[] sequence = input.split(" "); sequence input.split(" ") input.split input " " String[] inputs = input.split(" "); inputs input.split(" ") input.split input " " int number = Integer.parseInt(inputs[1]); number Integer.parseInt(inputs[1]) Integer.parseInt Integer inputs[1] inputs 1 if (inputs[0].equals("S")) {
		cards[0][number] = true;
	    } else if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    } inputs[0].equals("S") inputs[0].equals inputs[0] inputs 0 "S" {
		cards[0][number] = true;
	    } cards[0][number] = true cards[0][number] cards[0] cards 0 number true if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    } inputs[0].equals("H") inputs[0].equals inputs[0] inputs 0 "H" {
		cards[1][number] = true;
	    } cards[1][number] = true cards[1][number] cards[1] cards 1 number true if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    } inputs[0].equals("C") inputs[0].equals inputs[0] inputs 0 "C" {
		cards[2][number] = true;
	    } cards[2][number] = true cards[2][number] cards[2] cards 2 number true if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    } inputs[0].equals("D") inputs[0].equals inputs[0] inputs 0 "D" {
		cards[3][number] = true;
	    } cards[3][number] = true cards[3][number] cards[3] cards 3 number true for (int i = 0; i < 4; i++) {
	    for (int j = 1; j < 14; j++) {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    }
	} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
	    for (int j = 1; j < 14; j++) {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    }
	} {
	    for (int j = 1; j < 14; j++) {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    }
	} for (int j = 1; j < 14; j++) {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    } int j = 1; int j = 1; j 1 j < 14 j 14 j++ j++ j {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    } {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    } if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		} !cards[i][j] cards[i][j] cards[i] cards i j {
		    System.out.println(MARKS[i] + " " + j);
		} System.out.println(MARKS[i] + " " + j) System.out.println System.out System System.out MARKS[i] + " " + j MARKS[i] + " " + j MARKS[i] MARKS i " " j String[] args args public class Main{
    public static String[] MARKS = {"S", "H", "C", "D"};
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int n = Integer.parseInt(scan.nextLine());
	boolean[][] cards = new boolean[4][14];
	for (int cnt = 0; cnt < n; cnt++) {
	    String input = scan.nextLine();
	    String[] sequence = input.split(" ");
	    String[] inputs = input.split(" ");
	    int number = Integer.parseInt(inputs[1]);
	    if (inputs[0].equals("S")) {
		cards[0][number] = true;
	    } else if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    }
	}
	for (int i = 0; i < 4; i++) {
	    for (int j = 1; j < 14; j++) {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    }
	}
    }
} public class Main{
    public static String[] MARKS = {"S", "H", "C", "D"};
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int n = Integer.parseInt(scan.nextLine());
	boolean[][] cards = new boolean[4][14];
	for (int cnt = 0; cnt < n; cnt++) {
	    String input = scan.nextLine();
	    String[] sequence = input.split(" ");
	    String[] inputs = input.split(" ");
	    int number = Integer.parseInt(inputs[1]);
	    if (inputs[0].equals("S")) {
		cards[0][number] = true;
	    } else if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    }
	}
	for (int i = 0; i < 4; i++) {
	    for (int j = 1; j < 14; j++) {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    }
	}
    }
} Main
import java.util.Scanner;
import java.lang.Math;
public class Main{
    public static String[] MARKS = {"S", "H", "C", "D"};
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int n = Integer.parseInt(scan.nextLine());
	boolean[][] cards = new boolean[4][14];
	for (int cnt = 0; cnt < n; cnt++) {
	    String input = scan.nextLine();
	    String[] sequence = input.split(" ");
	    String[] inputs = input.split(" ");
	    int number = Integer.parseInt(inputs[1]);
	    if (inputs[0].equals("S")) {
		cards[0][number] = true;
	    } else if (inputs[0].equals("H")) {
		cards[1][number] = true;
	    } else if (inputs[0].equals("C")) {
		cards[2][number] = true;
	    } else if (inputs[0].equals("D")) {
		cards[3][number] = true;
	    }
	}
	for (int i = 0; i < 4; i++) {
	    for (int j = 1; j < 14; j++) {
		if (!cards[i][j]) {
		    System.out.println(MARKS[i] + " " + j);
		}
	    }
	}
    }
}