import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intNum = scan.nextInt();
		boolean[] isS = new boolean[13];
		boolean[] isH = new boolean[13];
		boolean[] isC = new boolean[13];
		boolean[] isD = new boolean[13];
		String strPic = "";
		for(int i = 0; i < intNum; i++){
			strPic = scan.next();
			if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isS[i]){
				System.out.println("S " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isH[i]){
				System.out.println("H " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isC[i]){
				System.out.println("C " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isD[i]){
				System.out.println("D " + (i + 1));
			}
		}
		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intNum = scan.nextInt();
		boolean[] isS = new boolean[13];
		boolean[] isH = new boolean[13];
		boolean[] isC = new boolean[13];
		boolean[] isD = new boolean[13];
		String strPic = "";
		for(int i = 0; i < intNum; i++){
			strPic = scan.next();
			if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isS[i]){
				System.out.println("S " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isH[i]){
				System.out.println("H " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isC[i]){
				System.out.println("C " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isD[i]){
				System.out.println("D " + (i + 1));
			}
		}
		scan.close();
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intNum = scan.nextInt();
		boolean[] isS = new boolean[13];
		boolean[] isH = new boolean[13];
		boolean[] isC = new boolean[13];
		boolean[] isD = new boolean[13];
		String strPic = "";
		for(int i = 0; i < intNum; i++){
			strPic = scan.next();
			if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isS[i]){
				System.out.println("S " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isH[i]){
				System.out.println("H " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isC[i]){
				System.out.println("C " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isD[i]){
				System.out.println("D " + (i + 1));
			}
		}
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		int intNum = scan.nextInt();
		boolean[] isS = new boolean[13];
		boolean[] isH = new boolean[13];
		boolean[] isC = new boolean[13];
		boolean[] isD = new boolean[13];
		String strPic = "";
		for(int i = 0; i < intNum; i++){
			strPic = scan.next();
			if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isS[i]){
				System.out.println("S " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isH[i]){
				System.out.println("H " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isC[i]){
				System.out.println("C " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isD[i]){
				System.out.println("D " + (i + 1));
			}
		}
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int intNum = scan.nextInt(); intNum scan.nextInt() scan.nextInt scan boolean[] isS = new boolean[13]; isS new boolean[13] 13 boolean[] isH = new boolean[13]; isH new boolean[13] 13 boolean[] isC = new boolean[13]; isC new boolean[13] 13 boolean[] isD = new boolean[13]; isD new boolean[13] 13 String strPic = ""; strPic "" for(int i = 0; i < intNum; i++){
			strPic = scan.next();
			if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			}
		} int i = 0; int i = 0; i 0 i < intNum i intNum i++ i++ i {
			strPic = scan.next();
			if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			}
		} {
			strPic = scan.next();
			if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			}
		} strPic = scan.next() strPic scan.next() scan.next scan if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			} "S".equals(strPic) "S".equals "S" strPic {
				isS[scan.nextInt()-1] = true;
			} isS[scan.nextInt()-1] = true isS[scan.nextInt()-1] isS scan.nextInt()-1 scan.nextInt() scan.nextInt scan 1 true if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			} "H".equals(strPic) "H".equals "H" strPic {
				isH[scan.nextInt()-1] = true;
			} isH[scan.nextInt()-1] = true isH[scan.nextInt()-1] isH scan.nextInt()-1 scan.nextInt() scan.nextInt scan 1 true if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			} "C".equals(strPic) "C".equals "C" strPic {
				isC[scan.nextInt()-1] = true;
			} isC[scan.nextInt()-1] = true isC[scan.nextInt()-1] isC scan.nextInt()-1 scan.nextInt() scan.nextInt scan 1 true if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			} "D".equals(strPic) "D".equals "D" strPic {
				isD[scan.nextInt()-1] = true;
			} isD[scan.nextInt()-1] = true isD[scan.nextInt()-1] isD scan.nextInt()-1 scan.nextInt() scan.nextInt scan 1 true for(int i = 0; i < 13; i++){
			if(!isS[i]){
				System.out.println("S " + (i + 1));
			}
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if(!isS[i]){
				System.out.println("S " + (i + 1));
			}
		} {
			if(!isS[i]){
				System.out.println("S " + (i + 1));
			}
		} if(!isS[i]){
				System.out.println("S " + (i + 1));
			} !isS[i] isS[i] isS i {
				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(!isH[i]){
				System.out.println("H " + (i + 1));
			}
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if(!isH[i]){
				System.out.println("H " + (i + 1));
			}
		} {
			if(!isH[i]){
				System.out.println("H " + (i + 1));
			}
		} if(!isH[i]){
				System.out.println("H " + (i + 1));
			} !isH[i] isH[i] isH i {
				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(!isC[i]){
				System.out.println("C " + (i + 1));
			}
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if(!isC[i]){
				System.out.println("C " + (i + 1));
			}
		} {
			if(!isC[i]){
				System.out.println("C " + (i + 1));
			}
		} if(!isC[i]){
				System.out.println("C " + (i + 1));
			} !isC[i] isC[i] isC i {
				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(!isD[i]){
				System.out.println("D " + (i + 1));
			}
		} int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
			if(!isD[i]){
				System.out.println("D " + (i + 1));
			}
		} {
			if(!isD[i]){
				System.out.println("D " + (i + 1));
			}
		} if(!isD[i]){
				System.out.println("D " + (i + 1));
			} !isD[i] isD[i] isD i {
				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 scan.close() scan.close scan String[] args args public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intNum = scan.nextInt();
		boolean[] isS = new boolean[13];
		boolean[] isH = new boolean[13];
		boolean[] isC = new boolean[13];
		boolean[] isD = new boolean[13];
		String strPic = "";
		for(int i = 0; i < intNum; i++){
			strPic = scan.next();
			if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isS[i]){
				System.out.println("S " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isH[i]){
				System.out.println("H " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isC[i]){
				System.out.println("C " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isD[i]){
				System.out.println("D " + (i + 1));
			}
		}
		scan.close();
	}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intNum = scan.nextInt();
		boolean[] isS = new boolean[13];
		boolean[] isH = new boolean[13];
		boolean[] isC = new boolean[13];
		boolean[] isD = new boolean[13];
		String strPic = "";
		for(int i = 0; i < intNum; i++){
			strPic = scan.next();
			if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isS[i]){
				System.out.println("S " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isH[i]){
				System.out.println("H " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isC[i]){
				System.out.println("C " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isD[i]){
				System.out.println("D " + (i + 1));
			}
		}
		scan.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intNum = scan.nextInt();
		boolean[] isS = new boolean[13];
		boolean[] isH = new boolean[13];
		boolean[] isC = new boolean[13];
		boolean[] isD = new boolean[13];
		String strPic = "";
		for(int i = 0; i < intNum; i++){
			strPic = scan.next();
			if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isS[i]){
				System.out.println("S " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isH[i]){
				System.out.println("H " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isC[i]){
				System.out.println("C " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isD[i]){
				System.out.println("D " + (i + 1));
			}
		}
		scan.close();
	}
}