import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int[][] card = new int[4][13];
		String[] card_symbol = { "S" , "H" , "C" , "D" };
		String in_symbol="";
		int in_num=0;

    	//初期化
    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			card[i][j] = 0;
    		}

    	}

    	Scanner sc= new Scanner( System.in );
    	int card_num = 0;
    	card_num = sc.nextInt();


    	for ( int i = 0 ; i < card_num ; i++ ) {
    		in_symbol = sc.next();
    		in_num = sc.nextInt();

        	switch( in_symbol ) {
        		case "S":
        			card[0][in_num-1] = 1;
        			break;
        		case "H":
        			card[1][in_num-1] = 1;
        			break;
        		case "C":
        			card[2][in_num-1] = 1;
        			break;
        		case "D":
        			card[3][in_num-1] = 1;
        			break;
        	}
    	}

    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		}
    	}
    	sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		int[][] card = new int[4][13];
		String[] card_symbol = { "S" , "H" , "C" , "D" };
		String in_symbol="";
		int in_num=0;

    	//初期化
    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			card[i][j] = 0;
    		}

    	}

    	Scanner sc= new Scanner( System.in );
    	int card_num = 0;
    	card_num = sc.nextInt();


    	for ( int i = 0 ; i < card_num ; i++ ) {
    		in_symbol = sc.next();
    		in_num = sc.nextInt();

        	switch( in_symbol ) {
        		case "S":
        			card[0][in_num-1] = 1;
        			break;
        		case "H":
        			card[1][in_num-1] = 1;
        			break;
        		case "C":
        			card[2][in_num-1] = 1;
        			break;
        		case "D":
        			card[3][in_num-1] = 1;
        			break;
        	}
    	}

    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		}
    	}
    	sc.close();
	}
} Main public static void main(String[] args) {

		int[][] card = new int[4][13];
		String[] card_symbol = { "S" , "H" , "C" , "D" };
		String in_symbol="";
		int in_num=0;

    	//初期化
    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			card[i][j] = 0;
    		}

    	}

    	Scanner sc= new Scanner( System.in );
    	int card_num = 0;
    	card_num = sc.nextInt();


    	for ( int i = 0 ; i < card_num ; i++ ) {
    		in_symbol = sc.next();
    		in_num = sc.nextInt();

        	switch( in_symbol ) {
        		case "S":
        			card[0][in_num-1] = 1;
        			break;
        		case "H":
        			card[1][in_num-1] = 1;
        			break;
        		case "C":
        			card[2][in_num-1] = 1;
        			break;
        		case "D":
        			card[3][in_num-1] = 1;
        			break;
        	}
    	}

    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		}
    	}
    	sc.close();
	} main {

		int[][] card = new int[4][13];
		String[] card_symbol = { "S" , "H" , "C" , "D" };
		String in_symbol="";
		int in_num=0;

    	//初期化
    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			card[i][j] = 0;
    		}

    	}

    	Scanner sc= new Scanner( System.in );
    	int card_num = 0;
    	card_num = sc.nextInt();


    	for ( int i = 0 ; i < card_num ; i++ ) {
    		in_symbol = sc.next();
    		in_num = sc.nextInt();

        	switch( in_symbol ) {
        		case "S":
        			card[0][in_num-1] = 1;
        			break;
        		case "H":
        			card[1][in_num-1] = 1;
        			break;
        		case "C":
        			card[2][in_num-1] = 1;
        			break;
        		case "D":
        			card[3][in_num-1] = 1;
        			break;
        	}
    	}

    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		}
    	}
    	sc.close();
	} int[][] card = new int[4][13]; card new int[4][13] 4 13 String[] card_symbol = { "S" , "H" , "C" , "D" }; card_symbol { "S" , "H" , "C" , "D" } "S" "H" "C" "D" String in_symbol=""; in_symbol "" int in_num=0; in_num 0 for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			card[i][j] = 0;
    		}

    	} int i = 0 ; int i = 0 ; i 0 i < card.length i card.length card card.length i++ i++ i {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			card[i][j] = 0;
    		}

    	} {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			card[i][j] = 0;
    		}

    	} for ( int j = 0 ; j < card[i].length ; j++ ) {
    			card[i][j] = 0;
    		} int j = 0 ; int j = 0 ; j 0 j < card[i].length j card[i].length card[i] card i card[i].length j++ j++ j {
    			card[i][j] = 0;
    		} {
    			card[i][j] = 0;
    		} card[i][j] = 0 card[i][j] card[i] card i j 0 Scanner sc= new Scanner( System.in ); sc new Scanner( System.in ) int card_num = 0; card_num 0 card_num = sc.nextInt() card_num sc.nextInt() sc.nextInt sc for ( int i = 0 ; i < card_num ; i++ ) {
    		in_symbol = sc.next();
    		in_num = sc.nextInt();

        	switch( in_symbol ) {
        		case "S":
        			card[0][in_num-1] = 1;
        			break;
        		case "H":
        			card[1][in_num-1] = 1;
        			break;
        		case "C":
        			card[2][in_num-1] = 1;
        			break;
        		case "D":
        			card[3][in_num-1] = 1;
        			break;
        	}
    	} int i = 0 ; int i = 0 ; i 0 i < card_num i card_num i++ i++ i {
    		in_symbol = sc.next();
    		in_num = sc.nextInt();

        	switch( in_symbol ) {
        		case "S":
        			card[0][in_num-1] = 1;
        			break;
        		case "H":
        			card[1][in_num-1] = 1;
        			break;
        		case "C":
        			card[2][in_num-1] = 1;
        			break;
        		case "D":
        			card[3][in_num-1] = 1;
        			break;
        	}
    	} {
    		in_symbol = sc.next();
    		in_num = sc.nextInt();

        	switch( in_symbol ) {
        		case "S":
        			card[0][in_num-1] = 1;
        			break;
        		case "H":
        			card[1][in_num-1] = 1;
        			break;
        		case "C":
        			card[2][in_num-1] = 1;
        			break;
        		case "D":
        			card[3][in_num-1] = 1;
        			break;
        	}
    	} in_symbol = sc.next() in_symbol sc.next() sc.next sc in_num = sc.nextInt() in_num sc.nextInt() sc.nextInt sc switch( in_symbol ) {
        		case "S":
        			card[0][in_num-1] = 1;
        			break;
        		case "H":
        			card[1][in_num-1] = 1;
        			break;
        		case "C":
        			card[2][in_num-1] = 1;
        			break;
        		case "D":
        			card[3][in_num-1] = 1;
        			break;
        	} in_symbol case "S": "S" case "S": card[0][in_num-1] = 1 card[0][in_num-1] card[0] card 0 in_num-1 in_num 1 1 break; case "H": "H" case "H": card[1][in_num-1] = 1 card[1][in_num-1] card[1] card 1 in_num-1 in_num 1 1 break; case "C": "C" case "C": card[2][in_num-1] = 1 card[2][in_num-1] card[2] card 2 in_num-1 in_num 1 1 break; case "D": "D" case "D": card[3][in_num-1] = 1 card[3][in_num-1] card[3] card 3 in_num-1 in_num 1 1 break; for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		}
    	} int i = 0 ; int i = 0 ; i 0 i < card.length i card.length card card.length i++ i++ i {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		}
    	} {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		}
    	} for ( int j = 0 ; j < card[i].length ; j++ ) {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		} int j = 0 ; int j = 0 ; j 0 j < card[i].length j card[i].length card[i] card i card[i].length j++ j++ j {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		} {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		} if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			} card[i][j] == 0 card[i][j] card[i] card i j 0 {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			} System.out.println( card_symbol[i] + " " + ( j + 1 ) ) System.out.println System.out System System.out card_symbol[i] + " " + ( j + 1 ) card_symbol[i] + " " + ( j + 1 ) card_symbol[i] card_symbol i " " ( j + 1 ) j 1 sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		int[][] card = new int[4][13];
		String[] card_symbol = { "S" , "H" , "C" , "D" };
		String in_symbol="";
		int in_num=0;

    	//初期化
    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			card[i][j] = 0;
    		}

    	}

    	Scanner sc= new Scanner( System.in );
    	int card_num = 0;
    	card_num = sc.nextInt();


    	for ( int i = 0 ; i < card_num ; i++ ) {
    		in_symbol = sc.next();
    		in_num = sc.nextInt();

        	switch( in_symbol ) {
        		case "S":
        			card[0][in_num-1] = 1;
        			break;
        		case "H":
        			card[1][in_num-1] = 1;
        			break;
        		case "C":
        			card[2][in_num-1] = 1;
        			break;
        		case "D":
        			card[3][in_num-1] = 1;
        			break;
        	}
    	}

    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		}
    	}
    	sc.close();
	}
} public class Main {

	public static void main(String[] args) {

		int[][] card = new int[4][13];
		String[] card_symbol = { "S" , "H" , "C" , "D" };
		String in_symbol="";
		int in_num=0;

    	//初期化
    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			card[i][j] = 0;
    		}

    	}

    	Scanner sc= new Scanner( System.in );
    	int card_num = 0;
    	card_num = sc.nextInt();


    	for ( int i = 0 ; i < card_num ; i++ ) {
    		in_symbol = sc.next();
    		in_num = sc.nextInt();

        	switch( in_symbol ) {
        		case "S":
        			card[0][in_num-1] = 1;
        			break;
        		case "H":
        			card[1][in_num-1] = 1;
        			break;
        		case "C":
        			card[2][in_num-1] = 1;
        			break;
        		case "D":
        			card[3][in_num-1] = 1;
        			break;
        	}
    	}

    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		}
    	}
    	sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int[][] card = new int[4][13];
		String[] card_symbol = { "S" , "H" , "C" , "D" };
		String in_symbol="";
		int in_num=0;

    	//初期化
    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			card[i][j] = 0;
    		}

    	}

    	Scanner sc= new Scanner( System.in );
    	int card_num = 0;
    	card_num = sc.nextInt();


    	for ( int i = 0 ; i < card_num ; i++ ) {
    		in_symbol = sc.next();
    		in_num = sc.nextInt();

        	switch( in_symbol ) {
        		case "S":
        			card[0][in_num-1] = 1;
        			break;
        		case "H":
        			card[1][in_num-1] = 1;
        			break;
        		case "C":
        			card[2][in_num-1] = 1;
        			break;
        		case "D":
        			card[3][in_num-1] = 1;
        			break;
        	}
    	}

    	for( int i = 0 ; i < card.length ; i++ ) {
    		for ( int j = 0 ; j < card[i].length ; j++ ) {
    			if( card[i][j] == 0 ) {
    				System.out.println( card_symbol[i] + " " + ( j + 1 ) );
    			}
    		}
    	}
    	sc.close();
	}
}
