import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int abc[][] = new int[4][14];
		int i,x=0;
		for(i=0;i<n;i++) {
			String str=scan.next();
			if(str.equals("S")) {
				x=0;
			}
			else if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			}
			int y=scan.nextInt();
			abc[x][y]=1;
		}
		for(x=0;x<4;x++) {
			for(int y=1;y<14;y++) {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			}
		}
		scan.close();
}
} 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 abc[][] = new int[4][14];
		int i,x=0;
		for(i=0;i<n;i++) {
			String str=scan.next();
			if(str.equals("S")) {
				x=0;
			}
			else if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			}
			int y=scan.nextInt();
			abc[x][y]=1;
		}
		for(x=0;x<4;x++) {
			for(int y=1;y<14;y++) {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			}
		}
		scan.close();
}
} Main public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int abc[][] = new int[4][14];
		int i,x=0;
		for(i=0;i<n;i++) {
			String str=scan.next();
			if(str.equals("S")) {
				x=0;
			}
			else if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			}
			int y=scan.nextInt();
			abc[x][y]=1;
		}
		for(x=0;x<4;x++) {
			for(int y=1;y<14;y++) {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			}
		}
		scan.close();
} main {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int abc[][] = new int[4][14];
		int i,x=0;
		for(i=0;i<n;i++) {
			String str=scan.next();
			if(str.equals("S")) {
				x=0;
			}
			else if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			}
			int y=scan.nextInt();
			abc[x][y]=1;
		}
		for(x=0;x<4;x++) {
			for(int y=1;y<14;y++) {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			}
		}
		scan.close();
} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int n=scan.nextInt(); n scan.nextInt() scan.nextInt scan int abc[][] = new int[4][14]; abc new int[4][14] 4 14 int i i x=0; x 0 for(i=0;i<n;i++) {
			String str=scan.next();
			if(str.equals("S")) {
				x=0;
			}
			else if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			}
			int y=scan.nextInt();
			abc[x][y]=1;
		} i=0; i=0 i 0 i<n i n i++ i++ i {
			String str=scan.next();
			if(str.equals("S")) {
				x=0;
			}
			else if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			}
			int y=scan.nextInt();
			abc[x][y]=1;
		} {
			String str=scan.next();
			if(str.equals("S")) {
				x=0;
			}
			else if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			}
			int y=scan.nextInt();
			abc[x][y]=1;
		} String str=scan.next(); str scan.next() scan.next scan if(str.equals("S")) {
				x=0;
			}
			else if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			} str.equals("S") str.equals str "S" {
				x=0;
			} x=0 x 0 if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			} str.equals("H") str.equals str "H" {
				x=1;
			} x=1 x 1 if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			} str.equals("C") str.equals str "C" {
				x=2;
			} x=2 x 2 if(str.equals("D")) {
				x=3;
			} str.equals("D") str.equals str "D" {
				x=3;
			} x=3 x 3 int y=scan.nextInt(); y scan.nextInt() scan.nextInt scan abc[x][y]=1 abc[x][y] abc[x] abc x y 1 for(x=0;x<4;x++) {
			for(int y=1;y<14;y++) {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			}
		} x=0; x=0 x 0 x<4 x 4 x++ x++ x {
			for(int y=1;y<14;y++) {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			}
		} {
			for(int y=1;y<14;y++) {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			}
		} for(int y=1;y<14;y++) {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			} int y=1; int y=1; y 1 y<14 y 14 y++ y++ y {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			} {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			} if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				} abc[x][y] != 1 abc[x][y] abc[x] abc x y 1 {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				} if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					} x==0 x 0 {
						System.out.println("S "+y);
					} System.out.println("S "+y) System.out.println System.out System System.out "S "+y "S " y if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					} x==1 x 1 {
						System.out.println("H "+y);
					} System.out.println("H "+y) System.out.println System.out System System.out "H "+y "H " y if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					} x==2 x 2 {
						System.out.println("C "+y);
					} System.out.println("C "+y) System.out.println System.out System System.out "C "+y "C " y if(x==3) {
						System.out.println("D "+y);
					} x==3 x 3 {
						System.out.println("D "+y);
					} System.out.println("D "+y) System.out.println System.out System System.out "D "+y "D " y scan.close() scan.close scan String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int abc[][] = new int[4][14];
		int i,x=0;
		for(i=0;i<n;i++) {
			String str=scan.next();
			if(str.equals("S")) {
				x=0;
			}
			else if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			}
			int y=scan.nextInt();
			abc[x][y]=1;
		}
		for(x=0;x<4;x++) {
			for(int y=1;y<14;y++) {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			}
		}
		scan.close();
}
} public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int abc[][] = new int[4][14];
		int i,x=0;
		for(i=0;i<n;i++) {
			String str=scan.next();
			if(str.equals("S")) {
				x=0;
			}
			else if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			}
			int y=scan.nextInt();
			abc[x][y]=1;
		}
		for(x=0;x<4;x++) {
			for(int y=1;y<14;y++) {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			}
		}
		scan.close();
}
} 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 abc[][] = new int[4][14];
		int i,x=0;
		for(i=0;i<n;i++) {
			String str=scan.next();
			if(str.equals("S")) {
				x=0;
			}
			else if(str.equals("H")) {
				x=1;
			}
			else if(str.equals("C")) {
				x=2;
			}
			else if(str.equals("D")) {
				x=3;
			}
			int y=scan.nextInt();
			abc[x][y]=1;
		}
		for(x=0;x<4;x++) {
			for(int y=1;y<14;y++) {
				if(abc[x][y] != 1) {
					if(x==0) {
						System.out.println("S "+y);
					}
					else if(x==1) {
						System.out.println("H "+y);
					}
					else if(x==2) {
						System.out.println("C "+y);
					}
					else if(x==3) {
						System.out.println("D "+y);
					}
				}
				
			}
		}
		scan.close();
}
}
