import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int  n  = sc.nextInt();
  int  i,j;
  boolean[][] card = new boolean[4][13];

 for(i=0;i<n;i++){
  char suit = sc.next().charAt(0);
  int num = sc.nextInt();
   switch(suit){
   case 'S': card[0][num-1]=true;
   break;
   case 'H': card[1][num-1]=true;
   break;
   case 'C': card[2][num-1]=true;
   break;
   case 'D': card[3][num-1]=true;
   break;
   }
}
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1));
}

} 
 }
}
   

 import java.util.Scanner; Scanner java.util class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int  n  = sc.nextInt();
  int  i,j;
  boolean[][] card = new boolean[4][13];

 for(i=0;i<n;i++){
  char suit = sc.next().charAt(0);
  int num = sc.nextInt();
   switch(suit){
   case 'S': card[0][num-1]=true;
   break;
   case 'H': card[1][num-1]=true;
   break;
   case 'C': card[2][num-1]=true;
   break;
   case 'D': card[3][num-1]=true;
   break;
   }
}
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1));
}

} 
 }
} Main public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int  n  = sc.nextInt();
  int  i,j;
  boolean[][] card = new boolean[4][13];

 for(i=0;i<n;i++){
  char suit = sc.next().charAt(0);
  int num = sc.nextInt();
   switch(suit){
   case 'S': card[0][num-1]=true;
   break;
   case 'H': card[1][num-1]=true;
   break;
   case 'C': card[2][num-1]=true;
   break;
   case 'D': card[3][num-1]=true;
   break;
   }
}
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1));
}

} 
 } main {
 Scanner sc = new Scanner(System.in);
  int  n  = sc.nextInt();
  int  i,j;
  boolean[][] card = new boolean[4][13];

 for(i=0;i<n;i++){
  char suit = sc.next().charAt(0);
  int num = sc.nextInt();
   switch(suit){
   case 'S': card[0][num-1]=true;
   break;
   case 'H': card[1][num-1]=true;
   break;
   case 'C': card[2][num-1]=true;
   break;
   case 'D': card[3][num-1]=true;
   break;
   }
}
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1));
}

} 
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int  n  = sc.nextInt(); n sc.nextInt() sc.nextInt sc int  i i j; j boolean[][] card = new boolean[4][13]; card new boolean[4][13] 4 13 for(i=0;i<n;i++){
  char suit = sc.next().charAt(0);
  int num = sc.nextInt();
   switch(suit){
   case 'S': card[0][num-1]=true;
   break;
   case 'H': card[1][num-1]=true;
   break;
   case 'C': card[2][num-1]=true;
   break;
   case 'D': card[3][num-1]=true;
   break;
   }
} i=0; i=0 i 0 i<n i n i++ i++ i {
  char suit = sc.next().charAt(0);
  int num = sc.nextInt();
   switch(suit){
   case 'S': card[0][num-1]=true;
   break;
   case 'H': card[1][num-1]=true;
   break;
   case 'C': card[2][num-1]=true;
   break;
   case 'D': card[3][num-1]=true;
   break;
   }
} {
  char suit = sc.next().charAt(0);
  int num = sc.nextInt();
   switch(suit){
   case 'S': card[0][num-1]=true;
   break;
   case 'H': card[1][num-1]=true;
   break;
   case 'C': card[2][num-1]=true;
   break;
   case 'D': card[3][num-1]=true;
   break;
   }
} char suit = sc.next().charAt(0); suit sc.next().charAt(0) sc.next().charAt sc.next() sc.next sc 0 int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc switch(suit){
   case 'S': card[0][num-1]=true;
   break;
   case 'H': card[1][num-1]=true;
   break;
   case 'C': card[2][num-1]=true;
   break;
   case 'D': card[3][num-1]=true;
   break;
   } suit case 'S': 'S' case 'S': card[0][num-1]=true card[0][num-1] card[0] card 0 num-1 num 1 true break; case 'H': 'H' case 'H': card[1][num-1]=true card[1][num-1] card[1] card 1 num-1 num 1 true break; case 'C': 'C' case 'C': card[2][num-1]=true card[2][num-1] card[2] card 2 num-1 num 1 true break; case 'D': 'D' case 'D': card[3][num-1]=true card[3][num-1] card[3] card 3 num-1 num 1 true break; for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1));
}

} i=0; i=0 i 0 i<4 i 4 i++ i++ i {
    for(j=0;j<13;j++){
     if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1));
}

} {
    for(j=0;j<13;j++){
     if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1));
}

} for(j=0;j<13;j++){
     if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1));
} j=0; j=0 j 0 j<13 j 13 j++ j++ j {
     if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1));
} {
     if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1));
} if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1)); card[i][j]==false card[i][j] card[i] card i j false System.out.println("SHCD".charAt(i)+" "+(j+1)) System.out.println System.out System System.out "SHCD".charAt(i)+" "+(j+1) "SHCD".charAt(i)+" "+(j+1) "SHCD".charAt(i) "SHCD".charAt "SHCD" i " " (j+1) j 1 String[] args args
import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int  n  = sc.nextInt();
  int  i,j;
  boolean[][] card = new boolean[4][13];

 for(i=0;i<n;i++){
  char suit = sc.next().charAt(0);
  int num = sc.nextInt();
   switch(suit){
   case 'S': card[0][num-1]=true;
   break;
   case 'H': card[1][num-1]=true;
   break;
   case 'C': card[2][num-1]=true;
   break;
   case 'D': card[3][num-1]=true;
   break;
   }
}
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(card[i][j]==false)System.out.println("SHCD".charAt(i)+" "+(j+1));
}

} 
 }
}
   


