Problem:
Finding Missing Cards

Taro is going to play a card game. However, now he has only n cards, even though there should be 52 cards (he has no Jokers).

The 52 cards include 13 ranks of each of the four suits: spade, heart, club and diamond.

Input

In the first line, the number of cards n (n ≤ 52) is given.

In the following n lines, data of the n cards are given. Each card is given by a pair of a character and an integer which represent its suit and rank respectively. A suit is represented by 'S', 'H', 'C' and 'D' for spades, hearts, clubs and diamonds respectively. A rank is represented by an integer from 1 to 13.

Output

Print the missing cards. The same as the input format, each card should be printed with a character and an integer separated by a space character in a line.
Arrange the missing cards in the following priorities:

Print cards of spades, hearts, clubs and diamonds in this order.

If the suits are equal, print cards with lower ranks first.

Sample Input

47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 5
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13

Sample Output

S 1
H 3
H 7
C 12
D 8

Note

      解説

Solution in C# (judge verdict: Accepted)

using System;

class Program {

    /// <summary>
    /// スートの定義
    /// </summary>
    enum Suit {
        /// <summary>
        /// Spade
        /// </summary>
        S,
        /// <summary>
        /// Heart
        /// </summary>
        H,
        /// <summary>
        /// Crab
        /// </summary>
        C,
        /// <summary>
        /// Dia
        /// </summary>
        D,
    }

    private static int Main() {
        // 不足分の判定用フラグ
        bool[] flags = new bool[ 52 ];
        // 所持トランプ数
        int count = 0;

        {
            // 所持トランプ数を読み込み
            var input = Console.ReadLine();
            count = int.Parse( input );
        }

        // 所持トランプ数の分だけ判定用フラグを立てていく
        for( int i = 0; i < count; ++i ) {
            var input = Console.ReadLine();
            var values = input.Split( ' ' );

            var suitChar = char.Parse( values[ 0 ] );
            var rank = int.Parse( values[ 1 ] );
            
            // スート文字から列挙値を取得
            Suit suit = GetSuit( suitChar );

            // rank は 1?13 なので 0?12 にして Index に適用
            var index = (int)suit * 13 + ( rank - 1 );

            flags[ index ] = true;
        }

        // 所持してないトランプを検索して出力
        for( int i = 0; i < flags.Length; ++i ) {
            if( !flags[ i ] ) {
                var output = string.Format( "{0} {1}", (Suit)( i / 13 ), ( i % 13 ) + 1 );
                Console.WriteLine( output );
            }
        }

        return 0;
    }

    /// <summary>
    /// スート文字から列挙値を取得
    /// </summary>
    /// <param name="suitChar">スート文字</param>
    /// <returns>Suit列挙値</returns>
    private static Suit GetSuit( char suitChar ) {
        switch( suitChar ) {
            case 'S':
                return  Suit.S;
            case 'H':
                return Suit.H;
            case 'C':
                return Suit.C;
            case 'D':
                return Suit.D;
            default:
                throw new Exception( "Invalid Suit Char: " + suitChar );
        }
    }
}