import java.util.Scanner;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		boolean[][] numbers = new boolean[4][13];
		
		for(int i = 0; i < n; i++){
			String mark = scanner.next();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				}
			}
		}
	}

} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		boolean[][] numbers = new boolean[4][13];
		
		for(int i = 0; i < n; i++){
			String mark = scanner.next();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				}
			}
		}
	}

} Main public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		boolean[][] numbers = new boolean[4][13];
		
		for(int i = 0; i < n; i++){
			String mark = scanner.next();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				}
			}
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		boolean[][] numbers = new boolean[4][13];
		
		for(int i = 0; i < n; i++){
			String mark = scanner.next();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				}
			}
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner boolean[][] numbers = new boolean[4][13]; numbers new boolean[4][13] 4 13 for(int i = 0; i < n; i++){
			String mark = scanner.next();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String mark = scanner.next();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		} {
			String mark = scanner.next();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		} String mark = scanner.next(); mark scanner.next() scanner.next scanner int card = scanner.nextInt(); card scanner.nextInt() scanner.nextInt scanner if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			} mark.equals("S") mark.equals mark "S" {
				numbers[0][card-1] = true;
			} numbers[0][card-1] = true numbers[0][card-1] numbers[0] numbers 0 card-1 card 1 true if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			} mark.equals("H") mark.equals mark "H" {
				numbers[1][card-1] = true;
			} numbers[1][card-1] = true numbers[1][card-1] numbers[1] numbers 1 card-1 card 1 true if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			} mark.equals("C") mark.equals mark "C" {
				numbers[2][card-1] = true;
			} numbers[2][card-1] = true numbers[2][card-1] numbers[2] numbers 2 card-1 card 1 true if(mark.equals("D")){
				numbers[3][card-1] = true;
			} mark.equals("D") mark.equals mark "D" {
				numbers[3][card-1] = true;
			} numbers[3][card-1] = true numbers[3][card-1] numbers[3] numbers 3 card-1 card 1 true for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (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(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				}
			}
		} {
			for(int j = 0; j < 13; j++){
				if(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				}
			}
		} for(int j = 0; j < 13; j++){
				if(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				}
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				if(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				}
			} {
				if(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				}
			} if(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				} numbers[i][j] == false numbers[i][j] numbers[i] numbers i j false {
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				} if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					} i==0 i 0 {
						System.out.println("S " + (j + 1));
					} System.out.println("S " + (j + 1)) System.out.println System.out System System.out "S " + (j + 1) "S " (j + 1) j 1 if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					} i==1 i 1 {
						System.out.println("H " + (j + 1));
					} System.out.println("H " + (j + 1)) System.out.println System.out System System.out "H " + (j + 1) "H " (j + 1) j 1 if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					} i==2 i 2 {
						System.out.println("C " + (j + 1));
					} System.out.println("C " + (j + 1)) System.out.println System.out System System.out "C " + (j + 1) "C " (j + 1) j 1 if(i==3){
						System.out.println("D " + (j + 1));
					} i==3 i 3 {
						System.out.println("D " + (j + 1));
					} System.out.println("D " + (j + 1)) System.out.println System.out System System.out "D " + (j + 1) "D " (j + 1) j 1 String[] args args
import java.util.Scanner;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		boolean[][] numbers = new boolean[4][13];
		
		for(int i = 0; i < n; i++){
			String mark = scanner.next();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(numbers[i][j] == false){
					if(i==0){
						System.out.println("S " + (j + 1));
					}else if(i==1){
						System.out.println("H " + (j + 1));
					}else if(i==2){
						System.out.println("C " + (j + 1));
					}else if(i==3){
						System.out.println("D " + (j + 1));
					}
				}
			}
		}
	}

}