import java.io.*;

class Main{
	public static void main(String args[]) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		String[] cards;
		int n = Integer.parseInt(buf.readLine());
		int num;
		boolean[] S = new boolean[13];
		boolean[] H = new boolean[13];
		boolean[] C = new boolean[13];
		boolean[] D = new boolean[13];

		for(int i=0; i<13; i++){
			S[i] = H[i] = C[i] = D[i] = false;
		}

		for(int i=0; i<n; i++){
			cards = buf.readLine().split(" ");
			num = Integer.parseInt(cards[1]);
			if(cards[0].equals("S"))
				S[num-1] = true;
			else if(cards[0].equals("H"))
				H[num-1] = true;
			else if(cards[0].equals("C"))
				C[num-1] = true;
			else if(cards[0].equals("D"))
				D[num-1] = true;
		}
		for(int i=0; i<13; i++){
			if(S[i] == false)
				System.out.println("S " + (i+1));
		}
		for(int i=0; i< 13; i++){
			if(H[i] == false)
				System.out.println("H " + (i+1));
		}
		for(int i=0; i<13; i++){
			if(C[i] == false)
				System.out.println("C " + (i+1));
		}
		for(int i= 0; i<13; i++){
			if(D[i] == false)
			System.out.println("D " + (i+1));
		}
		
	}
} import java.io.*; io.* java class Main{
	public static void main(String args[]) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		String[] cards;
		int n = Integer.parseInt(buf.readLine());
		int num;
		boolean[] S = new boolean[13];
		boolean[] H = new boolean[13];
		boolean[] C = new boolean[13];
		boolean[] D = new boolean[13];

		for(int i=0; i<13; i++){
			S[i] = H[i] = C[i] = D[i] = false;
		}

		for(int i=0; i<n; i++){
			cards = buf.readLine().split(" ");
			num = Integer.parseInt(cards[1]);
			if(cards[0].equals("S"))
				S[num-1] = true;
			else if(cards[0].equals("H"))
				H[num-1] = true;
			else if(cards[0].equals("C"))
				C[num-1] = true;
			else if(cards[0].equals("D"))
				D[num-1] = true;
		}
		for(int i=0; i<13; i++){
			if(S[i] == false)
				System.out.println("S " + (i+1));
		}
		for(int i=0; i< 13; i++){
			if(H[i] == false)
				System.out.println("H " + (i+1));
		}
		for(int i=0; i<13; i++){
			if(C[i] == false)
				System.out.println("C " + (i+1));
		}
		for(int i= 0; i<13; i++){
			if(D[i] == false)
			System.out.println("D " + (i+1));
		}
		
	}
} Main public static void main(String args[]) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		String[] cards;
		int n = Integer.parseInt(buf.readLine());
		int num;
		boolean[] S = new boolean[13];
		boolean[] H = new boolean[13];
		boolean[] C = new boolean[13];
		boolean[] D = new boolean[13];

		for(int i=0; i<13; i++){
			S[i] = H[i] = C[i] = D[i] = false;
		}

		for(int i=0; i<n; i++){
			cards = buf.readLine().split(" ");
			num = Integer.parseInt(cards[1]);
			if(cards[0].equals("S"))
				S[num-1] = true;
			else if(cards[0].equals("H"))
				H[num-1] = true;
			else if(cards[0].equals("C"))
				C[num-1] = true;
			else if(cards[0].equals("D"))
				D[num-1] = true;
		}
		for(int i=0; i<13; i++){
			if(S[i] == false)
				System.out.println("S " + (i+1));
		}
		for(int i=0; i< 13; i++){
			if(H[i] == false)
				System.out.println("H " + (i+1));
		}
		for(int i=0; i<13; i++){
			if(C[i] == false)
				System.out.println("C " + (i+1));
		}
		for(int i= 0; i<13; i++){
			if(D[i] == false)
			System.out.println("D " + (i+1));
		}
		
	} main {
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		String[] cards;
		int n = Integer.parseInt(buf.readLine());
		int num;
		boolean[] S = new boolean[13];
		boolean[] H = new boolean[13];
		boolean[] C = new boolean[13];
		boolean[] D = new boolean[13];

		for(int i=0; i<13; i++){
			S[i] = H[i] = C[i] = D[i] = false;
		}

		for(int i=0; i<n; i++){
			cards = buf.readLine().split(" ");
			num = Integer.parseInt(cards[1]);
			if(cards[0].equals("S"))
				S[num-1] = true;
			else if(cards[0].equals("H"))
				H[num-1] = true;
			else if(cards[0].equals("C"))
				C[num-1] = true;
			else if(cards[0].equals("D"))
				D[num-1] = true;
		}
		for(int i=0; i<13; i++){
			if(S[i] == false)
				System.out.println("S " + (i+1));
		}
		for(int i=0; i< 13; i++){
			if(H[i] == false)
				System.out.println("H " + (i+1));
		}
		for(int i=0; i<13; i++){
			if(C[i] == false)
				System.out.println("C " + (i+1));
		}
		for(int i= 0; i<13; i++){
			if(D[i] == false)
			System.out.println("D " + (i+1));
		}
		
	} BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) String[] cards; cards int n = Integer.parseInt(buf.readLine()); n Integer.parseInt(buf.readLine()) Integer.parseInt Integer buf.readLine() buf.readLine buf int num; num boolean[] S = new boolean[13]; S new boolean[13] 13 boolean[] H = new boolean[13]; H new boolean[13] 13 boolean[] C = new boolean[13]; C new boolean[13] 13 boolean[] D = new boolean[13]; D new boolean[13] 13 for(int i=0; i<13; i++){
			S[i] = H[i] = C[i] = D[i] = false;
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			S[i] = H[i] = C[i] = D[i] = false;
		} {
			S[i] = H[i] = C[i] = D[i] = false;
		} S[i] = H[i] = C[i] = D[i] = false S[i] S i H[i] = C[i] = D[i] = false H[i] H i C[i] = D[i] = false C[i] C i D[i] = false D[i] D i false for(int i=0; i<n; i++){
			cards = buf.readLine().split(" ");
			num = Integer.parseInt(cards[1]);
			if(cards[0].equals("S"))
				S[num-1] = true;
			else if(cards[0].equals("H"))
				H[num-1] = true;
			else if(cards[0].equals("C"))
				C[num-1] = true;
			else if(cards[0].equals("D"))
				D[num-1] = true;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			cards = buf.readLine().split(" ");
			num = Integer.parseInt(cards[1]);
			if(cards[0].equals("S"))
				S[num-1] = true;
			else if(cards[0].equals("H"))
				H[num-1] = true;
			else if(cards[0].equals("C"))
				C[num-1] = true;
			else if(cards[0].equals("D"))
				D[num-1] = true;
		} {
			cards = buf.readLine().split(" ");
			num = Integer.parseInt(cards[1]);
			if(cards[0].equals("S"))
				S[num-1] = true;
			else if(cards[0].equals("H"))
				H[num-1] = true;
			else if(cards[0].equals("C"))
				C[num-1] = true;
			else if(cards[0].equals("D"))
				D[num-1] = true;
		} cards = buf.readLine().split(" ") cards buf.readLine().split(" ") buf.readLine().split buf.readLine() buf.readLine buf " " num = Integer.parseInt(cards[1]) num Integer.parseInt(cards[1]) Integer.parseInt Integer cards[1] cards 1 if(cards[0].equals("S"))
				S[num-1] = true;
			else if(cards[0].equals("H"))
				H[num-1] = true;
			else if(cards[0].equals("C"))
				C[num-1] = true;
			else if(cards[0].equals("D"))
				D[num-1] = true; cards[0].equals("S") cards[0].equals cards[0] cards 0 "S" S[num-1] = true S[num-1] S num-1 num 1 true if(cards[0].equals("H"))
				H[num-1] = true;
			else if(cards[0].equals("C"))
				C[num-1] = true;
			else if(cards[0].equals("D"))
				D[num-1] = true; cards[0].equals("H") cards[0].equals cards[0] cards 0 "H" H[num-1] = true H[num-1] H num-1 num 1 true if(cards[0].equals("C"))
				C[num-1] = true;
			else if(cards[0].equals("D"))
				D[num-1] = true; cards[0].equals("C") cards[0].equals cards[0] cards 0 "C" C[num-1] = true C[num-1] C num-1 num 1 true if(cards[0].equals("D"))
				D[num-1] = true; cards[0].equals("D") cards[0].equals cards[0] cards 0 "D" D[num-1] = true D[num-1] D num-1 num 1 true for(int i=0; i<13; i++){
			if(S[i] == false)
				System.out.println("S " + (i+1));
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if(S[i] == false)
				System.out.println("S " + (i+1));
		} {
			if(S[i] == false)
				System.out.println("S " + (i+1));
		} if(S[i] == false)
				System.out.println("S " + (i+1)); S[i] == false S[i] S i false System.out.println("S " + (i+1)) System.out.println System.out System System.out "S " + (i+1) "S " (i+1) i 1 for(int i=0; i< 13; i++){
			if(H[i] == false)
				System.out.println("H " + (i+1));
		} int i=0; int i=0; i 0 i< 13 i 13 i++ i++ i {
			if(H[i] == false)
				System.out.println("H " + (i+1));
		} {
			if(H[i] == false)
				System.out.println("H " + (i+1));
		} if(H[i] == false)
				System.out.println("H " + (i+1)); H[i] == false H[i] H i false System.out.println("H " + (i+1)) System.out.println System.out System System.out "H " + (i+1) "H " (i+1) i 1 for(int i=0; i<13; i++){
			if(C[i] == false)
				System.out.println("C " + (i+1));
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if(C[i] == false)
				System.out.println("C " + (i+1));
		} {
			if(C[i] == false)
				System.out.println("C " + (i+1));
		} if(C[i] == false)
				System.out.println("C " + (i+1)); C[i] == false C[i] C i false System.out.println("C " + (i+1)) System.out.println System.out System System.out "C " + (i+1) "C " (i+1) i 1 for(int i= 0; i<13; i++){
			if(D[i] == false)
			System.out.println("D " + (i+1));
		} int i= 0; int i= 0; i 0 i<13 i 13 i++ i++ i {
			if(D[i] == false)
			System.out.println("D " + (i+1));
		} {
			if(D[i] == false)
			System.out.println("D " + (i+1));
		} if(D[i] == false)
			System.out.println("D " + (i+1)); D[i] == false D[i] D i false System.out.println("D " + (i+1)) System.out.println System.out System System.out "D " + (i+1) "D " (i+1) i 1 String args[] args
