#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n, count = 0;
  cin >> n;
  string str, ans;
  cin >> str;
  ans = "";
  char pre, curr, nxt;
  int pos = 2;
  ans = pre = str[0];
  for (long long int i = 1; i < str.size(); i++) {
    curr = str[i];
    if (pos % 2 == 0) {
      if (pre == curr) {
        count++;
        continue;
      } else {
        ans.push_back(curr);
        pos++;
        pre = curr;
      }
    } else {
      ans.push_back(curr);
      pos++;
      pre = curr;
    }
  }
  long long int len = ans.size();
  if (len & 1) {
    count++;
    len--;
    ans.erase(len);
  }
  cout << count << "\n" << ans << endl;
}
int main() {
  int t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
