#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string x = "x";
  string y = "y";
  int countx = 0;
  int county = 0;
  int i;
  for (int i = 0; i < s.length(); i++) {
    if (s.substr(i, 1) == x) {
      countx = countx + 1;
    }
  }
  for (i = 0; i < s.length(); i++) {
    if (s.substr(i, 1) == y) {
      county = county + 1;
    }
  }
  if (countx > county) {
    countx = countx - county;
    for (i = 0; i < countx; i++) {
      cout << "x";
    }
  } else if (county > countx) {
    county = county - countx;
    for (i = 0; i < county; i++) {
      cout << "y";
    }
  } else if (county == countx) {
    cout << " ";
  }
  return 0;
}
