import java.util.Scanner;

public class Main{
    static StringBuilder sb = new StringBuilder();
    
    static void printCard(char c, int[] array){
        for(int i = 0; i < array.length; i++){
            if(array[i] == 0){
                sb.append(c + " " + (i + 1) + "\n");
            }
        }
    }
    
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] s = new int[13];
        int[] h = new int[13];
        int[] c = new int[13];
        int[] d = new int[13];
        
        for(int i = 0; i < num; i++){
            String simbol = sc.next();
            int cardNum = sc.nextInt();
            switch(simbol){
                case "S": s[cardNum - 1] = 1 ; break;
                case "H": h[cardNum - 1] = 1 ; break;
                case "C": c[cardNum - 1] = 1 ; break;
                case "D": d[cardNum - 1] = 1 ; break;
            }
        }
        
        printCard('S', s);
        printCard('H', h);
        printCard('C', c);
        printCard('D', d);
        
        System.out.print(sb);
        
    }
} import java.util.Scanner; Scanner java.util public class Main{
    static StringBuilder sb = new StringBuilder();
    
    static void printCard(char c, int[] array){
        for(int i = 0; i < array.length; i++){
            if(array[i] == 0){
                sb.append(c + " " + (i + 1) + "\n");
            }
        }
    }
    
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] s = new int[13];
        int[] h = new int[13];
        int[] c = new int[13];
        int[] d = new int[13];
        
        for(int i = 0; i < num; i++){
            String simbol = sc.next();
            int cardNum = sc.nextInt();
            switch(simbol){
                case "S": s[cardNum - 1] = 1 ; break;
                case "H": h[cardNum - 1] = 1 ; break;
                case "C": c[cardNum - 1] = 1 ; break;
                case "D": d[cardNum - 1] = 1 ; break;
            }
        }
        
        printCard('S', s);
        printCard('H', h);
        printCard('C', c);
        printCard('D', d);
        
        System.out.print(sb);
        
    }
} Main static StringBuilder sb = new StringBuilder(); sb new StringBuilder() static void printCard(char c, int[] array){
        for(int i = 0; i < array.length; i++){
            if(array[i] == 0){
                sb.append(c + " " + (i + 1) + "\n");
            }
        }
    } printCard {
        for(int i = 0; i < array.length; i++){
            if(array[i] == 0){
                sb.append(c + " " + (i + 1) + "\n");
            }
        }
    } for(int i = 0; i < array.length; i++){
            if(array[i] == 0){
                sb.append(c + " " + (i + 1) + "\n");
            }
        } int i = 0; int i = 0; i 0 i < array.length i array.length array array.length i++ i++ i {
            if(array[i] == 0){
                sb.append(c + " " + (i + 1) + "\n");
            }
        } {
            if(array[i] == 0){
                sb.append(c + " " + (i + 1) + "\n");
            }
        } if(array[i] == 0){
                sb.append(c + " " + (i + 1) + "\n");
            } array[i] == 0 array[i] array i 0 {
                sb.append(c + " " + (i + 1) + "\n");
            } sb.append(c + " " + (i + 1) + "\n") sb.append sb c + " " + (i + 1) + "\n" (i + 1) c + " " + (i + 1) + "\n" c " " (i + 1) i 1 "\n" char c c int[] array array public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] s = new int[13];
        int[] h = new int[13];
        int[] c = new int[13];
        int[] d = new int[13];
        
        for(int i = 0; i < num; i++){
            String simbol = sc.next();
            int cardNum = sc.nextInt();
            switch(simbol){
                case "S": s[cardNum - 1] = 1 ; break;
                case "H": h[cardNum - 1] = 1 ; break;
                case "C": c[cardNum - 1] = 1 ; break;
                case "D": d[cardNum - 1] = 1 ; break;
            }
        }
        
        printCard('S', s);
        printCard('H', h);
        printCard('C', c);
        printCard('D', d);
        
        System.out.print(sb);
        
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] s = new int[13];
        int[] h = new int[13];
        int[] c = new int[13];
        int[] d = new int[13];
        
        for(int i = 0; i < num; i++){
            String simbol = sc.next();
            int cardNum = sc.nextInt();
            switch(simbol){
                case "S": s[cardNum - 1] = 1 ; break;
                case "H": h[cardNum - 1] = 1 ; break;
                case "C": c[cardNum - 1] = 1 ; break;
                case "D": d[cardNum - 1] = 1 ; break;
            }
        }
        
        printCard('S', s);
        printCard('H', h);
        printCard('C', c);
        printCard('D', d);
        
        System.out.print(sb);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int[] s = new int[13]; s new int[13] 13 int[] h = new int[13]; h new int[13] 13 int[] c = new int[13]; c new int[13] 13 int[] d = new int[13]; d new int[13] 13 for(int i = 0; i < num; i++){
            String simbol = sc.next();
            int cardNum = sc.nextInt();
            switch(simbol){
                case "S": s[cardNum - 1] = 1 ; break;
                case "H": h[cardNum - 1] = 1 ; break;
                case "C": c[cardNum - 1] = 1 ; break;
                case "D": d[cardNum - 1] = 1 ; break;
            }
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            String simbol = sc.next();
            int cardNum = sc.nextInt();
            switch(simbol){
                case "S": s[cardNum - 1] = 1 ; break;
                case "H": h[cardNum - 1] = 1 ; break;
                case "C": c[cardNum - 1] = 1 ; break;
                case "D": d[cardNum - 1] = 1 ; break;
            }
        } {
            String simbol = sc.next();
            int cardNum = sc.nextInt();
            switch(simbol){
                case "S": s[cardNum - 1] = 1 ; break;
                case "H": h[cardNum - 1] = 1 ; break;
                case "C": c[cardNum - 1] = 1 ; break;
                case "D": d[cardNum - 1] = 1 ; break;
            }
        } String simbol = sc.next(); simbol sc.next() sc.next sc int cardNum = sc.nextInt(); cardNum sc.nextInt() sc.nextInt sc switch(simbol){
                case "S": s[cardNum - 1] = 1 ; break;
                case "H": h[cardNum - 1] = 1 ; break;
                case "C": c[cardNum - 1] = 1 ; break;
                case "D": d[cardNum - 1] = 1 ; break;
            } simbol case "S": "S" case "S": s[cardNum - 1] = 1 s[cardNum - 1] s cardNum - 1 cardNum 1 1 break; case "H": "H" case "H": h[cardNum - 1] = 1 h[cardNum - 1] h cardNum - 1 cardNum 1 1 break; case "C": "C" case "C": c[cardNum - 1] = 1 c[cardNum - 1] c cardNum - 1 cardNum 1 1 break; case "D": "D" case "D": d[cardNum - 1] = 1 d[cardNum - 1] d cardNum - 1 cardNum 1 1 break; printCard('S', s) printCard 'S' s printCard('H', h) printCard 'H' h printCard('C', c) printCard 'C' c printCard('D', d) printCard 'D' d System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main{
    static StringBuilder sb = new StringBuilder();
    
    static void printCard(char c, int[] array){
        for(int i = 0; i < array.length; i++){
            if(array[i] == 0){
                sb.append(c + " " + (i + 1) + "\n");
            }
        }
    }
    
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] s = new int[13];
        int[] h = new int[13];
        int[] c = new int[13];
        int[] d = new int[13];
        
        for(int i = 0; i < num; i++){
            String simbol = sc.next();
            int cardNum = sc.nextInt();
            switch(simbol){
                case "S": s[cardNum - 1] = 1 ; break;
                case "H": h[cardNum - 1] = 1 ; break;
                case "C": c[cardNum - 1] = 1 ; break;
                case "D": d[cardNum - 1] = 1 ; break;
            }
        }
        
        printCard('S', s);
        printCard('H', h);
        printCard('C', c);
        printCard('D', d);
        
        System.out.print(sb);
        
    }
} public class Main{
    static StringBuilder sb = new StringBuilder();
    
    static void printCard(char c, int[] array){
        for(int i = 0; i < array.length; i++){
            if(array[i] == 0){
                sb.append(c + " " + (i + 1) + "\n");
            }
        }
    }
    
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] s = new int[13];
        int[] h = new int[13];
        int[] c = new int[13];
        int[] d = new int[13];
        
        for(int i = 0; i < num; i++){
            String simbol = sc.next();
            int cardNum = sc.nextInt();
            switch(simbol){
                case "S": s[cardNum - 1] = 1 ; break;
                case "H": h[cardNum - 1] = 1 ; break;
                case "C": c[cardNum - 1] = 1 ; break;
                case "D": d[cardNum - 1] = 1 ; break;
            }
        }
        
        printCard('S', s);
        printCard('H', h);
        printCard('C', c);
        printCard('D', d);
        
        System.out.print(sb);
        
    }
} Main
import java.util.Scanner;

public class Main{
    static StringBuilder sb = new StringBuilder();
    
    static void printCard(char c, int[] array){
        for(int i = 0; i < array.length; i++){
            if(array[i] == 0){
                sb.append(c + " " + (i + 1) + "\n");
            }
        }
    }
    
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] s = new int[13];
        int[] h = new int[13];
        int[] c = new int[13];
        int[] d = new int[13];
        
        for(int i = 0; i < num; i++){
            String simbol = sc.next();
            int cardNum = sc.nextInt();
            switch(simbol){
                case "S": s[cardNum - 1] = 1 ; break;
                case "H": h[cardNum - 1] = 1 ; break;
                case "C": c[cardNum - 1] = 1 ; break;
                case "D": d[cardNum - 1] = 1 ; break;
            }
        }
        
        printCard('S', s);
        printCard('H', h);
        printCard('C', c);
        printCard('D', d);
        
        System.out.print(sb);
        
    }
}
