import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x,no,ma=0;
		int n=sc.nextInt();
		int[] rauzu=new int[53];
		for(x=1;x<=n;x++){
			String mark=sc.next();
			no = sc.nextInt();
			if(mark.equals("S")){ma=0;
		}else if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;}
		rauzu[no+ma]=1;
		}
		for(x=1;x<=52;x++){
			if(rauzu[x]!=1){
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			}
		}
		}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x,no,ma=0;
		int n=sc.nextInt();
		int[] rauzu=new int[53];
		for(x=1;x<=n;x++){
			String mark=sc.next();
			no = sc.nextInt();
			if(mark.equals("S")){ma=0;
		}else if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;}
		rauzu[no+ma]=1;
		}
		for(x=1;x<=52;x++){
			if(rauzu[x]!=1){
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			}
		}
		}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x,no,ma=0;
		int n=sc.nextInt();
		int[] rauzu=new int[53];
		for(x=1;x<=n;x++){
			String mark=sc.next();
			no = sc.nextInt();
			if(mark.equals("S")){ma=0;
		}else if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;}
		rauzu[no+ma]=1;
		}
		for(x=1;x<=52;x++){
			if(rauzu[x]!=1){
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			}
		}
		} main {
		Scanner sc = new Scanner(System.in);
		int x,no,ma=0;
		int n=sc.nextInt();
		int[] rauzu=new int[53];
		for(x=1;x<=n;x++){
			String mark=sc.next();
			no = sc.nextInt();
			if(mark.equals("S")){ma=0;
		}else if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;}
		rauzu[no+ma]=1;
		}
		for(x=1;x<=52;x++){
			if(rauzu[x]!=1){
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			}
		}
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x x no no ma=0; ma 0 int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] rauzu=new int[53]; rauzu new int[53] 53 for(x=1;x<=n;x++){
			String mark=sc.next();
			no = sc.nextInt();
			if(mark.equals("S")){ma=0;
		}else if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;}
		rauzu[no+ma]=1;
		} x=1; x=1 x 1 x<=n x n x++ x++ x {
			String mark=sc.next();
			no = sc.nextInt();
			if(mark.equals("S")){ma=0;
		}else if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;}
		rauzu[no+ma]=1;
		} {
			String mark=sc.next();
			no = sc.nextInt();
			if(mark.equals("S")){ma=0;
		}else if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;}
		rauzu[no+ma]=1;
		} String mark=sc.next(); mark sc.next() sc.next sc no = sc.nextInt() no sc.nextInt() sc.nextInt sc if(mark.equals("S")){ma=0;
		}else if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;} mark.equals("S") mark.equals mark "S" {ma=0;
		} ma=0 ma 0 if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;} mark.equals("H") mark.equals mark "H" {ma=13;
		} ma=13 ma 13 if(mark.equals("C")){ma=26;}
		else {ma=39;} mark.equals("C") mark.equals mark "C" {ma=26;} ma=26 ma 26 {ma=39;} ma=39 ma 39 rauzu[no+ma]=1 rauzu[no+ma] rauzu no+ma no ma 1 for(x=1;x<=52;x++){
			if(rauzu[x]!=1){
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			}
		} x=1; x=1 x 1 x<=52 x 52 x++ x++ x {
			if(rauzu[x]!=1){
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			}
		} {
			if(rauzu[x]!=1){
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			}
		} if(rauzu[x]!=1){
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			} rauzu[x]!=1 rauzu[x] rauzu x 1 {
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			} if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));} x<=13 x 13 {System.out.println("S "+x);} System.out.println("S "+x) System.out.println System.out System System.out "S "+x "S " x if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));} x<=26 x 26 {System.out.println("H "+(x-13));} System.out.println("H "+(x-13)) System.out.println System.out System System.out "H "+(x-13) "H " (x-13) x 13 if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));} x<=39 x 39 {System.out.println("C "+(x-26));} System.out.println("C "+(x-26)) System.out.println System.out System System.out "C "+(x-26) "C " (x-26) x 26 if(x<=53){System.out.println("D "+(x-39));} x<=53 x 53 {System.out.println("D "+(x-39));} System.out.println("D "+(x-39)) System.out.println System.out System System.out "D "+(x-39) "D " (x-39) x 39 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x,no,ma=0;
		int n=sc.nextInt();
		int[] rauzu=new int[53];
		for(x=1;x<=n;x++){
			String mark=sc.next();
			no = sc.nextInt();
			if(mark.equals("S")){ma=0;
		}else if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;}
		rauzu[no+ma]=1;
		}
		for(x=1;x<=52;x++){
			if(rauzu[x]!=1){
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			}
		}
		}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x,no,ma=0;
		int n=sc.nextInt();
		int[] rauzu=new int[53];
		for(x=1;x<=n;x++){
			String mark=sc.next();
			no = sc.nextInt();
			if(mark.equals("S")){ma=0;
		}else if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;}
		rauzu[no+ma]=1;
		}
		for(x=1;x<=52;x++){
			if(rauzu[x]!=1){
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			}
		}
		}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x,no,ma=0;
		int n=sc.nextInt();
		int[] rauzu=new int[53];
		for(x=1;x<=n;x++){
			String mark=sc.next();
			no = sc.nextInt();
			if(mark.equals("S")){ma=0;
		}else if(mark.equals("H")){ma=13;
		}else if(mark.equals("C")){ma=26;}
		else {ma=39;}
		rauzu[no+ma]=1;
		}
		for(x=1;x<=52;x++){
			if(rauzu[x]!=1){
				if(x<=13){System.out.println("S "+x);}
				else if(x<=26){System.out.println("H "+(x-13));}
				else if(x<=39){System.out.println("C "+(x-26));}
				else if(x<=53){System.out.println("D "+(x-39));}
			}
		}
		}
}