import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String[] a = new String[n];
        for(int x = 0; x < n; x++){
            a[x] = scan.next() + " " + scan.nextInt();
        }
        String rank = "S";
        int ranks = 1;
        boolean have = false;
        while(ranks < 5) {
            for (int card = 1; card < 14; card++){
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            }
            ranks++;
            if(ranks == 2){
                rank = "H";
            }
            else if(ranks == 3){
                rank = "C";
            }
            else{
                rank = "D";
            }
        }


    }
} 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();
        String[] a = new String[n];
        for(int x = 0; x < n; x++){
            a[x] = scan.next() + " " + scan.nextInt();
        }
        String rank = "S";
        int ranks = 1;
        boolean have = false;
        while(ranks < 5) {
            for (int card = 1; card < 14; card++){
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            }
            ranks++;
            if(ranks == 2){
                rank = "H";
            }
            else if(ranks == 3){
                rank = "C";
            }
            else{
                rank = "D";
            }
        }


    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String[] a = new String[n];
        for(int x = 0; x < n; x++){
            a[x] = scan.next() + " " + scan.nextInt();
        }
        String rank = "S";
        int ranks = 1;
        boolean have = false;
        while(ranks < 5) {
            for (int card = 1; card < 14; card++){
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            }
            ranks++;
            if(ranks == 2){
                rank = "H";
            }
            else if(ranks == 3){
                rank = "C";
            }
            else{
                rank = "D";
            }
        }


    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String[] a = new String[n];
        for(int x = 0; x < n; x++){
            a[x] = scan.next() + " " + scan.nextInt();
        }
        String rank = "S";
        int ranks = 1;
        boolean have = false;
        while(ranks < 5) {
            for (int card = 1; card < 14; card++){
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            }
            ranks++;
            if(ranks == 2){
                rank = "H";
            }
            else if(ranks == 3){
                rank = "C";
            }
            else{
                rank = "D";
            }
        }


    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan String[] a = new String[n]; a new String[n] n for(int x = 0; x < n; x++){
            a[x] = scan.next() + " " + scan.nextInt();
        } int x = 0; int x = 0; x 0 x < n x n x++ x++ x {
            a[x] = scan.next() + " " + scan.nextInt();
        } {
            a[x] = scan.next() + " " + scan.nextInt();
        } a[x] = scan.next() + " " + scan.nextInt() a[x] a x scan.next() + " " + scan.nextInt() scan.next() + " " + scan.nextInt() scan.next() scan.next scan " " scan.nextInt() scan.nextInt scan String rank = "S"; rank "S" int ranks = 1; ranks 1 boolean have = false; have false while(ranks < 5) {
            for (int card = 1; card < 14; card++){
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            }
            ranks++;
            if(ranks == 2){
                rank = "H";
            }
            else if(ranks == 3){
                rank = "C";
            }
            else{
                rank = "D";
            }
        } ranks < 5 ranks 5 {
            for (int card = 1; card < 14; card++){
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            }
            ranks++;
            if(ranks == 2){
                rank = "H";
            }
            else if(ranks == 3){
                rank = "C";
            }
            else{
                rank = "D";
            }
        } for (int card = 1; card < 14; card++){
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            } int card = 1; int card = 1; card 1 card < 14 card 14 card++ card++ card {
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            } {
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            } for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                } int x = 0; int x = 0; x 0 x < n x n x++ x++ x {
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                } {
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                } if(a[x].equals(rank + " " + card)){
                        have = true;
                    } a[x].equals(rank + " " + card) a[x].equals a[x] a x rank + " " + card rank + " " + card rank " " card {
                        have = true;
                    } have = true have true if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                } have {
                    have = false;
                } have = false have false {
                    System.out.println(rank + " " + card);
                } System.out.println(rank + " " + card) System.out.println System.out System System.out rank + " " + card rank + " " + card rank " " card ranks++ ranks if(ranks == 2){
                rank = "H";
            }
            else if(ranks == 3){
                rank = "C";
            }
            else{
                rank = "D";
            } ranks == 2 ranks 2 {
                rank = "H";
            } rank = "H" rank "H" if(ranks == 3){
                rank = "C";
            }
            else{
                rank = "D";
            } ranks == 3 ranks 3 {
                rank = "C";
            } rank = "C" rank "C" {
                rank = "D";
            } rank = "D" rank "D" String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String[] a = new String[n];
        for(int x = 0; x < n; x++){
            a[x] = scan.next() + " " + scan.nextInt();
        }
        String rank = "S";
        int ranks = 1;
        boolean have = false;
        while(ranks < 5) {
            for (int card = 1; card < 14; card++){
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            }
            ranks++;
            if(ranks == 2){
                rank = "H";
            }
            else if(ranks == 3){
                rank = "C";
            }
            else{
                rank = "D";
            }
        }


    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String[] a = new String[n];
        for(int x = 0; x < n; x++){
            a[x] = scan.next() + " " + scan.nextInt();
        }
        String rank = "S";
        int ranks = 1;
        boolean have = false;
        while(ranks < 5) {
            for (int card = 1; card < 14; card++){
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            }
            ranks++;
            if(ranks == 2){
                rank = "H";
            }
            else if(ranks == 3){
                rank = "C";
            }
            else{
                rank = "D";
            }
        }


    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String[] a = new String[n];
        for(int x = 0; x < n; x++){
            a[x] = scan.next() + " " + scan.nextInt();
        }
        String rank = "S";
        int ranks = 1;
        boolean have = false;
        while(ranks < 5) {
            for (int card = 1; card < 14; card++){
                for(int x = 0; x < n; x++){
                    if(a[x].equals(rank + " " + card)){
                        have = true;
                    }
                }
                if (have){
                    have = false;
                }
                else{
                    System.out.println(rank + " " + card);
                }
            }
            ranks++;
            if(ranks == 2){
                rank = "H";
            }
            else if(ranks == 3){
                rank = "C";
            }
            else{
                rank = "D";
            }
        }


    }
}
