import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a;
		String mark;
		int[] s = new int[13];int[] h = new int[13];
		int[] c = new int[13];int[] d = new int[13];
		for (int b=0;b<n;b++){
			mark=sc.next();
			a=sc.nextInt();
			if (mark.equals("S")){
				s[a-1]=1;
			}else if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			}
		}
		for (int e=0;e<13;e++){
			if (s[e]==0){
				System.out.println("S "+(e+1));
			}
		}
		for (int f=0;f<13;f++){
			if (h[f]==0){
				System.out.println("H "+(f+1));
			}
		}
		for (int g=0;g<13;g++){
		if (c[g]==0){
			System.out.println("C "+(g+1));
			}
		}
		for (int i=0;i<13;i++){
			if (d[i]==0){
				System.out.println("D "+(i+1));
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a;
		String mark;
		int[] s = new int[13];int[] h = new int[13];
		int[] c = new int[13];int[] d = new int[13];
		for (int b=0;b<n;b++){
			mark=sc.next();
			a=sc.nextInt();
			if (mark.equals("S")){
				s[a-1]=1;
			}else if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			}
		}
		for (int e=0;e<13;e++){
			if (s[e]==0){
				System.out.println("S "+(e+1));
			}
		}
		for (int f=0;f<13;f++){
			if (h[f]==0){
				System.out.println("H "+(f+1));
			}
		}
		for (int g=0;g<13;g++){
		if (c[g]==0){
			System.out.println("C "+(g+1));
			}
		}
		for (int i=0;i<13;i++){
			if (d[i]==0){
				System.out.println("D "+(i+1));
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a;
		String mark;
		int[] s = new int[13];int[] h = new int[13];
		int[] c = new int[13];int[] d = new int[13];
		for (int b=0;b<n;b++){
			mark=sc.next();
			a=sc.nextInt();
			if (mark.equals("S")){
				s[a-1]=1;
			}else if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			}
		}
		for (int e=0;e<13;e++){
			if (s[e]==0){
				System.out.println("S "+(e+1));
			}
		}
		for (int f=0;f<13;f++){
			if (h[f]==0){
				System.out.println("H "+(f+1));
			}
		}
		for (int g=0;g<13;g++){
		if (c[g]==0){
			System.out.println("C "+(g+1));
			}
		}
		for (int i=0;i<13;i++){
			if (d[i]==0){
				System.out.println("D "+(i+1));
			}
		}
	} main {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a;
		String mark;
		int[] s = new int[13];int[] h = new int[13];
		int[] c = new int[13];int[] d = new int[13];
		for (int b=0;b<n;b++){
			mark=sc.next();
			a=sc.nextInt();
			if (mark.equals("S")){
				s[a-1]=1;
			}else if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			}
		}
		for (int e=0;e<13;e++){
			if (s[e]==0){
				System.out.println("S "+(e+1));
			}
		}
		for (int f=0;f<13;f++){
			if (h[f]==0){
				System.out.println("H "+(f+1));
			}
		}
		for (int g=0;g<13;g++){
		if (c[g]==0){
			System.out.println("C "+(g+1));
			}
		}
		for (int i=0;i<13;i++){
			if (d[i]==0){
				System.out.println("D "+(i+1));
			}
		}
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int a; a String mark; mark int[] s = new int[13]; s new int[13] 13 int[] h = new int[13]; h new int[13] 13 int[] c = new int[13]; c new int[13] 13 int[] d = new int[13]; d new int[13] 13 for (int b=0;b<n;b++){
			mark=sc.next();
			a=sc.nextInt();
			if (mark.equals("S")){
				s[a-1]=1;
			}else if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			}
		} int b=0; int b=0; b 0 b<n b n b++ b++ b {
			mark=sc.next();
			a=sc.nextInt();
			if (mark.equals("S")){
				s[a-1]=1;
			}else if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			}
		} {
			mark=sc.next();
			a=sc.nextInt();
			if (mark.equals("S")){
				s[a-1]=1;
			}else if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			}
		} mark=sc.next() mark sc.next() sc.next sc a=sc.nextInt() a sc.nextInt() sc.nextInt sc if (mark.equals("S")){
				s[a-1]=1;
			}else if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			} mark.equals("S") mark.equals mark "S" {
				s[a-1]=1;
			} s[a-1]=1 s[a-1] s a-1 a 1 1 if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			} mark.equals("H") mark.equals mark "H" {
				h[a-1]=1;
			} h[a-1]=1 h[a-1] h a-1 a 1 1 if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			} mark.equals("C") mark.equals mark "C" {
				c[a-1]=1;
			} c[a-1]=1 c[a-1] c a-1 a 1 1 if (mark.equals("D")){
				d[a-1]=1;
			} mark.equals("D") mark.equals mark "D" {
				d[a-1]=1;
			} d[a-1]=1 d[a-1] d a-1 a 1 1 for (int e=0;e<13;e++){
			if (s[e]==0){
				System.out.println("S "+(e+1));
			}
		} int e=0; int e=0; e 0 e<13 e 13 e++ e++ e {
			if (s[e]==0){
				System.out.println("S "+(e+1));
			}
		} {
			if (s[e]==0){
				System.out.println("S "+(e+1));
			}
		} if (s[e]==0){
				System.out.println("S "+(e+1));
			} s[e]==0 s[e] s e 0 {
				System.out.println("S "+(e+1));
			} System.out.println("S "+(e+1)) System.out.println System.out System System.out "S "+(e+1) "S " (e+1) e 1 for (int f=0;f<13;f++){
			if (h[f]==0){
				System.out.println("H "+(f+1));
			}
		} int f=0; int f=0; f 0 f<13 f 13 f++ f++ f {
			if (h[f]==0){
				System.out.println("H "+(f+1));
			}
		} {
			if (h[f]==0){
				System.out.println("H "+(f+1));
			}
		} if (h[f]==0){
				System.out.println("H "+(f+1));
			} h[f]==0 h[f] h f 0 {
				System.out.println("H "+(f+1));
			} System.out.println("H "+(f+1)) System.out.println System.out System System.out "H "+(f+1) "H " (f+1) f 1 for (int g=0;g<13;g++){
		if (c[g]==0){
			System.out.println("C "+(g+1));
			}
		} int g=0; int g=0; g 0 g<13 g 13 g++ g++ g {
		if (c[g]==0){
			System.out.println("C "+(g+1));
			}
		} {
		if (c[g]==0){
			System.out.println("C "+(g+1));
			}
		} if (c[g]==0){
			System.out.println("C "+(g+1));
			} c[g]==0 c[g] c g 0 {
			System.out.println("C "+(g+1));
			} System.out.println("C "+(g+1)) System.out.println System.out System System.out "C "+(g+1) "C " (g+1) g 1 for (int i=0;i<13;i++){
			if (d[i]==0){
				System.out.println("D "+(i+1));
			}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if (d[i]==0){
				System.out.println("D "+(i+1));
			}
		} {
			if (d[i]==0){
				System.out.println("D "+(i+1));
			}
		} if (d[i]==0){
				System.out.println("D "+(i+1));
			} d[i]==0 d[i] d i 0 {
				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 sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a;
		String mark;
		int[] s = new int[13];int[] h = new int[13];
		int[] c = new int[13];int[] d = new int[13];
		for (int b=0;b<n;b++){
			mark=sc.next();
			a=sc.nextInt();
			if (mark.equals("S")){
				s[a-1]=1;
			}else if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			}
		}
		for (int e=0;e<13;e++){
			if (s[e]==0){
				System.out.println("S "+(e+1));
			}
		}
		for (int f=0;f<13;f++){
			if (h[f]==0){
				System.out.println("H "+(f+1));
			}
		}
		for (int g=0;g<13;g++){
		if (c[g]==0){
			System.out.println("C "+(g+1));
			}
		}
		for (int i=0;i<13;i++){
			if (d[i]==0){
				System.out.println("D "+(i+1));
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a;
		String mark;
		int[] s = new int[13];int[] h = new int[13];
		int[] c = new int[13];int[] d = new int[13];
		for (int b=0;b<n;b++){
			mark=sc.next();
			a=sc.nextInt();
			if (mark.equals("S")){
				s[a-1]=1;
			}else if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			}
		}
		for (int e=0;e<13;e++){
			if (s[e]==0){
				System.out.println("S "+(e+1));
			}
		}
		for (int f=0;f<13;f++){
			if (h[f]==0){
				System.out.println("H "+(f+1));
			}
		}
		for (int g=0;g<13;g++){
		if (c[g]==0){
			System.out.println("C "+(g+1));
			}
		}
		for (int i=0;i<13;i++){
			if (d[i]==0){
				System.out.println("D "+(i+1));
			}
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a;
		String mark;
		int[] s = new int[13];int[] h = new int[13];
		int[] c = new int[13];int[] d = new int[13];
		for (int b=0;b<n;b++){
			mark=sc.next();
			a=sc.nextInt();
			if (mark.equals("S")){
				s[a-1]=1;
			}else if (mark.equals("H")){
				h[a-1]=1;
			}else if (mark.equals("C")){
				c[a-1]=1;
			}else if (mark.equals("D")){
				d[a-1]=1;
			}
		}
		for (int e=0;e<13;e++){
			if (s[e]==0){
				System.out.println("S "+(e+1));
			}
		}
		for (int f=0;f<13;f++){
			if (h[f]==0){
				System.out.println("H "+(f+1));
			}
		}
		for (int g=0;g<13;g++){
		if (c[g]==0){
			System.out.println("C "+(g+1));
			}
		}
		for (int i=0;i<13;i++){
			if (d[i]==0){
				System.out.println("D "+(i+1));
			}
		}
	}
}