import java.io.*;
import java.util.ArrayList;
public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		int n=Integer.parseInt(str);
		ArrayList<String> list=new ArrayList<String>();
		for(int i=0;i<n;i++){
			list.add(input.readLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
			System.out.println("S"+" "+i);
			}
		
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
			System.out.println("H"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
			System.out.println("C"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
			System.out.println("D"+" "+i);
		}
	}
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		int n=Integer.parseInt(str);
		ArrayList<String> list=new ArrayList<String>();
		for(int i=0;i<n;i++){
			list.add(input.readLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
			System.out.println("S"+" "+i);
			}
		
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
			System.out.println("H"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
			System.out.println("C"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
			System.out.println("D"+" "+i);
		}
	}
} Main public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		int n=Integer.parseInt(str);
		ArrayList<String> list=new ArrayList<String>();
		for(int i=0;i<n;i++){
			list.add(input.readLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
			System.out.println("S"+" "+i);
			}
		
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
			System.out.println("H"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
			System.out.println("C"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
			System.out.println("D"+" "+i);
		}
	} main {
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		int n=Integer.parseInt(str);
		ArrayList<String> list=new ArrayList<String>();
		for(int i=0;i<n;i++){
			list.add(input.readLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
			System.out.println("S"+" "+i);
			}
		
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
			System.out.println("H"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
			System.out.println("C"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
			System.out.println("D"+" "+i);
		}
	} BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) String str=input.readLine(); str input.readLine() input.readLine input int n=Integer.parseInt(str); n Integer.parseInt(str) Integer.parseInt Integer str ArrayList<String> list=new ArrayList<String>(); list new ArrayList<String>() for(int i=0;i<n;i++){
			list.add(input.readLine());
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			list.add(input.readLine());
		} {
			list.add(input.readLine());
		} list.add(input.readLine()) list.add list input.readLine() input.readLine input for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
			System.out.println("S"+" "+i);
			} int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
			if(list.contains("S "+i)==false)
			System.out.println("S"+" "+i);
			} {
			if(list.contains("S "+i)==false)
			System.out.println("S"+" "+i);
			} if(list.contains("S "+i)==false)
			System.out.println("S"+" "+i); list.contains("S "+i)==false list.contains("S "+i) list.contains list "S "+i "S " i false System.out.println("S"+" "+i) System.out.println System.out System System.out "S"+" "+i "S"+" "+i "S" " " i for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
			System.out.println("H"+" "+i);
		} int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
			if(list.contains("H "+i)==false)
			System.out.println("H"+" "+i);
		} {
			if(list.contains("H "+i)==false)
			System.out.println("H"+" "+i);
		} if(list.contains("H "+i)==false)
			System.out.println("H"+" "+i); list.contains("H "+i)==false list.contains("H "+i) list.contains list "H "+i "H " i false System.out.println("H"+" "+i) System.out.println System.out System System.out "H"+" "+i "H"+" "+i "H" " " i for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
			System.out.println("C"+" "+i);
		} int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
			if(list.contains("C "+i)==false)
			System.out.println("C"+" "+i);
		} {
			if(list.contains("C "+i)==false)
			System.out.println("C"+" "+i);
		} if(list.contains("C "+i)==false)
			System.out.println("C"+" "+i); list.contains("C "+i)==false list.contains("C "+i) list.contains list "C "+i "C " i false System.out.println("C"+" "+i) System.out.println System.out System System.out "C"+" "+i "C"+" "+i "C" " " i for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
			System.out.println("D"+" "+i);
		} int i=1; int i=1; i 1 i<14 i 14 i++ i++ i {
			if(list.contains("D "+i)==false)
			System.out.println("D"+" "+i);
		} {
			if(list.contains("D "+i)==false)
			System.out.println("D"+" "+i);
		} if(list.contains("D "+i)==false)
			System.out.println("D"+" "+i); list.contains("D "+i)==false list.contains("D "+i) list.contains list "D "+i "D " i false System.out.println("D"+" "+i) System.out.println System.out System System.out "D"+" "+i "D"+" "+i "D" " " i String[] args args public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		int n=Integer.parseInt(str);
		ArrayList<String> list=new ArrayList<String>();
		for(int i=0;i<n;i++){
			list.add(input.readLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
			System.out.println("S"+" "+i);
			}
		
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
			System.out.println("H"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
			System.out.println("C"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
			System.out.println("D"+" "+i);
		}
	}
} public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		int n=Integer.parseInt(str);
		ArrayList<String> list=new ArrayList<String>();
		for(int i=0;i<n;i++){
			list.add(input.readLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
			System.out.println("S"+" "+i);
			}
		
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
			System.out.println("H"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
			System.out.println("C"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
			System.out.println("D"+" "+i);
		}
	}
} Main
import java.io.*;
import java.util.ArrayList;
public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		int n=Integer.parseInt(str);
		ArrayList<String> list=new ArrayList<String>();
		for(int i=0;i<n;i++){
			list.add(input.readLine());
		}
		for(int i=1;i<14;i++){
			if(list.contains("S "+i)==false)
			System.out.println("S"+" "+i);
			}
		
		for(int i=1;i<14;i++){
			if(list.contains("H "+i)==false)
			System.out.println("H"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("C "+i)==false)
			System.out.println("C"+" "+i);
		}
		for(int i=1;i<14;i++){
			if(list.contains("D "+i)==false)
			System.out.println("D"+" "+i);
		}
	}
}