#include<stdio.h>

struct Card{
  char suit;
  char value;
};

void bubble(Card);
void serection(Card);

int main(){
  struct Card C[101];
  int n, i;
  char ch;

  scanf("%d\n", &n);
  for ( i = 1; i <= n; i++ ){
    scanf("%c%c ", &C[i].suit, &C[i].value);
  }



  return 0;
}