n = gets
origin = Array.new
givenString = Array.new
output = Array.new

"SHCD".each_char {|ch|
    for i in 1..13
        origin.push([ch, i])
    end
}

while line = gets
    design, num = line.split
    givenString.push([design, num.to_i])
end
p output = (origin - givenString)


