#include<stdio.h>
 
struct Card{
  char s;
  char v;
};
 
void bubble(Card);
void serection(Card);
 
int main(){
  struct Card N[101];
  int n, i;
  char c;
 
  scanf("%d\n", &n);
  for ( i = 1; i <= n; i++ ){
    scanf("%c%c ", &N[i].s, &N[i].v);
  }
 
 return 0;
 
}