#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  string s;
  cin >> s;
  int c1 = 0, c2 = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'x') c1++;
    if (s[i] == 'y') c2++;
  }
  if (c1 > c2) {
    for (int i = 1; i <= c1 - c2; i++) {
      cout << 'x';
    }
  } else {
    for (int i = 1; i <= c2 - c1; i++) {
      cout << 'y';
    }
  }
  return EXIT_SUCCESS;
}
