import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        int num = Integer.parseInt(line);
        
        ArrayList<String> list = new ArrayList<String>();
        
        for (int i = 0; i < num; i++) {
            list.add(br.readLine());
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("S " + i) == false){
                System.out.println("S " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("H " + i) == false){
                System.out.println("H " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("C " + i) == false){
                System.out.println("C " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("D " + i) == false){
                System.out.println("D " + i);
            }
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        int num = Integer.parseInt(line);
        
        ArrayList<String> list = new ArrayList<String>();
        
        for (int i = 0; i < num; i++) {
            list.add(br.readLine());
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("S " + i) == false){
                System.out.println("S " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("H " + i) == false){
                System.out.println("H " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("C " + i) == false){
                System.out.println("C " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("D " + i) == false){
                System.out.println("D " + i);
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        int num = Integer.parseInt(line);
        
        ArrayList<String> list = new ArrayList<String>();
        
        for (int i = 0; i < num; i++) {
            list.add(br.readLine());
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("S " + i) == false){
                System.out.println("S " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("H " + i) == false){
                System.out.println("H " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("C " + i) == false){
                System.out.println("C " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("D " + i) == false){
                System.out.println("D " + i);
            }
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        int num = Integer.parseInt(line);
        
        ArrayList<String> list = new ArrayList<String>();
        
        for (int i = 0; i < num; i++) {
            list.add(br.readLine());
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("S " + i) == false){
                System.out.println("S " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("H " + i) == false){
                System.out.println("H " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("C " + i) == false){
                System.out.println("C " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.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 line = br.readLine(); line br.readLine() br.readLine br int num = Integer.parseInt(line); num Integer.parseInt(line) Integer.parseInt Integer line ArrayList<String> list = new ArrayList<String>(); list new ArrayList<String>() for (int i = 0; i < num; i++) {
            list.add(br.readLine());
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            list.add(br.readLine());
        } {
            list.add(br.readLine());
        } list.add(br.readLine()) list.add list br.readLine() br.readLine br for (int i = 1; i <= 13; i++) {
            if(list.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(list.contains("S " + i) == false){
                System.out.println("S " + i);
            }
        } {
            if(list.contains("S " + i) == false){
                System.out.println("S " + i);
            }
        } if(list.contains("S " + i) == false){
                System.out.println("S " + i);
            } list.contains("S " + i) == false list.contains("S " + i) list.contains list "S " + i "S " i false {
                System.out.println("S " + i);
            } 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(list.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(list.contains("H " + i) == false){
                System.out.println("H " + i);
            }
        } {
            if(list.contains("H " + i) == false){
                System.out.println("H " + i);
            }
        } if(list.contains("H " + i) == false){
                System.out.println("H " + i);
            } list.contains("H " + i) == false list.contains("H " + i) list.contains list "H " + i "H " i false {
                System.out.println("H " + i);
            } 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(list.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(list.contains("C " + i) == false){
                System.out.println("C " + i);
            }
        } {
            if(list.contains("C " + i) == false){
                System.out.println("C " + i);
            }
        } if(list.contains("C " + i) == false){
                System.out.println("C " + i);
            } list.contains("C " + i) == false list.contains("C " + i) list.contains list "C " + i "C " i false {
                System.out.println("C " + i);
            } 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(list.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(list.contains("D " + i) == false){
                System.out.println("D " + i);
            }
        } {
            if(list.contains("D " + i) == false){
                System.out.println("D " + i);
            }
        } if(list.contains("D " + i) == false){
                System.out.println("D " + i);
            } list.contains("D " + i) == false list.contains("D " + i) list.contains list "D " + i "D " i false {
                System.out.println("D " + i);
            } System.out.println("D " + i) System.out.println System.out System System.out "D " + i "D " i String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        int num = Integer.parseInt(line);
        
        ArrayList<String> list = new ArrayList<String>();
        
        for (int i = 0; i < num; i++) {
            list.add(br.readLine());
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("S " + i) == false){
                System.out.println("S " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("H " + i) == false){
                System.out.println("H " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("C " + i) == false){
                System.out.println("C " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("D " + i) == false){
                System.out.println("D " + i);
            }
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        String line = br.readLine();
        int num = Integer.parseInt(line);
        
        ArrayList<String> list = new ArrayList<String>();
        
        for (int i = 0; i < num; i++) {
            list.add(br.readLine());
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("S " + i) == false){
                System.out.println("S " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("H " + i) == false){
                System.out.println("H " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("C " + i) == false){
                System.out.println("C " + i);
            }
        }
        
        for (int i = 1; i <= 13; i++) {
            if(list.contains("D " + i) == false){
                System.out.println("D " + i);
            }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

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