
import java.util.Scanner;
class Main {

    //static char[] xx = new char[] {'S','H','C','D'};
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13}};

        for(int i = 0; i < n; i++) {
            String m = sc.next();
            int b = sc.nextInt();

            if(m.equals("S")) {
                box[0][b-1] = 0;
            }
            if(m.equals("H")) {
            	box[1][b-1] = 0;
            }
            if(m.equals("C")) {
            	box[2][b-1] = 0;
            }
            if(m.equals("D")) {
            	box[3][b-1] = 0;
            }
        }
        for(int i = 0 ; i< 4; i++) {
            for(int j = 0; j < 13; j++) {
                //if(!box[i][j]) {
            	if(box[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));
            	}
            }
        }
        //System.out.println("");
    }
} import java.util.Scanner; Scanner java.util class Main {

    //static char[] xx = new char[] {'S','H','C','D'};
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13}};

        for(int i = 0; i < n; i++) {
            String m = sc.next();
            int b = sc.nextInt();

            if(m.equals("S")) {
                box[0][b-1] = 0;
            }
            if(m.equals("H")) {
            	box[1][b-1] = 0;
            }
            if(m.equals("C")) {
            	box[2][b-1] = 0;
            }
            if(m.equals("D")) {
            	box[3][b-1] = 0;
            }
        }
        for(int i = 0 ; i< 4; i++) {
            for(int j = 0; j < 13; j++) {
                //if(!box[i][j]) {
            	if(box[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));
            	}
            }
        }
        //System.out.println("");
    }
} Main //static char[] xx = new char[] {'S','H','C','D'};
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13}};

        for(int i = 0; i < n; i++) {
            String m = sc.next();
            int b = sc.nextInt();

            if(m.equals("S")) {
                box[0][b-1] = 0;
            }
            if(m.equals("H")) {
            	box[1][b-1] = 0;
            }
            if(m.equals("C")) {
            	box[2][b-1] = 0;
            }
            if(m.equals("D")) {
            	box[3][b-1] = 0;
            }
        }
        for(int i = 0 ; i< 4; i++) {
            for(int j = 0; j < 13; j++) {
                //if(!box[i][j]) {
            	if(box[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));
            	}
            }
        }
        //System.out.println("");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13}};

        for(int i = 0; i < n; i++) {
            String m = sc.next();
            int b = sc.nextInt();

            if(m.equals("S")) {
                box[0][b-1] = 0;
            }
            if(m.equals("H")) {
            	box[1][b-1] = 0;
            }
            if(m.equals("C")) {
            	box[2][b-1] = 0;
            }
            if(m.equals("D")) {
            	box[3][b-1] = 0;
            }
        }
        for(int i = 0 ; i< 4; i++) {
            for(int j = 0; j < 13; j++) {
                //if(!box[i][j]) {
            	if(box[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));
            	}
            }
        }
        //System.out.println("");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13}}; box {{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13}} {1,2,3,4,5,6,7,8,9,10,11,12,13} 1 2 3 4 5 6 7 8 9 10 11 12 13 {1,2,3,4,5,6,7,8,9,10,11,12,13} 1 2 3 4 5 6 7 8 9 10 11 12 13 {1,2,3,4,5,6,7,8,9,10,11,12,13} 1 2 3 4 5 6 7 8 9 10 11 12 13 {1,2,3,4,5,6,7,8,9,10,11,12,13} 1 2 3 4 5 6 7 8 9 10 11 12 13 for(int i = 0; i < n; i++) {
            String m = sc.next();
            int b = sc.nextInt();

            if(m.equals("S")) {
                box[0][b-1] = 0;
            }
            if(m.equals("H")) {
            	box[1][b-1] = 0;
            }
            if(m.equals("C")) {
            	box[2][b-1] = 0;
            }
            if(m.equals("D")) {
            	box[3][b-1] = 0;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String m = sc.next();
            int b = sc.nextInt();

            if(m.equals("S")) {
                box[0][b-1] = 0;
            }
            if(m.equals("H")) {
            	box[1][b-1] = 0;
            }
            if(m.equals("C")) {
            	box[2][b-1] = 0;
            }
            if(m.equals("D")) {
            	box[3][b-1] = 0;
            }
        } {
            String m = sc.next();
            int b = sc.nextInt();

            if(m.equals("S")) {
                box[0][b-1] = 0;
            }
            if(m.equals("H")) {
            	box[1][b-1] = 0;
            }
            if(m.equals("C")) {
            	box[2][b-1] = 0;
            }
            if(m.equals("D")) {
            	box[3][b-1] = 0;
            }
        } String m = sc.next(); m sc.next() sc.next sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if(m.equals("S")) {
                box[0][b-1] = 0;
            } m.equals("S") m.equals m "S" {
                box[0][b-1] = 0;
            } box[0][b-1] = 0 box[0][b-1] box[0] box 0 b-1 b 1 0 if(m.equals("H")) {
            	box[1][b-1] = 0;
            } m.equals("H") m.equals m "H" {
            	box[1][b-1] = 0;
            } box[1][b-1] = 0 box[1][b-1] box[1] box 1 b-1 b 1 0 if(m.equals("C")) {
            	box[2][b-1] = 0;
            } m.equals("C") m.equals m "C" {
            	box[2][b-1] = 0;
            } box[2][b-1] = 0 box[2][b-1] box[2] box 2 b-1 b 1 0 if(m.equals("D")) {
            	box[3][b-1] = 0;
            } m.equals("D") m.equals m "D" {
            	box[3][b-1] = 0;
            } box[3][b-1] = 0 box[3][b-1] box[3] box 3 b-1 b 1 0 for(int i = 0 ; i< 4; i++) {
            for(int j = 0; j < 13; j++) {
                //if(!box[i][j]) {
            	if(box[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(!box[i][j]) {
            	if(box[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(!box[i][j]) {
            	if(box[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(!box[i][j]) {
            	if(box[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(!box[i][j]) {
            	if(box[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(!box[i][j]) {
            	if(box[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(box[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));
            	} box[i][j]!=0 box[i][j] box[i] box 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 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 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 System.out System System.out "C " + (j + 1) "C " (j + 1) 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;
class Main {

    //static char[] xx = new char[] {'S','H','C','D'};
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int box[][] = {{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13},
        	{1,2,3,4,5,6,7,8,9,10,11,12,13}};

        for(int i = 0; i < n; i++) {
            String m = sc.next();
            int b = sc.nextInt();

            if(m.equals("S")) {
                box[0][b-1] = 0;
            }
            if(m.equals("H")) {
            	box[1][b-1] = 0;
            }
            if(m.equals("C")) {
            	box[2][b-1] = 0;
            }
            if(m.equals("D")) {
            	box[3][b-1] = 0;
            }
        }
        for(int i = 0 ; i< 4; i++) {
            for(int j = 0; j < 13; j++) {
                //if(!box[i][j]) {
            	if(box[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));
            	}
            }
        }
        //System.out.println("");
    }
}
