import java.io.*;
import java.util.Arrays;

public class Main{
	public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String sc = br.readLine();
		int n = Integer.parseInt(sc);
		String[] str = new String[n];
		for (int i =0;i<n ;i++ ) {
			str[i] = br.readLine();
		}
		String[] mark = {"S","H","C","D"};
		for (String ma : mark) {
			for (int i = 1; i<=13 ;i++ ) {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			}
		}
	}

} import java.io.*; io.* java import java.util.Arrays; Arrays java.util public class Main{
	public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String sc = br.readLine();
		int n = Integer.parseInt(sc);
		String[] str = new String[n];
		for (int i =0;i<n ;i++ ) {
			str[i] = br.readLine();
		}
		String[] mark = {"S","H","C","D"};
		for (String ma : mark) {
			for (int i = 1; i<=13 ;i++ ) {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			}
		}
	}

} Main public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String sc = br.readLine();
		int n = Integer.parseInt(sc);
		String[] str = new String[n];
		for (int i =0;i<n ;i++ ) {
			str[i] = br.readLine();
		}
		String[] mark = {"S","H","C","D"};
		for (String ma : mark) {
			for (int i = 1; i<=13 ;i++ ) {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			}
		}
	} main { 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String sc = br.readLine();
		int n = Integer.parseInt(sc);
		String[] str = new String[n];
		for (int i =0;i<n ;i++ ) {
			str[i] = br.readLine();
		}
		String[] mark = {"S","H","C","D"};
		for (String ma : mark) {
			for (int i = 1; i<=13 ;i++ ) {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			}
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String sc = br.readLine(); sc br.readLine() br.readLine br int n = Integer.parseInt(sc); n Integer.parseInt(sc) Integer.parseInt Integer sc String[] str = new String[n]; str new String[n] n for (int i =0;i<n ;i++ ) {
			str[i] = br.readLine();
		} int i =0; int i =0; i 0 i<n i n i++ i++ i {
			str[i] = br.readLine();
		} {
			str[i] = br.readLine();
		} str[i] = br.readLine() str[i] str i br.readLine() br.readLine br String[] mark = {"S","H","C","D"}; mark {"S","H","C","D"} "S" "H" "C" "D" for (String ma : mark) {
			for (int i = 1; i<=13 ;i++ ) {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			}
		} String ma mark {
			for (int i = 1; i<=13 ;i++ ) {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			}
		} {
			for (int i = 1; i<=13 ;i++ ) {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			}
		} for (int i = 1; i<=13 ;i++ ) {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			} int i = 1; int i = 1; i 1 i<=13 i 13 i++ i++ i {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			} {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			} String s = Integer.toString(i); s Integer.toString(i) Integer.toString Integer i String st = ma + " " + s; st ma + " " + s ma + " " + s ma " " s if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				} Arrays.asList(str).contains(st) Arrays.asList(str).contains Arrays.asList(str) Arrays.asList Arrays str st {
					continue;
				} continue; {
					System.out.println(st);
				} System.out.println(st) System.out.println System.out System System.out st String[] args args public class Main{
	public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String sc = br.readLine();
		int n = Integer.parseInt(sc);
		String[] str = new String[n];
		for (int i =0;i<n ;i++ ) {
			str[i] = br.readLine();
		}
		String[] mark = {"S","H","C","D"};
		for (String ma : mark) {
			for (int i = 1; i<=13 ;i++ ) {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			}
		}
	}

} public class Main{
	public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String sc = br.readLine();
		int n = Integer.parseInt(sc);
		String[] str = new String[n];
		for (int i =0;i<n ;i++ ) {
			str[i] = br.readLine();
		}
		String[] mark = {"S","H","C","D"};
		for (String ma : mark) {
			for (int i = 1; i<=13 ;i++ ) {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			}
		}
	}

} Main
import java.io.*;
import java.util.Arrays;

public class Main{
	public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String sc = br.readLine();
		int n = Integer.parseInt(sc);
		String[] str = new String[n];
		for (int i =0;i<n ;i++ ) {
			str[i] = br.readLine();
		}
		String[] mark = {"S","H","C","D"};
		for (String ma : mark) {
			for (int i = 1; i<=13 ;i++ ) {
				String s = Integer.toString(i);
				String st = ma + " " + s;
				if (Arrays.asList(str).contains(st)) {
					continue;
				}else{
					System.out.println(st);
				}
			}
		}
	}

}