#include <bits/stdc++.h>
using namespace std;
int main() {
  long long m, n, t, b, c, d, i, j, k, x, y, z, l, q, r;
  long long cnt = 0, ans = 0;
  string s, s1;
  cin >> s;
  x = s.size();
  long long cntx = 0, cnty = 0;
  for (long long i = 0; i < x; i++) {
    if (s[i] == 'x')
      cntx++;
    else
      cnty++;
  }
  if (cntx > cnty) {
    cnt = cntx - cnty;
    for (long long i = 0; i < cnt; i++) cout << "x";
  } else {
    cnt = cnty - cntx;
    for (long long i = 0; i < cnt; i++) cout << "y";
  }
  return 0;
}
