import java.util.Scanner;
class Main {
	public static void main(String[] args) {
		Scanner kb = new Scanner( System.in );

		String str = kb.nextLine();
		int n = Integer.parseInt( str );
		
		boolean[] cards= new boolean[53]; 
		for( int i=0; i<n; i++ ) {
			String pattern = kb.next();
			int num = kb.nextInt();
			if( "S".equals(  pattern ) ) {
				cards[ num-1 ]=true;
			} else if( "H".equals(  pattern ) ) {
				cards[ 12+num ]=true;
			} else if( "C".equals(  pattern ) ) {
				cards[ 25+num ]=true;
			} else if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			}
		}

		for( int i=0; i<52; i++ ) {
			if( false == cards[ i ] ) {
				int num = i/13;
				if( 0 == num ) {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} else if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				}
			}
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner kb = new Scanner( System.in );

		String str = kb.nextLine();
		int n = Integer.parseInt( str );
		
		boolean[] cards= new boolean[53]; 
		for( int i=0; i<n; i++ ) {
			String pattern = kb.next();
			int num = kb.nextInt();
			if( "S".equals(  pattern ) ) {
				cards[ num-1 ]=true;
			} else if( "H".equals(  pattern ) ) {
				cards[ 12+num ]=true;
			} else if( "C".equals(  pattern ) ) {
				cards[ 25+num ]=true;
			} else if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			}
		}

		for( int i=0; i<52; i++ ) {
			if( false == cards[ i ] ) {
				int num = i/13;
				if( 0 == num ) {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} else if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				}
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner kb = new Scanner( System.in );

		String str = kb.nextLine();
		int n = Integer.parseInt( str );
		
		boolean[] cards= new boolean[53]; 
		for( int i=0; i<n; i++ ) {
			String pattern = kb.next();
			int num = kb.nextInt();
			if( "S".equals(  pattern ) ) {
				cards[ num-1 ]=true;
			} else if( "H".equals(  pattern ) ) {
				cards[ 12+num ]=true;
			} else if( "C".equals(  pattern ) ) {
				cards[ 25+num ]=true;
			} else if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			}
		}

		for( int i=0; i<52; i++ ) {
			if( false == cards[ i ] ) {
				int num = i/13;
				if( 0 == num ) {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} else if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				}
			}
		}
	} main {
		Scanner kb = new Scanner( System.in );

		String str = kb.nextLine();
		int n = Integer.parseInt( str );
		
		boolean[] cards= new boolean[53]; 
		for( int i=0; i<n; i++ ) {
			String pattern = kb.next();
			int num = kb.nextInt();
			if( "S".equals(  pattern ) ) {
				cards[ num-1 ]=true;
			} else if( "H".equals(  pattern ) ) {
				cards[ 12+num ]=true;
			} else if( "C".equals(  pattern ) ) {
				cards[ 25+num ]=true;
			} else if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			}
		}

		for( int i=0; i<52; i++ ) {
			if( false == cards[ i ] ) {
				int num = i/13;
				if( 0 == num ) {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} else if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				}
			}
		}
	} Scanner kb = new Scanner( System.in ); kb new Scanner( System.in ) String str = kb.nextLine(); str kb.nextLine() kb.nextLine kb int n = Integer.parseInt( str ); n Integer.parseInt( str ) Integer.parseInt Integer str boolean[] cards= new boolean[53]; cards new boolean[53] 53 for( int i=0; i<n; i++ ) {
			String pattern = kb.next();
			int num = kb.nextInt();
			if( "S".equals(  pattern ) ) {
				cards[ num-1 ]=true;
			} else if( "H".equals(  pattern ) ) {
				cards[ 12+num ]=true;
			} else if( "C".equals(  pattern ) ) {
				cards[ 25+num ]=true;
			} else if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String pattern = kb.next();
			int num = kb.nextInt();
			if( "S".equals(  pattern ) ) {
				cards[ num-1 ]=true;
			} else if( "H".equals(  pattern ) ) {
				cards[ 12+num ]=true;
			} else if( "C".equals(  pattern ) ) {
				cards[ 25+num ]=true;
			} else if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			}
		} {
			String pattern = kb.next();
			int num = kb.nextInt();
			if( "S".equals(  pattern ) ) {
				cards[ num-1 ]=true;
			} else if( "H".equals(  pattern ) ) {
				cards[ 12+num ]=true;
			} else if( "C".equals(  pattern ) ) {
				cards[ 25+num ]=true;
			} else if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			}
		} String pattern = kb.next(); pattern kb.next() kb.next kb int num = kb.nextInt(); num kb.nextInt() kb.nextInt kb if( "S".equals(  pattern ) ) {
				cards[ num-1 ]=true;
			} else if( "H".equals(  pattern ) ) {
				cards[ 12+num ]=true;
			} else if( "C".equals(  pattern ) ) {
				cards[ 25+num ]=true;
			} else if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			} "S".equals(  pattern ) "S".equals "S" pattern {
				cards[ num-1 ]=true;
			} cards[ num-1 ]=true cards[ num-1 ] cards num-1 num 1 true if( "H".equals(  pattern ) ) {
				cards[ 12+num ]=true;
			} else if( "C".equals(  pattern ) ) {
				cards[ 25+num ]=true;
			} else if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			} "H".equals(  pattern ) "H".equals "H" pattern {
				cards[ 12+num ]=true;
			} cards[ 12+num ]=true cards[ 12+num ] cards 12+num 12 num true if( "C".equals(  pattern ) ) {
				cards[ 25+num ]=true;
			} else if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			} "C".equals(  pattern ) "C".equals "C" pattern {
				cards[ 25+num ]=true;
			} cards[ 25+num ]=true cards[ 25+num ] cards 25+num 25 num true if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			} "D".equals(  pattern ) "D".equals "D" pattern {
				cards[ 38+num ]=true;			
			} cards[ 38+num ]=true cards[ 38+num ] cards 38+num 38 num true for( int i=0; i<52; i++ ) {
			if( false == cards[ i ] ) {
				int num = i/13;
				if( 0 == num ) {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} else if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				}
			}
		} int i=0; int i=0; i 0 i<52 i 52 i++ i++ i {
			if( false == cards[ i ] ) {
				int num = i/13;
				if( 0 == num ) {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} else if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				}
			}
		} {
			if( false == cards[ i ] ) {
				int num = i/13;
				if( 0 == num ) {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} else if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				}
			}
		} if( false == cards[ i ] ) {
				int num = i/13;
				if( 0 == num ) {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} else if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				}
			} false == cards[ i ] false cards[ i ] cards i {
				int num = i/13;
				if( 0 == num ) {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} else if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				}
			} int num = i/13; num i/13 i 13 if( 0 == num ) {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} else if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				} 0 == num 0 num {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} num=(i%13)+1 num (i%13)+1 (i%13) i 13 1 System.out.println( "S "+ num) System.out.println System.out System System.out "S "+ num "S " num if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				} 1 == num 1 num {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} num=(i%13)+1 num (i%13)+1 (i%13) i 13 1 System.out.println( "H "+num ) System.out.println System.out System System.out "H "+num "H " num if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				} 2 == num 2 num {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} num=(i%13)+1 num (i%13)+1 (i%13) i 13 1 System.out.println( "C "+num ) System.out.println System.out System System.out "C "+num "C " num if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				} 3 == num 3 num {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				} num=(i%13)+1 num (i%13)+1 (i%13) i 13 1 System.out.println( "D "+num ) System.out.println System.out System System.out "D "+num "D " num String[] args args
import java.util.Scanner;
class Main {
	public static void main(String[] args) {
		Scanner kb = new Scanner( System.in );

		String str = kb.nextLine();
		int n = Integer.parseInt( str );
		
		boolean[] cards= new boolean[53]; 
		for( int i=0; i<n; i++ ) {
			String pattern = kb.next();
			int num = kb.nextInt();
			if( "S".equals(  pattern ) ) {
				cards[ num-1 ]=true;
			} else if( "H".equals(  pattern ) ) {
				cards[ 12+num ]=true;
			} else if( "C".equals(  pattern ) ) {
				cards[ 25+num ]=true;
			} else if( "D".equals(  pattern ) ) {
				cards[ 38+num ]=true;			
			}
		}

		for( int i=0; i<52; i++ ) {
			if( false == cards[ i ] ) {
				int num = i/13;
				if( 0 == num ) {
					num=(i%13)+1;
					System.out.println( "S "+ num);
				} else if( 1 == num ) {
					num=(i%13)+1;
					System.out.println( "H "+num );
				} else if( 2 == num ) {
					num=(i%13)+1;
					System.out.println( "C "+num );
				} else if( 3 == num ) {
					num=(i%13)+1;
					System.out.println( "D "+num );				
				}
			}
		}
	}
}