using System;

namespace ITP1_6_B
{
    class Program
    {
        static void Main()
        {
            int x = int.Parse(Console.ReadLine());
            bool [,] y = new bool[4,13];
            //boolでtrueとfalseに分けて、falseの時に出力させる
            
            string[] s = {"S", "H", "C", "D"};
            
            
            
            for (int l = 0; l < 4; l ++)
            {
                for (int m = 0; m < 13; m ++)
                {
                    if (y[l, m] == false)
                    {
                        Console.WriteLine(s[l] + " " + (m + 1));
                    }
                }
            }
        }
    }
}
