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