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