import java.io.*;

class Main
{
    public static void main (String[ ] args) throws Exception
    {
        boolean[][] b = new boolean[4][13];
        String[] s = {"S", "H", "C", "D"};
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        
        int n = Integer.parseInt(br.readLine());
        for(int i = 0; i < n; i++)
        {
            String[] strArr = (br.readLine()).split(" ");
            int rank = Integer.parseInt(strArr[1]);
            if("S".equals(strArr[0]))
            {
                b[0][rank - 1] = true;
            }
            else if("H".equals(strArr[0]))
            {
                b[1][rank - 1] = true;
            }
            else if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            }
        }
        
        for(int i = 0; i < 4; i++)
        {
            for(int j = 0; j < 13; j++)
            {
                if(true != b[i][j])
                {
                    System.out.println(s[i] + " " + (j + 1));
                }
            }
        }
    }
} import java.io.*; io.* java class Main
{
    public static void main (String[ ] args) throws Exception
    {
        boolean[][] b = new boolean[4][13];
        String[] s = {"S", "H", "C", "D"};
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        
        int n = Integer.parseInt(br.readLine());
        for(int i = 0; i < n; i++)
        {
            String[] strArr = (br.readLine()).split(" ");
            int rank = Integer.parseInt(strArr[1]);
            if("S".equals(strArr[0]))
            {
                b[0][rank - 1] = true;
            }
            else if("H".equals(strArr[0]))
            {
                b[1][rank - 1] = true;
            }
            else if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            }
        }
        
        for(int i = 0; i < 4; i++)
        {
            for(int j = 0; j < 13; j++)
            {
                if(true != b[i][j])
                {
                    System.out.println(s[i] + " " + (j + 1));
                }
            }
        }
    }
} Main public static void main (String[ ] args) throws Exception
    {
        boolean[][] b = new boolean[4][13];
        String[] s = {"S", "H", "C", "D"};
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        
        int n = Integer.parseInt(br.readLine());
        for(int i = 0; i < n; i++)
        {
            String[] strArr = (br.readLine()).split(" ");
            int rank = Integer.parseInt(strArr[1]);
            if("S".equals(strArr[0]))
            {
                b[0][rank - 1] = true;
            }
            else if("H".equals(strArr[0]))
            {
                b[1][rank - 1] = true;
            }
            else if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            }
        }
        
        for(int i = 0; i < 4; i++)
        {
            for(int j = 0; j < 13; j++)
            {
                if(true != b[i][j])
                {
                    System.out.println(s[i] + " " + (j + 1));
                }
            }
        }
    } main {
        boolean[][] b = new boolean[4][13];
        String[] s = {"S", "H", "C", "D"};
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        
        int n = Integer.parseInt(br.readLine());
        for(int i = 0; i < n; i++)
        {
            String[] strArr = (br.readLine()).split(" ");
            int rank = Integer.parseInt(strArr[1]);
            if("S".equals(strArr[0]))
            {
                b[0][rank - 1] = true;
            }
            else if("H".equals(strArr[0]))
            {
                b[1][rank - 1] = true;
            }
            else if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            }
        }
        
        for(int i = 0; i < 4; i++)
        {
            for(int j = 0; j < 13; j++)
            {
                if(true != b[i][j])
                {
                    System.out.println(s[i] + " " + (j + 1));
                }
            }
        }
    } boolean[][] b = new boolean[4][13]; b new boolean[4][13] 4 13 String[] s = {"S", "H", "C", "D"}; s {"S", "H", "C", "D"} "S" "H" "C" "D" BufferedReader br = new BufferedReader (new InputStreamReader (System.in)); br new BufferedReader (new InputStreamReader (System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i = 0; i < n; i++)
        {
            String[] strArr = (br.readLine()).split(" ");
            int rank = Integer.parseInt(strArr[1]);
            if("S".equals(strArr[0]))
            {
                b[0][rank - 1] = true;
            }
            else if("H".equals(strArr[0]))
            {
                b[1][rank - 1] = true;
            }
            else if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String[] strArr = (br.readLine()).split(" ");
            int rank = Integer.parseInt(strArr[1]);
            if("S".equals(strArr[0]))
            {
                b[0][rank - 1] = true;
            }
            else if("H".equals(strArr[0]))
            {
                b[1][rank - 1] = true;
            }
            else if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            }
        } {
            String[] strArr = (br.readLine()).split(" ");
            int rank = Integer.parseInt(strArr[1]);
            if("S".equals(strArr[0]))
            {
                b[0][rank - 1] = true;
            }
            else if("H".equals(strArr[0]))
            {
                b[1][rank - 1] = true;
            }
            else if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            }
        } String[] strArr = (br.readLine()).split(" "); strArr (br.readLine()).split(" ") (br.readLine()).split (br.readLine()) br.readLine br " " int rank = Integer.parseInt(strArr[1]); rank Integer.parseInt(strArr[1]) Integer.parseInt Integer strArr[1] strArr 1 if("S".equals(strArr[0]))
            {
                b[0][rank - 1] = true;
            }
            else if("H".equals(strArr[0]))
            {
                b[1][rank - 1] = true;
            }
            else if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            } "S".equals(strArr[0]) "S".equals "S" strArr[0] strArr 0 {
                b[0][rank - 1] = true;
            } b[0][rank - 1] = true b[0][rank - 1] b[0] b 0 rank - 1 rank 1 true if("H".equals(strArr[0]))
            {
                b[1][rank - 1] = true;
            }
            else if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            } "H".equals(strArr[0]) "H".equals "H" strArr[0] strArr 0 {
                b[1][rank - 1] = true;
            } b[1][rank - 1] = true b[1][rank - 1] b[1] b 1 rank - 1 rank 1 true if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            } "C".equals(strArr[0]) "C".equals "C" strArr[0] strArr 0 {
                b[2][rank - 1] = true;
            } b[2][rank - 1] = true b[2][rank - 1] b[2] b 2 rank - 1 rank 1 true if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            } "D".equals(strArr[0]) "D".equals "D" strArr[0] strArr 0 {
                b[3][rank - 1] = true;
            } b[3][rank - 1] = true b[3][rank - 1] b[3] b 3 rank - 1 rank 1 true for(int i = 0; i < 4; i++)
        {
            for(int j = 0; j < 13; j++)
            {
                if(true != b[i][j])
                {
                    System.out.println(s[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(true != b[i][j])
                {
                    System.out.println(s[i] + " " + (j + 1));
                }
            }
        } {
            for(int j = 0; j < 13; j++)
            {
                if(true != b[i][j])
                {
                    System.out.println(s[i] + " " + (j + 1));
                }
            }
        } for(int j = 0; j < 13; j++)
            {
                if(true != b[i][j])
                {
                    System.out.println(s[i] + " " + (j + 1));
                }
            } int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
                if(true != b[i][j])
                {
                    System.out.println(s[i] + " " + (j + 1));
                }
            } {
                if(true != b[i][j])
                {
                    System.out.println(s[i] + " " + (j + 1));
                }
            } if(true != b[i][j])
                {
                    System.out.println(s[i] + " " + (j + 1));
                } true != b[i][j] true b[i][j] b[i] b i j {
                    System.out.println(s[i] + " " + (j + 1));
                } System.out.println(s[i] + " " + (j + 1)) System.out.println System.out System System.out s[i] + " " + (j + 1) s[i] + " " + (j + 1) s[i] s i " " (j + 1) j 1 String[ ] args args
import java.io.*;

class Main
{
    public static void main (String[ ] args) throws Exception
    {
        boolean[][] b = new boolean[4][13];
        String[] s = {"S", "H", "C", "D"};
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        
        int n = Integer.parseInt(br.readLine());
        for(int i = 0; i < n; i++)
        {
            String[] strArr = (br.readLine()).split(" ");
            int rank = Integer.parseInt(strArr[1]);
            if("S".equals(strArr[0]))
            {
                b[0][rank - 1] = true;
            }
            else if("H".equals(strArr[0]))
            {
                b[1][rank - 1] = true;
            }
            else if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            }
        }
        
        for(int i = 0; i < 4; i++)
        {
            for(int j = 0; j < 13; j++)
            {
                if(true != b[i][j])
                {
                    System.out.println(s[i] + " " + (j + 1));
                }
            }
        }
    }
}