import java.util.*;
      
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] card = new int[53];
        
        for(int i = 1;i <= n;i++){
        	String mark = sc.next();
        	int num = sc.nextInt();
        	if(mark.equals("S")){
        		card[num] = 1;
        	}else if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	}
        	//System.out.println(card[i]);
        }
        
        for(int i = 1;i <= 52;i++){
        	if(card[i] == 0){
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	}
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] card = new int[53];
        
        for(int i = 1;i <= n;i++){
        	String mark = sc.next();
        	int num = sc.nextInt();
        	if(mark.equals("S")){
        		card[num] = 1;
        	}else if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	}
        	//System.out.println(card[i]);
        }
        
        for(int i = 1;i <= 52;i++){
        	if(card[i] == 0){
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	}
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] card = new int[53];
        
        for(int i = 1;i <= n;i++){
        	String mark = sc.next();
        	int num = sc.nextInt();
        	if(mark.equals("S")){
        		card[num] = 1;
        	}else if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	}
        	//System.out.println(card[i]);
        }
        
        for(int i = 1;i <= 52;i++){
        	if(card[i] == 0){
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	}
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] card = new int[53];
        
        for(int i = 1;i <= n;i++){
        	String mark = sc.next();
        	int num = sc.nextInt();
        	if(mark.equals("S")){
        		card[num] = 1;
        	}else if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	}
        	//System.out.println(card[i]);
        }
        
        for(int i = 1;i <= 52;i++){
        	if(card[i] == 0){
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	}
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] card = new int[53]; card new int[53] 53 for(int i = 1;i <= n;i++){
        	String mark = sc.next();
        	int num = sc.nextInt();
        	if(mark.equals("S")){
        		card[num] = 1;
        	}else if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	}
        	//System.out.println(card[i]);
        } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
        	String mark = sc.next();
        	int num = sc.nextInt();
        	if(mark.equals("S")){
        		card[num] = 1;
        	}else if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	}
        	//System.out.println(card[i]);
        } {
        	String mark = sc.next();
        	int num = sc.nextInt();
        	if(mark.equals("S")){
        		card[num] = 1;
        	}else if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	}
        	//System.out.println(card[i]);
        } String mark = sc.next(); mark sc.next() sc.next sc int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if(mark.equals("S")){
        		card[num] = 1;
        	}else if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	} mark.equals("S") mark.equals mark "S" {
        		card[num] = 1;
        	} card[num] = 1 card[num] card num 1 if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	} mark.equals("H") mark.equals mark "H" {
        		card[num + 13] = 1;
        	} card[num + 13] = 1 card[num + 13] card num + 13 num 13 1 if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	} mark.equals("C") mark.equals mark "C" {
        		card[num + 26] = 1;
        	} card[num + 26] = 1 card[num + 26] card num + 26 num 26 1 if(mark.equals("D")){
        		card[num + 39] = 1;
        	} mark.equals("D") mark.equals mark "D" {
        		card[num + 39] = 1;
        	} card[num + 39] = 1 card[num + 39] card num + 39 num 39 1 for(int i = 1;i <= 52;i++){
        	if(card[i] == 0){
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	}
        } int i = 1; int i = 1; i 1 i <= 52 i 52 i++ i++ i {
        	if(card[i] == 0){
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	}
        } {
        	if(card[i] == 0){
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	}
        } if(card[i] == 0){
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	} card[i] == 0 card[i] card i 0 {
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	} if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		} 1 <= i && i <= 13 1 <= i 1 i i <= 13 i 13 {
        			System.out.println("S "+ i);
        		} System.out.println("S "+ i) System.out.println System.out System System.out "S "+ i "S " i if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		} 14 <= i && i <= 26 14 <= i 14 i i <= 26 i 26 {
        			System.out.println("H " + (i - 13));
        		} System.out.println("H " + (i - 13)) System.out.println System.out System System.out "H " + (i - 13) "H " (i - 13) i 13 if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		} 27 <= i && i <= 39 27 <= i 27 i i <= 39 i 39 {
        			System.out.println("C "+(i - 26));
        		} System.out.println("C "+(i - 26)) System.out.println System.out System System.out "C "+(i - 26) "C " (i - 26) i 26 if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		} 40 <= i && i <= 52 40 <= i 40 i i <= 52 i 52 {
        			System.out.println("D "+(i - 39));
        		} System.out.println("D "+(i - 39)) System.out.println System.out System System.out "D "+(i - 39) "D " (i - 39) i 39 String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] card = new int[53];
        
        for(int i = 1;i <= n;i++){
        	String mark = sc.next();
        	int num = sc.nextInt();
        	if(mark.equals("S")){
        		card[num] = 1;
        	}else if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	}
        	//System.out.println(card[i]);
        }
        
        for(int i = 1;i <= 52;i++){
        	if(card[i] == 0){
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	}
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] card = new int[53];
        
        for(int i = 1;i <= n;i++){
        	String mark = sc.next();
        	int num = sc.nextInt();
        	if(mark.equals("S")){
        		card[num] = 1;
        	}else if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	}
        	//System.out.println(card[i]);
        }
        
        for(int i = 1;i <= 52;i++){
        	if(card[i] == 0){
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	}
        }
    }
} Main
import java.util.*;
      
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] card = new int[53];
        
        for(int i = 1;i <= n;i++){
        	String mark = sc.next();
        	int num = sc.nextInt();
        	if(mark.equals("S")){
        		card[num] = 1;
        	}else if(mark.equals("H")){
        		card[num + 13] = 1;
        	}else if(mark.equals("C")){
        		card[num + 26] = 1;
        	}else if(mark.equals("D")){
        		card[num + 39] = 1;
        	}
        	//System.out.println(card[i]);
        }
        
        for(int i = 1;i <= 52;i++){
        	if(card[i] == 0){
        		if(1 <= i && i <= 13){
        			System.out.println("S "+ i);
        		}else if(14 <= i && i <= 26){
        			System.out.println("H " + (i - 13));
        		}else if(27 <= i && i <= 39){
        			System.out.println("C "+(i - 26));
        		}else if(40 <= i && i <= 52){
        			System.out.println("D "+(i - 39));
        		}
        	}
        }
    }
}