
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        boolean[][] card = new boolean[4][13];
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13 ;j++){
                card[i][j] = false;
            }
        }
 
        while(n-->0){
            String head = scan.next();
            int figure = 0;
            if(head.equals("S")){
                figure = 0;
            } else if(head.equals("H")){
                figure = 1;
            }else if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            }
            int number = scan.nextInt();
            card[figure][number-1]=true;
        }
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13; j++){
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            }
        }
        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        boolean[][] card = new boolean[4][13];
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13 ;j++){
                card[i][j] = false;
            }
        }
 
        while(n-->0){
            String head = scan.next();
            int figure = 0;
            if(head.equals("S")){
                figure = 0;
            } else if(head.equals("H")){
                figure = 1;
            }else if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            }
            int number = scan.nextInt();
            card[figure][number-1]=true;
        }
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13; j++){
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            }
        }
        scan.close();
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        boolean[][] card = new boolean[4][13];
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13 ;j++){
                card[i][j] = false;
            }
        }
 
        while(n-->0){
            String head = scan.next();
            int figure = 0;
            if(head.equals("S")){
                figure = 0;
            } else if(head.equals("H")){
                figure = 1;
            }else if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            }
            int number = scan.nextInt();
            card[figure][number-1]=true;
        }
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13; j++){
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            }
        }
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        boolean[][] card = new boolean[4][13];
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13 ;j++){
                card[i][j] = false;
            }
        }
 
        while(n-->0){
            String head = scan.next();
            int figure = 0;
            if(head.equals("S")){
                figure = 0;
            } else if(head.equals("H")){
                figure = 1;
            }else if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            }
            int number = scan.nextInt();
            card[figure][number-1]=true;
        }
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13; j++){
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            }
        }
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan boolean[][] card = new boolean[4][13]; card new boolean[4][13] 4 13 for(int i = 0; i<4; i++){
            for(int j = 0; j<13 ;j++){
                card[i][j] = false;
            }
        } int i = 0; int i = 0; i 0 i<4 i 4 i++ i++ i {
            for(int j = 0; j<13 ;j++){
                card[i][j] = false;
            }
        } {
            for(int j = 0; j<13 ;j++){
                card[i][j] = false;
            }
        } for(int j = 0; j<13 ;j++){
                card[i][j] = false;
            } int j = 0; int j = 0; j 0 j<13 j 13 j++ j++ j {
                card[i][j] = false;
            } {
                card[i][j] = false;
            } card[i][j] = false card[i][j] card[i] card i j false while(n-->0){
            String head = scan.next();
            int figure = 0;
            if(head.equals("S")){
                figure = 0;
            } else if(head.equals("H")){
                figure = 1;
            }else if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            }
            int number = scan.nextInt();
            card[figure][number-1]=true;
        } n-->0 n-- n 0 {
            String head = scan.next();
            int figure = 0;
            if(head.equals("S")){
                figure = 0;
            } else if(head.equals("H")){
                figure = 1;
            }else if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            }
            int number = scan.nextInt();
            card[figure][number-1]=true;
        } String head = scan.next(); head scan.next() scan.next scan int figure = 0; figure 0 if(head.equals("S")){
                figure = 0;
            } else if(head.equals("H")){
                figure = 1;
            }else if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            } head.equals("S") head.equals head "S" {
                figure = 0;
            } figure = 0 figure 0 if(head.equals("H")){
                figure = 1;
            }else if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            } head.equals("H") head.equals head "H" {
                figure = 1;
            } figure = 1 figure 1 if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            } head.equals("C") head.equals head "C" {
                figure = 2;
            } figure = 2 figure 2 if(head.equals("D")){
                figure = 3;
            } head.equals("D") head.equals head "D" {
                figure = 3;
            } figure = 3 figure 3 int number = scan.nextInt(); number scan.nextInt() scan.nextInt scan card[figure][number-1]=true card[figure][number-1] card[figure] card figure number-1 number 1 true for(int i = 0; i<4; i++){
            for(int j = 0; j<13; j++){
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            }
        } int i = 0; int i = 0; i 0 i<4 i 4 i++ i++ i {
            for(int j = 0; j<13; j++){
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            }
        } {
            for(int j = 0; j<13; j++){
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            }
        } for(int j = 0; j<13; j++){
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            } int j = 0; int j = 0; j 0 j<13 j 13 j++ j++ j {
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            } {
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            } if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                } card[i][j]!=true card[i][j] card[i] card i j true {
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                } if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    } i==0 i 0 {
                        System.out.println("S"+" "+(j+1));
                    } System.out.println("S"+" "+(j+1)) System.out.println System.out System System.out "S"+" "+(j+1) "S"+" "+(j+1) "S" " " (j+1) j 1 if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    } i==1 i 1 {
                        System.out.println("H"+" "+(j+1));
                    } System.out.println("H"+" "+(j+1)) System.out.println System.out System System.out "H"+" "+(j+1) "H"+" "+(j+1) "H" " " (j+1) j 1 if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    } i==2 i 2 {
                        System.out.println("C"+" "+(j+1));
                    } System.out.println("C"+" "+(j+1)) System.out.println System.out System System.out "C"+" "+(j+1) "C"+" "+(j+1) "C" " " (j+1) j 1 if(i==3){
                        System.out.println("D"+" "+(j+1));
                    } i==3 i 3 {
                        System.out.println("D"+" "+(j+1));
                    } System.out.println("D"+" "+(j+1)) System.out.println System.out System System.out "D"+" "+(j+1) "D"+" "+(j+1) "D" " " (j+1) j 1 scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        boolean[][] card = new boolean[4][13];
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13 ;j++){
                card[i][j] = false;
            }
        }
 
        while(n-->0){
            String head = scan.next();
            int figure = 0;
            if(head.equals("S")){
                figure = 0;
            } else if(head.equals("H")){
                figure = 1;
            }else if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            }
            int number = scan.nextInt();
            card[figure][number-1]=true;
        }
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13; j++){
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            }
        }
        scan.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        boolean[][] card = new boolean[4][13];
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13 ;j++){
                card[i][j] = false;
            }
        }
 
        while(n-->0){
            String head = scan.next();
            int figure = 0;
            if(head.equals("S")){
                figure = 0;
            } else if(head.equals("H")){
                figure = 1;
            }else if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            }
            int number = scan.nextInt();
            card[figure][number-1]=true;
        }
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13; j++){
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            }
        }
        scan.close();
    }
} Main

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        boolean[][] card = new boolean[4][13];
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13 ;j++){
                card[i][j] = false;
            }
        }
 
        while(n-->0){
            String head = scan.next();
            int figure = 0;
            if(head.equals("S")){
                figure = 0;
            } else if(head.equals("H")){
                figure = 1;
            }else if(head.equals("C")){
                figure = 2;
            }else if(head.equals("D")){
                figure = 3;
            }
            int number = scan.nextInt();
            card[figure][number-1]=true;
        }
        for(int i = 0; i<4; i++){
            for(int j = 0; j<13; j++){
                if(card[i][j]!=true){
                    if(i==0){
                        System.out.println("S"+" "+(j+1));
                    }else if(i==1){
                        System.out.println("H"+" "+(j+1));
                    }else if(i==2){
                        System.out.println("C"+" "+(j+1));
                    }else if(i==3){
                        System.out.println("D"+" "+(j+1));
                    }
 
                }
            }
        }
        scan.close();
    }
}
