cards = readlines.map(&:split)
  cards.shift

  picture = ["S","H","C","D"]
  number = [*1..13]

  for pic in picture
    newarray = []
    newarray = number - (cards.select{|sel| sel[0] == pic}.map{|a,b| b.to_i})
    if newarray.count > 0
      for put in newarray
        puts("#{pic} #{put}")
      end
    end
  end
