import java.util.*;
class Main{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args){
		String[] suit = {"S ","H ","C ","D "};
		TreeSet<String> in = new TreeSet<>();
		s.nextLine();
		while(s.hasNextLine()) {
			in.add(s.nextLine());
		}
		String str;
		for(String s:suit) {
			for(int i=1;i<=13;++i) {
				str = s+i;
				if(!in.contains(str)) {
					System.out.println(str);
				}
			}
		}
	}
} import java.util.*; util.* java class Main{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args){
		String[] suit = {"S ","H ","C ","D "};
		TreeSet<String> in = new TreeSet<>();
		s.nextLine();
		while(s.hasNextLine()) {
			in.add(s.nextLine());
		}
		String str;
		for(String s:suit) {
			for(int i=1;i<=13;++i) {
				str = s+i;
				if(!in.contains(str)) {
					System.out.println(str);
				}
			}
		}
	}
} Main static Scanner s = new Scanner(System.in); s new Scanner(System.in) public static void main(String[] args){
		String[] suit = {"S ","H ","C ","D "};
		TreeSet<String> in = new TreeSet<>();
		s.nextLine();
		while(s.hasNextLine()) {
			in.add(s.nextLine());
		}
		String str;
		for(String s:suit) {
			for(int i=1;i<=13;++i) {
				str = s+i;
				if(!in.contains(str)) {
					System.out.println(str);
				}
			}
		}
	} main {
		String[] suit = {"S ","H ","C ","D "};
		TreeSet<String> in = new TreeSet<>();
		s.nextLine();
		while(s.hasNextLine()) {
			in.add(s.nextLine());
		}
		String str;
		for(String s:suit) {
			for(int i=1;i<=13;++i) {
				str = s+i;
				if(!in.contains(str)) {
					System.out.println(str);
				}
			}
		}
	} String[] suit = {"S ","H ","C ","D "}; suit {"S ","H ","C ","D "} "S " "H " "C " "D " TreeSet<String> in = new TreeSet<>(); in new TreeSet<>() s.nextLine() s.nextLine s while(s.hasNextLine()) {
			in.add(s.nextLine());
		} s.hasNextLine() s.hasNextLine s {
			in.add(s.nextLine());
		} in.add(s.nextLine()) in.add in s.nextLine() s.nextLine s String str; str for(String s:suit) {
			for(int i=1;i<=13;++i) {
				str = s+i;
				if(!in.contains(str)) {
					System.out.println(str);
				}
			}
		} String s suit {
			for(int i=1;i<=13;++i) {
				str = s+i;
				if(!in.contains(str)) {
					System.out.println(str);
				}
			}
		} {
			for(int i=1;i<=13;++i) {
				str = s+i;
				if(!in.contains(str)) {
					System.out.println(str);
				}
			}
		} for(int i=1;i<=13;++i) {
				str = s+i;
				if(!in.contains(str)) {
					System.out.println(str);
				}
			} int i=1; int i=1; i 1 i<=13 i 13 ++i ++i i {
				str = s+i;
				if(!in.contains(str)) {
					System.out.println(str);
				}
			} {
				str = s+i;
				if(!in.contains(str)) {
					System.out.println(str);
				}
			} str = s+i str s+i s i if(!in.contains(str)) {
					System.out.println(str);
				} !in.contains(str) in.contains(str) in.contains in str {
					System.out.println(str);
				} System.out.println(str) System.out.println System.out System System.out str String[] args args
import java.util.*;
class Main{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args){
		String[] suit = {"S ","H ","C ","D "};
		TreeSet<String> in = new TreeSet<>();
		s.nextLine();
		while(s.hasNextLine()) {
			in.add(s.nextLine());
		}
		String str;
		for(String s:suit) {
			for(int i=1;i<=13;++i) {
				str = s+i;
				if(!in.contains(str)) {
					System.out.println(str);
				}
			}
		}
	}
}