import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		int[][] arr = new int[4][13];
		 String[] mark = {"S","H","C","D"};
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				arr[i][j] = 0;
			}
		}
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int j=0; j<n; j++){
			String S = scan.next();
			int number = scan.nextInt() - 1;
			
			if(S.equals("S")) {arr[0][number]=1;}
			else if(S.equals("H")) {arr[1][number]=1;}
			else if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;}
		}
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				if(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));}
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		int[][] arr = new int[4][13];
		 String[] mark = {"S","H","C","D"};
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				arr[i][j] = 0;
			}
		}
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int j=0; j<n; j++){
			String S = scan.next();
			int number = scan.nextInt() - 1;
			
			if(S.equals("S")) {arr[0][number]=1;}
			else if(S.equals("H")) {arr[1][number]=1;}
			else if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;}
		}
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				if(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));}
			}
		}
	}
} Main public static void main(String[] args){
		int[][] arr = new int[4][13];
		 String[] mark = {"S","H","C","D"};
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				arr[i][j] = 0;
			}
		}
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int j=0; j<n; j++){
			String S = scan.next();
			int number = scan.nextInt() - 1;
			
			if(S.equals("S")) {arr[0][number]=1;}
			else if(S.equals("H")) {arr[1][number]=1;}
			else if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;}
		}
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				if(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));}
			}
		}
	} main {
		int[][] arr = new int[4][13];
		 String[] mark = {"S","H","C","D"};
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				arr[i][j] = 0;
			}
		}
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int j=0; j<n; j++){
			String S = scan.next();
			int number = scan.nextInt() - 1;
			
			if(S.equals("S")) {arr[0][number]=1;}
			else if(S.equals("H")) {arr[1][number]=1;}
			else if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;}
		}
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				if(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));}
			}
		}
	} int[][] arr = new int[4][13]; arr new int[4][13] 4 13 String[] mark = {"S","H","C","D"}; mark {"S","H","C","D"} "S" "H" "C" "D" for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				arr[i][j] = 0;
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			for(int j=0; j<13; j++){
				arr[i][j] = 0;
			}
		} {
			for(int j=0; j<13; j++){
				arr[i][j] = 0;
			}
		} for(int j=0; j<13; j++){
				arr[i][j] = 0;
			} int j=0; int j=0; j 0 j<13 j 13 j++ j++ j {
				arr[i][j] = 0;
			} {
				arr[i][j] = 0;
			} arr[i][j] = 0 arr[i][j] arr[i] arr i j 0 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan for(int j=0; j<n; j++){
			String S = scan.next();
			int number = scan.nextInt() - 1;
			
			if(S.equals("S")) {arr[0][number]=1;}
			else if(S.equals("H")) {arr[1][number]=1;}
			else if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;}
		} int j=0; int j=0; j 0 j<n j n j++ j++ j {
			String S = scan.next();
			int number = scan.nextInt() - 1;
			
			if(S.equals("S")) {arr[0][number]=1;}
			else if(S.equals("H")) {arr[1][number]=1;}
			else if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;}
		} {
			String S = scan.next();
			int number = scan.nextInt() - 1;
			
			if(S.equals("S")) {arr[0][number]=1;}
			else if(S.equals("H")) {arr[1][number]=1;}
			else if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;}
		} String S = scan.next(); S scan.next() scan.next scan int number = scan.nextInt() - 1; number scan.nextInt() - 1 scan.nextInt() scan.nextInt scan 1 if(S.equals("S")) {arr[0][number]=1;}
			else if(S.equals("H")) {arr[1][number]=1;}
			else if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;} S.equals("S") S.equals S "S" {arr[0][number]=1;} arr[0][number]=1 arr[0][number] arr[0] arr 0 number 1 if(S.equals("H")) {arr[1][number]=1;}
			else if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;} S.equals("H") S.equals S "H" {arr[1][number]=1;} arr[1][number]=1 arr[1][number] arr[1] arr 1 number 1 if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;} S.equals("C") S.equals S "C" {arr[2][number]=1;} arr[2][number]=1 arr[2][number] arr[2] arr 2 number 1 {arr[3][number]=1;} arr[3][number]=1 arr[3][number] arr[3] arr 3 number 1 for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				if(arr[i][j] == 0) {System.out.println(mark[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(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));}
			}
		} {
			for(int j=0; j<13; j++){
				if(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));}
			}
		} for(int j=0; j<13; j++){
				if(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));}
			} int j=0; int j=0; j 0 j<13 j 13 j++ j++ j {
				if(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));}
			} {
				if(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));}
			} if(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));} arr[i][j] == 0 arr[i][j] arr[i] arr i j 0 {System.out.println(mark[i] + " " + (j+1));} System.out.println(mark[i] + " " + (j+1)) System.out.println System.out System System.out mark[i] + " " + (j+1) mark[i] + " " + (j+1) mark[i] mark i " " (j+1) j 1 String[] args args public class Main{
	public static void main(String[] args){
		int[][] arr = new int[4][13];
		 String[] mark = {"S","H","C","D"};
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				arr[i][j] = 0;
			}
		}
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int j=0; j<n; j++){
			String S = scan.next();
			int number = scan.nextInt() - 1;
			
			if(S.equals("S")) {arr[0][number]=1;}
			else if(S.equals("H")) {arr[1][number]=1;}
			else if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;}
		}
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				if(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));}
			}
		}
	}
} public class Main{
	public static void main(String[] args){
		int[][] arr = new int[4][13];
		 String[] mark = {"S","H","C","D"};
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				arr[i][j] = 0;
			}
		}
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int j=0; j<n; j++){
			String S = scan.next();
			int number = scan.nextInt() - 1;
			
			if(S.equals("S")) {arr[0][number]=1;}
			else if(S.equals("H")) {arr[1][number]=1;}
			else if(S.equals("C")) {arr[2][number]=1;}
			else {arr[3][number]=1;}
		}
		for(int i=0; i<4; i++) {
			for(int j=0; j<13; j++){
				if(arr[i][j] == 0) {System.out.println(mark[i] + " " + (j+1));}
			}
		}
	}
} Main
import java.util.Scanner;

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