import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		
		int H, S, D, C;
		int h[] = new int[14];
		int s[] = new int[14];
		int d[] = new int[14];
		int c[] = new int[14];
		
		for(int i = 1; i <= n; i++){
			String mark = scan.next();
			if(mark.equals("H")){
				h[scan.nextInt()] = 1;
			}else if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			}
		}
		
		for(int i = 1; i <= 13; i++){
			if(s[i] != 1){
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(h[i] != 1){
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(c[i] != 1){
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(d[i] != 1){
				System.out.println("D " + i);
			}
		}
	}
}
	
	 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		
		int H, S, D, C;
		int h[] = new int[14];
		int s[] = new int[14];
		int d[] = new int[14];
		int c[] = new int[14];
		
		for(int i = 1; i <= n; i++){
			String mark = scan.next();
			if(mark.equals("H")){
				h[scan.nextInt()] = 1;
			}else if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			}
		}
		
		for(int i = 1; i <= 13; i++){
			if(s[i] != 1){
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(h[i] != 1){
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(c[i] != 1){
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(d[i] != 1){
				System.out.println("D " + i);
			}
		}
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		
		int H, S, D, C;
		int h[] = new int[14];
		int s[] = new int[14];
		int d[] = new int[14];
		int c[] = new int[14];
		
		for(int i = 1; i <= n; i++){
			String mark = scan.next();
			if(mark.equals("H")){
				h[scan.nextInt()] = 1;
			}else if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			}
		}
		
		for(int i = 1; i <= 13; i++){
			if(s[i] != 1){
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(h[i] != 1){
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(c[i] != 1){
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(d[i] != 1){
				System.out.println("D " + i);
			}
		}
	} main {
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		
		int H, S, D, C;
		int h[] = new int[14];
		int s[] = new int[14];
		int d[] = new int[14];
		int c[] = new int[14];
		
		for(int i = 1; i <= n; i++){
			String mark = scan.next();
			if(mark.equals("H")){
				h[scan.nextInt()] = 1;
			}else if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			}
		}
		
		for(int i = 1; i <= 13; i++){
			if(s[i] != 1){
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(h[i] != 1){
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(c[i] != 1){
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(d[i] != 1){
				System.out.println("D " + i);
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int H H S S D D C; C int h[] = new int[14]; h new int[14] 14 int s[] = new int[14]; s new int[14] 14 int d[] = new int[14]; d new int[14] 14 int c[] = new int[14]; c new int[14] 14 for(int i = 1; i <= n; i++){
			String mark = scan.next();
			if(mark.equals("H")){
				h[scan.nextInt()] = 1;
			}else if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			}
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			String mark = scan.next();
			if(mark.equals("H")){
				h[scan.nextInt()] = 1;
			}else if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			}
		} {
			String mark = scan.next();
			if(mark.equals("H")){
				h[scan.nextInt()] = 1;
			}else if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			}
		} String mark = scan.next(); mark scan.next() scan.next scan if(mark.equals("H")){
				h[scan.nextInt()] = 1;
			}else if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			} mark.equals("H") mark.equals mark "H" {
				h[scan.nextInt()] = 1;
			} h[scan.nextInt()] = 1 h[scan.nextInt()] h scan.nextInt() scan.nextInt scan 1 if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			} mark.equals("S") mark.equals mark "S" {
				s[scan.nextInt()] = 1;
			} s[scan.nextInt()] = 1 s[scan.nextInt()] s scan.nextInt() scan.nextInt scan 1 if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			} mark.equals("D") mark.equals mark "D" {
				d[scan.nextInt()] = 1;
			} d[scan.nextInt()] = 1 d[scan.nextInt()] d scan.nextInt() scan.nextInt scan 1 if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			} mark.equals("C") mark.equals mark "C" {
				c[scan.nextInt()] = 1;
			} c[scan.nextInt()] = 1 c[scan.nextInt()] c scan.nextInt() scan.nextInt scan 1 for(int i = 1; i <= 13; i++){
			if(s[i] != 1){
				System.out.println("S " + i);
			}
		} int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
			if(s[i] != 1){
				System.out.println("S " + i);
			}
		} {
			if(s[i] != 1){
				System.out.println("S " + i);
			}
		} if(s[i] != 1){
				System.out.println("S " + i);
			} s[i] != 1 s[i] s i 1 {
				System.out.println("S " + i);
			} System.out.println("S " + i) System.out.println System.out System System.out "S " + i "S " i for(int i = 1; i <= 13; i++){
			if(h[i] != 1){
				System.out.println("H " + i);
			}
		} int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
			if(h[i] != 1){
				System.out.println("H " + i);
			}
		} {
			if(h[i] != 1){
				System.out.println("H " + i);
			}
		} if(h[i] != 1){
				System.out.println("H " + i);
			} h[i] != 1 h[i] h i 1 {
				System.out.println("H " + i);
			} System.out.println("H " + i) System.out.println System.out System System.out "H " + i "H " i for(int i = 1; i <= 13; i++){
			if(c[i] != 1){
				System.out.println("C " + i);
			}
		} int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
			if(c[i] != 1){
				System.out.println("C " + i);
			}
		} {
			if(c[i] != 1){
				System.out.println("C " + i);
			}
		} if(c[i] != 1){
				System.out.println("C " + i);
			} c[i] != 1 c[i] c i 1 {
				System.out.println("C " + i);
			} System.out.println("C " + i) System.out.println System.out System System.out "C " + i "C " i for(int i = 1; i <= 13; i++){
			if(d[i] != 1){
				System.out.println("D " + i);
			}
		} int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {
			if(d[i] != 1){
				System.out.println("D " + i);
			}
		} {
			if(d[i] != 1){
				System.out.println("D " + i);
			}
		} if(d[i] != 1){
				System.out.println("D " + i);
			} d[i] != 1 d[i] d i 1 {
				System.out.println("D " + i);
			} System.out.println("D " + i) System.out.println System.out System System.out "D " + i "D " i String args[] args public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		
		int H, S, D, C;
		int h[] = new int[14];
		int s[] = new int[14];
		int d[] = new int[14];
		int c[] = new int[14];
		
		for(int i = 1; i <= n; i++){
			String mark = scan.next();
			if(mark.equals("H")){
				h[scan.nextInt()] = 1;
			}else if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			}
		}
		
		for(int i = 1; i <= 13; i++){
			if(s[i] != 1){
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(h[i] != 1){
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(c[i] != 1){
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(d[i] != 1){
				System.out.println("D " + i);
			}
		}
	}
} public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		
		int H, S, D, C;
		int h[] = new int[14];
		int s[] = new int[14];
		int d[] = new int[14];
		int c[] = new int[14];
		
		for(int i = 1; i <= n; i++){
			String mark = scan.next();
			if(mark.equals("H")){
				h[scan.nextInt()] = 1;
			}else if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			}
		}
		
		for(int i = 1; i <= 13; i++){
			if(s[i] != 1){
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(h[i] != 1){
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(c[i] != 1){
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(d[i] != 1){
				System.out.println("D " + i);
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in); 
		
		int n = scan.nextInt();
		
		int H, S, D, C;
		int h[] = new int[14];
		int s[] = new int[14];
		int d[] = new int[14];
		int c[] = new int[14];
		
		for(int i = 1; i <= n; i++){
			String mark = scan.next();
			if(mark.equals("H")){
				h[scan.nextInt()] = 1;
			}else if(mark.equals("S")){
				s[scan.nextInt()] = 1;
			}else if(mark.equals("D")){
				d[scan.nextInt()] = 1;
			}else if(mark.equals("C")){
				c[scan.nextInt()] = 1;
			}
		}
		
		for(int i = 1; i <= 13; i++){
			if(s[i] != 1){
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(h[i] != 1){
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(c[i] != 1){
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i <= 13; i++){
			if(d[i] != 1){
				System.out.println("D " + i);
			}
		}
	}
}
	
	