const input = require('fs').readFileSync('/dev/stdin', 'utf8');
const cards = input.split('\n');
let full = [];
let str = "";

for(let i = 1; i <= 13; i++) full.push(`S ${i}`);
for(let i = 1; i <= 13; i++) full.push(`H ${i}`);
for(let i = 1; i <= 13; i++) full.push(`C ${i}`);
for(let i = 1; i <= 13; i++) full.push(`D ${i}`);

for(let i = 0; i < 52; i++){
  if(cards.indexOf(full[i]) !== -1) continue;
  str += full[i] + '\n';
}

if(str !== '') console.log(str.trim());
