#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int t;
  cin >> t;
  cin >> s;
  int l, c = 0, i = 0;
  while (i < t) {
    if (s[i] == s[i + 1]) {
      s.erase(s.begin() + i + 1);
      c++;
    } else
      i = i + 2;
    if (i >= s.size()) break;
  }
  if (s.size() % 2 != 0) {
    s.erase(s.begin() + (s.size() - 1));
    c++;
  }
  cout << c << endl;
  cout << s << endl;
}
