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