import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int n=sc.nextInt();

		char s[]=new char[n];
		int r[]=new int[n];
		for(int i=0;i<n;i++){
			String str=sc.next();
			s[i]=str.charAt(0);
			r[i]=sc.nextInt();
		}

		int sp[]=new int[13];
		int he[]=new int[13];
		int cl[]=new int[13];
		int di[]=new int[13];
		int x;
		for(int i=0;i<n;i++){
			switch(s[i]){
			case 'S':
				x=r[i];
				sp[x-1]++;
				break;
			case 'H':
				x=r[i];
				he[x-1]++;
				break;
			case 'C':
				x=r[i];
				cl[x-1]++;
				break;
			case 'D':
				x=r[i];
				di[x-1]++;
				break;
			}
		}
			for(int i=0;i<13;i++){
				if(sp[i]==0)		System.out.println("S "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(he[i]==0)		System.out.println("H "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(cl[i]==0)		System.out.println("C "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(di[i]==0)		System.out.println("D "+(i+1));
			}
		}
	} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int n=sc.nextInt();

		char s[]=new char[n];
		int r[]=new int[n];
		for(int i=0;i<n;i++){
			String str=sc.next();
			s[i]=str.charAt(0);
			r[i]=sc.nextInt();
		}

		int sp[]=new int[13];
		int he[]=new int[13];
		int cl[]=new int[13];
		int di[]=new int[13];
		int x;
		for(int i=0;i<n;i++){
			switch(s[i]){
			case 'S':
				x=r[i];
				sp[x-1]++;
				break;
			case 'H':
				x=r[i];
				he[x-1]++;
				break;
			case 'C':
				x=r[i];
				cl[x-1]++;
				break;
			case 'D':
				x=r[i];
				di[x-1]++;
				break;
			}
		}
			for(int i=0;i<13;i++){
				if(sp[i]==0)		System.out.println("S "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(he[i]==0)		System.out.println("H "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(cl[i]==0)		System.out.println("C "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(di[i]==0)		System.out.println("D "+(i+1));
			}
		}
	} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int n=sc.nextInt();

		char s[]=new char[n];
		int r[]=new int[n];
		for(int i=0;i<n;i++){
			String str=sc.next();
			s[i]=str.charAt(0);
			r[i]=sc.nextInt();
		}

		int sp[]=new int[13];
		int he[]=new int[13];
		int cl[]=new int[13];
		int di[]=new int[13];
		int x;
		for(int i=0;i<n;i++){
			switch(s[i]){
			case 'S':
				x=r[i];
				sp[x-1]++;
				break;
			case 'H':
				x=r[i];
				he[x-1]++;
				break;
			case 'C':
				x=r[i];
				cl[x-1]++;
				break;
			case 'D':
				x=r[i];
				di[x-1]++;
				break;
			}
		}
			for(int i=0;i<13;i++){
				if(sp[i]==0)		System.out.println("S "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(he[i]==0)		System.out.println("H "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(cl[i]==0)		System.out.println("C "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(di[i]==0)		System.out.println("D "+(i+1));
			}
		} main {
		Scanner sc=new Scanner(System.in);

		int n=sc.nextInt();

		char s[]=new char[n];
		int r[]=new int[n];
		for(int i=0;i<n;i++){
			String str=sc.next();
			s[i]=str.charAt(0);
			r[i]=sc.nextInt();
		}

		int sp[]=new int[13];
		int he[]=new int[13];
		int cl[]=new int[13];
		int di[]=new int[13];
		int x;
		for(int i=0;i<n;i++){
			switch(s[i]){
			case 'S':
				x=r[i];
				sp[x-1]++;
				break;
			case 'H':
				x=r[i];
				he[x-1]++;
				break;
			case 'C':
				x=r[i];
				cl[x-1]++;
				break;
			case 'D':
				x=r[i];
				di[x-1]++;
				break;
			}
		}
			for(int i=0;i<13;i++){
				if(sp[i]==0)		System.out.println("S "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(he[i]==0)		System.out.println("H "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(cl[i]==0)		System.out.println("C "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(di[i]==0)		System.out.println("D "+(i+1));
			}
		} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc char s[]=new char[n]; s new char[n] n int r[]=new int[n]; r new int[n] n for(int i=0;i<n;i++){
			String str=sc.next();
			s[i]=str.charAt(0);
			r[i]=sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String str=sc.next();
			s[i]=str.charAt(0);
			r[i]=sc.nextInt();
		} {
			String str=sc.next();
			s[i]=str.charAt(0);
			r[i]=sc.nextInt();
		} String str=sc.next(); str sc.next() sc.next sc s[i]=str.charAt(0) s[i] s i str.charAt(0) str.charAt str 0 r[i]=sc.nextInt() r[i] r i sc.nextInt() sc.nextInt sc int sp[]=new int[13]; sp new int[13] 13 int he[]=new int[13]; he new int[13] 13 int cl[]=new int[13]; cl new int[13] 13 int di[]=new int[13]; di new int[13] 13 int x; x for(int i=0;i<n;i++){
			switch(s[i]){
			case 'S':
				x=r[i];
				sp[x-1]++;
				break;
			case 'H':
				x=r[i];
				he[x-1]++;
				break;
			case 'C':
				x=r[i];
				cl[x-1]++;
				break;
			case 'D':
				x=r[i];
				di[x-1]++;
				break;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			switch(s[i]){
			case 'S':
				x=r[i];
				sp[x-1]++;
				break;
			case 'H':
				x=r[i];
				he[x-1]++;
				break;
			case 'C':
				x=r[i];
				cl[x-1]++;
				break;
			case 'D':
				x=r[i];
				di[x-1]++;
				break;
			}
		} {
			switch(s[i]){
			case 'S':
				x=r[i];
				sp[x-1]++;
				break;
			case 'H':
				x=r[i];
				he[x-1]++;
				break;
			case 'C':
				x=r[i];
				cl[x-1]++;
				break;
			case 'D':
				x=r[i];
				di[x-1]++;
				break;
			}
		} switch(s[i]){
			case 'S':
				x=r[i];
				sp[x-1]++;
				break;
			case 'H':
				x=r[i];
				he[x-1]++;
				break;
			case 'C':
				x=r[i];
				cl[x-1]++;
				break;
			case 'D':
				x=r[i];
				di[x-1]++;
				break;
			} s[i] s i case 'S': 'S' case 'S': x=r[i] x r[i] r i sp[x-1]++ sp[x-1] sp x-1 x 1 break; case 'H': 'H' case 'H': x=r[i] x r[i] r i he[x-1]++ he[x-1] he x-1 x 1 break; case 'C': 'C' case 'C': x=r[i] x r[i] r i cl[x-1]++ cl[x-1] cl x-1 x 1 break; case 'D': 'D' case 'D': x=r[i] x r[i] r i di[x-1]++ di[x-1] di x-1 x 1 break; for(int i=0;i<13;i++){
				if(sp[i]==0)		System.out.println("S "+(i+1));
			} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
				if(sp[i]==0)		System.out.println("S "+(i+1));
			} {
				if(sp[i]==0)		System.out.println("S "+(i+1));
			} if(sp[i]==0)		System.out.println("S "+(i+1)); sp[i]==0 sp[i] sp i 0 System.out.println("S "+(i+1)) System.out.println System.out System System.out "S "+(i+1) "S " (i+1) i 1 for(int i=0;i<13;i++){
				if(he[i]==0)		System.out.println("H "+(i+1));
			} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
				if(he[i]==0)		System.out.println("H "+(i+1));
			} {
				if(he[i]==0)		System.out.println("H "+(i+1));
			} if(he[i]==0)		System.out.println("H "+(i+1)); he[i]==0 he[i] he i 0 System.out.println("H "+(i+1)) System.out.println System.out System System.out "H "+(i+1) "H " (i+1) i 1 for(int i=0;i<13;i++){
				if(cl[i]==0)		System.out.println("C "+(i+1));
			} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
				if(cl[i]==0)		System.out.println("C "+(i+1));
			} {
				if(cl[i]==0)		System.out.println("C "+(i+1));
			} if(cl[i]==0)		System.out.println("C "+(i+1)); cl[i]==0 cl[i] cl i 0 System.out.println("C "+(i+1)) System.out.println System.out System System.out "C "+(i+1) "C " (i+1) i 1 for(int i=0;i<13;i++){
				if(di[i]==0)		System.out.println("D "+(i+1));
			} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
				if(di[i]==0)		System.out.println("D "+(i+1));
			} {
				if(di[i]==0)		System.out.println("D "+(i+1));
			} if(di[i]==0)		System.out.println("D "+(i+1)); di[i]==0 di[i] di i 0 System.out.println("D "+(i+1)) System.out.println System.out System System.out "D "+(i+1) "D " (i+1) i 1 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int n=sc.nextInt();

		char s[]=new char[n];
		int r[]=new int[n];
		for(int i=0;i<n;i++){
			String str=sc.next();
			s[i]=str.charAt(0);
			r[i]=sc.nextInt();
		}

		int sp[]=new int[13];
		int he[]=new int[13];
		int cl[]=new int[13];
		int di[]=new int[13];
		int x;
		for(int i=0;i<n;i++){
			switch(s[i]){
			case 'S':
				x=r[i];
				sp[x-1]++;
				break;
			case 'H':
				x=r[i];
				he[x-1]++;
				break;
			case 'C':
				x=r[i];
				cl[x-1]++;
				break;
			case 'D':
				x=r[i];
				di[x-1]++;
				break;
			}
		}
			for(int i=0;i<13;i++){
				if(sp[i]==0)		System.out.println("S "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(he[i]==0)		System.out.println("H "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(cl[i]==0)		System.out.println("C "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(di[i]==0)		System.out.println("D "+(i+1));
			}
		}
	} public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int n=sc.nextInt();

		char s[]=new char[n];
		int r[]=new int[n];
		for(int i=0;i<n;i++){
			String str=sc.next();
			s[i]=str.charAt(0);
			r[i]=sc.nextInt();
		}

		int sp[]=new int[13];
		int he[]=new int[13];
		int cl[]=new int[13];
		int di[]=new int[13];
		int x;
		for(int i=0;i<n;i++){
			switch(s[i]){
			case 'S':
				x=r[i];
				sp[x-1]++;
				break;
			case 'H':
				x=r[i];
				he[x-1]++;
				break;
			case 'C':
				x=r[i];
				cl[x-1]++;
				break;
			case 'D':
				x=r[i];
				di[x-1]++;
				break;
			}
		}
			for(int i=0;i<13;i++){
				if(sp[i]==0)		System.out.println("S "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(he[i]==0)		System.out.println("H "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(cl[i]==0)		System.out.println("C "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(di[i]==0)		System.out.println("D "+(i+1));
			}
		}
	} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);

		int n=sc.nextInt();

		char s[]=new char[n];
		int r[]=new int[n];
		for(int i=0;i<n;i++){
			String str=sc.next();
			s[i]=str.charAt(0);
			r[i]=sc.nextInt();
		}

		int sp[]=new int[13];
		int he[]=new int[13];
		int cl[]=new int[13];
		int di[]=new int[13];
		int x;
		for(int i=0;i<n;i++){
			switch(s[i]){
			case 'S':
				x=r[i];
				sp[x-1]++;
				break;
			case 'H':
				x=r[i];
				he[x-1]++;
				break;
			case 'C':
				x=r[i];
				cl[x-1]++;
				break;
			case 'D':
				x=r[i];
				di[x-1]++;
				break;
			}
		}
			for(int i=0;i<13;i++){
				if(sp[i]==0)		System.out.println("S "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(he[i]==0)		System.out.println("H "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(cl[i]==0)		System.out.println("C "+(i+1));
			}
			for(int i=0;i<13;i++){
				if(di[i]==0)		System.out.println("D "+(i+1));
			}
		}
	}