#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  long long cnt_1 = 0, cnt_2 = 0;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == 'x') {
      cnt_1++;
    } else
      cnt_2++;
  }
  long long diff = abs(cnt_1 - cnt_2);
  if (cnt_1 > cnt_2) {
    for (long long i = 0; i < diff; i++) cout << 'x';
  } else {
    for (long long i = 0; i < diff; i++) {
      cout << 'y';
    }
  }
}
int32_t main() {
  long long t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
