import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[][] card = { new int[13], new int[13], new int[13], new int[13] };
    char[] suit = { 'S', 'H', 'C', 'D' };

    for (int i = 0; i < n; i++) {
      String s = stdin.next();
      int j = stdin.nextInt() - 1;
      if (s.equals("S")) {
        card[0][j] = 1;
      } else if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      }
    }

    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      }
    }
  }

} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[][] card = { new int[13], new int[13], new int[13], new int[13] };
    char[] suit = { 'S', 'H', 'C', 'D' };

    for (int i = 0; i < n; i++) {
      String s = stdin.next();
      int j = stdin.nextInt() - 1;
      if (s.equals("S")) {
        card[0][j] = 1;
      } else if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      }
    }

    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      }
    }
  }

} Main public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[][] card = { new int[13], new int[13], new int[13], new int[13] };
    char[] suit = { 'S', 'H', 'C', 'D' };

    for (int i = 0; i < n; i++) {
      String s = stdin.next();
      int j = stdin.nextInt() - 1;
      if (s.equals("S")) {
        card[0][j] = 1;
      } else if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      }
    }

    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      }
    }
  } main {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[][] card = { new int[13], new int[13], new int[13], new int[13] };
    char[] suit = { 'S', 'H', 'C', 'D' };

    for (int i = 0; i < n; i++) {
      String s = stdin.next();
      int j = stdin.nextInt() - 1;
      if (s.equals("S")) {
        card[0][j] = 1;
      } else if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      }
    }

    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      }
    }
  } Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int n = stdin.nextInt(); n stdin.nextInt() stdin.nextInt stdin int[][] card = { new int[13], new int[13], new int[13], new int[13] }; card { new int[13], new int[13], new int[13], new int[13] } new int[13] 13 new int[13] 13 new int[13] 13 new int[13] 13 char[] suit = { 'S', 'H', 'C', 'D' }; suit { 'S', 'H', 'C', 'D' } 'S' 'H' 'C' 'D' for (int i = 0; i < n; i++) {
      String s = stdin.next();
      int j = stdin.nextInt() - 1;
      if (s.equals("S")) {
        card[0][j] = 1;
      } else if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      String s = stdin.next();
      int j = stdin.nextInt() - 1;
      if (s.equals("S")) {
        card[0][j] = 1;
      } else if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      }
    } {
      String s = stdin.next();
      int j = stdin.nextInt() - 1;
      if (s.equals("S")) {
        card[0][j] = 1;
      } else if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      }
    } String s = stdin.next(); s stdin.next() stdin.next stdin int j = stdin.nextInt() - 1; j stdin.nextInt() - 1 stdin.nextInt() stdin.nextInt stdin 1 if (s.equals("S")) {
        card[0][j] = 1;
      } else if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      } s.equals("S") s.equals s "S" {
        card[0][j] = 1;
      } card[0][j] = 1 card[0][j] card[0] card 0 j 1 if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      } s.equals("H") s.equals s "H" {
        card[1][j] = 1;
      } card[1][j] = 1 card[1][j] card[1] card 1 j 1 if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      } s.equals("C") s.equals s "C" {
        card[2][j] = 1;
      } card[2][j] = 1 card[2][j] card[2] card 2 j 1 {
        card[3][j] = 1;
      } card[3][j] = 1 card[3][j] card[3] card 3 j 1 for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[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 (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      }
    } {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      }
    } for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      } int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      } {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      } if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        } card[i][j] == 0 card[i][j] card[i] card i j 0 {
          System.out.printf("%s %d%n", suit[i], j + 1);
        } System.out.printf("%s %d%n", suit[i], j + 1) System.out.printf System.out System System.out "%s %d%n" suit[i] suit i j + 1 j 1 String[] args args public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[][] card = { new int[13], new int[13], new int[13], new int[13] };
    char[] suit = { 'S', 'H', 'C', 'D' };

    for (int i = 0; i < n; i++) {
      String s = stdin.next();
      int j = stdin.nextInt() - 1;
      if (s.equals("S")) {
        card[0][j] = 1;
      } else if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      }
    }

    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      }
    }
  }

} public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[][] card = { new int[13], new int[13], new int[13], new int[13] };
    char[] suit = { 'S', 'H', 'C', 'D' };

    for (int i = 0; i < n; i++) {
      String s = stdin.next();
      int j = stdin.nextInt() - 1;
      if (s.equals("S")) {
        card[0][j] = 1;
      } else if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      }
    }

    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      }
    }
  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner stdin = new Scanner(System.in);
    int n = stdin.nextInt();
    int[][] card = { new int[13], new int[13], new int[13], new int[13] };
    char[] suit = { 'S', 'H', 'C', 'D' };

    for (int i = 0; i < n; i++) {
      String s = stdin.next();
      int j = stdin.nextInt() - 1;
      if (s.equals("S")) {
        card[0][j] = 1;
      } else if (s.equals("H")) {
        card[1][j] = 1;
      } else if (s.equals("C")) {
        card[2][j] = 1;
      } else {
        card[3][j] = 1;
      }
    }

    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (card[i][j] == 0) {
          System.out.printf("%s %d%n", suit[i], j + 1);
        }
      }
    }
  }

}