
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int cardCount = Integer.parseInt(reader.readLine());

        String[] marks = {"S", "H", "C", "D"};
        Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();
        for (String mark : marks) {
            cards.put(mark, new ArrayList<Integer>());
        }

        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String[] in = line.split(" ");
            if (cards.containsKey(in[0]))  {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            }
        }

        for (String mark : marks) {
            List<Integer> cardList = cards.get(mark);
            for (int i = 1; i <= 13; i++) {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + 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.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.HashMap; HashMap java.util import java.util.List; List java.util import java.util.Map; Map java.util public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int cardCount = Integer.parseInt(reader.readLine());

        String[] marks = {"S", "H", "C", "D"};
        Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();
        for (String mark : marks) {
            cards.put(mark, new ArrayList<Integer>());
        }

        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String[] in = line.split(" ");
            if (cards.containsKey(in[0]))  {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            }
        }

        for (String mark : marks) {
            List<Integer> cardList = cards.get(mark);
            for (int i = 1; i <= 13; i++) {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            }
        }
   }
} Main public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int cardCount = Integer.parseInt(reader.readLine());

        String[] marks = {"S", "H", "C", "D"};
        Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();
        for (String mark : marks) {
            cards.put(mark, new ArrayList<Integer>());
        }

        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String[] in = line.split(" ");
            if (cards.containsKey(in[0]))  {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            }
        }

        for (String mark : marks) {
            List<Integer> cardList = cards.get(mark);
            for (int i = 1; i <= 13; i++) {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            }
        }
   } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int cardCount = Integer.parseInt(reader.readLine());

        String[] marks = {"S", "H", "C", "D"};
        Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();
        for (String mark : marks) {
            cards.put(mark, new ArrayList<Integer>());
        }

        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String[] in = line.split(" ");
            if (cards.containsKey(in[0]))  {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            }
        }

        for (String mark : marks) {
            List<Integer> cardList = cards.get(mark);
            for (int i = 1; i <= 13; i++) {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            }
        }
   } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int cardCount = Integer.parseInt(reader.readLine()); cardCount Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader String[] marks = {"S", "H", "C", "D"}; marks {"S", "H", "C", "D"} "S" "H" "C" "D" Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>(); cards new HashMap<String,List<Integer>>() for (String mark : marks) {
            cards.put(mark, new ArrayList<Integer>());
        } String mark marks {
            cards.put(mark, new ArrayList<Integer>());
        } {
            cards.put(mark, new ArrayList<Integer>());
        } cards.put(mark, new ArrayList<Integer>()) cards.put cards mark new ArrayList<Integer>() for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String[] in = line.split(" ");
            if (cards.containsKey(in[0]))  {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            }
        } int i = 0; int i = 0; i 0 i < cardCount i cardCount i++ i++ i {
            String line = reader.readLine();
            String[] in = line.split(" ");
            if (cards.containsKey(in[0]))  {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            }
        } {
            String line = reader.readLine();
            String[] in = line.split(" ");
            if (cards.containsKey(in[0]))  {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            }
        } String line = reader.readLine(); line reader.readLine() reader.readLine reader String[] in = line.split(" "); in line.split(" ") line.split line " " if (cards.containsKey(in[0]))  {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            } cards.containsKey(in[0]) cards.containsKey cards in[0] in 0 {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            } cards.get(in[0]).add(Integer.parseInt(in[1])) cards.get(in[0]).add cards.get(in[0]) cards.get cards in[0] in 0 Integer.parseInt(in[1]) Integer.parseInt Integer in[1] in 1 for (String mark : marks) {
            List<Integer> cardList = cards.get(mark);
            for (int i = 1; i <= 13; i++) {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            }
        } String mark marks {
            List<Integer> cardList = cards.get(mark);
            for (int i = 1; i <= 13; i++) {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            }
        } {
            List<Integer> cardList = cards.get(mark);
            for (int i = 1; i <= 13; i++) {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            }
        } List<Integer> cardList = cards.get(mark); cardList cards.get(mark) cards.get cards mark for (int i = 1; i <= 13; i++) {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            } int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            } {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            } if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                } !cardList.contains(i) cardList.contains(i) cardList.contains cardList i {
                    System.out.println(mark + " " + i);
                } System.out.println(mark + " " + i) System.out.println System.out System System.out mark + " " + i mark + " " + i mark " " i String[] args args public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int cardCount = Integer.parseInt(reader.readLine());

        String[] marks = {"S", "H", "C", "D"};
        Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();
        for (String mark : marks) {
            cards.put(mark, new ArrayList<Integer>());
        }

        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String[] in = line.split(" ");
            if (cards.containsKey(in[0]))  {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            }
        }

        for (String mark : marks) {
            List<Integer> cardList = cards.get(mark);
            for (int i = 1; i <= 13; i++) {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            }
        }
   }
} public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int cardCount = Integer.parseInt(reader.readLine());

        String[] marks = {"S", "H", "C", "D"};
        Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();
        for (String mark : marks) {
            cards.put(mark, new ArrayList<Integer>());
        }

        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String[] in = line.split(" ");
            if (cards.containsKey(in[0]))  {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            }
        }

        for (String mark : marks) {
            List<Integer> cardList = cards.get(mark);
            for (int i = 1; i <= 13; i++) {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            }
        }
   }
} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int cardCount = Integer.parseInt(reader.readLine());

        String[] marks = {"S", "H", "C", "D"};
        Map<String,List<Integer>> cards = new HashMap<String,List<Integer>>();
        for (String mark : marks) {
            cards.put(mark, new ArrayList<Integer>());
        }

        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String[] in = line.split(" ");
            if (cards.containsKey(in[0]))  {
                cards.get(in[0]).add(Integer.parseInt(in[1]));
            }
        }

        for (String mark : marks) {
            List<Integer> cardList = cards.get(mark);
            for (int i = 1; i <= 13; i++) {
                if (!cardList.contains(i)) {
                    System.out.println(mark + " " + i);
                }
            }
        }
   }
}