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