#include <bits/stdc++.h>
int main() {
  int i, n, pic, rank, stuck[(4)][(13)];
  scanf("%d", &n);
  for (i = 1; i <= n; i++) {
    scanf("%d %d", &pic, &rank);
    switch (pic) {
      case 'S':
        pic = 0;
      case 'H':
        pic = 1;
      case 'C':
        pic = 2;
      case 'D':
        pic = 3;
    }
  }
  return 0;
}
