

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// 52????????????????????????
		int[][] cards = new int[4][13];

		Scanner in = new Scanner(System.in);
		int all_num = in.nextInt();

		// ?????????????????????????????????????´?
		for(int i = 0; i < all_num; i++){

			String mark = in.next();
			int num = in.nextInt();

			if(mark.equals("S")){

				cards[0][num - 1] = 1;

			}else if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			}
		}

		// ????????¨?????????????????????????????????
		char[] marks = {'S', 'H', 'C', 'D'};

		// ???????????????????????§?¶????????????????????????????
		for(int i = 0; i < 4; i++) {

			for(int j = 0; j < 13; j++) {

				if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		// 52????????????????????????
		int[][] cards = new int[4][13];

		Scanner in = new Scanner(System.in);
		int all_num = in.nextInt();

		// ?????????????????????????????????????´?
		for(int i = 0; i < all_num; i++){

			String mark = in.next();
			int num = in.nextInt();

			if(mark.equals("S")){

				cards[0][num - 1] = 1;

			}else if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			}
		}

		// ????????¨?????????????????????????????????
		char[] marks = {'S', 'H', 'C', 'D'};

		// ???????????????????????§?¶????????????????????????????
		for(int i = 0; i < 4; i++) {

			for(int j = 0; j < 13; j++) {

				if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			}
		}
	}
} Main public static void main(String[] args) {

		// 52????????????????????????
		int[][] cards = new int[4][13];

		Scanner in = new Scanner(System.in);
		int all_num = in.nextInt();

		// ?????????????????????????????????????´?
		for(int i = 0; i < all_num; i++){

			String mark = in.next();
			int num = in.nextInt();

			if(mark.equals("S")){

				cards[0][num - 1] = 1;

			}else if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			}
		}

		// ????????¨?????????????????????????????????
		char[] marks = {'S', 'H', 'C', 'D'};

		// ???????????????????????§?¶????????????????????????????
		for(int i = 0; i < 4; i++) {

			for(int j = 0; j < 13; j++) {

				if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			}
		}
	} main {

		// 52????????????????????????
		int[][] cards = new int[4][13];

		Scanner in = new Scanner(System.in);
		int all_num = in.nextInt();

		// ?????????????????????????????????????´?
		for(int i = 0; i < all_num; i++){

			String mark = in.next();
			int num = in.nextInt();

			if(mark.equals("S")){

				cards[0][num - 1] = 1;

			}else if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			}
		}

		// ????????¨?????????????????????????????????
		char[] marks = {'S', 'H', 'C', 'D'};

		// ???????????????????????§?¶????????????????????????????
		for(int i = 0; i < 4; i++) {

			for(int j = 0; j < 13; j++) {

				if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			}
		}
	} int[][] cards = new int[4][13]; cards new int[4][13] 4 13 Scanner in = new Scanner(System.in); in new Scanner(System.in) int all_num = in.nextInt(); all_num in.nextInt() in.nextInt in for(int i = 0; i < all_num; i++){

			String mark = in.next();
			int num = in.nextInt();

			if(mark.equals("S")){

				cards[0][num - 1] = 1;

			}else if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			}
		} int i = 0; int i = 0; i 0 i < all_num i all_num i++ i++ i {

			String mark = in.next();
			int num = in.nextInt();

			if(mark.equals("S")){

				cards[0][num - 1] = 1;

			}else if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			}
		} {

			String mark = in.next();
			int num = in.nextInt();

			if(mark.equals("S")){

				cards[0][num - 1] = 1;

			}else if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			}
		} String mark = in.next(); mark in.next() in.next in int num = in.nextInt(); num in.nextInt() in.nextInt in if(mark.equals("S")){

				cards[0][num - 1] = 1;

			}else if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			} mark.equals("S") mark.equals mark "S" {

				cards[0][num - 1] = 1;

			} cards[0][num - 1] = 1 cards[0][num - 1] cards[0] cards 0 num - 1 num 1 1 if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			} mark.equals("H") mark.equals mark "H" {

				cards[1][num - 1] = 1;

			} cards[1][num - 1] = 1 cards[1][num - 1] cards[1] cards 1 num - 1 num 1 1 if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			} mark.equals("C") mark.equals mark "C" {

				cards[2][num - 1] = 1;

			} cards[2][num - 1] = 1 cards[2][num - 1] cards[2] cards 2 num - 1 num 1 1 if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			} mark.equals("D") mark.equals mark "D" {

				cards[3][num - 1] = 1;
			} cards[3][num - 1] = 1 cards[3][num - 1] cards[3] cards 3 num - 1 num 1 1 char[] marks = {'S', 'H', 'C', 'D'}; marks {'S', 'H', 'C', 'D'} 'S' 'H' 'C' 'D' for(int i = 0; i < 4; i++) {

			for(int j = 0; j < 13; j++) {

				if(cards[i][j] == 0){

					System.out.println(marks[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(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			}
		} {

			for(int j = 0; j < 13; j++) {

				if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			}
		} for(int j = 0; j < 13; j++) {

				if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {

				if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			} {

				if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			} if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				} cards[i][j] == 0 cards[i][j] cards[i] cards i j 0 {

					System.out.println(marks[i] + " " + (j + 1));

				} System.out.println(marks[i] + " " + (j + 1)) System.out.println System.out System System.out marks[i] + " " + (j + 1) marks[i] + " " + (j + 1) marks[i] marks i " " (j + 1) j 1 String[] args args public class Main {

	public static void main(String[] args) {

		// 52????????????????????????
		int[][] cards = new int[4][13];

		Scanner in = new Scanner(System.in);
		int all_num = in.nextInt();

		// ?????????????????????????????????????´?
		for(int i = 0; i < all_num; i++){

			String mark = in.next();
			int num = in.nextInt();

			if(mark.equals("S")){

				cards[0][num - 1] = 1;

			}else if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			}
		}

		// ????????¨?????????????????????????????????
		char[] marks = {'S', 'H', 'C', 'D'};

		// ???????????????????????§?¶????????????????????????????
		for(int i = 0; i < 4; i++) {

			for(int j = 0; j < 13; j++) {

				if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			}
		}
	}
} public class Main {

	public static void main(String[] args) {

		// 52????????????????????????
		int[][] cards = new int[4][13];

		Scanner in = new Scanner(System.in);
		int all_num = in.nextInt();

		// ?????????????????????????????????????´?
		for(int i = 0; i < all_num; i++){

			String mark = in.next();
			int num = in.nextInt();

			if(mark.equals("S")){

				cards[0][num - 1] = 1;

			}else if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			}
		}

		// ????????¨?????????????????????????????????
		char[] marks = {'S', 'H', 'C', 'D'};

		// ???????????????????????§?¶????????????????????????????
		for(int i = 0; i < 4; i++) {

			for(int j = 0; j < 13; j++) {

				if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			}
		}
	}
} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// 52????????????????????????
		int[][] cards = new int[4][13];

		Scanner in = new Scanner(System.in);
		int all_num = in.nextInt();

		// ?????????????????????????????????????´?
		for(int i = 0; i < all_num; i++){

			String mark = in.next();
			int num = in.nextInt();

			if(mark.equals("S")){

				cards[0][num - 1] = 1;

			}else if(mark.equals("H")) {

				cards[1][num - 1] = 1;

			}else if(mark.equals("C")) {

				cards[2][num - 1] = 1;

			}else if(mark.equals("D")) {

				cards[3][num - 1] = 1;
			}
		}

		// ????????¨?????????????????????????????????
		char[] marks = {'S', 'H', 'C', 'D'};

		// ???????????????????????§?¶????????????????????????????
		for(int i = 0; i < 4; i++) {

			for(int j = 0; j < 13; j++) {

				if(cards[i][j] == 0){

					System.out.println(marks[i] + " " + (j + 1));

				}
			}
		}
	}
}