#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, d = "";
  int n, x, y;
  cin >> s;
  n = (int)s.size();
  x = y = 0;
  for (int i = 0; i < n; ++i) {
    if (s[i] == 'x')
      x++;
    else
      y++;
  }
  char c;
  if (x > y)
    c = 'x';
  else
    c = 'y';
  for (int i = 0; i < abs(x - y); ++i) cout << c;
  cout << endl;
  return 0;
}
