import java.util.*;
public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int d;
		char ch;
		int[] s = new int[66];
		for(int i = 0; i < n; i++){
			ch = input.next().charAt(0);
			d = input.nextInt();
			if (ch == 'S')s[d] = 1;
			if (ch == 'H')s[d+13] = 1;
			if (ch == 'C')s[d+26] = 1;
			if (ch == 'D')s[d+39] = 1;
		}
		for(int i = 1; i <= 52; i++)
		{
			if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			}
		}
	}
} import java.util.*; util.* java public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int d;
		char ch;
		int[] s = new int[66];
		for(int i = 0; i < n; i++){
			ch = input.next().charAt(0);
			d = input.nextInt();
			if (ch == 'S')s[d] = 1;
			if (ch == 'H')s[d+13] = 1;
			if (ch == 'C')s[d+26] = 1;
			if (ch == 'D')s[d+39] = 1;
		}
		for(int i = 1; i <= 52; i++)
		{
			if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			}
		}
	}
} Main public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int d;
		char ch;
		int[] s = new int[66];
		for(int i = 0; i < n; i++){
			ch = input.next().charAt(0);
			d = input.nextInt();
			if (ch == 'S')s[d] = 1;
			if (ch == 'H')s[d+13] = 1;
			if (ch == 'C')s[d+26] = 1;
			if (ch == 'D')s[d+39] = 1;
		}
		for(int i = 1; i <= 52; i++)
		{
			if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			}
		}
	} main {
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int d;
		char ch;
		int[] s = new int[66];
		for(int i = 0; i < n; i++){
			ch = input.next().charAt(0);
			d = input.nextInt();
			if (ch == 'S')s[d] = 1;
			if (ch == 'H')s[d+13] = 1;
			if (ch == 'C')s[d+26] = 1;
			if (ch == 'D')s[d+39] = 1;
		}
		for(int i = 1; i <= 52; i++)
		{
			if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			}
		}
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int n = input.nextInt(); n input.nextInt() input.nextInt input int d; d char ch; ch int[] s = new int[66]; s new int[66] 66 for(int i = 0; i < n; i++){
			ch = input.next().charAt(0);
			d = input.nextInt();
			if (ch == 'S')s[d] = 1;
			if (ch == 'H')s[d+13] = 1;
			if (ch == 'C')s[d+26] = 1;
			if (ch == 'D')s[d+39] = 1;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			ch = input.next().charAt(0);
			d = input.nextInt();
			if (ch == 'S')s[d] = 1;
			if (ch == 'H')s[d+13] = 1;
			if (ch == 'C')s[d+26] = 1;
			if (ch == 'D')s[d+39] = 1;
		} {
			ch = input.next().charAt(0);
			d = input.nextInt();
			if (ch == 'S')s[d] = 1;
			if (ch == 'H')s[d+13] = 1;
			if (ch == 'C')s[d+26] = 1;
			if (ch == 'D')s[d+39] = 1;
		} ch = input.next().charAt(0) ch input.next().charAt(0) input.next().charAt input.next() input.next input 0 d = input.nextInt() d input.nextInt() input.nextInt input if (ch == 'S')s[d] = 1; ch == 'S' ch 'S' s[d] = 1 s[d] s d 1 if (ch == 'H')s[d+13] = 1; ch == 'H' ch 'H' s[d+13] = 1 s[d+13] s d+13 d 13 1 if (ch == 'C')s[d+26] = 1; ch == 'C' ch 'C' s[d+26] = 1 s[d+26] s d+26 d 26 1 if (ch == 'D')s[d+39] = 1; ch == 'D' ch 'D' s[d+39] = 1 s[d+39] s d+39 d 39 1 for(int i = 1; i <= 52; i++)
		{
			if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			}
		} int i = 1; int i = 1; i 1 i <= 52 i 52 i++ i++ i {
			if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			}
		} {
			if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			}
		} if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			} s[i] == 0 s[i] s i 0 {
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			} if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39)); i < 14 i 14 System.out.println("S " + i) System.out.println System.out System System.out "S " + i "S " i if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39)); i < 27 i 27 System.out.println("H " + (i-13)) System.out.println System.out System System.out "H " + (i-13) "H " (i-13) i 13 if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39)); i < 40 i 40 System.out.println("C " + (i-26)) System.out.println System.out System System.out "C " + (i-26) "C " (i-26) i 26 System.out.println("D " + (i-39)) System.out.println System.out System System.out "D " + (i-39) "D " (i-39) i 39 String args[] args public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int d;
		char ch;
		int[] s = new int[66];
		for(int i = 0; i < n; i++){
			ch = input.next().charAt(0);
			d = input.nextInt();
			if (ch == 'S')s[d] = 1;
			if (ch == 'H')s[d+13] = 1;
			if (ch == 'C')s[d+26] = 1;
			if (ch == 'D')s[d+39] = 1;
		}
		for(int i = 1; i <= 52; i++)
		{
			if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			}
		}
	}
} public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int d;
		char ch;
		int[] s = new int[66];
		for(int i = 0; i < n; i++){
			ch = input.next().charAt(0);
			d = input.nextInt();
			if (ch == 'S')s[d] = 1;
			if (ch == 'H')s[d+13] = 1;
			if (ch == 'C')s[d+26] = 1;
			if (ch == 'D')s[d+39] = 1;
		}
		for(int i = 1; i <= 52; i++)
		{
			if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			}
		}
	}
} Main
import java.util.*;
public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int d;
		char ch;
		int[] s = new int[66];
		for(int i = 0; i < n; i++){
			ch = input.next().charAt(0);
			d = input.nextInt();
			if (ch == 'S')s[d] = 1;
			if (ch == 'H')s[d+13] = 1;
			if (ch == 'C')s[d+26] = 1;
			if (ch == 'D')s[d+39] = 1;
		}
		for(int i = 1; i <= 52; i++)
		{
			if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i);
				else if (i < 27)System.out.println("H " + (i-13));
				else if (i < 40)System.out.println("C " + (i-26));
				else System.out.println("D " + (i-39));
			}
		}
	}
}