import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int count = scan.nextInt();
		int cards[][] = new int[4][52];
		String mark = "";
		int num = 0;
		for(int i = 0;i < count;i++)
		{
			mark = scan.next();
			num = scan.nextInt();
			if(mark.equals("S")){
				cards[0][num - 1] = 1;
			}else if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			}
		}
		
		for(int i = 0;i < 4;i++)
		{
			for(int j = 0;j < 13;j++)
			{
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int count = scan.nextInt();
		int cards[][] = new int[4][52];
		String mark = "";
		int num = 0;
		for(int i = 0;i < count;i++)
		{
			mark = scan.next();
			num = scan.nextInt();
			if(mark.equals("S")){
				cards[0][num - 1] = 1;
			}else if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			}
		}
		
		for(int i = 0;i < 4;i++)
		{
			for(int j = 0;j < 13;j++)
			{
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			}
		}
	}
} Main public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int count = scan.nextInt();
		int cards[][] = new int[4][52];
		String mark = "";
		int num = 0;
		for(int i = 0;i < count;i++)
		{
			mark = scan.next();
			num = scan.nextInt();
			if(mark.equals("S")){
				cards[0][num - 1] = 1;
			}else if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			}
		}
		
		for(int i = 0;i < 4;i++)
		{
			for(int j = 0;j < 13;j++)
			{
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int count = scan.nextInt();
		int cards[][] = new int[4][52];
		String mark = "";
		int num = 0;
		for(int i = 0;i < count;i++)
		{
			mark = scan.next();
			num = scan.nextInt();
			if(mark.equals("S")){
				cards[0][num - 1] = 1;
			}else if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			}
		}
		
		for(int i = 0;i < 4;i++)
		{
			for(int j = 0;j < 13;j++)
			{
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int count = scan.nextInt(); count scan.nextInt() scan.nextInt scan int cards[][] = new int[4][52]; cards new int[4][52] 4 52 String mark = ""; mark "" int num = 0; num 0 for(int i = 0;i < count;i++)
		{
			mark = scan.next();
			num = scan.nextInt();
			if(mark.equals("S")){
				cards[0][num - 1] = 1;
			}else if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			}
		} int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
			mark = scan.next();
			num = scan.nextInt();
			if(mark.equals("S")){
				cards[0][num - 1] = 1;
			}else if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			}
		} {
			mark = scan.next();
			num = scan.nextInt();
			if(mark.equals("S")){
				cards[0][num - 1] = 1;
			}else if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			}
		} mark = scan.next() mark scan.next() scan.next scan num = scan.nextInt() num scan.nextInt() scan.nextInt scan if(mark.equals("S")){
				cards[0][num - 1] = 1;
			}else if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			} mark.equals("S") mark.equals mark "S" {
				cards[0][num - 1] = 1;
			} cards[0][num - 1] = 1 cards[0][num - 1] cards[0] cards 0 num - 1 num 1 1 if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			} mark.equals("H") mark.equals mark "H" {
				cards[1][num - 1] = 1;
			} cards[1][num - 1] = 1 cards[1][num - 1] cards[1] cards 1 num - 1 num 1 1 if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			} mark.equals("C") mark.equals mark "C" {
				cards[2][num - 1] = 1;
			} cards[2][num - 1] = 1 cards[2][num - 1] cards[2] cards 2 num - 1 num 1 1 if(mark.equals("D")){
				cards[3][num - 1] = 1;
			} mark.equals("D") mark.equals mark "D" {
				cards[3][num - 1] = 1;
			} cards[3][num - 1] = 1 cards[3][num - 1] cards[3] cards 3 num - 1 num 1 1 for(int i = 0;i < 4;i++)
		{
			for(int j = 0;j < 13;j++)
			{
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			}
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			for(int j = 0;j < 13;j++)
			{
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			}
		} {
			for(int j = 0;j < 13;j++)
			{
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			}
		} for(int j = 0;j < 13;j++)
			{
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			} int j = 0; int j = 0; j 0 j < 13 j 13 j++ j++ j {
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			} {
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			} if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				} cards[i][j] == 0 cards[i][j] cards[i] cards i j 0 {
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				} switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					} i case 0: 0 case 0: System.out.printf("S %d\n", j + 1) System.out.printf System.out System System.out "S %d\n" j + 1 j 1 break; case 1: 1 case 1: System.out.printf("H %d\n", j + 1) System.out.printf System.out System System.out "H %d\n" j + 1 j 1 break; case 2: 2 case 2: System.out.printf("C %d\n", j + 1) System.out.printf System.out System System.out "C %d\n" j + 1 j 1 break; case 3: 3 case 3: System.out.printf("D %d\n", j + 1) System.out.printf System.out System System.out "D %d\n" j + 1 j 1 break; default: default: System.out.println("error") System.out.println System.out System System.out "error" break; String[] args args public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int count = scan.nextInt();
		int cards[][] = new int[4][52];
		String mark = "";
		int num = 0;
		for(int i = 0;i < count;i++)
		{
			mark = scan.next();
			num = scan.nextInt();
			if(mark.equals("S")){
				cards[0][num - 1] = 1;
			}else if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			}
		}
		
		for(int i = 0;i < 4;i++)
		{
			for(int j = 0;j < 13;j++)
			{
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			}
		}
	}
} public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int count = scan.nextInt();
		int cards[][] = new int[4][52];
		String mark = "";
		int num = 0;
		for(int i = 0;i < count;i++)
		{
			mark = scan.next();
			num = scan.nextInt();
			if(mark.equals("S")){
				cards[0][num - 1] = 1;
			}else if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			}
		}
		
		for(int i = 0;i < 4;i++)
		{
			for(int j = 0;j < 13;j++)
			{
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int count = scan.nextInt();
		int cards[][] = new int[4][52];
		String mark = "";
		int num = 0;
		for(int i = 0;i < count;i++)
		{
			mark = scan.next();
			num = scan.nextInt();
			if(mark.equals("S")){
				cards[0][num - 1] = 1;
			}else if(mark.equals("H")){
				cards[1][num - 1] = 1;
			}else if(mark.equals("C")){
				cards[2][num - 1] = 1;
			}else if(mark.equals("D")){
				cards[3][num - 1] = 1;
			}
		}
		
		for(int i = 0;i < 4;i++)
		{
			for(int j = 0;j < 13;j++)
			{
				if(cards[i][j] == 0){
					switch(i)
					{
						case 0:
							System.out.printf("S %d\n", j + 1);
							break;
						case 1:
							System.out.printf("H %d\n", j + 1);
							break;
						case 2:
							System.out.printf("C %d\n", j + 1);
							break;
						case 3:
							System.out.printf("D %d\n", j + 1);
							break;
						default:
							System.out.println("error");
							break;
					}
				}
			}
		}
	}
}