
import java.util.*;

class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n;
String a;
int b = 0;
int[][]kard = new int[4][13];
String []mark = {"S","H","C","D"};
n = sc.nextInt();
for(int i=0; i<n; i++){ 
a = sc.next();
b = sc.nextInt();
for(int d=0; d<4; d++){
if(mark[d].equals(a))
kard[d][b-1]++;
}
}
for(int c=0; c<4; c++){
	for(int d=0; d<13; d++){
		if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); 
	}
}
}
} import java.util.*; util.* java class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n;
String a;
int b = 0;
int[][]kard = new int[4][13];
String []mark = {"S","H","C","D"};
n = sc.nextInt();
for(int i=0; i<n; i++){ 
a = sc.next();
b = sc.nextInt();
for(int d=0; d<4; d++){
if(mark[d].equals(a))
kard[d][b-1]++;
}
}
for(int c=0; c<4; c++){
	for(int d=0; d<13; d++){
		if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); 
	}
}
}
} Main public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n;
String a;
int b = 0;
int[][]kard = new int[4][13];
String []mark = {"S","H","C","D"};
n = sc.nextInt();
for(int i=0; i<n; i++){ 
a = sc.next();
b = sc.nextInt();
for(int d=0; d<4; d++){
if(mark[d].equals(a))
kard[d][b-1]++;
}
}
for(int c=0; c<4; c++){
	for(int d=0; d<13; d++){
		if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); 
	}
}
} main {
Scanner sc = new Scanner(System.in);
int n;
String a;
int b = 0;
int[][]kard = new int[4][13];
String []mark = {"S","H","C","D"};
n = sc.nextInt();
for(int i=0; i<n; i++){ 
a = sc.next();
b = sc.nextInt();
for(int d=0; d<4; d++){
if(mark[d].equals(a))
kard[d][b-1]++;
}
}
for(int c=0; c<4; c++){
	for(int d=0; d<13; d++){
		if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); 
	}
}
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n; n String a; a int b = 0; b 0 int[][]kard = new int[4][13]; kard new int[4][13] 4 13 String []mark = {"S","H","C","D"}; mark {"S","H","C","D"} "S" "H" "C" "D" n = sc.nextInt() n sc.nextInt() sc.nextInt sc for(int i=0; i<n; i++){ 
a = sc.next();
b = sc.nextInt();
for(int d=0; d<4; d++){
if(mark[d].equals(a))
kard[d][b-1]++;
}
} int i=0; int i=0; i 0 i<n i n i++ i++ i { 
a = sc.next();
b = sc.nextInt();
for(int d=0; d<4; d++){
if(mark[d].equals(a))
kard[d][b-1]++;
}
} { 
a = sc.next();
b = sc.nextInt();
for(int d=0; d<4; d++){
if(mark[d].equals(a))
kard[d][b-1]++;
}
} a = sc.next() a sc.next() sc.next sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc for(int d=0; d<4; d++){
if(mark[d].equals(a))
kard[d][b-1]++;
} int d=0; int d=0; d 0 d<4 d 4 d++ d++ d {
if(mark[d].equals(a))
kard[d][b-1]++;
} {
if(mark[d].equals(a))
kard[d][b-1]++;
} if(mark[d].equals(a))
kard[d][b-1]++; mark[d].equals(a) mark[d].equals mark[d] mark d a kard[d][b-1]++ kard[d][b-1] kard[d] kard d b-1 b 1 for(int c=0; c<4; c++){
	for(int d=0; d<13; d++){
		if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); 
	}
} int c=0; int c=0; c 0 c<4 c 4 c++ c++ c {
	for(int d=0; d<13; d++){
		if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); 
	}
} {
	for(int d=0; d<13; d++){
		if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); 
	}
} for(int d=0; d<13; d++){
		if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); 
	} int d=0; int d=0; d 0 d<13 d 13 d++ d++ d {
		if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); 
	} {
		if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); 
	} if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); kard[c][d]==0 kard[c][d] kard[c] kard c d 0 System.out.println(mark[c]+" "+(d+1)) System.out.println System.out System System.out mark[c]+" "+(d+1) mark[c]+" "+(d+1) mark[c] mark c " " (d+1) d 1 String[] args args

import java.util.*;

class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n;
String a;
int b = 0;
int[][]kard = new int[4][13];
String []mark = {"S","H","C","D"};
n = sc.nextInt();
for(int i=0; i<n; i++){ 
a = sc.next();
b = sc.nextInt();
for(int d=0; d<4; d++){
if(mark[d].equals(a))
kard[d][b-1]++;
}
}
for(int c=0; c<4; c++){
	for(int d=0; d<13; d++){
		if( kard[c][d]==0) System.out.println(mark[c]+" "+(d+1)); 
	}
}
}
}