import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);

		   int [][] ali = new int[4][13];
	        String Card[]= {"S","H","C","D"};

	        int yy = scan.nextInt();
	        String kk ;
	        int zz;
	        int i;
	        int q;
	        for(i = 0; i < yy ; i++){
	        	kk= scan.next();
	        	zz= scan.nextInt();
	        	if(kk.equals(Card[0])){
	        		q=0;
	        		ali[q][zz-1]=213;
	        	}else if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	}

	        }



	        for ( i= 0; i<4; i++){
	        	for (int j=0; j<13;j++){
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		}
	        	}
	        }

	} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);

		   int [][] ali = new int[4][13];
	        String Card[]= {"S","H","C","D"};

	        int yy = scan.nextInt();
	        String kk ;
	        int zz;
	        int i;
	        int q;
	        for(i = 0; i < yy ; i++){
	        	kk= scan.next();
	        	zz= scan.nextInt();
	        	if(kk.equals(Card[0])){
	        		q=0;
	        		ali[q][zz-1]=213;
	        	}else if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	}

	        }



	        for ( i= 0; i<4; i++){
	        	for (int j=0; j<13;j++){
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		}
	        	}
	        }

	} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);

		   int [][] ali = new int[4][13];
	        String Card[]= {"S","H","C","D"};

	        int yy = scan.nextInt();
	        String kk ;
	        int zz;
	        int i;
	        int q;
	        for(i = 0; i < yy ; i++){
	        	kk= scan.next();
	        	zz= scan.nextInt();
	        	if(kk.equals(Card[0])){
	        		q=0;
	        		ali[q][zz-1]=213;
	        	}else if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	}

	        }



	        for ( i= 0; i<4; i++){
	        	for (int j=0; j<13;j++){
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		}
	        	}
	        } main {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);

		   int [][] ali = new int[4][13];
	        String Card[]= {"S","H","C","D"};

	        int yy = scan.nextInt();
	        String kk ;
	        int zz;
	        int i;
	        int q;
	        for(i = 0; i < yy ; i++){
	        	kk= scan.next();
	        	zz= scan.nextInt();
	        	if(kk.equals(Card[0])){
	        		q=0;
	        		ali[q][zz-1]=213;
	        	}else if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	}

	        }



	        for ( i= 0; i<4; i++){
	        	for (int j=0; j<13;j++){
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		}
	        	}
	        } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int [][] ali = new int[4][13]; ali new int[4][13] 4 13 String Card[]= {"S","H","C","D"}; Card {"S","H","C","D"} "S" "H" "C" "D" int yy = scan.nextInt(); yy scan.nextInt() scan.nextInt scan String kk ; kk int zz; zz int i; i int q; q for(i = 0; i < yy ; i++){
	        	kk= scan.next();
	        	zz= scan.nextInt();
	        	if(kk.equals(Card[0])){
	        		q=0;
	        		ali[q][zz-1]=213;
	        	}else if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	}

	        } i = 0; i = 0 i 0 i < yy i yy i++ i++ i {
	        	kk= scan.next();
	        	zz= scan.nextInt();
	        	if(kk.equals(Card[0])){
	        		q=0;
	        		ali[q][zz-1]=213;
	        	}else if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	}

	        } {
	        	kk= scan.next();
	        	zz= scan.nextInt();
	        	if(kk.equals(Card[0])){
	        		q=0;
	        		ali[q][zz-1]=213;
	        	}else if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	}

	        } kk= scan.next() kk scan.next() scan.next scan zz= scan.nextInt() zz scan.nextInt() scan.nextInt scan if(kk.equals(Card[0])){
	        		q=0;
	        		ali[q][zz-1]=213;
	        	}else if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	} kk.equals(Card[0]) kk.equals kk Card[0] Card 0 {
	        		q=0;
	        		ali[q][zz-1]=213;
	        	} q=0 q 0 ali[q][zz-1]=213 ali[q][zz-1] ali[q] ali q zz-1 zz 1 213 if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	} kk.equals(Card[1]) kk.equals kk Card[1] Card 1 {
	        		q=1;
	        		ali[q][zz-1]=213;
	        	} q=1 q 1 ali[q][zz-1]=213 ali[q][zz-1] ali[q] ali q zz-1 zz 1 213 if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	} kk.equals(Card[2]) kk.equals kk Card[2] Card 2 {
	        		q=2;
	        		ali[q][zz-1]=213;
	        	} q=2 q 2 ali[q][zz-1]=213 ali[q][zz-1] ali[q] ali q zz-1 zz 1 213 if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	} kk.equals(Card[3]) kk.equals kk Card[3] Card 3 {
	        		q=3;
	        		ali[q][zz-1]=213;
	        	} q=3 q 3 ali[q][zz-1]=213 ali[q][zz-1] ali[q] ali q zz-1 zz 1 213 for ( i= 0; i<4; i++){
	        	for (int j=0; j<13;j++){
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		}
	        	} i= 0; i= 0 i 0 i<4 i 4 i++ i++ i {
	        	for (int j=0; j<13;j++){
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		}
	        	} {
	        	for (int j=0; j<13;j++){
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		}
	        	} for (int j=0; j<13;j++){
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		} int j=0; int j=0; j 0 j<13 j 13 j++ j++ j {
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		} {
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		} if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		} ali[i][j]!= 213 ali[i][j] ali[i] ali i j 213 {
	        			System.out.println(Card[i]+ " " + (j +1));
	        		} System.out.println(Card[i]+ " " + (j +1)) System.out.println System.out System System.out Card[i]+ " " + (j +1) Card[i]+ " " + (j +1) Card[i] Card i " " (j +1) j 1 String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);

		   int [][] ali = new int[4][13];
	        String Card[]= {"S","H","C","D"};

	        int yy = scan.nextInt();
	        String kk ;
	        int zz;
	        int i;
	        int q;
	        for(i = 0; i < yy ; i++){
	        	kk= scan.next();
	        	zz= scan.nextInt();
	        	if(kk.equals(Card[0])){
	        		q=0;
	        		ali[q][zz-1]=213;
	        	}else if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	}

	        }



	        for ( i= 0; i<4; i++){
	        	for (int j=0; j<13;j++){
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		}
	        	}
	        }

	} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);

		   int [][] ali = new int[4][13];
	        String Card[]= {"S","H","C","D"};

	        int yy = scan.nextInt();
	        String kk ;
	        int zz;
	        int i;
	        int q;
	        for(i = 0; i < yy ; i++){
	        	kk= scan.next();
	        	zz= scan.nextInt();
	        	if(kk.equals(Card[0])){
	        		q=0;
	        		ali[q][zz-1]=213;
	        	}else if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	}

	        }



	        for ( i= 0; i<4; i++){
	        	for (int j=0; j<13;j++){
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		}
	        	}
	        }

	} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);

		   int [][] ali = new int[4][13];
	        String Card[]= {"S","H","C","D"};

	        int yy = scan.nextInt();
	        String kk ;
	        int zz;
	        int i;
	        int q;
	        for(i = 0; i < yy ; i++){
	        	kk= scan.next();
	        	zz= scan.nextInt();
	        	if(kk.equals(Card[0])){
	        		q=0;
	        		ali[q][zz-1]=213;
	        	}else if(kk.equals(Card[1])){
	        		q=1;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[2])){
	        		q=2;
	        		ali[q][zz-1]=213;
	        	}
	        	else if(kk.equals(Card[3])){
	        		q=3;
	        		ali[q][zz-1]=213;
	        	}

	        }



	        for ( i= 0; i<4; i++){
	        	for (int j=0; j<13;j++){
	        		if  (ali[i][j]!= 213){
	        			System.out.println(Card[i]+ " " + (j +1));
	        		}
	        		}
	        	}
	        }

	}