import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		int n,c;
		String b;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		int a[][]=new int[4][13];
		for(int i=0;i<n;i++)
		{
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1;}
		for(int i=0;i<4;i++) {
		for(int j=0;j<13;j++){
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   }         
		} 
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		int n,c;
		String b;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		int a[][]=new int[4][13];
		for(int i=0;i<n;i++)
		{
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1;}
		for(int i=0;i<4;i++) {
		for(int j=0;j<13;j++){
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   }         
		} 
	}
} Main public static void main(String[] args) {
		int n,c;
		String b;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		int a[][]=new int[4][13];
		for(int i=0;i<n;i++)
		{
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1;}
		for(int i=0;i<4;i++) {
		for(int j=0;j<13;j++){
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   }         
		} 
	} main {
		int n,c;
		String b;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		int a[][]=new int[4][13];
		for(int i=0;i<n;i++)
		{
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1;}
		for(int i=0;i<4;i++) {
		for(int j=0;j<13;j++){
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   }         
		} 
	} int n n c; c String b; b Scanner scan=new Scanner(System.in); scan new Scanner(System.in) n=scan.nextInt() n scan.nextInt() scan.nextInt scan int a[][]=new int[4][13]; a new int[4][13] 4 13 for(int i=0;i<n;i++)
		{
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1;} int i=0; int i=0; i 0 i<n i n i++ i++ i {
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1;} {
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1;} b=scan.next() b scan.next() scan.next scan c=scan.nextInt() c scan.nextInt() scan.nextInt scan if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1; b.equals("S") b.equals b "S" a[0][c-1]=1 a[0][c-1] a[0] a 0 c-1 c 1 1 if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1; b.equals("H") b.equals b "H" a[1][c-1]=1 a[1][c-1] a[1] a 1 c-1 c 1 1 if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1; b.equals("C") b.equals b "C" a[2][c-1]=1 a[2][c-1] a[2] a 2 c-1 c 1 1 if(b.equals("D"))a[3][c-1]=1; b.equals("D") b.equals b "D" a[3][c-1]=1 a[3][c-1] a[3] a 3 c-1 c 1 1 for(int i=0;i<4;i++) {
		for(int j=0;j<13;j++){
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   }         
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
		for(int j=0;j<13;j++){
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   }         
		} {
		for(int j=0;j<13;j++){
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   }         
		} for(int j=0;j<13;j++){
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   } int j=0; int j=0; j 0 j<13 j 13 j++ j++ j {
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   } {
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   } if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));} a[i][j]==0 && i==0 a[i][j]==0 a[i][j] a[i] a i j 0 i==0 i 0 {
		System.out.println("S "+(j+1));} System.out.println("S "+(j+1)) System.out.println System.out System System.out "S "+(j+1) "S " (j+1) j 1 if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));} a[i][j]==0 && i==1 a[i][j]==0 a[i][j] a[i] a i j 0 i==1 i 1 {
		System.out.println("H "+(j+1));} System.out.println("H "+(j+1)) System.out.println System.out System System.out "H "+(j+1) "H " (j+1) j 1 if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));} a[i][j]==0 && i==2 a[i][j]==0 a[i][j] a[i] a i j 0 i==2 i 2 {
		System.out.println("C "+(j+1));} System.out.println("C "+(j+1)) System.out.println System.out System System.out "C "+(j+1) "C " (j+1) j 1 if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));} a[i][j]==0 && i==3 a[i][j]==0 a[i][j] a[i] a i j 0 i==3 i 3 {
		System.out.println("D "+(j+1));} System.out.println("D "+(j+1)) System.out.println System.out System System.out "D "+(j+1) "D " (j+1) j 1 String[] args args public class Main {
	public static void main(String[] args) {
		int n,c;
		String b;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		int a[][]=new int[4][13];
		for(int i=0;i<n;i++)
		{
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1;}
		for(int i=0;i<4;i++) {
		for(int j=0;j<13;j++){
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   }         
		} 
	}
} public class Main {
	public static void main(String[] args) {
		int n,c;
		String b;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		int a[][]=new int[4][13];
		for(int i=0;i<n;i++)
		{
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1;}
		for(int i=0;i<4;i++) {
		for(int j=0;j<13;j++){
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   }         
		} 
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		int n,c;
		String b;
		Scanner scan=new Scanner(System.in);
		n=scan.nextInt();
		int a[][]=new int[4][13];
		for(int i=0;i<n;i++)
		{
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=1;
		else if(b.equals("H"))a[1][c-1]=1;
		else if(b.equals("C"))a[2][c-1]=1;
		else if(b.equals("D"))a[3][c-1]=1;}
		for(int i=0;i<4;i++) {
		for(int j=0;j<13;j++){
		if(a[i][j]==0 && i==0){
		System.out.println("S "+(j+1));}
		else if(a[i][j]==0 && i==1){
		System.out.println("H "+(j+1));}
		else if(a[i][j]==0 && i==2){
		System.out.println("C "+(j+1));}
		else if(a[i][j]==0 && i==3){
		System.out.println("D "+(j+1));}
		   }         
		} 
	}
}