import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());

		int array[];
		array = new int[53];
		for(int i=1; i<=52; i++){
			array[i] = i;
		}

		for(int j=1; j<=n; j++){
			String suit = std.next();
			int rank = Integer.parseInt(std.next());
			if(suit.equals("S")) {rank+=0;}
			else if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;}

			array[rank] = 0;
		}

		for(int i=1; i<=52; i++){
			if(array[i]!=0){
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());

		int array[];
		array = new int[53];
		for(int i=1; i<=52; i++){
			array[i] = i;
		}

		for(int j=1; j<=n; j++){
			String suit = std.next();
			int rank = Integer.parseInt(std.next());
			if(suit.equals("S")) {rank+=0;}
			else if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;}

			array[rank] = 0;
		}

		for(int i=1; i<=52; i++){
			if(array[i]!=0){
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			}
		}
	}
} Main public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());

		int array[];
		array = new int[53];
		for(int i=1; i<=52; i++){
			array[i] = i;
		}

		for(int j=1; j<=n; j++){
			String suit = std.next();
			int rank = Integer.parseInt(std.next());
			if(suit.equals("S")) {rank+=0;}
			else if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;}

			array[rank] = 0;
		}

		for(int i=1; i<=52; i++){
			if(array[i]!=0){
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			}
		}
	} main {
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());

		int array[];
		array = new int[53];
		for(int i=1; i<=52; i++){
			array[i] = i;
		}

		for(int j=1; j<=n; j++){
			String suit = std.next();
			int rank = Integer.parseInt(std.next());
			if(suit.equals("S")) {rank+=0;}
			else if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;}

			array[rank] = 0;
		}

		for(int i=1; i<=52; i++){
			if(array[i]!=0){
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			}
		}
	} Scanner std = new Scanner(System.in); std new Scanner(System.in) int n = Integer.parseInt(std.next()); n Integer.parseInt(std.next()) Integer.parseInt Integer std.next() std.next std int array[]; array array = new int[53] array new int[53] 53 for(int i=1; i<=52; i++){
			array[i] = i;
		} int i=1; int i=1; i 1 i<=52 i 52 i++ i++ i {
			array[i] = i;
		} {
			array[i] = i;
		} array[i] = i array[i] array i i for(int j=1; j<=n; j++){
			String suit = std.next();
			int rank = Integer.parseInt(std.next());
			if(suit.equals("S")) {rank+=0;}
			else if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;}

			array[rank] = 0;
		} int j=1; int j=1; j 1 j<=n j n j++ j++ j {
			String suit = std.next();
			int rank = Integer.parseInt(std.next());
			if(suit.equals("S")) {rank+=0;}
			else if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;}

			array[rank] = 0;
		} {
			String suit = std.next();
			int rank = Integer.parseInt(std.next());
			if(suit.equals("S")) {rank+=0;}
			else if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;}

			array[rank] = 0;
		} String suit = std.next(); suit std.next() std.next std int rank = Integer.parseInt(std.next()); rank Integer.parseInt(std.next()) Integer.parseInt Integer std.next() std.next std if(suit.equals("S")) {rank+=0;}
			else if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;} suit.equals("S") suit.equals suit "S" {rank+=0;} rank+=0 rank 0 if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;} suit.equals("H") suit.equals suit "H" {rank+=13;} rank+=13 rank 13 if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;} suit.equals("C") suit.equals suit "C" {rank+=26;} rank+=26 rank 26 if(suit.equals("D")) {rank+=39;} suit.equals("D") suit.equals suit "D" {rank+=39;} rank+=39 rank 39 array[rank] = 0 array[rank] array rank 0 for(int i=1; i<=52; i++){
			if(array[i]!=0){
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			}
		} int i=1; int i=1; i 1 i<=52 i 52 i++ i++ i {
			if(array[i]!=0){
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			}
		} {
			if(array[i]!=0){
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			}
		} if(array[i]!=0){
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			} array[i]!=0 array[i] array i 0 {
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			} String ret = ""; ret "" if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";} (i-1)/13==0 (i-1)/13 (i-1) i 1 13 0 {ret+="S ";} ret+="S " ret "S " if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";} (i-1)/13==1 (i-1)/13 (i-1) i 1 13 1 {ret+="H ";} ret+="H " ret "H " if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";} (i-1)/13==2 (i-1)/13 (i-1) i 1 13 2 {ret+="C ";} ret+="C " ret "C " if((i-1)/13==3){ret+="D ";} (i-1)/13==3 (i-1)/13 (i-1) i 1 13 3 {ret+="D ";} ret+="D " ret "D " if(i%13!=0){ret += i%13;}else{ret+="13";} i%13!=0 i%13 i 13 0 {ret += i%13;} ret += i%13 ret i%13 i 13 {ret+="13";} ret+="13" ret "13" System.out.println(ret) System.out.println System.out System System.out ret String[] args args public class Main {
	public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());

		int array[];
		array = new int[53];
		for(int i=1; i<=52; i++){
			array[i] = i;
		}

		for(int j=1; j<=n; j++){
			String suit = std.next();
			int rank = Integer.parseInt(std.next());
			if(suit.equals("S")) {rank+=0;}
			else if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;}

			array[rank] = 0;
		}

		for(int i=1; i<=52; i++){
			if(array[i]!=0){
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			}
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());

		int array[];
		array = new int[53];
		for(int i=1; i<=52; i++){
			array[i] = i;
		}

		for(int j=1; j<=n; j++){
			String suit = std.next();
			int rank = Integer.parseInt(std.next());
			if(suit.equals("S")) {rank+=0;}
			else if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;}

			array[rank] = 0;
		}

		for(int i=1; i<=52; i++){
			if(array[i]!=0){
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner std = new Scanner(System.in);
		int n = Integer.parseInt(std.next());

		int array[];
		array = new int[53];
		for(int i=1; i<=52; i++){
			array[i] = i;
		}

		for(int j=1; j<=n; j++){
			String suit = std.next();
			int rank = Integer.parseInt(std.next());
			if(suit.equals("S")) {rank+=0;}
			else if(suit.equals("H")) {rank+=13;}
			else if(suit.equals("C")) {rank+=26;}
			else if(suit.equals("D")) {rank+=39;}

			array[rank] = 0;
		}

		for(int i=1; i<=52; i++){
			if(array[i]!=0){
				String ret = "";
				if((i-1)/13==0){ret+="S ";}
				else if((i-1)/13==1){ret+="H ";}
				else if((i-1)/13==2){ret+="C ";}
				else if((i-1)/13==3){ret+="D ";}
				if(i%13!=0){ret += i%13;}else{ret+="13";}
				System.out.println(ret);
			}
		}
	}
}