

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

public class Main {

	public enum mark{

		S,
		H,
		C,
		D;

	}

	public static void main(String[] args) {

		List<String> allCard = new ArrayList<>();

		for(mark mark: mark.values()){

			for(int i = 1; i <= 13; i++) {

				allCard.add(String.valueOf(mark) + " " + i);

			}
		}

		Scanner in = new Scanner(System.in);

		int cardCount = in.nextInt();

		for(int i = 0; i <= cardCount; i++) {

			allCard.remove(in.nextLine());

		}

		for(String result: allCard) {

			System.out.println(result);

		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

	public enum mark{

		S,
		H,
		C,
		D;

	}

	public static void main(String[] args) {

		List<String> allCard = new ArrayList<>();

		for(mark mark: mark.values()){

			for(int i = 1; i <= 13; i++) {

				allCard.add(String.valueOf(mark) + " " + i);

			}
		}

		Scanner in = new Scanner(System.in);

		int cardCount = in.nextInt();

		for(int i = 0; i <= cardCount; i++) {

			allCard.remove(in.nextLine());

		}

		for(String result: allCard) {

			System.out.println(result);

		}
	}
} Main public static void main(String[] args) {

		List<String> allCard = new ArrayList<>();

		for(mark mark: mark.values()){

			for(int i = 1; i <= 13; i++) {

				allCard.add(String.valueOf(mark) + " " + i);

			}
		}

		Scanner in = new Scanner(System.in);

		int cardCount = in.nextInt();

		for(int i = 0; i <= cardCount; i++) {

			allCard.remove(in.nextLine());

		}

		for(String result: allCard) {

			System.out.println(result);

		}
	} main {

		List<String> allCard = new ArrayList<>();

		for(mark mark: mark.values()){

			for(int i = 1; i <= 13; i++) {

				allCard.add(String.valueOf(mark) + " " + i);

			}
		}

		Scanner in = new Scanner(System.in);

		int cardCount = in.nextInt();

		for(int i = 0; i <= cardCount; i++) {

			allCard.remove(in.nextLine());

		}

		for(String result: allCard) {

			System.out.println(result);

		}
	} List<String> allCard = new ArrayList<>(); allCard new ArrayList<>() for(mark mark: mark.values()){

			for(int i = 1; i <= 13; i++) {

				allCard.add(String.valueOf(mark) + " " + i);

			}
		} mark mark mark.values() mark.values mark {

			for(int i = 1; i <= 13; i++) {

				allCard.add(String.valueOf(mark) + " " + i);

			}
		} {

			for(int i = 1; i <= 13; i++) {

				allCard.add(String.valueOf(mark) + " " + i);

			}
		} for(int i = 1; i <= 13; i++) {

				allCard.add(String.valueOf(mark) + " " + i);

			} int i = 1; int i = 1; i 1 i <= 13 i 13 i++ i++ i {

				allCard.add(String.valueOf(mark) + " " + i);

			} {

				allCard.add(String.valueOf(mark) + " " + i);

			} allCard.add(String.valueOf(mark) + " " + i) allCard.add allCard String.valueOf(mark) + " " + i String.valueOf(mark) + " " + i String.valueOf(mark) String.valueOf String mark " " i Scanner in = new Scanner(System.in); in new Scanner(System.in) int cardCount = in.nextInt(); cardCount in.nextInt() in.nextInt in for(int i = 0; i <= cardCount; i++) {

			allCard.remove(in.nextLine());

		} int i = 0; int i = 0; i 0 i <= cardCount i cardCount i++ i++ i {

			allCard.remove(in.nextLine());

		} {

			allCard.remove(in.nextLine());

		} allCard.remove(in.nextLine()) allCard.remove allCard in.nextLine() in.nextLine in for(String result: allCard) {

			System.out.println(result);

		} String result allCard {

			System.out.println(result);

		} {

			System.out.println(result);

		} System.out.println(result) System.out.println System.out System System.out result String[] args args public enum mark{

		S,
		H,
		C,
		D;

	} mark S S H H C C D D 

import java.util.ArrayList;
imp 

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

public class Ma public class Main {

	public enum mark{

		S,
		H,
		C,
		D;

	}

	public static void main(String[] args) {

		List<String> allCard = new ArrayList<>();

		for(mark mark: mark.values()){

			for(int i = 1; i <= 13; i++) {

				allCard.add(String.valueOf(mark) + " " + i);

			}
		}

		Scanner in = new Scanner(System.in);

		int cardCount = in.nextInt();

		for(int i = 0; i <= cardCount; i++) {

			allCard.remove(in.nextLine());

		}

		for(String result: allCard) {

			System.out.println(result);

		}
	}
} public class Main {

	public enum mark{

		S,
		H,
		C,
		D;

	}

	public static void main(String[] args) {

		List<String> allCard = new ArrayList<>();

		for(mark mark: mark.values()){

			for(int i = 1; i <= 13; i++) {

				allCard.add(String.valueOf(mark) + " " + i);

			}
		}

		Scanner in = new Scanner(System.in);

		int cardCount = in.nextInt();

		for(int i = 0; i <= cardCount; i++) {

			allCard.remove(in.nextLine());

		}

		for(String result: allCard) {

			System.out.println(result);

		}
	}
} Main


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

public class Main {

	public enum mark{

		S,
		H,
		C,
		D;

	}

	public static void main(String[] args) {

		List<String> allCard = new ArrayList<>();

		for(mark mark: mark.values()){

			for(int i = 1; i <= 13; i++) {

				allCard.add(String.valueOf(mark) + " " + i);

			}
		}

		Scanner in = new Scanner(System.in);

		int cardCount = in.nextInt();

		for(int i = 0; i <= cardCount; i++) {

			allCard.remove(in.nextLine());

		}

		for(String result: allCard) {

			System.out.println(result);

		}
	}
}