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