import java.util.Scanner;

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

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