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