import java.util.Arrays;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {

		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int su;
		int num=0;
		String mark;
		Boolean s[]=new Boolean[52];
		Arrays.fill(s, false);//s[]の配列に初期値falseを設定
		
		for(int i=0;i<n;i++){
			mark=sc.next();
			su=sc.nextInt();
			
			if(mark.equals("S")) num=0;
			else if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39;
			
			s[num+su-1]=true;
		}//for
		
		
		for(int i=0;i<52;i++){
			if(i<13 && s[i]==false){
				System.out.println("S "+(i+1)); 
			}else if(i<26 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue;
		}//for
	}
} import java.util.Arrays; Arrays java.util 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();
		int su;
		int num=0;
		String mark;
		Boolean s[]=new Boolean[52];
		Arrays.fill(s, false);//s[]の配列に初期値falseを設定
		
		for(int i=0;i<n;i++){
			mark=sc.next();
			su=sc.nextInt();
			
			if(mark.equals("S")) num=0;
			else if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39;
			
			s[num+su-1]=true;
		}//for
		
		
		for(int i=0;i<52;i++){
			if(i<13 && s[i]==false){
				System.out.println("S "+(i+1)); 
			}else if(i<26 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue;
		}//for
	}
} Main public static void main(String[] args) {

		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int su;
		int num=0;
		String mark;
		Boolean s[]=new Boolean[52];
		Arrays.fill(s, false);//s[]の配列に初期値falseを設定
		
		for(int i=0;i<n;i++){
			mark=sc.next();
			su=sc.nextInt();
			
			if(mark.equals("S")) num=0;
			else if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39;
			
			s[num+su-1]=true;
		}//for
		
		
		for(int i=0;i<52;i++){
			if(i<13 && s[i]==false){
				System.out.println("S "+(i+1)); 
			}else if(i<26 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue;
		}//for
	} main {

		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int su;
		int num=0;
		String mark;
		Boolean s[]=new Boolean[52];
		Arrays.fill(s, false);//s[]の配列に初期値falseを設定
		
		for(int i=0;i<n;i++){
			mark=sc.next();
			su=sc.nextInt();
			
			if(mark.equals("S")) num=0;
			else if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39;
			
			s[num+su-1]=true;
		}//for
		
		
		for(int i=0;i<52;i++){
			if(i<13 && s[i]==false){
				System.out.println("S "+(i+1)); 
			}else if(i<26 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue;
		}//for
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int su; su int num=0; num 0 String mark; mark Boolean s[]=new Boolean[52]; s new Boolean[52] 52 Arrays.fill(s, false) Arrays.fill Arrays s false for(int i=0;i<n;i++){
			mark=sc.next();
			su=sc.nextInt();
			
			if(mark.equals("S")) num=0;
			else if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39;
			
			s[num+su-1]=true;
		}//for int i=0; int i=0; i 0 i<n i n i++ i++ i {
			mark=sc.next();
			su=sc.nextInt();
			
			if(mark.equals("S")) num=0;
			else if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39;
			
			s[num+su-1]=true;
		}//for {
			mark=sc.next();
			su=sc.nextInt();
			
			if(mark.equals("S")) num=0;
			else if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39;
			
			s[num+su-1]=true;
		} mark=sc.next() mark sc.next() sc.next sc su=sc.nextInt() su sc.nextInt() sc.nextInt sc if(mark.equals("S")) num=0;
			else if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39; mark.equals("S") mark.equals mark "S" num=0 num 0 if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39; mark.equals("H") mark.equals mark "H" num=13 num 13 if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39; mark.equals("C") mark.equals mark "C" num=26 num 26 if(mark.equals("D"))	num=39; mark.equals("D") mark.equals mark "D" num=39 num 39 s[num+su-1]=true s[num+su-1] s num+su-1 num+su num su 1 true for(int i=0;i<52;i++){
			if(i<13 && s[i]==false){
				System.out.println("S "+(i+1)); 
			}else if(i<26 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue;
		}//for int i=0; int i=0; i 0 i<52 i 52 i++ i++ i {
			if(i<13 && s[i]==false){
				System.out.println("S "+(i+1)); 
			}else if(i<26 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue;
		}//for {
			if(i<13 && s[i]==false){
				System.out.println("S "+(i+1)); 
			}else if(i<26 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue;
		} if(i<13 && s[i]==false){
				System.out.println("S "+(i+1)); 
			}else if(i<26 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue; i<13 && s[i]==false i<13 i 13 s[i]==false s[i] s i false {
				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 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue; i<26 && s[i]==false i<26 i 26 s[i]==false s[i] s i false {
				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 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue; i<39 && s[i]==false i<39 i 39 s[i]==false s[i] s i false {
				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 if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue; i<52 && s[i]==false i<52 i 52 s[i]==false s[i] s i false {
				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 continue; String[] args args public class Main {
	public static void main(String[] args) {

		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int su;
		int num=0;
		String mark;
		Boolean s[]=new Boolean[52];
		Arrays.fill(s, false);//s[]の配列に初期値falseを設定
		
		for(int i=0;i<n;i++){
			mark=sc.next();
			su=sc.nextInt();
			
			if(mark.equals("S")) num=0;
			else if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39;
			
			s[num+su-1]=true;
		}//for
		
		
		for(int i=0;i<52;i++){
			if(i<13 && s[i]==false){
				System.out.println("S "+(i+1)); 
			}else if(i<26 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue;
		}//for
	}
} public class Main {
	public static void main(String[] args) {

		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int su;
		int num=0;
		String mark;
		Boolean s[]=new Boolean[52];
		Arrays.fill(s, false);//s[]の配列に初期値falseを設定
		
		for(int i=0;i<n;i++){
			mark=sc.next();
			su=sc.nextInt();
			
			if(mark.equals("S")) num=0;
			else if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39;
			
			s[num+su-1]=true;
		}//for
		
		
		for(int i=0;i<52;i++){
			if(i<13 && s[i]==false){
				System.out.println("S "+(i+1)); 
			}else if(i<26 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue;
		}//for
	}
} Main
import java.util.Arrays;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {

		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int su;
		int num=0;
		String mark;
		Boolean s[]=new Boolean[52];
		Arrays.fill(s, false);//s[]の配列に初期値falseを設定
		
		for(int i=0;i<n;i++){
			mark=sc.next();
			su=sc.nextInt();
			
			if(mark.equals("S")) num=0;
			else if(mark.equals("H"))	num=13;
			else if(mark.equals("C"))	num=26;
			else if(mark.equals("D"))	num=39;
			
			s[num+su-1]=true;
		}//for
		
		
		for(int i=0;i<52;i++){
			if(i<13 && s[i]==false){
				System.out.println("S "+(i+1)); 
			}else if(i<26 && s[i]==false){
				System.out.println("H "+(i-12)); 
			}else if(i<39 && s[i]==false){
				System.out.println("C "+(i-25)); 
			}else if(i<52 && s[i]==false){
				System.out.println("D "+(i-38)); 
			}else continue;
		}//for
	}
}