#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int x = 0, y = 0, dx = 0;
  char ch;
  for (int i = 0; i < (int)str.size(); i++) (str[i] == 'x') ? x++ : y++;
  ch = (x > y) ? 'x' : 'y';
  dx = abs(x - y);
  for (int i = 0; i < dx; i++) cout << ch;
  return 0;
}
