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