import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc =new Scanner(System.in);
		int[] A=new int [52];
	   	for(int i=0;i<52;i++){
	   		A[i]=0;
	   	}
	   	int n= sc.nextInt();
    	int[] B=new int[n];
    	for(int i=0;i<n;i++){
    		String a=sc.next();
	    	int b=sc.nextInt();
	   		if(a.equals("S")){
	   			B[i]=b;
	   		}else if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		}
	   		for(int j=1;j<53;j++){
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		}
	   	}
    	for(int i=0;i<52;i++){
    		if(A[i]==0){
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		}
    	}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner sc =new Scanner(System.in);
		int[] A=new int [52];
	   	for(int i=0;i<52;i++){
	   		A[i]=0;
	   	}
	   	int n= sc.nextInt();
    	int[] B=new int[n];
    	for(int i=0;i<n;i++){
    		String a=sc.next();
	    	int b=sc.nextInt();
	   		if(a.equals("S")){
	   			B[i]=b;
	   		}else if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		}
	   		for(int j=1;j<53;j++){
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		}
	   	}
    	for(int i=0;i<52;i++){
    		if(A[i]==0){
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		}
    	}
	}
} Main public static void main(String[] args){
		Scanner sc =new Scanner(System.in);
		int[] A=new int [52];
	   	for(int i=0;i<52;i++){
	   		A[i]=0;
	   	}
	   	int n= sc.nextInt();
    	int[] B=new int[n];
    	for(int i=0;i<n;i++){
    		String a=sc.next();
	    	int b=sc.nextInt();
	   		if(a.equals("S")){
	   			B[i]=b;
	   		}else if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		}
	   		for(int j=1;j<53;j++){
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		}
	   	}
    	for(int i=0;i<52;i++){
    		if(A[i]==0){
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		}
    	}
	} main {
		Scanner sc =new Scanner(System.in);
		int[] A=new int [52];
	   	for(int i=0;i<52;i++){
	   		A[i]=0;
	   	}
	   	int n= sc.nextInt();
    	int[] B=new int[n];
    	for(int i=0;i<n;i++){
    		String a=sc.next();
	    	int b=sc.nextInt();
	   		if(a.equals("S")){
	   			B[i]=b;
	   		}else if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		}
	   		for(int j=1;j<53;j++){
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		}
	   	}
    	for(int i=0;i<52;i++){
    		if(A[i]==0){
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		}
    	}
	} Scanner sc =new Scanner(System.in); sc new Scanner(System.in) int[] A=new int [52]; A new int [52] 52 for(int i=0;i<52;i++){
	   		A[i]=0;
	   	} int i=0; int i=0; i 0 i<52 i 52 i++ i++ i {
	   		A[i]=0;
	   	} {
	   		A[i]=0;
	   	} A[i]=0 A[i] A i 0 int n= sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] B=new int[n]; B new int[n] n for(int i=0;i<n;i++){
    		String a=sc.next();
	    	int b=sc.nextInt();
	   		if(a.equals("S")){
	   			B[i]=b;
	   		}else if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		}
	   		for(int j=1;j<53;j++){
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		}
	   	} int i=0; int i=0; i 0 i<n i n i++ i++ i {
    		String a=sc.next();
	    	int b=sc.nextInt();
	   		if(a.equals("S")){
	   			B[i]=b;
	   		}else if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		}
	   		for(int j=1;j<53;j++){
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		}
	   	} {
    		String a=sc.next();
	    	int b=sc.nextInt();
	   		if(a.equals("S")){
	   			B[i]=b;
	   		}else if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		}
	   		for(int j=1;j<53;j++){
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		}
	   	} String a=sc.next(); a sc.next() sc.next sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc if(a.equals("S")){
	   			B[i]=b;
	   		}else if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		} a.equals("S") a.equals a "S" {
	   			B[i]=b;
	   		} B[i]=b B[i] B i b if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		} a.equals("H") a.equals a "H" {
	   			B[i]=13+b;
    		} B[i]=13+b B[i] B i 13+b 13 b if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		} a.equals("C") a.equals a "C" {
    			B[i]=26+b;
	    	} B[i]=26+b B[i] B i 26+b 26 b if(a.equals("D")){
	    		B[i]=39+b;
	   		} a.equals("D") a.equals a "D" {
	    		B[i]=39+b;
	   		} B[i]=39+b B[i] B i 39+b 39 b for(int j=1;j<53;j++){
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		} int j=1; int j=1; j 1 j<53 j 53 j++ j++ j {
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		} {
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		} if(j==B[i]){
	   				A[j-1]=1;
	   			} j==B[i] j B[i] B i {
	   				A[j-1]=1;
	   			} A[j-1]=1 A[j-1] A j-1 j 1 1 for(int i=0;i<52;i++){
    		if(A[i]==0){
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		}
    	} int i=0; int i=0; i 0 i<52 i 52 i++ i++ i {
    		if(A[i]==0){
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		}
    	} {
    		if(A[i]==0){
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		}
    	} if(A[i]==0){
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		} A[i]==0 A[i] A i 0 {
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		} if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			} i+1<14 i+1 i 1 14 {
    				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+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			} i+1<27 i+1 i 1 27 {
    				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+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			} i+1<40 i+1 i 1 40 {
    				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+1<53){
    				System.out.println("D "+(i-38));
    			} i+1<53 i+1 i 1 53 {
    				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 String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc =new Scanner(System.in);
		int[] A=new int [52];
	   	for(int i=0;i<52;i++){
	   		A[i]=0;
	   	}
	   	int n= sc.nextInt();
    	int[] B=new int[n];
    	for(int i=0;i<n;i++){
    		String a=sc.next();
	    	int b=sc.nextInt();
	   		if(a.equals("S")){
	   			B[i]=b;
	   		}else if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		}
	   		for(int j=1;j<53;j++){
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		}
	   	}
    	for(int i=0;i<52;i++){
    		if(A[i]==0){
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		}
    	}
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc =new Scanner(System.in);
		int[] A=new int [52];
	   	for(int i=0;i<52;i++){
	   		A[i]=0;
	   	}
	   	int n= sc.nextInt();
    	int[] B=new int[n];
    	for(int i=0;i<n;i++){
    		String a=sc.next();
	    	int b=sc.nextInt();
	   		if(a.equals("S")){
	   			B[i]=b;
	   		}else if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		}
	   		for(int j=1;j<53;j++){
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		}
	   	}
    	for(int i=0;i<52;i++){
    		if(A[i]==0){
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		}
    	}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc =new Scanner(System.in);
		int[] A=new int [52];
	   	for(int i=0;i<52;i++){
	   		A[i]=0;
	   	}
	   	int n= sc.nextInt();
    	int[] B=new int[n];
    	for(int i=0;i<n;i++){
    		String a=sc.next();
	    	int b=sc.nextInt();
	   		if(a.equals("S")){
	   			B[i]=b;
	   		}else if(a.equals("H")){
	   			B[i]=13+b;
    		}else if(a.equals("C")){
    			B[i]=26+b;
	    	}else if(a.equals("D")){
	    		B[i]=39+b;
	   		}
	   		for(int j=1;j<53;j++){
	   			if(j==B[i]){
	   				A[j-1]=1;
	   			}
	   		}
	   	}
    	for(int i=0;i<52;i++){
    		if(A[i]==0){
    			if(i+1<14){
    				System.out.println("S "+(i+1));
    			}else if(i+1<27){
    				System.out.println("H "+(i-12));
    			}else if(i+1<40){
    				System.out.println("C "+(i-25));
    			}else if(i+1<53){
    				System.out.println("D "+(i-38));
    			}
    		}
    	}
	}
}