import java.util.Scanner;

public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();//n?????°????????????
		int cards[][] = new int[4][13];
		for(int cnt1 = 0; cnt1 < 4; cnt1++){//cards???????????????????????????
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				cards[cnt1][cnt2] = 0;
			}
		}
		for(int cnt_card = 0; cnt_card < n; cnt_card++){//??°????????\?????????
			String mark = scan.next();
			int val = scan.nextInt();
			switch(mark){//cards?????????????????£??????????????????????????§????????????
				case "S":
					cards[0][val - 1] = 1;
					break;
				case "H":
					cards[1][val - 1] = 1;
					break;
				case "C":
					cards[2][val - 1] = 1;
					break;
				case "D":
					cards[3][val - 1] = 1;
			}
		}
		for(int cnt1 = 0; cnt1 < 4; cnt1++){
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 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 n = scan.nextInt();//n?????°????????????
		int cards[][] = new int[4][13];
		for(int cnt1 = 0; cnt1 < 4; cnt1++){//cards???????????????????????????
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				cards[cnt1][cnt2] = 0;
			}
		}
		for(int cnt_card = 0; cnt_card < n; cnt_card++){//??°????????\?????????
			String mark = scan.next();
			int val = scan.nextInt();
			switch(mark){//cards?????????????????£??????????????????????????§????????????
				case "S":
					cards[0][val - 1] = 1;
					break;
				case "H":
					cards[1][val - 1] = 1;
					break;
				case "C":
					cards[2][val - 1] = 1;
					break;
				case "D":
					cards[3][val - 1] = 1;
			}
		}
		for(int cnt1 = 0; cnt1 < 4; cnt1++){
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			}
					
		}
    scan.close();
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();//n?????°????????????
		int cards[][] = new int[4][13];
		for(int cnt1 = 0; cnt1 < 4; cnt1++){//cards???????????????????????????
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				cards[cnt1][cnt2] = 0;
			}
		}
		for(int cnt_card = 0; cnt_card < n; cnt_card++){//??°????????\?????????
			String mark = scan.next();
			int val = scan.nextInt();
			switch(mark){//cards?????????????????£??????????????????????????§????????????
				case "S":
					cards[0][val - 1] = 1;
					break;
				case "H":
					cards[1][val - 1] = 1;
					break;
				case "C":
					cards[2][val - 1] = 1;
					break;
				case "D":
					cards[3][val - 1] = 1;
			}
		}
		for(int cnt1 = 0; cnt1 < 4; cnt1++){
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			}
					
		}
    scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();//n?????°????????????
		int cards[][] = new int[4][13];
		for(int cnt1 = 0; cnt1 < 4; cnt1++){//cards???????????????????????????
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				cards[cnt1][cnt2] = 0;
			}
		}
		for(int cnt_card = 0; cnt_card < n; cnt_card++){//??°????????\?????????
			String mark = scan.next();
			int val = scan.nextInt();
			switch(mark){//cards?????????????????£??????????????????????????§????????????
				case "S":
					cards[0][val - 1] = 1;
					break;
				case "H":
					cards[1][val - 1] = 1;
					break;
				case "C":
					cards[2][val - 1] = 1;
					break;
				case "D":
					cards[3][val - 1] = 1;
			}
		}
		for(int cnt1 = 0; cnt1 < 4; cnt1++){
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			}
					
		}
    scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int cards[][] = new int[4][13]; cards new int[4][13] 4 13 for(int cnt1 = 0; cnt1 < 4; cnt1++){//cards???????????????????????????
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				cards[cnt1][cnt2] = 0;
			}
		} int cnt1 = 0; int cnt1 = 0; cnt1 0 cnt1 < 4 cnt1 4 cnt1++ cnt1++ cnt1 {//cards???????????????????????????
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				cards[cnt1][cnt2] = 0;
			}
		} {//cards???????????????????????????
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				cards[cnt1][cnt2] = 0;
			}
		} for(int cnt2 = 0; cnt2 < 13; cnt2++){
				cards[cnt1][cnt2] = 0;
			} int cnt2 = 0; int cnt2 = 0; cnt2 0 cnt2 < 13 cnt2 13 cnt2++ cnt2++ cnt2 {
				cards[cnt1][cnt2] = 0;
			} {
				cards[cnt1][cnt2] = 0;
			} cards[cnt1][cnt2] = 0 cards[cnt1][cnt2] cards[cnt1] cards cnt1 cnt2 0 for(int cnt_card = 0; cnt_card < n; cnt_card++){//??°????????\?????????
			String mark = scan.next();
			int val = scan.nextInt();
			switch(mark){//cards?????????????????£??????????????????????????§????????????
				case "S":
					cards[0][val - 1] = 1;
					break;
				case "H":
					cards[1][val - 1] = 1;
					break;
				case "C":
					cards[2][val - 1] = 1;
					break;
				case "D":
					cards[3][val - 1] = 1;
			}
		} int cnt_card = 0; int cnt_card = 0; cnt_card 0 cnt_card < n cnt_card n cnt_card++ cnt_card++ cnt_card {//??°????????\?????????
			String mark = scan.next();
			int val = scan.nextInt();
			switch(mark){//cards?????????????????£??????????????????????????§????????????
				case "S":
					cards[0][val - 1] = 1;
					break;
				case "H":
					cards[1][val - 1] = 1;
					break;
				case "C":
					cards[2][val - 1] = 1;
					break;
				case "D":
					cards[3][val - 1] = 1;
			}
		} {//??°????????\?????????
			String mark = scan.next();
			int val = scan.nextInt();
			switch(mark){//cards?????????????????£??????????????????????????§????????????
				case "S":
					cards[0][val - 1] = 1;
					break;
				case "H":
					cards[1][val - 1] = 1;
					break;
				case "C":
					cards[2][val - 1] = 1;
					break;
				case "D":
					cards[3][val - 1] = 1;
			}
		} String mark = scan.next(); mark scan.next() scan.next scan int val = scan.nextInt(); val scan.nextInt() scan.nextInt scan switch(mark){//cards?????????????????£??????????????????????????§????????????
				case "S":
					cards[0][val - 1] = 1;
					break;
				case "H":
					cards[1][val - 1] = 1;
					break;
				case "C":
					cards[2][val - 1] = 1;
					break;
				case "D":
					cards[3][val - 1] = 1;
			} mark case "S": "S" case "S": cards[0][val - 1] = 1 cards[0][val - 1] cards[0] cards 0 val - 1 val 1 1 break; case "H": "H" case "H": cards[1][val - 1] = 1 cards[1][val - 1] cards[1] cards 1 val - 1 val 1 1 break; case "C": "C" case "C": cards[2][val - 1] = 1 cards[2][val - 1] cards[2] cards 2 val - 1 val 1 1 break; case "D": "D" case "D": cards[3][val - 1] = 1 cards[3][val - 1] cards[3] cards 3 val - 1 val 1 1 for(int cnt1 = 0; cnt1 < 4; cnt1++){
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			}
					
		} int cnt1 = 0; int cnt1 = 0; cnt1 0 cnt1 < 4 cnt1 4 cnt1++ cnt1++ cnt1 {
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			}
					
		} {
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			}
					
		} for(int cnt2 = 0; cnt2 < 13; cnt2++){
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			} int cnt2 = 0; int cnt2 = 0; cnt2 0 cnt2 < 13 cnt2 13 cnt2++ cnt2++ cnt2 {
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			} {
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			} if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				} cards[cnt1][cnt2] == 0 cards[cnt1][cnt2] cards[cnt1] cards cnt1 cnt2 0 {//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				} switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					} cnt1 case 0: 0 case 0: System.out.println("S " + (cnt2 + 1)) System.out.println System.out System System.out "S " + (cnt2 + 1) "S " (cnt2 + 1) cnt2 1 break; case 1: 1 case 1: System.out.println("H " + (cnt2 + 1)) System.out.println System.out System System.out "H " + (cnt2 + 1) "H " (cnt2 + 1) cnt2 1 break; case 2: 2 case 2: System.out.println("C " + (cnt2 + 1)) System.out.println System.out System System.out "C " + (cnt2 + 1) "C " (cnt2 + 1) cnt2 1 break; case 3: 3 case 3: System.out.println("D " + (cnt2 + 1)) System.out.println System.out System System.out "D " + (cnt2 + 1) "D " (cnt2 + 1) cnt2 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 n = scan.nextInt();//n?????°????????????
		int cards[][] = new int[4][13];
		for(int cnt1 = 0; cnt1 < 4; cnt1++){//cards???????????????????????????
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				cards[cnt1][cnt2] = 0;
			}
		}
		for(int cnt_card = 0; cnt_card < n; cnt_card++){//??°????????\?????????
			String mark = scan.next();
			int val = scan.nextInt();
			switch(mark){//cards?????????????????£??????????????????????????§????????????
				case "S":
					cards[0][val - 1] = 1;
					break;
				case "H":
					cards[1][val - 1] = 1;
					break;
				case "C":
					cards[2][val - 1] = 1;
					break;
				case "D":
					cards[3][val - 1] = 1;
			}
		}
		for(int cnt1 = 0; cnt1 < 4; cnt1++){
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			}
					
		}
    scan.close();
	}
} public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();//n?????°????????????
		int cards[][] = new int[4][13];
		for(int cnt1 = 0; cnt1 < 4; cnt1++){//cards???????????????????????????
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				cards[cnt1][cnt2] = 0;
			}
		}
		for(int cnt_card = 0; cnt_card < n; cnt_card++){//??°????????\?????????
			String mark = scan.next();
			int val = scan.nextInt();
			switch(mark){//cards?????????????????£??????????????????????????§????????????
				case "S":
					cards[0][val - 1] = 1;
					break;
				case "H":
					cards[1][val - 1] = 1;
					break;
				case "C":
					cards[2][val - 1] = 1;
					break;
				case "D":
					cards[3][val - 1] = 1;
			}
		}
		for(int cnt1 = 0; cnt1 < 4; cnt1++){
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			}
					
		}
    scan.close();
	}
} Main
import java.util.Scanner;

