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