
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;

public class Main {

	public static void main(String[] args) {
		new Main().run();
	}

	public void run(){

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String inputData;
        Map<String,String> cardMap = new HashMap<String,String>();
        String[] typeArray = {"S","H","C","D"};
        try {
        	int cardNum = Integer.parseInt(reader.readLine());
        	int cnt = 0;
        	//??\???
	        while(true){
				inputData = reader.readLine();
				cardMap.put(String.valueOf(cnt), inputData);
				cnt++;
	            if(cnt == cardNum){
	            	break;
	            }
	        }

	        //??????
	        for(int j=0;j<typeArray.length;j++){
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        }

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util public class Main {

	public static void main(String[] args) {
		new Main().run();
	}

	public void run(){

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String inputData;
        Map<String,String> cardMap = new HashMap<String,String>();
        String[] typeArray = {"S","H","C","D"};
        try {
        	int cardNum = Integer.parseInt(reader.readLine());
        	int cnt = 0;
        	//??\???
	        while(true){
				inputData = reader.readLine();
				cardMap.put(String.valueOf(cnt), inputData);
				cnt++;
	            if(cnt == cardNum){
	            	break;
	            }
	        }

	        //??????
	        for(int j=0;j<typeArray.length;j++){
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        }

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

} Main public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public void run(){

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String inputData;
        Map<String,String> cardMap = new HashMap<String,String>();
        String[] typeArray = {"S","H","C","D"};
        try {
        	int cardNum = Integer.parseInt(reader.readLine());
        	int cnt = 0;
        	//??\???
	        while(true){
				inputData = reader.readLine();
				cardMap.put(String.valueOf(cnt), inputData);
				cnt++;
	            if(cnt == cardNum){
	            	break;
	            }
	        }

	        //??????
	        for(int j=0;j<typeArray.length;j++){
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        }

		} catch (IOException e) {
			e.printStackTrace();
		}

	} run {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String inputData;
        Map<String,String> cardMap = new HashMap<String,String>();
        String[] typeArray = {"S","H","C","D"};
        try {
        	int cardNum = Integer.parseInt(reader.readLine());
        	int cnt = 0;
        	//??\???
	        while(true){
				inputData = reader.readLine();
				cardMap.put(String.valueOf(cnt), inputData);
				cnt++;
	            if(cnt == cardNum){
	            	break;
	            }
	        }

	        //??????
	        for(int j=0;j<typeArray.length;j++){
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        }

		} catch (IOException e) {
			e.printStackTrace();
		}

	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String inputData; inputData Map<String,String> cardMap = new HashMap<String,String>(); cardMap new HashMap<String,String>() String[] typeArray = {"S","H","C","D"}; typeArray {"S","H","C","D"} "S" "H" "C" "D" try {
        	int cardNum = Integer.parseInt(reader.readLine());
        	int cnt = 0;
        	//??\???
	        while(true){
				inputData = reader.readLine();
				cardMap.put(String.valueOf(cnt), inputData);
				cnt++;
	            if(cnt == cardNum){
	            	break;
	            }
	        }

	        //??????
	        for(int j=0;j<typeArray.length;j++){
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        }

		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
        	int cardNum = Integer.parseInt(reader.readLine());
        	int cnt = 0;
        	//??\???
	        while(true){
				inputData = reader.readLine();
				cardMap.put(String.valueOf(cnt), inputData);
				cnt++;
	            if(cnt == cardNum){
	            	break;
	            }
	        }

	        //??????
	        for(int j=0;j<typeArray.length;j++){
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        }

		} int cardNum = Integer.parseInt(reader.readLine()); cardNum Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader int cnt = 0; cnt 0 while(true){
				inputData = reader.readLine();
				cardMap.put(String.valueOf(cnt), inputData);
				cnt++;
	            if(cnt == cardNum){
	            	break;
	            }
	        } true {
				inputData = reader.readLine();
				cardMap.put(String.valueOf(cnt), inputData);
				cnt++;
	            if(cnt == cardNum){
	            	break;
	            }
	        } inputData = reader.readLine() inputData reader.readLine() reader.readLine reader cardMap.put(String.valueOf(cnt), inputData) cardMap.put cardMap String.valueOf(cnt) String.valueOf String cnt inputData cnt++ cnt if(cnt == cardNum){
	            	break;
	            } cnt == cardNum cnt cardNum {
	            	break;
	            } break; for(int j=0;j<typeArray.length;j++){
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        } int j=0; int j=0; j 0 j<typeArray.length j typeArray.length typeArray typeArray.length j++ j++ j {
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        } {
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        } for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        } int i=1 ; int i=1 ; i 1 i < 14 i 14 i++ i++ i {
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        } {
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        } String checkString = typeArray[j]+" "+ i; checkString typeArray[j]+" "+ i typeArray[j]+" "+ i typeArray[j] typeArray j " " i if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	} !cardMap.containsValue(checkString) cardMap.containsValue(checkString) cardMap.containsValue cardMap checkString {
		        		System.out.println(checkString);
		        	} System.out.println(checkString) System.out.println System.out System System.out checkString public class Main {

	public static void main(String[] args) {
		new Main().run();
	}

	public void run(){

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String inputData;
        Map<String,String> cardMap = new HashMap<String,String>();
        String[] typeArray = {"S","H","C","D"};
        try {
        	int cardNum = Integer.parseInt(reader.readLine());
        	int cnt = 0;
        	//??\???
	        while(true){
				inputData = reader.readLine();
				cardMap.put(String.valueOf(cnt), inputData);
				cnt++;
	            if(cnt == cardNum){
	            	break;
	            }
	        }

	        //??????
	        for(int j=0;j<typeArray.length;j++){
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        }

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

} public class Main {

	public static void main(String[] args) {
		new Main().run();
	}

	public void run(){

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String inputData;
        Map<String,String> cardMap = new HashMap<String,String>();
        String[] typeArray = {"S","H","C","D"};
        try {
        	int cardNum = Integer.parseInt(reader.readLine());
        	int cnt = 0;
        	//??\???
	        while(true){
				inputData = reader.readLine();
				cardMap.put(String.valueOf(cnt), inputData);
				cnt++;
	            if(cnt == cardNum){
	            	break;
	            }
	        }

	        //??????
	        for(int j=0;j<typeArray.length;j++){
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        }

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;

public class Main {

	public static void main(String[] args) {
		new Main().run();
	}

	public void run(){

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String inputData;
        Map<String,String> cardMap = new HashMap<String,String>();
        String[] typeArray = {"S","H","C","D"};
        try {
        	int cardNum = Integer.parseInt(reader.readLine());
        	int cnt = 0;
        	//??\???
	        while(true){
				inputData = reader.readLine();
				cardMap.put(String.valueOf(cnt), inputData);
				cnt++;
	            if(cnt == cardNum){
	            	break;
	            }
	        }

	        //??????
	        for(int j=0;j<typeArray.length;j++){
		        for(int i=1 ;i < 14;i++){
		        	String checkString = typeArray[j]+" "+ i;
		        	if(!cardMap.containsValue(checkString)){
		        		System.out.println(checkString);
		        	}
		        }
	        }

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

}