import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Boolean[][] cards = new Boolean[4][14];
		for (int i = 0; i < cards.length; i++) {
			for (int j = 0; j < cards[0].length; j++) {
				cards[i][j]=false;
			}
		}
		String[] suits = {"S","H","C","D"};
		int n = scanner.nextInt();
		for(int i=0;i<n;i++) {
			int tem = 0;
			String rank = scanner.next();
			int num = scanner.nextInt();
			switch (rank) {
			case "S":
				tem = 0;
				break;
			case "H":
				tem = 1;
				break;
			case "C":
				tem = 2;
				break;
			case "D":
				tem = 3;
				break;
			default:
				break;
			}
			cards[tem][num]=true;
		}
		for(int i=0;i<4;i++) {
			for(int j=1;j<=13;j++) {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		scanner.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Boolean[][] cards = new Boolean[4][14];
		for (int i = 0; i < cards.length; i++) {
			for (int j = 0; j < cards[0].length; j++) {
				cards[i][j]=false;
			}
		}
		String[] suits = {"S","H","C","D"};
		int n = scanner.nextInt();
		for(int i=0;i<n;i++) {
			int tem = 0;
			String rank = scanner.next();
			int num = scanner.nextInt();
			switch (rank) {
			case "S":
				tem = 0;
				break;
			case "H":
				tem = 1;
				break;
			case "C":
				tem = 2;
				break;
			case "D":
				tem = 3;
				break;
			default:
				break;
			}
			cards[tem][num]=true;
		}
		for(int i=0;i<4;i++) {
			for(int j=1;j<=13;j++) {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		scanner.close();
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Boolean[][] cards = new Boolean[4][14];
		for (int i = 0; i < cards.length; i++) {
			for (int j = 0; j < cards[0].length; j++) {
				cards[i][j]=false;
			}
		}
		String[] suits = {"S","H","C","D"};
		int n = scanner.nextInt();
		for(int i=0;i<n;i++) {
			int tem = 0;
			String rank = scanner.next();
			int num = scanner.nextInt();
			switch (rank) {
			case "S":
				tem = 0;
				break;
			case "H":
				tem = 1;
				break;
			case "C":
				tem = 2;
				break;
			case "D":
				tem = 3;
				break;
			default:
				break;
			}
			cards[tem][num]=true;
		}
		for(int i=0;i<4;i++) {
			for(int j=1;j<=13;j++) {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
		Boolean[][] cards = new Boolean[4][14];
		for (int i = 0; i < cards.length; i++) {
			for (int j = 0; j < cards[0].length; j++) {
				cards[i][j]=false;
			}
		}
		String[] suits = {"S","H","C","D"};
		int n = scanner.nextInt();
		for(int i=0;i<n;i++) {
			int tem = 0;
			String rank = scanner.next();
			int num = scanner.nextInt();
			switch (rank) {
			case "S":
				tem = 0;
				break;
			case "H":
				tem = 1;
				break;
			case "C":
				tem = 2;
				break;
			case "D":
				tem = 3;
				break;
			default:
				break;
			}
			cards[tem][num]=true;
		}
		for(int i=0;i<4;i++) {
			for(int j=1;j<=13;j++) {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Boolean[][] cards = new Boolean[4][14]; cards new Boolean[4][14] 4 14 for (int i = 0; i < cards.length; i++) {
			for (int j = 0; j < cards[0].length; j++) {
				cards[i][j]=false;
			}
		} int i = 0; int i = 0; i 0 i < cards.length i cards.length cards cards.length i++ i++ i {
			for (int j = 0; j < cards[0].length; j++) {
				cards[i][j]=false;
			}
		} {
			for (int j = 0; j < cards[0].length; j++) {
				cards[i][j]=false;
			}
		} for (int j = 0; j < cards[0].length; j++) {
				cards[i][j]=false;
			} int j = 0; int j = 0; j 0 j < cards[0].length j cards[0].length cards[0] cards 0 cards[0].length j++ j++ j {
				cards[i][j]=false;
			} {
				cards[i][j]=false;
			} cards[i][j]=false cards[i][j] cards[i] cards i j false String[] suits = {"S","H","C","D"}; suits {"S","H","C","D"} "S" "H" "C" "D" int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner for(int i=0;i<n;i++) {
			int tem = 0;
			String rank = scanner.next();
			int num = scanner.nextInt();
			switch (rank) {
			case "S":
				tem = 0;
				break;
			case "H":
				tem = 1;
				break;
			case "C":
				tem = 2;
				break;
			case "D":
				tem = 3;
				break;
			default:
				break;
			}
			cards[tem][num]=true;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			int tem = 0;
			String rank = scanner.next();
			int num = scanner.nextInt();
			switch (rank) {
			case "S":
				tem = 0;
				break;
			case "H":
				tem = 1;
				break;
			case "C":
				tem = 2;
				break;
			case "D":
				tem = 3;
				break;
			default:
				break;
			}
			cards[tem][num]=true;
		} {
			int tem = 0;
			String rank = scanner.next();
			int num = scanner.nextInt();
			switch (rank) {
			case "S":
				tem = 0;
				break;
			case "H":
				tem = 1;
				break;
			case "C":
				tem = 2;
				break;
			case "D":
				tem = 3;
				break;
			default:
				break;
			}
			cards[tem][num]=true;
		} int tem = 0; tem 0 String rank = scanner.next(); rank scanner.next() scanner.next scanner int num = scanner.nextInt(); num scanner.nextInt() scanner.nextInt scanner switch (rank) {
			case "S":
				tem = 0;
				break;
			case "H":
				tem = 1;
				break;
			case "C":
				tem = 2;
				break;
			case "D":
				tem = 3;
				break;
			default:
				break;
			} rank case "S": "S" case "S": tem = 0 tem 0 break; case "H": "H" case "H": tem = 1 tem 1 break; case "C": "C" case "C": tem = 2 tem 2 break; case "D": "D" case "D": tem = 3 tem 3 break; default: default: break; cards[tem][num]=true cards[tem][num] cards[tem] cards tem num true for(int i=0;i<4;i++) {
			for(int j=1;j<=13;j++) {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			for(int j=1;j<=13;j++) {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			}
		} {
			for(int j=1;j<=13;j++) {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			}
		} for(int j=1;j<=13;j++) {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			} int j=1; int j=1; j 1 j<=13 j 13 j++ j++ j {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			} {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			} if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				} cards[i][j]!=true cards[i][j] cards[i] cards i j true {
					System.out.println(suits[i] + " " + j);
				} System.out.println(suits[i] + " " + j) System.out.println System.out System System.out suits[i] + " " + j suits[i] + " " + j suits[i] suits i " " j scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Boolean[][] cards = new Boolean[4][14];
		for (int i = 0; i < cards.length; i++) {
			for (int j = 0; j < cards[0].length; j++) {
				cards[i][j]=false;
			}
		}
		String[] suits = {"S","H","C","D"};
		int n = scanner.nextInt();
		for(int i=0;i<n;i++) {
			int tem = 0;
			String rank = scanner.next();
			int num = scanner.nextInt();
			switch (rank) {
			case "S":
				tem = 0;
				break;
			case "H":
				tem = 1;
				break;
			case "C":
				tem = 2;
				break;
			case "D":
				tem = 3;
				break;
			default:
				break;
			}
			cards[tem][num]=true;
		}
		for(int i=0;i<4;i++) {
			for(int j=1;j<=13;j++) {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		scanner.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Boolean[][] cards = new Boolean[4][14];
		for (int i = 0; i < cards.length; i++) {
			for (int j = 0; j < cards[0].length; j++) {
				cards[i][j]=false;
			}
		}
		String[] suits = {"S","H","C","D"};
		int n = scanner.nextInt();
		for(int i=0;i<n;i++) {
			int tem = 0;
			String rank = scanner.next();
			int num = scanner.nextInt();
			switch (rank) {
			case "S":
				tem = 0;
				break;
			case "H":
				tem = 1;
				break;
			case "C":
				tem = 2;
				break;
			case "D":
				tem = 3;
				break;
			default:
				break;
			}
			cards[tem][num]=true;
		}
		for(int i=0;i<4;i++) {
			for(int j=1;j<=13;j++) {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		scanner.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Boolean[][] cards = new Boolean[4][14];
		for (int i = 0; i < cards.length; i++) {
			for (int j = 0; j < cards[0].length; j++) {
				cards[i][j]=false;
			}
		}
		String[] suits = {"S","H","C","D"};
		int n = scanner.nextInt();
		for(int i=0;i<n;i++) {
			int tem = 0;
			String rank = scanner.next();
			int num = scanner.nextInt();
			switch (rank) {
			case "S":
				tem = 0;
				break;
			case "H":
				tem = 1;
				break;
			case "C":
				tem = 2;
				break;
			case "D":
				tem = 3;
				break;
			default:
				break;
			}
			cards[tem][num]=true;
		}
		for(int i=0;i<4;i++) {
			for(int j=1;j<=13;j++) {
				if (cards[i][j]!=true) {
					System.out.println(suits[i] + " " + j);
				}
			}
		}
		scanner.close();
	}
}
