import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		boolean[] spade = new boolean[13];
		boolean[] dia = new boolean[13];
		boolean[] club = new boolean[13];
		boolean[] heart = new boolean[13];

		int n = stdin.nextInt();

		for (int i = 0; i < n; ++i) {
			String markChar = stdin.next();
			int number = stdin.nextInt();
			boolean[] mark = null;
			if (markChar.equals("S")) {
				mark = spade;
			}
			if (markChar.equals("H")) {
				mark = heart;
			}
			if (markChar.equals("C")) {
				mark = club;
			}
			if (markChar.equals("D")) {
				mark = dia;
			}
			mark[number - 1] = true;

		}

		for (int i = 0; i < spade.length; i++) {
			if (spade[i] != true) {
				System.out.println("S " + (i + 1));
			}
		}
		for (int i = 0; i < heart.length; i++) {
			if (heart[i] != true) {
				System.out.println("H " + (i + 1));
			}
		}
		for (int i = 0; i < club.length; i++) {
			if (club[i] != true) {
				System.out.println("C " + (i + 1));
			}
		}
		for (int i = 0; i < dia.length; i++) {
			if (dia[i] != true) {
				System.out.println("D " + (i + 1));
			}

		}

	}

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

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		boolean[] spade = new boolean[13];
		boolean[] dia = new boolean[13];
		boolean[] club = new boolean[13];
		boolean[] heart = new boolean[13];

		int n = stdin.nextInt();

		for (int i = 0; i < n; ++i) {
			String markChar = stdin.next();
			int number = stdin.nextInt();
			boolean[] mark = null;
			if (markChar.equals("S")) {
				mark = spade;
			}
			if (markChar.equals("H")) {
				mark = heart;
			}
			if (markChar.equals("C")) {
				mark = club;
			}
			if (markChar.equals("D")) {
				mark = dia;
			}
			mark[number - 1] = true;

		}

		for (int i = 0; i < spade.length; i++) {
			if (spade[i] != true) {
				System.out.println("S " + (i + 1));
			}
		}
		for (int i = 0; i < heart.length; i++) {
			if (heart[i] != true) {
				System.out.println("H " + (i + 1));
			}
		}
		for (int i = 0; i < club.length; i++) {
			if (club[i] != true) {
				System.out.println("C " + (i + 1));
			}
		}
		for (int i = 0; i < dia.length; i++) {
			if (dia[i] != true) {
				System.out.println("D " + (i + 1));
			}

		}

	}

} Main public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		boolean[] spade = new boolean[13];
		boolean[] dia = new boolean[13];
		boolean[] club = new boolean[13];
		boolean[] heart = new boolean[13];

		int n = stdin.nextInt();

		for (int i = 0; i < n; ++i) {
			String markChar = stdin.next();
			int number = stdin.nextInt();
			boolean[] mark = null;
			if (markChar.equals("S")) {
				mark = spade;
			}
			if (markChar.equals("H")) {
				mark = heart;
			}
			if (markChar.equals("C")) {
				mark = club;
			}
			if (markChar.equals("D")) {
				mark = dia;
			}
			mark[number - 1] = true;

		}

		for (int i = 0; i < spade.length; i++) {
			if (spade[i] != true) {
				System.out.println("S " + (i + 1));
			}
		}
		for (int i = 0; i < heart.length; i++) {
			if (heart[i] != true) {
				System.out.println("H " + (i + 1));
			}
		}
		for (int i = 0; i < club.length; i++) {
			if (club[i] != true) {
				System.out.println("C " + (i + 1));
			}
		}
		for (int i = 0; i < dia.length; i++) {
			if (dia[i] != true) {
				System.out.println("D " + (i + 1));
			}

		}

	} main {
		Scanner stdin = new Scanner(System.in);
		boolean[] spade = new boolean[13];
		boolean[] dia = new boolean[13];
		boolean[] club = new boolean[13];
		boolean[] heart = new boolean[13];

		int n = stdin.nextInt();

		for (int i = 0; i < n; ++i) {
			String markChar = stdin.next();
			int number = stdin.nextInt();
			boolean[] mark = null;
			if (markChar.equals("S")) {
				mark = spade;
			}
			if (markChar.equals("H")) {
				mark = heart;
			}
			if (markChar.equals("C")) {
				mark = club;
			}
			if (markChar.equals("D")) {
				mark = dia;
			}
			mark[number - 1] = true;

		}

		for (int i = 0; i < spade.length; i++) {
			if (spade[i] != true) {
				System.out.println("S " + (i + 1));
			}
		}
		for (int i = 0; i < heart.length; i++) {
			if (heart[i] != true) {
				System.out.println("H " + (i + 1));
			}
		}
		for (int i = 0; i < club.length; i++) {
			if (club[i] != true) {
				System.out.println("C " + (i + 1));
			}
		}
		for (int i = 0; i < dia.length; i++) {
			if (dia[i] != true) {
				System.out.println("D " + (i + 1));
			}

		}

	} Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) boolean[] spade = new boolean[13]; spade new boolean[13] 13 boolean[] dia = new boolean[13]; dia new boolean[13] 13 boolean[] club = new boolean[13]; club new boolean[13] 13 boolean[] heart = new boolean[13]; heart new boolean[13] 13 int n = stdin.nextInt(); n stdin.nextInt() stdin.nextInt stdin for (int i = 0; i < n; ++i) {
			String markChar = stdin.next();
			int number = stdin.nextInt();
			boolean[] mark = null;
			if (markChar.equals("S")) {
				mark = spade;
			}
			if (markChar.equals("H")) {
				mark = heart;
			}
			if (markChar.equals("C")) {
				mark = club;
			}
			if (markChar.equals("D")) {
				mark = dia;
			}
			mark[number - 1] = true;

		} int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
			String markChar = stdin.next();
			int number = stdin.nextInt();
			boolean[] mark = null;
			if (markChar.equals("S")) {
				mark = spade;
			}
			if (markChar.equals("H")) {
				mark = heart;
			}
			if (markChar.equals("C")) {
				mark = club;
			}
			if (markChar.equals("D")) {
				mark = dia;
			}
			mark[number - 1] = true;

		} {
			String markChar = stdin.next();
			int number = stdin.nextInt();
			boolean[] mark = null;
			if (markChar.equals("S")) {
				mark = spade;
			}
			if (markChar.equals("H")) {
				mark = heart;
			}
			if (markChar.equals("C")) {
				mark = club;
			}
			if (markChar.equals("D")) {
				mark = dia;
			}
			mark[number - 1] = true;

		} String markChar = stdin.next(); markChar stdin.next() stdin.next stdin int number = stdin.nextInt(); number stdin.nextInt() stdin.nextInt stdin boolean[] mark = null; mark null if (markChar.equals("S")) {
				mark = spade;
			} markChar.equals("S") markChar.equals markChar "S" {
				mark = spade;
			} mark = spade mark spade if (markChar.equals("H")) {
				mark = heart;
			} markChar.equals("H") markChar.equals markChar "H" {
				mark = heart;
			} mark = heart mark heart if (markChar.equals("C")) {
				mark = club;
			} markChar.equals("C") markChar.equals markChar "C" {
				mark = club;
			} mark = club mark club if (markChar.equals("D")) {
				mark = dia;
			} markChar.equals("D") markChar.equals markChar "D" {
				mark = dia;
			} mark = dia mark dia mark[number - 1] = true mark[number - 1] mark number - 1 number 1 true for (int i = 0; i < spade.length; i++) {
			if (spade[i] != true) {
				System.out.println("S " + (i + 1));
			}
		} int i = 0; int i = 0; i 0 i < spade.length i spade.length spade spade.length i++ i++ i {
			if (spade[i] != true) {
				System.out.println("S " + (i + 1));
			}
		} {
			if (spade[i] != true) {
				System.out.println("S " + (i + 1));
			}
		} if (spade[i] != true) {
				System.out.println("S " + (i + 1));
			} spade[i] != true spade[i] spade i true {
				System.out.println("S " + (i + 1));
			} System.out.println("S " + (i + 1)) System.out.println System.out System System.out "S " + (i + 1) "S " (i + 1) i 1 for (int i = 0; i < heart.length; i++) {
			if (heart[i] != true) {
				System.out.println("H " + (i + 1));
			}
		} int i = 0; int i = 0; i 0 i < heart.length i heart.length heart heart.length i++ i++ i {
			if (heart[i] != true) {
				System.out.println("H " + (i + 1));
			}
		} {
			if (heart[i] != true) {
				System.out.println("H " + (i + 1));
			}
		} if (heart[i] != true) {
				System.out.println("H " + (i + 1));
			} heart[i] != true heart[i] heart i true {
				System.out.println("H " + (i + 1));
			} System.out.println("H " + (i + 1)) System.out.println System.out System System.out "H " + (i + 1) "H " (i + 1) i 1 for (int i = 0; i < club.length; i++) {
			if (club[i] != true) {
				System.out.println("C " + (i + 1));
			}
		} int i = 0; int i = 0; i 0 i < club.length i club.length club club.length i++ i++ i {
			if (club[i] != true) {
				System.out.println("C " + (i + 1));
			}
		} {
			if (club[i] != true) {
				System.out.println("C " + (i + 1));
			}
		} if (club[i] != true) {
				System.out.println("C " + (i + 1));
			} club[i] != true club[i] club i true {
				System.out.println("C " + (i + 1));
			} System.out.println("C " + (i + 1)) System.out.println System.out System System.out "C " + (i + 1) "C " (i + 1) i 1 for (int i = 0; i < dia.length; i++) {
			if (dia[i] != true) {
				System.out.println("D " + (i + 1));
			}

		} int i = 0; int i = 0; i 0 i < dia.length i dia.length dia dia.length i++ i++ i {
			if (dia[i] != true) {
				System.out.println("D " + (i + 1));
			}

		} {
			if (dia[i] != true) {
				System.out.println("D " + (i + 1));
			}

		} if (dia[i] != true) {
				System.out.println("D " + (i + 1));
			} dia[i] != true dia[i] dia i true {
				System.out.println("D " + (i + 1));
			} System.out.println("D " + (i + 1)) System.out.println System.out System System.out "D " + (i + 1) "D " (i + 1) i 1 String[] args args public class Main{

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		boolean[] spade = new boolean[13];
		boolean[] dia = new boolean[13];
		boolean[] club = new boolean[13];
		boolean[] heart = new boolean[13];

		int n = stdin.nextInt();

		for (int i = 0; i < n; ++i) {
			String markChar = stdin.next();
			int number = stdin.nextInt();
			boolean[] mark = null;
			if (markChar.equals("S")) {
				mark = spade;
			}
			if (markChar.equals("H")) {
				mark = heart;
			}
			if (markChar.equals("C")) {
				mark = club;
			}
			if (markChar.equals("D")) {
				mark = dia;
			}
			mark[number - 1] = true;

		}

		for (int i = 0; i < spade.length; i++) {
			if (spade[i] != true) {
				System.out.println("S " + (i + 1));
			}
		}
		for (int i = 0; i < heart.length; i++) {
			if (heart[i] != true) {
				System.out.println("H " + (i + 1));
			}
		}
		for (int i = 0; i < club.length; i++) {
			if (club[i] != true) {
				System.out.println("C " + (i + 1));
			}
		}
		for (int i = 0; i < dia.length; i++) {
			if (dia[i] != true) {
				System.out.println("D " + (i + 1));
			}

		}

	}

} public class Main{

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		boolean[] spade = new boolean[13];
		boolean[] dia = new boolean[13];
		boolean[] club = new boolean[13];
		boolean[] heart = new boolean[13];

		int n = stdin.nextInt();

		for (int i = 0; i < n; ++i) {
			String markChar = stdin.next();
			int number = stdin.nextInt();
			boolean[] mark = null;
			if (markChar.equals("S")) {
				mark = spade;
			}
			if (markChar.equals("H")) {
				mark = heart;
			}
			if (markChar.equals("C")) {
				mark = club;
			}
			if (markChar.equals("D")) {
				mark = dia;
			}
			mark[number - 1] = true;

		}

		for (int i = 0; i < spade.length; i++) {
			if (spade[i] != true) {
				System.out.println("S " + (i + 1));
			}
		}
		for (int i = 0; i < heart.length; i++) {
			if (heart[i] != true) {
				System.out.println("H " + (i + 1));
			}
		}
		for (int i = 0; i < club.length; i++) {
			if (club[i] != true) {
				System.out.println("C " + (i + 1));
			}
		}
		for (int i = 0; i < dia.length; i++) {
			if (dia[i] != true) {
				System.out.println("D " + (i + 1));
			}

		}

	}

} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		boolean[] spade = new boolean[13];
		boolean[] dia = new boolean[13];
		boolean[] club = new boolean[13];
		boolean[] heart = new boolean[13];

		int n = stdin.nextInt();

		for (int i = 0; i < n; ++i) {
			String markChar = stdin.next();
			int number = stdin.nextInt();
			boolean[] mark = null;
			if (markChar.equals("S")) {
				mark = spade;
			}
			if (markChar.equals("H")) {
				mark = heart;
			}
			if (markChar.equals("C")) {
				mark = club;
			}
			if (markChar.equals("D")) {
				mark = dia;
			}
			mark[number - 1] = true;

		}

		for (int i = 0; i < spade.length; i++) {
			if (spade[i] != true) {
				System.out.println("S " + (i + 1));
			}
		}
		for (int i = 0; i < heart.length; i++) {
			if (heart[i] != true) {
				System.out.println("H " + (i + 1));
			}
		}
		for (int i = 0; i < club.length; i++) {
			if (club[i] != true) {
				System.out.println("C " + (i + 1));
			}
		}
		for (int i = 0; i < dia.length; i++) {
			if (dia[i] != true) {
				System.out.println("D " + (i + 1));
			}

		}

	}

}