#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  map<char, int> index;
  cin >> s;
  for (int i = 0; s[i]; i++) {
    index[s[i]]++;
  }
  string res;
  int temp = abs(index['y'] - index['x']);
  if (index['y'] > index['x'])
    res.insert(0, temp, 'y');
  else if (index['y'] < index['x'])
    res.insert(0, temp, 'x');
  cout << res << '\n';
  return 0;
}
