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