import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x[] = new int[52];
		for(int i=0; i<52; i++){
			x[i]=0;
		}
		for(int i=0; i<n; i++){
			String str =sc.next();
			int num = sc.nextInt();
			if(str.equals("S")){
				num=num+0;
			}else if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			}
			x[num-1]=1;
		}
		for(int i=1; i<53; i++){
			int num = i;
			if(x[i-1]==0){
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x[] = new int[52];
		for(int i=0; i<52; i++){
			x[i]=0;
		}
		for(int i=0; i<n; i++){
			String str =sc.next();
			int num = sc.nextInt();
			if(str.equals("S")){
				num=num+0;
			}else if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			}
			x[num-1]=1;
		}
		for(int i=1; i<53; i++){
			int num = i;
			if(x[i-1]==0){
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			}
		}
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x[] = new int[52];
		for(int i=0; i<52; i++){
			x[i]=0;
		}
		for(int i=0; i<n; i++){
			String str =sc.next();
			int num = sc.nextInt();
			if(str.equals("S")){
				num=num+0;
			}else if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			}
			x[num-1]=1;
		}
		for(int i=1; i<53; i++){
			int num = i;
			if(x[i-1]==0){
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			}
		}
	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x[] = new int[52];
		for(int i=0; i<52; i++){
			x[i]=0;
		}
		for(int i=0; i<n; i++){
			String str =sc.next();
			int num = sc.nextInt();
			if(str.equals("S")){
				num=num+0;
			}else if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			}
			x[num-1]=1;
		}
		for(int i=1; i<53; i++){
			int num = i;
			if(x[i-1]==0){
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int x[] = new int[52]; x new int[52] 52 for(int i=0; i<52; i++){
			x[i]=0;
		} int i=0; int i=0; i 0 i<52 i 52 i++ i++ i {
			x[i]=0;
		} {
			x[i]=0;
		} x[i]=0 x[i] x i 0 for(int i=0; i<n; i++){
			String str =sc.next();
			int num = sc.nextInt();
			if(str.equals("S")){
				num=num+0;
			}else if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			}
			x[num-1]=1;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String str =sc.next();
			int num = sc.nextInt();
			if(str.equals("S")){
				num=num+0;
			}else if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			}
			x[num-1]=1;
		} {
			String str =sc.next();
			int num = sc.nextInt();
			if(str.equals("S")){
				num=num+0;
			}else if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			}
			x[num-1]=1;
		} String str =sc.next(); str sc.next() sc.next sc int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if(str.equals("S")){
				num=num+0;
			}else if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			} str.equals("S") str.equals str "S" {
				num=num+0;
			} num=num+0 num num+0 num 0 if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			} str.equals("H") str.equals str "H" {
				num=num+13;
			} num=num+13 num num+13 num 13 if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			} str.equals("C") str.equals str "C" {
				num=num+26;
			} num=num+26 num num+26 num 26 if(str.equals("D")){
				num=num+39;
			} str.equals("D") str.equals str "D" {
				num=num+39;
			} num=num+39 num num+39 num 39 x[num-1]=1 x[num-1] x num-1 num 1 1 for(int i=1; i<53; i++){
			int num = i;
			if(x[i-1]==0){
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			}
		} int i=1; int i=1; i 1 i<53 i 53 i++ i++ i {
			int num = i;
			if(x[i-1]==0){
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			}
		} {
			int num = i;
			if(x[i-1]==0){
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			}
		} int num = i; num i if(x[i-1]==0){
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			} x[i-1]==0 x[i-1] x i-1 i 1 0 {
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			} if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				} i<14 i 14 {
					System.out.println("S"+ " " + num);
				} System.out.println("S"+ " " + num) System.out.println System.out System System.out "S"+ " " + num "S"+ " " + num "S" " " num if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				} i>13 && i<27 i>13 i 13 i<27 i 27 {
					num=num-13;
					System.out.println("H" + " " + num);
				} num=num-13 num num-13 num 13 System.out.println("H" + " " + num) System.out.println System.out System System.out "H" + " " + num "H" + " " + num "H" " " num if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				} i>26 && i<40 i>26 i 26 i<40 i 40 {
					num=num-26;
					System.out.println("C" + " " + num);
				} num=num-26 num num-26 num 26 System.out.println("C" + " " + num) System.out.println System.out System System.out "C" + " " + num "C" + " " + num "C" " " num if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				} i>39 i 39 {
					num=num-39;
					System.out.println("D" + " " + num);
				} num=num-39 num num-39 num 39 System.out.println("D" + " " + num) System.out.println System.out System System.out "D" + " " + num "D" + " " + num "D" " " num String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x[] = new int[52];
		for(int i=0; i<52; i++){
			x[i]=0;
		}
		for(int i=0; i<n; i++){
			String str =sc.next();
			int num = sc.nextInt();
			if(str.equals("S")){
				num=num+0;
			}else if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			}
			x[num-1]=1;
		}
		for(int i=1; i<53; i++){
			int num = i;
			if(x[i-1]==0){
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			}
		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x[] = new int[52];
		for(int i=0; i<52; i++){
			x[i]=0;
		}
		for(int i=0; i<n; i++){
			String str =sc.next();
			int num = sc.nextInt();
			if(str.equals("S")){
				num=num+0;
			}else if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			}
			x[num-1]=1;
		}
		for(int i=1; i<53; i++){
			int num = i;
			if(x[i-1]==0){
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x[] = new int[52];
		for(int i=0; i<52; i++){
			x[i]=0;
		}
		for(int i=0; i<n; i++){
			String str =sc.next();
			int num = sc.nextInt();
			if(str.equals("S")){
				num=num+0;
			}else if(str.equals("H")){
				num=num+13;
			}else if(str.equals("C")){
				num=num+26;
			}else if(str.equals("D")){
				num=num+39;
			}
			x[num-1]=1;
		}
		for(int i=1; i<53; i++){
			int num = i;
			if(x[i-1]==0){
				if(i<14){
					System.out.println("S"+ " " + num);
				}else if(i>13 && i<27){
					num=num-13;
					System.out.println("H" + " " + num);
				}else if(i>26 && i<40){
					num=num-26;
					System.out.println("C" + " " + num);
				}else if(i>39){
					num=num-39;
					System.out.println("D" + " " + num);
				}
			}
		}
	}
}