import java.util.Scanner;

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

        int n = sc.nextInt();
        String gara = "SHCD";
        int [][] card = new int[4][13];
        
        for(int i = 0; i < n; i++){
        	
            char inputgara = sc.next().charAt(0);
            int  cardnum = sc.nextInt();
            
            card[gara.indexOf(inputgara)][cardnum - 1] = 1;// 1???????????? 0??????????????????
            
        }
        
        for(int i = 0 ; i < 4 ; i++ ){
        	for(int j = 0 ; j < 13 ; j++ ){
        		if(card[i][j] != 1){
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		}
        	}
        		
        }
           
            
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String [] args){
    	Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        String gara = "SHCD";
        int [][] card = new int[4][13];
        
        for(int i = 0; i < n; i++){
        	
            char inputgara = sc.next().charAt(0);
            int  cardnum = sc.nextInt();
            
            card[gara.indexOf(inputgara)][cardnum - 1] = 1;// 1???????????? 0??????????????????
            
        }
        
        for(int i = 0 ; i < 4 ; i++ ){
        	for(int j = 0 ; j < 13 ; j++ ){
        		if(card[i][j] != 1){
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		}
        	}
        		
        }
           
            
    }
} Main public static void main(String [] args){
    	Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        String gara = "SHCD";
        int [][] card = new int[4][13];
        
        for(int i = 0; i < n; i++){
        	
            char inputgara = sc.next().charAt(0);
            int  cardnum = sc.nextInt();
            
            card[gara.indexOf(inputgara)][cardnum - 1] = 1;// 1???????????? 0??????????????????
            
        }
        
        for(int i = 0 ; i < 4 ; i++ ){
        	for(int j = 0 ; j < 13 ; j++ ){
        		if(card[i][j] != 1){
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		}
        	}
        		
        }
           
            
    } main {
    	Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        String gara = "SHCD";
        int [][] card = new int[4][13];
        
        for(int i = 0; i < n; i++){
        	
            char inputgara = sc.next().charAt(0);
            int  cardnum = sc.nextInt();
            
            card[gara.indexOf(inputgara)][cardnum - 1] = 1;// 1???????????? 0??????????????????
            
        }
        
        for(int i = 0 ; i < 4 ; i++ ){
        	for(int j = 0 ; j < 13 ; j++ ){
        		if(card[i][j] != 1){
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		}
        	}
        		
        }
           
            
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String gara = "SHCD"; gara "SHCD" int [][] card = new int[4][13]; card new int[4][13] 4 13 for(int i = 0; i < n; i++){
        	
            char inputgara = sc.next().charAt(0);
            int  cardnum = sc.nextInt();
            
            card[gara.indexOf(inputgara)][cardnum - 1] = 1;// 1???????????? 0??????????????????
            
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	
            char inputgara = sc.next().charAt(0);
            int  cardnum = sc.nextInt();
            
            card[gara.indexOf(inputgara)][cardnum - 1] = 1;// 1???????????? 0??????????????????
            
        } {
        	
            char inputgara = sc.next().charAt(0);
            int  cardnum = sc.nextInt();
            
            card[gara.indexOf(inputgara)][cardnum - 1] = 1;// 1???????????? 0??????????????????
            
        } char inputgara = sc.next().charAt(0); inputgara sc.next().charAt(0) sc.next().charAt sc.next() sc.next sc 0 int  cardnum = sc.nextInt(); cardnum sc.nextInt() sc.nextInt sc card[gara.indexOf(inputgara)][cardnum - 1] = 1 card[gara.indexOf(inputgara)][cardnum - 1] card[gara.indexOf(inputgara)] card gara.indexOf(inputgara) gara.indexOf gara inputgara cardnum - 1 cardnum 1 1 for(int i = 0 ; i < 4 ; i++ ){
        	for(int j = 0 ; j < 13 ; j++ ){
        		if(card[i][j] != 1){
        			System.out.println( gara.charAt(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(card[i][j] != 1){
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		}
        	}
        		
        } {
        	for(int j = 0 ; j < 13 ; j++ ){
        		if(card[i][j] != 1){
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		}
        	}
        		
        } for(int j = 0 ; j < 13 ; j++ ){
        		if(card[i][j] != 1){
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		}
        	} int j = 0 ; int j = 0 ; j 0 j < 13 j 13 j++ j++ j {
        		if(card[i][j] != 1){
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		}
        	} {
        		if(card[i][j] != 1){
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		}
        	} if(card[i][j] != 1){
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		} card[i][j] != 1 card[i][j] card[i] card i j 1 {
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		} System.out.println( gara.charAt(i) + " " + (j+1)) System.out.println System.out System System.out gara.charAt(i) + " " + (j+1) gara.charAt(i) + " " + (j+1) gara.charAt(i) gara.charAt gara i " " (j+1) j 1 String [] args args
import java.util.Scanner;

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

        int n = sc.nextInt();
        String gara = "SHCD";
        int [][] card = new int[4][13];
        
        for(int i = 0; i < n; i++){
        	
            char inputgara = sc.next().charAt(0);
            int  cardnum = sc.nextInt();
            
            card[gara.indexOf(inputgara)][cardnum - 1] = 1;// 1???????????? 0??????????????????
            
        }
        
        for(int i = 0 ; i < 4 ; i++ ){
        	for(int j = 0 ; j < 13 ; j++ ){
        		if(card[i][j] != 1){
        			System.out.println( gara.charAt(i) + " " + (j+1));
        		}
        	}
        		
        }
           
            
    }
}