import java.util.Scanner;

import javax.sound.midi.Track;

public class Main
{

	public static void main(String[] args)
	{
		boolean[][] card = new boolean[5][14];
		for (int i = 0; i < card.length; i++)
		{
			for (int j = 0; j < card[i].length; j++)
			{
				card[i][j] = false;
			}
		}
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		String c;
		int m;

		for (int i = 1; i <= n; i++)
		{
			c = in.next();
			m = in.nextInt();
			switch (c.charAt(0))
			{
			case 'S':
				card[1][m] = true;
				break;
			case 'H':
				card[2][m] = true;
				break;
			case 'C':
				card[3][m] = true;
				break;
			case 'D':
				card[4][m] = true;
				break;
			default:
				System.out.println("?????????");
				break;
			}

		}
		
		//System.out.println("????§? \n");

		for (int i = 1; i < card.length; i++)
		{
			for (int j = 1; j < card[i].length; j++)
			{
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			}
		}

	}
} import java.util.Scanner; Scanner java.util import javax.sound.midi.Track; Track javax.sound.midi public class Main
{

	public static void main(String[] args)
	{
		boolean[][] card = new boolean[5][14];
		for (int i = 0; i < card.length; i++)
		{
			for (int j = 0; j < card[i].length; j++)
			{
				card[i][j] = false;
			}
		}
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		String c;
		int m;

		for (int i = 1; i <= n; i++)
		{
			c = in.next();
			m = in.nextInt();
			switch (c.charAt(0))
			{
			case 'S':
				card[1][m] = true;
				break;
			case 'H':
				card[2][m] = true;
				break;
			case 'C':
				card[3][m] = true;
				break;
			case 'D':
				card[4][m] = true;
				break;
			default:
				System.out.println("?????????");
				break;
			}

		}
		
		//System.out.println("????§? \n");

		for (int i = 1; i < card.length; i++)
		{
			for (int j = 1; j < card[i].length; j++)
			{
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			}
		}

	}
} Main public static void main(String[] args)
	{
		boolean[][] card = new boolean[5][14];
		for (int i = 0; i < card.length; i++)
		{
			for (int j = 0; j < card[i].length; j++)
			{
				card[i][j] = false;
			}
		}
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		String c;
		int m;

		for (int i = 1; i <= n; i++)
		{
			c = in.next();
			m = in.nextInt();
			switch (c.charAt(0))
			{
			case 'S':
				card[1][m] = true;
				break;
			case 'H':
				card[2][m] = true;
				break;
			case 'C':
				card[3][m] = true;
				break;
			case 'D':
				card[4][m] = true;
				break;
			default:
				System.out.println("?????????");
				break;
			}

		}
		
		//System.out.println("????§? \n");

		for (int i = 1; i < card.length; i++)
		{
			for (int j = 1; j < card[i].length; j++)
			{
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			}
		}

	} main {
		boolean[][] card = new boolean[5][14];
		for (int i = 0; i < card.length; i++)
		{
			for (int j = 0; j < card[i].length; j++)
			{
				card[i][j] = false;
			}
		}
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		String c;
		int m;

		for (int i = 1; i <= n; i++)
		{
			c = in.next();
			m = in.nextInt();
			switch (c.charAt(0))
			{
			case 'S':
				card[1][m] = true;
				break;
			case 'H':
				card[2][m] = true;
				break;
			case 'C':
				card[3][m] = true;
				break;
			case 'D':
				card[4][m] = true;
				break;
			default:
				System.out.println("?????????");
				break;
			}

		}
		
		//System.out.println("????§? \n");

		for (int i = 1; i < card.length; i++)
		{
			for (int j = 1; j < card[i].length; j++)
			{
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			}
		}

	} boolean[][] card = new boolean[5][14]; card new boolean[5][14] 5 14 for (int i = 0; i < card.length; i++)
		{
			for (int j = 0; j < card[i].length; j++)
			{
				card[i][j] = false;
			}
		} int i = 0; int i = 0; i 0 i < card.length i card.length card card.length i++ i++ i {
			for (int j = 0; j < card[i].length; j++)
			{
				card[i][j] = false;
			}
		} {
			for (int j = 0; j < card[i].length; j++)
			{
				card[i][j] = false;
			}
		} for (int j = 0; j < card[i].length; j++)
			{
				card[i][j] = false;
			} int j = 0; int j = 0; j 0 j < card[i].length j card[i].length card[i] card i card[i].length j++ j++ j {
				card[i][j] = false;
			} {
				card[i][j] = false;
			} card[i][j] = false card[i][j] card[i] card i j false Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in String c; c int m; m for (int i = 1; i <= n; i++)
		{
			c = in.next();
			m = in.nextInt();
			switch (c.charAt(0))
			{
			case 'S':
				card[1][m] = true;
				break;
			case 'H':
				card[2][m] = true;
				break;
			case 'C':
				card[3][m] = true;
				break;
			case 'D':
				card[4][m] = true;
				break;
			default:
				System.out.println("?????????");
				break;
			}

		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			c = in.next();
			m = in.nextInt();
			switch (c.charAt(0))
			{
			case 'S':
				card[1][m] = true;
				break;
			case 'H':
				card[2][m] = true;
				break;
			case 'C':
				card[3][m] = true;
				break;
			case 'D':
				card[4][m] = true;
				break;
			default:
				System.out.println("?????????");
				break;
			}

		} {
			c = in.next();
			m = in.nextInt();
			switch (c.charAt(0))
			{
			case 'S':
				card[1][m] = true;
				break;
			case 'H':
				card[2][m] = true;
				break;
			case 'C':
				card[3][m] = true;
				break;
			case 'D':
				card[4][m] = true;
				break;
			default:
				System.out.println("?????????");
				break;
			}

		} c = in.next() c in.next() in.next in m = in.nextInt() m in.nextInt() in.nextInt in switch (c.charAt(0))
			{
			case 'S':
				card[1][m] = true;
				break;
			case 'H':
				card[2][m] = true;
				break;
			case 'C':
				card[3][m] = true;
				break;
			case 'D':
				card[4][m] = true;
				break;
			default:
				System.out.println("?????????");
				break;
			} c.charAt(0) c.charAt c 0 case 'S': 'S' case 'S': card[1][m] = true card[1][m] card[1] card 1 m true break; case 'H': 'H' case 'H': card[2][m] = true card[2][m] card[2] card 2 m true break; case 'C': 'C' case 'C': card[3][m] = true card[3][m] card[3] card 3 m true break; case 'D': 'D' case 'D': card[4][m] = true card[4][m] card[4] card 4 m true break; default: default: System.out.println("?????????") System.out.println System.out System System.out "?????????" break; for (int i = 1; i < card.length; i++)
		{
			for (int j = 1; j < card[i].length; j++)
			{
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			}
		} int i = 1; int i = 1; i 1 i < card.length i card.length card card.length i++ i++ i {
			for (int j = 1; j < card[i].length; j++)
			{
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			}
		} {
			for (int j = 1; j < card[i].length; j++)
			{
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			}
		} for (int j = 1; j < card[i].length; j++)
			{
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			} int j = 1; int j = 1; j 1 j < card[i].length j card[i].length card[i] card i card[i].length j++ j++ j {
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			} {
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			} if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				} card[i][j] == false card[i][j] card[i] card i j false {
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				} switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					} i case 1: 1 case 1: System.out.println("S " + (j)) System.out.println System.out System System.out "S " + (j) "S " (j) break; case 2: 2 case 2: System.out.println("H " + (j)) System.out.println System.out System System.out "H " + (j) "H " (j) break; case 3: 3 case 3: System.out.println("C " + (j)) System.out.println System.out System System.out "C " + (j) "C " (j) break; case 4: 4 case 4: System.out.println("D " + (j)) System.out.println System.out System System.out "D " + (j) "D " (j) break; default: default: break; String[] args args public class Main
{

	public static void main(String[] args)
	{
		boolean[][] card = new boolean[5][14];
		for (int i = 0; i < card.length; i++)
		{
			for (int j = 0; j < card[i].length; j++)
			{
				card[i][j] = false;
			}
		}
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		String c;
		int m;

		for (int i = 1; i <= n; i++)
		{
			c = in.next();
			m = in.nextInt();
			switch (c.charAt(0))
			{
			case 'S':
				card[1][m] = true;
				break;
			case 'H':
				card[2][m] = true;
				break;
			case 'C':
				card[3][m] = true;
				break;
			case 'D':
				card[4][m] = true;
				break;
			default:
				System.out.println("?????????");
				break;
			}

		}
		
		//System.out.println("????§? \n");

		for (int i = 1; i < card.length; i++)
		{
			for (int j = 1; j < card[i].length; j++)
			{
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			}
		}

	}
} public class Main
{

	public static void main(String[] args)
	{
		boolean[][] card = new boolean[5][14];
		for (int i = 0; i < card.length; i++)
		{
			for (int j = 0; j < card[i].length; j++)
			{
				card[i][j] = false;
			}
		}
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		String c;
		int m;

		for (int i = 1; i <= n; i++)
		{
			c = in.next();
			m = in.nextInt();
			switch (c.charAt(0))
			{
			case 'S':
				card[1][m] = true;
				break;
			case 'H':
				card[2][m] = true;
				break;
			case 'C':
				card[3][m] = true;
				break;
			case 'D':
				card[4][m] = true;
				break;
			default:
				System.out.println("?????????");
				break;
			}

		}
		
		//System.out.println("????§? \n");

		for (int i = 1; i < card.length; i++)
		{
			for (int j = 1; j < card[i].length; j++)
			{
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			}
		}

	}
} Main
import java.util.Scanner;

import javax.sound.midi.Track;

public class Main
{

	public static void main(String[] args)
	{
		boolean[][] card = new boolean[5][14];
		for (int i = 0; i < card.length; i++)
		{
			for (int j = 0; j < card[i].length; j++)
			{
				card[i][j] = false;
			}
		}
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		String c;
		int m;

		for (int i = 1; i <= n; i++)
		{
			c = in.next();
			m = in.nextInt();
			switch (c.charAt(0))
			{
			case 'S':
				card[1][m] = true;
				break;
			case 'H':
				card[2][m] = true;
				break;
			case 'C':
				card[3][m] = true;
				break;
			case 'D':
				card[4][m] = true;
				break;
			default:
				System.out.println("?????????");
				break;
			}

		}
		
		//System.out.println("????§? \n");

		for (int i = 1; i < card.length; i++)
		{
			for (int j = 1; j < card[i].length; j++)
			{
				if (card[i][j] == false)
				{
					switch (i)
					{
					case 1:
						System.out.println("S " + (j));
						break;
					case 2:
						System.out.println("H " + (j));
						break;
					case 3:
						System.out.println("C " + (j));
						break;
					case 4:
						System.out.println("D " + (j));
						break;

					default:
						break;
					}
					
				}
			}
		}

	}
}