import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);
	public static final int
		Sp = 0, Ha = 1, Cu = 2, Di = 3;

	public static void main(String[] args){
		boolean[][] trump = new boolean[4][13];
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				trump[i][j] = false;
			}
		}
		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			String m = scan.next();
			int num = scan.nextInt();
			char mc = m.charAt(0);
			int a = 0;
			switch(mc){
				case 'S' :
					a = Sp;
					break;
				case 'H' :
					a = Ha;
					break;
				case 'C' :
					a = Cu;
					break;
				case 'D' :
					a = Di;
					break;
			}
			trump[a][num - 1] = true;
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			}
		}
	}
} import java.util.*; util.* java public class Main{
	private static final Scanner scan = new Scanner(System.in);
	public static final int
		Sp = 0, Ha = 1, Cu = 2, Di = 3;

	public static void main(String[] args){
		boolean[][] trump = new boolean[4][13];
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				trump[i][j] = false;
			}
		}
		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			String m = scan.next();
			int num = scan.nextInt();
			char mc = m.charAt(0);
			int a = 0;
			switch(mc){
				case 'S' :
					a = Sp;
					break;
				case 'H' :
					a = Ha;
					break;
				case 'C' :
					a = Cu;
					break;
				case 'D' :
					a = Di;
					break;
			}
			trump[a][num - 1] = true;
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			}
		}
	}
} Main private static final Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static final int
		Sp = 0 Sp 0 Ha = 1 Ha 1 Cu = 2 Cu 2 Di = 3; Di 3 public static void main(String[] args){
		boolean[][] trump = new boolean[4][13];
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				trump[i][j] = false;
			}
		}
		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			String m = scan.next();
			int num = scan.nextInt();
			char mc = m.charAt(0);
			int a = 0;
			switch(mc){
				case 'S' :
					a = Sp;
					break;
				case 'H' :
					a = Ha;
					break;
				case 'C' :
					a = Cu;
					break;
				case 'D' :
					a = Di;
					break;
			}
			trump[a][num - 1] = true;
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			}
		}
	} main {
		boolean[][] trump = new boolean[4][13];
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				trump[i][j] = false;
			}
		}
		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			String m = scan.next();
			int num = scan.nextInt();
			char mc = m.charAt(0);
			int a = 0;
			switch(mc){
				case 'S' :
					a = Sp;
					break;
				case 'H' :
					a = Ha;
					break;
				case 'C' :
					a = Cu;
					break;
				case 'D' :
					a = Di;
					break;
			}
			trump[a][num - 1] = true;
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			}
		}
	} boolean[][] trump = new boolean[4][13]; trump new boolean[4][13] 4 13 for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				trump[i][j] = false;
			}
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			for(int j = 0; j < 13; j++){
				trump[i][j] = false;
			}
		} {
			for(int j = 0; j < 13; j++){
				trump[i][j] = false;
			}
		} for(int j = 0; j < 13; j++){
				trump[i][j] = false;
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				trump[i][j] = false;
			} {
				trump[i][j] = false;
			} trump[i][j] = false trump[i][j] trump[i] trump i j false int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan for(int i = 0; i < n; i++){
			String m = scan.next();
			int num = scan.nextInt();
			char mc = m.charAt(0);
			int a = 0;
			switch(mc){
				case 'S' :
					a = Sp;
					break;
				case 'H' :
					a = Ha;
					break;
				case 'C' :
					a = Cu;
					break;
				case 'D' :
					a = Di;
					break;
			}
			trump[a][num - 1] = true;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String m = scan.next();
			int num = scan.nextInt();
			char mc = m.charAt(0);
			int a = 0;
			switch(mc){
				case 'S' :
					a = Sp;
					break;
				case 'H' :
					a = Ha;
					break;
				case 'C' :
					a = Cu;
					break;
				case 'D' :
					a = Di;
					break;
			}
			trump[a][num - 1] = true;
		} {
			String m = scan.next();
			int num = scan.nextInt();
			char mc = m.charAt(0);
			int a = 0;
			switch(mc){
				case 'S' :
					a = Sp;
					break;
				case 'H' :
					a = Ha;
					break;
				case 'C' :
					a = Cu;
					break;
				case 'D' :
					a = Di;
					break;
			}
			trump[a][num - 1] = true;
		} String m = scan.next(); m scan.next() scan.next scan int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan char mc = m.charAt(0); mc m.charAt(0) m.charAt m 0 int a = 0; a 0 switch(mc){
				case 'S' :
					a = Sp;
					break;
				case 'H' :
					a = Ha;
					break;
				case 'C' :
					a = Cu;
					break;
				case 'D' :
					a = Di;
					break;
			} mc case 'S' : 'S' case 'S' : a = Sp a Sp break; case 'H' : 'H' case 'H' : a = Ha a Ha break; case 'C' : 'C' case 'C' : a = Cu a Cu break; case 'D' : 'D' case 'D' : a = Di a Di break; trump[a][num - 1] = true trump[a][num - 1] trump[a] trump a num - 1 num 1 true for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			}
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			for(int j = 0; j < 13; j++){
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			}
		} {
			for(int j = 0; j < 13; j++){
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			}
		} for(int j = 0; j < 13; j++){
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			} {
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			} if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				} trump[i][j] == false trump[i][j] trump[i] trump i j false {
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				} char mc = 0; mc 0 switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					} i case 0 : 0 case 0 : mc = 'S' mc 'S' break; case 1 : 1 case 1 : mc = 'H' mc 'H' break; case 2 : 2 case 2 : mc = 'C' mc 'C' break; case 3 : 3 case 3 : mc = 'D' mc 'D' break; System.out.printf("%c %d\n", mc, j + 1) System.out.printf System.out System System.out "%c %d\n" mc j + 1 j 1 String[] args args public class Main{
	private static final Scanner scan = new Scanner(System.in);
	public static final int
		Sp = 0, Ha = 1, Cu = 2, Di = 3;

	public static void main(String[] args){
		boolean[][] trump = new boolean[4][13];
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				trump[i][j] = false;
			}
		}
		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			String m = scan.next();
			int num = scan.nextInt();
			char mc = m.charAt(0);
			int a = 0;
			switch(mc){
				case 'S' :
					a = Sp;
					break;
				case 'H' :
					a = Ha;
					break;
				case 'C' :
					a = Cu;
					break;
				case 'D' :
					a = Di;
					break;
			}
			trump[a][num - 1] = true;
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			}
		}
	}
} public class Main{
	private static final Scanner scan = new Scanner(System.in);
	public static final int
		Sp = 0, Ha = 1, Cu = 2, Di = 3;

	public static void main(String[] args){
		boolean[][] trump = new boolean[4][13];
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				trump[i][j] = false;
			}
		}
		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			String m = scan.next();
			int num = scan.nextInt();
			char mc = m.charAt(0);
			int a = 0;
			switch(mc){
				case 'S' :
					a = Sp;
					break;
				case 'H' :
					a = Ha;
					break;
				case 'C' :
					a = Cu;
					break;
				case 'D' :
					a = Di;
					break;
			}
			trump[a][num - 1] = true;
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			}
		}
	}
} Main
import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);
	public static final int
		Sp = 0, Ha = 1, Cu = 2, Di = 3;

	public static void main(String[] args){
		boolean[][] trump = new boolean[4][13];
		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				trump[i][j] = false;
			}
		}
		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			String m = scan.next();
			int num = scan.nextInt();
			char mc = m.charAt(0);
			int a = 0;
			switch(mc){
				case 'S' :
					a = Sp;
					break;
				case 'H' :
					a = Ha;
					break;
				case 'C' :
					a = Cu;
					break;
				case 'D' :
					a = Di;
					break;
			}
			trump[a][num - 1] = true;
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(trump[i][j] == false){
					char mc = 0;
					switch(i){
						case 0 :
							mc = 'S';
							break;
						case 1 :
							mc = 'H';
							break;
						case 2 :
							mc = 'C';
							break;
						case 3 :
							mc = 'D';
							break;
					}
					System.out.printf("%c %d\n", mc, j + 1);
				}
			}
		}
	}
}