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

public class Main {
	public static void main(String[] args)throws Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
        	String input = br.readLine();
        	int[][] sum = new int[4][13];
        	for (int i = 0; i < Integer.parseInt(input); i++)
        	{
            	String[] card = br.readLine().split(" ");
            		int k = Integer.parseInt(card[1]) - 1;
            		if (card[0].equals("S"))
            			sum[0][k] = 1;
            		if (card[0].equals("H"))
            			sum[1][k] = 1;
            		if (card[0].equals("C"))
            			sum[2][k] = 1;
            		if (card[0].equals("D"))
            			sum[3][k] = 1;
        	}
        	for (int i = 0; i < 4; i++)
        	{
        		for (int j = 0; j < 13; j++)
        		{
        			if (sum[i][j] != 1)
        			{
        				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 Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
        	String input = br.readLine();
        	int[][] sum = new int[4][13];
        	for (int i = 0; i < Integer.parseInt(input); i++)
        	{
            	String[] card = br.readLine().split(" ");
            		int k = Integer.parseInt(card[1]) - 1;
            		if (card[0].equals("S"))
            			sum[0][k] = 1;
            		if (card[0].equals("H"))
            			sum[1][k] = 1;
            		if (card[0].equals("C"))
            			sum[2][k] = 1;
            		if (card[0].equals("D"))
            			sum[3][k] = 1;
        	}
        	for (int i = 0; i < 4; i++)
        	{
        		for (int j = 0; j < 13; j++)
        		{
        			if (sum[i][j] != 1)
        			{
        				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 Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
        	String input = br.readLine();
        	int[][] sum = new int[4][13];
        	for (int i = 0; i < Integer.parseInt(input); i++)
        	{
            	String[] card = br.readLine().split(" ");
            		int k = Integer.parseInt(card[1]) - 1;
            		if (card[0].equals("S"))
            			sum[0][k] = 1;
            		if (card[0].equals("H"))
            			sum[1][k] = 1;
            		if (card[0].equals("C"))
            			sum[2][k] = 1;
            		if (card[0].equals("D"))
            			sum[3][k] = 1;
        	}
        	for (int i = 0; i < 4; i++)
        	{
        		for (int j = 0; j < 13; j++)
        		{
        			if (sum[i][j] != 1)
        			{
        				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 {
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
        	String input = br.readLine();
        	int[][] sum = new int[4][13];
        	for (int i = 0; i < Integer.parseInt(input); i++)
        	{
            	String[] card = br.readLine().split(" ");
            		int k = Integer.parseInt(card[1]) - 1;
            		if (card[0].equals("S"))
            			sum[0][k] = 1;
            		if (card[0].equals("H"))
            			sum[1][k] = 1;
            		if (card[0].equals("C"))
            			sum[2][k] = 1;
            		if (card[0].equals("D"))
            			sum[3][k] = 1;
        	}
        	for (int i = 0; i < 4; i++)
        	{
        		for (int j = 0; j < 13; j++)
        		{
        			if (sum[i][j] != 1)
        			{
        				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));
        			}
        		}
        	}
        	
        	
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) String input = br.readLine(); input br.readLine() br.readLine br int[][] sum = new int[4][13]; sum new int[4][13] 4 13 for (int i = 0; i < Integer.parseInt(input); i++)
        	{
            	String[] card = br.readLine().split(" ");
            		int k = Integer.parseInt(card[1]) - 1;
            		if (card[0].equals("S"))
            			sum[0][k] = 1;
            		if (card[0].equals("H"))
            			sum[1][k] = 1;
            		if (card[0].equals("C"))
            			sum[2][k] = 1;
            		if (card[0].equals("D"))
            			sum[3][k] = 1;
        	} int i = 0; int i = 0; i 0 i < Integer.parseInt(input) i Integer.parseInt(input) Integer.parseInt Integer input i++ i++ i {
            	String[] card = br.readLine().split(" ");
            		int k = Integer.parseInt(card[1]) - 1;
            		if (card[0].equals("S"))
            			sum[0][k] = 1;
            		if (card[0].equals("H"))
            			sum[1][k] = 1;
            		if (card[0].equals("C"))
            			sum[2][k] = 1;
            		if (card[0].equals("D"))
            			sum[3][k] = 1;
        	} {
            	String[] card = br.readLine().split(" ");
            		int k = Integer.parseInt(card[1]) - 1;
            		if (card[0].equals("S"))
            			sum[0][k] = 1;
            		if (card[0].equals("H"))
            			sum[1][k] = 1;
            		if (card[0].equals("C"))
            			sum[2][k] = 1;
            		if (card[0].equals("D"))
            			sum[3][k] = 1;
        	} String[] card = br.readLine().split(" "); card br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int k = Integer.parseInt(card[1]) - 1; k Integer.parseInt(card[1]) - 1 Integer.parseInt(card[1]) Integer.parseInt Integer card[1] card 1 1 if (card[0].equals("S"))
            			sum[0][k] = 1; card[0].equals("S") card[0].equals card[0] card 0 "S" sum[0][k] = 1 sum[0][k] sum[0] sum 0 k 1 if (card[0].equals("H"))
            			sum[1][k] = 1; card[0].equals("H") card[0].equals card[0] card 0 "H" sum[1][k] = 1 sum[1][k] sum[1] sum 1 k 1 if (card[0].equals("C"))
            			sum[2][k] = 1; card[0].equals("C") card[0].equals card[0] card 0 "C" sum[2][k] = 1 sum[2][k] sum[2] sum 2 k 1 if (card[0].equals("D"))
            			sum[3][k] = 1; card[0].equals("D") card[0].equals card[0] card 0 "D" sum[3][k] = 1 sum[3][k] sum[3] sum 3 k 1 for (int i = 0; i < 4; i++)
        	{
        		for (int j = 0; j < 13; j++)
        		{
        			if (sum[i][j] != 1)
        			{
        				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 < 4 i 4 i++ i++ i {
        		for (int j = 0; j < 13; j++)
        		{
        			if (sum[i][j] != 1)
        			{
        				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 < 13; j++)
        		{
        			if (sum[i][j] != 1)
        			{
        				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 < 13; j++)
        		{
        			if (sum[i][j] != 1)
        			{
        				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 < 13 j 13 j++ j++ j {
        			if (sum[i][j] != 1)
        			{
        				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 (sum[i][j] != 1)
        			{
        				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 (sum[i][j] != 1)
        			{
        				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));
        			} sum[i][j] != 1 sum[i][j] sum[i] sum i j 1 {
        				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 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 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 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 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 Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
        	String input = br.readLine();
        	int[][] sum = new int[4][13];
        	for (int i = 0; i < Integer.parseInt(input); i++)
        	{
            	String[] card = br.readLine().split(" ");
            		int k = Integer.parseInt(card[1]) - 1;
            		if (card[0].equals("S"))
            			sum[0][k] = 1;
            		if (card[0].equals("H"))
            			sum[1][k] = 1;
            		if (card[0].equals("C"))
            			sum[2][k] = 1;
            		if (card[0].equals("D"))
            			sum[3][k] = 1;
        	}
        	for (int i = 0; i < 4; i++)
        	{
        		for (int j = 0; j < 13; j++)
        		{
        			if (sum[i][j] != 1)
        			{
        				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 Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
        	String input = br.readLine();
        	int[][] sum = new int[4][13];
        	for (int i = 0; i < Integer.parseInt(input); i++)
        	{
            	String[] card = br.readLine().split(" ");
            		int k = Integer.parseInt(card[1]) - 1;
            		if (card[0].equals("S"))
            			sum[0][k] = 1;
            		if (card[0].equals("H"))
            			sum[1][k] = 1;
            		if (card[0].equals("C"))
            			sum[2][k] = 1;
            		if (card[0].equals("D"))
            			sum[3][k] = 1;
        	}
        	for (int i = 0; i < 4; i++)
        	{
        		for (int j = 0; j < 13; j++)
        		{
        			if (sum[i][j] != 1)
        			{
        				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 Exception{
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        
        	String input = br.readLine();
        	int[][] sum = new int[4][13];
        	for (int i = 0; i < Integer.parseInt(input); i++)
        	{
            	String[] card = br.readLine().split(" ");
            		int k = Integer.parseInt(card[1]) - 1;
            		if (card[0].equals("S"))
            			sum[0][k] = 1;
            		if (card[0].equals("H"))
            			sum[1][k] = 1;
            		if (card[0].equals("C"))
            			sum[2][k] = 1;
            		if (card[0].equals("D"))
            			sum[3][k] = 1;
        	}
        	for (int i = 0; i < 4; i++)
        	{
        		for (int j = 0; j < 13; j++)
        		{
        			if (sum[i][j] != 1)
        			{
        				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));
        			}
        		}
        	}
        	
        	
	}

}