deck = { :S => ("1".."13").to_a, :H => ("1".."13").to_a, :C => ("1".."13").to_a, :D => ("1".."13").to_a }
gets
while ( card = gets )
  suit, num = card.split
  deck[ suit.to_sym ].delete( num )
end
deck.each do | s, vals |
  vals.each do | n |
    puts s.to_s+" "+n
  end
end