#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int i = 0;
  int xcount = 0;
  int ycount = 0;
  while (i < s.length())
    if (s[i++] == 'x') ++xcount;
  ycount = s.length() - xcount;
  if (xcount == 0 || ycount == 0) {
    cout << s << endl;
    return 0;
  }
  char ch = 'y';
  if (xcount > ycount) ch = 'x';
  string p(abs(xcount - ycount), ch);
  cout << p << endl;
  return 0;
}
