import java.io.InputStreamReader;
import java.util.Arrays;
import java.io.BufferedReader;
import java.io.IOException;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		boolean[] s = new boolean[13];
		boolean[] h = new boolean[13];
		boolean[] c = new boolean[13];
		boolean[] d = new boolean[13];
		Arrays.fill(s, false);
		Arrays.fill(h, false);
		Arrays.fill(c, false);
		Arrays.fill(d, false);
		int n = Integer.parseInt(br.readLine());
		for (int i = 0; i < n; i++) {
			String[] strAry = br.readLine().split(" ");
			switch (strAry[0]) {
			case "S":
				s[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "H":
				h[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "C":
				c[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "D":
				d[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			}
		}
		for (int i = 0; i < s.length; i++) if (!s[i]) System.out.println("S " + (i + 1));
		for (int i = 0; i < h.length; i++) if (!h[i]) System.out.println("H " + (i + 1));
		for (int i = 0; i < c.length; i++) if (!c[i]) System.out.println("C " + (i + 1));
		for (int i = 0; i < d.length; i++) if (!d[i]) System.out.println("D " + (i + 1));
	}
} import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		boolean[] s = new boolean[13];
		boolean[] h = new boolean[13];
		boolean[] c = new boolean[13];
		boolean[] d = new boolean[13];
		Arrays.fill(s, false);
		Arrays.fill(h, false);
		Arrays.fill(c, false);
		Arrays.fill(d, false);
		int n = Integer.parseInt(br.readLine());
		for (int i = 0; i < n; i++) {
			String[] strAry = br.readLine().split(" ");
			switch (strAry[0]) {
			case "S":
				s[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "H":
				h[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "C":
				c[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "D":
				d[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			}
		}
		for (int i = 0; i < s.length; i++) if (!s[i]) System.out.println("S " + (i + 1));
		for (int i = 0; i < h.length; i++) if (!h[i]) System.out.println("H " + (i + 1));
		for (int i = 0; i < c.length; i++) if (!c[i]) System.out.println("C " + (i + 1));
		for (int i = 0; i < d.length; i++) if (!d[i]) System.out.println("D " + (i + 1));
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		boolean[] s = new boolean[13];
		boolean[] h = new boolean[13];
		boolean[] c = new boolean[13];
		boolean[] d = new boolean[13];
		Arrays.fill(s, false);
		Arrays.fill(h, false);
		Arrays.fill(c, false);
		Arrays.fill(d, false);
		int n = Integer.parseInt(br.readLine());
		for (int i = 0; i < n; i++) {
			String[] strAry = br.readLine().split(" ");
			switch (strAry[0]) {
			case "S":
				s[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "H":
				h[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "C":
				c[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "D":
				d[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			}
		}
		for (int i = 0; i < s.length; i++) if (!s[i]) System.out.println("S " + (i + 1));
		for (int i = 0; i < h.length; i++) if (!h[i]) System.out.println("H " + (i + 1));
		for (int i = 0; i < c.length; i++) if (!c[i]) System.out.println("C " + (i + 1));
		for (int i = 0; i < d.length; i++) if (!d[i]) System.out.println("D " + (i + 1));
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		boolean[] s = new boolean[13];
		boolean[] h = new boolean[13];
		boolean[] c = new boolean[13];
		boolean[] d = new boolean[13];
		Arrays.fill(s, false);
		Arrays.fill(h, false);
		Arrays.fill(c, false);
		Arrays.fill(d, false);
		int n = Integer.parseInt(br.readLine());
		for (int i = 0; i < n; i++) {
			String[] strAry = br.readLine().split(" ");
			switch (strAry[0]) {
			case "S":
				s[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "H":
				h[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "C":
				c[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "D":
				d[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			}
		}
		for (int i = 0; i < s.length; i++) if (!s[i]) System.out.println("S " + (i + 1));
		for (int i = 0; i < h.length; i++) if (!h[i]) System.out.println("H " + (i + 1));
		for (int i = 0; i < c.length; i++) if (!c[i]) System.out.println("C " + (i + 1));
		for (int i = 0; i < d.length; i++) if (!d[i]) System.out.println("D " + (i + 1));
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) boolean[] s = new boolean[13]; s new boolean[13] 13 boolean[] h = new boolean[13]; h new boolean[13] 13 boolean[] c = new boolean[13]; c new boolean[13] 13 boolean[] d = new boolean[13]; d new boolean[13] 13 Arrays.fill(s, false) Arrays.fill Arrays s false Arrays.fill(h, false) Arrays.fill Arrays h false Arrays.fill(c, false) Arrays.fill Arrays c false Arrays.fill(d, false) Arrays.fill Arrays d false int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i = 0; i < n; i++) {
			String[] strAry = br.readLine().split(" ");
			switch (strAry[0]) {
			case "S":
				s[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "H":
				h[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "C":
				c[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "D":
				d[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String[] strAry = br.readLine().split(" ");
			switch (strAry[0]) {
			case "S":
				s[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "H":
				h[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "C":
				c[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "D":
				d[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			}
		} {
			String[] strAry = br.readLine().split(" ");
			switch (strAry[0]) {
			case "S":
				s[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "H":
				h[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "C":
				c[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "D":
				d[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			}
		} String[] strAry = br.readLine().split(" "); strAry br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " switch (strAry[0]) {
			case "S":
				s[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "H":
				h[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "C":
				c[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "D":
				d[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			} strAry[0] strAry 0 case "S": "S" case "S": s[Integer.parseInt(strAry[1]) - 1] = true s[Integer.parseInt(strAry[1]) - 1] s Integer.parseInt(strAry[1]) - 1 Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 1 true break; case "H": "H" case "H": h[Integer.parseInt(strAry[1]) - 1] = true h[Integer.parseInt(strAry[1]) - 1] h Integer.parseInt(strAry[1]) - 1 Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 1 true break; case "C": "C" case "C": c[Integer.parseInt(strAry[1]) - 1] = true c[Integer.parseInt(strAry[1]) - 1] c Integer.parseInt(strAry[1]) - 1 Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 1 true break; case "D": "D" case "D": d[Integer.parseInt(strAry[1]) - 1] = true d[Integer.parseInt(strAry[1]) - 1] d Integer.parseInt(strAry[1]) - 1 Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 1 true break; for (int i = 0; i < s.length; i++) if (!s[i]) System.out.println("S " + (i + 1)); int i = 0; int i = 0; i 0 i < s.length i s.length s s.length i++ i++ i if (!s[i]) System.out.println("S " + (i + 1)); if (!s[i]) System.out.println("S " + (i + 1)); !s[i] s[i] s i 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 < h.length; i++) if (!h[i]) System.out.println("H " + (i + 1)); int i = 0; int i = 0; i 0 i < h.length i h.length h h.length i++ i++ i if (!h[i]) System.out.println("H " + (i + 1)); if (!h[i]) System.out.println("H " + (i + 1)); !h[i] h[i] h i 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 < c.length; i++) if (!c[i]) System.out.println("C " + (i + 1)); int i = 0; int i = 0; i 0 i < c.length i c.length c c.length i++ i++ i if (!c[i]) System.out.println("C " + (i + 1)); if (!c[i]) System.out.println("C " + (i + 1)); !c[i] c[i] c i 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 < d.length; i++) if (!d[i]) System.out.println("D " + (i + 1)); int i = 0; int i = 0; i 0 i < d.length i d.length d d.length i++ i++ i if (!d[i]) System.out.println("D " + (i + 1)); if (!d[i]) System.out.println("D " + (i + 1)); !d[i] d[i] d i 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
import java.io.InputStreamReader;
import java.util.Arrays;
import java.io.BufferedReader;
import java.io.IOException;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		boolean[] s = new boolean[13];
		boolean[] h = new boolean[13];
		boolean[] c = new boolean[13];
		boolean[] d = new boolean[13];
		Arrays.fill(s, false);
		Arrays.fill(h, false);
		Arrays.fill(c, false);
		Arrays.fill(d, false);
		int n = Integer.parseInt(br.readLine());
		for (int i = 0; i < n; i++) {
			String[] strAry = br.readLine().split(" ");
			switch (strAry[0]) {
			case "S":
				s[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "H":
				h[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "C":
				c[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			case "D":
				d[Integer.parseInt(strAry[1]) - 1] = true;
				break;
			}
		}
		for (int i = 0; i < s.length; i++) if (!s[i]) System.out.println("S " + (i + 1));
		for (int i = 0; i < h.length; i++) if (!h[i]) System.out.println("H " + (i + 1));
		for (int i = 0; i < c.length; i++) if (!c[i]) System.out.println("C " + (i + 1));
		for (int i = 0; i < d.length; i++) if (!d[i]) System.out.println("D " + (i + 1));
	}
}