#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  vector<int64_t> v;
  for (int64_t i = 0; i < s.size(); ++i) {
    if (s[i] == 'y')
      v.push_back(i);
    else if (s[i] == 'x' and !v.empty())
      s[v.back()] = '-', s[i] = '-', v.pop_back();
  }
  v.clear();
  for (int64_t i = 0; i < s.size(); ++i) {
    if (s[i] == 'x')
      v.push_back(i);
    else if (s[i] == 'y' and !v.empty())
      s[v.back()] = '-', s[i] = '-', v.pop_back();
  }
  for (auto& x : s)
    if (x != '-') cout << x;
}
