import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Map<String, Integer> card = new HashMap<>();
        try {
            int count = Integer.parseInt(br.readLine());
            for (int i = 0; i < count; i++) {
                card.put(br.readLine(), 1);
            }
        } finally {
            br.close();
        }
        String[] suitArr = {"S", "H", "C", "D"};
        for (String suit : suitArr) {
            for (int i = 1; i <= 13; i++) {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            }
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Map<String, Integer> card = new HashMap<>();
        try {
            int count = Integer.parseInt(br.readLine());
            for (int i = 0; i < count; i++) {
                card.put(br.readLine(), 1);
            }
        } finally {
            br.close();
        }
        String[] suitArr = {"S", "H", "C", "D"};
        for (String suit : suitArr) {
            for (int i = 1; i <= 13; i++) {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            }
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Map<String, Integer> card = new HashMap<>();
        try {
            int count = Integer.parseInt(br.readLine());
            for (int i = 0; i < count; i++) {
                card.put(br.readLine(), 1);
            }
        } finally {
            br.close();
        }
        String[] suitArr = {"S", "H", "C", "D"};
        for (String suit : suitArr) {
            for (int i = 1; i <= 13; i++) {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            }
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Map<String, Integer> card = new HashMap<>();
        try {
            int count = Integer.parseInt(br.readLine());
            for (int i = 0; i < count; i++) {
                card.put(br.readLine(), 1);
            }
        } finally {
            br.close();
        }
        String[] suitArr = {"S", "H", "C", "D"};
        for (String suit : suitArr) {
            for (int i = 1; i <= 13; i++) {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            }
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Map<String, Integer> card = new HashMap<>(); card new HashMap<>() try {
            int count = Integer.parseInt(br.readLine());
            for (int i = 0; i < count; i++) {
                card.put(br.readLine(), 1);
            }
        } finally {
            br.close();
        } {
            br.close();
        } br.close() br.close br {
            int count = Integer.parseInt(br.readLine());
            for (int i = 0; i < count; i++) {
                card.put(br.readLine(), 1);
            }
        } int count = Integer.parseInt(br.readLine()); count Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i = 0; i < count; i++) {
                card.put(br.readLine(), 1);
            } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
                card.put(br.readLine(), 1);
            } {
                card.put(br.readLine(), 1);
            } card.put(br.readLine(), 1) card.put card br.readLine() br.readLine br 1 String[] suitArr = {"S", "H", "C", "D"}; suitArr {"S", "H", "C", "D"} "S" "H" "C" "D" for (String suit : suitArr) {
            for (int i = 1; i <= 13; i++) {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            }
        } String suit suitArr {
            for (int i = 1; i <= 13; i++) {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            }
        } {
            for (int i = 1; i <= 13; i++) {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            }
        } for (int i = 1; i <= 13; i++) {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            } int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            } {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            } String temp = suit+" "+i; temp suit+" "+i suit+" "+i suit " " i if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                } card.get(temp) == null card.get(temp) card.get card temp null {
                    System.out.println(suit+" "+i);
                } System.out.println(suit+" "+i) System.out.println System.out System System.out suit+" "+i suit+" "+i suit " " i String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Map<String, Integer> card = new HashMap<>();
        try {
            int count = Integer.parseInt(br.readLine());
            for (int i = 0; i < count; i++) {
                card.put(br.readLine(), 1);
            }
        } finally {
            br.close();
        }
        String[] suitArr = {"S", "H", "C", "D"};
        for (String suit : suitArr) {
            for (int i = 1; i <= 13; i++) {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            }
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Map<String, Integer> card = new HashMap<>();
        try {
            int count = Integer.parseInt(br.readLine());
            for (int i = 0; i < count; i++) {
                card.put(br.readLine(), 1);
            }
        } finally {
            br.close();
        }
        String[] suitArr = {"S", "H", "C", "D"};
        for (String suit : suitArr) {
            for (int i = 1; i <= 13; i++) {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Map<String, Integer> card = new HashMap<>();
        try {
            int count = Integer.parseInt(br.readLine());
            for (int i = 0; i < count; i++) {
                card.put(br.readLine(), 1);
            }
        } finally {
            br.close();
        }
        String[] suitArr = {"S", "H", "C", "D"};
        for (String suit : suitArr) {
            for (int i = 1; i <= 13; i++) {
                String temp = suit+" "+i;
                if (card.get(temp) == null) {
                    System.out.println(suit+" "+i);
                }
            }
        }
    }
}