#include <bits/stdc++.h>
using namespace std;
int main() {
  string str, ans;
  int i, len, x = 0, y = 0, tmp;
  cin >> str;
  len = str.length();
  for (i = 0; i < len; i++) {
    if (str[i] == 'x')
      x++;
    else
      y++;
  }
  tmp = min(x, y);
  if (tmp == x) {
    for (i = 1; i <= y - tmp; i++) cout << "y";
    cout << endl;
  } else {
    for (i = 1; i <= x - tmp; i++) cout << "x";
    cout << endl;
  }
}
