function main(input) {
  var temp = input.split('\n');
  var arr = temp;
  var marks = ["S", "H", "C", "D"];
  var answer = "";
  for (var i = 0; i < marks.length; i++) {
    for (var j = 0; j < 13; j++) {
      var card = marks[i] + " " + (j + 1);
      if (arr.indexOf(card) < 0) {
        answer += (card + "\n");
      }
    }
  }
  if (answer.length != 0)
    console.log(answer.trim());
}

var x = require('fs').readFileSync('/dev/stdin', 'utf-8');
main(x);
