


import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;




public class Main {

    public static void main(String[] args) {
       
        Scanner sc = new Scanner(System.in);
        
        List<Index> pie = new ArrayList<>();
        
        for(int i=1; i<=13; i++) pie.add(new Index("S",i));
        for(int i=1; i<=13; i++) pie.add(new Index("H",i));
        for(int i=1; i<=13; i++) pie.add(new Index("C",i));
        for(int i=1; i<=13; i++) pie.add(new Index("D",i));
        
        int n = sc.nextInt();
        
        
        for(int j=0; j<n; j++){
            String mo = sc.next();
            int bu = sc.nextInt();
         for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }}}
        for(Index ewq : pie){
            if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            }
        }
    }
    
    public static class Index {
        
         boolean exist;
         String x;
         int y;
         
         Index(String x, int y){
         this.x = x;
         this.y = y;
         exist = false;
        
        }
    }
}



        
    

       

   

 import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
       
        Scanner sc = new Scanner(System.in);
        
        List<Index> pie = new ArrayList<>();
        
        for(int i=1; i<=13; i++) pie.add(new Index("S",i));
        for(int i=1; i<=13; i++) pie.add(new Index("H",i));
        for(int i=1; i<=13; i++) pie.add(new Index("C",i));
        for(int i=1; i<=13; i++) pie.add(new Index("D",i));
        
        int n = sc.nextInt();
        
        
        for(int j=0; j<n; j++){
            String mo = sc.next();
            int bu = sc.nextInt();
         for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }}}
        for(Index ewq : pie){
            if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            }
        }
    }
    
    public static class Index {
        
         boolean exist;
         String x;
         int y;
         
         Index(String x, int y){
         this.x = x;
         this.y = y;
         exist = false;
        
        }
    }
} Main public static void main(String[] args) {
       
        Scanner sc = new Scanner(System.in);
        
        List<Index> pie = new ArrayList<>();
        
        for(int i=1; i<=13; i++) pie.add(new Index("S",i));
        for(int i=1; i<=13; i++) pie.add(new Index("H",i));
        for(int i=1; i<=13; i++) pie.add(new Index("C",i));
        for(int i=1; i<=13; i++) pie.add(new Index("D",i));
        
        int n = sc.nextInt();
        
        
        for(int j=0; j<n; j++){
            String mo = sc.next();
            int bu = sc.nextInt();
         for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }}}
        for(Index ewq : pie){
            if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            }
        }
    } main {
       
        Scanner sc = new Scanner(System.in);
        
        List<Index> pie = new ArrayList<>();
        
        for(int i=1; i<=13; i++) pie.add(new Index("S",i));
        for(int i=1; i<=13; i++) pie.add(new Index("H",i));
        for(int i=1; i<=13; i++) pie.add(new Index("C",i));
        for(int i=1; i<=13; i++) pie.add(new Index("D",i));
        
        int n = sc.nextInt();
        
        
        for(int j=0; j<n; j++){
            String mo = sc.next();
            int bu = sc.nextInt();
         for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }}}
        for(Index ewq : pie){
            if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Index> pie = new ArrayList<>(); pie new ArrayList<>() for(int i=1; i<=13; i++) pie.add(new Index("S",i)); int i=1; int i=1; i 1 i<=13 i 13 i++ i++ i pie.add(new Index("S",i)); pie.add(new Index("S",i)) pie.add pie new Index("S",i) for(int i=1; i<=13; i++) pie.add(new Index("H",i)); int i=1; int i=1; i 1 i<=13 i 13 i++ i++ i pie.add(new Index("H",i)); pie.add(new Index("H",i)) pie.add pie new Index("H",i) for(int i=1; i<=13; i++) pie.add(new Index("C",i)); int i=1; int i=1; i 1 i<=13 i 13 i++ i++ i pie.add(new Index("C",i)); pie.add(new Index("C",i)) pie.add pie new Index("C",i) for(int i=1; i<=13; i++) pie.add(new Index("D",i)); int i=1; int i=1; i 1 i<=13 i 13 i++ i++ i pie.add(new Index("D",i)); pie.add(new Index("D",i)) pie.add pie new Index("D",i) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int j=0; j<n; j++){
            String mo = sc.next();
            int bu = sc.nextInt();
         for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }}} int j=0; int j=0; j 0 j<n j n j++ j++ j {
            String mo = sc.next();
            int bu = sc.nextInt();
         for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }}} {
            String mo = sc.next();
            int bu = sc.nextInt();
         for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }}} String mo = sc.next(); mo sc.next() sc.next sc int bu = sc.nextInt(); bu sc.nextInt() sc.nextInt sc for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }} Index ewq pie {
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }} {
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }} if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          } ewq.x.equals( mo )  && ewq.y == bu ewq.x.equals( mo ) ewq.x.equals ewq.x ewq ewq.x mo ewq.y == bu ewq.y ewq ewq.y bu {
                 ewq.exist = true;
          } ewq.exist = true ewq.exist ewq ewq.exist true for(Index ewq : pie){
            if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            }
        } Index ewq pie {
            if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            }
        } {
            if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            }
        } if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            } !ewq.exist ewq.exist ewq ewq.exist {
                System.out.println(ewq.x +" "+ ewq.y);
            } System.out.println(ewq.x +" "+ ewq.y) System.out.println System.out System System.out ewq.x +" "+ ewq.y ewq.x +" "+ ewq.y ewq.x ewq ewq.x " " ewq.y ewq ewq.y String[] args args public static class Index {
        
         boolean exist;
         String x;
         int y;
         
         Index(String x, int y){
         this.x = x;
         this.y = y;
         exist = false;
        
        }
    } Index boolean exist; exist String x; x int y; y Index(String x, int y){
         this.x = x;
         this.y = y;
         exist = false;
        
        } Index {
         this.x = x;
         this.y = y;
         exist = false;
        
        } this.x = x this.x this this.x x this.y = y this.y this this.y y exist = false exist false String x x int y y public class Main {

    public static void main(String[] args) {
       
        Scanner sc = new Scanner(System.in);
        
        List<Index> pie = new ArrayList<>();
        
        for(int i=1; i<=13; i++) pie.add(new Index("S",i));
        for(int i=1; i<=13; i++) pie.add(new Index("H",i));
        for(int i=1; i<=13; i++) pie.add(new Index("C",i));
        for(int i=1; i<=13; i++) pie.add(new Index("D",i));
        
        int n = sc.nextInt();
        
        
        for(int j=0; j<n; j++){
            String mo = sc.next();
            int bu = sc.nextInt();
         for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }}}
        for(Index ewq : pie){
            if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            }
        }
    }
    
    public static class Index {
        
         boolean exist;
         String x;
         int y;
         
         Index(String x, int y){
         this.x = x;
         this.y = y;
         exist = false;
        
        }
    }
} public class Main {

    public static void main(String[] args) {
       
        Scanner sc = new Scanner(System.in);
        
        List<Index> pie = new ArrayList<>();
        
        for(int i=1; i<=13; i++) pie.add(new Index("S",i));
        for(int i=1; i<=13; i++) pie.add(new Index("H",i));
        for(int i=1; i<=13; i++) pie.add(new Index("C",i));
        for(int i=1; i<=13; i++) pie.add(new Index("D",i));
        
        int n = sc.nextInt();
        
        
        for(int j=0; j<n; j++){
            String mo = sc.next();
            int bu = sc.nextInt();
         for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }}}
        for(Index ewq : pie){
            if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            }
        }
    }
    
    public static class Index {
        
         boolean exist;
         String x;
         int y;
         
         Index(String x, int y){
         this.x = x;
         this.y = y;
         exist = false;
        
        }
    }
} Main



import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;




public class Main {

    public static void main(String[] args) {
       
        Scanner sc = new Scanner(System.in);
        
        List<Index> pie = new ArrayList<>();
        
        for(int i=1; i<=13; i++) pie.add(new Index("S",i));
        for(int i=1; i<=13; i++) pie.add(new Index("H",i));
        for(int i=1; i<=13; i++) pie.add(new Index("C",i));
        for(int i=1; i<=13; i++) pie.add(new Index("D",i));
        
        int n = sc.nextInt();
        
        
        for(int j=0; j<n; j++){
            String mo = sc.next();
            int bu = sc.nextInt();
         for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }}}
        for(Index ewq : pie){
            if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            }
        }
    }
    
    public static class Index {
        
         boolean exist;
         String x;
         int y;
         
         Index(String x, int y){
         this.x = x;
         this.y = y;
         exist = false;
        
        }
    }
}



        
    

       

   


