import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int s[] = new int[13];
		int h[] = new int[13];
		int c[] = new int[13];
		int d[] = new int[13];
		for(int i=0;i<13;i++){
			s[i]=0;
			h[i]=0;
			c[i]=0;
			d[i]=0;
		}
		for(int i=0;i<n;i++){
			String cd=sc.next();
			int cn=sc.nextInt();
			switch(cd){
			case "S":
				s[cn-1]++;
				break;
			case "H":
				h[cn-1]++;
				break;
			case "C":
				c[cn-1]++;
				break;
			case "D":
				d[cn-1]++;
			}
		}
		for(int i=0;i<13;i++){
			if(s[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(h[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(c[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(d[i]==0){
				System.out.println("D "+(i+1));
			}
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int s[] = new int[13];
		int h[] = new int[13];
		int c[] = new int[13];
		int d[] = new int[13];
		for(int i=0;i<13;i++){
			s[i]=0;
			h[i]=0;
			c[i]=0;
			d[i]=0;
		}
		for(int i=0;i<n;i++){
			String cd=sc.next();
			int cn=sc.nextInt();
			switch(cd){
			case "S":
				s[cn-1]++;
				break;
			case "H":
				h[cn-1]++;
				break;
			case "C":
				c[cn-1]++;
				break;
			case "D":
				d[cn-1]++;
			}
		}
		for(int i=0;i<13;i++){
			if(s[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(h[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(c[i]==0){
				System.out.println("C "+(i+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 s[] = new int[13];
		int h[] = new int[13];
		int c[] = new int[13];
		int d[] = new int[13];
		for(int i=0;i<13;i++){
			s[i]=0;
			h[i]=0;
			c[i]=0;
			d[i]=0;
		}
		for(int i=0;i<n;i++){
			String cd=sc.next();
			int cn=sc.nextInt();
			switch(cd){
			case "S":
				s[cn-1]++;
				break;
			case "H":
				h[cn-1]++;
				break;
			case "C":
				c[cn-1]++;
				break;
			case "D":
				d[cn-1]++;
			}
		}
		for(int i=0;i<13;i++){
			if(s[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(h[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(c[i]==0){
				System.out.println("C "+(i+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 s[] = new int[13];
		int h[] = new int[13];
		int c[] = new int[13];
		int d[] = new int[13];
		for(int i=0;i<13;i++){
			s[i]=0;
			h[i]=0;
			c[i]=0;
			d[i]=0;
		}
		for(int i=0;i<n;i++){
			String cd=sc.next();
			int cn=sc.nextInt();
			switch(cd){
			case "S":
				s[cn-1]++;
				break;
			case "H":
				h[cn-1]++;
				break;
			case "C":
				c[cn-1]++;
				break;
			case "D":
				d[cn-1]++;
			}
		}
		for(int i=0;i<13;i++){
			if(s[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(h[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(c[i]==0){
				System.out.println("C "+(i+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 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 i=0;i<13;i++){
			s[i]=0;
			h[i]=0;
			c[i]=0;
			d[i]=0;
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			s[i]=0;
			h[i]=0;
			c[i]=0;
			d[i]=0;
		} {
			s[i]=0;
			h[i]=0;
			c[i]=0;
			d[i]=0;
		} s[i]=0 s[i] s i 0 h[i]=0 h[i] h i 0 c[i]=0 c[i] c i 0 d[i]=0 d[i] d i 0 for(int i=0;i<n;i++){
			String cd=sc.next();
			int cn=sc.nextInt();
			switch(cd){
			case "S":
				s[cn-1]++;
				break;
			case "H":
				h[cn-1]++;
				break;
			case "C":
				c[cn-1]++;
				break;
			case "D":
				d[cn-1]++;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String cd=sc.next();
			int cn=sc.nextInt();
			switch(cd){
			case "S":
				s[cn-1]++;
				break;
			case "H":
				h[cn-1]++;
				break;
			case "C":
				c[cn-1]++;
				break;
			case "D":
				d[cn-1]++;
			}
		} {
			String cd=sc.next();
			int cn=sc.nextInt();
			switch(cd){
			case "S":
				s[cn-1]++;
				break;
			case "H":
				h[cn-1]++;
				break;
			case "C":
				c[cn-1]++;
				break;
			case "D":
				d[cn-1]++;
			}
		} String cd=sc.next(); cd sc.next() sc.next sc int cn=sc.nextInt(); cn sc.nextInt() sc.nextInt sc switch(cd){
			case "S":
				s[cn-1]++;
				break;
			case "H":
				h[cn-1]++;
				break;
			case "C":
				c[cn-1]++;
				break;
			case "D":
				d[cn-1]++;
			} cd case "S": "S" case "S": s[cn-1]++ s[cn-1] s cn-1 cn 1 break; case "H": "H" case "H": h[cn-1]++ h[cn-1] h cn-1 cn 1 break; case "C": "C" case "C": c[cn-1]++ c[cn-1] c cn-1 cn 1 break; case "D": "D" case "D": d[cn-1]++ d[cn-1] d cn-1 cn 1 for(int i=0;i<13;i++){
			if(s[i]==0){
				System.out.println("S "+(i+1));
			}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if(s[i]==0){
				System.out.println("S "+(i+1));
			}
		} {
			if(s[i]==0){
				System.out.println("S "+(i+1));
			}
		} if(s[i]==0){
				System.out.println("S "+(i+1));
			} s[i]==0 s[i] s i 0 {
				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(h[i]==0){
				System.out.println("H "+(i+1));
			}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if(h[i]==0){
				System.out.println("H "+(i+1));
			}
		} {
			if(h[i]==0){
				System.out.println("H "+(i+1));
			}
		} if(h[i]==0){
				System.out.println("H "+(i+1));
			} h[i]==0 h[i] h i 0 {
				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(c[i]==0){
				System.out.println("C "+(i+1));
			}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if(c[i]==0){
				System.out.println("C "+(i+1));
			}
		} {
			if(c[i]==0){
				System.out.println("C "+(i+1));
			}
		} if(c[i]==0){
				System.out.println("C "+(i+1));
			} c[i]==0 c[i] c i 0 {
				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(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 s[] = new int[13];
		int h[] = new int[13];
		int c[] = new int[13];
		int d[] = new int[13];
		for(int i=0;i<13;i++){
			s[i]=0;
			h[i]=0;
			c[i]=0;
			d[i]=0;
		}
		for(int i=0;i<n;i++){
			String cd=sc.next();
			int cn=sc.nextInt();
			switch(cd){
			case "S":
				s[cn-1]++;
				break;
			case "H":
				h[cn-1]++;
				break;
			case "C":
				c[cn-1]++;
				break;
			case "D":
				d[cn-1]++;
			}
		}
		for(int i=0;i<13;i++){
			if(s[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(h[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(c[i]==0){
				System.out.println("C "+(i+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 s[] = new int[13];
		int h[] = new int[13];
		int c[] = new int[13];
		int d[] = new int[13];
		for(int i=0;i<13;i++){
			s[i]=0;
			h[i]=0;
			c[i]=0;
			d[i]=0;
		}
		for(int i=0;i<n;i++){
			String cd=sc.next();
			int cn=sc.nextInt();
			switch(cd){
			case "S":
				s[cn-1]++;
				break;
			case "H":
				h[cn-1]++;
				break;
			case "C":
				c[cn-1]++;
				break;
			case "D":
				d[cn-1]++;
			}
		}
		for(int i=0;i<13;i++){
			if(s[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(h[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(c[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(d[i]==0){
				System.out.println("D "+(i+1));
			}
		}
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int s[] = new int[13];
		int h[] = new int[13];
		int c[] = new int[13];
		int d[] = new int[13];
		for(int i=0;i<13;i++){
			s[i]=0;
			h[i]=0;
			c[i]=0;
			d[i]=0;
		}
		for(int i=0;i<n;i++){
			String cd=sc.next();
			int cn=sc.nextInt();
			switch(cd){
			case "S":
				s[cn-1]++;
				break;
			case "H":
				h[cn-1]++;
				break;
			case "C":
				c[cn-1]++;
				break;
			case "D":
				d[cn-1]++;
			}
		}
		for(int i=0;i<13;i++){
			if(s[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(h[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(c[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(d[i]==0){
				System.out.println("D "+(i+1));
			}
		}
	}
}