import java.util.Scanner;
class Main {
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int tate,yoko;
		int [][] box = new int [4][13];

			for(tate = 0; tate < 4; tate++){
				for(yoko = 0; yoko < 13; yoko++){

				//?????????1??¨?????§?????????
				box[tate][yoko]=0;
				}
			}

			for(tate = 0; tate < n; tate++){ 

					String str = scanner.next();
					yoko = scanner.nextInt();
					

					if(str.equals("S")){
					box[0][yoko-1]=1;
					}
					else if(str.equals("H")){
					box[1][yoko-1]=1;
					}
					else if(str.equals("C")){
					box[2][yoko-1]=1;
					}
					else if(str.equals("D")){
					box[3][yoko-1]=1;
					}
			}	

			for(tate = 0; tate < 4; tate++){ 

				for(yoko = 0; yoko < 13; yoko++){

					if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					}
					if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					}
					if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					}
					if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					}
					
				}
			}
	}
} import java.util.Scanner; Scanner java.util class Main {
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int tate,yoko;
		int [][] box = new int [4][13];

			for(tate = 0; tate < 4; tate++){
				for(yoko = 0; yoko < 13; yoko++){

				//?????????1??¨?????§?????????
				box[tate][yoko]=0;
				}
			}

			for(tate = 0; tate < n; tate++){ 

					String str = scanner.next();
					yoko = scanner.nextInt();
					

					if(str.equals("S")){
					box[0][yoko-1]=1;
					}
					else if(str.equals("H")){
					box[1][yoko-1]=1;
					}
					else if(str.equals("C")){
					box[2][yoko-1]=1;
					}
					else if(str.equals("D")){
					box[3][yoko-1]=1;
					}
			}	

			for(tate = 0; tate < 4; tate++){ 

				for(yoko = 0; yoko < 13; yoko++){

					if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					}
					if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					}
					if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					}
					if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					}
					
				}
			}
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int tate,yoko;
		int [][] box = new int [4][13];

			for(tate = 0; tate < 4; tate++){
				for(yoko = 0; yoko < 13; yoko++){

				//?????????1??¨?????§?????????
				box[tate][yoko]=0;
				}
			}

			for(tate = 0; tate < n; tate++){ 

					String str = scanner.next();
					yoko = scanner.nextInt();
					

					if(str.equals("S")){
					box[0][yoko-1]=1;
					}
					else if(str.equals("H")){
					box[1][yoko-1]=1;
					}
					else if(str.equals("C")){
					box[2][yoko-1]=1;
					}
					else if(str.equals("D")){
					box[3][yoko-1]=1;
					}
			}	

			for(tate = 0; tate < 4; tate++){ 

				for(yoko = 0; yoko < 13; yoko++){

					if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					}
					if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					}
					if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					}
					if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					}
					
				}
			}
	} main {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int tate,yoko;
		int [][] box = new int [4][13];

			for(tate = 0; tate < 4; tate++){
				for(yoko = 0; yoko < 13; yoko++){

				//?????????1??¨?????§?????????
				box[tate][yoko]=0;
				}
			}

			for(tate = 0; tate < n; tate++){ 

					String str = scanner.next();
					yoko = scanner.nextInt();
					

					if(str.equals("S")){
					box[0][yoko-1]=1;
					}
					else if(str.equals("H")){
					box[1][yoko-1]=1;
					}
					else if(str.equals("C")){
					box[2][yoko-1]=1;
					}
					else if(str.equals("D")){
					box[3][yoko-1]=1;
					}
			}	

			for(tate = 0; tate < 4; tate++){ 

				for(yoko = 0; yoko < 13; yoko++){

					if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					}
					if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					}
					if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					}
					if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					}
					
				}
			}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int tate tate yoko; yoko int [][] box = new int [4][13]; box new int [4][13] 4 13 for(tate = 0; tate < 4; tate++){
				for(yoko = 0; yoko < 13; yoko++){

				//?????????1??¨?????§?????????
				box[tate][yoko]=0;
				}
			} tate = 0; tate = 0 tate 0 tate < 4 tate 4 tate++ tate++ tate {
				for(yoko = 0; yoko < 13; yoko++){

				//?????????1??¨?????§?????????
				box[tate][yoko]=0;
				}
			} {
				for(yoko = 0; yoko < 13; yoko++){

				//?????????1??¨?????§?????????
				box[tate][yoko]=0;
				}
			} for(yoko = 0; yoko < 13; yoko++){

				//?????????1??¨?????§?????????
				box[tate][yoko]=0;
				} yoko = 0; yoko = 0 yoko 0 yoko < 13 yoko 13 yoko++ yoko++ yoko {

				//?????????1??¨?????§?????????
				box[tate][yoko]=0;
				} {

				//?????????1??¨?????§?????????
				box[tate][yoko]=0;
				} box[tate][yoko]=0 box[tate][yoko] box[tate] box tate yoko 0 for(tate = 0; tate < n; tate++){ 

					String str = scanner.next();
					yoko = scanner.nextInt();
					

					if(str.equals("S")){
					box[0][yoko-1]=1;
					}
					else if(str.equals("H")){
					box[1][yoko-1]=1;
					}
					else if(str.equals("C")){
					box[2][yoko-1]=1;
					}
					else if(str.equals("D")){
					box[3][yoko-1]=1;
					}
			} tate = 0; tate = 0 tate 0 tate < n tate n tate++ tate++ tate { 

					String str = scanner.next();
					yoko = scanner.nextInt();
					

					if(str.equals("S")){
					box[0][yoko-1]=1;
					}
					else if(str.equals("H")){
					box[1][yoko-1]=1;
					}
					else if(str.equals("C")){
					box[2][yoko-1]=1;
					}
					else if(str.equals("D")){
					box[3][yoko-1]=1;
					}
			} { 

					String str = scanner.next();
					yoko = scanner.nextInt();
					

					if(str.equals("S")){
					box[0][yoko-1]=1;
					}
					else if(str.equals("H")){
					box[1][yoko-1]=1;
					}
					else if(str.equals("C")){
					box[2][yoko-1]=1;
					}
					else if(str.equals("D")){
					box[3][yoko-1]=1;
					}
			} String str = scanner.next(); str scanner.next() scanner.next scanner yoko = scanner.nextInt() yoko scanner.nextInt() scanner.nextInt scanner if(str.equals("S")){
					box[0][yoko-1]=1;
					}
					else if(str.equals("H")){
					box[1][yoko-1]=1;
					}
					else if(str.equals("C")){
					box[2][yoko-1]=1;
					}
					else if(str.equals("D")){
					box[3][yoko-1]=1;
					} str.equals("S") str.equals str "S" {
					box[0][yoko-1]=1;
					} box[0][yoko-1]=1 box[0][yoko-1] box[0] box 0 yoko-1 yoko 1 1 if(str.equals("H")){
					box[1][yoko-1]=1;
					}
					else if(str.equals("C")){
					box[2][yoko-1]=1;
					}
					else if(str.equals("D")){
					box[3][yoko-1]=1;
					} str.equals("H") str.equals str "H" {
					box[1][yoko-1]=1;
					} box[1][yoko-1]=1 box[1][yoko-1] box[1] box 1 yoko-1 yoko 1 1 if(str.equals("C")){
					box[2][yoko-1]=1;
					}
					else if(str.equals("D")){
					box[3][yoko-1]=1;
					} str.equals("C") str.equals str "C" {
					box[2][yoko-1]=1;
					} box[2][yoko-1]=1 box[2][yoko-1] box[2] box 2 yoko-1 yoko 1 1 if(str.equals("D")){
					box[3][yoko-1]=1;
					} str.equals("D") str.equals str "D" {
					box[3][yoko-1]=1;
					} box[3][yoko-1]=1 box[3][yoko-1] box[3] box 3 yoko-1 yoko 1 1 for(tate = 0; tate < 4; tate++){ 

				for(yoko = 0; yoko < 13; yoko++){

					if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					}
					if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					}
					if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					}
					if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					}
					
				}
			} tate = 0; tate = 0 tate 0 tate < 4 tate 4 tate++ tate++ tate { 

				for(yoko = 0; yoko < 13; yoko++){

					if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					}
					if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					}
					if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					}
					if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					}
					
				}
			} { 

				for(yoko = 0; yoko < 13; yoko++){

					if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					}
					if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					}
					if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					}
					if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					}
					
				}
			} for(yoko = 0; yoko < 13; yoko++){

					if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					}
					if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					}
					if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					}
					if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					}
					
				} yoko = 0; yoko = 0 yoko 0 yoko < 13 yoko 13 yoko++ yoko++ yoko {

					if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					}
					if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					}
					if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					}
					if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					}
					
				} {

					if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					}
					if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					}
					if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					}
					if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					}
					
				} if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					} tate  == 0 tate 0 {
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					} if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						} box[0][yoko]==0 box[0][yoko] box[0] box 0 yoko 0 {
							System.out.println("S "+(yoko+1));
						} System.out.println("S "+(yoko+1)) System.out.println System.out System System.out "S "+(yoko+1) "S " (yoko+1) yoko 1 if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					} tate  == 1 tate 1 {
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					} if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						} box[1][yoko]==0 box[1][yoko] box[1] box 1 yoko 0 {
							System.out.println("H "+(yoko+1));
						} System.out.println("H "+(yoko+1)) System.out.println System.out System System.out "H "+(yoko+1) "H " (yoko+1) yoko 1 if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					} tate  == 2 tate 2 {
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					} if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						} box[2][yoko]==0 box[2][yoko] box[2] box 2 yoko 0 {
							System.out.println("C "+(yoko+1));
						} System.out.println("C "+(yoko+1)) System.out.println System.out System System.out "C "+(yoko+1) "C " (yoko+1) yoko 1 if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					} tate  == 3 tate 3 {
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					} if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						} box[3][yoko]==0 box[3][yoko] box[3] box 3 yoko 0 {
							System.out.println("D "+(yoko+1));
						} System.out.println("D "+(yoko+1)) System.out.println System.out System System.out "D "+(yoko+1) "D " (yoko+1) yoko 1 String[] args args
