//????¶???????????????????????????¢????????????
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int n=kb.nextInt();
		
		/*??????????????????*/
		int count[][]=new int[4][13];
		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				count[i][j]=0;
			}
		}
		/*???????????§*/

		String mark;
		int nowCard;
		for(int i=0;i<n;i++){//??????????????????
			mark=kb.next();
			switch(mark){
			case "S":nowCard=kb.nextInt();
			count[0][nowCard-1]++;
			continue;
			
			case "H":nowCard=kb.nextInt();
			count[1][nowCard-1]++;continue;
			
			case "C":nowCard=kb.nextInt();
			count[2][nowCard-1]++;continue;
			
			case "D":nowCard=kb.nextInt();
			count[3][nowCard-1]++;continue;
			}
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			}
		}
		kb.close();
	}	
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int n=kb.nextInt();
		
		/*??????????????????*/
		int count[][]=new int[4][13];
		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				count[i][j]=0;
			}
		}
		/*???????????§*/

		String mark;
		int nowCard;
		for(int i=0;i<n;i++){//??????????????????
			mark=kb.next();
			switch(mark){
			case "S":nowCard=kb.nextInt();
			count[0][nowCard-1]++;
			continue;
			
			case "H":nowCard=kb.nextInt();
			count[1][nowCard-1]++;continue;
			
			case "C":nowCard=kb.nextInt();
			count[2][nowCard-1]++;continue;
			
			case "D":nowCard=kb.nextInt();
			count[3][nowCard-1]++;continue;
			}
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			}
		}
		kb.close();
	}	
} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int n=kb.nextInt();
		
		/*??????????????????*/
		int count[][]=new int[4][13];
		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				count[i][j]=0;
			}
		}
		/*???????????§*/

		String mark;
		int nowCard;
		for(int i=0;i<n;i++){//??????????????????
			mark=kb.next();
			switch(mark){
			case "S":nowCard=kb.nextInt();
			count[0][nowCard-1]++;
			continue;
			
			case "H":nowCard=kb.nextInt();
			count[1][nowCard-1]++;continue;
			
			case "C":nowCard=kb.nextInt();
			count[2][nowCard-1]++;continue;
			
			case "D":nowCard=kb.nextInt();
			count[3][nowCard-1]++;continue;
			}
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			}
		}
		kb.close();
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int n=kb.nextInt();
		
		/*??????????????????*/
		int count[][]=new int[4][13];
		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				count[i][j]=0;
			}
		}
		/*???????????§*/

		String mark;
		int nowCard;
		for(int i=0;i<n;i++){//??????????????????
			mark=kb.next();
			switch(mark){
			case "S":nowCard=kb.nextInt();
			count[0][nowCard-1]++;
			continue;
			
			case "H":nowCard=kb.nextInt();
			count[1][nowCard-1]++;continue;
			
			case "C":nowCard=kb.nextInt();
			count[2][nowCard-1]++;continue;
			
			case "D":nowCard=kb.nextInt();
			count[3][nowCard-1]++;continue;
			}
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			}
		}
		kb.close();
	} Scanner kb=new Scanner(System.in); kb new Scanner(System.in) int n=kb.nextInt(); n kb.nextInt() kb.nextInt kb int count[][]=new int[4][13]; count new int[4][13] 4 13 for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				count[i][j]=0;
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			for(int j=0;j<13;j++){
				count[i][j]=0;
			}
		} {
			for(int j=0;j<13;j++){
				count[i][j]=0;
			}
		} for(int j=0;j<13;j++){
				count[i][j]=0;
			} int j=0; int j=0; j 0 j<13 j 13 j++ j++ j {
				count[i][j]=0;
			} {
				count[i][j]=0;
			} count[i][j]=0 count[i][j] count[i] count i j 0 String mark; mark int nowCard; nowCard for(int i=0;i<n;i++){//??????????????????
			mark=kb.next();
			switch(mark){
			case "S":nowCard=kb.nextInt();
			count[0][nowCard-1]++;
			continue;
			
			case "H":nowCard=kb.nextInt();
			count[1][nowCard-1]++;continue;
			
			case "C":nowCard=kb.nextInt();
			count[2][nowCard-1]++;continue;
			
			case "D":nowCard=kb.nextInt();
			count[3][nowCard-1]++;continue;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {//??????????????????
			mark=kb.next();
			switch(mark){
			case "S":nowCard=kb.nextInt();
			count[0][nowCard-1]++;
			continue;
			
			case "H":nowCard=kb.nextInt();
			count[1][nowCard-1]++;continue;
			
			case "C":nowCard=kb.nextInt();
			count[2][nowCard-1]++;continue;
			
			case "D":nowCard=kb.nextInt();
			count[3][nowCard-1]++;continue;
			}
		} {//??????????????????
			mark=kb.next();
			switch(mark){
			case "S":nowCard=kb.nextInt();
			count[0][nowCard-1]++;
			continue;
			
			case "H":nowCard=kb.nextInt();
			count[1][nowCard-1]++;continue;
			
			case "C":nowCard=kb.nextInt();
			count[2][nowCard-1]++;continue;
			
			case "D":nowCard=kb.nextInt();
			count[3][nowCard-1]++;continue;
			}
		} mark=kb.next() mark kb.next() kb.next kb switch(mark){
			case "S":nowCard=kb.nextInt();
			count[0][nowCard-1]++;
			continue;
			
			case "H":nowCard=kb.nextInt();
			count[1][nowCard-1]++;continue;
			
			case "C":nowCard=kb.nextInt();
			count[2][nowCard-1]++;continue;
			
			case "D":nowCard=kb.nextInt();
			count[3][nowCard-1]++;continue;
			} mark case "S": "S" case "S": nowCard=kb.nextInt() nowCard kb.nextInt() kb.nextInt kb count[0][nowCard-1]++ count[0][nowCard-1] count[0] count 0 nowCard-1 nowCard 1 continue; case "H": "H" case "H": nowCard=kb.nextInt() nowCard kb.nextInt() kb.nextInt kb count[1][nowCard-1]++ count[1][nowCard-1] count[1] count 1 nowCard-1 nowCard 1 continue; case "C": "C" case "C": nowCard=kb.nextInt() nowCard kb.nextInt() kb.nextInt kb count[2][nowCard-1]++ count[2][nowCard-1] count[2] count 2 nowCard-1 nowCard 1 continue; case "D": "D" case "D": nowCard=kb.nextInt() nowCard kb.nextInt() kb.nextInt kb count[3][nowCard-1]++ count[3][nowCard-1] count[3] count 3 nowCard-1 nowCard 1 continue; for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			for(int j=0;j<13;j++){
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			}
		} {
			for(int j=0;j<13;j++){
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			}
		} for(int j=0;j<13;j++){
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			} int j=0; int j=0; j 0 j<13 j 13 j++ j++ j {
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			} {
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			} if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				} count[i][j]==0 count[i][j] count[i] count i j 0 {//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				} switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					} i case 0: 0 case 0: System.out.printf("S"+" %d\n",j+1) System.out.printf System.out System System.out "S"+" %d\n" "S" " %d\n" j+1 j 1 continue; case 1: 1 case 1: System.out.printf("H"+" %d\n",j+1) System.out.printf System.out System System.out "H"+" %d\n" "H" " %d\n" j+1 j 1 continue; case 2: 2 case 2: System.out.printf("C"+" %d\n",j+1) System.out.printf System.out System System.out "C"+" %d\n" "C" " %d\n" j+1 j 1 continue; case 3: 3 case 3: System.out.printf("D"+" %d\n",j+1) System.out.printf System.out System System.out "D"+" %d\n" "D" " %d\n" j+1 j 1 continue; kb.close() kb.close kb String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int n=kb.nextInt();
		
		/*??????????????????*/
		int count[][]=new int[4][13];
		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				count[i][j]=0;
			}
		}
		/*???????????§*/

		String mark;
		int nowCard;
		for(int i=0;i<n;i++){//??????????????????
			mark=kb.next();
			switch(mark){
			case "S":nowCard=kb.nextInt();
			count[0][nowCard-1]++;
			continue;
			
			case "H":nowCard=kb.nextInt();
			count[1][nowCard-1]++;continue;
			
			case "C":nowCard=kb.nextInt();
			count[2][nowCard-1]++;continue;
			
			case "D":nowCard=kb.nextInt();
			count[3][nowCard-1]++;continue;
			}
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			}
		}
		kb.close();
	}	
} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int n=kb.nextInt();
		
		/*??????????????????*/
		int count[][]=new int[4][13];
		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				count[i][j]=0;
			}
		}
		/*???????????§*/

		String mark;
		int nowCard;
		for(int i=0;i<n;i++){//??????????????????
			mark=kb.next();
			switch(mark){
			case "S":nowCard=kb.nextInt();
			count[0][nowCard-1]++;
			continue;
			
			case "H":nowCard=kb.nextInt();
			count[1][nowCard-1]++;continue;
			
			case "C":nowCard=kb.nextInt();
			count[2][nowCard-1]++;continue;
			
			case "D":nowCard=kb.nextInt();
			count[3][nowCard-1]++;continue;
			}
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			}
		}
		kb.close();
	}	
} Main
//????¶???????????????????????????¢????????????
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int n=kb.nextInt();
		
		/*??????????????????*/
		int count[][]=new int[4][13];
		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				count[i][j]=0;
			}
		}
		/*???????????§*/

		String mark;
		int nowCard;
		for(int i=0;i<n;i++){//??????????????????
			mark=kb.next();
			switch(mark){
			case "S":nowCard=kb.nextInt();
			count[0][nowCard-1]++;
			continue;
			
			case "H":nowCard=kb.nextInt();
			count[1][nowCard-1]++;continue;
			
			case "C":nowCard=kb.nextInt();
			count[2][nowCard-1]++;continue;
			
			case "D":nowCard=kb.nextInt();
			count[3][nowCard-1]++;continue;
			}
		}

		for(int i=0;i<4;i++){
			for(int j=0;j<13;j++){
				if(count[i][j]==0){//
					switch(i){
					case 0:System.out.printf("S"+" %d\n",j+1);continue;
					case 1:System.out.printf("H"+" %d\n",j+1);continue;
					case 2:System.out.printf("C"+" %d\n",j+1);continue;
					case 3:System.out.printf("D"+" %d\n",j+1);continue;
					}
				}
			}
		}
		kb.close();
	}	
}