include<stido.h>

int main()
{
  int card[4][13];
  int i,j,a,k,c;
  char b;
  
 for(i=0;i<4;i++){
          for(j=0;j<13;j++){
                   int card[i][j]=0;
                            }
                  }
  
 scanf("%d",&a);

 for(k=0;k<=n;k++){ 
               scanf("%c %d",&b,&c);
               if(b=='S')i=0;
               if(b=='H')i=1;
               if(b=='C')i=2;
               if(b=='D')i=3;
               
               card[i][c-1]=1;
                  }

 for(i=0;i<4;i++){
                  for(j=0;j<13;j++){
                                    if(card[i][j]==0){
                                                      if(b=='S')printf("S %d\n",j-1);
                                                      if(b=='H')printf("H %d\n",j-1);
                                                      if(b=='C')printf("C %d\n",j-1);
                                                      if(b=='D')printf("D %d\n",j-1);
                                                      } 
                                    }
                 }

return 0;
}



