import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
class Main{
	public static void main(String[] args)throws NumberFormatException, IOException{

		Scanner scan = new Scanner(System.in);
		//BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> suite = new ArrayList<String>();
//		ArrayList<Integer> number = new ArrayList<Integer>();
		ArrayList<String> hikaku = new ArrayList<String>();
		int n =scan.nextInt();
		for(int ii=0;ii<n;ii++){
			String x = scan.next();
			String y = scan.next();
			String xy =x+" "+y;
			suite.add(xy);
			//System.out.println(xy);
		}
//		for(int na=1;na<suite.size();na++){
//			System.out.println(suite.get(na));
//		}
		//////////////////////////////////////////////?????????????????§?????????
		for(int na=1;na<14;na++){
			hikaku.add("S "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("H "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("C "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("D "+na);
		}
//		for(int na=1;na<hikaku.size();na++){
//			System.out.println(hikaku.get(na));
//		}
			/////////////////////////////////////////////??????
		int atta =0;
		for(int i=0;i<hikaku.size();i++){
			atta = 0;
			for(int ii=0;ii<suite.size();ii++){
				String hk = hikaku.get(i);
				String su = suite.get(ii);
				if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				}
			}
			if(atta == 0){
				System.out.println(hikaku.get(i));
			}
		}
	}
} import java.io.IOException; IOException java.io import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args)throws NumberFormatException, IOException{

		Scanner scan = new Scanner(System.in);
		//BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> suite = new ArrayList<String>();
//		ArrayList<Integer> number = new ArrayList<Integer>();
		ArrayList<String> hikaku = new ArrayList<String>();
		int n =scan.nextInt();
		for(int ii=0;ii<n;ii++){
			String x = scan.next();
			String y = scan.next();
			String xy =x+" "+y;
			suite.add(xy);
			//System.out.println(xy);
		}
//		for(int na=1;na<suite.size();na++){
//			System.out.println(suite.get(na));
//		}
		//////////////////////////////////////////////?????????????????§?????????
		for(int na=1;na<14;na++){
			hikaku.add("S "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("H "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("C "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("D "+na);
		}
//		for(int na=1;na<hikaku.size();na++){
//			System.out.println(hikaku.get(na));
//		}
			/////////////////////////////////////////////??????
		int atta =0;
		for(int i=0;i<hikaku.size();i++){
			atta = 0;
			for(int ii=0;ii<suite.size();ii++){
				String hk = hikaku.get(i);
				String su = suite.get(ii);
				if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				}
			}
			if(atta == 0){
				System.out.println(hikaku.get(i));
			}
		}
	}
} Main public static void main(String[] args)throws NumberFormatException, IOException{

		Scanner scan = new Scanner(System.in);
		//BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> suite = new ArrayList<String>();
//		ArrayList<Integer> number = new ArrayList<Integer>();
		ArrayList<String> hikaku = new ArrayList<String>();
		int n =scan.nextInt();
		for(int ii=0;ii<n;ii++){
			String x = scan.next();
			String y = scan.next();
			String xy =x+" "+y;
			suite.add(xy);
			//System.out.println(xy);
		}
//		for(int na=1;na<suite.size();na++){
//			System.out.println(suite.get(na));
//		}
		//////////////////////////////////////////////?????????????????§?????????
		for(int na=1;na<14;na++){
			hikaku.add("S "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("H "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("C "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("D "+na);
		}
//		for(int na=1;na<hikaku.size();na++){
//			System.out.println(hikaku.get(na));
//		}
			/////////////////////////////////////////////??????
		int atta =0;
		for(int i=0;i<hikaku.size();i++){
			atta = 0;
			for(int ii=0;ii<suite.size();ii++){
				String hk = hikaku.get(i);
				String su = suite.get(ii);
				if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				}
			}
			if(atta == 0){
				System.out.println(hikaku.get(i));
			}
		}
	} main {

		Scanner scan = new Scanner(System.in);
		//BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> suite = new ArrayList<String>();
//		ArrayList<Integer> number = new ArrayList<Integer>();
		ArrayList<String> hikaku = new ArrayList<String>();
		int n =scan.nextInt();
		for(int ii=0;ii<n;ii++){
			String x = scan.next();
			String y = scan.next();
			String xy =x+" "+y;
			suite.add(xy);
			//System.out.println(xy);
		}
//		for(int na=1;na<suite.size();na++){
//			System.out.println(suite.get(na));
//		}
		//////////////////////////////////////////////?????????????????§?????????
		for(int na=1;na<14;na++){
			hikaku.add("S "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("H "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("C "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("D "+na);
		}
//		for(int na=1;na<hikaku.size();na++){
//			System.out.println(hikaku.get(na));
//		}
			/////////////////////////////////////////////??????
		int atta =0;
		for(int i=0;i<hikaku.size();i++){
			atta = 0;
			for(int ii=0;ii<suite.size();ii++){
				String hk = hikaku.get(i);
				String su = suite.get(ii);
				if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				}
			}
			if(atta == 0){
				System.out.println(hikaku.get(i));
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) ArrayList<String> suite = new ArrayList<String>(); suite new ArrayList<String>() ArrayList<String> hikaku = new ArrayList<String>(); hikaku new ArrayList<String>() int n =scan.nextInt(); n scan.nextInt() scan.nextInt scan for(int ii=0;ii<n;ii++){
			String x = scan.next();
			String y = scan.next();
			String xy =x+" "+y;
			suite.add(xy);
			//System.out.println(xy);
		} int ii=0; int ii=0; ii 0 ii<n ii n ii++ ii++ ii {
			String x = scan.next();
			String y = scan.next();
			String xy =x+" "+y;
			suite.add(xy);
			//System.out.println(xy);
		} {
			String x = scan.next();
			String y = scan.next();
			String xy =x+" "+y;
			suite.add(xy);
			//System.out.println(xy);
		} String x = scan.next(); x scan.next() scan.next scan String y = scan.next(); y scan.next() scan.next scan String xy =x+" "+y; xy x+" "+y x+" "+y x " " y suite.add(xy) suite.add suite xy for(int na=1;na<14;na++){
			hikaku.add("S "+na);
		} int na=1; int na=1; na 1 na<14 na 14 na++ na++ na {
			hikaku.add("S "+na);
		} {
			hikaku.add("S "+na);
		} hikaku.add("S "+na) hikaku.add hikaku "S "+na "S " na for(int na=1;na<14;na++){
			hikaku.add("H "+na);
		} int na=1; int na=1; na 1 na<14 na 14 na++ na++ na {
			hikaku.add("H "+na);
		} {
			hikaku.add("H "+na);
		} hikaku.add("H "+na) hikaku.add hikaku "H "+na "H " na for(int na=1;na<14;na++){
			hikaku.add("C "+na);
		} int na=1; int na=1; na 1 na<14 na 14 na++ na++ na {
			hikaku.add("C "+na);
		} {
			hikaku.add("C "+na);
		} hikaku.add("C "+na) hikaku.add hikaku "C "+na "C " na for(int na=1;na<14;na++){
			hikaku.add("D "+na);
		} int na=1; int na=1; na 1 na<14 na 14 na++ na++ na {
			hikaku.add("D "+na);
		} {
			hikaku.add("D "+na);
		} hikaku.add("D "+na) hikaku.add hikaku "D "+na "D " na int atta =0; atta 0 for(int i=0;i<hikaku.size();i++){
			atta = 0;
			for(int ii=0;ii<suite.size();ii++){
				String hk = hikaku.get(i);
				String su = suite.get(ii);
				if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				}
			}
			if(atta == 0){
				System.out.println(hikaku.get(i));
			}
		} int i=0; int i=0; i 0 i<hikaku.size() i hikaku.size() hikaku.size hikaku i++ i++ i {
			atta = 0;
			for(int ii=0;ii<suite.size();ii++){
				String hk = hikaku.get(i);
				String su = suite.get(ii);
				if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				}
			}
			if(atta == 0){
				System.out.println(hikaku.get(i));
			}
		} {
			atta = 0;
			for(int ii=0;ii<suite.size();ii++){
				String hk = hikaku.get(i);
				String su = suite.get(ii);
				if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				}
			}
			if(atta == 0){
				System.out.println(hikaku.get(i));
			}
		} atta = 0 atta 0 for(int ii=0;ii<suite.size();ii++){
				String hk = hikaku.get(i);
				String su = suite.get(ii);
				if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				}
			} int ii=0; int ii=0; ii 0 ii<suite.size() ii suite.size() suite.size suite ii++ ii++ ii {
				String hk = hikaku.get(i);
				String su = suite.get(ii);
				if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				}
			} {
				String hk = hikaku.get(i);
				String su = suite.get(ii);
				if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				}
			} String hk = hikaku.get(i); hk hikaku.get(i) hikaku.get hikaku i String su = suite.get(ii); su suite.get(ii) suite.get suite ii if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				} hk.equals(su) hk.equals hk su {
//					System.out.println("atta");
					atta =1;
					break;
				} atta =1 atta 1 break; {
//					System.out.println(hikaku.get(i));
					atta =0;
				} atta =0 atta 0 if(atta == 0){
				System.out.println(hikaku.get(i));
			} atta == 0 atta 0 {
				System.out.println(hikaku.get(i));
			} System.out.println(hikaku.get(i)) System.out.println System.out System System.out hikaku.get(i) hikaku.get hikaku i String[] args args
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
class Main{
	public static void main(String[] args)throws NumberFormatException, IOException{

		Scanner scan = new Scanner(System.in);
		//BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> suite = new ArrayList<String>();
//		ArrayList<Integer> number = new ArrayList<Integer>();
		ArrayList<String> hikaku = new ArrayList<String>();
		int n =scan.nextInt();
		for(int ii=0;ii<n;ii++){
			String x = scan.next();
			String y = scan.next();
			String xy =x+" "+y;
			suite.add(xy);
			//System.out.println(xy);
		}
//		for(int na=1;na<suite.size();na++){
//			System.out.println(suite.get(na));
//		}
		//////////////////////////////////////////////?????????????????§?????????
		for(int na=1;na<14;na++){
			hikaku.add("S "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("H "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("C "+na);
		}
		for(int na=1;na<14;na++){
			hikaku.add("D "+na);
		}
//		for(int na=1;na<hikaku.size();na++){
//			System.out.println(hikaku.get(na));
//		}
			/////////////////////////////////////////////??????
		int atta =0;
		for(int i=0;i<hikaku.size();i++){
			atta = 0;
			for(int ii=0;ii<suite.size();ii++){
				String hk = hikaku.get(i);
				String su = suite.get(ii);
				if(hk.equals(su)){
//					System.out.println("atta");
					atta =1;
					break;
				}
				else{
//					System.out.println(hikaku.get(i));
					atta =0;
				}
			}
			if(atta == 0){
				System.out.println(hikaku.get(i));
			}
		}
	}
}