import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;



public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		//SHDC?????????????????????????????????
		int[] cardS=new int[13];
		int[] cardH=new int[13];
		int[] cardD=new int[13];
		int[] cardC=new int[13];
		Arrays.fill(cardS, 0);
		Arrays.fill(cardH, 0);
		Arrays.fill(cardD, 0);
		Arrays.fill(cardC, 0);

		try{
		int n=Integer.parseInt(reader.readLine());//n?????????

		for(int i=0;i<n;i++){
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		}

		for(int i=0;i<13;i++){
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		}


		reader.close();

		}catch(IOException e){
			System.out.println("??¨??????"+e);
		}


	}

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


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		//SHDC?????????????????????????????????
		int[] cardS=new int[13];
		int[] cardH=new int[13];
		int[] cardD=new int[13];
		int[] cardC=new int[13];
		Arrays.fill(cardS, 0);
		Arrays.fill(cardH, 0);
		Arrays.fill(cardD, 0);
		Arrays.fill(cardC, 0);

		try{
		int n=Integer.parseInt(reader.readLine());//n?????????

		for(int i=0;i<n;i++){
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		}

		for(int i=0;i<13;i++){
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		}


		reader.close();

		}catch(IOException e){
			System.out.println("??¨??????"+e);
		}


	}

} Main public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		//SHDC?????????????????????????????????
		int[] cardS=new int[13];
		int[] cardH=new int[13];
		int[] cardD=new int[13];
		int[] cardC=new int[13];
		Arrays.fill(cardS, 0);
		Arrays.fill(cardH, 0);
		Arrays.fill(cardD, 0);
		Arrays.fill(cardC, 0);

		try{
		int n=Integer.parseInt(reader.readLine());//n?????????

		for(int i=0;i<n;i++){
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		}

		for(int i=0;i<13;i++){
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		}


		reader.close();

		}catch(IOException e){
			System.out.println("??¨??????"+e);
		}


	} main {

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		//SHDC?????????????????????????????????
		int[] cardS=new int[13];
		int[] cardH=new int[13];
		int[] cardD=new int[13];
		int[] cardC=new int[13];
		Arrays.fill(cardS, 0);
		Arrays.fill(cardH, 0);
		Arrays.fill(cardD, 0);
		Arrays.fill(cardC, 0);

		try{
		int n=Integer.parseInt(reader.readLine());//n?????????

		for(int i=0;i<n;i++){
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		}

		for(int i=0;i<13;i++){
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		}


		reader.close();

		}catch(IOException e){
			System.out.println("??¨??????"+e);
		}


	} BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int[] cardS=new int[13]; cardS new int[13] 13 int[] cardH=new int[13]; cardH new int[13] 13 int[] cardD=new int[13]; cardD new int[13] 13 int[] cardC=new int[13]; cardC new int[13] 13 Arrays.fill(cardS, 0) Arrays.fill Arrays cardS 0 Arrays.fill(cardH, 0) Arrays.fill Arrays cardH 0 Arrays.fill(cardD, 0) Arrays.fill Arrays cardD 0 Arrays.fill(cardC, 0) Arrays.fill Arrays cardC 0 try{
		int n=Integer.parseInt(reader.readLine());//n?????????

		for(int i=0;i<n;i++){
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		}

		for(int i=0;i<13;i++){
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		}


		reader.close();

		}catch(IOException e){
			System.out.println("??¨??????"+e);
		} catch(IOException e){
			System.out.println("??¨??????"+e);
		} IOException e {
			System.out.println("??¨??????"+e);
		} System.out.println("??¨??????"+e) System.out.println System.out System System.out "??¨??????"+e "??¨??????" e {
		int n=Integer.parseInt(reader.readLine());//n?????????

		for(int i=0;i<n;i++){
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		}

		for(int i=0;i<13;i++){
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		}


		reader.close();

		} int n=Integer.parseInt(reader.readLine()); n Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader for(int i=0;i<n;i++){
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		} {
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		} String text=reader.readLine(); text reader.readLine() reader.readLine reader String[] str=text.split(" "); str text.split(" ") text.split text " " int x=Integer.parseInt(str[1]); x Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			} str[0] str 0 case"S": "S" case"S": cardS[x-1]=1 cardS[x-1] cardS x-1 x 1 1 break; case"H": "H" case"H": cardH[x-1]=1 cardH[x-1] cardH x-1 x 1 1 break; case"D": "D" case"D": cardD[x-1]=1 cardD[x-1] cardD x-1 x 1 1 break; case"C": "C" case"C": cardC[x-1]=1 cardC[x-1] cardC x-1 x 1 1 break; for(int i=0;i<13;i++){
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		} {
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		} if(cardS[i]==0){
				System.out.println("S "+(i+1));
			} cardS[i]==0 cardS[i] cardS i 0 {
				System.out.println("S "+(i+1));
			} System.out.println("S "+(i+1)) System.out.println System.out System System.out "S "+(i+1) "S " (i+1) i 1 for(int i=0;i<13;i++){
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		} {
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		} if(cardH[i]==0){
				System.out.println("H "+(i+1));
			} cardH[i]==0 cardH[i] cardH i 0 {
				System.out.println("H "+(i+1));
			} System.out.println("H "+(i+1)) System.out.println System.out System System.out "H "+(i+1) "H " (i+1) i 1 for(int i=0;i<13;i++){
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		} {
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		} if(cardC[i]==0){
				System.out.println("C "+(i+1));
			} cardC[i]==0 cardC[i] cardC i 0 {
				System.out.println("C "+(i+1));
			} System.out.println("C "+(i+1)) System.out.println System.out System System.out "C "+(i+1) "C " (i+1) i 1 for(int i=0;i<13;i++){
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		} int i=0; int i=0; i 0 i<13 i 13 i++ i++ i {
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		} {
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		} if(cardD[i]==0){
				System.out.println("D "+(i+1));
			} cardD[i]==0 cardD[i] cardD i 0 {
				System.out.println("D "+(i+1));
			} System.out.println("D "+(i+1)) System.out.println System.out System System.out "D "+(i+1) "D " (i+1) i 1 reader.close() reader.close reader String[] args args public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		//SHDC?????????????????????????????????
		int[] cardS=new int[13];
		int[] cardH=new int[13];
		int[] cardD=new int[13];
		int[] cardC=new int[13];
		Arrays.fill(cardS, 0);
		Arrays.fill(cardH, 0);
		Arrays.fill(cardD, 0);
		Arrays.fill(cardC, 0);

		try{
		int n=Integer.parseInt(reader.readLine());//n?????????

		for(int i=0;i<n;i++){
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		}

		for(int i=0;i<13;i++){
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		}


		reader.close();

		}catch(IOException e){
			System.out.println("??¨??????"+e);
		}


	}

} public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		//SHDC?????????????????????????????????
		int[] cardS=new int[13];
		int[] cardH=new int[13];
		int[] cardD=new int[13];
		int[] cardC=new int[13];
		Arrays.fill(cardS, 0);
		Arrays.fill(cardH, 0);
		Arrays.fill(cardD, 0);
		Arrays.fill(cardC, 0);

		try{
		int n=Integer.parseInt(reader.readLine());//n?????????

		for(int i=0;i<n;i++){
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		}

		for(int i=0;i<13;i++){
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		}


		reader.close();

		}catch(IOException e){
			System.out.println("??¨??????"+e);
		}


	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;



