#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(0);
  int a, ct = 0, vt = 0;
  cin >> a;
  string s;
  cin >> s;
  vector<pair<char, int>> v;
  for (int i = 0; i < a; i++) v.push_back({s[i], 0});
  for (int i = 0; i < a - 1; i++) {
    if (s[i] == s[i + 1]) {
      ct++;
      v[i].second = 1;
    } else
      i++;
  }
  for (int i = a - 1; i >= 0; i--) {
    if (v[i].second == 0) {
      vt++;
    }
  }
  if (vt & 1) {
    ct++;
    for (int i = a - 1; i >= 0; i--) {
      if (v[i].second == 0) {
        v[i].second = 1;
        break;
      }
    }
  }
  cout << ct << "\n";
  for (int i = 0; i < a; i++) {
    if (v[i].second == 0) cout << v[i].first;
  }
  return 0;
}
