import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
    int x;
    String e, str;
    int card[] = new int[52];
    for (int i = 0; i < 52; i++) {
      card[i] = 0;
    }
    int n = Integer.parseInt(buf.readLine());
    for (int i = 0;i < n; i++) {
      str = buf.readLine();
      e = str.split(" ", 0)[0];
      x = Integer.parseInt(str.split(" ", 0)[1]);
      if (e.equals("S")) {
        card[x-1] = 1;
      } else if (e.equals("H")) {
        card[x+12] = 1;
      } else if (e.equals("C")) {
        card[x+25] = 1;
      } else {
        card[x+38] = 1;
      }
    }
    for (int i = 0; i < 52; i++) {
      if (card[i] == 0) {
        if (i < 13) {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } else if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        }
      }
    }
  }
} import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.BufferedReader; BufferedReader java.io class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
    int x;
    String e, str;
    int card[] = new int[52];
    for (int i = 0; i < 52; i++) {
      card[i] = 0;
    }
    int n = Integer.parseInt(buf.readLine());
    for (int i = 0;i < n; i++) {
      str = buf.readLine();
      e = str.split(" ", 0)[0];
      x = Integer.parseInt(str.split(" ", 0)[1]);
      if (e.equals("S")) {
        card[x-1] = 1;
      } else if (e.equals("H")) {
        card[x+12] = 1;
      } else if (e.equals("C")) {
        card[x+25] = 1;
      } else {
        card[x+38] = 1;
      }
    }
    for (int i = 0; i < 52; i++) {
      if (card[i] == 0) {
        if (i < 13) {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } else if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        }
      }
    }
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
    int x;
    String e, str;
    int card[] = new int[52];
    for (int i = 0; i < 52; i++) {
      card[i] = 0;
    }
    int n = Integer.parseInt(buf.readLine());
    for (int i = 0;i < n; i++) {
      str = buf.readLine();
      e = str.split(" ", 0)[0];
      x = Integer.parseInt(str.split(" ", 0)[1]);
      if (e.equals("S")) {
        card[x-1] = 1;
      } else if (e.equals("H")) {
        card[x+12] = 1;
      } else if (e.equals("C")) {
        card[x+25] = 1;
      } else {
        card[x+38] = 1;
      }
    }
    for (int i = 0; i < 52; i++) {
      if (card[i] == 0) {
        if (i < 13) {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } else if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        }
      }
    }
  } main {
    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
    int x;
    String e, str;
    int card[] = new int[52];
    for (int i = 0; i < 52; i++) {
      card[i] = 0;
    }
    int n = Integer.parseInt(buf.readLine());
    for (int i = 0;i < n; i++) {
      str = buf.readLine();
      e = str.split(" ", 0)[0];
      x = Integer.parseInt(str.split(" ", 0)[1]);
      if (e.equals("S")) {
        card[x-1] = 1;
      } else if (e.equals("H")) {
        card[x+12] = 1;
      } else if (e.equals("C")) {
        card[x+25] = 1;
      } else {
        card[x+38] = 1;
      }
    }
    for (int i = 0; i < 52; i++) {
      if (card[i] == 0) {
        if (i < 13) {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } else if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        }
      }
    }
  } BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) int x; x String e e str; str int card[] = new int[52]; card new int[52] 52 for (int i = 0; i < 52; i++) {
      card[i] = 0;
    } int i = 0; int i = 0; i 0 i < 52 i 52 i++ i++ i {
      card[i] = 0;
    } {
      card[i] = 0;
    } card[i] = 0 card[i] card i 0 int n = Integer.parseInt(buf.readLine()); n Integer.parseInt(buf.readLine()) Integer.parseInt Integer buf.readLine() buf.readLine buf for (int i = 0;i < n; i++) {
      str = buf.readLine();
      e = str.split(" ", 0)[0];
      x = Integer.parseInt(str.split(" ", 0)[1]);
      if (e.equals("S")) {
        card[x-1] = 1;
      } else if (e.equals("H")) {
        card[x+12] = 1;
      } else if (e.equals("C")) {
        card[x+25] = 1;
      } else {
        card[x+38] = 1;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      str = buf.readLine();
      e = str.split(" ", 0)[0];
      x = Integer.parseInt(str.split(" ", 0)[1]);
      if (e.equals("S")) {
        card[x-1] = 1;
      } else if (e.equals("H")) {
        card[x+12] = 1;
      } else if (e.equals("C")) {
        card[x+25] = 1;
      } else {
        card[x+38] = 1;
      }
    } {
      str = buf.readLine();
      e = str.split(" ", 0)[0];
      x = Integer.parseInt(str.split(" ", 0)[1]);
      if (e.equals("S")) {
        card[x-1] = 1;
      } else if (e.equals("H")) {
        card[x+12] = 1;
      } else if (e.equals("C")) {
        card[x+25] = 1;
      } else {
        card[x+38] = 1;
      }
    } str = buf.readLine() str buf.readLine() buf.readLine buf e = str.split(" ", 0)[0] e str.split(" ", 0)[0] str.split(" ", 0) str.split str " " 0 0 x = Integer.parseInt(str.split(" ", 0)[1]) x Integer.parseInt(str.split(" ", 0)[1]) Integer.parseInt Integer str.split(" ", 0)[1] str.split(" ", 0) str.split str " " 0 1 if (e.equals("S")) {
        card[x-1] = 1;
      } else if (e.equals("H")) {
        card[x+12] = 1;
      } else if (e.equals("C")) {
        card[x+25] = 1;
      } else {
        card[x+38] = 1;
      } e.equals("S") e.equals e "S" {
        card[x-1] = 1;
      } card[x-1] = 1 card[x-1] card x-1 x 1 1 if (e.equals("H")) {
        card[x+12] = 1;
      } else if (e.equals("C")) {
        card[x+25] = 1;
      } else {
        card[x+38] = 1;
      } e.equals("H") e.equals e "H" {
        card[x+12] = 1;
      } card[x+12] = 1 card[x+12] card x+12 x 12 1 if (e.equals("C")) {
        card[x+25] = 1;
      } else {
        card[x+38] = 1;
      } e.equals("C") e.equals e "C" {
        card[x+25] = 1;
      } card[x+25] = 1 card[x+25] card x+25 x 25 1 {
        card[x+38] = 1;
      } card[x+38] = 1 card[x+38] card x+38 x 38 1 for (int i = 0; i < 52; i++) {
      if (card[i] == 0) {
        if (i < 13) {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } else if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        }
      }
    } int i = 0; int i = 0; i 0 i < 52 i 52 i++ i++ i {
      if (card[i] == 0) {
        if (i < 13) {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } else if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        }
      }
    } {
      if (card[i] == 0) {
        if (i < 13) {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } else if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        }
      }
    } if (card[i] == 0) {
        if (i < 13) {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } else if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        }
      } card[i] == 0 card[i] card i 0 {
        if (i < 13) {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } else if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        }
      } if (i < 13) {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } else if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        } i < 13 i 13 {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } str = String.valueOf(i+1) str String.valueOf(i+1) String.valueOf String i+1 i 1 System.out.println("S "+str) System.out.println System.out System System.out "S "+str "S " str if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        } i < 26 i 26 {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } str = String.valueOf(i-12) str String.valueOf(i-12) String.valueOf String i-12 i 12 System.out.println("H "+str) System.out.println System.out System System.out "H "+str "H " str if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        } i < 39 i 39 {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } str = String.valueOf(i-25) str String.valueOf(i-25) String.valueOf String i-25 i 25 System.out.println("C "+str) System.out.println System.out System System.out "C "+str "C " str {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        } str = String.valueOf(i-38) str String.valueOf(i-38) String.valueOf String i-38 i 38 System.out.println("D "+str) System.out.println System.out System System.out "D "+str "D " str String[] args args
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
    int x;
    String e, str;
    int card[] = new int[52];
    for (int i = 0; i < 52; i++) {
      card[i] = 0;
    }
    int n = Integer.parseInt(buf.readLine());
    for (int i = 0;i < n; i++) {
      str = buf.readLine();
      e = str.split(" ", 0)[0];
      x = Integer.parseInt(str.split(" ", 0)[1]);
      if (e.equals("S")) {
        card[x-1] = 1;
      } else if (e.equals("H")) {
        card[x+12] = 1;
      } else if (e.equals("C")) {
        card[x+25] = 1;
      } else {
        card[x+38] = 1;
      }
    }
    for (int i = 0; i < 52; i++) {
      if (card[i] == 0) {
        if (i < 13) {
          str = String.valueOf(i+1);
          System.out.println("S "+str);
        } else if (i < 26) {
          str = String.valueOf(i-12);
          System.out.println("H "+str);
        } else if (i < 39) {
          str = String.valueOf(i-25);
          System.out.println("C "+str);
        } else {
          str = String.valueOf(i-38);
          System.out.println("D "+str);
        }
      }
    }
  }
}