#include <bits/stdc++.h>
using namespace std;
void past_code();
int main() {
  ios_base::sync_with_stdio(false);
  int cx = 0, cy = 0;
  string s, t;
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'x')
      cx++;
    else
      cy++;
  }
  for (int i = 0; i < cx - min(cy, cx); i++) cout << "x";
  for (int i = 0; i < cy - min(cy, cx); i++) cout << "y";
  cout << endl;
  return 0;
}
