#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  string s;
  getline(cin, s);
  size_t size = s.size();
  int xc = 0, yc = 0;
  for (int i = 0; i < size; ++i) {
    if (s[i] == 'x')
      ++xc;
    else
      ++yc;
  }
  int min = std::min(xc, yc);
  xc -= min;
  yc -= min;
  if (xc == 0) {
    for (int i = 0; i < yc; ++i) cout.put('y');
  } else {
    for (int i = 0; i < xc; ++i) cout.put('x');
  }
}