public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		//SHDC?????????????????????????????????
		int[] cardS=new int[13];
		int[] cardH=new int[13];
		int[] cardD=new int[13];
		int[] cardC=new int[13];
		Arrays.fill(cardS, 0);
		Arrays.fill(cardH, 0);
		Arrays.fill(cardD, 0);
		Arrays.fill(cardC, 0);

		try{
		int n=Integer.parseInt(reader.readLine());//n?????????

		for(int i=0;i<n;i++){
			String text=reader.readLine();
			String[] str=text.split(" ");
			int x=Integer.parseInt(str[1]);

			switch(str[0]){//???????????????????????????????????¨????????????1?????£??\???

			case"S":
				cardS[x-1]=1;
				break;
			case"H":
				cardH[x-1]=1;
				break;
			case"D":
				cardD[x-1]=1;
				break;
			case"C":
				cardC[x-1]=1;
				break;
			}
		}

		for(int i=0;i<13;i++){
			if(cardS[i]==0){
				System.out.println("S "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardH[i]==0){
				System.out.println("H "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardC[i]==0){
				System.out.println("C "+(i+1));
			}
		}
		for(int i=0;i<13;i++){
			if(cardD[i]==0){
				System.out.println("D "+(i+1));
			}
		}


		reader.close();

		}catch(IOException e){
			System.out.println("??¨??????"+e);
		}


	}

}