import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		int n;

		Scanner stdIn = new Scanner(System.in);
		List<String> cards = new ArrayList<>();

		n = stdIn.nextInt();

		for(int i = 0; i <= n; i++) {
			cards.add(stdIn.nextLine());
		}

		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("S " + i))) {
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("H " + i))) {
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("C " + i))) {
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("D " + i))) {
				System.out.println("D " + i);
			}
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) {

		int n;

		Scanner stdIn = new Scanner(System.in);
		List<String> cards = new ArrayList<>();

		n = stdIn.nextInt();

		for(int i = 0; i <= n; i++) {
			cards.add(stdIn.nextLine());
		}

		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("S " + i))) {
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("H " + i))) {
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("C " + i))) {
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("D " + i))) {
				System.out.println("D " + i);
			}
		}
	}
} Main public static void main(String[] args) {

		int n;

		Scanner stdIn = new Scanner(System.in);
		List<String> cards = new ArrayList<>();

		n = stdIn.nextInt();

		for(int i = 0; i <= n; i++) {
			cards.add(stdIn.nextLine());
		}

		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("S " + i))) {
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("H " + i))) {
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("C " + i))) {
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("D " + i))) {
				System.out.println("D " + i);
			}
		}
	} main {

		int n;

		Scanner stdIn = new Scanner(System.in);
		List<String> cards = new ArrayList<>();

		n = stdIn.nextInt();

		for(int i = 0; i <= n; i++) {
			cards.add(stdIn.nextLine());
		}

		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("S " + i))) {
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("H " + i))) {
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("C " + i))) {
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("D " + i))) {
				System.out.println("D " + i);
			}
		}
	} int n; n Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) List<String> cards = new ArrayList<>(); cards new ArrayList<>() n = stdIn.nextInt() n stdIn.nextInt() stdIn.nextInt stdIn for(int i = 0; i <= n; i++) {
			cards.add(stdIn.nextLine());
		} int i = 0; int i = 0; i 0 i <= n i n i++ i++ i {
			cards.add(stdIn.nextLine());
		} {
			cards.add(stdIn.nextLine());
		} cards.add(stdIn.nextLine()) cards.add cards stdIn.nextLine() stdIn.nextLine stdIn for(int i = 1; i < 14; i++) {
			if(!(cards.contains("S " + i))) {
				System.out.println("S " + i);
			}
		} int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
			if(!(cards.contains("S " + i))) {
				System.out.println("S " + i);
			}
		} {
			if(!(cards.contains("S " + i))) {
				System.out.println("S " + i);
			}
		} if(!(cards.contains("S " + i))) {
				System.out.println("S " + i);
			} !(cards.contains("S " + i)) (cards.contains("S " + i)) cards.contains cards "S " + i "S " i {
				System.out.println("S " + i);
			} 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(!(cards.contains("H " + i))) {
				System.out.println("H " + i);
			}
		} int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
			if(!(cards.contains("H " + i))) {
				System.out.println("H " + i);
			}
		} {
			if(!(cards.contains("H " + i))) {
				System.out.println("H " + i);
			}
		} if(!(cards.contains("H " + i))) {
				System.out.println("H " + i);
			} !(cards.contains("H " + i)) (cards.contains("H " + i)) cards.contains cards "H " + i "H " i {
				System.out.println("H " + i);
			} 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(!(cards.contains("C " + i))) {
				System.out.println("C " + i);
			}
		} int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
			if(!(cards.contains("C " + i))) {
				System.out.println("C " + i);
			}
		} {
			if(!(cards.contains("C " + i))) {
				System.out.println("C " + i);
			}
		} if(!(cards.contains("C " + i))) {
				System.out.println("C " + i);
			} !(cards.contains("C " + i)) (cards.contains("C " + i)) cards.contains cards "C " + i "C " i {
				System.out.println("C " + i);
			} 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(!(cards.contains("D " + i))) {
				System.out.println("D " + i);
			}
		} int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
			if(!(cards.contains("D " + i))) {
				System.out.println("D " + i);
			}
		} {
			if(!(cards.contains("D " + i))) {
				System.out.println("D " + i);
			}
		} if(!(cards.contains("D " + i))) {
				System.out.println("D " + i);
			} !(cards.contains("D " + i)) (cards.contains("D " + i)) cards.contains cards "D " + i "D " i {
				System.out.println("D " + i);
			} System.out.println("D " + i) System.out.println System.out System System.out "D " + i "D " i String[] args args
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		int n;

		Scanner stdIn = new Scanner(System.in);
		List<String> cards = new ArrayList<>();

		n = stdIn.nextInt();

		for(int i = 0; i <= n; i++) {
			cards.add(stdIn.nextLine());
		}

		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("S " + i))) {
				System.out.println("S " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("H " + i))) {
				System.out.println("H " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("C " + i))) {
				System.out.println("C " + i);
			}
		}
		for(int i = 1; i < 14; i++) {
			if(!(cards.contains("D " + i))) {
				System.out.println("D " + i);
			}
		}
	}
}