#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i = 0, ans = 0, l;
  string s;
  cin >> n;
  getchar();
  getline(cin, s);
  auto itr = s.begin();
  while (itr != s.end() && i < s.length()) {
    if (s[i] == s[i + 1]) {
      s.erase(i, 1);
      ans++;
    } else {
      i += 2;
      itr++;
    }
  }
  if (s.length() % 2 == 0) {
    cout << ans << endl << s;
  } else {
    ans++;
    l = s.length();
    cout << ans << endl << s.substr(0, l - 1);
  }
  return 0;
}
