#include <bits/stdc++.h>
using namespace std;
const int maxn = 100000 + 100;
int main() {
  string s, t;
  cin >> s;
  t = s;
  int cx = 0, cy = 0;
  for (int i = 0; s[i]; i++) {
    if (s[i] == 'x')
      cx++;
    else
      cy++;
  }
  if (cx > cy) {
    for (int i = 0; i < cx - cy; i++) printf("x");
  } else {
    for (int i = 0; i < cy - cx; i++) printf("y");
  }
  return 0;
}
