import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		final String[] suits = {"S", "H", "C", "D"};
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String[] cards = new String[n];
		sc.nextLine();
		for(int i=0; i<n; i++){
			cards[i] = sc.nextLine();
		}
		
		for(int i=0; i<4; i++){
			for(int j=1; j<=13; j++){
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		final String[] suits = {"S", "H", "C", "D"};
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String[] cards = new String[n];
		sc.nextLine();
		for(int i=0; i<n; i++){
			cards[i] = sc.nextLine();
		}
		
		for(int i=0; i<4; i++){
			for(int j=1; j<=13; j++){
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		
	}

} Main public static void main(String[] args) {
		final String[] suits = {"S", "H", "C", "D"};
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String[] cards = new String[n];
		sc.nextLine();
		for(int i=0; i<n; i++){
			cards[i] = sc.nextLine();
		}
		
		for(int i=0; i<4; i++){
			for(int j=1; j<=13; j++){
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		
	} main {
		final String[] suits = {"S", "H", "C", "D"};
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String[] cards = new String[n];
		sc.nextLine();
		for(int i=0; i<n; i++){
			cards[i] = sc.nextLine();
		}
		
		for(int i=0; i<4; i++){
			for(int j=1; j<=13; j++){
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		
	} final String[] suits = {"S", "H", "C", "D"}; suits {"S", "H", "C", "D"} "S" "H" "C" "D" Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] cards = new String[n]; cards new String[n] n sc.nextLine() sc.nextLine sc for(int i=0; i<n; i++){
			cards[i] = sc.nextLine();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			cards[i] = sc.nextLine();
		} {
			cards[i] = sc.nextLine();
		} cards[i] = sc.nextLine() cards[i] cards i sc.nextLine() sc.nextLine sc for(int i=0; i<4; i++){
			for(int j=1; j<=13; j++){
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			for(int j=1; j<=13; j++){
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			}
		} {
			for(int j=1; j<=13; j++){
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			}
		} for(int j=1; j<=13; j++){
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			} int j=1; int j=1; j 1 j<=13 j 13 j++ j++ j {
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			} {
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			} boolean flag_found = false; flag_found false for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				} int k=0; int k=0; k 0 k<n k n k++ k++ k {
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				} {
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				} if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					} cards[k].equals(suits[i] + " " + j) cards[k].equals cards[k] cards k suits[i] + " " + j suits[i] + " " + j suits[i] suits i " " j {
						flag_found = true;
						break;
					} flag_found = true flag_found true break; if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				} flag_found == false flag_found false {
					System.out.println(suits[i] + " " + j);
				} System.out.println(suits[i] + " " + j) System.out.println System.out System System.out suits[i] + " " + j suits[i] + " " + j suits[i] suits i " " j String[] args args public class Main {

	public static void main(String[] args) {
		final String[] suits = {"S", "H", "C", "D"};
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String[] cards = new String[n];
		sc.nextLine();
		for(int i=0; i<n; i++){
			cards[i] = sc.nextLine();
		}
		
		for(int i=0; i<4; i++){
			for(int j=1; j<=13; j++){
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		
	}

} public class Main {

	public static void main(String[] args) {
		final String[] suits = {"S", "H", "C", "D"};
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String[] cards = new String[n];
		sc.nextLine();
		for(int i=0; i<n; i++){
			cards[i] = sc.nextLine();
		}
		
		for(int i=0; i<4; i++){
			for(int j=1; j<=13; j++){
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		final String[] suits = {"S", "H", "C", "D"};
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String[] cards = new String[n];
		sc.nextLine();
		for(int i=0; i<n; i++){
			cards[i] = sc.nextLine();
		}
		
		for(int i=0; i<4; i++){
			for(int j=1; j<=13; j++){
				boolean flag_found = false;
				for(int k=0; k<n; k++){
					if(cards[k].equals(suits[i] + " " + j)){
						flag_found = true;
						break;
					}
				}
				if(flag_found == false){
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		
	}

}