import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
int n=Integer.parseInt(str);
int[][] tramp=new int[4][13];
if(n==52)  return;
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
int c=Integer.parseInt(card[1])-1;
switch(card[0]){
case "S": tramp[0][c]=1; break;
case "H": tramp[1][c]=1; break;
case "C": tramp[2][c]=1; break;
case "D": tramp[3][c]=1; break;
default:  break;
}
}
for(int j=0; j<4; j++){
for(int k=0; k<13; k++){
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
}
}
br.close();
}
} import java.io.*; io.* java class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
int n=Integer.parseInt(str);
int[][] tramp=new int[4][13];
if(n==52)  return;
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
int c=Integer.parseInt(card[1])-1;
switch(card[0]){
case "S": tramp[0][c]=1; break;
case "H": tramp[1][c]=1; break;
case "C": tramp[2][c]=1; break;
case "D": tramp[3][c]=1; break;
default:  break;
}
}
for(int j=0; j<4; j++){
for(int k=0; k<13; k++){
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
}
}
br.close();
}
} Main public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
int n=Integer.parseInt(str);
int[][] tramp=new int[4][13];
if(n==52)  return;
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
int c=Integer.parseInt(card[1])-1;
switch(card[0]){
case "S": tramp[0][c]=1; break;
case "H": tramp[1][c]=1; break;
case "C": tramp[2][c]=1; break;
case "D": tramp[3][c]=1; break;
default:  break;
}
}
for(int j=0; j<4; j++){
for(int k=0; k<13; k++){
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
}
}
br.close();
} main {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
int n=Integer.parseInt(str);
int[][] tramp=new int[4][13];
if(n==52)  return;
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
int c=Integer.parseInt(card[1])-1;
switch(card[0]){
case "S": tramp[0][c]=1; break;
case "H": tramp[1][c]=1; break;
case "C": tramp[2][c]=1; break;
case "D": tramp[3][c]=1; break;
default:  break;
}
}
for(int j=0; j<4; j++){
for(int k=0; k<13; k++){
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
}
}
br.close();
} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str=br.readLine(); str br.readLine() br.readLine br int n=Integer.parseInt(str); n Integer.parseInt(str) Integer.parseInt Integer str int[][] tramp=new int[4][13]; tramp new int[4][13] 4 13 if(n==52)  return; n==52 n 52 return; for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
int c=Integer.parseInt(card[1])-1;
switch(card[0]){
case "S": tramp[0][c]=1; break;
case "H": tramp[1][c]=1; break;
case "C": tramp[2][c]=1; break;
case "D": tramp[3][c]=1; break;
default:  break;
}
} int i=0; int i=0; i 0 i<n i n i++ i++ i {
String str2=br.readLine();
String[] card=str2.split(" ");
int c=Integer.parseInt(card[1])-1;
switch(card[0]){
case "S": tramp[0][c]=1; break;
case "H": tramp[1][c]=1; break;
case "C": tramp[2][c]=1; break;
case "D": tramp[3][c]=1; break;
default:  break;
}
} {
String str2=br.readLine();
String[] card=str2.split(" ");
int c=Integer.parseInt(card[1])-1;
switch(card[0]){
case "S": tramp[0][c]=1; break;
case "H": tramp[1][c]=1; break;
case "C": tramp[2][c]=1; break;
case "D": tramp[3][c]=1; break;
default:  break;
}
} String str2=br.readLine(); str2 br.readLine() br.readLine br String[] card=str2.split(" "); card str2.split(" ") str2.split str2 " " int c=Integer.parseInt(card[1])-1; c Integer.parseInt(card[1])-1 Integer.parseInt(card[1]) Integer.parseInt Integer card[1] card 1 1 switch(card[0]){
case "S": tramp[0][c]=1; break;
case "H": tramp[1][c]=1; break;
case "C": tramp[2][c]=1; break;
case "D": tramp[3][c]=1; break;
default:  break;
} card[0] card 0 case "S": "S" case "S": tramp[0][c]=1 tramp[0][c] tramp[0] tramp 0 c 1 break; case "H": "H" case "H": tramp[1][c]=1 tramp[1][c] tramp[1] tramp 1 c 1 break; case "C": "C" case "C": tramp[2][c]=1 tramp[2][c] tramp[2] tramp 2 c 1 break; case "D": "D" case "D": tramp[3][c]=1 tramp[3][c] tramp[3] tramp 3 c 1 break; default: default: break; for(int j=0; j<4; j++){
for(int k=0; k<13; k++){
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
}
} int j=0; int j=0; j 0 j<4 j 4 j++ j++ j {
for(int k=0; k<13; k++){
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
}
} {
for(int k=0; k<13; k++){
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
}
} for(int k=0; k<13; k++){
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
} int k=0; int k=0; k 0 k<13 k 13 k++ k++ k {
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
} {
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
} if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
} tramp[j][k]==0 tramp[j][k] tramp[j] tramp j k 0 {
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
} switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
} j case 0: 0 case 0: System.out.println("S "+(k+1)) System.out.println System.out System System.out "S "+(k+1) "S " (k+1) k 1 break; case 1: 1 case 1: System.out.println("H "+(k+1)) System.out.println System.out System System.out "H "+(k+1) "H " (k+1) k 1 break; case 2: 2 case 2: System.out.println("C "+(k+1)) System.out.println System.out System System.out "C "+(k+1) "C " (k+1) k 1 break; case 3: 3 case 3: System.out.println("D "+(k+1)) System.out.println System.out System System.out "D "+(k+1) "D " (k+1) k 1 break; default: default: break; br.close() br.close br String[] args args
import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
int n=Integer.parseInt(str);
int[][] tramp=new int[4][13];
if(n==52)  return;
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
int c=Integer.parseInt(card[1])-1;
switch(card[0]){
case "S": tramp[0][c]=1; break;
case "H": tramp[1][c]=1; break;
case "C": tramp[2][c]=1; break;
case "D": tramp[3][c]=1; break;
default:  break;
}
}
for(int j=0; j<4; j++){
for(int k=0; k<13; k++){
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
}
}
br.close();
}
}