#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  int xs = 0;
  int ys = 0;
  cin >> str;
  for (int n = 0; n < str.length(); n++) {
    if (str[n] == 'x') {
      xs++;
    } else {
      ys++;
    }
  }
  str = "";
  if (ys > xs) {
    for (int n = 0; n < (ys - xs); n++) {
      cout << 'y';
    }
  } else {
    for (int n = 0; n < (xs - ys); n++) {
      cout << 'x';
    }
  }
}
