
import java.util.*;

public class Main {
	
	public static void main(String[] args) {
		Scanner cin=new Scanner(System.in);
		
		int n=cin.nextInt();
		boolean cards[][]=new boolean[4][13];
		char simbols[]= {'S','H','C','D'};
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++)cards[i][j]=false;
		}
		
		for(int i=0;i<n;i++) {
			String ssimbol=cin.next();int num=cin.nextInt();
			char simbol=ssimbol.charAt(0);
			if(simbol=='S')cards[0][num-1]=true;
			if(simbol=='H')cards[1][num-1]=true;
			if(simbol=='C')cards[2][num-1]=true;
			if(simbol=='D')cards[3][num-1]=true;
		}
		
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++) {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			}
		}
	}
} import java.util.*; util.* java public class Main {
	
	public static void main(String[] args) {
		Scanner cin=new Scanner(System.in);
		
		int n=cin.nextInt();
		boolean cards[][]=new boolean[4][13];
		char simbols[]= {'S','H','C','D'};
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++)cards[i][j]=false;
		}
		
		for(int i=0;i<n;i++) {
			String ssimbol=cin.next();int num=cin.nextInt();
			char simbol=ssimbol.charAt(0);
			if(simbol=='S')cards[0][num-1]=true;
			if(simbol=='H')cards[1][num-1]=true;
			if(simbol=='C')cards[2][num-1]=true;
			if(simbol=='D')cards[3][num-1]=true;
		}
		
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++) {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner cin=new Scanner(System.in);
		
		int n=cin.nextInt();
		boolean cards[][]=new boolean[4][13];
		char simbols[]= {'S','H','C','D'};
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++)cards[i][j]=false;
		}
		
		for(int i=0;i<n;i++) {
			String ssimbol=cin.next();int num=cin.nextInt();
			char simbol=ssimbol.charAt(0);
			if(simbol=='S')cards[0][num-1]=true;
			if(simbol=='H')cards[1][num-1]=true;
			if(simbol=='C')cards[2][num-1]=true;
			if(simbol=='D')cards[3][num-1]=true;
		}
		
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++) {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			}
		}
	} main {
		Scanner cin=new Scanner(System.in);
		
		int n=cin.nextInt();
		boolean cards[][]=new boolean[4][13];
		char simbols[]= {'S','H','C','D'};
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++)cards[i][j]=false;
		}
		
		for(int i=0;i<n;i++) {
			String ssimbol=cin.next();int num=cin.nextInt();
			char simbol=ssimbol.charAt(0);
			if(simbol=='S')cards[0][num-1]=true;
			if(simbol=='H')cards[1][num-1]=true;
			if(simbol=='C')cards[2][num-1]=true;
			if(simbol=='D')cards[3][num-1]=true;
		}
		
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++) {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			}
		}
	} Scanner cin=new Scanner(System.in); cin new Scanner(System.in) int n=cin.nextInt(); n cin.nextInt() cin.nextInt cin boolean cards[][]=new boolean[4][13]; cards new boolean[4][13] 4 13 char simbols[]= {'S','H','C','D'}; simbols {'S','H','C','D'} 'S' 'H' 'C' 'D' for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++)cards[i][j]=false;
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			for(int j=0;j<13;j++)cards[i][j]=false;
		} {
			for(int j=0;j<13;j++)cards[i][j]=false;
		} for(int j=0;j<13;j++)cards[i][j]=false; int j=0; int j=0; j 0 j<13 j 13 j++ j++ j cards[i][j]=false; cards[i][j]=false cards[i][j] cards[i] cards i j false for(int i=0;i<n;i++) {
			String ssimbol=cin.next();int num=cin.nextInt();
			char simbol=ssimbol.charAt(0);
			if(simbol=='S')cards[0][num-1]=true;
			if(simbol=='H')cards[1][num-1]=true;
			if(simbol=='C')cards[2][num-1]=true;
			if(simbol=='D')cards[3][num-1]=true;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String ssimbol=cin.next();int num=cin.nextInt();
			char simbol=ssimbol.charAt(0);
			if(simbol=='S')cards[0][num-1]=true;
			if(simbol=='H')cards[1][num-1]=true;
			if(simbol=='C')cards[2][num-1]=true;
			if(simbol=='D')cards[3][num-1]=true;
		} {
			String ssimbol=cin.next();int num=cin.nextInt();
			char simbol=ssimbol.charAt(0);
			if(simbol=='S')cards[0][num-1]=true;
			if(simbol=='H')cards[1][num-1]=true;
			if(simbol=='C')cards[2][num-1]=true;
			if(simbol=='D')cards[3][num-1]=true;
		} String ssimbol=cin.next(); ssimbol cin.next() cin.next cin int num=cin.nextInt(); num cin.nextInt() cin.nextInt cin char simbol=ssimbol.charAt(0); simbol ssimbol.charAt(0) ssimbol.charAt ssimbol 0 if(simbol=='S')cards[0][num-1]=true; simbol=='S' simbol 'S' cards[0][num-1]=true cards[0][num-1] cards[0] cards 0 num-1 num 1 true if(simbol=='H')cards[1][num-1]=true; simbol=='H' simbol 'H' cards[1][num-1]=true cards[1][num-1] cards[1] cards 1 num-1 num 1 true if(simbol=='C')cards[2][num-1]=true; simbol=='C' simbol 'C' cards[2][num-1]=true cards[2][num-1] cards[2] cards 2 num-1 num 1 true if(simbol=='D')cards[3][num-1]=true; simbol=='D' simbol 'D' cards[3][num-1]=true cards[3][num-1] cards[3] cards 3 num-1 num 1 true for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++) {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			}
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			for(int j=0;j<13;j++) {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			}
		} {
			for(int j=0;j<13;j++) {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			}
		} for(int j=0;j<13;j++) {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			} int j=0; int j=0; j 0 j<13 j 13 j++ j++ j {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			} {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			} if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1)); !cards[i][j] cards[i][j] cards[i] cards i j System.out.println(simbols[i]+" "+(j+1)) System.out.println System.out System System.out simbols[i]+" "+(j+1) simbols[i]+" "+(j+1) simbols[i] simbols i " " (j+1) j 1 String[] args args public class Main {
	
	public static void main(String[] args) {
		Scanner cin=new Scanner(System.in);
		
		int n=cin.nextInt();
		boolean cards[][]=new boolean[4][13];
		char simbols[]= {'S','H','C','D'};
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++)cards[i][j]=false;
		}
		
		for(int i=0;i<n;i++) {
			String ssimbol=cin.next();int num=cin.nextInt();
			char simbol=ssimbol.charAt(0);
			if(simbol=='S')cards[0][num-1]=true;
			if(simbol=='H')cards[1][num-1]=true;
			if(simbol=='C')cards[2][num-1]=true;
			if(simbol=='D')cards[3][num-1]=true;
		}
		
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++) {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			}
		}
	}
} public class Main {
	
	public static void main(String[] args) {
		Scanner cin=new Scanner(System.in);
		
		int n=cin.nextInt();
		boolean cards[][]=new boolean[4][13];
		char simbols[]= {'S','H','C','D'};
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++)cards[i][j]=false;
		}
		
		for(int i=0;i<n;i++) {
			String ssimbol=cin.next();int num=cin.nextInt();
			char simbol=ssimbol.charAt(0);
			if(simbol=='S')cards[0][num-1]=true;
			if(simbol=='H')cards[1][num-1]=true;
			if(simbol=='C')cards[2][num-1]=true;
			if(simbol=='D')cards[3][num-1]=true;
		}
		
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++) {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			}
		}
	}
} Main

import java.util.*;

public class Main {
	
	public static void main(String[] args) {
		Scanner cin=new Scanner(System.in);
		
		int n=cin.nextInt();
		boolean cards[][]=new boolean[4][13];
		char simbols[]= {'S','H','C','D'};
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++)cards[i][j]=false;
		}
		
		for(int i=0;i<n;i++) {
			String ssimbol=cin.next();int num=cin.nextInt();
			char simbol=ssimbol.charAt(0);
			if(simbol=='S')cards[0][num-1]=true;
			if(simbol=='H')cards[1][num-1]=true;
			if(simbol=='C')cards[2][num-1]=true;
			if(simbol=='D')cards[3][num-1]=true;
		}
		
		for(int i=0;i<4;i++) {
			for(int j=0;j<13;j++) {
				if(!cards[i][j])System.out.println(simbols[i]+" "+(j+1));
			}
		}
	}
}
