import java.util.*;

public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] s = new int[15];
    int[] h = new int[15];
    int[] c = new int[15];
    int[] d = new int[15];
    String egara;
    int figure;
   for(int i=0;i<15;i++){
       s[i]=0;
       h[i]=0;
       c[i]=0;
       d[i]=0;
   }
   for(int i=0;i<n;i++){
       egara=sc.next();
       figure=sc.nextInt();
       if(egara.equals("S")) s[figure]=1;
       else if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1;
   }
   for(int i=1;i<14;i++){
       if(s[i]==0) System.out.println("S "+i);
   }
   for(int i=1;i<14;i++){
    if(h[i]==0) System.out.println("H "+i);
}
for(int i=1;i<14;i++){
    if(c[i]==0) System.out.println("C "+i);
}
for(int i=1;i<14;i++){
    if(d[i]==0) System.out.println("D "+i);
}
}
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] s = new int[15];
    int[] h = new int[15];
    int[] c = new int[15];
    int[] d = new int[15];
    String egara;
    int figure;
   for(int i=0;i<15;i++){
       s[i]=0;
       h[i]=0;
       c[i]=0;
       d[i]=0;
   }
   for(int i=0;i<n;i++){
       egara=sc.next();
       figure=sc.nextInt();
       if(egara.equals("S")) s[figure]=1;
       else if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1;
   }
   for(int i=1;i<14;i++){
       if(s[i]==0) System.out.println("S "+i);
   }
   for(int i=1;i<14;i++){
    if(h[i]==0) System.out.println("H "+i);
}
for(int i=1;i<14;i++){
    if(c[i]==0) System.out.println("C "+i);
}
for(int i=1;i<14;i++){
    if(d[i]==0) System.out.println("D "+i);
}
}
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] s = new int[15];
    int[] h = new int[15];
    int[] c = new int[15];
    int[] d = new int[15];
    String egara;
    int figure;
   for(int i=0;i<15;i++){
       s[i]=0;
       h[i]=0;
       c[i]=0;
       d[i]=0;
   }
   for(int i=0;i<n;i++){
       egara=sc.next();
       figure=sc.nextInt();
       if(egara.equals("S")) s[figure]=1;
       else if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1;
   }
   for(int i=1;i<14;i++){
       if(s[i]==0) System.out.println("S "+i);
   }
   for(int i=1;i<14;i++){
    if(h[i]==0) System.out.println("H "+i);
}
for(int i=1;i<14;i++){
    if(c[i]==0) System.out.println("C "+i);
}
for(int i=1;i<14;i++){
    if(d[i]==0) System.out.println("D "+i);
}
} main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] s = new int[15];
    int[] h = new int[15];
    int[] c = new int[15];
    int[] d = new int[15];
    String egara;
    int figure;
   for(int i=0;i<15;i++){
       s[i]=0;
       h[i]=0;
       c[i]=0;
       d[i]=0;
   }
   for(int i=0;i<n;i++){
       egara=sc.next();
       figure=sc.nextInt();
       if(egara.equals("S")) s[figure]=1;
       else if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1;
   }
   for(int i=1;i<14;i++){
       if(s[i]==0) System.out.println("S "+i);
   }
   for(int i=1;i<14;i++){
    if(h[i]==0) System.out.println("H "+i);
}
for(int i=1;i<14;i++){
    if(c[i]==0) System.out.println("C "+i);
}
for(int i=1;i<14;i++){
    if(d[i]==0) System.out.println("D "+i);
}
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] s = new int[15]; s new int[15] 15 int[] h = new int[15]; h new int[15] 15 int[] c = new int[15]; c new int[15] 15 int[] d = new int[15]; d new int[15] 15 String egara; egara int figure; figure for(int i=0;i<15;i++){
       s[i]=0;
       h[i]=0;
       c[i]=0;
       d[i]=0;
   } int i=0; int i=0; i 0 i<15 i 15 i++ i++ i {
       s[i]=0;
       h[i]=0;
       c[i]=0;
       d[i]=0;
   } {
       s[i]=0;
       h[i]=0;
       c[i]=0;
       d[i]=0;
   } s[i]=0 s[i] s i 0 h[i]=0 h[i] h i 0 c[i]=0 c[i] c i 0 d[i]=0 d[i] d i 0 for(int i=0;i<n;i++){
       egara=sc.next();
       figure=sc.nextInt();
       if(egara.equals("S")) s[figure]=1;
       else if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1;
   } int i=0; int i=0; i 0 i<n i n i++ i++ i {
       egara=sc.next();
       figure=sc.nextInt();
       if(egara.equals("S")) s[figure]=1;
       else if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1;
   } {
       egara=sc.next();
       figure=sc.nextInt();
       if(egara.equals("S")) s[figure]=1;
       else if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1;
   } egara=sc.next() egara sc.next() sc.next sc figure=sc.nextInt() figure sc.nextInt() sc.nextInt sc if(egara.equals("S")) s[figure]=1;
       else if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1; egara.equals("S") egara.equals egara "S" s[figure]=1 s[figure] s figure 1 if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1; egara.equals("H") egara.equals egara "H" h[figure]=1 h[figure] h figure 1 if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1; egara.equals("C") egara.equals egara "C" c[figure]=1 c[figure] c figure 1 if(egara.equals("D")) d[figure]=1; egara.equals("D") egara.equals egara "D" d[figure]=1 d[figure] d figure 1 for(int i=1;i<14;i++){
       if(s[i]==0) System.out.println("S "+i);
   } int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
       if(s[i]==0) System.out.println("S "+i);
   } {
       if(s[i]==0) System.out.println("S "+i);
   } if(s[i]==0) System.out.println("S "+i); s[i]==0 s[i] s i 0 System.out.println("S "+i) System.out.println System.out System System.out "S "+i "S " i for(int i=1;i<14;i++){
    if(h[i]==0) System.out.println("H "+i);
} int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
    if(h[i]==0) System.out.println("H "+i);
} {
    if(h[i]==0) System.out.println("H "+i);
} if(h[i]==0) System.out.println("H "+i); h[i]==0 h[i] h i 0 System.out.println("H "+i) System.out.println System.out System System.out "H "+i "H " i for(int i=1;i<14;i++){
    if(c[i]==0) System.out.println("C "+i);
} int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
    if(c[i]==0) System.out.println("C "+i);
} {
    if(c[i]==0) System.out.println("C "+i);
} if(c[i]==0) System.out.println("C "+i); c[i]==0 c[i] c i 0 System.out.println("C "+i) System.out.println System.out System System.out "C "+i "C " i for(int i=1;i<14;i++){
    if(d[i]==0) System.out.println("D "+i);
} int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
    if(d[i]==0) System.out.println("D "+i);
} {
    if(d[i]==0) System.out.println("D "+i);
} if(d[i]==0) System.out.println("D "+i); d[i]==0 d[i] d i 0 System.out.println("D "+i) System.out.println System.out System System.out "D "+i "D " i String[] args args public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] s = new int[15];
    int[] h = new int[15];
    int[] c = new int[15];
    int[] d = new int[15];
    String egara;
    int figure;
   for(int i=0;i<15;i++){
       s[i]=0;
       h[i]=0;
       c[i]=0;
       d[i]=0;
   }
   for(int i=0;i<n;i++){
       egara=sc.next();
       figure=sc.nextInt();
       if(egara.equals("S")) s[figure]=1;
       else if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1;
   }
   for(int i=1;i<14;i++){
       if(s[i]==0) System.out.println("S "+i);
   }
   for(int i=1;i<14;i++){
    if(h[i]==0) System.out.println("H "+i);
}
for(int i=1;i<14;i++){
    if(c[i]==0) System.out.println("C "+i);
}
for(int i=1;i<14;i++){
    if(d[i]==0) System.out.println("D "+i);
}
}
} public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] s = new int[15];
    int[] h = new int[15];
    int[] c = new int[15];
    int[] d = new int[15];
    String egara;
    int figure;
   for(int i=0;i<15;i++){
       s[i]=0;
       h[i]=0;
       c[i]=0;
       d[i]=0;
   }
   for(int i=0;i<n;i++){
       egara=sc.next();
       figure=sc.nextInt();
       if(egara.equals("S")) s[figure]=1;
       else if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1;
   }
   for(int i=1;i<14;i++){
       if(s[i]==0) System.out.println("S "+i);
   }
   for(int i=1;i<14;i++){
    if(h[i]==0) System.out.println("H "+i);
}
for(int i=1;i<14;i++){
    if(c[i]==0) System.out.println("C "+i);
}
for(int i=1;i<14;i++){
    if(d[i]==0) System.out.println("D "+i);
}
}
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] s = new int[15];
    int[] h = new int[15];
    int[] c = new int[15];
    int[] d = new int[15];
    String egara;
    int figure;
   for(int i=0;i<15;i++){
       s[i]=0;
       h[i]=0;
       c[i]=0;
       d[i]=0;
   }
   for(int i=0;i<n;i++){
       egara=sc.next();
       figure=sc.nextInt();
       if(egara.equals("S")) s[figure]=1;
       else if(egara.equals("H")) h[figure]=1;
       else if(egara.equals("C")) c[figure]=1;
       else if(egara.equals("D")) d[figure]=1;
   }
   for(int i=1;i<14;i++){
       if(s[i]==0) System.out.println("S "+i);
   }
   for(int i=1;i<14;i++){
    if(h[i]==0) System.out.println("H "+i);
}
for(int i=1;i<14;i++){
    if(c[i]==0) System.out.println("C "+i);
}
for(int i=1;i<14;i++){
    if(d[i]==0) System.out.println("D "+i);
}
}
}
