#include <bits/stdc++.h>
using namespace std;
char str[1000010];
int main() {
  cin >> str;
  int l = strlen(str);
  int cx = 0;
  int cy = 0;
  for (int i = 0; i < l; i++) {
    if (str[i] == 'x')
      cx++;
    else
      cy++;
  }
  int val = abs(cx - cy);
  if (cx > cy) {
    for (int i = 0; i < val; i++) {
      cout << "x";
    }
    cout << endl;
  } else {
    for (int i = 0; i < val; i++) {
      cout << "y";
    }
    cout << endl;
  }
  return 0;
}
