import java.io.*;
import java.util.ArrayList;

class Main{
  public static void main(String[] args) throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str1 = br.readLine();
    String[] str2 = str1.split(" ");
    int n = Integer.parseInt(str2[0]);

    ArrayList<String> list1 = new ArrayList<String>();
    for (int i = 0; i < n; i++){
      list1.add(br.readLine());
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("S " + i) == false)
        System.out.println("S " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("H " + i) == false)
        System.out.println("H " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("C " + i) == false)
        System.out.println("C " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("D " + i) == false)
        System.out.println("D " + i);
    }
  }
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util class Main{
  public static void main(String[] args) throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str1 = br.readLine();
    String[] str2 = str1.split(" ");
    int n = Integer.parseInt(str2[0]);

    ArrayList<String> list1 = new ArrayList<String>();
    for (int i = 0; i < n; i++){
      list1.add(br.readLine());
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("S " + i) == false)
        System.out.println("S " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("H " + i) == false)
        System.out.println("H " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("C " + i) == false)
        System.out.println("C " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("D " + i) == false)
        System.out.println("D " + i);
    }
  }
} Main public static void main(String[] args) throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str1 = br.readLine();
    String[] str2 = str1.split(" ");
    int n = Integer.parseInt(str2[0]);

    ArrayList<String> list1 = new ArrayList<String>();
    for (int i = 0; i < n; i++){
      list1.add(br.readLine());
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("S " + i) == false)
        System.out.println("S " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("H " + i) == false)
        System.out.println("H " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("C " + i) == false)
        System.out.println("C " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("D " + i) == false)
        System.out.println("D " + i);
    }
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str1 = br.readLine();
    String[] str2 = str1.split(" ");
    int n = Integer.parseInt(str2[0]);

    ArrayList<String> list1 = new ArrayList<String>();
    for (int i = 0; i < n; i++){
      list1.add(br.readLine());
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("S " + i) == false)
        System.out.println("S " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("H " + i) == false)
        System.out.println("H " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("C " + i) == false)
        System.out.println("C " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("D " + i) == false)
        System.out.println("D " + i);
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str1 = br.readLine(); str1 br.readLine() br.readLine br String[] str2 = str1.split(" "); str2 str1.split(" ") str1.split str1 " " int n = Integer.parseInt(str2[0]); n Integer.parseInt(str2[0]) Integer.parseInt Integer str2[0] str2 0 ArrayList<String> list1 = new ArrayList<String>(); list1 new ArrayList<String>() for (int i = 0; i < n; i++){
      list1.add(br.readLine());
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      list1.add(br.readLine());
    } {
      list1.add(br.readLine());
    } list1.add(br.readLine()) list1.add list1 br.readLine() br.readLine br for(int i = 1; i <= 13; i++){
      if (list1.contains("S " + i) == false)
        System.out.println("S " + i);
    } int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
      if (list1.contains("S " + i) == false)
        System.out.println("S " + i);
    } {
      if (list1.contains("S " + i) == false)
        System.out.println("S " + i);
    } if (list1.contains("S " + i) == false)
        System.out.println("S " + i); list1.contains("S " + i) == false list1.contains("S " + i) list1.contains list1 "S " + i "S " i false System.out.println("S " + i) System.out.println System.out System System.out "S " + i "S " i for(int i = 1; i <= 13; i++){
      if (list1.contains("H " + i) == false)
        System.out.println("H " + i);
    } int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
      if (list1.contains("H " + i) == false)
        System.out.println("H " + i);
    } {
      if (list1.contains("H " + i) == false)
        System.out.println("H " + i);
    } if (list1.contains("H " + i) == false)
        System.out.println("H " + i); list1.contains("H " + i) == false list1.contains("H " + i) list1.contains list1 "H " + i "H " i false System.out.println("H " + i) System.out.println System.out System System.out "H " + i "H " i for(int i = 1; i <= 13; i++){
      if (list1.contains("C " + i) == false)
        System.out.println("C " + i);
    } int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
      if (list1.contains("C " + i) == false)
        System.out.println("C " + i);
    } {
      if (list1.contains("C " + i) == false)
        System.out.println("C " + i);
    } if (list1.contains("C " + i) == false)
        System.out.println("C " + i); list1.contains("C " + i) == false list1.contains("C " + i) list1.contains list1 "C " + i "C " i false System.out.println("C " + i) System.out.println System.out System System.out "C " + i "C " i for(int i = 1; i <= 13; i++){
      if (list1.contains("D " + i) == false)
        System.out.println("D " + i);
    } int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
      if (list1.contains("D " + i) == false)
        System.out.println("D " + i);
    } {
      if (list1.contains("D " + i) == false)
        System.out.println("D " + i);
    } if (list1.contains("D " + i) == false)
        System.out.println("D " + i); list1.contains("D " + i) == false list1.contains("D " + i) list1.contains list1 "D " + i "D " i false System.out.println("D " + i) System.out.println System.out System System.out "D " + i "D " i String[] args args
import java.io.*;
import java.util.ArrayList;

class Main{
  public static void main(String[] args) throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str1 = br.readLine();
    String[] str2 = str1.split(" ");
    int n = Integer.parseInt(str2[0]);

    ArrayList<String> list1 = new ArrayList<String>();
    for (int i = 0; i < n; i++){
      list1.add(br.readLine());
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("S " + i) == false)
        System.out.println("S " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("H " + i) == false)
        System.out.println("H " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("C " + i) == false)
        System.out.println("C " + i);
    }
    for(int i = 1; i <= 13; i++){
      if (list1.contains("D " + i) == false)
        System.out.println("D " + i);
    }
  }
}