#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int x = 0, y = 0;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == 'x')
      ++x;
    else
      ++y;
  }
  int n;
  if (x > y)
    n = y;
  else
    n = x;
  int n_x = n, n_y = n;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == 'y' && n_y-- > 0) s[i] = '0';
    if (s[i] == 'x' && n_x-- > 0) s[i] = '0';
  }
  for (int i = 0; i < s.size(); ++i)
    if (s[i] != '0') cout << s[i];
}
