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