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

public class Main {
	public static void main(String[] args) {
		int n;
		int[] a =new int[53];
		Arrays.fill(a,0);
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		
		for(int i=1;i<=n;i++)
		{
			int su;
			String mrk;
			mrk=scan.next();
			su=scan.nextInt();
			if(mrk.equals("H"))
				su=su+13;
			if(mrk.equals("C"))
				su=su+26;
			if(mrk.equals("D"))
				su=su+39;
			a[su]=1;
		}
		for(int i=1;i<53;i++)
		{
			if(a[i]==1) 
				continue;
			if(i<=13)
				System.out.println("S "+i);
			if(13<i&&i<=26)
				System.out.println("H "+(i-13));
			if(26<i&&i<=39)
				System.out.println("C "+(i-26));
			if(39<i)
				System.out.println("D "+(i-39));
		}
		
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		int n;
		int[] a =new int[53];
		Arrays.fill(a,0);
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		
		for(int i=1;i<=n;i++)
		{
			int su;
			String mrk;
			mrk=scan.next();
			su=scan.nextInt();
			if(mrk.equals("H"))
				su=su+13;
			if(mrk.equals("C"))
				su=su+26;
			if(mrk.equals("D"))
				su=su+39;
			a[su]=1;
		}
		for(int i=1;i<53;i++)
		{
			if(a[i]==1) 
				continue;
			if(i<=13)
				System.out.println("S "+i);
			if(13<i&&i<=26)
				System.out.println("H "+(i-13));
			if(26<i&&i<=39)
				System.out.println("C "+(i-26));
			if(39<i)
				System.out.println("D "+(i-39));
		}
		
	}
} Main public static void main(String[] args) {
		int n;
		int[] a =new int[53];
		Arrays.fill(a,0);
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		
		for(int i=1;i<=n;i++)
		{
			int su;
			String mrk;
			mrk=scan.next();
			su=scan.nextInt();
			if(mrk.equals("H"))
				su=su+13;
			if(mrk.equals("C"))
				su=su+26;
			if(mrk.equals("D"))
				su=su+39;
			a[su]=1;
		}
		for(int i=1;i<53;i++)
		{
			if(a[i]==1) 
				continue;
			if(i<=13)
				System.out.println("S "+i);
			if(13<i&&i<=26)
				System.out.println("H "+(i-13));
			if(26<i&&i<=39)
				System.out.println("C "+(i-26));
			if(39<i)
				System.out.println("D "+(i-39));
		}
		
	} main {
		int n;
		int[] a =new int[53];
		Arrays.fill(a,0);
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		
		for(int i=1;i<=n;i++)
		{
			int su;
			String mrk;
			mrk=scan.next();
			su=scan.nextInt();
			if(mrk.equals("H"))
				su=su+13;
			if(mrk.equals("C"))
				su=su+26;
			if(mrk.equals("D"))
				su=su+39;
			a[su]=1;
		}
		for(int i=1;i<53;i++)
		{
			if(a[i]==1) 
				continue;
			if(i<=13)
				System.out.println("S "+i);
			if(13<i&&i<=26)
				System.out.println("H "+(i-13));
			if(26<i&&i<=39)
				System.out.println("C "+(i-26));
			if(39<i)
				System.out.println("D "+(i-39));
		}
		
	} int n; n int[] a =new int[53]; a new int[53] 53 Arrays.fill(a,0) Arrays.fill Arrays a 0 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) n=scan.nextInt() n scan.nextInt() scan.nextInt scan for(int i=1;i<=n;i++)
		{
			int su;
			String mrk;
			mrk=scan.next();
			su=scan.nextInt();
			if(mrk.equals("H"))
				su=su+13;
			if(mrk.equals("C"))
				su=su+26;
			if(mrk.equals("D"))
				su=su+39;
			a[su]=1;
		} int i=1; int i=1; i 1 i<=n i n i++ i++ i {
			int su;
			String mrk;
			mrk=scan.next();
			su=scan.nextInt();
			if(mrk.equals("H"))
				su=su+13;
			if(mrk.equals("C"))
				su=su+26;
			if(mrk.equals("D"))
				su=su+39;
			a[su]=1;
		} {
			int su;
			String mrk;
			mrk=scan.next();
			su=scan.nextInt();
			if(mrk.equals("H"))
				su=su+13;
			if(mrk.equals("C"))
				su=su+26;
			if(mrk.equals("D"))
				su=su+39;
			a[su]=1;
		} int su; su String mrk; mrk mrk=scan.next() mrk scan.next() scan.next scan su=scan.nextInt() su scan.nextInt() scan.nextInt scan if(mrk.equals("H"))
				su=su+13; mrk.equals("H") mrk.equals mrk "H" su=su+13 su su+13 su 13 if(mrk.equals("C"))
				su=su+26; mrk.equals("C") mrk.equals mrk "C" su=su+26 su su+26 su 26 if(mrk.equals("D"))
				su=su+39; mrk.equals("D") mrk.equals mrk "D" su=su+39 su su+39 su 39 a[su]=1 a[su] a su 1 for(int i=1;i<53;i++)
		{
			if(a[i]==1) 
				continue;
			if(i<=13)
				System.out.println("S "+i);
			if(13<i&&i<=26)
				System.out.println("H "+(i-13));
			if(26<i&&i<=39)
				System.out.println("C "+(i-26));
			if(39<i)
				System.out.println("D "+(i-39));
		} int i=1; int i=1; i 1 i<53 i 53 i++ i++ i {
			if(a[i]==1) 
				continue;
			if(i<=13)
				System.out.println("S "+i);
			if(13<i&&i<=26)
				System.out.println("H "+(i-13));
			if(26<i&&i<=39)
				System.out.println("C "+(i-26));
			if(39<i)
				System.out.println("D "+(i-39));
		} {
			if(a[i]==1) 
				continue;
			if(i<=13)
				System.out.println("S "+i);
			if(13<i&&i<=26)
				System.out.println("H "+(i-13));
			if(26<i&&i<=39)
				System.out.println("C "+(i-26));
			if(39<i)
				System.out.println("D "+(i-39));
		} if(a[i]==1) 
				continue; a[i]==1 a[i] a i 1 continue; if(i<=13)
				System.out.println("S "+i); i<=13 i 13 System.out.println("S "+i) System.out.println System.out System System.out "S "+i "S " i if(13<i&&i<=26)
				System.out.println("H "+(i-13)); 13<i&&i<=26 13<i 13 i i<=26 i 26 System.out.println("H "+(i-13)) System.out.println System.out System System.out "H "+(i-13) "H " (i-13) i 13 if(26<i&&i<=39)
				System.out.println("C "+(i-26)); 26<i&&i<=39 26<i 26 i i<=39 i 39 System.out.println("C "+(i-26)) System.out.println System.out System System.out "C "+(i-26) "C " (i-26) i 26 if(39<i)
				System.out.println("D "+(i-39)); 39<i 39 i 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) {
		int n;
		int[] a =new int[53];
		Arrays.fill(a,0);
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		
		for(int i=1;i<=n;i++)
		{
			int su;
			String mrk;
			mrk=scan.next();
			su=scan.nextInt();
			if(mrk.equals("H"))
				su=su+13;
			if(mrk.equals("C"))
				su=su+26;
			if(mrk.equals("D"))
				su=su+39;
			a[su]=1;
		}
		for(int i=1;i<53;i++)
		{
			if(a[i]==1) 
				continue;
			if(i<=13)
				System.out.println("S "+i);
			if(13<i&&i<=26)
				System.out.println("H "+(i-13));
			if(26<i&&i<=39)
				System.out.println("C "+(i-26));
			if(39<i)
				System.out.println("D "+(i-39));
		}
		
	}
} public class Main {
	public static void main(String[] args) {
		int n;
		int[] a =new int[53];
		Arrays.fill(a,0);
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		
		for(int i=1;i<=n;i++)
		{
			int su;
			String mrk;
			mrk=scan.next();
			su=scan.nextInt();
			if(mrk.equals("H"))
				su=su+13;
			if(mrk.equals("C"))
				su=su+26;
			if(mrk.equals("D"))
				su=su+39;
			a[su]=1;
		}
		for(int i=1;i<53;i++)
		{
			if(a[i]==1) 
				continue;
			if(i<=13)
				System.out.println("S "+i);
			if(13<i&&i<=26)
				System.out.println("H "+(i-13));
			if(26<i&&i<=39)
				System.out.println("C "+(i-26));
			if(39<i)
				System.out.println("D "+(i-39));
		}
		
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int n;
		int[] a =new int[53];
		Arrays.fill(a,0);
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		
		for(int i=1;i<=n;i++)
		{
			int su;
			String mrk;
			mrk=scan.next();
			su=scan.nextInt();
			if(mrk.equals("H"))
				su=su+13;
			if(mrk.equals("C"))
				su=su+26;
			if(mrk.equals("D"))
				su=su+39;
			a[su]=1;
		}
		for(int i=1;i<53;i++)
		{
			if(a[i]==1) 
				continue;
			if(i<=13)
				System.out.println("S "+i);
			if(13<i&&i<=26)
				System.out.println("H "+(i-13));
			if(26<i&&i<=39)
				System.out.println("C "+(i-26));
			if(39<i)
				System.out.println("D "+(i-39));
		}
		
	}
}