import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean[][] cards = new boolean[4][13];
    for (int i = 0; i < n; i++) {
      String str = sc.next();
      int no = sc.nextInt();
      switch (str) {
        case "S" : 
          cards[0][no - 1] = true;
          break;
        case "H" :
          cards[1][no - 1] = true;
          break;
        case "C" :
          cards[2][no - 1] = true;
          break;
        case "D" :
          cards[3][no - 1] = true;
          break;
      }
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (cards[i][j] == false) {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          }
        }
      }
    }
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean[][] cards = new boolean[4][13];
    for (int i = 0; i < n; i++) {
      String str = sc.next();
      int no = sc.nextInt();
      switch (str) {
        case "S" : 
          cards[0][no - 1] = true;
          break;
        case "H" :
          cards[1][no - 1] = true;
          break;
        case "C" :
          cards[2][no - 1] = true;
          break;
        case "D" :
          cards[3][no - 1] = true;
          break;
      }
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (cards[i][j] == false) {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          }
        }
      }
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean[][] cards = new boolean[4][13];
    for (int i = 0; i < n; i++) {
      String str = sc.next();
      int no = sc.nextInt();
      switch (str) {
        case "S" : 
          cards[0][no - 1] = true;
          break;
        case "H" :
          cards[1][no - 1] = true;
          break;
        case "C" :
          cards[2][no - 1] = true;
          break;
        case "D" :
          cards[3][no - 1] = true;
          break;
      }
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (cards[i][j] == false) {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          }
        }
      }
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean[][] cards = new boolean[4][13];
    for (int i = 0; i < n; i++) {
      String str = sc.next();
      int no = sc.nextInt();
      switch (str) {
        case "S" : 
          cards[0][no - 1] = true;
          break;
        case "H" :
          cards[1][no - 1] = true;
          break;
        case "C" :
          cards[2][no - 1] = true;
          break;
        case "D" :
          cards[3][no - 1] = true;
          break;
      }
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (cards[i][j] == false) {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          }
        }
      }
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc boolean[][] cards = new boolean[4][13]; cards new boolean[4][13] 4 13 for (int i = 0; i < n; i++) {
      String str = sc.next();
      int no = sc.nextInt();
      switch (str) {
        case "S" : 
          cards[0][no - 1] = true;
          break;
        case "H" :
          cards[1][no - 1] = true;
          break;
        case "C" :
          cards[2][no - 1] = true;
          break;
        case "D" :
          cards[3][no - 1] = true;
          break;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      String str = sc.next();
      int no = sc.nextInt();
      switch (str) {
        case "S" : 
          cards[0][no - 1] = true;
          break;
        case "H" :
          cards[1][no - 1] = true;
          break;
        case "C" :
          cards[2][no - 1] = true;
          break;
        case "D" :
          cards[3][no - 1] = true;
          break;
      }
    } {
      String str = sc.next();
      int no = sc.nextInt();
      switch (str) {
        case "S" : 
          cards[0][no - 1] = true;
          break;
        case "H" :
          cards[1][no - 1] = true;
          break;
        case "C" :
          cards[2][no - 1] = true;
          break;
        case "D" :
          cards[3][no - 1] = true;
          break;
      }
    } String str = sc.next(); str sc.next() sc.next sc int no = sc.nextInt(); no sc.nextInt() sc.nextInt sc switch (str) {
        case "S" : 
          cards[0][no - 1] = true;
          break;
        case "H" :
          cards[1][no - 1] = true;
          break;
        case "C" :
          cards[2][no - 1] = true;
          break;
        case "D" :
          cards[3][no - 1] = true;
          break;
      } str case "S" : "S" case "S" : cards[0][no - 1] = true cards[0][no - 1] cards[0] cards 0 no - 1 no 1 true break; case "H" : "H" case "H" : cards[1][no - 1] = true cards[1][no - 1] cards[1] cards 1 no - 1 no 1 true break; case "C" : "C" case "C" : cards[2][no - 1] = true cards[2][no - 1] cards[2] cards 2 no - 1 no 1 true break; case "D" : "D" case "D" : cards[3][no - 1] = true cards[3][no - 1] cards[3] cards 3 no - 1 no 1 true break; for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (cards[i][j] == false) {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (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 (cards[i][j] == false) {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          }
        }
      }
    } {
      for (int j = 0; j < 13; j++) {
        if (cards[i][j] == false) {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          }
        }
      }
    } for (int j = 0; j < 13; j++) {
        if (cards[i][j] == false) {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          }
        }
      } int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
        if (cards[i][j] == false) {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          }
        }
      } {
        if (cards[i][j] == false) {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          }
        }
      } if (cards[i][j] == false) {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          }
        } cards[i][j] == false cards[i][j] cards[i] cards i j false {
          switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          }
        } switch (i) {
            case 0 :
              System.out.println("S " + (j + 1));
              break;
            case 1 :
              System.out.println("H " + (j + 1));
              break;
            case 2 :
              System.out.println("C " + (j + 1));
              break;
            case 3 :
              System.out.println("D " + (j + 1));
              break;
          } i case 0 : 0 case 0 : System.out.println("S " + (j + 1)) System.out.println System.out System System.out "S " + (j + 1) "S " (j + 1) j 1 break; case 1 : 1 case 1 : System.out.println("H " + (j + 1)) System.out.println System.out System System.out "H " + (j + 1) "H " (j + 1) j 1 break; case 2 : 2 case 2 : System.out.println("C " + (j + 1)) System.out.println System.out System System.out "C " + (j + 1) "C " (j + 1) j 1 break; case 3 : 3 case 3 : System.out.println("D " + (j + 1)) System.out.println System.out System System.out "D " + (j + 1) "D " (j + 1) j 1 break; String[] args args
import java.util.Scanner;

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