import java.io.*;
import java.util.ArrayList;
class Main{
	public static void main(String[] args) throws IOException {
		int i,j,m;
		ArrayList<String> str = new ArrayList<>();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		m = Integer.parseInt(in.readLine());
        for(i=0;i<m;i++){
            str.add(in.readLine());
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
       }
		System.out.flush();
	}
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util class Main{
	public static void main(String[] args) throws IOException {
		int i,j,m;
		ArrayList<String> str = new ArrayList<>();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		m = Integer.parseInt(in.readLine());
        for(i=0;i<m;i++){
            str.add(in.readLine());
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
       }
		System.out.flush();
	}
} Main public static void main(String[] args) throws IOException {
		int i,j,m;
		ArrayList<String> str = new ArrayList<>();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		m = Integer.parseInt(in.readLine());
        for(i=0;i<m;i++){
            str.add(in.readLine());
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
       }
		System.out.flush();
	} main {
		int i,j,m;
		ArrayList<String> str = new ArrayList<>();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		m = Integer.parseInt(in.readLine());
        for(i=0;i<m;i++){
            str.add(in.readLine());
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
       }
		System.out.flush();
	} int i i j j m; m ArrayList<String> str = new ArrayList<>(); str new ArrayList<>() BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) m = Integer.parseInt(in.readLine()) m Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in for(i=0;i<m;i++){
            str.add(in.readLine());
        } i=0; i=0 i 0 i<m i m i++ i++ i {
            str.add(in.readLine());
        } {
            str.add(in.readLine());
        } str.add(in.readLine()) str.add str in.readLine() in.readLine in for (i = 1; i < 14; i++) {
            if (str.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        } i = 1; i = 1 i 1 i < 14 i 14 i++ i++ i {
            if (str.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        } {
            if (str.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        } if (str.contains("S " + i) == false) {
                System.out.println("S " + i);
            } str.contains("S " + i) == false str.contains("S " + i) str.contains str "S " + i "S " i false {
                System.out.println("S " + i);
            } System.out.println("S " + i) System.out.println System.out System System.out "S " + i "S " i for (i = 1; i < 14; i++) {
            if (str.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        } i = 1; i = 1 i 1 i < 14 i 14 i++ i++ i {
            if (str.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        } {
            if (str.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        } if (str.contains("H " + i) == false) {
                System.out.println("H " + i);
            } str.contains("H " + i) == false str.contains("H " + i) str.contains str "H " + i "H " i false {
                System.out.println("H " + i);
            } System.out.println("H " + i) System.out.println System.out System System.out "H " + i "H " i for (i = 1; i < 14; i++) {
            if (str.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        } i = 1; i = 1 i 1 i < 14 i 14 i++ i++ i {
            if (str.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        } {
            if (str.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        } if (str.contains("C " + i) == false) {
                System.out.println("C " + i);
            } str.contains("C " + i) == false str.contains("C " + i) str.contains str "C " + i "C " i false {
                System.out.println("C " + i);
            } System.out.println("C " + i) System.out.println System.out System System.out "C " + i "C " i for (i = 1; i < 14; i++) {
            if (str.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
       } i = 1; i = 1 i 1 i < 14 i 14 i++ i++ i {
            if (str.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
       } {
            if (str.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
       } if (str.contains("D " + i) == false) {
                System.out.println("D " + i);
            } str.contains("D " + i) == false str.contains("D " + i) str.contains str "D " + i "D " i false {
                System.out.println("D " + i);
            } System.out.println("D " + i) System.out.println System.out System System.out "D " + i "D " i System.out.flush() System.out.flush System.out System System.out String[] args args
import java.io.*;
import java.util.ArrayList;
class Main{
	public static void main(String[] args) throws IOException {
		int i,j,m;
		ArrayList<String> str = new ArrayList<>();
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		m = Integer.parseInt(in.readLine());
        for(i=0;i<m;i++){
            str.add(in.readLine());
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("S " + i) == false) {
                System.out.println("S " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("H " + i) == false) {
                System.out.println("H " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("C " + i) == false) {
                System.out.println("C " + i);
            }
        }
        for (i = 1; i < 14; i++) {
            if (str.contains("D " + i) == false) {
                System.out.println("D " + i);
            }
       }
		System.out.flush();
	}
}