#include <bits/stdc++.h>
using namespace std;
void solve() {
  string str;
  cin >> str;
  int len = str.size();
  int x = 0, y = 0;
  for (int i = 0; i < len; i++) {
    if (str[i] == 'x')
      x++;
    else
      y++;
    ;
  }
  if (x > y) {
    for (int i = 0; i < x - y; i++) cout << "x";
    cout << "\n";
  } else {
    for (int i = 0; i < y - x; i++) cout << "y";
    cout << "\n";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int tt = 1;
  while (tt--) solve();
}
