#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-8;
const double pi = acos(-1);
long long dcmp(double a, double b) {
  return fabs(a - b) <= EPS ? 0 : a < b ? -1 : 1;
}
void debug() {}
long long const N = 1e5 + 9, M = N * N / 2, OO = 0x3f3f3f3f;
int main() {
  cout << fixed << setprecision(0);
  ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  debug();
  string str;
  cin >> str;
  sort(str.begin(), str.end());
  long long cntY = count(str.begin(), str.end(), 'y'),
            cntX = count(str.begin(), str.end(), 'x'), lps;
  if (cntY == cntX) {
    cout << "";
  } else if (cntY > cntX) {
    lps = cntY - cntX;
    for (int i = 0; i < lps; ++i) {
      cout << 'y';
    }
  } else {
    lps = cntX - cntY;
    for (int i = 0; i < lps; ++i) {
      cout << 'x';
    }
  }
  return 0;
}
