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