#include <bits/stdc++.h>
using namespace std;
int i, n, j;
string s, a;
int main() {
  cin >> n;
  cin >> s;
  for (i = 0; i < n; ++i) {
    a.push_back(s[i]);
    j = i + 1;
    while (j < n && s[j] == s[i]) ++j;
    if (j < n) a.push_back(s[j]);
    i = j;
  }
  if (a.size() % 2 == 1) {
    cout << s.size() - a.size() + 1 << '\n';
    for (i = 0; i < a.size() - 1; ++i) cout << a[i];
  } else {
    cout << s.size() - a.size() << '\n';
    cout << a;
  }
  return 0;
}
