import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer count = Integer.parseInt(br.readLine());
		HashMap<Integer, String> spadeMap = new HashMap<Integer, String>();
		HashMap<Integer, String> heartMap = new HashMap<Integer, String>();
		HashMap<Integer, String> clubMap = new HashMap<Integer, String>();
		HashMap<Integer, String> daiyaMap = new HashMap<Integer, String>();
		ArrayList<Integer> spadeList = new ArrayList<Integer>();
		ArrayList<Integer> heartList = new ArrayList<Integer>();
		ArrayList<Integer> clubList = new ArrayList<Integer>();
		ArrayList<Integer> daiyaList = new ArrayList<Integer>();
		for (int i = 1; i < 14; i++) {
			spadeMap.put(i, "×");
			heartMap.put(i, "×");
			clubMap.put(i, "×");
			daiyaMap.put(i, "×");
		}
		for (int i = 0; i < count; i++) {
			String[] numArrays = br.readLine().split(" ");
			if ("S".equals(numArrays[0])) {
				spadeMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("H".equals(numArrays[0])) {
				heartMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("C".equals(numArrays[0])) {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			}
		}
		for (Integer key: spadeMap.keySet()) {
			if ("×".equals(spadeMap.get(key))) {
				spadeList.add(key);
			}
		}
		Collections.sort(spadeList);
		for (Integer key: heartMap.keySet()) {
			if ("×".equals(heartMap.get(key))) {
				heartList.add(key);
			}
		}
		Collections.sort(heartList);
		for (Integer key: clubMap.keySet()) {
			if ("×".equals(clubMap.get(key))) {
				clubList.add(key);
			}
		}
		Collections.sort(clubList);
		for (Integer key: daiyaMap.keySet()) {
			if ("×".equals(daiyaMap.get(key))) {
				daiyaList.add(key);
			}
		}
		Collections.sort(daiyaList);
		for (int i = 0; i < spadeList.size(); i++) {
			System.out.println("S " + spadeList.get(i));
		}
		for (int i = 0; i < heartList.size(); i++) {
			System.out.println("H " + heartList.get(i));
		}
		for (int i = 0; i < clubList.size(); i++) {
			System.out.println("C " + clubList.get(i));
		}
		for (int i = 0; i < daiyaList.size(); i++) {
			System.out.println("D " + daiyaList.get(i));
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.HashMap; HashMap java.util class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer count = Integer.parseInt(br.readLine());
		HashMap<Integer, String> spadeMap = new HashMap<Integer, String>();
		HashMap<Integer, String> heartMap = new HashMap<Integer, String>();
		HashMap<Integer, String> clubMap = new HashMap<Integer, String>();
		HashMap<Integer, String> daiyaMap = new HashMap<Integer, String>();
		ArrayList<Integer> spadeList = new ArrayList<Integer>();
		ArrayList<Integer> heartList = new ArrayList<Integer>();
		ArrayList<Integer> clubList = new ArrayList<Integer>();
		ArrayList<Integer> daiyaList = new ArrayList<Integer>();
		for (int i = 1; i < 14; i++) {
			spadeMap.put(i, "×");
			heartMap.put(i, "×");
			clubMap.put(i, "×");
			daiyaMap.put(i, "×");
		}
		for (int i = 0; i < count; i++) {
			String[] numArrays = br.readLine().split(" ");
			if ("S".equals(numArrays[0])) {
				spadeMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("H".equals(numArrays[0])) {
				heartMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("C".equals(numArrays[0])) {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			}
		}
		for (Integer key: spadeMap.keySet()) {
			if ("×".equals(spadeMap.get(key))) {
				spadeList.add(key);
			}
		}
		Collections.sort(spadeList);
		for (Integer key: heartMap.keySet()) {
			if ("×".equals(heartMap.get(key))) {
				heartList.add(key);
			}
		}
		Collections.sort(heartList);
		for (Integer key: clubMap.keySet()) {
			if ("×".equals(clubMap.get(key))) {
				clubList.add(key);
			}
		}
		Collections.sort(clubList);
		for (Integer key: daiyaMap.keySet()) {
			if ("×".equals(daiyaMap.get(key))) {
				daiyaList.add(key);
			}
		}
		Collections.sort(daiyaList);
		for (int i = 0; i < spadeList.size(); i++) {
			System.out.println("S " + spadeList.get(i));
		}
		for (int i = 0; i < heartList.size(); i++) {
			System.out.println("H " + heartList.get(i));
		}
		for (int i = 0; i < clubList.size(); i++) {
			System.out.println("C " + clubList.get(i));
		}
		for (int i = 0; i < daiyaList.size(); i++) {
			System.out.println("D " + daiyaList.get(i));
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer count = Integer.parseInt(br.readLine());
		HashMap<Integer, String> spadeMap = new HashMap<Integer, String>();
		HashMap<Integer, String> heartMap = new HashMap<Integer, String>();
		HashMap<Integer, String> clubMap = new HashMap<Integer, String>();
		HashMap<Integer, String> daiyaMap = new HashMap<Integer, String>();
		ArrayList<Integer> spadeList = new ArrayList<Integer>();
		ArrayList<Integer> heartList = new ArrayList<Integer>();
		ArrayList<Integer> clubList = new ArrayList<Integer>();
		ArrayList<Integer> daiyaList = new ArrayList<Integer>();
		for (int i = 1; i < 14; i++) {
			spadeMap.put(i, "×");
			heartMap.put(i, "×");
			clubMap.put(i, "×");
			daiyaMap.put(i, "×");
		}
		for (int i = 0; i < count; i++) {
			String[] numArrays = br.readLine().split(" ");
			if ("S".equals(numArrays[0])) {
				spadeMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("H".equals(numArrays[0])) {
				heartMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("C".equals(numArrays[0])) {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			}
		}
		for (Integer key: spadeMap.keySet()) {
			if ("×".equals(spadeMap.get(key))) {
				spadeList.add(key);
			}
		}
		Collections.sort(spadeList);
		for (Integer key: heartMap.keySet()) {
			if ("×".equals(heartMap.get(key))) {
				heartList.add(key);
			}
		}
		Collections.sort(heartList);
		for (Integer key: clubMap.keySet()) {
			if ("×".equals(clubMap.get(key))) {
				clubList.add(key);
			}
		}
		Collections.sort(clubList);
		for (Integer key: daiyaMap.keySet()) {
			if ("×".equals(daiyaMap.get(key))) {
				daiyaList.add(key);
			}
		}
		Collections.sort(daiyaList);
		for (int i = 0; i < spadeList.size(); i++) {
			System.out.println("S " + spadeList.get(i));
		}
		for (int i = 0; i < heartList.size(); i++) {
			System.out.println("H " + heartList.get(i));
		}
		for (int i = 0; i < clubList.size(); i++) {
			System.out.println("C " + clubList.get(i));
		}
		for (int i = 0; i < daiyaList.size(); i++) {
			System.out.println("D " + daiyaList.get(i));
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer count = Integer.parseInt(br.readLine());
		HashMap<Integer, String> spadeMap = new HashMap<Integer, String>();
		HashMap<Integer, String> heartMap = new HashMap<Integer, String>();
		HashMap<Integer, String> clubMap = new HashMap<Integer, String>();
		HashMap<Integer, String> daiyaMap = new HashMap<Integer, String>();
		ArrayList<Integer> spadeList = new ArrayList<Integer>();
		ArrayList<Integer> heartList = new ArrayList<Integer>();
		ArrayList<Integer> clubList = new ArrayList<Integer>();
		ArrayList<Integer> daiyaList = new ArrayList<Integer>();
		for (int i = 1; i < 14; i++) {
			spadeMap.put(i, "×");
			heartMap.put(i, "×");
			clubMap.put(i, "×");
			daiyaMap.put(i, "×");
		}
		for (int i = 0; i < count; i++) {
			String[] numArrays = br.readLine().split(" ");
			if ("S".equals(numArrays[0])) {
				spadeMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("H".equals(numArrays[0])) {
				heartMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("C".equals(numArrays[0])) {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			}
		}
		for (Integer key: spadeMap.keySet()) {
			if ("×".equals(spadeMap.get(key))) {
				spadeList.add(key);
			}
		}
		Collections.sort(spadeList);
		for (Integer key: heartMap.keySet()) {
			if ("×".equals(heartMap.get(key))) {
				heartList.add(key);
			}
		}
		Collections.sort(heartList);
		for (Integer key: clubMap.keySet()) {
			if ("×".equals(clubMap.get(key))) {
				clubList.add(key);
			}
		}
		Collections.sort(clubList);
		for (Integer key: daiyaMap.keySet()) {
			if ("×".equals(daiyaMap.get(key))) {
				daiyaList.add(key);
			}
		}
		Collections.sort(daiyaList);
		for (int i = 0; i < spadeList.size(); i++) {
			System.out.println("S " + spadeList.get(i));
		}
		for (int i = 0; i < heartList.size(); i++) {
			System.out.println("H " + heartList.get(i));
		}
		for (int i = 0; i < clubList.size(); i++) {
			System.out.println("C " + clubList.get(i));
		}
		for (int i = 0; i < daiyaList.size(); i++) {
			System.out.println("D " + daiyaList.get(i));
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Integer count = Integer.parseInt(br.readLine()); count Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br HashMap<Integer, String> spadeMap = new HashMap<Integer, String>(); spadeMap new HashMap<Integer, String>() HashMap<Integer, String> heartMap = new HashMap<Integer, String>(); heartMap new HashMap<Integer, String>() HashMap<Integer, String> clubMap = new HashMap<Integer, String>(); clubMap new HashMap<Integer, String>() HashMap<Integer, String> daiyaMap = new HashMap<Integer, String>(); daiyaMap new HashMap<Integer, String>() ArrayList<Integer> spadeList = new ArrayList<Integer>(); spadeList new ArrayList<Integer>() ArrayList<Integer> heartList = new ArrayList<Integer>(); heartList new ArrayList<Integer>() ArrayList<Integer> clubList = new ArrayList<Integer>(); clubList new ArrayList<Integer>() ArrayList<Integer> daiyaList = new ArrayList<Integer>(); daiyaList new ArrayList<Integer>() for (int i = 1; i < 14; i++) {
			spadeMap.put(i, "×");
			heartMap.put(i, "×");
			clubMap.put(i, "×");
			daiyaMap.put(i, "×");
		} int i = 1; int i = 1; i 1 i < 14 i 14 i++ i++ i {
			spadeMap.put(i, "×");
			heartMap.put(i, "×");
			clubMap.put(i, "×");
			daiyaMap.put(i, "×");
		} {
			spadeMap.put(i, "×");
			heartMap.put(i, "×");
			clubMap.put(i, "×");
			daiyaMap.put(i, "×");
		} spadeMap.put(i, "×") spadeMap.put spadeMap i "×" heartMap.put(i, "×") heartMap.put heartMap i "×" clubMap.put(i, "×") clubMap.put clubMap i "×" daiyaMap.put(i, "×") daiyaMap.put daiyaMap i "×" for (int i = 0; i < count; i++) {
			String[] numArrays = br.readLine().split(" ");
			if ("S".equals(numArrays[0])) {
				spadeMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("H".equals(numArrays[0])) {
				heartMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("C".equals(numArrays[0])) {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			}
		} int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
			String[] numArrays = br.readLine().split(" ");
			if ("S".equals(numArrays[0])) {
				spadeMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("H".equals(numArrays[0])) {
				heartMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("C".equals(numArrays[0])) {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			}
		} {
			String[] numArrays = br.readLine().split(" ");
			if ("S".equals(numArrays[0])) {
				spadeMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("H".equals(numArrays[0])) {
				heartMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("C".equals(numArrays[0])) {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			}
		} String[] numArrays = br.readLine().split(" "); numArrays br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " if ("S".equals(numArrays[0])) {
				spadeMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("H".equals(numArrays[0])) {
				heartMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("C".equals(numArrays[0])) {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			} "S".equals(numArrays[0]) "S".equals "S" numArrays[0] numArrays 0 {
				spadeMap.put(Integer.parseInt(numArrays[1]), "◯");
			} spadeMap.put(Integer.parseInt(numArrays[1]), "◯") spadeMap.put spadeMap Integer.parseInt(numArrays[1]) Integer.parseInt Integer numArrays[1] numArrays 1 "◯" if ("H".equals(numArrays[0])) {
				heartMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("C".equals(numArrays[0])) {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			} "H".equals(numArrays[0]) "H".equals "H" numArrays[0] numArrays 0 {
				heartMap.put(Integer.parseInt(numArrays[1]), "◯");
			} heartMap.put(Integer.parseInt(numArrays[1]), "◯") heartMap.put heartMap Integer.parseInt(numArrays[1]) Integer.parseInt Integer numArrays[1] numArrays 1 "◯" if ("C".equals(numArrays[0])) {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			} "C".equals(numArrays[0]) "C".equals "C" numArrays[0] numArrays 0 {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} clubMap.put(Integer.parseInt(numArrays[1]), "◯") clubMap.put clubMap Integer.parseInt(numArrays[1]) Integer.parseInt Integer numArrays[1] numArrays 1 "◯" if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			} "D".equals(numArrays[0]) "D".equals "D" numArrays[0] numArrays 0 {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			} daiyaMap.put(Integer.parseInt(numArrays[1]), "◯") daiyaMap.put daiyaMap Integer.parseInt(numArrays[1]) Integer.parseInt Integer numArrays[1] numArrays 1 "◯" for (Integer key: spadeMap.keySet()) {
			if ("×".equals(spadeMap.get(key))) {
				spadeList.add(key);
			}
		} Integer key spadeMap.keySet() spadeMap.keySet spadeMap {
			if ("×".equals(spadeMap.get(key))) {
				spadeList.add(key);
			}
		} {
			if ("×".equals(spadeMap.get(key))) {
				spadeList.add(key);
			}
		} if ("×".equals(spadeMap.get(key))) {
				spadeList.add(key);
			} "×".equals(spadeMap.get(key)) "×".equals "×" spadeMap.get(key) spadeMap.get spadeMap key {
				spadeList.add(key);
			} spadeList.add(key) spadeList.add spadeList key Collections.sort(spadeList) Collections.sort Collections spadeList for (Integer key: heartMap.keySet()) {
			if ("×".equals(heartMap.get(key))) {
				heartList.add(key);
			}
		} Integer key heartMap.keySet() heartMap.keySet heartMap {
			if ("×".equals(heartMap.get(key))) {
				heartList.add(key);
			}
		} {
			if ("×".equals(heartMap.get(key))) {
				heartList.add(key);
			}
		} if ("×".equals(heartMap.get(key))) {
				heartList.add(key);
			} "×".equals(heartMap.get(key)) "×".equals "×" heartMap.get(key) heartMap.get heartMap key {
				heartList.add(key);
			} heartList.add(key) heartList.add heartList key Collections.sort(heartList) Collections.sort Collections heartList for (Integer key: clubMap.keySet()) {
			if ("×".equals(clubMap.get(key))) {
				clubList.add(key);
			}
		} Integer key clubMap.keySet() clubMap.keySet clubMap {
			if ("×".equals(clubMap.get(key))) {
				clubList.add(key);
			}
		} {
			if ("×".equals(clubMap.get(key))) {
				clubList.add(key);
			}
		} if ("×".equals(clubMap.get(key))) {
				clubList.add(key);
			} "×".equals(clubMap.get(key)) "×".equals "×" clubMap.get(key) clubMap.get clubMap key {
				clubList.add(key);
			} clubList.add(key) clubList.add clubList key Collections.sort(clubList) Collections.sort Collections clubList for (Integer key: daiyaMap.keySet()) {
			if ("×".equals(daiyaMap.get(key))) {
				daiyaList.add(key);
			}
		} Integer key daiyaMap.keySet() daiyaMap.keySet daiyaMap {
			if ("×".equals(daiyaMap.get(key))) {
				daiyaList.add(key);
			}
		} {
			if ("×".equals(daiyaMap.get(key))) {
				daiyaList.add(key);
			}
		} if ("×".equals(daiyaMap.get(key))) {
				daiyaList.add(key);
			} "×".equals(daiyaMap.get(key)) "×".equals "×" daiyaMap.get(key) daiyaMap.get daiyaMap key {
				daiyaList.add(key);
			} daiyaList.add(key) daiyaList.add daiyaList key Collections.sort(daiyaList) Collections.sort Collections daiyaList for (int i = 0; i < spadeList.size(); i++) {
			System.out.println("S " + spadeList.get(i));
		} int i = 0; int i = 0; i 0 i < spadeList.size() i spadeList.size() spadeList.size spadeList i++ i++ i {
			System.out.println("S " + spadeList.get(i));
		} {
			System.out.println("S " + spadeList.get(i));
		} System.out.println("S " + spadeList.get(i)) System.out.println System.out System System.out "S " + spadeList.get(i) "S " spadeList.get(i) spadeList.get spadeList i for (int i = 0; i < heartList.size(); i++) {
			System.out.println("H " + heartList.get(i));
		} int i = 0; int i = 0; i 0 i < heartList.size() i heartList.size() heartList.size heartList i++ i++ i {
			System.out.println("H " + heartList.get(i));
		} {
			System.out.println("H " + heartList.get(i));
		} System.out.println("H " + heartList.get(i)) System.out.println System.out System System.out "H " + heartList.get(i) "H " heartList.get(i) heartList.get heartList i for (int i = 0; i < clubList.size(); i++) {
			System.out.println("C " + clubList.get(i));
		} int i = 0; int i = 0; i 0 i < clubList.size() i clubList.size() clubList.size clubList i++ i++ i {
			System.out.println("C " + clubList.get(i));
		} {
			System.out.println("C " + clubList.get(i));
		} System.out.println("C " + clubList.get(i)) System.out.println System.out System System.out "C " + clubList.get(i) "C " clubList.get(i) clubList.get clubList i for (int i = 0; i < daiyaList.size(); i++) {
			System.out.println("D " + daiyaList.get(i));
		} int i = 0; int i = 0; i 0 i < daiyaList.size() i daiyaList.size() daiyaList.size daiyaList i++ i++ i {
			System.out.println("D " + daiyaList.get(i));
		} {
			System.out.println("D " + daiyaList.get(i));
		} System.out.println("D " + daiyaList.get(i)) System.out.println System.out System System.out "D " + daiyaList.get(i) "D " daiyaList.get(i) daiyaList.get daiyaList i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer count = Integer.parseInt(br.readLine());
		HashMap<Integer, String> spadeMap = new HashMap<Integer, String>();
		HashMap<Integer, String> heartMap = new HashMap<Integer, String>();
		HashMap<Integer, String> clubMap = new HashMap<Integer, String>();
		HashMap<Integer, String> daiyaMap = new HashMap<Integer, String>();
		ArrayList<Integer> spadeList = new ArrayList<Integer>();
		ArrayList<Integer> heartList = new ArrayList<Integer>();
		ArrayList<Integer> clubList = new ArrayList<Integer>();
		ArrayList<Integer> daiyaList = new ArrayList<Integer>();
		for (int i = 1; i < 14; i++) {
			spadeMap.put(i, "×");
			heartMap.put(i, "×");
			clubMap.put(i, "×");
			daiyaMap.put(i, "×");
		}
		for (int i = 0; i < count; i++) {
			String[] numArrays = br.readLine().split(" ");
			if ("S".equals(numArrays[0])) {
				spadeMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("H".equals(numArrays[0])) {
				heartMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("C".equals(numArrays[0])) {
				clubMap.put(Integer.parseInt(numArrays[1]), "◯");
			} else if ("D".equals(numArrays[0])) {
				daiyaMap.put(Integer.parseInt(numArrays[1]), "◯");
			}
		}
		for (Integer key: spadeMap.keySet()) {
			if ("×".equals(spadeMap.get(key))) {
				spadeList.add(key);
			}
		}
		Collections.sort(spadeList);
		for (Integer key: heartMap.keySet()) {
			if ("×".equals(heartMap.get(key))) {
				heartList.add(key);
			}
		}
		Collections.sort(heartList);
		for (Integer key: clubMap.keySet()) {
			if ("×".equals(clubMap.get(key))) {
				clubList.add(key);
			}
		}
		Collections.sort(clubList);
		for (Integer key: daiyaMap.keySet()) {
			if ("×".equals(daiyaMap.get(key))) {
				daiyaList.add(key);
			}
		}
		Collections.sort(daiyaList);
		for (int i = 0; i < spadeList.size(); i++) {
			System.out.println("S " + spadeList.get(i));
		}
		for (int i = 0; i < heartList.size(); i++) {
			System.out.println("H " + heartList.get(i));
		}
		for (int i = 0; i < clubList.size(); i++) {
			System.out.println("C " + clubList.get(i));
		}
		for (int i = 0; i < daiyaList.size(); i++) {
			System.out.println("D " + daiyaList.get(i));
		}
	}
}