import java.io.IOException;
import java.util.Scanner;


public class Main {

	public static void main(String[] args) throws IOException {
		//File fi=new File("file.txt");

		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		 String type;
		 int x;
		 int[][] tp=new int[4][14];
		for(int i=0;i<t;i++){
			type=sc.next();
			x=sc.nextInt();
			if(type.equals("S")){tp[0][x]=1;}
			else if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;}
			
		}sc.close();
		for(int i=0;i<4;i++){
			for(int l = 1;l<14;l++){
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			}
		}
		
		
		// TODO 自動生成されたメソッド・スタブ

	}

} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws IOException {
		//File fi=new File("file.txt");

		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		 String type;
		 int x;
		 int[][] tp=new int[4][14];
		for(int i=0;i<t;i++){
			type=sc.next();
			x=sc.nextInt();
			if(type.equals("S")){tp[0][x]=1;}
			else if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;}
			
		}sc.close();
		for(int i=0;i<4;i++){
			for(int l = 1;l<14;l++){
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			}
		}
		
		
		// TODO 自動生成されたメソッド・スタブ

	}

} Main public static void main(String[] args) throws IOException {
		//File fi=new File("file.txt");

		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		 String type;
		 int x;
		 int[][] tp=new int[4][14];
		for(int i=0;i<t;i++){
			type=sc.next();
			x=sc.nextInt();
			if(type.equals("S")){tp[0][x]=1;}
			else if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;}
			
		}sc.close();
		for(int i=0;i<4;i++){
			for(int l = 1;l<14;l++){
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			}
		}
		
		
		// TODO 自動生成されたメソッド・スタブ

	} main {
		//File fi=new File("file.txt");

		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		 String type;
		 int x;
		 int[][] tp=new int[4][14];
		for(int i=0;i<t;i++){
			type=sc.next();
			x=sc.nextInt();
			if(type.equals("S")){tp[0][x]=1;}
			else if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;}
			
		}sc.close();
		for(int i=0;i<4;i++){
			for(int l = 1;l<14;l++){
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			}
		}
		
		
		// TODO 自動生成されたメソッド・スタブ

	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int t=sc.nextInt(); t sc.nextInt() sc.nextInt sc String type; type int x; x int[][] tp=new int[4][14]; tp new int[4][14] 4 14 for(int i=0;i<t;i++){
			type=sc.next();
			x=sc.nextInt();
			if(type.equals("S")){tp[0][x]=1;}
			else if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;}
			
		} int i=0; int i=0; i 0 i<t i t i++ i++ i {
			type=sc.next();
			x=sc.nextInt();
			if(type.equals("S")){tp[0][x]=1;}
			else if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;}
			
		} {
			type=sc.next();
			x=sc.nextInt();
			if(type.equals("S")){tp[0][x]=1;}
			else if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;}
			
		} type=sc.next() type sc.next() sc.next sc x=sc.nextInt() x sc.nextInt() sc.nextInt sc if(type.equals("S")){tp[0][x]=1;}
			else if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;} type.equals("S") type.equals type "S" {tp[0][x]=1;} tp[0][x]=1 tp[0][x] tp[0] tp 0 x 1 if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;} type.equals("H") type.equals type "H" {tp[1][x]=1;} tp[1][x]=1 tp[1][x] tp[1] tp 1 x 1 if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;} type.equals("C") type.equals type "C" {tp[2][x]=1;} tp[2][x]=1 tp[2][x] tp[2] tp 2 x 1 if(type.equals("D")){tp[3][x]=1;} type.equals("D") type.equals type "D" {tp[3][x]=1;} tp[3][x]=1 tp[3][x] tp[3] tp 3 x 1 sc.close() sc.close sc for(int i=0;i<4;i++){
			for(int l = 1;l<14;l++){
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			for(int l = 1;l<14;l++){
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			}
		} {
			for(int l = 1;l<14;l++){
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			}
		} for(int l = 1;l<14;l++){
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			} int l = 1; int l = 1; l 1 l<14 l 14 l++ l++ l {
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			} {
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			} if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				} tp[i][l]==0 tp[i][l] tp[i] tp i l 0 {
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				} if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D "); i==0 i 0 System.out.print("S ") System.out.print System.out System System.out "S " if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D "); i==1 i 1 System.out.print("H ") System.out.print System.out System System.out "H " if(i==2)System.out.print("C ");
					else System.out.print("D "); i==2 i 2 System.out.print("C ") System.out.print System.out System System.out "C " System.out.print("D ") System.out.print System.out System System.out "D " System.out.println(l) System.out.println System.out System System.out l String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		//File fi=new File("file.txt");

		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		 String type;
		 int x;
		 int[][] tp=new int[4][14];
		for(int i=0;i<t;i++){
			type=sc.next();
			x=sc.nextInt();
			if(type.equals("S")){tp[0][x]=1;}
			else if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;}
			
		}sc.close();
		for(int i=0;i<4;i++){
			for(int l = 1;l<14;l++){
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			}
		}
		
		
		// TODO 自動生成されたメソッド・スタブ

	}

} public class Main {

	public static void main(String[] args) throws IOException {
		//File fi=new File("file.txt");

		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		 String type;
		 int x;
		 int[][] tp=new int[4][14];
		for(int i=0;i<t;i++){
			type=sc.next();
			x=sc.nextInt();
			if(type.equals("S")){tp[0][x]=1;}
			else if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;}
			
		}sc.close();
		for(int i=0;i<4;i++){
			for(int l = 1;l<14;l++){
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			}
		}
		
		
		// TODO 自動生成されたメソッド・スタブ

	}

} Main
import java.io.IOException;
import java.util.Scanner;


public class Main {

	public static void main(String[] args) throws IOException {
		//File fi=new File("file.txt");

		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		 String type;
		 int x;
		 int[][] tp=new int[4][14];
		for(int i=0;i<t;i++){
			type=sc.next();
			x=sc.nextInt();
			if(type.equals("S")){tp[0][x]=1;}
			else if(type.equals("H")){tp[1][x]=1;}
			else if(type.equals("C")){tp[2][x]=1;}
			else if(type.equals("D")){tp[3][x]=1;}
			
		}sc.close();
		for(int i=0;i<4;i++){
			for(int l = 1;l<14;l++){
				if(tp[i][l]==0){
					if(i==0)System.out.print("S ");
					else if(i==1)System.out.print("H ");
					else if(i==2)System.out.print("C ");
					else System.out.print("D ");
					System.out.println(l);
				}
			}
		}
		
		
		// TODO 自動生成されたメソッド・スタブ

	}

}