import java.util.*;

/**
 * @author kawakami
 *
 */
class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
		
		int n=as.nextInt();
		int i=0;
		String a;
		int b;
		
		int card[][];
		card = new int[4][13];
		//Arrays.fill(card, 0);
		String str;
		
		
		while(i<n){
			
			a=as.next();
		    b=as.nextInt();
			
			switch(a){
			
			case"S":
				card[0][b-1]=1;
				break;
			
			case"H":
				card[1][b-1]=1;
				break;
				
			case"C":
				card[2][b-1]=1;
				break;
				
			case"D":
				card[3][b-1]=1;
				break;
				
			}
			i++;
			
		}
			
			
		for(i=0;i<4;i++){
			
			switch(i){
						
						case 0:
							for(int j=0;j<13;j++){
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							}
							break;
						
						case 1:
							for(int j=0;j<13;j++){
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 2:
							for(int j=0;j<13;j++){
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 3:
							for(int j=0;j<13;j++){
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							}
							break;
			}
						
		}
			
	}
		
		

} import java.util.*; util.* java class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
		
		int n=as.nextInt();
		int i=0;
		String a;
		int b;
		
		int card[][];
		card = new int[4][13];
		//Arrays.fill(card, 0);
		String str;
		
		
		while(i<n){
			
			a=as.next();
		    b=as.nextInt();
			
			switch(a){
			
			case"S":
				card[0][b-1]=1;
				break;
			
			case"H":
				card[1][b-1]=1;
				break;
				
			case"C":
				card[2][b-1]=1;
				break;
				
			case"D":
				card[3][b-1]=1;
				break;
				
			}
			i++;
			
		}
			
			
		for(i=0;i<4;i++){
			
			switch(i){
						
						case 0:
							for(int j=0;j<13;j++){
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							}
							break;
						
						case 1:
							for(int j=0;j<13;j++){
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 2:
							for(int j=0;j<13;j++){
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 3:
							for(int j=0;j<13;j++){
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							}
							break;
			}
						
		}
			
	}
		
		

} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
		
		int n=as.nextInt();
		int i=0;
		String a;
		int b;
		
		int card[][];
		card = new int[4][13];
		//Arrays.fill(card, 0);
		String str;
		
		
		while(i<n){
			
			a=as.next();
		    b=as.nextInt();
			
			switch(a){
			
			case"S":
				card[0][b-1]=1;
				break;
			
			case"H":
				card[1][b-1]=1;
				break;
				
			case"C":
				card[2][b-1]=1;
				break;
				
			case"D":
				card[3][b-1]=1;
				break;
				
			}
			i++;
			
		}
			
			
		for(i=0;i<4;i++){
			
			switch(i){
						
						case 0:
							for(int j=0;j<13;j++){
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							}
							break;
						
						case 1:
							for(int j=0;j<13;j++){
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 2:
							for(int j=0;j<13;j++){
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 3:
							for(int j=0;j<13;j++){
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							}
							break;
			}
						
		}
			
	} main {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
		
		int n=as.nextInt();
		int i=0;
		String a;
		int b;
		
		int card[][];
		card = new int[4][13];
		//Arrays.fill(card, 0);
		String str;
		
		
		while(i<n){
			
			a=as.next();
		    b=as.nextInt();
			
			switch(a){
			
			case"S":
				card[0][b-1]=1;
				break;
			
			case"H":
				card[1][b-1]=1;
				break;
				
			case"C":
				card[2][b-1]=1;
				break;
				
			case"D":
				card[3][b-1]=1;
				break;
				
			}
			i++;
			
		}
			
			
		for(i=0;i<4;i++){
			
			switch(i){
						
						case 0:
							for(int j=0;j<13;j++){
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							}
							break;
						
						case 1:
							for(int j=0;j<13;j++){
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 2:
							for(int j=0;j<13;j++){
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 3:
							for(int j=0;j<13;j++){
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							}
							break;
			}
						
		}
			
	} Scanner as = new Scanner(System.in); as new Scanner(System.in) int n=as.nextInt(); n as.nextInt() as.nextInt as int i=0; i 0 String a; a int b; b int card[][]; card card = new int[4][13] card new int[4][13] 4 13 String str; str while(i<n){
			
			a=as.next();
		    b=as.nextInt();
			
			switch(a){
			
			case"S":
				card[0][b-1]=1;
				break;
			
			case"H":
				card[1][b-1]=1;
				break;
				
			case"C":
				card[2][b-1]=1;
				break;
				
			case"D":
				card[3][b-1]=1;
				break;
				
			}
			i++;
			
		} i<n i n {
			
			a=as.next();
		    b=as.nextInt();
			
			switch(a){
			
			case"S":
				card[0][b-1]=1;
				break;
			
			case"H":
				card[1][b-1]=1;
				break;
				
			case"C":
				card[2][b-1]=1;
				break;
				
			case"D":
				card[3][b-1]=1;
				break;
				
			}
			i++;
			
		} a=as.next() a as.next() as.next as b=as.nextInt() b as.nextInt() as.nextInt as switch(a){
			
			case"S":
				card[0][b-1]=1;
				break;
			
			case"H":
				card[1][b-1]=1;
				break;
				
			case"C":
				card[2][b-1]=1;
				break;
				
			case"D":
				card[3][b-1]=1;
				break;
				
			} a case"S": "S" case"S": card[0][b-1]=1 card[0][b-1] card[0] card 0 b-1 b 1 1 break; case"H": "H" case"H": card[1][b-1]=1 card[1][b-1] card[1] card 1 b-1 b 1 1 break; case"C": "C" case"C": card[2][b-1]=1 card[2][b-1] card[2] card 2 b-1 b 1 1 break; case"D": "D" case"D": card[3][b-1]=1 card[3][b-1] card[3] card 3 b-1 b 1 1 break; i++ i for(i=0;i<4;i++){
			
			switch(i){
						
						case 0:
							for(int j=0;j<13;j++){
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							}
							break;
						
						case 1:
							for(int j=0;j<13;j++){
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 2:
							for(int j=0;j<13;j++){
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 3:
							for(int j=0;j<13;j++){
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							}
							break;
			}
						
		} i=0; i=0 i 0 i<4 i 4 i++ i++ i {
			
			switch(i){
						
						case 0:
							for(int j=0;j<13;j++){
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							}
							break;
						
						case 1:
							for(int j=0;j<13;j++){
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 2:
							for(int j=0;j<13;j++){
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 3:
							for(int j=0;j<13;j++){
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							}
							break;
			}
						
		} {
			
			switch(i){
						
						case 0:
							for(int j=0;j<13;j++){
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							}
							break;
						
						case 1:
							for(int j=0;j<13;j++){
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 2:
							for(int j=0;j<13;j++){
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 3:
							for(int j=0;j<13;j++){
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							}
							break;
			}
						
		} switch(i){
						
						case 0:
							for(int j=0;j<13;j++){
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							}
							break;
						
						case 1:
							for(int j=0;j<13;j++){
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 2:
							for(int j=0;j<13;j++){
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 3:
							for(int j=0;j<13;j++){
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							}
							break;
			} i case 0: 0 case 0: for(int j=0;j<13;j++){
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							} int j=0; int j=0; j 0 j<13 j 13 j++ j++ j {
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							} {
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							} if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								} card[0][j]==0 card[0][j] card[0] card 0 j 0 {
									str="S "+(j+1);
									System.out.println(str);
								} str="S "+(j+1) str "S "+(j+1) "S " (j+1) j 1 System.out.println(str) System.out.println System.out System System.out str break; case 1: 1 case 1: for(int j=0;j<13;j++){
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							} int j=0; int j=0; j 0 j<13 j 13 j++ j++ j {
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							} {
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							} if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								} card[1][j]==0 card[1][j] card[1] card 1 j 0 {
									str="H "+(j+1);
									System.out.println(str);
								} str="H "+(j+1) str "H "+(j+1) "H " (j+1) j 1 System.out.println(str) System.out.println System.out System System.out str break; case 2: 2 case 2: for(int j=0;j<13;j++){
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							} int j=0; int j=0; j 0 j<13 j 13 j++ j++ j {
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							} {
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							} if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								} card[2][j]==0 card[2][j] card[2] card 2 j 0 {
									str="C "+(j+1);
									System.out.println(str);
								} str="C "+(j+1) str "C "+(j+1) "C " (j+1) j 1 System.out.println(str) System.out.println System.out System System.out str break; case 3: 3 case 3: for(int j=0;j<13;j++){
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							} int j=0; int j=0; j 0 j<13 j 13 j++ j++ j {
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							} {
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							} if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								} card[3][j]==0 card[3][j] card[3] card 3 j 0 {
									str="D "+(j+1);
									System.out.println(str);
								} str="D "+(j+1) str "D "+(j+1) "D " (j+1) j 1 System.out.println(str) System.out.println System.out System System.out str break; String[] args args
import java.util.*;

/**
 * @author kawakami
 *
 */
class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
		
		int n=as.nextInt();
		int i=0;
		String a;
		int b;
		
		int card[][];
		card = new int[4][13];
		//Arrays.fill(card, 0);
		String str;
		
		
		while(i<n){
			
			a=as.next();
		    b=as.nextInt();
			
			switch(a){
			
			case"S":
				card[0][b-1]=1;
				break;
			
			case"H":
				card[1][b-1]=1;
				break;
				
			case"C":
				card[2][b-1]=1;
				break;
				
			case"D":
				card[3][b-1]=1;
				break;
				
			}
			i++;
			
		}
			
			
		for(i=0;i<4;i++){
			
			switch(i){
						
						case 0:
							for(int j=0;j<13;j++){
								
								if(card[0][j]==0){
									str="S "+(j+1);
									System.out.println(str);
								}
							}
							break;
						
						case 1:
							for(int j=0;j<13;j++){
								
								if(card[1][j]==0){
									str="H "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 2:
							for(int j=0;j<13;j++){
								
								if(card[2][j]==0){
									str="C "+(j+1);
									System.out.println(str);
								}
							}
							break;
							
						case 3:
							for(int j=0;j<13;j++){
								
								if(card[3][j]==0){
									str="D "+(j+1);
									System.out.println(str);
								}
							}
							break;
			}
						
		}
			
	}
		
		

}