import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		int n = Integer.parseInt(str);

		String inputList[] = new String[n];
		for (int i = 0; i < n; i++) {
			String str2 = scan.nextLine();
			inputList[i] = str2;
		}
		scan.close();

		ArrayList<String> allCardList = new ArrayList<String>();
		for (int i = 1; i <= 13; i++) {
			allCardList.add("S" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("H" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("C" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("D" + " " + i);
		}

		for (int i = 0; i < 52; i++) {
			if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
				System.out.println(allCardList.get(i));
			}
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		int n = Integer.parseInt(str);

		String inputList[] = new String[n];
		for (int i = 0; i < n; i++) {
			String str2 = scan.nextLine();
			inputList[i] = str2;
		}
		scan.close();

		ArrayList<String> allCardList = new ArrayList<String>();
		for (int i = 1; i <= 13; i++) {
			allCardList.add("S" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("H" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("C" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("D" + " " + i);
		}

		for (int i = 0; i < 52; i++) {
			if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
				System.out.println(allCardList.get(i));
			}
		}
	}
} Main public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		int n = Integer.parseInt(str);

		String inputList[] = new String[n];
		for (int i = 0; i < n; i++) {
			String str2 = scan.nextLine();
			inputList[i] = str2;
		}
		scan.close();

		ArrayList<String> allCardList = new ArrayList<String>();
		for (int i = 1; i <= 13; i++) {
			allCardList.add("S" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("H" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("C" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("D" + " " + i);
		}

		for (int i = 0; i < 52; i++) {
			if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
				System.out.println(allCardList.get(i));
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		int n = Integer.parseInt(str);

		String inputList[] = new String[n];
		for (int i = 0; i < n; i++) {
			String str2 = scan.nextLine();
			inputList[i] = str2;
		}
		scan.close();

		ArrayList<String> allCardList = new ArrayList<String>();
		for (int i = 1; i <= 13; i++) {
			allCardList.add("S" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("H" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("C" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("D" + " " + i);
		}

		for (int i = 0; i < 52; i++) {
			if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
				System.out.println(allCardList.get(i));
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan int n = Integer.parseInt(str); n Integer.parseInt(str) Integer.parseInt Integer str String inputList[] = new String[n]; inputList new String[n] n for (int i = 0; i < n; i++) {
			String str2 = scan.nextLine();
			inputList[i] = str2;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String str2 = scan.nextLine();
			inputList[i] = str2;
		} {
			String str2 = scan.nextLine();
			inputList[i] = str2;
		} String str2 = scan.nextLine(); str2 scan.nextLine() scan.nextLine scan inputList[i] = str2 inputList[i] inputList i str2 scan.close() scan.close scan ArrayList<String> allCardList = new ArrayList<String>(); allCardList new ArrayList<String>() for (int i = 1; i <= 13; i++) {
			allCardList.add("S" + " " + i);
		} int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
			allCardList.add("S" + " " + i);
		} {
			allCardList.add("S" + " " + i);
		} allCardList.add("S" + " " + i) allCardList.add allCardList "S" + " " + i "S" + " " + i "S" " " i for (int i = 1; i <= 13; i++) {
			allCardList.add("H" + " " + i);
		} int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
			allCardList.add("H" + " " + i);
		} {
			allCardList.add("H" + " " + i);
		} allCardList.add("H" + " " + i) allCardList.add allCardList "H" + " " + i "H" + " " + i "H" " " i for (int i = 1; i <= 13; i++) {
			allCardList.add("C" + " " + i);
		} int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
			allCardList.add("C" + " " + i);
		} {
			allCardList.add("C" + " " + i);
		} allCardList.add("C" + " " + i) allCardList.add allCardList "C" + " " + i "C" + " " + i "C" " " i for (int i = 1; i <= 13; i++) {
			allCardList.add("D" + " " + i);
		} int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
			allCardList.add("D" + " " + i);
		} {
			allCardList.add("D" + " " + i);
		} allCardList.add("D" + " " + i) allCardList.add allCardList "D" + " " + i "D" + " " + i "D" " " i for (int i = 0; i < 52; i++) {
			if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
				System.out.println(allCardList.get(i));
			}
		} int i = 0; int i = 0; i 0 i < 52 i 52 i++ i++ i {
			if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
				System.out.println(allCardList.get(i));
			}
		} {
			if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
				System.out.println(allCardList.get(i));
			}
		} if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
				System.out.println(allCardList.get(i));
			} !(Arrays.asList(inputList).contains(allCardList.get(i))) (Arrays.asList(inputList).contains(allCardList.get(i))) Arrays.asList(inputList).contains Arrays.asList(inputList) Arrays.asList Arrays inputList allCardList.get(i) allCardList.get allCardList i {
				System.out.println(allCardList.get(i));
			} System.out.println(allCardList.get(i)) System.out.println System.out System System.out allCardList.get(i) allCardList.get allCardList i String args[] args public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		int n = Integer.parseInt(str);

		String inputList[] = new String[n];
		for (int i = 0; i < n; i++) {
			String str2 = scan.nextLine();
			inputList[i] = str2;
		}
		scan.close();

		ArrayList<String> allCardList = new ArrayList<String>();
		for (int i = 1; i <= 13; i++) {
			allCardList.add("S" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("H" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("C" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("D" + " " + i);
		}

		for (int i = 0; i < 52; i++) {
			if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
				System.out.println(allCardList.get(i));
			}
		}
	}
} public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		int n = Integer.parseInt(str);

		String inputList[] = new String[n];
		for (int i = 0; i < n; i++) {
			String str2 = scan.nextLine();
			inputList[i] = str2;
		}
		scan.close();

		ArrayList<String> allCardList = new ArrayList<String>();
		for (int i = 1; i <= 13; i++) {
			allCardList.add("S" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("H" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("C" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("D" + " " + i);
		}

		for (int i = 0; i < 52; i++) {
			if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
				System.out.println(allCardList.get(i));
			}
		}
	}
} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		int n = Integer.parseInt(str);

		String inputList[] = new String[n];
		for (int i = 0; i < n; i++) {
			String str2 = scan.nextLine();
			inputList[i] = str2;
		}
		scan.close();

		ArrayList<String> allCardList = new ArrayList<String>();
		for (int i = 1; i <= 13; i++) {
			allCardList.add("S" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("H" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("C" + " " + i);
		}
		for (int i = 1; i <= 13; i++) {
			allCardList.add("D" + " " + i);
		}

		for (int i = 0; i < 52; i++) {
			if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
				System.out.println(allCardList.get(i));
			}
		}
	}
}