#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, x = 0, y = 0, n;
  char st[1000007];
  scanf("%s", &st);
  cerr << st << endl;
  n = strlen(st);
  for (i = 0; i < n; ++i) {
    if (st[i] == 'x') {
      ++x;
    } else {
      ++y;
    }
  }
  if (x > y) {
    for (i = 0; i < x - y; ++i) {
      cout << 'x';
    }
    cout << endl;
  } else {
    for (i = 0; i < y - x; ++i) {
      cout << 'y';
    }
    cout << endl;
  }
  return 0;
}