import java.util.Scanner;
class Main {
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int tate,yoko;
		int [][] box = new int [4][13];

			for(tate = 0; tate < 4; tate++){
				for(yoko = 0; yoko < 13; yoko++){

				//?????????1??¨?????§?????????
				box[tate][yoko]=0;
				}
			}

			for(tate = 0; tate < n; tate++){ 

					String str = scanner.next();
					yoko = scanner.nextInt();
					

					if(str.equals("S")){
					box[0][yoko-1]=1;
					}
					else if(str.equals("H")){
					box[1][yoko-1]=1;
					}
					else if(str.equals("C")){
					box[2][yoko-1]=1;
					}
					else if(str.equals("D")){
					box[3][yoko-1]=1;
					}
			}	

			for(tate = 0; tate < 4; tate++){ 

				for(yoko = 0; yoko < 13; yoko++){

					if(tate  == 0){
							if(box[0][yoko]==0){
							System.out.println("S "+(yoko+1));
						}
					}
					if(tate  == 1){
						if(box[1][yoko]==0){
							System.out.println("H "+(yoko+1));
						}
					}
					if(tate  == 2){
						if(box[2][yoko]==0){
							System.out.println("C "+(yoko+1));
						}
					}
					if(tate  == 3){
						if(box[3][yoko]==0){
							System.out.println("D "+(yoko+1));
						}
					}
					
				}
			}
	}
}