
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		boolean[] hantei = new boolean[52];
		Arrays.fill(hantei,false);
		
		String pattern;
		int number;
		
		for(int i=0;i<n;i++)
		{
			pattern = stdIn.next();
			number = stdIn.nextInt();
			
			if(pattern.equals("S"))
			{
				hantei[number-1] = true;
			}
			else if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			}
			
		}
		
		for(int i=0;i<52;i++)
		{
			if(!hantei[i])
			{
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			}
		}
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		boolean[] hantei = new boolean[52];
		Arrays.fill(hantei,false);
		
		String pattern;
		int number;
		
		for(int i=0;i<n;i++)
		{
			pattern = stdIn.next();
			number = stdIn.nextInt();
			
			if(pattern.equals("S"))
			{
				hantei[number-1] = true;
			}
			else if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			}
			
		}
		
		for(int i=0;i<52;i++)
		{
			if(!hantei[i])
			{
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			}
		}
	}
} Main public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		boolean[] hantei = new boolean[52];
		Arrays.fill(hantei,false);
		
		String pattern;
		int number;
		
		for(int i=0;i<n;i++)
		{
			pattern = stdIn.next();
			number = stdIn.nextInt();
			
			if(pattern.equals("S"))
			{
				hantei[number-1] = true;
			}
			else if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			}
			
		}
		
		for(int i=0;i<52;i++)
		{
			if(!hantei[i])
			{
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			}
		}
	} main {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		boolean[] hantei = new boolean[52];
		Arrays.fill(hantei,false);
		
		String pattern;
		int number;
		
		for(int i=0;i<n;i++)
		{
			pattern = stdIn.next();
			number = stdIn.nextInt();
			
			if(pattern.equals("S"))
			{
				hantei[number-1] = true;
			}
			else if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			}
			
		}
		
		for(int i=0;i<52;i++)
		{
			if(!hantei[i])
			{
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			}
		}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn boolean[] hantei = new boolean[52]; hantei new boolean[52] 52 Arrays.fill(hantei,false) Arrays.fill Arrays hantei false String pattern; pattern int number; number for(int i=0;i<n;i++)
		{
			pattern = stdIn.next();
			number = stdIn.nextInt();
			
			if(pattern.equals("S"))
			{
				hantei[number-1] = true;
			}
			else if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			}
			
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			pattern = stdIn.next();
			number = stdIn.nextInt();
			
			if(pattern.equals("S"))
			{
				hantei[number-1] = true;
			}
			else if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			}
			
		} {
			pattern = stdIn.next();
			number = stdIn.nextInt();
			
			if(pattern.equals("S"))
			{
				hantei[number-1] = true;
			}
			else if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			}
			
		} pattern = stdIn.next() pattern stdIn.next() stdIn.next stdIn number = stdIn.nextInt() number stdIn.nextInt() stdIn.nextInt stdIn if(pattern.equals("S"))
			{
				hantei[number-1] = true;
			}
			else if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			} pattern.equals("S") pattern.equals pattern "S" {
				hantei[number-1] = true;
			} hantei[number-1] = true hantei[number-1] hantei number-1 number 1 true if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			} pattern.equals("H") pattern.equals pattern "H" {
				hantei[13+number-1] = true;
			} hantei[13+number-1] = true hantei[13+number-1] hantei 13+number-1 13+number 13 number 1 true if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			} pattern.equals("C") pattern.equals pattern "C" {
				hantei[26+number-1] = true;
			} hantei[26+number-1] = true hantei[26+number-1] hantei 26+number-1 26+number 26 number 1 true {
				hantei[39+number-1] = true;
			} hantei[39+number-1] = true hantei[39+number-1] hantei 39+number-1 39+number 39 number 1 true for(int i=0;i<52;i++)
		{
			if(!hantei[i])
			{
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			}
		} int i=0; int i=0; i 0 i<52 i 52 i++ i++ i {
			if(!hantei[i])
			{
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			}
		} {
			if(!hantei[i])
			{
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			}
		} if(!hantei[i])
			{
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			} !hantei[i] hantei[i] hantei i {
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			} if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				} i<13 i 13 {
					System.out.println("S "+(i+1));
				} System.out.println("S "+(i+1)) System.out.println System.out System System.out "S "+(i+1) "S " (i+1) i 1 if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				} i<26 i 26 {
					System.out.println("H "+(i-12));
				} System.out.println("H "+(i-12)) System.out.println System.out System System.out "H "+(i-12) "H " (i-12) i 12 if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				} i<39 i 39 {
					System.out.println("C "+(i-25));
				} System.out.println("C "+(i-25)) System.out.println System.out System System.out "C "+(i-25) "C " (i-25) i 25 {
					System.out.println("D "+(i-38));
				} System.out.println("D "+(i-38)) System.out.println System.out System System.out "D "+(i-38) "D " (i-38) i 38 String[] args args public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		boolean[] hantei = new boolean[52];
		Arrays.fill(hantei,false);
		
		String pattern;
		int number;
		
		for(int i=0;i<n;i++)
		{
			pattern = stdIn.next();
			number = stdIn.nextInt();
			
			if(pattern.equals("S"))
			{
				hantei[number-1] = true;
			}
			else if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			}
			
		}
		
		for(int i=0;i<52;i++)
		{
			if(!hantei[i])
			{
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			}
		}
	}
} public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		boolean[] hantei = new boolean[52];
		Arrays.fill(hantei,false);
		
		String pattern;
		int number;
		
		for(int i=0;i<n;i++)
		{
			pattern = stdIn.next();
			number = stdIn.nextInt();
			
			if(pattern.equals("S"))
			{
				hantei[number-1] = true;
			}
			else if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			}
			
		}
		
		for(int i=0;i<52;i++)
		{
			if(!hantei[i])
			{
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			}
		}
	}
} Main

import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		boolean[] hantei = new boolean[52];
		Arrays.fill(hantei,false);
		
		String pattern;
		int number;
		
		for(int i=0;i<n;i++)
		{
			pattern = stdIn.next();
			number = stdIn.nextInt();
			
			if(pattern.equals("S"))
			{
				hantei[number-1] = true;
			}
			else if(pattern.equals("H"))
			{
				hantei[13+number-1] = true;
			}
			else if(pattern.equals("C"))
			{
				hantei[26+number-1] = true;
			}
			else
			{
				hantei[39+number-1] = true;
			}
			
		}
		
		for(int i=0;i<52;i++)
		{
			if(!hantei[i])
			{
				if(i<13)
				{
					System.out.println("S "+(i+1));
				}
				else if(i<26)
				{
					System.out.println("H "+(i-12));
				}
				else if(i<39)
				{
					System.out.println("C "+(i-25));
				}
				else
				{
					System.out.println("D "+(i-38));
				}
			}
		}
	}
}