public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int n = sc.nextInt();
		sc.nextLine();

		boolean[] Scards = new boolean[13];
		boolean[] Hcards = new boolean[13];
		boolean[] Ccards = new boolean[13];
		boolean[] Dcards = new boolean[13];

		for ( int i = 0; i < n; i++) {

			String[] data = sc.nextLine().split(" ");
			int r = Integer.parseInt(data[1]);

			switch (data[0]) {
			case "S":
				Scards[r-1] = true;
				break;
			case "H":
				Hcards[r-1] = true;
				break;
			case "C":
				Ccards[r-1] = true;
				break;
			case "D":
				Dcards[r-1] = true;
				break;
			}

		}

		for (int i = 0; i < 13; i++) {
			if (Scards[i] == false) {
				System.out.println( "S " + (i+1) );
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Hcards[i] == false) {
				System.out.println("H " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Ccards[i] == false) {
				System.out.println("C " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Dcards[i] == false) {
				System.out.println("D " + (i+1));
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int n = sc.nextInt();
		sc.nextLine();

		boolean[] Scards = new boolean[13];
		boolean[] Hcards = new boolean[13];
		boolean[] Ccards = new boolean[13];
		boolean[] Dcards = new boolean[13];

		for ( int i = 0; i < n; i++) {

			String[] data = sc.nextLine().split(" ");
			int r = Integer.parseInt(data[1]);

			switch (data[0]) {
			case "S":
				Scards[r-1] = true;
				break;
			case "H":
				Hcards[r-1] = true;
				break;
			case "C":
				Ccards[r-1] = true;
				break;
			case "D":
				Dcards[r-1] = true;
				break;
			}

		}

		for (int i = 0; i < 13; i++) {
			if (Scards[i] == false) {
				System.out.println( "S " + (i+1) );
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Hcards[i] == false) {
				System.out.println("H " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Ccards[i] == false) {
				System.out.println("C " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Dcards[i] == false) {
				System.out.println("D " + (i+1));
			}
		}
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int n = sc.nextInt();
		sc.nextLine();

		boolean[] Scards = new boolean[13];
		boolean[] Hcards = new boolean[13];
		boolean[] Ccards = new boolean[13];
		boolean[] Dcards = new boolean[13];

		for ( int i = 0; i < n; i++) {

			String[] data = sc.nextLine().split(" ");
			int r = Integer.parseInt(data[1]);

			switch (data[0]) {
			case "S":
				Scards[r-1] = true;
				break;
			case "H":
				Hcards[r-1] = true;
				break;
			case "C":
				Ccards[r-1] = true;
				break;
			case "D":
				Dcards[r-1] = true;
				break;
			}

		}

		for (int i = 0; i < 13; i++) {
			if (Scards[i] == false) {
				System.out.println( "S " + (i+1) );
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Hcards[i] == false) {
				System.out.println("H " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Ccards[i] == false) {
				System.out.println("C " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Dcards[i] == false) {
				System.out.println("D " + (i+1));
			}
		}
	} main {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int n = sc.nextInt();
		sc.nextLine();

		boolean[] Scards = new boolean[13];
		boolean[] Hcards = new boolean[13];
		boolean[] Ccards = new boolean[13];
		boolean[] Dcards = new boolean[13];

		for ( int i = 0; i < n; i++) {

			String[] data = sc.nextLine().split(" ");
			int r = Integer.parseInt(data[1]);

			switch (data[0]) {
			case "S":
				Scards[r-1] = true;
				break;
			case "H":
				Hcards[r-1] = true;
				break;
			case "C":
				Ccards[r-1] = true;
				break;
			case "D":
				Dcards[r-1] = true;
				break;
			}

		}

		for (int i = 0; i < 13; i++) {
			if (Scards[i] == false) {
				System.out.println( "S " + (i+1) );
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Hcards[i] == false) {
				System.out.println("H " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Ccards[i] == false) {
				System.out.println("C " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Dcards[i] == false) {
				System.out.println("D " + (i+1));
			}
		}
	} java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc boolean[] Scards = new boolean[13]; Scards new boolean[13] 13 boolean[] Hcards = new boolean[13]; Hcards new boolean[13] 13 boolean[] Ccards = new boolean[13]; Ccards new boolean[13] 13 boolean[] Dcards = new boolean[13]; Dcards new boolean[13] 13 for ( int i = 0; i < n; i++) {

			String[] data = sc.nextLine().split(" ");
			int r = Integer.parseInt(data[1]);

			switch (data[0]) {
			case "S":
				Scards[r-1] = true;
				break;
			case "H":
				Hcards[r-1] = true;
				break;
			case "C":
				Ccards[r-1] = true;
				break;
			case "D":
				Dcards[r-1] = true;
				break;
			}

		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {

			String[] data = sc.nextLine().split(" ");
			int r = Integer.parseInt(data[1]);

			switch (data[0]) {
			case "S":
				Scards[r-1] = true;
				break;
			case "H":
				Hcards[r-1] = true;
				break;
			case "C":
				Ccards[r-1] = true;
				break;
			case "D":
				Dcards[r-1] = true;
				break;
			}

		} {

			String[] data = sc.nextLine().split(" ");
			int r = Integer.parseInt(data[1]);

			switch (data[0]) {
			case "S":
				Scards[r-1] = true;
				break;
			case "H":
				Hcards[r-1] = true;
				break;
			case "C":
				Ccards[r-1] = true;
				break;
			case "D":
				Dcards[r-1] = true;
				break;
			}

		} String[] data = sc.nextLine().split(" "); data sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int r = Integer.parseInt(data[1]); r Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 switch (data[0]) {
			case "S":
				Scards[r-1] = true;
				break;
			case "H":
				Hcards[r-1] = true;
				break;
			case "C":
				Ccards[r-1] = true;
				break;
			case "D":
				Dcards[r-1] = true;
				break;
			} data[0] data 0 case "S": "S" case "S": Scards[r-1] = true Scards[r-1] Scards r-1 r 1 true break; case "H": "H" case "H": Hcards[r-1] = true Hcards[r-1] Hcards r-1 r 1 true break; case "C": "C" case "C": Ccards[r-1] = true Ccards[r-1] Ccards r-1 r 1 true break; case "D": "D" case "D": Dcards[r-1] = true Dcards[r-1] Dcards r-1 r 1 true break; for (int i = 0; i < 13; i++) {
			if (Scards[i] == false) {
				System.out.println( "S " + (i+1) );
			}
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if (Scards[i] == false) {
				System.out.println( "S " + (i+1) );
			}
		} {
			if (Scards[i] == false) {
				System.out.println( "S " + (i+1) );
			}
		} if (Scards[i] == false) {
				System.out.println( "S " + (i+1) );
			} Scards[i] == false Scards[i] Scards i false {
				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 < 13; i++) {
			if (Hcards[i] == false) {
				System.out.println("H " + (i+1));
			}
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if (Hcards[i] == false) {
				System.out.println("H " + (i+1));
			}
		} {
			if (Hcards[i] == false) {
				System.out.println("H " + (i+1));
			}
		} if (Hcards[i] == false) {
				System.out.println("H " + (i+1));
			} Hcards[i] == false Hcards[i] Hcards i false {
				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 < 13; i++) {
			if (Ccards[i] == false) {
				System.out.println("C " + (i+1));
			}
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if (Ccards[i] == false) {
				System.out.println("C " + (i+1));
			}
		} {
			if (Ccards[i] == false) {
				System.out.println("C " + (i+1));
			}
		} if (Ccards[i] == false) {
				System.out.println("C " + (i+1));
			} Ccards[i] == false Ccards[i] Ccards i false {
				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 < 13; i++) {
			if (Dcards[i] == false) {
				System.out.println("D " + (i+1));
			}
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if (Dcards[i] == false) {
				System.out.println("D " + (i+1));
			}
		} {
			if (Dcards[i] == false) {
				System.out.println("D " + (i+1));
			}
		} if (Dcards[i] == false) {
				System.out.println("D " + (i+1));
			} Dcards[i] == false Dcards[i] Dcards i false {
				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) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int n = sc.nextInt();
		sc.nextLine();

		boolean[] Scards = new boolean[13];
		boolean[] Hcards = new boolean[13];
		boolean[] Ccards = new boolean[13];
		boolean[] Dcards = new boolean[13];

		for ( int i = 0; i < n; i++) {

			String[] data = sc.nextLine().split(" ");
			int r = Integer.parseInt(data[1]);

			switch (data[0]) {
			case "S":
				Scards[r-1] = true;
				break;
			case "H":
				Hcards[r-1] = true;
				break;
			case "C":
				Ccards[r-1] = true;
				break;
			case "D":
				Dcards[r-1] = true;
				break;
			}

		}

		for (int i = 0; i < 13; i++) {
			if (Scards[i] == false) {
				System.out.println( "S " + (i+1) );
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Hcards[i] == false) {
				System.out.println("H " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Ccards[i] == false) {
				System.out.println("C " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Dcards[i] == false) {
				System.out.println("D " + (i+1));
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int n = sc.nextInt();
		sc.nextLine();

		boolean[] Scards = new boolean[13];
		boolean[] Hcards = new boolean[13];
		boolean[] Ccards = new boolean[13];
		boolean[] Dcards = new boolean[13];

		for ( int i = 0; i < n; i++) {

			String[] data = sc.nextLine().split(" ");
			int r = Integer.parseInt(data[1]);

			switch (data[0]) {
			case "S":
				Scards[r-1] = true;
				break;
			case "H":
				Hcards[r-1] = true;
				break;
			case "C":
				Ccards[r-1] = true;
				break;
			case "D":
				Dcards[r-1] = true;
				break;
			}

		}

		for (int i = 0; i < 13; i++) {
			if (Scards[i] == false) {
				System.out.println( "S " + (i+1) );
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Hcards[i] == false) {
				System.out.println("H " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Ccards[i] == false) {
				System.out.println("C " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Dcards[i] == false) {
				System.out.println("D " + (i+1));
			}
		}
	}

} Main
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int n = sc.nextInt();
		sc.nextLine();

		boolean[] Scards = new boolean[13];
		boolean[] Hcards = new boolean[13];
		boolean[] Ccards = new boolean[13];
		boolean[] Dcards = new boolean[13];

		for ( int i = 0; i < n; i++) {

			String[] data = sc.nextLine().split(" ");
			int r = Integer.parseInt(data[1]);

			switch (data[0]) {
			case "S":
				Scards[r-1] = true;
				break;
			case "H":
				Hcards[r-1] = true;
				break;
			case "C":
				Ccards[r-1] = true;
				break;
			case "D":
				Dcards[r-1] = true;
				break;
			}

		}

		for (int i = 0; i < 13; i++) {
			if (Scards[i] == false) {
				System.out.println( "S " + (i+1) );
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Hcards[i] == false) {
				System.out.println("H " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Ccards[i] == false) {
				System.out.println("C " + (i+1));
			}
		}

		for (int i = 0; i < 13; i++) {
			if (Dcards[i] == false) {
				System.out.println("D " + (i+1));
			}
		}
	}

}