import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String[] mar;
		int[] num;
		num = new int[54];
		int n = scan.nextInt();
		int i,q;
		for(i = 1; i <= n; ++i){
			String m = scan.next();
			int x = scan.nextInt();
			if(m.equals("S")){
				num[x] = x;				
			}
			else if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			}	
		}
		int s;
		s = 0;
		for(i = 1; i <= 52; ++i){
			if(num[i] == 0){
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			}
		}
	}
}

		
				 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String[] mar;
		int[] num;
		num = new int[54];
		int n = scan.nextInt();
		int i,q;
		for(i = 1; i <= n; ++i){
			String m = scan.next();
			int x = scan.nextInt();
			if(m.equals("S")){
				num[x] = x;				
			}
			else if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			}	
		}
		int s;
		s = 0;
		for(i = 1; i <= 52; ++i){
			if(num[i] == 0){
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			}
		}
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String[] mar;
		int[] num;
		num = new int[54];
		int n = scan.nextInt();
		int i,q;
		for(i = 1; i <= n; ++i){
			String m = scan.next();
			int x = scan.nextInt();
			if(m.equals("S")){
				num[x] = x;				
			}
			else if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			}	
		}
		int s;
		s = 0;
		for(i = 1; i <= 52; ++i){
			if(num[i] == 0){
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		String[] mar;
		int[] num;
		num = new int[54];
		int n = scan.nextInt();
		int i,q;
		for(i = 1; i <= n; ++i){
			String m = scan.next();
			int x = scan.nextInt();
			if(m.equals("S")){
				num[x] = x;				
			}
			else if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			}	
		}
		int s;
		s = 0;
		for(i = 1; i <= 52; ++i){
			if(num[i] == 0){
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String[] mar; mar int[] num; num num = new int[54] num new int[54] 54 int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int i i q; q for(i = 1; i <= n; ++i){
			String m = scan.next();
			int x = scan.nextInt();
			if(m.equals("S")){
				num[x] = x;				
			}
			else if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			}	
		} i = 1; i = 1 i 1 i <= n i n ++i ++i i {
			String m = scan.next();
			int x = scan.nextInt();
			if(m.equals("S")){
				num[x] = x;				
			}
			else if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			}	
		} {
			String m = scan.next();
			int x = scan.nextInt();
			if(m.equals("S")){
				num[x] = x;				
			}
			else if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			}	
		} String m = scan.next(); m scan.next() scan.next scan int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan if(m.equals("S")){
				num[x] = x;				
			}
			else if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			} m.equals("S") m.equals m "S" {
				num[x] = x;				
			} num[x] = x num[x] num x x if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			} m.equals("H") m.equals m "H" {
				q = x + 13;
				num[q] = q;
			} q = x + 13 q x + 13 x 13 num[q] = q num[q] num q q if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			} m.equals("C") m.equals m "C" {
				q = x + 26;
				num[q] = q;
			} q = x + 26 q x + 26 x 26 num[q] = q num[q] num q q if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			} m.equals("D") m.equals m "D" {
				q = x + 39;
				num[q] = q;
			} q = x + 39 q x + 39 x 39 num[q] = q num[q] num q q int s; s s = 0 s 0 for(i = 1; i <= 52; ++i){
			if(num[i] == 0){
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			}
		} i = 1; i = 1 i 1 i <= 52 i 52 ++i ++i i {
			if(num[i] == 0){
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			}
		} {
			if(num[i] == 0){
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			}
		} if(num[i] == 0){
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			} num[i] == 0 num[i] num i 0 {
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			} if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				} i <= 13 i 13 {
					s = i;
					System.out.println("S "+s);
				} s = i s i System.out.println("S "+s) System.out.println System.out System System.out "S "+s "S " s if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				} i > 13 && i <= 26 i > 13 i 13 i <= 26 i 26 {
					s = i - 13;
					System.out.println("H "+s);
				} s = i - 13 s i - 13 i 13 System.out.println("H "+s) System.out.println System.out System System.out "H "+s "H " s if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				} i > 26 && i <= 39 i > 26 i 26 i <= 39 i 39 {
					s = i - 26;
					System.out.println("C "+s);
				} s = i - 26 s i - 26 i 26 System.out.println("C "+s) System.out.println System.out System System.out "C "+s "C " s if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				} i > 39 i 39 {
					s = i - 39;
					System.out.println("D "+s);
				} s = i - 39 s i - 39 i 39 System.out.println("D "+s) System.out.println System.out System System.out "D "+s "D " s String[] args args public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String[] mar;
		int[] num;
		num = new int[54];
		int n = scan.nextInt();
		int i,q;
		for(i = 1; i <= n; ++i){
			String m = scan.next();
			int x = scan.nextInt();
			if(m.equals("S")){
				num[x] = x;				
			}
			else if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			}	
		}
		int s;
		s = 0;
		for(i = 1; i <= 52; ++i){
			if(num[i] == 0){
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			}
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String[] mar;
		int[] num;
		num = new int[54];
		int n = scan.nextInt();
		int i,q;
		for(i = 1; i <= n; ++i){
			String m = scan.next();
			int x = scan.nextInt();
			if(m.equals("S")){
				num[x] = x;				
			}
			else if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			}	
		}
		int s;
		s = 0;
		for(i = 1; i <= 52; ++i){
			if(num[i] == 0){
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			}
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String[] mar;
		int[] num;
		num = new int[54];
		int n = scan.nextInt();
		int i,q;
		for(i = 1; i <= n; ++i){
			String m = scan.next();
			int x = scan.nextInt();
			if(m.equals("S")){
				num[x] = x;				
			}
			else if(m.equals("H")){
				q = x + 13;
				num[q] = q;
			}
			else if(m.equals("C")){
				q = x + 26;
				num[q] = q;
			}
			else if(m.equals("D")){
				q = x + 39;
				num[q] = q;
			}	
		}
		int s;
		s = 0;
		for(i = 1; i <= 52; ++i){
			if(num[i] == 0){
				if(i <= 13){
					s = i;
					System.out.println("S "+s);
				}
				else if(i > 13 && i <= 26){
					s = i - 13;
					System.out.println("H "+s);
				}
				else if(i > 26 && i <= 39){
					s = i - 26;
					System.out.println("C "+s);
				}
				else if(i > 39){
					s = i - 39;
					System.out.println("D "+s);
				}
			}
		}
	}
}

		
				