import java.util.Scanner;
import java.util.ArrayList;
public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		ArrayList<String> list = new ArrayList<>();
		int n = sc.nextInt();
		for(int i=0;i<=n;i++){
			list.add(sc.nextLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
				System.out.println("S "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
				System.out.println("H "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
				System.out.println("C "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
				System.out.println("D "+i);
		}
	}
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		ArrayList<String> list = new ArrayList<>();
		int n = sc.nextInt();
		for(int i=0;i<=n;i++){
			list.add(sc.nextLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
				System.out.println("S "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
				System.out.println("H "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
				System.out.println("C "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
				System.out.println("D "+i);
		}
	}
} Main public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		ArrayList<String> list = new ArrayList<>();
		int n = sc.nextInt();
		for(int i=0;i<=n;i++){
			list.add(sc.nextLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
				System.out.println("S "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
				System.out.println("H "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
				System.out.println("C "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
				System.out.println("D "+i);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		ArrayList<String> list = new ArrayList<>();
		int n = sc.nextInt();
		for(int i=0;i<=n;i++){
			list.add(sc.nextLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
				System.out.println("S "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
				System.out.println("H "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
				System.out.println("C "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
				System.out.println("D "+i);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<String> list = new ArrayList<>(); list new ArrayList<>() int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i=0;i<=n;i++){
			list.add(sc.nextLine());
		} int i=0; int i=0; i 0 i<=n i n i++ i++ i {
			list.add(sc.nextLine());
		} {
			list.add(sc.nextLine());
		} list.add(sc.nextLine()) list.add list sc.nextLine() sc.nextLine sc for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
				System.out.println("S "+i);
		} int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
			if(list.contains("S "+i)==false)
				System.out.println("S "+i);
		} {
			if(list.contains("S "+i)==false)
				System.out.println("S "+i);
		} if(list.contains("S "+i)==false)
				System.out.println("S "+i); list.contains("S "+i)==false list.contains("S "+i) list.contains list "S "+i "S " i false System.out.println("S "+i) System.out.println System.out System System.out "S "+i "S " i for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
				System.out.println("H "+i);
		} int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
			if(list.contains("H "+i)==false)
				System.out.println("H "+i);
		} {
			if(list.contains("H "+i)==false)
				System.out.println("H "+i);
		} if(list.contains("H "+i)==false)
				System.out.println("H "+i); list.contains("H "+i)==false list.contains("H "+i) list.contains list "H "+i "H " i false System.out.println("H "+i) System.out.println System.out System System.out "H "+i "H " i for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
				System.out.println("C "+i);
		} int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
			if(list.contains("C "+i)==false)
				System.out.println("C "+i);
		} {
			if(list.contains("C "+i)==false)
				System.out.println("C "+i);
		} if(list.contains("C "+i)==false)
				System.out.println("C "+i); list.contains("C "+i)==false list.contains("C "+i) list.contains list "C "+i "C " i false System.out.println("C "+i) System.out.println System.out System System.out "C "+i "C " i for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
				System.out.println("D "+i);
		} int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
			if(list.contains("D "+i)==false)
				System.out.println("D "+i);
		} {
			if(list.contains("D "+i)==false)
				System.out.println("D "+i);
		} if(list.contains("D "+i)==false)
				System.out.println("D "+i); list.contains("D "+i)==false list.contains("D "+i) list.contains list "D "+i "D " i false System.out.println("D "+i) System.out.println System.out System System.out "D "+i "D " i String[] args args public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		ArrayList<String> list = new ArrayList<>();
		int n = sc.nextInt();
		for(int i=0;i<=n;i++){
			list.add(sc.nextLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
				System.out.println("S "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
				System.out.println("H "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
				System.out.println("C "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
				System.out.println("D "+i);
		}
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		ArrayList<String> list = new ArrayList<>();
		int n = sc.nextInt();
		for(int i=0;i<=n;i++){
			list.add(sc.nextLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
				System.out.println("S "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
				System.out.println("H "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
				System.out.println("C "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
				System.out.println("D "+i);
		}
	}
} Main
import java.util.Scanner;
import java.util.ArrayList;
public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		ArrayList<String> list = new ArrayList<>();
		int n = sc.nextInt();
		for(int i=0;i<=n;i++){
			list.add(sc.nextLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
				System.out.println("S "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
				System.out.println("H "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
				System.out.println("C "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
				System.out.println("D "+i);
		}
	}
}