import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(br.readLine());
		String suit[]={"S","H","C","D"};
		boolean card[][];
		card=new boolean[4][14]; //S:0 H:1 C:2 D 3
		for(int i=0;i<n;i++){
			String[] s=br.readLine().split(" ");
			int rank=Integer.parseInt(s[1]);
			int tmp=0;
			switch(s[0]){
			case "S":tmp=0;break;
			case "H":tmp=1;break;
			case "C":tmp=2;break;
			case "D":tmp=3;break;
			}
			card[tmp][rank]=true;
		}
		for(int i=0;i<4;i++){
			for(int j=1;j<=13;j++){
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			}
		}
	}
} import java.util.*; util.* java import java.io.*; io.* java import java.lang.*; lang.* java import java.math.*; math.* java public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(br.readLine());
		String suit[]={"S","H","C","D"};
		boolean card[][];
		card=new boolean[4][14]; //S:0 H:1 C:2 D 3
		for(int i=0;i<n;i++){
			String[] s=br.readLine().split(" ");
			int rank=Integer.parseInt(s[1]);
			int tmp=0;
			switch(s[0]){
			case "S":tmp=0;break;
			case "H":tmp=1;break;
			case "C":tmp=2;break;
			case "D":tmp=3;break;
			}
			card[tmp][rank]=true;
		}
		for(int i=0;i<4;i++){
			for(int j=1;j<=13;j++){
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			}
		}
	}
} Main public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(br.readLine());
		String suit[]={"S","H","C","D"};
		boolean card[][];
		card=new boolean[4][14]; //S:0 H:1 C:2 D 3
		for(int i=0;i<n;i++){
			String[] s=br.readLine().split(" ");
			int rank=Integer.parseInt(s[1]);
			int tmp=0;
			switch(s[0]){
			case "S":tmp=0;break;
			case "H":tmp=1;break;
			case "C":tmp=2;break;
			case "D":tmp=3;break;
			}
			card[tmp][rank]=true;
		}
		for(int i=0;i<4;i++){
			for(int j=1;j<=13;j++){
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			}
		}
	} main {
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(br.readLine());
		String suit[]={"S","H","C","D"};
		boolean card[][];
		card=new boolean[4][14]; //S:0 H:1 C:2 D 3
		for(int i=0;i<n;i++){
			String[] s=br.readLine().split(" ");
			int rank=Integer.parseInt(s[1]);
			int tmp=0;
			switch(s[0]){
			case "S":tmp=0;break;
			case "H":tmp=1;break;
			case "C":tmp=2;break;
			case "D":tmp=3;break;
			}
			card[tmp][rank]=true;
		}
		for(int i=0;i<4;i++){
			for(int j=1;j<=13;j++){
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			}
		}
	} Scanner stdIn=new Scanner(System.in); stdIn new Scanner(System.in) BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n=Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String suit[]={"S","H","C","D"}; suit {"S","H","C","D"} "S" "H" "C" "D" boolean card[][]; card card=new boolean[4][14] card new boolean[4][14] 4 14 for(int i=0;i<n;i++){
			String[] s=br.readLine().split(" ");
			int rank=Integer.parseInt(s[1]);
			int tmp=0;
			switch(s[0]){
			case "S":tmp=0;break;
			case "H":tmp=1;break;
			case "C":tmp=2;break;
			case "D":tmp=3;break;
			}
			card[tmp][rank]=true;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String[] s=br.readLine().split(" ");
			int rank=Integer.parseInt(s[1]);
			int tmp=0;
			switch(s[0]){
			case "S":tmp=0;break;
			case "H":tmp=1;break;
			case "C":tmp=2;break;
			case "D":tmp=3;break;
			}
			card[tmp][rank]=true;
		} {
			String[] s=br.readLine().split(" ");
			int rank=Integer.parseInt(s[1]);
			int tmp=0;
			switch(s[0]){
			case "S":tmp=0;break;
			case "H":tmp=1;break;
			case "C":tmp=2;break;
			case "D":tmp=3;break;
			}
			card[tmp][rank]=true;
		} String[] s=br.readLine().split(" "); s br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int rank=Integer.parseInt(s[1]); rank Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int tmp=0; tmp 0 switch(s[0]){
			case "S":tmp=0;break;
			case "H":tmp=1;break;
			case "C":tmp=2;break;
			case "D":tmp=3;break;
			} s[0] s 0 case "S": "S" case "S": tmp=0 tmp 0 break; case "H": "H" case "H": tmp=1 tmp 1 break; case "C": "C" case "C": tmp=2 tmp 2 break; case "D": "D" case "D": tmp=3 tmp 3 break; card[tmp][rank]=true card[tmp][rank] card[tmp] card tmp rank true for(int i=0;i<4;i++){
			for(int j=1;j<=13;j++){
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			for(int j=1;j<=13;j++){
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			}
		} {
			for(int j=1;j<=13;j++){
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			}
		} for(int j=1;j<=13;j++){
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			} int j=1; int j=1; j 1 j<=13 j 13 j++ j++ j {
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			} {
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			} if(card[i][j]==false)
					System.out.println(suit[i]+" "+j); card[i][j]==false card[i][j] card[i] card i j false System.out.println(suit[i]+" "+j) System.out.println System.out System System.out suit[i]+" "+j suit[i]+" "+j suit[i] suit i " " j String[] args args public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(br.readLine());
		String suit[]={"S","H","C","D"};
		boolean card[][];
		card=new boolean[4][14]; //S:0 H:1 C:2 D 3
		for(int i=0;i<n;i++){
			String[] s=br.readLine().split(" ");
			int rank=Integer.parseInt(s[1]);
			int tmp=0;
			switch(s[0]){
			case "S":tmp=0;break;
			case "H":tmp=1;break;
			case "C":tmp=2;break;
			case "D":tmp=3;break;
			}
			card[tmp][rank]=true;
		}
		for(int i=0;i<4;i++){
			for(int j=1;j<=13;j++){
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			}
		}
	}
} public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(br.readLine());
		String suit[]={"S","H","C","D"};
		boolean card[][];
		card=new boolean[4][14]; //S:0 H:1 C:2 D 3
		for(int i=0;i<n;i++){
			String[] s=br.readLine().split(" ");
			int rank=Integer.parseInt(s[1]);
			int tmp=0;
			switch(s[0]){
			case "S":tmp=0;break;
			case "H":tmp=1;break;
			case "C":tmp=2;break;
			case "D":tmp=3;break;
			}
			card[tmp][rank]=true;
		}
		for(int i=0;i<4;i++){
			for(int j=1;j<=13;j++){
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			}
		}
	}
} Main
import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(br.readLine());
		String suit[]={"S","H","C","D"};
		boolean card[][];
		card=new boolean[4][14]; //S:0 H:1 C:2 D 3
		for(int i=0;i<n;i++){
			String[] s=br.readLine().split(" ");
			int rank=Integer.parseInt(s[1]);
			int tmp=0;
			switch(s[0]){
			case "S":tmp=0;break;
			case "H":tmp=1;break;
			case "C":tmp=2;break;
			case "D":tmp=3;break;
			}
			card[tmp][rank]=true;
		}
		for(int i=0;i<4;i++){
			for(int j=1;j<=13;j++){
				if(card[i][j]==false)
					System.out.println(suit[i]+" "+j);
			}
		}
	}
}