import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		int n = sc.nextInt();
		
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		
		int NG = 0;
		int OK = 1;
		
		for(int i = 0; i < 13; i++) {
			S[i] = NG;
			H[i] = NG;
			C[i] = NG;
			D[i] = NG;
			
		}
		
		for(int i = 0; i < n; i++){
			String suit = sc.next();
			int num		= sc.nextInt();
			num -= 1;
			
			if ( suit.equals("S") ) {
				S[num] = OK;
				
			} else if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( S[i] == NG ) {
				System.out.println("S "+(i+1));
			}
			
		}
		for(int i = 0; i < 13; i++){
			if ( H[i] == NG ) {
				System.out.println("H "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( C[i] == NG ) {
				System.out.println("C "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( D[i] == NG ) {
				System.out.println("D "+(i+1));
			}
			
		}
		
		
		
		
		
	}
	
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		int n = sc.nextInt();
		
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		
		int NG = 0;
		int OK = 1;
		
		for(int i = 0; i < 13; i++) {
			S[i] = NG;
			H[i] = NG;
			C[i] = NG;
			D[i] = NG;
			
		}
		
		for(int i = 0; i < n; i++){
			String suit = sc.next();
			int num		= sc.nextInt();
			num -= 1;
			
			if ( suit.equals("S") ) {
				S[num] = OK;
				
			} else if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( S[i] == NG ) {
				System.out.println("S "+(i+1));
			}
			
		}
		for(int i = 0; i < 13; i++){
			if ( H[i] == NG ) {
				System.out.println("H "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( C[i] == NG ) {
				System.out.println("C "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( D[i] == NG ) {
				System.out.println("D "+(i+1));
			}
			
		}
		
		
		
		
		
	}
	
} Main public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		int n = sc.nextInt();
		
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		
		int NG = 0;
		int OK = 1;
		
		for(int i = 0; i < 13; i++) {
			S[i] = NG;
			H[i] = NG;
			C[i] = NG;
			D[i] = NG;
			
		}
		
		for(int i = 0; i < n; i++){
			String suit = sc.next();
			int num		= sc.nextInt();
			num -= 1;
			
			if ( suit.equals("S") ) {
				S[num] = OK;
				
			} else if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( S[i] == NG ) {
				System.out.println("S "+(i+1));
			}
			
		}
		for(int i = 0; i < 13; i++){
			if ( H[i] == NG ) {
				System.out.println("H "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( C[i] == NG ) {
				System.out.println("C "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( D[i] == NG ) {
				System.out.println("D "+(i+1));
			}
			
		}
		
		
		
		
		
	} main {
		Scanner sc = new Scanner( System.in );
		int n = sc.nextInt();
		
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		
		int NG = 0;
		int OK = 1;
		
		for(int i = 0; i < 13; i++) {
			S[i] = NG;
			H[i] = NG;
			C[i] = NG;
			D[i] = NG;
			
		}
		
		for(int i = 0; i < n; i++){
			String suit = sc.next();
			int num		= sc.nextInt();
			num -= 1;
			
			if ( suit.equals("S") ) {
				S[num] = OK;
				
			} else if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( S[i] == NG ) {
				System.out.println("S "+(i+1));
			}
			
		}
		for(int i = 0; i < 13; i++){
			if ( H[i] == NG ) {
				System.out.println("H "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( C[i] == NG ) {
				System.out.println("C "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( D[i] == NG ) {
				System.out.println("D "+(i+1));
			}
			
		}
		
		
		
		
		
	} Scanner sc = new Scanner( System.in ); sc new Scanner( System.in ) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] S = new int[13]; S new int[13] 13 int[] H = new int[13]; H new int[13] 13 int[] C = new int[13]; C new int[13] 13 int[] D = new int[13]; D new int[13] 13 int NG = 0; NG 0 int OK = 1; OK 1 for(int i = 0; i < 13; i++) {
			S[i] = NG;
			H[i] = NG;
			C[i] = NG;
			D[i] = NG;
			
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			S[i] = NG;
			H[i] = NG;
			C[i] = NG;
			D[i] = NG;
			
		} {
			S[i] = NG;
			H[i] = NG;
			C[i] = NG;
			D[i] = NG;
			
		} S[i] = NG S[i] S i NG H[i] = NG H[i] H i NG C[i] = NG C[i] C i NG D[i] = NG D[i] D i NG for(int i = 0; i < n; i++){
			String suit = sc.next();
			int num		= sc.nextInt();
			num -= 1;
			
			if ( suit.equals("S") ) {
				S[num] = OK;
				
			} else if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			}
			
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String suit = sc.next();
			int num		= sc.nextInt();
			num -= 1;
			
			if ( suit.equals("S") ) {
				S[num] = OK;
				
			} else if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			}
			
		} {
			String suit = sc.next();
			int num		= sc.nextInt();
			num -= 1;
			
			if ( suit.equals("S") ) {
				S[num] = OK;
				
			} else if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			}
			
		} String suit = sc.next(); suit sc.next() sc.next sc int num		= sc.nextInt(); num sc.nextInt() sc.nextInt sc num -= 1 num 1 if ( suit.equals("S") ) {
				S[num] = OK;
				
			} else if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			} suit.equals("S") suit.equals suit "S" {
				S[num] = OK;
				
			} S[num] = OK S[num] S num OK if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			} suit.equals("H") suit.equals suit "H" {
				H[num] = OK;
				
			} H[num] = OK H[num] H num OK if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			} suit.equals("C") suit.equals suit "C" {
				C[num] = OK;
				
			} C[num] = OK C[num] C num OK if ( suit.equals("D") ) {
				D[num] = OK;
				
			} suit.equals("D") suit.equals suit "D" {
				D[num] = OK;
				
			} D[num] = OK D[num] D num OK for(int i = 0; i < 13; i++){
			if ( S[i] == NG ) {
				System.out.println("S "+(i+1));
			}
			
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if ( S[i] == NG ) {
				System.out.println("S "+(i+1));
			}
			
		} {
			if ( S[i] == NG ) {
				System.out.println("S "+(i+1));
			}
			
		} if ( S[i] == NG ) {
				System.out.println("S "+(i+1));
			} S[i] == NG S[i] S i NG {
				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 for(int i = 0; i < 13; i++){
			if ( H[i] == NG ) {
				System.out.println("H "+(i+1));
			}
			
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if ( H[i] == NG ) {
				System.out.println("H "+(i+1));
			}
			
		} {
			if ( H[i] == NG ) {
				System.out.println("H "+(i+1));
			}
			
		} if ( H[i] == NG ) {
				System.out.println("H "+(i+1));
			} H[i] == NG H[i] H i NG {
				System.out.println("H "+(i+1));
			} System.out.println("H "+(i+1)) System.out.println System.out System System.out "H "+(i+1) "H " (i+1) i 1 for(int i = 0; i < 13; i++){
			if ( C[i] == NG ) {
				System.out.println("C "+(i+1));
			}
			
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if ( C[i] == NG ) {
				System.out.println("C "+(i+1));
			}
			
		} {
			if ( C[i] == NG ) {
				System.out.println("C "+(i+1));
			}
			
		} if ( C[i] == NG ) {
				System.out.println("C "+(i+1));
			} C[i] == NG C[i] C i NG {
				System.out.println("C "+(i+1));
			} System.out.println("C "+(i+1)) System.out.println System.out System System.out "C "+(i+1) "C " (i+1) i 1 for(int i = 0; i < 13; i++){
			if ( D[i] == NG ) {
				System.out.println("D "+(i+1));
			}
			
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if ( D[i] == NG ) {
				System.out.println("D "+(i+1));
			}
			
		} {
			if ( D[i] == NG ) {
				System.out.println("D "+(i+1));
			}
			
		} if ( D[i] == NG ) {
				System.out.println("D "+(i+1));
			} D[i] == NG D[i] D i NG {
				System.out.println("D "+(i+1));
			} System.out.println("D "+(i+1)) System.out.println System.out System System.out "D "+(i+1) "D " (i+1) i 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		int n = sc.nextInt();
		
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		
		int NG = 0;
		int OK = 1;
		
		for(int i = 0; i < 13; i++) {
			S[i] = NG;
			H[i] = NG;
			C[i] = NG;
			D[i] = NG;
			
		}
		
		for(int i = 0; i < n; i++){
			String suit = sc.next();
			int num		= sc.nextInt();
			num -= 1;
			
			if ( suit.equals("S") ) {
				S[num] = OK;
				
			} else if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( S[i] == NG ) {
				System.out.println("S "+(i+1));
			}
			
		}
		for(int i = 0; i < 13; i++){
			if ( H[i] == NG ) {
				System.out.println("H "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( C[i] == NG ) {
				System.out.println("C "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( D[i] == NG ) {
				System.out.println("D "+(i+1));
			}
			
		}
		
		
		
		
		
	}
	
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		int n = sc.nextInt();
		
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		
		int NG = 0;
		int OK = 1;
		
		for(int i = 0; i < 13; i++) {
			S[i] = NG;
			H[i] = NG;
			C[i] = NG;
			D[i] = NG;
			
		}
		
		for(int i = 0; i < n; i++){
			String suit = sc.next();
			int num		= sc.nextInt();
			num -= 1;
			
			if ( suit.equals("S") ) {
				S[num] = OK;
				
			} else if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( S[i] == NG ) {
				System.out.println("S "+(i+1));
			}
			
		}
		for(int i = 0; i < 13; i++){
			if ( H[i] == NG ) {
				System.out.println("H "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( C[i] == NG ) {
				System.out.println("C "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( D[i] == NG ) {
				System.out.println("D "+(i+1));
			}
			
		}
		
		
		
		
		
	}
	
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner( System.in );
		int n = sc.nextInt();
		
		int[] S = new int[13];
		int[] H = new int[13];
		int[] C = new int[13];
		int[] D = new int[13];
		
		int NG = 0;
		int OK = 1;
		
		for(int i = 0; i < 13; i++) {
			S[i] = NG;
			H[i] = NG;
			C[i] = NG;
			D[i] = NG;
			
		}
		
		for(int i = 0; i < n; i++){
			String suit = sc.next();
			int num		= sc.nextInt();
			num -= 1;
			
			if ( suit.equals("S") ) {
				S[num] = OK;
				
			} else if ( suit.equals("H") ) {
				H[num] = OK;
				
			} else if ( suit.equals("C") ) {
				C[num] = OK;
				
			} else if ( suit.equals("D") ) {
				D[num] = OK;
				
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( S[i] == NG ) {
				System.out.println("S "+(i+1));
			}
			
		}
		for(int i = 0; i < 13; i++){
			if ( H[i] == NG ) {
				System.out.println("H "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( C[i] == NG ) {
				System.out.println("C "+(i+1));
			}
			
		}
		
		for(int i = 0; i < 13; i++){
			if ( D[i] == NG ) {
				System.out.println("D "+(i+1));
			}
			
		}
		
		
		
		
		
	}
	
}