import java.util.Scanner;

public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        boolean[][] cardHasFlag = new boolean[4][13];
        
        int n = sc.nextInt();
        
        for (int i = 0; i < n; i++) {
            String make = sc.next();
            int card = sc.nextInt();
            
            switch(make) {
                case "S" :
                    cardHasFlag[0][card-1] = true;
                    break;
                case "H" :
                    cardHasFlag[1][card-1] = true;
                    break;
                case "C" :
                    cardHasFlag[2][card-1] = true;
                    break;
                case "D" :
                    cardHasFlag[3][card-1] = true;
                    break;
            }
        }
        
        for (int i = 0; i < 4; i++) {
            for (int j = 0 ; j < 13; j++) {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        boolean[][] cardHasFlag = new boolean[4][13];
        
        int n = sc.nextInt();
        
        for (int i = 0; i < n; i++) {
            String make = sc.next();
            int card = sc.nextInt();
            
            switch(make) {
                case "S" :
                    cardHasFlag[0][card-1] = true;
                    break;
                case "H" :
                    cardHasFlag[1][card-1] = true;
                    break;
                case "C" :
                    cardHasFlag[2][card-1] = true;
                    break;
                case "D" :
                    cardHasFlag[3][card-1] = true;
                    break;
            }
        }
        
        for (int i = 0; i < 4; i++) {
            for (int j = 0 ; j < 13; j++) {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            }
        }
    }
} Main public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        boolean[][] cardHasFlag = new boolean[4][13];
        
        int n = sc.nextInt();
        
        for (int i = 0; i < n; i++) {
            String make = sc.next();
            int card = sc.nextInt();
            
            switch(make) {
                case "S" :
                    cardHasFlag[0][card-1] = true;
                    break;
                case "H" :
                    cardHasFlag[1][card-1] = true;
                    break;
                case "C" :
                    cardHasFlag[2][card-1] = true;
                    break;
                case "D" :
                    cardHasFlag[3][card-1] = true;
                    break;
            }
        }
        
        for (int i = 0; i < 4; i++) {
            for (int j = 0 ; j < 13; j++) {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        
        boolean[][] cardHasFlag = new boolean[4][13];
        
        int n = sc.nextInt();
        
        for (int i = 0; i < n; i++) {
            String make = sc.next();
            int card = sc.nextInt();
            
            switch(make) {
                case "S" :
                    cardHasFlag[0][card-1] = true;
                    break;
                case "H" :
                    cardHasFlag[1][card-1] = true;
                    break;
                case "C" :
                    cardHasFlag[2][card-1] = true;
                    break;
                case "D" :
                    cardHasFlag[3][card-1] = true;
                    break;
            }
        }
        
        for (int i = 0; i < 4; i++) {
            for (int j = 0 ; j < 13; j++) {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) boolean[][] cardHasFlag = new boolean[4][13]; cardHasFlag new boolean[4][13] 4 13 int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for (int i = 0; i < n; i++) {
            String make = sc.next();
            int card = sc.nextInt();
            
            switch(make) {
                case "S" :
                    cardHasFlag[0][card-1] = true;
                    break;
                case "H" :
                    cardHasFlag[1][card-1] = true;
                    break;
                case "C" :
                    cardHasFlag[2][card-1] = true;
                    break;
                case "D" :
                    cardHasFlag[3][card-1] = true;
                    break;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String make = sc.next();
            int card = sc.nextInt();
            
            switch(make) {
                case "S" :
                    cardHasFlag[0][card-1] = true;
                    break;
                case "H" :
                    cardHasFlag[1][card-1] = true;
                    break;
                case "C" :
                    cardHasFlag[2][card-1] = true;
                    break;
                case "D" :
                    cardHasFlag[3][card-1] = true;
                    break;
            }
        } {
            String make = sc.next();
            int card = sc.nextInt();
            
            switch(make) {
                case "S" :
                    cardHasFlag[0][card-1] = true;
                    break;
                case "H" :
                    cardHasFlag[1][card-1] = true;
                    break;
                case "C" :
                    cardHasFlag[2][card-1] = true;
                    break;
                case "D" :
                    cardHasFlag[3][card-1] = true;
                    break;
            }
        } String make = sc.next(); make sc.next() sc.next sc int card = sc.nextInt(); card sc.nextInt() sc.nextInt sc switch(make) {
                case "S" :
                    cardHasFlag[0][card-1] = true;
                    break;
                case "H" :
                    cardHasFlag[1][card-1] = true;
                    break;
                case "C" :
                    cardHasFlag[2][card-1] = true;
                    break;
                case "D" :
                    cardHasFlag[3][card-1] = true;
                    break;
            } make case "S" : "S" case "S" : cardHasFlag[0][card-1] = true cardHasFlag[0][card-1] cardHasFlag[0] cardHasFlag 0 card-1 card 1 true break; case "H" : "H" case "H" : cardHasFlag[1][card-1] = true cardHasFlag[1][card-1] cardHasFlag[1] cardHasFlag 1 card-1 card 1 true break; case "C" : "C" case "C" : cardHasFlag[2][card-1] = true cardHasFlag[2][card-1] cardHasFlag[2] cardHasFlag 2 card-1 card 1 true break; case "D" : "D" case "D" : cardHasFlag[3][card-1] = true cardHasFlag[3][card-1] cardHasFlag[3] cardHasFlag 3 card-1 card 1 true break; for (int i = 0; i < 4; i++) {
            for (int j = 0 ; j < 13; j++) {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            }
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            for (int j = 0 ; j < 13; j++) {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            }
        } {
            for (int j = 0 ; j < 13; j++) {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            }
        } for (int j = 0 ; j < 13; j++) {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            } int j = 0 ; int j = 0 ; j 0 j < 13 j 13 j++ j++ j {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            } {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            } if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                } cardHasFlag[i][j] == false cardHasFlag[i][j] cardHasFlag[i] cardHasFlag i j false {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                } switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    } i case 0 : 0 case 0 : System.out.printf("S %d\n", j+1) System.out.printf System.out System System.out "S %d\n" j+1 j 1 break; case 1 : 1 case 1 : System.out.printf("H %d\n", j+1) System.out.printf System.out System System.out "H %d\n" j+1 j 1 break; case 2 : 2 case 2 : System.out.printf("C %d\n", j+1) System.out.printf System.out System System.out "C %d\n" j+1 j 1 break; case 3 : 3 case 3 : System.out.printf("D %d\n", j+1) System.out.printf System.out System System.out "D %d\n" j+1 j 1 break; String[] args args public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        boolean[][] cardHasFlag = new boolean[4][13];
        
        int n = sc.nextInt();
        
        for (int i = 0; i < n; i++) {
            String make = sc.next();
            int card = sc.nextInt();
            
            switch(make) {
                case "S" :
                    cardHasFlag[0][card-1] = true;
                    break;
                case "H" :
                    cardHasFlag[1][card-1] = true;
                    break;
                case "C" :
                    cardHasFlag[2][card-1] = true;
                    break;
                case "D" :
                    cardHasFlag[3][card-1] = true;
                    break;
            }
        }
        
        for (int i = 0; i < 4; i++) {
            for (int j = 0 ; j < 13; j++) {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            }
        }
    }
} public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        boolean[][] cardHasFlag = new boolean[4][13];
        
        int n = sc.nextInt();
        
        for (int i = 0; i < n; i++) {
            String make = sc.next();
            int card = sc.nextInt();
            
            switch(make) {
                case "S" :
                    cardHasFlag[0][card-1] = true;
                    break;
                case "H" :
                    cardHasFlag[1][card-1] = true;
                    break;
                case "C" :
                    cardHasFlag[2][card-1] = true;
                    break;
                case "D" :
                    cardHasFlag[3][card-1] = true;
                    break;
            }
        }
        
        for (int i = 0; i < 4; i++) {
            for (int j = 0 ; j < 13; j++) {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            }
        }
    }
} Main
import java.util.Scanner;

public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        boolean[][] cardHasFlag = new boolean[4][13];
        
        int n = sc.nextInt();
        
        for (int i = 0; i < n; i++) {
            String make = sc.next();
            int card = sc.nextInt();
            
            switch(make) {
                case "S" :
                    cardHasFlag[0][card-1] = true;
                    break;
                case "H" :
                    cardHasFlag[1][card-1] = true;
                    break;
                case "C" :
                    cardHasFlag[2][card-1] = true;
                    break;
                case "D" :
                    cardHasFlag[3][card-1] = true;
                    break;
            }
        }
        
        for (int i = 0; i < 4; i++) {
            for (int j = 0 ; j < 13; j++) {
                if (cardHasFlag[i][j] == false) {
                    switch (i) {
                        case 0 :
                            System.out.printf("S %d\n", j+1);
                            break;
                        case 1 :
                            System.out.printf("H %d\n", j+1);
                            break;
                        case 2 :
                            System.out.printf("C %d\n", j+1);
                            break;
                        case 3 :
                            System.out.printf("D %d\n", j+1);
                            break;
                    }
                }
            }
        }
    }
}
