import java.util.Scanner;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int c = sc.nextInt();

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

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

        for(int x=0;x<4;x++){
          for(int y=0;y<13;y++){
            if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            }
          }
        }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int c = sc.nextInt();

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

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

        for(int x=0;x<4;x++){
          for(int y=0;y<13;y++){
            if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            }
          }
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int c = sc.nextInt();

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

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

        for(int x=0;x<4;x++){
          for(int y=0;y<13;y++){
            if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            }
          }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int c = sc.nextInt();

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

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

        for(int x=0;x<4;x++){
          for(int y=0;y<13;y++){
            if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            }
          }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int card[][]; card 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;
          }
        } 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] = 0 card[i][j] card[i] card i j 0 for(int k=1;k<=c;k++){
          String m = sc.next();
          int n = sc.nextInt();
            if (m.equals("S")){
              card[0][n-1] = 1;
            }
            if (m.equals("H")){
              card[1][n-1] = 1;
            }
            if (m.equals("C")){
              card[2][n-1] = 1;
            }
            if (m.equals("D")){
              card[3][n-1] = 1;
            }
        } int k=1; int k=1; k 1 k<=c k c k++ k++ k {
          String m = sc.next();
          int n = sc.nextInt();
            if (m.equals("S")){
              card[0][n-1] = 1;
            }
            if (m.equals("H")){
              card[1][n-1] = 1;
            }
            if (m.equals("C")){
              card[2][n-1] = 1;
            }
            if (m.equals("D")){
              card[3][n-1] = 1;
            }
        } {
          String m = sc.next();
          int n = sc.nextInt();
            if (m.equals("S")){
              card[0][n-1] = 1;
            }
            if (m.equals("H")){
              card[1][n-1] = 1;
            }
            if (m.equals("C")){
              card[2][n-1] = 1;
            }
            if (m.equals("D")){
              card[3][n-1] = 1;
            }
        } String m = sc.next(); m sc.next() sc.next sc int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if (m.equals("S")){
              card[0][n-1] = 1;
            } m.equals("S") m.equals m "S" {
              card[0][n-1] = 1;
            } card[0][n-1] = 1 card[0][n-1] card[0] card 0 n-1 n 1 1 if (m.equals("H")){
              card[1][n-1] = 1;
            } m.equals("H") m.equals m "H" {
              card[1][n-1] = 1;
            } card[1][n-1] = 1 card[1][n-1] card[1] card 1 n-1 n 1 1 if (m.equals("C")){
              card[2][n-1] = 1;
            } m.equals("C") m.equals m "C" {
              card[2][n-1] = 1;
            } card[2][n-1] = 1 card[2][n-1] card[2] card 2 n-1 n 1 1 if (m.equals("D")){
              card[3][n-1] = 1;
            } m.equals("D") m.equals m "D" {
              card[3][n-1] = 1;
            } card[3][n-1] = 1 card[3][n-1] card[3] card 3 n-1 n 1 1 for(int x=0;x<4;x++){
          for(int y=0;y<13;y++){
            if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            }
          }
        } int x=0; int x=0; x 0 x<4 x 4 x++ x++ x {
          for(int y=0;y<13;y++){
            if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            }
          }
        } {
          for(int y=0;y<13;y++){
            if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            }
          }
        } for(int y=0;y<13;y++){
            if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            }
          } int y=0; int y=0; y 0 y<13 y 13 y++ y++ y {
            if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            }
          } {
            if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            }
          } if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            } card[x][y] == 0 card[x][y] card[x] card x y 0 {
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            } if (x==0){
                System.out.println("S " + (y+1));
              } x==0 x 0 {
                System.out.println("S " + (y+1));
              } System.out.println("S " + (y+1)) System.out.println System.out System System.out "S " + (y+1) "S " (y+1) y 1 if (x==1){
                System.out.println("H " + (y+1));
              } x==1 x 1 {
                System.out.println("H " + (y+1));
              } System.out.println("H " + (y+1)) System.out.println System.out System System.out "H " + (y+1) "H " (y+1) y 1 if (x==2){
                System.out.println("C " + (y+1));
              } x==2 x 2 {
                System.out.println("C " + (y+1));
              } System.out.println("C " + (y+1)) System.out.println System.out System System.out "C " + (y+1) "C " (y+1) y 1 if (x==3){
                System.out.println("D " + (y+1));
              } x==3 x 3 {
                System.out.println("D " + (y+1));
              } System.out.println("D " + (y+1)) System.out.println System.out System System.out "D " + (y+1) "D " (y+1) y 1 String[] args args
import java.util.Scanner;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int c = sc.nextInt();

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

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

        for(int x=0;x<4;x++){
          for(int y=0;y<13;y++){
            if (card[x][y] == 0){
              if (x==0){
                System.out.println("S " + (y+1));
              }
              if (x==1){
                System.out.println("H " + (y+1));
              }
              if (x==2){
                System.out.println("C " + (y+1));
              }
              if (x==3){
                System.out.println("D " + (y+1));
              }
            }
          }
        }
    }
}
