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