#include <bits/stdc++.h>
int main(void) {
  int N;
  int K = 0;
  char S[2 * 10 * 10 * 10 * 10 * 10];
  while (N < 1 || N > 2 * 10 * 10 * 10 * 10 * 10) {
    scanf("%d", &N);
  }
  scanf("%s", S);
  for (int i = 0; i < N - 1; i++) {
    if (S[i] != S[i + 1] && S[i] != '.') {
      K++;
      printf("%d\n", i);
      printf("%c\n", S[i]);
      printf("%c\n", S[i + 1]);
    }
  }
  printf("%d\n", K);
  return 0;
}
