import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] ar = new boolean[4][13];
		for ( int i = 1; i <= n; i++ ) {
			String suit = scan.next();
			int rank = scan.nextInt();
			if ( suit.equals("S") ) {ar[0][rank-1] = true;}
			if ( suit.equals("H") ) {ar[1][rank-1] = true;}
			if ( suit.equals("C") ) {ar[2][rank-1] = true;}
			if ( suit.equals("D") ) {ar[3][rank-1] = true;}
		}
		for ( int i = 0; i < 4; i++ ) {
			for ( int j = 0; j < 13; j++ ) {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			}
		}
	}
} 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();
		boolean[][] ar = new boolean[4][13];
		for ( int i = 1; i <= n; i++ ) {
			String suit = scan.next();
			int rank = scan.nextInt();
			if ( suit.equals("S") ) {ar[0][rank-1] = true;}
			if ( suit.equals("H") ) {ar[1][rank-1] = true;}
			if ( suit.equals("C") ) {ar[2][rank-1] = true;}
			if ( suit.equals("D") ) {ar[3][rank-1] = true;}
		}
		for ( int i = 0; i < 4; i++ ) {
			for ( int j = 0; j < 13; j++ ) {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			}
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] ar = new boolean[4][13];
		for ( int i = 1; i <= n; i++ ) {
			String suit = scan.next();
			int rank = scan.nextInt();
			if ( suit.equals("S") ) {ar[0][rank-1] = true;}
			if ( suit.equals("H") ) {ar[1][rank-1] = true;}
			if ( suit.equals("C") ) {ar[2][rank-1] = true;}
			if ( suit.equals("D") ) {ar[3][rank-1] = true;}
		}
		for ( int i = 0; i < 4; i++ ) {
			for ( int j = 0; j < 13; j++ ) {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] ar = new boolean[4][13];
		for ( int i = 1; i <= n; i++ ) {
			String suit = scan.next();
			int rank = scan.nextInt();
			if ( suit.equals("S") ) {ar[0][rank-1] = true;}
			if ( suit.equals("H") ) {ar[1][rank-1] = true;}
			if ( suit.equals("C") ) {ar[2][rank-1] = true;}
			if ( suit.equals("D") ) {ar[3][rank-1] = true;}
		}
		for ( int i = 0; i < 4; i++ ) {
			for ( int j = 0; j < 13; j++ ) {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan boolean[][] ar = new boolean[4][13]; ar new boolean[4][13] 4 13 for ( int i = 1; i <= n; i++ ) {
			String suit = scan.next();
			int rank = scan.nextInt();
			if ( suit.equals("S") ) {ar[0][rank-1] = true;}
			if ( suit.equals("H") ) {ar[1][rank-1] = true;}
			if ( suit.equals("C") ) {ar[2][rank-1] = true;}
			if ( suit.equals("D") ) {ar[3][rank-1] = true;}
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			String suit = scan.next();
			int rank = scan.nextInt();
			if ( suit.equals("S") ) {ar[0][rank-1] = true;}
			if ( suit.equals("H") ) {ar[1][rank-1] = true;}
			if ( suit.equals("C") ) {ar[2][rank-1] = true;}
			if ( suit.equals("D") ) {ar[3][rank-1] = true;}
		} {
			String suit = scan.next();
			int rank = scan.nextInt();
			if ( suit.equals("S") ) {ar[0][rank-1] = true;}
			if ( suit.equals("H") ) {ar[1][rank-1] = true;}
			if ( suit.equals("C") ) {ar[2][rank-1] = true;}
			if ( suit.equals("D") ) {ar[3][rank-1] = true;}
		} String suit = scan.next(); suit scan.next() scan.next scan int rank = scan.nextInt(); rank scan.nextInt() scan.nextInt scan if ( suit.equals("S") ) {ar[0][rank-1] = true;} suit.equals("S") suit.equals suit "S" {ar[0][rank-1] = true;} ar[0][rank-1] = true ar[0][rank-1] ar[0] ar 0 rank-1 rank 1 true if ( suit.equals("H") ) {ar[1][rank-1] = true;} suit.equals("H") suit.equals suit "H" {ar[1][rank-1] = true;} ar[1][rank-1] = true ar[1][rank-1] ar[1] ar 1 rank-1 rank 1 true if ( suit.equals("C") ) {ar[2][rank-1] = true;} suit.equals("C") suit.equals suit "C" {ar[2][rank-1] = true;} ar[2][rank-1] = true ar[2][rank-1] ar[2] ar 2 rank-1 rank 1 true if ( suit.equals("D") ) {ar[3][rank-1] = true;} suit.equals("D") suit.equals suit "D" {ar[3][rank-1] = true;} ar[3][rank-1] = true ar[3][rank-1] ar[3] ar 3 rank-1 rank 1 true for ( int i = 0; i < 4; i++ ) {
			for ( int j = 0; j < 13; j++ ) {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (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 ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			}
		} {
			for ( int j = 0; j < 13; j++ ) {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			}
		} for ( int j = 0; j < 13; j++ ) {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			} {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			} if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				} ar[i][j] == false ar[i][j] ar[i] ar i j false {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				} if ( i == 0 ) { System.out.println("S " + (j+1));} i == 0 i 0 { System.out.println("S " + (j+1));} System.out.println("S " + (j+1)) System.out.println System.out System System.out "S " + (j+1) "S " (j+1) j 1 if ( i == 1 ) { System.out.println("H " + (j+1));} i == 1 i 1 { System.out.println("H " + (j+1));} System.out.println("H " + (j+1)) System.out.println System.out System System.out "H " + (j+1) "H " (j+1) j 1 if ( i == 2 ) { System.out.println("C " + (j+1));} i == 2 i 2 { System.out.println("C " + (j+1));} System.out.println("C " + (j+1)) System.out.println System.out System System.out "C " + (j+1) "C " (j+1) j 1 if ( i == 3 ) { System.out.println("D " + (j+1));} i == 3 i 3 { System.out.println("D " + (j+1));} System.out.println("D " + (j+1)) System.out.println System.out System System.out "D " + (j+1) "D " (j+1) j 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] ar = new boolean[4][13];
		for ( int i = 1; i <= n; i++ ) {
			String suit = scan.next();
			int rank = scan.nextInt();
			if ( suit.equals("S") ) {ar[0][rank-1] = true;}
			if ( suit.equals("H") ) {ar[1][rank-1] = true;}
			if ( suit.equals("C") ) {ar[2][rank-1] = true;}
			if ( suit.equals("D") ) {ar[3][rank-1] = true;}
		}
		for ( int i = 0; i < 4; i++ ) {
			for ( int j = 0; j < 13; j++ ) {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] ar = new boolean[4][13];
		for ( int i = 1; i <= n; i++ ) {
			String suit = scan.next();
			int rank = scan.nextInt();
			if ( suit.equals("S") ) {ar[0][rank-1] = true;}
			if ( suit.equals("H") ) {ar[1][rank-1] = true;}
			if ( suit.equals("C") ) {ar[2][rank-1] = true;}
			if ( suit.equals("D") ) {ar[3][rank-1] = true;}
		}
		for ( int i = 0; i < 4; i++ ) {
			for ( int j = 0; j < 13; j++ ) {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			}
		}
	}
} Main
import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		boolean[][] ar = new boolean[4][13];
		for ( int i = 1; i <= n; i++ ) {
			String suit = scan.next();
			int rank = scan.nextInt();
			if ( suit.equals("S") ) {ar[0][rank-1] = true;}
			if ( suit.equals("H") ) {ar[1][rank-1] = true;}
			if ( suit.equals("C") ) {ar[2][rank-1] = true;}
			if ( suit.equals("D") ) {ar[3][rank-1] = true;}
		}
		for ( int i = 0; i < 4; i++ ) {
			for ( int j = 0; j < 13; j++ ) {
				if ( ar[i][j] == false ) {
					if ( i == 0 ) { System.out.println("S " + (j+1));}
					if ( i == 1 ) { System.out.println("H " + (j+1));}
					if ( i == 2 ) { System.out.println("C " + (j+1));}
					if ( i == 3 ) { System.out.println("D " + (j+1));}
				}
 			}
		}
	}
}