#include <bits/stdc++.h>
using namespace std;
int i, x, p = 0, q = 0, cx = 0, cy = 0;
char s[1000001];
int main() {
  cin >> s;
  x = strlen(s);
  for (i = 0; i < x; i++) {
    if (s[i] == 'x') {
      p = 1;
      continue;
    } else {
      p = 0;
      break;
    }
  }
  for (i = 0; i < x; i++) {
    if (s[i] == 'y') {
      q = 1;
      continue;
    } else {
      q = 0;
      break;
    }
  }
  if (p == 1 || q == 1) {
    cout << s;
  } else {
    for (i = 0; i < x; i++) {
      if (s[i] == 'x')
        cx++;
      else
        cy++;
    }
    if (cx > cy) {
      for (i = 0; i < cx - cy; i++) {
        cout << "x";
      }
    } else {
      for (i = 0; i < cy - cx; i++) {
        cout << "y";
      }
    }
  }
  return 0;
}
