import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int i,n,card;
        int array[]=new int[52];
        String s;
        for(i=0;i<52;i++){
        	array[i]=0;
        }
        n=scan.nextInt();
        for(i=0;i<n;i++){
        	s=scan.next();
        	card=scan.nextInt();
        	switch(s){
        		case"S":
        			card-=1;
        			break;
        		case"H":
        			card+=12;
        			break;
        		case"C":
        			card+=25;
        			break;
        		case"D":
        			card+=38;
        			break;
        		default:
        			continue;
        	}
        	array[card]=1;
        }
        for(i=0;i<52;i++){
        	if(array[i]==0){
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	}
        }
    }
}
 import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int i,n,card;
        int array[]=new int[52];
        String s;
        for(i=0;i<52;i++){
        	array[i]=0;
        }
        n=scan.nextInt();
        for(i=0;i<n;i++){
        	s=scan.next();
        	card=scan.nextInt();
        	switch(s){
        		case"S":
        			card-=1;
        			break;
        		case"H":
        			card+=12;
        			break;
        		case"C":
        			card+=25;
        			break;
        		case"D":
        			card+=38;
        			break;
        		default:
        			continue;
        	}
        	array[card]=1;
        }
        for(i=0;i<52;i++){
        	if(array[i]==0){
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	}
        }
    }
} Main public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int i,n,card;
        int array[]=new int[52];
        String s;
        for(i=0;i<52;i++){
        	array[i]=0;
        }
        n=scan.nextInt();
        for(i=0;i<n;i++){
        	s=scan.next();
        	card=scan.nextInt();
        	switch(s){
        		case"S":
        			card-=1;
        			break;
        		case"H":
        			card+=12;
        			break;
        		case"C":
        			card+=25;
        			break;
        		case"D":
        			card+=38;
        			break;
        		default:
        			continue;
        	}
        	array[card]=1;
        }
        for(i=0;i<52;i++){
        	if(array[i]==0){
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	}
        }
    } main {
        Scanner scan=new Scanner(System.in);
        int i,n,card;
        int array[]=new int[52];
        String s;
        for(i=0;i<52;i++){
        	array[i]=0;
        }
        n=scan.nextInt();
        for(i=0;i<n;i++){
        	s=scan.next();
        	card=scan.nextInt();
        	switch(s){
        		case"S":
        			card-=1;
        			break;
        		case"H":
        			card+=12;
        			break;
        		case"C":
        			card+=25;
        			break;
        		case"D":
        			card+=38;
        			break;
        		default:
        			continue;
        	}
        	array[card]=1;
        }
        for(i=0;i<52;i++){
        	if(array[i]==0){
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	}
        }
    } Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int i i n n card; card int array[]=new int[52]; array new int[52] 52 String s; s for(i=0;i<52;i++){
        	array[i]=0;
        } i=0; i=0 i 0 i<52 i 52 i++ i++ i {
        	array[i]=0;
        } {
        	array[i]=0;
        } array[i]=0 array[i] array i 0 n=scan.nextInt() n scan.nextInt() scan.nextInt scan for(i=0;i<n;i++){
        	s=scan.next();
        	card=scan.nextInt();
        	switch(s){
        		case"S":
        			card-=1;
        			break;
        		case"H":
        			card+=12;
        			break;
        		case"C":
        			card+=25;
        			break;
        		case"D":
        			card+=38;
        			break;
        		default:
        			continue;
        	}
        	array[card]=1;
        } i=0; i=0 i 0 i<n i n i++ i++ i {
        	s=scan.next();
        	card=scan.nextInt();
        	switch(s){
        		case"S":
        			card-=1;
        			break;
        		case"H":
        			card+=12;
        			break;
        		case"C":
        			card+=25;
        			break;
        		case"D":
        			card+=38;
        			break;
        		default:
        			continue;
        	}
        	array[card]=1;
        } {
        	s=scan.next();
        	card=scan.nextInt();
        	switch(s){
        		case"S":
        			card-=1;
        			break;
        		case"H":
        			card+=12;
        			break;
        		case"C":
        			card+=25;
        			break;
        		case"D":
        			card+=38;
        			break;
        		default:
        			continue;
        	}
        	array[card]=1;
        } s=scan.next() s scan.next() scan.next scan card=scan.nextInt() card scan.nextInt() scan.nextInt scan switch(s){
        		case"S":
        			card-=1;
        			break;
        		case"H":
        			card+=12;
        			break;
        		case"C":
        			card+=25;
        			break;
        		case"D":
        			card+=38;
        			break;
        		default:
        			continue;
        	} s case"S": "S" case"S": card-=1 card 1 break; case"H": "H" case"H": card+=12 card 12 break; case"C": "C" case"C": card+=25 card 25 break; case"D": "D" case"D": card+=38 card 38 break; default: default: continue; array[card]=1 array[card] array card 1 for(i=0;i<52;i++){
        	if(array[i]==0){
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	}
        } i=0; i=0 i 0 i<52 i 52 i++ i++ i {
        	if(array[i]==0){
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	}
        } {
        	if(array[i]==0){
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	}
        } if(array[i]==0){
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	} array[i]==0 array[i] array i 0 {
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	} if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		} i/13==0 i/13 i 13 0 {
        			System.out.println("S "+ (i%13+1));
        		} System.out.println("S "+ (i%13+1)) System.out.println System.out System System.out "S "+ (i%13+1) "S " (i%13+1) i%13 i 13 1 if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		} i/13==1 i/13 i 13 1 {
        			System.out.println("H "+ (i%13+1));
        		} System.out.println("H "+ (i%13+1)) System.out.println System.out System System.out "H "+ (i%13+1) "H " (i%13+1) i%13 i 13 1 if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		} i/13==2 i/13 i 13 2 {
        			System.out.println("C "+ (i%13+1));
        		} System.out.println("C "+ (i%13+1)) System.out.println System.out System System.out "C "+ (i%13+1) "C " (i%13+1) i%13 i 13 1 if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		} i/13==3 i/13 i 13 3 {
        			System.out.println("D "+ (i%13+1));
        		} System.out.println("D "+ (i%13+1)) System.out.println System.out System System.out "D "+ (i%13+1) "D " (i%13+1) i%13 i 13 1 String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int i,n,card;
        int array[]=new int[52];
        String s;
        for(i=0;i<52;i++){
        	array[i]=0;
        }
        n=scan.nextInt();
        for(i=0;i<n;i++){
        	s=scan.next();
        	card=scan.nextInt();
        	switch(s){
        		case"S":
        			card-=1;
        			break;
        		case"H":
        			card+=12;
        			break;
        		case"C":
        			card+=25;
        			break;
        		case"D":
        			card+=38;
        			break;
        		default:
        			continue;
        	}
        	array[card]=1;
        }
        for(i=0;i<52;i++){
        	if(array[i]==0){
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	}
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int i,n,card;
        int array[]=new int[52];
        String s;
        for(i=0;i<52;i++){
        	array[i]=0;
        }
        n=scan.nextInt();
        for(i=0;i<n;i++){
        	s=scan.next();
        	card=scan.nextInt();
        	switch(s){
        		case"S":
        			card-=1;
        			break;
        		case"H":
        			card+=12;
        			break;
        		case"C":
        			card+=25;
        			break;
        		case"D":
        			card+=38;
        			break;
        		default:
        			continue;
        	}
        	array[card]=1;
        }
        for(i=0;i<52;i++){
        	if(array[i]==0){
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	}
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int i,n,card;
        int array[]=new int[52];
        String s;
        for(i=0;i<52;i++){
        	array[i]=0;
        }
        n=scan.nextInt();
        for(i=0;i<n;i++){
        	s=scan.next();
        	card=scan.nextInt();
        	switch(s){
        		case"S":
        			card-=1;
        			break;
        		case"H":
        			card+=12;
        			break;
        		case"C":
        			card+=25;
        			break;
        		case"D":
        			card+=38;
        			break;
        		default:
        			continue;
        	}
        	array[card]=1;
        }
        for(i=0;i<52;i++){
        	if(array[i]==0){
        		if(i/13==0){
        			System.out.println("S "+ (i%13+1));
        		}
        		else if(i/13==1){
        			System.out.println("H "+ (i%13+1));
        		}
        		else if(i/13==2){
        			System.out.println("C "+ (i%13+1));
        		}
        		else if(i/13==3){
        			System.out.println("D "+ (i%13+1));
        		}
        	}
        }
    }
}

