import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner (System.in);
		StringBuilder str = new StringBuilder();

		boolean [][] cards = new boolean [4][13] ;
		//自分の手持ちカード枚数
		int myCards = scan.nextInt();
            //手持ちカード枚数まで入力する
		for(int i = 0 ; i < myCards ; i++){

	    //マークと数字を入れる
		String mark = scan.next();   int number = scan.nextInt();

		//該当数るマークと数字の配列にtrueを入れる
		if(mark.equals("S")) cards [0][number-1] = true;
		else if(mark.equals("H")) cards [1][number-1] = true;
		else if(mark.equals("C")) cards [2][number-1] = true;
		else cards [3][number-1] = true;

		}


       //cards[i][j]==falseだったら、出力
		for(int i = 0 ; i < 4 ; i++){
			for(int j= 0 ; j < 13 ; j++){
		            if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				}
			}
		}

	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner (System.in);
		StringBuilder str = new StringBuilder();

		boolean [][] cards = new boolean [4][13] ;
		//自分の手持ちカード枚数
		int myCards = scan.nextInt();
            //手持ちカード枚数まで入力する
		for(int i = 0 ; i < myCards ; i++){

	    //マークと数字を入れる
		String mark = scan.next();   int number = scan.nextInt();

		//該当数るマークと数字の配列にtrueを入れる
		if(mark.equals("S")) cards [0][number-1] = true;
		else if(mark.equals("H")) cards [1][number-1] = true;
		else if(mark.equals("C")) cards [2][number-1] = true;
		else cards [3][number-1] = true;

		}


       //cards[i][j]==falseだったら、出力
		for(int i = 0 ; i < 4 ; i++){
			for(int j= 0 ; j < 13 ; j++){
		            if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				}
			}
		}

	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner (System.in);
		StringBuilder str = new StringBuilder();

		boolean [][] cards = new boolean [4][13] ;
		//自分の手持ちカード枚数
		int myCards = scan.nextInt();
            //手持ちカード枚数まで入力する
		for(int i = 0 ; i < myCards ; i++){

	    //マークと数字を入れる
		String mark = scan.next();   int number = scan.nextInt();

		//該当数るマークと数字の配列にtrueを入れる
		if(mark.equals("S")) cards [0][number-1] = true;
		else if(mark.equals("H")) cards [1][number-1] = true;
		else if(mark.equals("C")) cards [2][number-1] = true;
		else cards [3][number-1] = true;

		}


       //cards[i][j]==falseだったら、出力
		for(int i = 0 ; i < 4 ; i++){
			for(int j= 0 ; j < 13 ; j++){
		            if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				}
			}
		}

	} main {

		Scanner scan = new Scanner (System.in);
		StringBuilder str = new StringBuilder();

		boolean [][] cards = new boolean [4][13] ;
		//自分の手持ちカード枚数
		int myCards = scan.nextInt();
            //手持ちカード枚数まで入力する
		for(int i = 0 ; i < myCards ; i++){

	    //マークと数字を入れる
		String mark = scan.next();   int number = scan.nextInt();

		//該当数るマークと数字の配列にtrueを入れる
		if(mark.equals("S")) cards [0][number-1] = true;
		else if(mark.equals("H")) cards [1][number-1] = true;
		else if(mark.equals("C")) cards [2][number-1] = true;
		else cards [3][number-1] = true;

		}


       //cards[i][j]==falseだったら、出力
		for(int i = 0 ; i < 4 ; i++){
			for(int j= 0 ; j < 13 ; j++){
		            if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				}
			}
		}

	} Scanner scan = new Scanner (System.in); scan new Scanner (System.in) StringBuilder str = new StringBuilder(); str new StringBuilder() boolean [][] cards = new boolean [4][13] ; cards new boolean [4][13] 4 13 int myCards = scan.nextInt(); myCards scan.nextInt() scan.nextInt scan for(int i = 0 ; i < myCards ; i++){

	    //マークと数字を入れる
		String mark = scan.next();   int number = scan.nextInt();

		//該当数るマークと数字の配列にtrueを入れる
		if(mark.equals("S")) cards [0][number-1] = true;
		else if(mark.equals("H")) cards [1][number-1] = true;
		else if(mark.equals("C")) cards [2][number-1] = true;
		else cards [3][number-1] = true;

		} int i = 0 ; int i = 0 ; i 0 i < myCards i myCards i++ i++ i {

	    //マークと数字を入れる
		String mark = scan.next();   int number = scan.nextInt();

		//該当数るマークと数字の配列にtrueを入れる
		if(mark.equals("S")) cards [0][number-1] = true;
		else if(mark.equals("H")) cards [1][number-1] = true;
		else if(mark.equals("C")) cards [2][number-1] = true;
		else cards [3][number-1] = true;

		} {

	    //マークと数字を入れる
		String mark = scan.next();   int number = scan.nextInt();

		//該当数るマークと数字の配列にtrueを入れる
		if(mark.equals("S")) cards [0][number-1] = true;
		else if(mark.equals("H")) cards [1][number-1] = true;
		else if(mark.equals("C")) cards [2][number-1] = true;
		else cards [3][number-1] = true;

		} String mark = scan.next(); mark scan.next() scan.next scan int number = scan.nextInt(); number scan.nextInt() scan.nextInt scan if(mark.equals("S")) cards [0][number-1] = true;
		else if(mark.equals("H")) cards [1][number-1] = true;
		else if(mark.equals("C")) cards [2][number-1] = true;
		else cards [3][number-1] = true; mark.equals("S") mark.equals mark "S" cards [0][number-1] = true cards [0][number-1] cards [0] cards 0 number-1 number 1 true if(mark.equals("H")) cards [1][number-1] = true;
		else if(mark.equals("C")) cards [2][number-1] = true;
		else cards [3][number-1] = true; mark.equals("H") mark.equals mark "H" cards [1][number-1] = true cards [1][number-1] cards [1] cards 1 number-1 number 1 true if(mark.equals("C")) cards [2][number-1] = true;
		else cards [3][number-1] = true; mark.equals("C") mark.equals mark "C" cards [2][number-1] = true cards [2][number-1] cards [2] cards 2 number-1 number 1 true cards [3][number-1] = true cards [3][number-1] cards [3] cards 3 number-1 number 1 true for(int i = 0 ; i < 4 ; i++){
			for(int j= 0 ; j < 13 ; j++){
		            if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				}
			}
		} int i = 0 ; int i = 0 ; i 0 i < 4 i 4 i++ i++ i {
			for(int j= 0 ; j < 13 ; j++){
		            if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				}
			}
		} {
			for(int j= 0 ; j < 13 ; j++){
		            if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				}
			}
		} for(int j= 0 ; j < 13 ; j++){
		            if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				}
			} int j= 0 ; int j= 0 ; j 0 j < 13 j 13 j++ j++ j {
		            if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				}
			} {
		            if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				}
			} if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				} !cards[i][j] cards[i][j] cards[i] cards i j {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				} if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1)); i == 0 i 0 System.out.println("S "+ (j+1)) System.out.println System.out System System.out "S "+ (j+1) "S " (j+1) j 1 if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1)); i == 1 i 1 System.out.println("H "+ (j+1)) System.out.println System.out System System.out "H "+ (j+1) "H " (j+1) j 1 if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1)); i == 2 i 2 System.out.println("C "+ (j+1)) System.out.println System.out System System.out "C "+ (j+1) "C " (j+1) j 1 System.out.println("D "+ (j+1)) System.out.println System.out System System.out "D "+ (j+1) "D " (j+1) j 1 String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner (System.in);
		StringBuilder str = new StringBuilder();

		boolean [][] cards = new boolean [4][13] ;
		//自分の手持ちカード枚数
		int myCards = scan.nextInt();
            //手持ちカード枚数まで入力する
		for(int i = 0 ; i < myCards ; i++){

	    //マークと数字を入れる
		String mark = scan.next();   int number = scan.nextInt();

		//該当数るマークと数字の配列にtrueを入れる
		if(mark.equals("S")) cards [0][number-1] = true;
		else if(mark.equals("H")) cards [1][number-1] = true;
		else if(mark.equals("C")) cards [2][number-1] = true;
		else cards [3][number-1] = true;

		}


       //cards[i][j]==falseだったら、出力
		for(int i = 0 ; i < 4 ; i++){
			for(int j= 0 ; j < 13 ; j++){
		            if(!cards[i][j]) {if(i == 0) System.out.println("S "+ (j+1));
                                              else if(i == 1) System.out.println("H "+ (j+1));
                                              else if(i == 2) System.out.println("C "+ (j+1));
                                              else System.out.println("D "+ (j+1));
				}
			}
		}

	}
}