import java.io.*;

class Main{
	public static void main(String args[]) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		String[] cards;
		int n = Integer.parseInt(buf.readLine());
		int num;
		boolean[] S = new boolean[13];
		boolean[] H = new boolean[13];
		boolean[] C = new boolean[13];
		boolean[] D = new boolean[13];

		for(int i=0; i<13; i++){
			S[i] = H[i] = C[i] = D[i] = false;
		}

		for(int i=0; i<n; i++){
			cards = buf.readLine().split(" ");
			num = Integer.parseInt(cards[1]);
			if(cards[0].equals("S"))
				S[num-1] = true;
			else if(cards[0].equals("H"))
				H[num-1] = true;
			else if(cards[0].equals("C"))
				C[num-1] = true;
			else if(cards[0].equals("D"))
				D[num-1] = true;
		}
		for(int i=0; i<13; i++){
			if(S[i] == false)
				System.out.println("S " + (i+1));
		}
		for(int i=0; i< 13; i++){
			if(H[i] == false)
				System.out.println("H " + (i+1));
		}
		for(int i=0; i<13; i++){
			if(C[i] == false)
				System.out.println("C " + (i+1));
		}
		for(int i= 0; i<13; i++){
			if(D[i] == false)
			System.out.println("D " + (i+1));
		}
		
	}
}