import java.io.*;
import java.util.*;
public class Main {

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			boolean []s=new boolean[13];
			boolean []h=new boolean[13];
			boolean []c=new boolean[13];
			boolean []d=new boolean[13];
			
			int x;
			
			
			for(int a=0;a<n;++a){
				String b = sc.next();
				if(b.equals("S")){
					x=sc.nextInt();
					s[x-1]=true;
				}else if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				}
			}
			for(int a=1;a<=13;++a){
				if(s[a-1]!=true){
					System.out.println("S "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(h[a-1]!=true){
					System.out.println("H "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(c[a-1]!=true){
					System.out.println("C "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(d[a-1]!=true){
					System.out.println("D "+a);
				}
			}
	}

} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			boolean []s=new boolean[13];
			boolean []h=new boolean[13];
			boolean []c=new boolean[13];
			boolean []d=new boolean[13];
			
			int x;
			
			
			for(int a=0;a<n;++a){
				String b = sc.next();
				if(b.equals("S")){
					x=sc.nextInt();
					s[x-1]=true;
				}else if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				}
			}
			for(int a=1;a<=13;++a){
				if(s[a-1]!=true){
					System.out.println("S "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(h[a-1]!=true){
					System.out.println("H "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(c[a-1]!=true){
					System.out.println("C "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(d[a-1]!=true){
					System.out.println("D "+a);
				}
			}
	}

} Main public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			boolean []s=new boolean[13];
			boolean []h=new boolean[13];
			boolean []c=new boolean[13];
			boolean []d=new boolean[13];
			
			int x;
			
			
			for(int a=0;a<n;++a){
				String b = sc.next();
				if(b.equals("S")){
					x=sc.nextInt();
					s[x-1]=true;
				}else if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				}
			}
			for(int a=1;a<=13;++a){
				if(s[a-1]!=true){
					System.out.println("S "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(h[a-1]!=true){
					System.out.println("H "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(c[a-1]!=true){
					System.out.println("C "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(d[a-1]!=true){
					System.out.println("D "+a);
				}
			}
	} main {
		// TODO ?????????????????????????????????????????????
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			boolean []s=new boolean[13];
			boolean []h=new boolean[13];
			boolean []c=new boolean[13];
			boolean []d=new boolean[13];
			
			int x;
			
			
			for(int a=0;a<n;++a){
				String b = sc.next();
				if(b.equals("S")){
					x=sc.nextInt();
					s[x-1]=true;
				}else if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				}
			}
			for(int a=1;a<=13;++a){
				if(s[a-1]!=true){
					System.out.println("S "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(h[a-1]!=true){
					System.out.println("H "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(c[a-1]!=true){
					System.out.println("C "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(d[a-1]!=true){
					System.out.println("D "+a);
				}
			}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc 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 int x; x for(int a=0;a<n;++a){
				String b = sc.next();
				if(b.equals("S")){
					x=sc.nextInt();
					s[x-1]=true;
				}else if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				}
			} int a=0; int a=0; a 0 a<n a n ++a ++a a {
				String b = sc.next();
				if(b.equals("S")){
					x=sc.nextInt();
					s[x-1]=true;
				}else if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				}
			} {
				String b = sc.next();
				if(b.equals("S")){
					x=sc.nextInt();
					s[x-1]=true;
				}else if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				}
			} String b = sc.next(); b sc.next() sc.next sc if(b.equals("S")){
					x=sc.nextInt();
					s[x-1]=true;
				}else if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				} b.equals("S") b.equals b "S" {
					x=sc.nextInt();
					s[x-1]=true;
				} x=sc.nextInt() x sc.nextInt() sc.nextInt sc s[x-1]=true s[x-1] s x-1 x 1 true if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				} b.equals("H") b.equals b "H" {
					x=sc.nextInt();
					h[x-1]=true;
				} x=sc.nextInt() x sc.nextInt() sc.nextInt sc h[x-1]=true h[x-1] h x-1 x 1 true if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				} b.equals("C") b.equals b "C" {
					x=sc.nextInt();
					c[x-1]=true;
				} x=sc.nextInt() x sc.nextInt() sc.nextInt sc c[x-1]=true c[x-1] c x-1 x 1 true if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				} b.equals("D") b.equals b "D" {
					x=sc.nextInt();
					d[x-1]=true;
				} x=sc.nextInt() x sc.nextInt() sc.nextInt sc d[x-1]=true d[x-1] d x-1 x 1 true for(int a=1;a<=13;++a){
				if(s[a-1]!=true){
					System.out.println("S "+a);
				}
			} int a=1; int a=1; a 1 a<=13 a 13 ++a ++a a {
				if(s[a-1]!=true){
					System.out.println("S "+a);
				}
			} {
				if(s[a-1]!=true){
					System.out.println("S "+a);
				}
			} if(s[a-1]!=true){
					System.out.println("S "+a);
				} s[a-1]!=true s[a-1] s a-1 a 1 true {
					System.out.println("S "+a);
				} System.out.println("S "+a) System.out.println System.out System System.out "S "+a "S " a for(int a=1;a<=13;++a){
				if(h[a-1]!=true){
					System.out.println("H "+a);
				}
			} int a=1; int a=1; a 1 a<=13 a 13 ++a ++a a {
				if(h[a-1]!=true){
					System.out.println("H "+a);
				}
			} {
				if(h[a-1]!=true){
					System.out.println("H "+a);
				}
			} if(h[a-1]!=true){
					System.out.println("H "+a);
				} h[a-1]!=true h[a-1] h a-1 a 1 true {
					System.out.println("H "+a);
				} System.out.println("H "+a) System.out.println System.out System System.out "H "+a "H " a for(int a=1;a<=13;++a){
				if(c[a-1]!=true){
					System.out.println("C "+a);
				}
			} int a=1; int a=1; a 1 a<=13 a 13 ++a ++a a {
				if(c[a-1]!=true){
					System.out.println("C "+a);
				}
			} {
				if(c[a-1]!=true){
					System.out.println("C "+a);
				}
			} if(c[a-1]!=true){
					System.out.println("C "+a);
				} c[a-1]!=true c[a-1] c a-1 a 1 true {
					System.out.println("C "+a);
				} System.out.println("C "+a) System.out.println System.out System System.out "C "+a "C " a for(int a=1;a<=13;++a){
				if(d[a-1]!=true){
					System.out.println("D "+a);
				}
			} int a=1; int a=1; a 1 a<=13 a 13 ++a ++a a {
				if(d[a-1]!=true){
					System.out.println("D "+a);
				}
			} {
				if(d[a-1]!=true){
					System.out.println("D "+a);
				}
			} if(d[a-1]!=true){
					System.out.println("D "+a);
				} d[a-1]!=true d[a-1] d a-1 a 1 true {
					System.out.println("D "+a);
				} System.out.println("D "+a) System.out.println System.out System System.out "D "+a "D " a String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			boolean []s=new boolean[13];
			boolean []h=new boolean[13];
			boolean []c=new boolean[13];
			boolean []d=new boolean[13];
			
			int x;
			
			
			for(int a=0;a<n;++a){
				String b = sc.next();
				if(b.equals("S")){
					x=sc.nextInt();
					s[x-1]=true;
				}else if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				}
			}
			for(int a=1;a<=13;++a){
				if(s[a-1]!=true){
					System.out.println("S "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(h[a-1]!=true){
					System.out.println("H "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(c[a-1]!=true){
					System.out.println("C "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(d[a-1]!=true){
					System.out.println("D "+a);
				}
			}
	}

} public class Main {

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			boolean []s=new boolean[13];
			boolean []h=new boolean[13];
			boolean []c=new boolean[13];
			boolean []d=new boolean[13];
			
			int x;
			
			
			for(int a=0;a<n;++a){
				String b = sc.next();
				if(b.equals("S")){
					x=sc.nextInt();
					s[x-1]=true;
				}else if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				}
			}
			for(int a=1;a<=13;++a){
				if(s[a-1]!=true){
					System.out.println("S "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(h[a-1]!=true){
					System.out.println("H "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(c[a-1]!=true){
					System.out.println("C "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(d[a-1]!=true){
					System.out.println("D "+a);
				}
			}
	}

} Main
import java.io.*;
import java.util.*;
public class Main {

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			boolean []s=new boolean[13];
			boolean []h=new boolean[13];
			boolean []c=new boolean[13];
			boolean []d=new boolean[13];
			
			int x;
			
			
			for(int a=0;a<n;++a){
				String b = sc.next();
				if(b.equals("S")){
					x=sc.nextInt();
					s[x-1]=true;
				}else if(b.equals("H")){
					x=sc.nextInt();
					h[x-1]=true;
				}else if(b.equals("C")){
					x=sc.nextInt();
					c[x-1]=true;
				}else if(b.equals("D")){
					x=sc.nextInt();
					d[x-1]=true;
				}
			}
			for(int a=1;a<=13;++a){
				if(s[a-1]!=true){
					System.out.println("S "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(h[a-1]!=true){
					System.out.println("H "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(c[a-1]!=true){
					System.out.println("C "+a);
				}
			}
			for(int a=1;a<=13;++a){
				if(d[a-1]!=true){
					System.out.println("D "+a);
				}
			}
	}

}