#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  int cy = 0;
  int cs = 0;
  int n = 0;
  cin >> str;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == 'x') {
      cs++;
    } else {
      cy++;
    }
  }
  if (cy > cs) {
    n = cy - cs;
    while (n--) {
      printf("y");
    }
  }
  if (cs > cy) {
    n = cs - cy;
    {
      while (n--) {
        printf("x");
      }
    }
  }
}
