import java.util.Scanner;

public class Main{
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		int work,n = sc.nextInt();
		String str;
		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 < n; i++){
			str = sc.next();
			work = sc.nextInt();
			if(str.equals("S")){
				s[work-1] = 1;
			}else if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 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.Scanner; Scanner java.util public class Main{
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		int work,n = sc.nextInt();
		String str;
		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 < n; i++){
			str = sc.next();
			work = sc.nextInt();
			if(str.equals("S")){
				s[work-1] = 1;
			}else if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 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 work,n = sc.nextInt();
		String str;
		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 < n; i++){
			str = sc.next();
			work = sc.nextInt();
			if(str.equals("S")){
				s[work-1] = 1;
			}else if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 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 work,n = sc.nextInt();
		String str;
		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 < n; i++){
			str = sc.next();
			work = sc.nextInt();
			if(str.equals("S")){
				s[work-1] = 1;
			}else if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 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 work work n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String str; str 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 < n; i++){
			str = sc.next();
			work = sc.nextInt();
			if(str.equals("S")){
				s[work-1] = 1;
			}else if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 1;
			}
				
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			str = sc.next();
			work = sc.nextInt();
			if(str.equals("S")){
				s[work-1] = 1;
			}else if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 1;
			}
				
		} {
			str = sc.next();
			work = sc.nextInt();
			if(str.equals("S")){
				s[work-1] = 1;
			}else if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 1;
			}
				
		} str = sc.next() str sc.next() sc.next sc work = sc.nextInt() work sc.nextInt() sc.nextInt sc if(str.equals("S")){
				s[work-1] = 1;
			}else if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 1;
			} str.equals("S") str.equals str "S" {
				s[work-1] = 1;
			} s[work-1] = 1 s[work-1] s work-1 work 1 1 if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 1;
			} str.equals("H") str.equals str "H" {
				h[work-1] = 1;
			} h[work-1] = 1 h[work-1] h work-1 work 1 1 if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 1;
			} str.equals("C") str.equals str "C" {
				c[work-1] = 1;
			} c[work-1] = 1 c[work-1] c work-1 work 1 1 if(str.equals("D")){
				d[work-1] = 1;
			} str.equals("D") str.equals str "D" {
				d[work-1] = 1;
			} d[work-1] = 1 d[work-1] d work-1 work 1 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 work,n = sc.nextInt();
		String str;
		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 < n; i++){
			str = sc.next();
			work = sc.nextInt();
			if(str.equals("S")){
				s[work-1] = 1;
			}else if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 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 work,n = sc.nextInt();
		String str;
		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 < n; i++){
			str = sc.next();
			work = sc.nextInt();
			if(str.equals("S")){
				s[work-1] = 1;
			}else if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 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.Scanner;

public class Main{
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		int work,n = sc.nextInt();
		String str;
		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 < n; i++){
			str = sc.next();
			work = sc.nextInt();
			if(str.equals("S")){
				s[work-1] = 1;
			}else if(str.equals("H")){
				h[work-1] = 1;
			}else if(str.equals("C")){
				c[work-1] = 1;
			}else if(str.equals("D")){
				d[work-1] = 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));
			}
		}
		
	}
}