import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int[][] c=new int[4][14];
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
c[x][y]=0;
}
}
for(int b=0;b<a;b++){
String d=scan.next();
int e=scan.nextInt();
if("S".equals(d))
c[0][e]=1;
if("H".equals(d))
c[1][e]=1;
if("C".equals(d))
c[2][e]=1;
if("D".equals(d))
c[3][e]=1;
}
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

}
}
}
}
} import java.util.Scanner; Scanner java.util class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int[][] c=new int[4][14];
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
c[x][y]=0;
}
}
for(int b=0;b<a;b++){
String d=scan.next();
int e=scan.nextInt();
if("S".equals(d))
c[0][e]=1;
if("H".equals(d))
c[1][e]=1;
if("C".equals(d))
c[2][e]=1;
if("D".equals(d))
c[3][e]=1;
}
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

}
}
}
}
} Main public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int[][] c=new int[4][14];
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
c[x][y]=0;
}
}
for(int b=0;b<a;b++){
String d=scan.next();
int e=scan.nextInt();
if("S".equals(d))
c[0][e]=1;
if("H".equals(d))
c[1][e]=1;
if("C".equals(d))
c[2][e]=1;
if("D".equals(d))
c[3][e]=1;
}
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

}
}
}
} main {
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int[][] c=new int[4][14];
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
c[x][y]=0;
}
}
for(int b=0;b<a;b++){
String d=scan.next();
int e=scan.nextInt();
if("S".equals(d))
c[0][e]=1;
if("H".equals(d))
c[1][e]=1;
if("C".equals(d))
c[2][e]=1;
if("D".equals(d))
c[3][e]=1;
}
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

}
}
}
} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int a=scan.nextInt(); a scan.nextInt() scan.nextInt scan int[][] c=new int[4][14]; c new int[4][14] 4 14 for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
c[x][y]=0;
}
} int x=0; int x=0; x 0 x<4 x 4 x++ x++ x {
for(int y=1;y<14;y++){
c[x][y]=0;
}
} {
for(int y=1;y<14;y++){
c[x][y]=0;
}
} for(int y=1;y<14;y++){
c[x][y]=0;
} int y=1; int y=1; y 1 y<14 y 14 y++ y++ y {
c[x][y]=0;
} {
c[x][y]=0;
} c[x][y]=0 c[x][y] c[x] c x y 0 for(int b=0;b<a;b++){
String d=scan.next();
int e=scan.nextInt();
if("S".equals(d))
c[0][e]=1;
if("H".equals(d))
c[1][e]=1;
if("C".equals(d))
c[2][e]=1;
if("D".equals(d))
c[3][e]=1;
} int b=0; int b=0; b 0 b<a b a b++ b++ b {
String d=scan.next();
int e=scan.nextInt();
if("S".equals(d))
c[0][e]=1;
if("H".equals(d))
c[1][e]=1;
if("C".equals(d))
c[2][e]=1;
if("D".equals(d))
c[3][e]=1;
} {
String d=scan.next();
int e=scan.nextInt();
if("S".equals(d))
c[0][e]=1;
if("H".equals(d))
c[1][e]=1;
if("C".equals(d))
c[2][e]=1;
if("D".equals(d))
c[3][e]=1;
} String d=scan.next(); d scan.next() scan.next scan int e=scan.nextInt(); e scan.nextInt() scan.nextInt scan if("S".equals(d))
c[0][e]=1; "S".equals(d) "S".equals "S" d c[0][e]=1 c[0][e] c[0] c 0 e 1 if("H".equals(d))
c[1][e]=1; "H".equals(d) "H".equals "H" d c[1][e]=1 c[1][e] c[1] c 1 e 1 if("C".equals(d))
c[2][e]=1; "C".equals(d) "C".equals "C" d c[2][e]=1 c[2][e] c[2] c 2 e 1 if("D".equals(d))
c[3][e]=1; "D".equals(d) "D".equals "D" d c[3][e]=1 c[3][e] c[3] c 3 e 1 for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

}
}
} int x=0; int x=0; x 0 x<4 x 4 x++ x++ x {
for(int y=1;y<14;y++){
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

}
}
} {
for(int y=1;y<14;y++){
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

}
}
} for(int y=1;y<14;y++){
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

}
} int y=1; int y=1; y 1 y<14 y 14 y++ y++ y {
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

}
} {
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

}
} if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

} c[x][y]==0 c[x][y] c[x] c x y 0 {
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

} if(x==0)
System.out.print("S "); x==0 x 0 System.out.print("S ") System.out.print System.out System System.out "S " if(x==1)
System.out.print("H "); x==1 x 1 System.out.print("H ") System.out.print System.out System System.out "H " if(x==2)
System.out.print("C "); x==2 x 2 System.out.print("C ") System.out.print System.out System System.out "C " if(x==3)
System.out.print("D "); x==3 x 3 System.out.print("D ") System.out.print System.out System System.out "D " System.out.println(y) System.out.println System.out System System.out y String[] args args
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int[][] c=new int[4][14];
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
c[x][y]=0;
}
}
for(int b=0;b<a;b++){
String d=scan.next();
int e=scan.nextInt();
if("S".equals(d))
c[0][e]=1;
if("H".equals(d))
c[1][e]=1;
if("C".equals(d))
c[2][e]=1;
if("D".equals(d))
c[3][e]=1;
}
for(int x=0;x<4;x++){
for(int y=1;y<14;y++){
if(c[x][y]==0){
if(x==0)
System.out.print("S ");
if(x==1)
System.out.print("H ");
if(x==2)
System.out.print("C ");
if(x==3)
System.out.print("D ");
System.out.println(y);

}
}
}
}
}