import java.util.Scanner;
 
class Main{
  public static void main(String[] arg){
    int n;
    int [][] card = new int[4][13];

    for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            card[i][j] = 0;

    Scanner in = new Scanner(System.in);

    n = in.nextInt();

    String mark;
    int su;

    for(int i=0; i<n; i++){
        in.nextLine();
        mark = in.next();
        su = in.nextInt();

        if(mark.equals("S"))
            card[0][su-1] = 1;
        else if(mark.equals("H"))
            card[1][su-1] = 1;
        else if(mark.equals("C"))
            card[2][su-1] = 1;
        else
            card[3][su-1] = 1;
    }

    for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            if(card[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));
            }
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] arg){
    int n;
    int [][] card = new int[4][13];

    for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            card[i][j] = 0;

    Scanner in = new Scanner(System.in);

    n = in.nextInt();

    String mark;
    int su;

    for(int i=0; i<n; i++){
        in.nextLine();
        mark = in.next();
        su = in.nextInt();

        if(mark.equals("S"))
            card[0][su-1] = 1;
        else if(mark.equals("H"))
            card[1][su-1] = 1;
        else if(mark.equals("C"))
            card[2][su-1] = 1;
        else
            card[3][su-1] = 1;
    }

    for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            if(card[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));
            }
  }
} Main public static void main(String[] arg){
    int n;
    int [][] card = new int[4][13];

    for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            card[i][j] = 0;

    Scanner in = new Scanner(System.in);

    n = in.nextInt();

    String mark;
    int su;

    for(int i=0; i<n; i++){
        in.nextLine();
        mark = in.next();
        su = in.nextInt();

        if(mark.equals("S"))
            card[0][su-1] = 1;
        else if(mark.equals("H"))
            card[1][su-1] = 1;
        else if(mark.equals("C"))
            card[2][su-1] = 1;
        else
            card[3][su-1] = 1;
    }

    for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            if(card[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));
            }
  } main {
    int n;
    int [][] card = new int[4][13];

    for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            card[i][j] = 0;

    Scanner in = new Scanner(System.in);

    n = in.nextInt();

    String mark;
    int su;

    for(int i=0; i<n; i++){
        in.nextLine();
        mark = in.next();
        su = in.nextInt();

        if(mark.equals("S"))
            card[0][su-1] = 1;
        else if(mark.equals("H"))
            card[1][su-1] = 1;
        else if(mark.equals("C"))
            card[2][su-1] = 1;
        else
            card[3][su-1] = 1;
    }

    for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            if(card[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 n; n int [][] card = new int[4][13]; card new int[4][13] 4 13 for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            card[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++)
            card[i][j] = 0; for(int j=0; j<13; j++)
            card[i][j] = 0; int j=0; int j=0; j 0 j<13 j 13 j++ j++ j card[i][j] = 0; card[i][j] = 0 card[i][j] card[i] card i j 0 Scanner in = new Scanner(System.in); in new Scanner(System.in) n = in.nextInt() n in.nextInt() in.nextInt in String mark; mark int su; su for(int i=0; i<n; i++){
        in.nextLine();
        mark = in.next();
        su = in.nextInt();

        if(mark.equals("S"))
            card[0][su-1] = 1;
        else if(mark.equals("H"))
            card[1][su-1] = 1;
        else if(mark.equals("C"))
            card[2][su-1] = 1;
        else
            card[3][su-1] = 1;
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        in.nextLine();
        mark = in.next();
        su = in.nextInt();

        if(mark.equals("S"))
            card[0][su-1] = 1;
        else if(mark.equals("H"))
            card[1][su-1] = 1;
        else if(mark.equals("C"))
            card[2][su-1] = 1;
        else
            card[3][su-1] = 1;
    } {
        in.nextLine();
        mark = in.next();
        su = in.nextInt();

        if(mark.equals("S"))
            card[0][su-1] = 1;
        else if(mark.equals("H"))
            card[1][su-1] = 1;
        else if(mark.equals("C"))
            card[2][su-1] = 1;
        else
            card[3][su-1] = 1;
    } in.nextLine() in.nextLine in mark = in.next() mark in.next() in.next in su = in.nextInt() su in.nextInt() in.nextInt in if(mark.equals("S"))
            card[0][su-1] = 1;
        else if(mark.equals("H"))
            card[1][su-1] = 1;
        else if(mark.equals("C"))
            card[2][su-1] = 1;
        else
            card[3][su-1] = 1; mark.equals("S") mark.equals mark "S" card[0][su-1] = 1 card[0][su-1] card[0] card 0 su-1 su 1 1 if(mark.equals("H"))
            card[1][su-1] = 1;
        else if(mark.equals("C"))
            card[2][su-1] = 1;
        else
            card[3][su-1] = 1; mark.equals("H") mark.equals mark "H" card[1][su-1] = 1 card[1][su-1] card[1] card 1 su-1 su 1 1 if(mark.equals("C"))
            card[2][su-1] = 1;
        else
            card[3][su-1] = 1; mark.equals("C") mark.equals mark "C" card[2][su-1] = 1 card[2][su-1] card[2] card 2 su-1 su 1 1 card[3][su-1] = 1 card[3][su-1] card[3] card 3 su-1 su 1 1 for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            if(card[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(card[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(card[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(card[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(card[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));
            } card[i][j] == 0 card[i][j] card[i] card 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[] arg arg
import java.util.Scanner;
 
class Main{
  public static void main(String[] arg){
    int n;
    int [][] card = new int[4][13];

    for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            card[i][j] = 0;

    Scanner in = new Scanner(System.in);

    n = in.nextInt();

    String mark;
    int su;

    for(int i=0; i<n; i++){
        in.nextLine();
        mark = in.next();
        su = in.nextInt();

        if(mark.equals("S"))
            card[0][su-1] = 1;
        else if(mark.equals("H"))
            card[1][su-1] = 1;
        else if(mark.equals("C"))
            card[2][su-1] = 1;
        else
            card[3][su-1] = 1;
    }

    for(int i=0; i<4; i++)
        for(int j=0; j<13; j++)
            if(card[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));
            }
  }
}