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

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[][] card = new String[4][13];
        String[] CardPic = { "S","H","C","D"};

        for ( int xx = 0 ; xx <= 3 ; xx++ ) {
            for ( int yy = 0 ; yy <= 12 ; yy++ ) {
                card[xx][yy] = CardPic[xx];
            }
        }
        
        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String column[] = line.split(" ");
            if (column[0].equals("S")) {
                card[0][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("H")) {
                card[1][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("C")) {
                card[2][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("D")) {
                card[3][Integer.parseInt(column[1])-1] = null;
            }
        }
        
        for (int x = 0; x <= 3; x++) {
            for (int y = 0; y <= 12; y++) {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            }
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io 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[][] card = new String[4][13];
        String[] CardPic = { "S","H","C","D"};

        for ( int xx = 0 ; xx <= 3 ; xx++ ) {
            for ( int yy = 0 ; yy <= 12 ; yy++ ) {
                card[xx][yy] = CardPic[xx];
            }
        }
        
        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String column[] = line.split(" ");
            if (column[0].equals("S")) {
                card[0][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("H")) {
                card[1][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("C")) {
                card[2][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("D")) {
                card[3][Integer.parseInt(column[1])-1] = null;
            }
        }
        
        for (int x = 0; x <= 3; x++) {
            for (int y = 0; y <= 12; y++) {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            }
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int cardCount = Integer.parseInt(reader.readLine());
        String[][] card = new String[4][13];
        String[] CardPic = { "S","H","C","D"};

        for ( int xx = 0 ; xx <= 3 ; xx++ ) {
            for ( int yy = 0 ; yy <= 12 ; yy++ ) {
                card[xx][yy] = CardPic[xx];
            }
        }
        
        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String column[] = line.split(" ");
            if (column[0].equals("S")) {
                card[0][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("H")) {
                card[1][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("C")) {
                card[2][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("D")) {
                card[3][Integer.parseInt(column[1])-1] = null;
            }
        }
        
        for (int x = 0; x <= 3; x++) {
            for (int y = 0; y <= 12; y++) {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            }
        }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int cardCount = Integer.parseInt(reader.readLine());
        String[][] card = new String[4][13];
        String[] CardPic = { "S","H","C","D"};

        for ( int xx = 0 ; xx <= 3 ; xx++ ) {
            for ( int yy = 0 ; yy <= 12 ; yy++ ) {
                card[xx][yy] = CardPic[xx];
            }
        }
        
        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String column[] = line.split(" ");
            if (column[0].equals("S")) {
                card[0][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("H")) {
                card[1][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("C")) {
                card[2][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("D")) {
                card[3][Integer.parseInt(column[1])-1] = null;
            }
        }
        
        for (int x = 0; x <= 3; x++) {
            for (int y = 0; y <= 12; y++) {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            }
        }
    } 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[][] card = new String[4][13]; card new String[4][13] 4 13 String[] CardPic = { "S","H","C","D"}; CardPic { "S","H","C","D"} "S" "H" "C" "D" for ( int xx = 0 ; xx <= 3 ; xx++ ) {
            for ( int yy = 0 ; yy <= 12 ; yy++ ) {
                card[xx][yy] = CardPic[xx];
            }
        } int xx = 0 ; int xx = 0 ; xx 0 xx <= 3 xx 3 xx++ xx++ xx {
            for ( int yy = 0 ; yy <= 12 ; yy++ ) {
                card[xx][yy] = CardPic[xx];
            }
        } {
            for ( int yy = 0 ; yy <= 12 ; yy++ ) {
                card[xx][yy] = CardPic[xx];
            }
        } for ( int yy = 0 ; yy <= 12 ; yy++ ) {
                card[xx][yy] = CardPic[xx];
            } int yy = 0 ; int yy = 0 ; yy 0 yy <= 12 yy 12 yy++ yy++ yy {
                card[xx][yy] = CardPic[xx];
            } {
                card[xx][yy] = CardPic[xx];
            } card[xx][yy] = CardPic[xx] card[xx][yy] card[xx] card xx yy CardPic[xx] CardPic xx for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String column[] = line.split(" ");
            if (column[0].equals("S")) {
                card[0][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("H")) {
                card[1][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("C")) {
                card[2][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("D")) {
                card[3][Integer.parseInt(column[1])-1] = null;
            }
        } int i = 0; int i = 0; i 0 i < cardCount i cardCount i++ i++ i {
            String line = reader.readLine();
            String column[] = line.split(" ");
            if (column[0].equals("S")) {
                card[0][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("H")) {
                card[1][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("C")) {
                card[2][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("D")) {
                card[3][Integer.parseInt(column[1])-1] = null;
            }
        } {
            String line = reader.readLine();
            String column[] = line.split(" ");
            if (column[0].equals("S")) {
                card[0][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("H")) {
                card[1][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("C")) {
                card[2][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("D")) {
                card[3][Integer.parseInt(column[1])-1] = null;
            }
        } String line = reader.readLine(); line reader.readLine() reader.readLine reader String column[] = line.split(" "); column line.split(" ") line.split line " " if (column[0].equals("S")) {
                card[0][Integer.parseInt(column[1])-1] = null;
            } column[0].equals("S") column[0].equals column[0] column 0 "S" {
                card[0][Integer.parseInt(column[1])-1] = null;
            } card[0][Integer.parseInt(column[1])-1] = null card[0][Integer.parseInt(column[1])-1] card[0] card 0 Integer.parseInt(column[1])-1 Integer.parseInt(column[1]) Integer.parseInt Integer column[1] column 1 1 null if (column[0].equals("H")) {
                card[1][Integer.parseInt(column[1])-1] = null;
            } column[0].equals("H") column[0].equals column[0] column 0 "H" {
                card[1][Integer.parseInt(column[1])-1] = null;
            } card[1][Integer.parseInt(column[1])-1] = null card[1][Integer.parseInt(column[1])-1] card[1] card 1 Integer.parseInt(column[1])-1 Integer.parseInt(column[1]) Integer.parseInt Integer column[1] column 1 1 null if (column[0].equals("C")) {
                card[2][Integer.parseInt(column[1])-1] = null;
            } column[0].equals("C") column[0].equals column[0] column 0 "C" {
                card[2][Integer.parseInt(column[1])-1] = null;
            } card[2][Integer.parseInt(column[1])-1] = null card[2][Integer.parseInt(column[1])-1] card[2] card 2 Integer.parseInt(column[1])-1 Integer.parseInt(column[1]) Integer.parseInt Integer column[1] column 1 1 null if (column[0].equals("D")) {
                card[3][Integer.parseInt(column[1])-1] = null;
            } column[0].equals("D") column[0].equals column[0] column 0 "D" {
                card[3][Integer.parseInt(column[1])-1] = null;
            } card[3][Integer.parseInt(column[1])-1] = null card[3][Integer.parseInt(column[1])-1] card[3] card 3 Integer.parseInt(column[1])-1 Integer.parseInt(column[1]) Integer.parseInt Integer column[1] column 1 1 null for (int x = 0; x <= 3; x++) {
            for (int y = 0; y <= 12; y++) {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            }
        } int x = 0; int x = 0; x 0 x <= 3 x 3 x++ x++ x {
            for (int y = 0; y <= 12; y++) {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            }
        } {
            for (int y = 0; y <= 12; y++) {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            }
        } for (int y = 0; y <= 12; y++) {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            } int y = 0; int y = 0; y 0 y <= 12 y 12 y++ y++ y {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            } {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            } if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                } card[x][y] != null card[x][y] card[x] card x y null {
                    System.out.println(card[x][y] + " " + (y+1));
                } System.out.println(card[x][y] + " " + (y+1)) System.out.println System.out System System.out card[x][y] + " " + (y+1) card[x][y] + " " + (y+1) card[x][y] card[x] card x y " " (y+1) y 1 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[][] card = new String[4][13];
        String[] CardPic = { "S","H","C","D"};

        for ( int xx = 0 ; xx <= 3 ; xx++ ) {
            for ( int yy = 0 ; yy <= 12 ; yy++ ) {
                card[xx][yy] = CardPic[xx];
            }
        }
        
        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String column[] = line.split(" ");
            if (column[0].equals("S")) {
                card[0][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("H")) {
                card[1][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("C")) {
                card[2][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("D")) {
                card[3][Integer.parseInt(column[1])-1] = null;
            }
        }
        
        for (int x = 0; x <= 3; x++) {
            for (int y = 0; y <= 12; y++) {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            }
        }
    }
} 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[][] card = new String[4][13];
        String[] CardPic = { "S","H","C","D"};

        for ( int xx = 0 ; xx <= 3 ; xx++ ) {
            for ( int yy = 0 ; yy <= 12 ; yy++ ) {
                card[xx][yy] = CardPic[xx];
            }
        }
        
        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String column[] = line.split(" ");
            if (column[0].equals("S")) {
                card[0][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("H")) {
                card[1][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("C")) {
                card[2][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("D")) {
                card[3][Integer.parseInt(column[1])-1] = null;
            }
        }
        
        for (int x = 0; x <= 3; x++) {
            for (int y = 0; y <= 12; y++) {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            }
        }
    }
} Main

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

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[][] card = new String[4][13];
        String[] CardPic = { "S","H","C","D"};

        for ( int xx = 0 ; xx <= 3 ; xx++ ) {
            for ( int yy = 0 ; yy <= 12 ; yy++ ) {
                card[xx][yy] = CardPic[xx];
            }
        }
        
        for (int i = 0; i < cardCount; i++) {
            String line = reader.readLine();
            String column[] = line.split(" ");
            if (column[0].equals("S")) {
                card[0][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("H")) {
                card[1][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("C")) {
                card[2][Integer.parseInt(column[1])-1] = null;
            }
            if (column[0].equals("D")) {
                card[3][Integer.parseInt(column[1])-1] = null;
            }
        }
        
        for (int x = 0; x <= 3; x++) {
            for (int y = 0; y <= 12; y++) {
                if (card[x][y] != null) {
                    System.out.println(card[x][y] + " " + (y+1));
                }
            }
        }
    }
}