public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();//n?????°????????????
		int cards[][] = new int[4][13];
		for(int cnt1 = 0; cnt1 < 4; cnt1++){//cards???????????????????????????
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				cards[cnt1][cnt2] = 0;
			}
		}
		for(int cnt_card = 0; cnt_card < n; cnt_card++){//??°????????\?????????
			String mark = scan.next();
			int val = scan.nextInt();
			switch(mark){//cards?????????????????£??????????????????????????§????????????
				case "S":
					cards[0][val - 1] = 1;
					break;
				case "H":
					cards[1][val - 1] = 1;
					break;
				case "C":
					cards[2][val - 1] = 1;
					break;
				case "D":
					cards[3][val - 1] = 1;
			}
		}
		for(int cnt1 = 0; cnt1 < 4; cnt1++){
			for(int cnt2 = 0; cnt2 < 13; cnt2++){
				if(cards[cnt1][cnt2] == 0){//cards??????????????????????????????
					switch(cnt1){//cnt1???????????????????¢??????????????????????
					case 0:
						System.out.println("S " + (cnt2 + 1));
						break;
					case 1:
						System.out.println("H " + (cnt2 + 1));
						break;
					case 2:
						System.out.println("C " + (cnt2 + 1));
						break;
					case 3:
						System.out.println("D " + (cnt2 + 1));
					}
				}
			}
					
		}
    scan.close();
	}
}