#include <bits/stdc++.h>
using namespace std;
int main() {
  char b;
  bool flag = 0;
  int x = 0, y = 0;
  while (cin >> b) {
    if (b == 'x')
      x++;
    else if (b == 'y')
      y++;
    if (x > 0 && y > 0) {
      if (x >= y) {
        x = x - y;
        y = 0;
      } else {
        y = y - x;
        x = 0;
      }
    }
  }
  char ans;
  if (x > y)
    ans = 'x';
  else
    ans = 'y';
  for (int i = 0; i < max(x, y); i++) cout << ans;
}
