#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, k, m, x, y = 0, t, p = 25, q, l = 1, j, ct = 0, sum = 0,
                               a[10], h[109] = {0}, temp, fl = 2;
  char s[1000000];
  cin >> s;
  l = strlen(s);
  for (i = 0; i < l; i++) {
    if (s[i] == 'x')
      ct++;
    else
      y++;
  }
  if (ct > y)
    for (ct = ct - y; ct > 0; ct--) cout << "x";
  else
    for (y = y - ct; y > 0; y--) cout << "y";
}
