import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws java.lang.Exception
	{
		int[][] card = new int[4][13];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		//???????????????????????°???????????????
		int a = Integer.parseInt(br.readLine());
		
		//??????????????????????????§??????????????\?????????
		for(int i = 0; i < a; i++) {
			String str = br.readLine();
			String [] m = str.split(" ");
			int b = Integer.parseInt(m[1]);
			
			if(m[0].equals("S")) {
				card[0][b - 1] = 1;
			}
			if(m[0].equals("H")) {
				card[1][b - 1] = 1;
			}
			if(m[0].equals("C")) {
				card[2][b - 1] = 1;
			}
			if(m[0].equals("D")) {
				card[3][b - 1] = 1;
			}
			
		}
		
		//?????????????????????????????¨?????????
		for(int i = 0; i < card.length; i++) {
			for(int j = 0; j < card[i].length; j++) {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			}
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws java.lang.Exception
	{
		int[][] card = new int[4][13];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		//???????????????????????°???????????????
		int a = Integer.parseInt(br.readLine());
		
		//??????????????????????????§??????????????\?????????
		for(int i = 0; i < a; i++) {
			String str = br.readLine();
			String [] m = str.split(" ");
			int b = Integer.parseInt(m[1]);
			
			if(m[0].equals("S")) {
				card[0][b - 1] = 1;
			}
			if(m[0].equals("H")) {
				card[1][b - 1] = 1;
			}
			if(m[0].equals("C")) {
				card[2][b - 1] = 1;
			}
			if(m[0].equals("D")) {
				card[3][b - 1] = 1;
			}
			
		}
		
		//?????????????????????????????¨?????????
		for(int i = 0; i < card.length; i++) {
			for(int j = 0; j < card[i].length; j++) {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			}
		}
	}

} Main public static void main(String[] args) throws java.lang.Exception
	{
		int[][] card = new int[4][13];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		//???????????????????????°???????????????
		int a = Integer.parseInt(br.readLine());
		
		//??????????????????????????§??????????????\?????????
		for(int i = 0; i < a; i++) {
			String str = br.readLine();
			String [] m = str.split(" ");
			int b = Integer.parseInt(m[1]);
			
			if(m[0].equals("S")) {
				card[0][b - 1] = 1;
			}
			if(m[0].equals("H")) {
				card[1][b - 1] = 1;
			}
			if(m[0].equals("C")) {
				card[2][b - 1] = 1;
			}
			if(m[0].equals("D")) {
				card[3][b - 1] = 1;
			}
			
		}
		
		//?????????????????????????????¨?????????
		for(int i = 0; i < card.length; i++) {
			for(int j = 0; j < card[i].length; j++) {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			}
		}
	} main {
		int[][] card = new int[4][13];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		//???????????????????????°???????????????
		int a = Integer.parseInt(br.readLine());
		
		//??????????????????????????§??????????????\?????????
		for(int i = 0; i < a; i++) {
			String str = br.readLine();
			String [] m = str.split(" ");
			int b = Integer.parseInt(m[1]);
			
			if(m[0].equals("S")) {
				card[0][b - 1] = 1;
			}
			if(m[0].equals("H")) {
				card[1][b - 1] = 1;
			}
			if(m[0].equals("C")) {
				card[2][b - 1] = 1;
			}
			if(m[0].equals("D")) {
				card[3][b - 1] = 1;
			}
			
		}
		
		//?????????????????????????????¨?????????
		for(int i = 0; i < card.length; i++) {
			for(int j = 0; j < card[i].length; j++) {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			}
		}
	} int[][] card = new int[4][13]; card new int[4][13] 4 13 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int a = Integer.parseInt(br.readLine()); a Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i = 0; i < a; i++) {
			String str = br.readLine();
			String [] m = str.split(" ");
			int b = Integer.parseInt(m[1]);
			
			if(m[0].equals("S")) {
				card[0][b - 1] = 1;
			}
			if(m[0].equals("H")) {
				card[1][b - 1] = 1;
			}
			if(m[0].equals("C")) {
				card[2][b - 1] = 1;
			}
			if(m[0].equals("D")) {
				card[3][b - 1] = 1;
			}
			
		} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
			String str = br.readLine();
			String [] m = str.split(" ");
			int b = Integer.parseInt(m[1]);
			
			if(m[0].equals("S")) {
				card[0][b - 1] = 1;
			}
			if(m[0].equals("H")) {
				card[1][b - 1] = 1;
			}
			if(m[0].equals("C")) {
				card[2][b - 1] = 1;
			}
			if(m[0].equals("D")) {
				card[3][b - 1] = 1;
			}
			
		} {
			String str = br.readLine();
			String [] m = str.split(" ");
			int b = Integer.parseInt(m[1]);
			
			if(m[0].equals("S")) {
				card[0][b - 1] = 1;
			}
			if(m[0].equals("H")) {
				card[1][b - 1] = 1;
			}
			if(m[0].equals("C")) {
				card[2][b - 1] = 1;
			}
			if(m[0].equals("D")) {
				card[3][b - 1] = 1;
			}
			
		} String str = br.readLine(); str br.readLine() br.readLine br String [] m = str.split(" "); m str.split(" ") str.split str " " int b = Integer.parseInt(m[1]); b Integer.parseInt(m[1]) Integer.parseInt Integer m[1] m 1 if(m[0].equals("S")) {
				card[0][b - 1] = 1;
			} m[0].equals("S") m[0].equals m[0] m 0 "S" {
				card[0][b - 1] = 1;
			} card[0][b - 1] = 1 card[0][b - 1] card[0] card 0 b - 1 b 1 1 if(m[0].equals("H")) {
				card[1][b - 1] = 1;
			} m[0].equals("H") m[0].equals m[0] m 0 "H" {
				card[1][b - 1] = 1;
			} card[1][b - 1] = 1 card[1][b - 1] card[1] card 1 b - 1 b 1 1 if(m[0].equals("C")) {
				card[2][b - 1] = 1;
			} m[0].equals("C") m[0].equals m[0] m 0 "C" {
				card[2][b - 1] = 1;
			} card[2][b - 1] = 1 card[2][b - 1] card[2] card 2 b - 1 b 1 1 if(m[0].equals("D")) {
				card[3][b - 1] = 1;
			} m[0].equals("D") m[0].equals m[0] m 0 "D" {
				card[3][b - 1] = 1;
			} card[3][b - 1] = 1 card[3][b - 1] card[3] card 3 b - 1 b 1 1 for(int i = 0; i < card.length; i++) {
			for(int j = 0; j < card[i].length; j++) {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			}
		} int i = 0; int i = 0; i 0 i < card.length i card.length card card.length i++ i++ i {
			for(int j = 0; j < card[i].length; j++) {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			}
		} {
			for(int j = 0; j < card[i].length; j++) {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			}
		} for(int j = 0; j < card[i].length; j++) {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			} int j = 0; int j = 0; j 0 j < card[i].length j card[i].length card[i] card i card[i].length j++ j++ j {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			} {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			} if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				} card[i][j] == 0 card[i][j] card[i] card i j 0 {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				} if(i == 0) {
						System.out.println("S " + (j+1));
					} i == 0 i 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) j 1 if(i == 1) {
						System.out.println("H " + (j+1));
					} i == 1 i 1 {
						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) j 1 if(i == 2) {
						System.out.println("C " + (j+1));
					} i == 2 i 2 {
						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) j 1 if(i == 3) {
						System.out.println("D " + (j+1));
					} i == 3 i 3 {
						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) j 1 String[] args args public class Main {

	public static void main(String[] args) throws java.lang.Exception
	{
		int[][] card = new int[4][13];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		//???????????????????????°???????????????
		int a = Integer.parseInt(br.readLine());
		
		//??????????????????????????§??????????????\?????????
		for(int i = 0; i < a; i++) {
			String str = br.readLine();
			String [] m = str.split(" ");
			int b = Integer.parseInt(m[1]);
			
			if(m[0].equals("S")) {
				card[0][b - 1] = 1;
			}
			if(m[0].equals("H")) {
				card[1][b - 1] = 1;
			}
			if(m[0].equals("C")) {
				card[2][b - 1] = 1;
			}
			if(m[0].equals("D")) {
				card[3][b - 1] = 1;
			}
			
		}
		
		//?????????????????????????????¨?????????
		for(int i = 0; i < card.length; i++) {
			for(int j = 0; j < card[i].length; j++) {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			}
		}
	}

} public class Main {

	public static void main(String[] args) throws java.lang.Exception
	{
		int[][] card = new int[4][13];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		//???????????????????????°???????????????
		int a = Integer.parseInt(br.readLine());
		
		//??????????????????????????§??????????????\?????????
		for(int i = 0; i < a; i++) {
			String str = br.readLine();
			String [] m = str.split(" ");
			int b = Integer.parseInt(m[1]);
			
			if(m[0].equals("S")) {
				card[0][b - 1] = 1;
			}
			if(m[0].equals("H")) {
				card[1][b - 1] = 1;
			}
			if(m[0].equals("C")) {
				card[2][b - 1] = 1;
			}
			if(m[0].equals("D")) {
				card[3][b - 1] = 1;
			}
			
		}
		
		//?????????????????????????????¨?????????
		for(int i = 0; i < card.length; i++) {
			for(int j = 0; j < card[i].length; j++) {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			}
		}
	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws java.lang.Exception
	{
		int[][] card = new int[4][13];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		//???????????????????????°???????????????
		int a = Integer.parseInt(br.readLine());
		
		//??????????????????????????§??????????????\?????????
		for(int i = 0; i < a; i++) {
			String str = br.readLine();
			String [] m = str.split(" ");
			int b = Integer.parseInt(m[1]);
			
			if(m[0].equals("S")) {
				card[0][b - 1] = 1;
			}
			if(m[0].equals("H")) {
				card[1][b - 1] = 1;
			}
			if(m[0].equals("C")) {
				card[2][b - 1] = 1;
			}
			if(m[0].equals("D")) {
				card[3][b - 1] = 1;
			}
			
		}
		
		//?????????????????????????????¨?????????
		for(int i = 0; i < card.length; i++) {
			for(int j = 0; j < card[i].length; j++) {
				if(card[i][j] == 0) {
					if(i == 0) {
						System.out.println("S " + (j+1));
					}
					if(i == 1) {
						System.out.println("H " + (j+1));
					}
					if(i == 2) {
						System.out.println("C " + (j+1));
					}
					if(i == 3) {
						System.out.println("D " + (j+1));
					}
				}
			}
		}
	}

}