import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int card[][] = new int[4][14];
		char[] m = { 'S', 'H', 'C', 'D' };

		for (int i = 0; i < n; i++) {
			String pic = scan.next();
			int num = scan.nextInt() - 1;
			if ("S".equals(pic)) {
				card[0][num] = 1;
			} else if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			}
		}		

		for(int i =0;i<=3;i++){
			for(int j =0;j<13;j++){
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			}
		}

	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int card[][] = new int[4][14];
		char[] m = { 'S', 'H', 'C', 'D' };

		for (int i = 0; i < n; i++) {
			String pic = scan.next();
			int num = scan.nextInt() - 1;
			if ("S".equals(pic)) {
				card[0][num] = 1;
			} else if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			}
		}		

		for(int i =0;i<=3;i++){
			for(int j =0;j<13;j++){
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			}
		}

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int card[][] = new int[4][14];
		char[] m = { 'S', 'H', 'C', 'D' };

		for (int i = 0; i < n; i++) {
			String pic = scan.next();
			int num = scan.nextInt() - 1;
			if ("S".equals(pic)) {
				card[0][num] = 1;
			} else if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			}
		}		

		for(int i =0;i<=3;i++){
			for(int j =0;j<13;j++){
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			}
		}

	} main {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int card[][] = new int[4][14];
		char[] m = { 'S', 'H', 'C', 'D' };

		for (int i = 0; i < n; i++) {
			String pic = scan.next();
			int num = scan.nextInt() - 1;
			if ("S".equals(pic)) {
				card[0][num] = 1;
			} else if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			}
		}		

		for(int i =0;i<=3;i++){
			for(int j =0;j<13;j++){
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			}
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int card[][] = new int[4][14]; card new int[4][14] 4 14 char[] m = { 'S', 'H', 'C', 'D' }; m { 'S', 'H', 'C', 'D' } 'S' 'H' 'C' 'D' for (int i = 0; i < n; i++) {
			String pic = scan.next();
			int num = scan.nextInt() - 1;
			if ("S".equals(pic)) {
				card[0][num] = 1;
			} else if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String pic = scan.next();
			int num = scan.nextInt() - 1;
			if ("S".equals(pic)) {
				card[0][num] = 1;
			} else if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			}
		} {
			String pic = scan.next();
			int num = scan.nextInt() - 1;
			if ("S".equals(pic)) {
				card[0][num] = 1;
			} else if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			}
		} String pic = scan.next(); pic scan.next() scan.next scan int num = scan.nextInt() - 1; num scan.nextInt() - 1 scan.nextInt() scan.nextInt scan 1 if ("S".equals(pic)) {
				card[0][num] = 1;
			} else if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			} "S".equals(pic) "S".equals "S" pic {
				card[0][num] = 1;
			} card[0][num] = 1 card[0][num] card[0] card 0 num 1 if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			} "H".equals(pic) "H".equals "H" pic {
				card[1][num] = 1;
			} card[1][num] = 1 card[1][num] card[1] card 1 num 1 if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			} "C".equals(pic) "C".equals "C" pic {
				card[2][num] = 1;
			} card[2][num] = 1 card[2][num] card[2] card 2 num 1 {
				card[3][num] = 1;
			} card[3][num] = 1 card[3][num] card[3] card 3 num 1 for(int i =0;i<=3;i++){
			for(int j =0;j<13;j++){
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			}
		} int i =0; int i =0; i 0 i<=3 i 3 i++ i++ i {
			for(int j =0;j<13;j++){
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			}
		} {
			for(int j =0;j<13;j++){
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			}
		} for(int j =0;j<13;j++){
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			} int j =0; int j =0; j 0 j<13 j 13 j++ j++ j {
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			} {
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			} if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				} card[i][j]==0 card[i][j] card[i] card i j 0 {
					System.out.printf("%s %d%n",m[i],j+1);
				} System.out.printf("%s %d%n",m[i],j+1) System.out.printf System.out System System.out "%s %d%n" m[i] m i j+1 j 1 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int card[][] = new int[4][14];
		char[] m = { 'S', 'H', 'C', 'D' };

		for (int i = 0; i < n; i++) {
			String pic = scan.next();
			int num = scan.nextInt() - 1;
			if ("S".equals(pic)) {
				card[0][num] = 1;
			} else if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			}
		}		

		for(int i =0;i<=3;i++){
			for(int j =0;j<13;j++){
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			}
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int card[][] = new int[4][14];
		char[] m = { 'S', 'H', 'C', 'D' };

		for (int i = 0; i < n; i++) {
			String pic = scan.next();
			int num = scan.nextInt() - 1;
			if ("S".equals(pic)) {
				card[0][num] = 1;
			} else if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			}
		}		

		for(int i =0;i<=3;i++){
			for(int j =0;j<13;j++){
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			}
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int card[][] = new int[4][14];
		char[] m = { 'S', 'H', 'C', 'D' };

		for (int i = 0; i < n; i++) {
			String pic = scan.next();
			int num = scan.nextInt() - 1;
			if ("S".equals(pic)) {
				card[0][num] = 1;
			} else if ("H".equals(pic)) {
				card[1][num] = 1;
			} else if ("C".equals(pic)) {
				card[2][num] = 1;
			} else {
				card[3][num] = 1;
			}
		}		

		for(int i =0;i<=3;i++){
			for(int j =0;j<13;j++){
				if(card[i][j]==0){
					System.out.printf("%s %d%n",m[i],j+1);
				}
			}
		}

	}

}