#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int x = 0, y = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s.at(i) == 'x')
      x++;
    else
      y++;
  }
  for (int i = 0; i < max(x, y) - min(x, y); i++) {
    if (x > y)
      cout << "x";
    else
      cout << "y";
  }
  return 0;
}
