#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, cnt = 0;
  string s;
  cin >> n >> s;
  for (int i = 0; i < n - 1; i = i + 2) {
    while (s[i] == s[i + 1]) {
      s.erase(i + 1, 1);
      n--;
      cnt++;
    }
  }
  if (n % 2 != 0) {
    s.erase(n - 1, 1);
    cnt++;
  }
  cout << cnt << endl << s;
}
