import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

class Main {

	public static void main(String[] args) throws IOException {

		Scanner scane = new Scanner(System.in);

		List<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));

		int n = scane.nextInt();

		String M = "";
		int num = 0;

		for (int i = 0; i < n; i++) {
			M = scane.next();
			num = scane.nextInt();

			switch (M) {
			case "S":
				S.set(num - 1, num);
				break;
			case "H":
				H.set(num - 1, num);
				break;
			case "C":
				C.set(num - 1, num);
				break;
			case "D":
				D.set(num - 1, num);
				break;

			default:
				break;
			}
		}
		for (int i = 0; i < 13; i++) {
			if ((i+1) == S.get(i)) {

			} else {
				System.out.println("S" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if (i+1 == H.get(i)) {

			} else {
				System.out.println("H" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if (i+1 == C.get(i)) {

			} else {
				System.out.println("C" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if ((i+1) == D.get(i)) {

			} else {
				System.out.println("D" + " " + (i+1));
			}

		}


	}
} import java.io.IOException; IOException java.io import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) throws IOException {

		Scanner scane = new Scanner(System.in);

		List<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));

		int n = scane.nextInt();

		String M = "";
		int num = 0;

		for (int i = 0; i < n; i++) {
			M = scane.next();
			num = scane.nextInt();

			switch (M) {
			case "S":
				S.set(num - 1, num);
				break;
			case "H":
				H.set(num - 1, num);
				break;
			case "C":
				C.set(num - 1, num);
				break;
			case "D":
				D.set(num - 1, num);
				break;

			default:
				break;
			}
		}
		for (int i = 0; i < 13; i++) {
			if ((i+1) == S.get(i)) {

			} else {
				System.out.println("S" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if (i+1 == H.get(i)) {

			} else {
				System.out.println("H" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if (i+1 == C.get(i)) {

			} else {
				System.out.println("C" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if ((i+1) == D.get(i)) {

			} else {
				System.out.println("D" + " " + (i+1));
			}

		}


	}
} Main public static void main(String[] args) throws IOException {

		Scanner scane = new Scanner(System.in);

		List<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));

		int n = scane.nextInt();

		String M = "";
		int num = 0;

		for (int i = 0; i < n; i++) {
			M = scane.next();
			num = scane.nextInt();

			switch (M) {
			case "S":
				S.set(num - 1, num);
				break;
			case "H":
				H.set(num - 1, num);
				break;
			case "C":
				C.set(num - 1, num);
				break;
			case "D":
				D.set(num - 1, num);
				break;

			default:
				break;
			}
		}
		for (int i = 0; i < 13; i++) {
			if ((i+1) == S.get(i)) {

			} else {
				System.out.println("S" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if (i+1 == H.get(i)) {

			} else {
				System.out.println("H" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if (i+1 == C.get(i)) {

			} else {
				System.out.println("C" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if ((i+1) == D.get(i)) {

			} else {
				System.out.println("D" + " " + (i+1));
			}

		}


	} main {

		Scanner scane = new Scanner(System.in);

		List<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));

		int n = scane.nextInt();

		String M = "";
		int num = 0;

		for (int i = 0; i < n; i++) {
			M = scane.next();
			num = scane.nextInt();

			switch (M) {
			case "S":
				S.set(num - 1, num);
				break;
			case "H":
				H.set(num - 1, num);
				break;
			case "C":
				C.set(num - 1, num);
				break;
			case "D":
				D.set(num - 1, num);
				break;

			default:
				break;
			}
		}
		for (int i = 0; i < 13; i++) {
			if ((i+1) == S.get(i)) {

			} else {
				System.out.println("S" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if (i+1 == H.get(i)) {

			} else {
				System.out.println("H" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if (i+1 == C.get(i)) {

			} else {
				System.out.println("C" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if ((i+1) == D.get(i)) {

			} else {
				System.out.println("D" + " " + (i+1));
			}

		}


	} Scanner scane = new Scanner(System.in); scane new Scanner(System.in) List<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14)); S new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14)) List<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14)); H new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14)) List<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14)); C new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14)) List<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14)); D new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14)) int n = scane.nextInt(); n scane.nextInt() scane.nextInt scane String M = ""; M "" int num = 0; num 0 for (int i = 0; i < n; i++) {
			M = scane.next();
			num = scane.nextInt();

			switch (M) {
			case "S":
				S.set(num - 1, num);
				break;
			case "H":
				H.set(num - 1, num);
				break;
			case "C":
				C.set(num - 1, num);
				break;
			case "D":
				D.set(num - 1, num);
				break;

			default:
				break;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			M = scane.next();
			num = scane.nextInt();

			switch (M) {
			case "S":
				S.set(num - 1, num);
				break;
			case "H":
				H.set(num - 1, num);
				break;
			case "C":
				C.set(num - 1, num);
				break;
			case "D":
				D.set(num - 1, num);
				break;

			default:
				break;
			}
		} {
			M = scane.next();
			num = scane.nextInt();

			switch (M) {
			case "S":
				S.set(num - 1, num);
				break;
			case "H":
				H.set(num - 1, num);
				break;
			case "C":
				C.set(num - 1, num);
				break;
			case "D":
				D.set(num - 1, num);
				break;

			default:
				break;
			}
		} M = scane.next() M scane.next() scane.next scane num = scane.nextInt() num scane.nextInt() scane.nextInt scane switch (M) {
			case "S":
				S.set(num - 1, num);
				break;
			case "H":
				H.set(num - 1, num);
				break;
			case "C":
				C.set(num - 1, num);
				break;
			case "D":
				D.set(num - 1, num);
				break;

			default:
				break;
			} M case "S": "S" case "S": S.set(num - 1, num) S.set S num - 1 num 1 num break; case "H": "H" case "H": H.set(num - 1, num) H.set H num - 1 num 1 num break; case "C": "C" case "C": C.set(num - 1, num) C.set C num - 1 num 1 num break; case "D": "D" case "D": D.set(num - 1, num) D.set D num - 1 num 1 num break; default: default: break; for (int i = 0; i < 13; i++) {
			if ((i+1) == S.get(i)) {

			} else {
				System.out.println("S" + " " + (i+1));
			}

		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if ((i+1) == S.get(i)) {

			} else {
				System.out.println("S" + " " + (i+1));
			}

		} {
			if ((i+1) == S.get(i)) {

			} else {
				System.out.println("S" + " " + (i+1));
			}

		} if ((i+1) == S.get(i)) {

			} else {
				System.out.println("S" + " " + (i+1));
			} (i+1) == S.get(i) (i+1) i 1 S.get(i) S.get S i {

			} {
				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) "S" " " (i+1) i 1 for (int i = 0; i < 13; i++) {
			if (i+1 == H.get(i)) {

			} else {
				System.out.println("H" + " " + (i+1));
			}

		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if (i+1 == H.get(i)) {

			} else {
				System.out.println("H" + " " + (i+1));
			}

		} {
			if (i+1 == H.get(i)) {

			} else {
				System.out.println("H" + " " + (i+1));
			}

		} if (i+1 == H.get(i)) {

			} else {
				System.out.println("H" + " " + (i+1));
			} i+1 == H.get(i) i+1 i 1 H.get(i) H.get H i {

			} {
				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) "H" " " (i+1) i 1 for (int i = 0; i < 13; i++) {
			if (i+1 == C.get(i)) {

			} else {
				System.out.println("C" + " " + (i+1));
			}

		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if (i+1 == C.get(i)) {

			} else {
				System.out.println("C" + " " + (i+1));
			}

		} {
			if (i+1 == C.get(i)) {

			} else {
				System.out.println("C" + " " + (i+1));
			}

		} if (i+1 == C.get(i)) {

			} else {
				System.out.println("C" + " " + (i+1));
			} i+1 == C.get(i) i+1 i 1 C.get(i) C.get C i {

			} {
				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) "C" " " (i+1) i 1 for (int i = 0; i < 13; i++) {
			if ((i+1) == D.get(i)) {

			} else {
				System.out.println("D" + " " + (i+1));
			}

		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if ((i+1) == D.get(i)) {

			} else {
				System.out.println("D" + " " + (i+1));
			}

		} {
			if ((i+1) == D.get(i)) {

			} else {
				System.out.println("D" + " " + (i+1));
			}

		} if ((i+1) == D.get(i)) {

			} else {
				System.out.println("D" + " " + (i+1));
			} (i+1) == D.get(i) (i+1) i 1 D.get(i) D.get D i {

			} {
				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) "D" " " (i+1) i 1 String[] args args
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

class Main {

	public static void main(String[] args) throws IOException {

		Scanner scane = new Scanner(System.in);

		List<Integer> S = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> H = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> C = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));
		List<Integer> D = new ArrayList<>(Arrays.asList(14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14));

		int n = scane.nextInt();

		String M = "";
		int num = 0;

		for (int i = 0; i < n; i++) {
			M = scane.next();
			num = scane.nextInt();

			switch (M) {
			case "S":
				S.set(num - 1, num);
				break;
			case "H":
				H.set(num - 1, num);
				break;
			case "C":
				C.set(num - 1, num);
				break;
			case "D":
				D.set(num - 1, num);
				break;

			default:
				break;
			}
		}
		for (int i = 0; i < 13; i++) {
			if ((i+1) == S.get(i)) {

			} else {
				System.out.println("S" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if (i+1 == H.get(i)) {

			} else {
				System.out.println("H" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if (i+1 == C.get(i)) {

			} else {
				System.out.println("C" + " " + (i+1));
			}

		}
		for (int i = 0; i < 13; i++) {
			if ((i+1) == D.get(i)) {

			} else {
				System.out.println("D" + " " + (i+1));
			}

		}


	}
}