#include <bits/stdc++.h>
using namespace std;
string s;
long long cntx = 0, cnty = 0;
void SMG() {
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'x')
      cntx++;
    else
      cnty++;
  }
  if (cnty > cntx)
    for (int i = 0; i < cnty - cntx; i++) cout << "y";
  else
    for (int i = 0; i < cntx - cnty; i++) cout << "x";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  SMG();
  return 0;
}
